diff --git a/.gitignore b/.gitignore index 55eb233..087eba6 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ docs/SOP.md # System files .DS_Store + +# Dependencies +web/node_modules/ diff --git a/go.mod b/go.mod index a215ff3..d2841ee 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,14 @@ module lan-manager -go 1.21 +go 1.25.0 + +require ( + github.com/gin-contrib/sessions v1.1.0 + github.com/gin-gonic/gin v1.12.0 + golang.org/x/crypto v0.50.0 + golang.org/x/net v0.53.0 + modernc.org/sqlite v1.48.2 +) require ( github.com/bytedance/gopkg v0.1.3 // indirect @@ -9,9 +17,7 @@ require ( github.com/cloudwego/base64x v0.1.6 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/gabriel-vasile/mimetype v1.4.12 // indirect - github.com/gin-contrib/sessions v1.1.0 // indirect github.com/gin-contrib/sse v1.1.0 // indirect - github.com/gin-gonic/gin v1.12.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.30.1 // indirect @@ -36,13 +42,10 @@ require ( github.com/ugorji/go/codec v1.3.1 // indirect go.mongodb.org/mongo-driver/v2 v2.5.0 // indirect golang.org/x/arch v0.22.0 // indirect - golang.org/x/crypto v0.50.0 // indirect - golang.org/x/net v0.53.0 // indirect golang.org/x/sys v0.43.0 // indirect golang.org/x/text v0.36.0 // indirect google.golang.org/protobuf v1.36.10 // indirect modernc.org/libc v1.70.0 // indirect modernc.org/mathutil v1.7.1 // indirect modernc.org/memory v1.11.0 // indirect - modernc.org/sqlite v1.48.2 // indirect ) diff --git a/go.sum b/go.sum index 5c6a694..4f1a62d 100644 --- a/go.sum +++ b/go.sum @@ -7,6 +7,7 @@ github.com/bytedance/sonic/loader v0.5.0/go.mod h1:AR4NYCk5DdzZizZ5djGqQ92eEhCCc github.com/cloudwego/base64x v0.1.6 h1:t11wG9AECkCDk5fMSoxmufanudBtJ+/HemLstXDLI2M= github.com/cloudwego/base64x v0.1.6/go.mod h1:OFcloc187FXDaYHvrNIjxSe8ncn0OOM8gEHfghB2IPU= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= @@ -18,6 +19,8 @@ github.com/gin-contrib/sse v1.1.0 h1:n0w2GMuUpWDVp7qSpvze6fAu9iRxJY4Hmj6AmBOU05w github.com/gin-contrib/sse v1.1.0/go.mod h1:hxRZ5gVpWMT7Z0B0gSNYqqsSCNIJMjzvm6fqCz9vjwM= github.com/gin-gonic/gin v1.12.0 h1:b3YAbrZtnf8N//yjKeU2+MQsh2mY5htkZidOM7O0wG8= github.com/gin-gonic/gin v1.12.0/go.mod h1:VxccKfsSllpKshkBWgVgRniFFAzFb9csfngsqANjnLc= +github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= @@ -28,7 +31,13 @@ github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4= github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM= github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs= +github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/context v1.1.2 h1:WRkNAv2uoa03QNIc1A6u4O7DAGMUVoopZhkiXWA2V1o= @@ -37,6 +46,8 @@ github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kX github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= github.com/gorilla/sessions v1.4.0 h1:kpIYOp/oi6MG/p5PgxApU8srsSw9tuFbt46Lt7auzqQ= github.com/gorilla/sessions v1.4.0/go.mod h1:FLWm50oby91+hl7p/wRxDth9bWSuk0qVL2emc7lT5ik= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y= @@ -54,6 +65,7 @@ github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOF github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls= github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8= github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII= @@ -70,34 +82,66 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY= github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4= -go.mongodb.org/mongo-driver v1.17.3 h1:TQyXhnsWfWtgAhMtOgtYHMTkZIfBTpMTsMnd9ZBeHxQ= go.mongodb.org/mongo-driver/v2 v2.5.0 h1:yXUhImUjjAInNcpTcAlPHiT7bIXhshCTL3jVBkF3xaE= go.mongodb.org/mongo-driver/v2 v2.5.0/go.mod h1:yOI9kBsufol30iFsl1slpdq1I0eHPzybRWdyYUs8K/0= +go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y= +go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU= golang.org/x/arch v0.22.0 h1:c/Zle32i5ttqRXjdLyyHZESLD/bB90DCU1g9l/0YBDI= golang.org/x/arch v0.22.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A= golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI= golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q= +golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI= +golang.org/x/mod v0.34.0/go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY= golang.org/x/net v0.53.0 h1:d+qAbo5L0orcWAr0a9JweQpjXF19LMXJE8Ey7hwOdUA= golang.org/x/net v0.53.0/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs= +golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= +golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= +golang.org/x/term v0.42.0 h1:UiKe+zDFmJobeJ5ggPwOshJIVt6/Ft0rcfrXZDLWAWY= +golang.org/x/term v0.42.0/go.mod h1:Dq/D+snpsbazcBG5+F9Q1n2rXV8Ma+71xEjTRufARgY= golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg= golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164= +golang.org/x/tools v0.43.0 h1:12BdW9CeB3Z+J/I/wj34VMl8X+fEXBxVR90JeMX5E7s= +golang.org/x/tools v0.43.0/go.mod h1:uHkMso649BX2cZK6+RpuIPXS3ho2hZo4FVwfoy1vIk0= google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +modernc.org/cc/v4 v4.27.1 h1:9W30zRlYrefrDV2JE2O8VDtJ1yPGownxciz5rrbQZis= +modernc.org/cc/v4 v4.27.1/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0= +modernc.org/ccgo/v4 v4.32.0 h1:hjG66bI/kqIPX1b2yT6fr/jt+QedtP2fqojG2VrFuVw= +modernc.org/ccgo/v4 v4.32.0/go.mod h1:6F08EBCx5uQc38kMGl+0Nm0oWczoo1c7cgpzEry7Uc0= +modernc.org/fileutil v1.4.0 h1:j6ZzNTftVS054gi281TyLjHPp6CPHr2KCxEXjEbD6SM= +modernc.org/fileutil v1.4.0/go.mod h1:EqdKFDxiByqxLk8ozOxObDSfcVOv/54xDs/DUHdvCUU= +modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI= +modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito= +modernc.org/gc/v3 v3.1.2 h1:ZtDCnhonXSZexk/AYsegNRV1lJGgaNZJuKjJSWKyEqo= +modernc.org/gc/v3 v3.1.2/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY= +modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks= +modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI= modernc.org/libc v1.70.0 h1:U58NawXqXbgpZ/dcdS9kMshu08aiA6b7gusEusqzNkw= modernc.org/libc v1.70.0/go.mod h1:OVmxFGP1CI/Z4L3E0Q3Mf1PDE0BucwMkcXjjLntvHJo= modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU= modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg= modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI= modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw= +modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8= +modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns= +modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w= +modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE= modernc.org/sqlite v1.48.2 h1:5CnW4uP8joZtA0LedVqLbZV5GD7F/0x91AXeSyjoh5c= modernc.org/sqlite v1.48.2/go.mod h1:hWjRO6Tj/5Ik8ieqxQybiEOUXy0NJFNp2tpvVpKlvig= +modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0= +modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A= +modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y= +modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= diff --git a/server/handlers/pve.go b/server/handlers/pve.go index 4d1dfc8..ee635fb 100644 --- a/server/handlers/pve.go +++ b/server/handlers/pve.go @@ -2,10 +2,10 @@ package handlers import ( "database/sql" - "encoding/json" "net/http" "strconv" + "github.com/gin-gonic/gin" "lan-manager/server/db" "lan-manager/server/middleware" "lan-manager/server/models" @@ -23,15 +23,15 @@ func NewPVEHandler() *PVEHandler { } // List 获取 PVE 主机列表 -func (h *PVEHandler) List(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) List(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } hosts, err := h.service.GetAll() if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } @@ -40,51 +40,51 @@ func (h *PVEHandler) List(w http.ResponseWriter, r *http.Request) { hosts[i].PasswordEnc = "" } - middleware.JSON(w, hosts) + c.JSON(http.StatusOK, hosts) } // Get 获取单个 PVE 主机 -func (h *PVEHandler) Get(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) Get(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - id, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + id, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } host, err := h.service.GetByID(id) if err != nil { if err == sql.ErrNoRows { - http.Error(w, "not found", http.StatusNotFound) + c.JSON(http.StatusNotFound, gin.H{"error": "not found"}) return } - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } host.PasswordEnc = "" - middleware.JSON(w, host) + c.JSON(http.StatusOK, host) } // Create 创建 PVE 主机 -func (h *PVEHandler) Create(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) Create(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } var host models.PVEHost - if err := json.NewDecoder(r.Body).Decode(&host); err != nil { - http.Error(w, "invalid request", http.StatusBadRequest) + if err := c.ShouldBindJSON(&host); err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid request"}) return } if host.Name == "" || host.Hostname == "" || host.Username == "" || host.Password == "" { - http.Error(w, "missing required fields", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "missing required fields"}) return } @@ -93,30 +93,30 @@ func (h *PVEHandler) Create(w http.ResponseWriter, r *http.Request) { } if err := h.service.Create(&host); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } host.PasswordEnc = "" - middleware.JSON(w, host) + c.JSON(http.StatusCreated, host) } // Update 更新 PVE 主机 -func (h *PVEHandler) Update(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) Update(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - id, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + id, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } var host models.PVEHost - if err := json.NewDecoder(r.Body).Decode(&host); err != nil { - http.Error(w, "invalid request", http.StatusBadRequest) + if err := c.ShouldBindJSON(&host); err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid request"}) return } @@ -126,52 +126,52 @@ func (h *PVEHandler) Update(w http.ResponseWriter, r *http.Request) { if host.Password == "" { existing, err := h.service.GetByID(id) if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } host.PasswordEnc = existing.PasswordEnc } if err := h.service.Update(&host); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } host.PasswordEnc = "" - middleware.JSON(w, host) + c.JSON(http.StatusOK, host) } // Delete 删除 PVE 主机 -func (h *PVEHandler) Delete(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) Delete(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - id, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + id, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } if err := h.service.Delete(id); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } - middleware.JSON(w, map[string]string{"message": "deleted"}) + c.JSON(http.StatusOK, gin.H{"message": "deleted"}) } // VMStatus 获取虚拟机状态 -func (h *PVEHandler) VMStatus(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) VMStatus(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - machineID, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + machineID, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } @@ -179,34 +179,34 @@ func (h *PVEHandler) VMStatus(w http.ResponseWriter, r *http.Request) { var pveVMID sql.NullString err = db.DB.QueryRow(`SELECT pve_host_id, pve_vmid FROM machines WHERE id = ?`, machineID).Scan(&pveHostID, &pveVMID) if err != nil { - http.Error(w, "machine not found", http.StatusNotFound) + c.JSON(http.StatusNotFound, gin.H{"error": "machine not found"}) return } if pveHostID == nil || !pveVMID.Valid || pveVMID.String == "" { - http.Error(w, "machine not linked to PVE VM", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "machine not linked to PVE VM"}) return } status, err := h.service.GetVMStatus(*pveHostID, pveVMID.String) if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } - middleware.JSON(w, status) + c.JSON(http.StatusOK, status) } // VMStart 启动虚拟机 -func (h *PVEHandler) VMStart(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) VMStart(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - machineID, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + machineID, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } @@ -214,33 +214,33 @@ func (h *PVEHandler) VMStart(w http.ResponseWriter, r *http.Request) { var pveVMID sql.NullString err = db.DB.QueryRow(`SELECT pve_host_id, pve_vmid FROM machines WHERE id = ?`, machineID).Scan(&pveHostID, &pveVMID) if err != nil { - http.Error(w, "machine not found", http.StatusNotFound) + c.JSON(http.StatusNotFound, gin.H{"error": "machine not found"}) return } if pveHostID == nil || !pveVMID.Valid || pveVMID.String == "" { - http.Error(w, "machine not linked to PVE VM", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "machine not linked to PVE VM"}) return } if err := h.service.StartVM(*pveHostID, pveVMID.String); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } - middleware.JSON(w, map[string]string{"message": "started"}) + c.JSON(http.StatusOK, gin.H{"message": "started"}) } // VMStop 停止虚拟机 -func (h *PVEHandler) VMStop(w http.ResponseWriter, r *http.Request) { - if !middleware.IsAdmin(r) { - http.Error(w, "admin only", http.StatusForbidden) +func (h *PVEHandler) VMStop(c *gin.Context) { + if !middleware.IsAdmin(c) { + c.JSON(http.StatusForbidden, gin.H{"error": "admin only"}) return } - machineID, err := strconv.ParseInt(r.PathValue("id"), 10, 64) + machineID, err := strconv.ParseInt(c.Param("id"), 10, 64) if err != nil { - http.Error(w, "invalid id", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "invalid id"}) return } @@ -248,19 +248,19 @@ func (h *PVEHandler) VMStop(w http.ResponseWriter, r *http.Request) { var pveVMID sql.NullString err = db.DB.QueryRow(`SELECT pve_host_id, pve_vmid FROM machines WHERE id = ?`, machineID).Scan(&pveHostID, &pveVMID) if err != nil { - http.Error(w, "machine not found", http.StatusNotFound) + c.JSON(http.StatusNotFound, gin.H{"error": "machine not found"}) return } if pveHostID == nil || !pveVMID.Valid || pveVMID.String == "" { - http.Error(w, "machine not linked to PVE VM", http.StatusBadRequest) + c.JSON(http.StatusBadRequest, gin.H{"error": "machine not linked to PVE VM"}) return } if err := h.service.StopVM(*pveHostID, pveVMID.String); err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) return } - middleware.JSON(w, map[string]string{"message": "stopped"}) + c.JSON(http.StatusOK, gin.H{"message": "stopped"}) } diff --git a/server/services/pve.go b/server/services/pve.go index c93dd3c..cc4056b 100644 --- a/server/services/pve.go +++ b/server/services/pve.go @@ -10,6 +10,7 @@ import ( "strings" "time" + "lan-manager/server/db" "lan-manager/server/models" "lan-manager/server/utils" ) @@ -282,7 +283,7 @@ func NewPVEHostService() *PVEHostService { // GetAll 获取所有 PVE 主机 func (s *PVEHostService) GetAll() ([]models.PVEHost, error) { - rows, err := DB.Query(`SELECT id, name, hostname, port, username, password_enc, verify_ssl, created_at, updated_at FROM pve_hosts ORDER BY id`) + rows, err := db.DB.Query(`SELECT id, name, hostname, port, username, password_enc, verify_ssl, created_at, updated_at FROM pve_hosts ORDER BY id`) if err != nil { return nil, err } @@ -305,7 +306,7 @@ func (s *PVEHostService) GetAll() ([]models.PVEHost, error) { func (s *PVEHostService) GetByID(id int64) (*models.PVEHost, error) { var h models.PVEHost var verifySSL int - err := DB.QueryRow(`SELECT id, name, hostname, port, username, password_enc, verify_ssl, created_at, updated_at FROM pve_hosts WHERE id = ?`, id). + err := db.DB.QueryRow(`SELECT id, name, hostname, port, username, password_enc, verify_ssl, created_at, updated_at FROM pve_hosts WHERE id = ?`, id). Scan(&h.ID, &h.Name, &h.Hostname, &h.Port, &h.Username, &h.PasswordEnc, &verifySSL, &h.CreatedAt, &h.UpdatedAt) if err != nil { return nil, err @@ -322,7 +323,7 @@ func (s *PVEHostService) Create(host *models.PVEHost) error { return fmt.Errorf("encrypt password failed: %w", err) } - result, err := DB.Exec(`INSERT INTO pve_hosts (name, hostname, port, username, password_enc, verify_ssl) VALUES (?, ?, ?, ?, ?, ?)`, + result, err := db.DB.Exec(`INSERT INTO pve_hosts (name, hostname, port, username, password_enc, verify_ssl) VALUES (?, ?, ?, ?, ?, ?)`, host.Name, host.Hostname, host.Port, host.Username, encPassword, boolToInt(host.VerifySSL)) if err != nil { return err @@ -344,12 +345,12 @@ func (s *PVEHostService) Update(host *models.PVEHost) error { if err != nil { return fmt.Errorf("encrypt password failed: %w", err) } - _, err = DB.Exec(`UPDATE pve_hosts SET name=?, hostname=?, port=?, username=?, password_enc=?, verify_ssl=?, updated_at=CURRENT_TIMESTAMP WHERE id=?`, + _, err = db.DB.Exec(`UPDATE pve_hosts SET name=?, hostname=?, port=?, username=?, password_enc=?, verify_ssl=?, updated_at=CURRENT_TIMESTAMP WHERE id=?`, host.Name, host.Hostname, host.Port, host.Username, encPassword, boolToInt(host.VerifySSL), host.ID) return err } - _, err := DB.Exec(`UPDATE pve_hosts SET name=?, hostname=?, port=?, username=?, verify_ssl=?, updated_at=CURRENT_TIMESTAMP WHERE id=?`, + _, err := db.DB.Exec(`UPDATE pve_hosts SET name=?, hostname=?, port=?, username=?, verify_ssl=?, updated_at=CURRENT_TIMESTAMP WHERE id=?`, host.Name, host.Hostname, host.Port, host.Username, boolToInt(host.VerifySSL), host.ID) return err } @@ -357,10 +358,10 @@ func (s *PVEHostService) Update(host *models.PVEHost) error { // Delete 删除 PVE 主机 func (s *PVEHostService) Delete(id int64) error { // 先清除关联机器的 PVE 字段 - if _, err := DB.Exec(`UPDATE machines SET pve_host_id = NULL, pve_vmid = NULL WHERE pve_host_id = ?`, id); err != nil { + if _, err := db.DB.Exec(`UPDATE machines SET pve_host_id = NULL, pve_vmid = NULL WHERE pve_host_id = ?`, id); err != nil { return err } - _, err := DB.Exec(`DELETE FROM pve_hosts WHERE id = ?`, id) + _, err := db.DB.Exec(`DELETE FROM pve_hosts WHERE id = ?`, id) return err } diff --git a/web/dist/assets/Login-BsBJ5Qco.js b/web/dist/assets/Login-BYekGeRX.js similarity index 96% rename from web/dist/assets/Login-BsBJ5Qco.js rename to web/dist/assets/Login-BYekGeRX.js index dc8b9cb..406b3ae 100644 --- a/web/dist/assets/Login-BsBJ5Qco.js +++ b/web/dist/assets/Login-BYekGeRX.js @@ -1 +1 @@ -import{o as b,c as x,a as o,b as s,w as l,r as g,d as u,u as k,e as v,f as N,g as w,l as z,h as y,E as d,i as C,s as V,j as M}from"./index-Chagxl0Z.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"login-page"},E={class:"login-card"},K={class:"input-wrap"},U={class:"input-wrap"},$={class:"login-guest"},j={__name:"Login",setup(I){const c=k(),a=g({username:"",password:""}),n=g(!1);async function r(){if(!a.value.username||!a.value.password){d.warning("请输入用户名和密码");return}n.value=!0;try{const t=await C(a.value);V(t.data),d.success("登录成功"),c.push("/")}catch{}n.value=!1}async function h(){n.value=!0;try{const t=await M();V(t.data),d.success("已进入访客模式"),c.push("/")}catch{}n.value=!1}return(t,e)=>{const p=u("el-icon"),_=u("el-input"),m=u("el-form-item"),f=u("el-button"),L=u("el-form");return b(),x("div",B,[o("div",E,[e[4]||(e[4]=o("div",{class:"login-header"},[o("div",{class:"logo"},"LM"),o("h1",null,"LAN Manager"),o("p",null,"轻量级局域网资产管理平台")],-1)),s(L,{model:a.value,class:"login-form"},{default:l(()=>[s(m,null,{default:l(()=>[o("div",K,[s(p,{class:"input-icon"},{default:l(()=>[s(v(N))]),_:1}),s(_,{modelValue:a.value.username,"onUpdate:modelValue":e[0]||(e[0]=i=>a.value.username=i),placeholder:"用户名",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(m,null,{default:l(()=>[o("div",U,[s(p,{class:"input-icon"},{default:l(()=>[s(v(z))]),_:1}),s(_,{modelValue:a.value.password,"onUpdate:modelValue":e[1]||(e[1]=i=>a.value.password=i),type:"password","show-password":"",placeholder:"密码",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(f,{type:"primary",size:"large",class:"login-btn",loading:n.value,onClick:r},{default:l(()=>[...e[2]||(e[2]=[y("登录",-1)])]),_:1},8,["loading"]),o("div",$,[s(f,{text:"",size:"small",onClick:h},{default:l(()=>[...e[3]||(e[3]=[y("访客模式进入",-1)])]),_:1})])]),_:1},8,["model"])]),e[5]||(e[5]=o("div",{class:"login-footer"}," © LAN Manager ",-1))])}}},q=A(j,[["__scopeId","data-v-92ccba4b"]]);export{q as default}; +import{o as b,c as x,a as o,b as s,w as l,r as g,d as u,u as k,e as v,f as N,g as w,l as z,h as y,E as d,i as C,s as V,j as M}from"./index-BFjouPFU.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"login-page"},E={class:"login-card"},K={class:"input-wrap"},U={class:"input-wrap"},$={class:"login-guest"},j={__name:"Login",setup(I){const c=k(),a=g({username:"",password:""}),n=g(!1);async function r(){if(!a.value.username||!a.value.password){d.warning("请输入用户名和密码");return}n.value=!0;try{const t=await C(a.value);V(t.data),d.success("登录成功"),c.push("/")}catch{}n.value=!1}async function h(){n.value=!0;try{const t=await M();V(t.data),d.success("已进入访客模式"),c.push("/")}catch{}n.value=!1}return(t,e)=>{const p=u("el-icon"),_=u("el-input"),m=u("el-form-item"),f=u("el-button"),L=u("el-form");return b(),x("div",B,[o("div",E,[e[4]||(e[4]=o("div",{class:"login-header"},[o("div",{class:"logo"},"LM"),o("h1",null,"LAN Manager"),o("p",null,"轻量级局域网资产管理平台")],-1)),s(L,{model:a.value,class:"login-form"},{default:l(()=>[s(m,null,{default:l(()=>[o("div",K,[s(p,{class:"input-icon"},{default:l(()=>[s(v(N))]),_:1}),s(_,{modelValue:a.value.username,"onUpdate:modelValue":e[0]||(e[0]=i=>a.value.username=i),placeholder:"用户名",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(m,null,{default:l(()=>[o("div",U,[s(p,{class:"input-icon"},{default:l(()=>[s(v(z))]),_:1}),s(_,{modelValue:a.value.password,"onUpdate:modelValue":e[1]||(e[1]=i=>a.value.password=i),type:"password","show-password":"",placeholder:"密码",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(f,{type:"primary",size:"large",class:"login-btn",loading:n.value,onClick:r},{default:l(()=>[...e[2]||(e[2]=[y("登录",-1)])]),_:1},8,["loading"]),o("div",$,[s(f,{text:"",size:"small",onClick:h},{default:l(()=>[...e[3]||(e[3]=[y("访客模式进入",-1)])]),_:1})])]),_:1},8,["model"])]),e[5]||(e[5]=o("div",{class:"login-footer"}," © LAN Manager ",-1))])}}},q=A(j,[["__scopeId","data-v-92ccba4b"]]);export{q as default}; diff --git a/web/dist/assets/Login-CyUiDLKS.js b/web/dist/assets/Login-CyUiDLKS.js deleted file mode 100644 index 8243fbf..0000000 --- a/web/dist/assets/Login-CyUiDLKS.js +++ /dev/null @@ -1 +0,0 @@ -import{o as b,c as x,a as o,b as s,w as l,r as g,d as u,u as k,e as v,f as N,g as w,l as z,h as y,E as d,i as C,s as V,j as M}from"./index-C_uWT3cF.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"login-page"},E={class:"login-card"},K={class:"input-wrap"},U={class:"input-wrap"},$={class:"login-guest"},j={__name:"Login",setup(I){const c=k(),a=g({username:"",password:""}),n=g(!1);async function r(){if(!a.value.username||!a.value.password){d.warning("请输入用户名和密码");return}n.value=!0;try{const t=await C(a.value);V(t.data),d.success("登录成功"),c.push("/")}catch{}n.value=!1}async function h(){n.value=!0;try{const t=await M();V(t.data),d.success("已进入访客模式"),c.push("/")}catch{}n.value=!1}return(t,e)=>{const p=u("el-icon"),_=u("el-input"),m=u("el-form-item"),f=u("el-button"),L=u("el-form");return b(),x("div",B,[o("div",E,[e[4]||(e[4]=o("div",{class:"login-header"},[o("div",{class:"logo"},"LM"),o("h1",null,"LAN Manager"),o("p",null,"轻量级局域网资产管理平台")],-1)),s(L,{model:a.value,class:"login-form"},{default:l(()=>[s(m,null,{default:l(()=>[o("div",K,[s(p,{class:"input-icon"},{default:l(()=>[s(v(N))]),_:1}),s(_,{modelValue:a.value.username,"onUpdate:modelValue":e[0]||(e[0]=i=>a.value.username=i),placeholder:"用户名",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(m,null,{default:l(()=>[o("div",U,[s(p,{class:"input-icon"},{default:l(()=>[s(v(z))]),_:1}),s(_,{modelValue:a.value.password,"onUpdate:modelValue":e[1]||(e[1]=i=>a.value.password=i),type:"password","show-password":"",placeholder:"密码",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(f,{type:"primary",size:"large",class:"login-btn",loading:n.value,onClick:r},{default:l(()=>[...e[2]||(e[2]=[y("登录",-1)])]),_:1},8,["loading"]),o("div",$,[s(f,{text:"",size:"small",onClick:h},{default:l(()=>[...e[3]||(e[3]=[y("访客模式进入",-1)])]),_:1})])]),_:1},8,["model"])]),e[5]||(e[5]=o("div",{class:"login-footer"}," © LAN Manager ",-1))])}}},q=A(j,[["__scopeId","data-v-92ccba4b"]]);export{q as default}; diff --git a/web/dist/assets/Logs-D4rB2TEm.js b/web/dist/assets/Logs-D4rB2TEm.js deleted file mode 100644 index 4696c2c..0000000 --- a/web/dist/assets/Logs-D4rB2TEm.js +++ /dev/null @@ -1 +0,0 @@ -import{k as S,ak as V,o as w,c as $,a as o,b as t,w as d,t as f,al as N,m as B,r as i,d as r,am as C,h as b}from"./index-C_uWT3cF.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"page"},T={class:"page-header"},U={class:"header-actions"},I={class:"card"},E={class:"table-header"},F={class:"pagination-bar"},H={__name:"Logs",setup(P){const h=i([]),p=i(0),c=i(1),u=i(20),_=i(""),g=i(!1);S(()=>v());async function v(){g.value=!0;const l=await V({page:c.value,page_size:u.value,search:_.value});h.value=l.data.list,p.value=l.data.total,g.value=!1}function y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const s=m=>String(m).padStart(2,"0");return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())} ${s(e.getHours())}:${s(e.getMinutes())}:${s(e.getSeconds())}`}return(l,e)=>{const s=r("el-input"),m=r("el-button"),n=r("el-table-column"),z=r("el-tag"),x=r("el-table"),k=r("el-pagination"),D=C("loading");return w(),$("div",M,[o("div",T,[e[4]||(e[4]=o("div",null,[o("div",{class:"page-title"},"操作日志"),o("div",{class:"page-subtitle"},"查看最近的系统操作记录")],-1)),o("div",U,[t(s,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=a=>_.value=a),placeholder:"搜索操作内容",clearable:"",style:{width:"240px"}},null,8,["modelValue"]),t(m,{type:"primary",onClick:v},{default:d(()=>[...e[3]||(e[3]=[b("查询",-1)])]),_:1})])]),o("div",I,[o("div",E,"共 "+f(p.value)+" 条记录",1),N((w(),B(x,{data:h.value,stripe:"",style:{width:"100%"},class:"modern-table"},{default:d(()=>[t(n,{prop:"id",label:"ID",width:"70"}),t(n,{prop:"action",label:"操作",width:"140"}),t(n,{prop:"target_type",label:"对象",width:"100"},{default:d(({row:a})=>[t(z,{size:"small",effect:"plain",round:""},{default:d(()=>[b(f(a.target_type),1)]),_:2},1024)]),_:1}),t(n,{prop:"target_name",label:"对象名称","min-width":"160"}),t(n,{prop:"details",label:"详情","min-width":"240","show-overflow-tooltip":""}),t(n,{prop:"created_at",label:"时间",width:"170"},{default:d(({row:a})=>[b(f(y(a.created_at)),1)]),_:1})]),_:1},8,["data"])),[[D,g.value]]),o("div",F,[t(k,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=a=>c.value=a),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=a=>u.value=a),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",total:p.value,onChange:v},null,8,["current-page","page-size","total"])])])])}}},q=L(H,[["__scopeId","data-v-b1b09e4f"]]);export{q as default}; diff --git a/web/dist/assets/Logs-dZIuK9lS.js b/web/dist/assets/Logs-DuqLZVwE.js similarity index 67% rename from web/dist/assets/Logs-dZIuK9lS.js rename to web/dist/assets/Logs-DuqLZVwE.js index aa26243..4a53e36 100644 --- a/web/dist/assets/Logs-dZIuK9lS.js +++ b/web/dist/assets/Logs-DuqLZVwE.js @@ -1 +1 @@ -import{k as S,aj as V,o as w,c as $,a as o,b as t,w as d,t as f,ak as N,m as B,r as i,d as r,al as C,h as b}from"./index-Chagxl0Z.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"page"},T={class:"page-header"},U={class:"header-actions"},I={class:"card"},j={class:"table-header"},E={class:"pagination-bar"},F={__name:"Logs",setup(H){const h=i([]),p=i(0),c=i(1),u=i(20),_=i(""),g=i(!1);S(()=>v());async function v(){g.value=!0;const l=await V({page:c.value,page_size:u.value,search:_.value});h.value=l.data.list,p.value=l.data.total,g.value=!1}function y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const s=m=>String(m).padStart(2,"0");return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())} ${s(e.getHours())}:${s(e.getMinutes())}:${s(e.getSeconds())}`}return(l,e)=>{const s=r("el-input"),m=r("el-button"),n=r("el-table-column"),z=r("el-tag"),x=r("el-table"),k=r("el-pagination"),D=C("loading");return w(),$("div",M,[o("div",T,[e[4]||(e[4]=o("div",null,[o("div",{class:"page-title"},"操作日志"),o("div",{class:"page-subtitle"},"查看最近的系统操作记录")],-1)),o("div",U,[t(s,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=a=>_.value=a),placeholder:"搜索操作内容",clearable:"",style:{width:"240px"}},null,8,["modelValue"]),t(m,{type:"primary",onClick:v},{default:d(()=>[...e[3]||(e[3]=[b("查询",-1)])]),_:1})])]),o("div",I,[o("div",j,"共 "+f(p.value)+" 条记录",1),N((w(),B(x,{data:h.value,stripe:"",style:{width:"100%"},class:"modern-table"},{default:d(()=>[t(n,{prop:"id",label:"ID",width:"70"}),t(n,{prop:"action",label:"操作",width:"140"}),t(n,{prop:"target_type",label:"对象",width:"100"},{default:d(({row:a})=>[t(z,{size:"small",effect:"plain",round:""},{default:d(()=>[b(f(a.target_type),1)]),_:2},1024)]),_:1}),t(n,{prop:"target_name",label:"对象名称","min-width":"160"}),t(n,{prop:"details",label:"详情","min-width":"240","show-overflow-tooltip":""}),t(n,{prop:"created_at",label:"时间",width:"170"},{default:d(({row:a})=>[b(f(y(a.created_at)),1)]),_:1})]),_:1},8,["data"])),[[D,g.value]]),o("div",E,[t(k,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=a=>c.value=a),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=a=>u.value=a),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",total:p.value,onChange:v},null,8,["current-page","page-size","total"])])])])}}},q=L(F,[["__scopeId","data-v-b1b09e4f"]]);export{q as default}; +import{k as V,ap as $,o as w,c as k,a as o,b as t,w as d,t as f,aq as N,m as B,r as i,d as r,ar as C,h as b}from"./index-BFjouPFU.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"page"},T={class:"page-header"},U={class:"header-actions"},I={class:"card"},q={class:"table-header"},E={class:"pagination-bar"},F={__name:"Logs",setup(H){const h=i([]),p=i(0),c=i(1),u=i(20),_=i(""),g=i(!1);V(()=>v());async function v(){g.value=!0;const l=await $({page:c.value,page_size:u.value,search:_.value});h.value=l.data.list,p.value=l.data.total,g.value=!1}function y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const s=m=>String(m).padStart(2,"0");return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())} ${s(e.getHours())}:${s(e.getMinutes())}:${s(e.getSeconds())}`}return(l,e)=>{const s=r("el-input"),m=r("el-button"),n=r("el-table-column"),z=r("el-tag"),x=r("el-table"),D=r("el-pagination"),S=C("loading");return w(),k("div",M,[o("div",T,[e[4]||(e[4]=o("div",null,[o("div",{class:"page-title"},"操作日志"),o("div",{class:"page-subtitle"},"查看最近的系统操作记录")],-1)),o("div",U,[t(s,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=a=>_.value=a),placeholder:"搜索操作内容",clearable:"",style:{width:"240px"}},null,8,["modelValue"]),t(m,{type:"primary",onClick:v},{default:d(()=>[...e[3]||(e[3]=[b("查询",-1)])]),_:1})])]),o("div",I,[o("div",q,"共 "+f(p.value)+" 条记录",1),N((w(),B(x,{data:h.value,stripe:"",style:{width:"100%"},class:"modern-table"},{default:d(()=>[t(n,{prop:"id",label:"ID",width:"70"}),t(n,{prop:"action",label:"操作",width:"140"}),t(n,{prop:"target_type",label:"对象",width:"100"},{default:d(({row:a})=>[t(z,{size:"small",effect:"plain",round:""},{default:d(()=>[b(f(a.target_type),1)]),_:2},1024)]),_:1}),t(n,{prop:"target_name",label:"对象名称","min-width":"160"}),t(n,{prop:"details",label:"详情","min-width":"240","show-overflow-tooltip":""}),t(n,{prop:"created_at",label:"时间",width:"170"},{default:d(({row:a})=>[b(f(y(a.created_at)),1)]),_:1})]),_:1},8,["data"])),[[S,g.value]]),o("div",E,[t(D,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=a=>c.value=a),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=a=>u.value=a),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",total:p.value,onChange:v},null,8,["current-page","page-size","total"])])])])}}},j=L(F,[["__scopeId","data-v-b1b09e4f"]]);export{j as default}; diff --git a/web/dist/assets/MachineDetail-BRKIzc2h.css b/web/dist/assets/MachineDetail-BRKIzc2h.css new file mode 100644 index 0000000..32c9183 --- /dev/null +++ b/web/dist/assets/MachineDetail-BRKIzc2h.css @@ -0,0 +1 @@ +.detail-header[data-v-8622dedd]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.header-left[data-v-8622dedd]{display:flex;align-items:center;gap:12px}.host-title[data-v-8622dedd]{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.status-badge[data-v-8622dedd]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.status-badge.online[data-v-8622dedd]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-8622dedd]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-8622dedd]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-8622dedd]{background:#f8717126;color:#f87171}.host-subtitle[data-v-8622dedd]{margin-top:4px;font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.host-subtitle span+span[data-v-8622dedd]:before{content:"·";margin-right:8px;color:var(--text-muted)}.detail-grid[data-v-8622dedd]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>.card[data-v-8622dedd]{margin-bottom:0}@media (max-width: 900px){.detail-grid[data-v-8622dedd]{grid-template-columns:1fr}}.info-list[data-v-8622dedd]{display:flex;flex-direction:column;gap:10px}.info-item[data-v-8622dedd]{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:var(--surface-hover);border-radius:8px;font-size:13px;transition:background .2s ease}.info-label[data-v-8622dedd]{color:var(--text-secondary)}.info-value[data-v-8622dedd]{font-weight:500;color:var(--text)}.text-muted[data-v-8622dedd]{color:var(--text-muted)}.status-pills[data-v-8622dedd]{display:flex;flex-direction:column;gap:10px}.status-pill[data-v-8622dedd]{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface-hover);border-radius:10px;transition:background .2s ease}.sp-icon[data-v-8622dedd]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;flex-shrink:0}.sp-icon.cpu[data-v-8622dedd]{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.sp-icon.mem[data-v-8622dedd]{background:linear-gradient(135deg,#22c55e,#4ade80)}.sp-icon.disk[data-v-8622dedd]{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.sp-info[data-v-8622dedd]{flex:1;min-width:0}.sp-title[data-v-8622dedd]{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.sp-bar[data-v-8622dedd]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.sp-fill[data-v-8622dedd]{height:100%;border-radius:3px;background:#3b82f6;transition:width .3s ease}.sp-num[data-v-8622dedd]{font-size:14px;font-weight:700;color:var(--text);min-width:36px;text-align:right}.status-pill.disk-multi[data-v-8622dedd]{flex-wrap:wrap}.multi-disk-info[data-v-8622dedd]{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;max-height:220px;overflow-y:auto}.detail-disk-item[data-v-8622dedd]{display:flex;align-items:center;gap:10px;font-size:12px}.dd-mount[data-v-8622dedd]{min-width:50px;color:var(--text-secondary);font-weight:500}.dd-bar-wrap[data-v-8622dedd]{flex:1;min-width:80px}.dd-bar[data-v-8622dedd]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.dd-fill[data-v-8622dedd]{height:100%;border-radius:3px}.dd-val[data-v-8622dedd]{white-space:nowrap;color:var(--text-secondary)}.dd-pct[data-v-8622dedd]{min-width:32px;text-align:right;font-weight:700;color:var(--text)}.uptime-line[data-v-8622dedd]{margin-top:14px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);padding:8px 10px;background:var(--surface-hover);border-radius:8px;transition:background .2s ease}.sync-actions[data-v-8622dedd]{margin-bottom:10px}.ssh-actions[data-v-8622dedd]{margin-bottom:12px}.ssh-result[data-v-8622dedd]{background:var(--surface-hover);border-radius:10px;padding:12px;transition:background .2s ease}.result-grid[data-v-8622dedd]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-item[data-v-8622dedd]{display:flex;flex-direction:column;gap:2px}.result-item.full[data-v-8622dedd]{grid-column:1 / -1}.rl[data-v-8622dedd]{font-size:11px;color:var(--text-muted)}.rv[data-v-8622dedd]{font-size:13px;color:var(--text);font-weight:500}.service-list[data-v-8622dedd],.rel-list[data-v-8622dedd]{display:flex;flex-direction:column;gap:10px}.service-row[data-v-8622dedd]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.service-main[data-v-8622dedd]{display:flex;align-items:center;gap:10px}.service-name[data-v-8622dedd]{font-weight:600;font-size:14px}.service-port[data-v-8622dedd]{font-size:12px;color:var(--text-muted);background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border)}.service-target[data-v-8622dedd]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--primary)}.target-note[data-v-8622dedd]{color:var(--text-muted)}.service-note[data-v-8622dedd]{font-size:12px;color:var(--text-secondary);flex:1 1 100%}.service-actions[data-v-8622dedd]{display:flex;gap:6px}.rel-row[data-v-8622dedd]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.rel-arrow[data-v-8622dedd]{display:flex;align-items:center;gap:8px;font-size:14px}.rel-host[data-v-8622dedd]{font-weight:600}.rel-meta[data-v-8622dedd]{display:flex;align-items:center;gap:8px;font-size:12px}.rel-port[data-v-8622dedd]{background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border);color:var(--text-secondary)}.rel-note[data-v-8622dedd]{color:var(--text-muted)}.rel-actions[data-v-8622dedd]{display:flex;gap:6px}.offline-stats[data-v-8622dedd]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}.stat-box[data-v-8622dedd]{background:var(--surface-hover);border-radius:10px;padding:12px;text-align:center}.stat-num[data-v-8622dedd]{font-size:20px;font-weight:700;color:var(--text)}.stat-reason[data-v-8622dedd]{font-size:13px;font-weight:600;color:var(--danger);word-break:break-all}.stat-label[data-v-8622dedd]{font-size:12px;color:var(--text-muted);margin-top:4px}.offline-logs[data-v-8622dedd]{background:var(--surface-hover);border-radius:10px;padding:12px}.log-title[data-v-8622dedd]{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.log-row[data-v-8622dedd]{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.log-row[data-v-8622dedd]:last-child{border-bottom:none}.log-time[data-v-8622dedd]{color:var(--text-muted);min-width:140px}.log-reason[data-v-8622dedd]{flex:1;color:var(--text-secondary)}.log-dur[data-v-8622dedd]{color:var(--text);font-weight:500}.log-dur.pending[data-v-8622dedd]{color:var(--warning)} diff --git a/web/dist/assets/MachineDetail-Du94nURq.js b/web/dist/assets/MachineDetail-Du94nURq.js deleted file mode 100644 index c4cb1a2..0000000 --- a/web/dist/assets/MachineDetail-Du94nURq.js +++ /dev/null @@ -1 +0,0 @@ -import{k as Me,H as $e,I as Te,J as De,U as He,V as Pe,o as i,c as d,a as s,b as t,w as o,h as f,t as u,p as Re,e as _,n as m,W as Z,X as ee,Q as Y,M as U,N as D,Y as ze,m as E,L as de,Z as Ee,r as V,d as S,F as Ie,u as Ne,K as qe,_ as Be,$ as Le,a0 as Ae,a1 as Fe,a2 as Ke,a3 as re,a4 as ve,a5 as le,a6 as Oe,E as M,a7 as _e,a8 as me,q as We,a9 as Ge,R as Ye,aa as je,ab as Je,ac as Qe,ad as Xe,ae as Ze}from"./index-C_uWT3cF.js";import{_ as el}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ll={key:0,class:"page"},sl={class:"detail-header"},tl={class:"header-left"},al={class:"host-title"},ol={class:"host-subtitle"},nl={key:0},il={key:1},ul={key:0,class:"header-actions"},dl={class:"detail-grid"},rl={class:"card"},vl={class:"info-list"},_l={class:"info-item"},ml={class:"info-value"},pl={key:0,class:"info-item"},cl={class:"info-value"},fl={class:"info-item"},yl={class:"info-value"},hl={key:1,class:"info-item"},kl={class:"info-value"},gl={key:2,class:"info-item"},Vl={class:"info-value text-muted"},bl={key:0,class:"card"},wl={class:"status-pills"},xl={key:0,class:"status-pill"},Sl={class:"sp-info"},Cl={class:"sp-title"},Ul={class:"sp-bar"},Ml={class:"sp-num"},$l={key:1,class:"status-pill"},Tl={class:"sp-info"},Dl={class:"sp-title"},Hl={class:"sp-bar"},Pl={class:"sp-num"},Rl={key:2,class:"status-pill disk-multi"},zl={class:"sp-info"},El={class:"sp-title"},Il={class:"sp-bar"},Nl={class:"sp-num"},ql={class:"sp-info multi-disk-info"},Bl={class:"dd-mount"},Ll={class:"dd-bar-wrap"},Al={class:"dd-bar"},Fl={class:"dd-val"},Kl={class:"dd-pct"},Ol={key:0,class:"load-line"},Wl={key:1,class:"uptime-line"},Gl={key:1,class:"card"},Yl={key:0,class:"sync-actions"},jl={class:"ssh-actions"},Jl={key:1,class:"ssh-result"},Ql={class:"result-grid"},Xl={class:"result-item"},Zl={class:"rv"},es={class:"result-item"},ls={class:"rv"},ss={class:"result-item"},ts={class:"rv"},as={class:"result-item"},os={class:"rv"},ns={class:"result-item"},is={class:"rv"},us={class:"result-item"},ds={class:"rv"},rs={class:"result-item full"},vs={class:"rv"},_s={class:"card"},ms={class:"card-title"},ps={key:0,class:"service-list"},cs={class:"service-main"},fs={class:"service-name"},ys={class:"service-port"},hs={key:0,class:"service-target"},ks={key:0,class:"target-note"},gs={key:1,class:"service-note"},Vs={key:2,class:"service-actions"},bs={key:2,class:"card"},ws={class:"offline-stats"},xs={class:"stat-box"},Ss={class:"stat-num"},Cs={class:"stat-box"},Us={class:"stat-num"},Ms={key:0,class:"stat-box"},$s={class:"stat-reason"},Ts={key:0,class:"offline-logs"},Ds={class:"log-time"},Hs={class:"log-reason"},Ps={key:0,class:"log-dur"},Rs={key:1,class:"log-dur pending"},zs={key:3,class:"card"},Es={class:"card-title"},Is={key:0,class:"rel-list"},Ns={class:"rel-arrow"},qs={class:"rel-host"},Bs={class:"rel-host"},Ls={class:"rel-meta"},As={key:0,class:"rel-port"},Fs={key:1,class:"rel-note"},Ks={class:"rel-actions"},Os={__name:"MachineDetail",setup(Ws){const pe=Ee(),ce=Ne(),y=Ie().is_admin,w=pe.params.id,n=V(null),j=V([]),J=V([]),H=V([]),Q=V([]),I=V(!1),c=V({}),N=V(!1),$=V({username:"",password:""}),b=V(null),P=V(!1),q=V(!1),h=V({}),B=V(!1),k=V({}),fe=We(()=>{const a={};return H.value.forEach(e=>a[e.id]=e.hostname),a});let X=null;Me(async()=>{if(await L(),await F(),y){await K();const e=await qe();H.value=e.data}await $e();const a=Te||1e4;a>0&&(X=setInterval(async()=>{await L(),await F(),y&&await K()},a))}),De(()=>{X&&clearInterval(X)});async function L(){const a=await He(w);if(n.value=a.data.machine,y){const e=await Be(w);Q.value=e.data}n.value&&(n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime)?b.value={hostname:n.value.hostname,os_version:n.value.os_version,cpu:n.value.cpu_info,memory:n.value.memory_info,disk:n.value.disk_info,uptime:n.value.uptime,listen_ports:n.value.listen_ports?n.value.listen_ports.split(",").map(e=>e.trim()).filter(Boolean):[]}:b.value=null}async function F(){const a=await Pe(w);j.value=a.data}async function K(){const a=await Le(),e={};H.value.forEach(r=>e[r.id]=r.hostname),J.value=a.data.filter(r=>r.source_machine_id==w||r.target_machine_id==w).map(r=>({...r,source_hostname:e[r.source_machine_id]||r.source_machine_id,target_hostname:e[r.target_machine_id]||r.target_machine_id}))}function ye(a){c.value={...a,ssh_port:a.ssh_port||22,ssh_username:a.ssh_username||"",ssh_password:""},I.value=!0}async function he(){if(n.value.ssh_username){P.value=!0;try{const a=await _e(w,{username:n.value.ssh_username,password:""});b.value=a.data,await me(w,b.value),M.success("获取并同步成功"),await L(),P.value=!1;return}catch{P.value=!1}}$.value={username:n.value.ssh_username||"",password:""},N.value=!0}async function ke(){await Ye(c.value.id,c.value),M.success("保存成功"),I.value=!1,L()}async function ge(){try{await le.confirm("确定删除该机器?","提示",{type:"warning"}),await Oe(w),M.success("删除成功"),ce.back()}catch{}}async function Ve(){P.value=!0;try{const a=await _e(w,$.value);b.value=a.data,N.value=!1,await me(w,b.value),M.success("获取并同步成功"),await L()}catch{}P.value=!1}function se(a){h.value=a?{...a,target_machine_id:a.target_machine_id||null,target_notes:a.target_notes||""}:{name:"",port:80,protocol:"TCP",notes:"",target_machine_id:null,target_notes:""},q.value=!0}async function be(){const a={...h.value};a.id?await je(a.id,a):await Je(w,a),M.success("保存成功"),q.value=!1,F()}async function we(a){try{await le.confirm("确定删除该服务?","提示",{type:"warning"}),await Ze(a.id),M.success("删除成功"),F()}catch{}}function te(a){k.value=a?{...a}:{source_machine_id:Number(w),target_machine_id:null,relation_type:"dependency",source_port:null,target_port:null,notes:""},B.value=!0}async function xe(){const a={...k.value};a.id?await Qe(a.id,a):await Xe(a),M.success("保存成功"),B.value=!1,K()}async function Se(a){try{await le.confirm("确定删除该关系?","提示",{type:"warning"}),await Ge(a.id),M.success("删除成功"),K()}catch{}}function Ce(a){return{port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[a]||a}function C(a){if(!a)return 0;const e=a.match(/\((\d+)%\)/)||a.match(/(\d+(?:\.\d+)?)%/);if(e){const r=parseFloat(e[1]);return isNaN(r)?0:Math.min(100,Math.max(0,Math.round(r)))}return 0}function Ue(a){return a>=90?"#f87171":a>=70?"#fbbf24":"#34d399"}function ae(a){return a>=90?"#f87171":a>=80?"#fbbf24":"#60a5fa"}function oe(a){if(!a)return[];const e=[],r=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let v;for(;(v=r.exec(a))!==null;)e.push({mount:v[1],detail:v[2],percent:parseInt(v[3],10)});if(e.length>0)return e;const R=C(a),T=extractDetail(a);return T?[{mount:"",detail:T,percent:R}]:[]}function ne(a){if(!a)return"-";const e=new Date(a);if(isNaN(e.getTime()))return a;const r=v=>String(v).padStart(2,"0");return`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}function ie(a){if(!a&&a!==0)return"-";const e=Number(a);if(e<60)return`${e}秒`;if(e<3600)return`${Math.floor(e/60)}分${e%60}秒`;const r=Math.floor(e/3600),v=Math.floor(e%3600/60);if(r<24)return`${r}时${v}分`;const R=Math.floor(r/24),T=r%24;return`${R}天${T}时${v}分`}return(a,e)=>{var ue;const r=S("el-icon"),v=S("el-button"),R=S("el-tag"),T=S("el-empty"),x=S("el-input"),p=S("el-form-item"),O=S("el-form"),W=S("el-dialog"),G=S("el-input-number"),g=S("el-option"),z=S("el-select");return n.value?(i(),d("div",ll,[s("div",sl,[s("div",tl,[t(v,{text:"",circle:"",onClick:e[0]||(e[0]=l=>a.$router.back())},{default:o(()=>[t(r,null,{default:o(()=>[t(_(Ae))]),_:1})]),_:1}),s("div",null,[s("div",al,[f(u(n.value.hostname)+" ",1),s("span",{class:Re(["status-badge",n.value.is_online?"online":"offline"])},u(n.value.is_online?"在线":"离线"),3)]),s("div",ol,[_(y)?(i(),d("span",nl,u(n.value.ip),1)):m("",!0),s("span",null,u(n.value.os_type),1),n.value.os_version?(i(),d("span",il,u(n.value.os_version),1)):m("",!0)])])]),_(y)?(i(),d("div",ul,[t(v,{text:"",icon:_(Z),onClick:e[1]||(e[1]=l=>ye(n.value))},{default:o(()=>[...e[35]||(e[35]=[f("编辑",-1)])]),_:1},8,["icon"]),t(v,{text:"",type:"danger",icon:_(ee),onClick:ge},{default:o(()=>[...e[36]||(e[36]=[f("删除",-1)])]),_:1},8,["icon"])])):m("",!0)]),s("div",dl,[s("div",rl,[e[42]||(e[42]=s("div",{class:"card-title"},"基本信息",-1)),s("div",vl,[s("div",_l,[e[37]||(e[37]=s("span",{class:"info-label"},"IP",-1)),s("span",ml,u(n.value.ip),1)]),_(y)?(i(),d("div",pl,[e[38]||(e[38]=s("span",{class:"info-label"},"MAC",-1)),s("span",cl,u(n.value.mac||"-"),1)])):m("",!0),s("div",fl,[e[39]||(e[39]=s("span",{class:"info-label"},"系统",-1)),s("span",yl,u(n.value.os_type)+" "+u(n.value.os_version||""),1)]),_(y)?(i(),d("div",hl,[e[40]||(e[40]=s("span",{class:"info-label"},"SSH 端口",-1)),s("span",kl,u(n.value.ssh_port||22),1)])):m("",!0),_(y)?(i(),d("div",gl,[e[41]||(e[41]=s("span",{class:"info-label"},"备注",-1)),s("span",Vl,u(n.value.notes||"-"),1)])):m("",!0)])]),n.value.cpu_info||n.value.memory_info||n.value.disk_info?(i(),d("div",bl,[e[47]||(e[47]=s("div",{class:"card-title"},"系统状态",-1)),s("div",wl,[n.value.cpu_info?(i(),d("div",xl,[e[43]||(e[43]=s("div",{class:"sp-icon cpu"},"CPU",-1)),s("div",Sl,[s("div",Cl,u(n.value.cpu_info),1),s("div",Ul,[s("div",{class:"sp-fill",style:Y({width:C(n.value.cpu_info)+"%"})},null,4)])]),s("div",Ml,u(C(n.value.cpu_info))+"%",1)])):m("",!0),n.value.memory_info?(i(),d("div",$l,[e[44]||(e[44]=s("div",{class:"sp-icon mem"},"MEM",-1)),s("div",Tl,[s("div",Dl,u(n.value.memory_info),1),s("div",Hl,[s("div",{class:"sp-fill",style:Y({width:C(n.value.memory_info)+"%",background:Ue(C(n.value.memory_info))})},null,4)])]),s("div",Pl,u(C(n.value.memory_info))+"%",1)])):m("",!0),n.value.disk_info?(i(),d("div",Rl,[oe(n.value.disk_info).length<=1?(i(),d(U,{key:0},[e[45]||(e[45]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",zl,[s("div",El,u(n.value.disk_info),1),s("div",Il,[s("div",{class:"sp-fill",style:Y({width:C(n.value.disk_info)+"%",background:ae(C(n.value.disk_info))})},null,4)])]),s("div",Nl,u(C(n.value.disk_info))+"%",1)],64)):(i(),d(U,{key:1},[e[46]||(e[46]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",ql,[(i(!0),d(U,null,D(oe(n.value.disk_info),(l,A)=>(i(),d("div",{key:A,class:"detail-disk-item"},[s("span",Bl,u(l.mount),1),s("div",Ll,[s("div",Al,[s("div",{class:"dd-fill",style:Y({width:l.percent+"%",background:ae(l.percent)})},null,4)])]),s("span",Fl,u(l.detail),1),s("span",Kl,u(l.percent)+"%",1)]))),128))])],64))])):m("",!0)]),n.value.load_average?(i(),d("div",Ol,[t(r,null,{default:o(()=>[t(_(Fe))]),_:1}),s("span",null,"系统负载 "+u(n.value.load_average),1)])):m("",!0),n.value.uptime?(i(),d("div",Wl,[t(r,null,{default:o(()=>[t(_(Ke))]),_:1}),s("span",null,"运行时间 "+u(n.value.uptime),1)])):m("",!0)])):m("",!0),_(y)?(i(),d("div",Gl,[e[56]||(e[56]=s("div",{class:"card-title"},"SSH 系统信息",-1)),n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime?(i(),d("div",Yl,[t(R,{size:"small",effect:"plain",round:""},{default:o(()=>[f("上次同步 "+u(ne(n.value.ssh_synced_at)),1)]),_:1})])):m("",!0),s("div",jl,[t(v,{type:"primary",icon:_(ze),onClick:he},{default:o(()=>[...e[48]||(e[48]=[f("获取系统信息",-1)])]),_:1},8,["icon"])]),b.value?(i(),d("div",Jl,[s("div",Ql,[s("div",Xl,[e[49]||(e[49]=s("span",{class:"rl"},"主机名",-1)),s("span",Zl,u(b.value.hostname),1)]),s("div",es,[e[50]||(e[50]=s("span",{class:"rl"},"系统版本",-1)),s("span",ls,u(b.value.os_version),1)]),s("div",ss,[e[51]||(e[51]=s("span",{class:"rl"},"CPU",-1)),s("span",ts,u(b.value.cpu),1)]),s("div",as,[e[52]||(e[52]=s("span",{class:"rl"},"内存",-1)),s("span",os,u(b.value.memory),1)]),s("div",ns,[e[53]||(e[53]=s("span",{class:"rl"},"磁盘",-1)),s("span",is,u(b.value.disk),1)]),s("div",us,[e[54]||(e[54]=s("span",{class:"rl"},"运行时间",-1)),s("span",ds,u(b.value.uptime),1)]),s("div",rs,[e[55]||(e[55]=s("span",{class:"rl"},"监听端口",-1)),s("span",vs,u((ue=b.value.listen_ports)==null?void 0:ue.join(", ")),1)])])])):m("",!0)])):m("",!0),s("div",_s,[s("div",ms,[e[58]||(e[58]=f(" 服务列表 ",-1)),_(y)?(i(),E(v,{key:0,size:"small",type:"primary",icon:_(de),onClick:e[2]||(e[2]=l=>se())},{default:o(()=>[...e[57]||(e[57]=[f("添加服务",-1)])]),_:1},8,["icon"])):m("",!0)]),j.value.length?(i(),d("div",ps,[(i(!0),d(U,null,D(j.value,l=>(i(),d("div",{key:l.id,class:"service-row"},[s("div",cs,[s("div",fs,u(l.name),1),s("div",ys,u(l.port)+" / "+u(l.protocol),1)]),_(y)&&l.target_machine_id?(i(),d("div",hs,[t(r,null,{default:o(()=>[t(_(re))]),_:1}),s("span",null,u(fe.value[l.target_machine_id]||l.target_machine_id),1),l.target_notes?(i(),d("span",ks,u(l.target_notes),1)):m("",!0)])):m("",!0),_(y)&&l.notes?(i(),d("div",gs,u(l.notes),1)):m("",!0),_(y)?(i(),d("div",Vs,[t(v,{text:"",size:"small",icon:_(Z),onClick:ve(A=>se(l),["stop"])},{default:o(()=>[...e[59]||(e[59]=[f("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:_(ee),onClick:ve(A=>we(l),["stop"])},{default:o(()=>[...e[60]||(e[60]=[f("删除",-1)])]),_:1},8,["icon","onClick"])])):m("",!0)]))),128))])):(i(),E(T,{key:1,description:"暂无服务","image-size":80}))]),_(y)?(i(),d("div",bs,[e[65]||(e[65]=s("div",{class:"card-title"},"离线统计",-1)),s("div",ws,[s("div",xs,[s("div",Ss,u(n.value.offline_count||0),1),e[61]||(e[61]=s("div",{class:"stat-label"},"离线次数",-1))]),s("div",Cs,[s("div",Us,u(ie(n.value.total_offline_seconds)),1),e[62]||(e[62]=s("div",{class:"stat-label"},"累计离线时长",-1))]),n.value.last_offline_reason?(i(),d("div",Ms,[s("div",$s,u(n.value.last_offline_reason),1),e[63]||(e[63]=s("div",{class:"stat-label"},"上次离线原因",-1))])):m("",!0)]),Q.value.length?(i(),d("div",Ts,[e[64]||(e[64]=s("div",{class:"log-title"},"最近离线记录",-1)),(i(!0),d(U,null,D(Q.value.slice(0,5),l=>(i(),d("div",{key:l.id,class:"log-row"},[s("span",Ds,u(ne(l.started_at)),1),s("span",Hs,u(l.reason||"未知原因"),1),l.duration_seconds!==null&&l.duration_seconds!==void 0?(i(),d("span",Ps,"持续 "+u(ie(l.duration_seconds)),1)):(i(),d("span",Rs,"未恢复"))]))),128))])):m("",!0)])):m("",!0),_(y)?(i(),d("div",zs,[s("div",Es,[e[67]||(e[67]=f(" 关联关系 ",-1)),t(v,{size:"small",type:"primary",icon:_(de),onClick:e[3]||(e[3]=l=>te())},{default:o(()=>[...e[66]||(e[66]=[f("添加关系",-1)])]),_:1},8,["icon"])]),J.value.length?(i(),d("div",Is,[(i(!0),d(U,null,D(J.value,l=>(i(),d("div",{key:l.id,class:"rel-row"},[s("div",Ns,[s("span",qs,u(l.source_hostname),1),t(r,null,{default:o(()=>[t(_(re))]),_:1}),s("span",Bs,u(l.target_hostname),1)]),s("div",Ls,[t(R,{size:"small",effect:"plain",round:""},{default:o(()=>[f(u(Ce(l.relation_type)),1)]),_:2},1024),l.source_port?(i(),d("span",As,u(l.source_port)+" → "+u(l.target_port||"-"),1)):m("",!0),l.notes?(i(),d("span",Fs,u(l.notes),1)):m("",!0)]),s("div",Ks,[t(v,{text:"",size:"small",icon:_(Z),onClick:A=>te(l)},{default:o(()=>[...e[68]||(e[68]=[f("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:_(ee),onClick:A=>Se(l)},{default:o(()=>[...e[69]||(e[69]=[f("删除",-1)])]),_:1},8,["icon","onClick"])])]))),128))])):(i(),E(T,{key:1,description:"暂无关系","image-size":80}))])):m("",!0)]),t(W,{modelValue:N.value,"onUpdate:modelValue":e[7]||(e[7]=l=>N.value=l),title:"SSH 获取系统信息",width:"360px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[6]||(e[6]=l=>N.value=!1)},{default:o(()=>[...e[70]||(e[70]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",loading:P.value,onClick:Ve},{default:o(()=>[...e[71]||(e[71]=[f("连接",-1)])]),_:1},8,["loading"])]),default:o(()=>[t(O,{model:$.value,"label-width":"80px"},{default:o(()=>[t(p,{label:"用户名"},{default:o(()=>[t(x,{modelValue:$.value.username,"onUpdate:modelValue":e[4]||(e[4]=l=>$.value.username=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"密码"},{default:o(()=>[t(x,{modelValue:$.value.password,"onUpdate:modelValue":e[5]||(e[5]=l=>$.value.password=l),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:I.value,"onUpdate:modelValue":e[18]||(e[18]=l=>I.value=l),title:"编辑机器",width:"480px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[17]||(e[17]=l=>I.value=!1)},{default:o(()=>[...e[72]||(e[72]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:ke},{default:o(()=>[...e[73]||(e[73]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:c.value,"label-width":"90px"},{default:o(()=>[t(p,{label:"主机名",required:""},{default:o(()=>[t(x,{modelValue:c.value.hostname,"onUpdate:modelValue":e[8]||(e[8]=l=>c.value.hostname=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"IP",required:""},{default:o(()=>[t(x,{modelValue:c.value.ip,"onUpdate:modelValue":e[9]||(e[9]=l=>c.value.ip=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"MAC"},{default:o(()=>[t(x,{modelValue:c.value.mac,"onUpdate:modelValue":e[10]||(e[10]=l=>c.value.mac=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH端口"},{default:o(()=>[t(G,{modelValue:c.value.ssh_port,"onUpdate:modelValue":e[11]||(e[11]=l=>c.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH用户"},{default:o(()=>[t(x,{modelValue:c.value.ssh_username,"onUpdate:modelValue":e[12]||(e[12]=l=>c.value.ssh_username=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH密码"},{default:o(()=>[t(x,{modelValue:c.value.ssh_password,"onUpdate:modelValue":e[13]||(e[13]=l=>c.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),t(p,{label:"系统",required:""},{default:o(()=>[t(z,{modelValue:c.value.os_type,"onUpdate:modelValue":e[14]||(e[14]=l=>c.value.os_type=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"Linux",value:"Linux"}),t(g,{label:"Windows",value:"Windows"}),t(g,{label:"macOS",value:"macOS"}),t(g,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"系统版本"},{default:o(()=>[t(x,{modelValue:c.value.os_version,"onUpdate:modelValue":e[15]||(e[15]=l=>c.value.os_version=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:c.value.notes,"onUpdate:modelValue":e[16]||(e[16]=l=>c.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:q.value,"onUpdate:modelValue":e[26]||(e[26]=l=>q.value=l),title:"编辑服务",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[25]||(e[25]=l=>q.value=!1)},{default:o(()=>[...e[74]||(e[74]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:be},{default:o(()=>[...e[75]||(e[75]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:h.value,"label-width":"90px"},{default:o(()=>[t(p,{label:"名称",required:""},{default:o(()=>[t(x,{modelValue:h.value.name,"onUpdate:modelValue":e[19]||(e[19]=l=>h.value.name=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"端口",required:""},{default:o(()=>[t(G,{modelValue:h.value.port,"onUpdate:modelValue":e[20]||(e[20]=l=>h.value.port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"协议"},{default:o(()=>[t(z,{modelValue:h.value.protocol,"onUpdate:modelValue":e[21]||(e[21]=l=>h.value.protocol=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"TCP",value:"TCP"}),t(g,{label:"UDP",value:"UDP"}),t(g,{label:"HTTP",value:"HTTP"}),t(g,{label:"HTTPS",value:"HTTPS"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"指向机器"},{default:o(()=>[t(z,{modelValue:h.value.target_machine_id,"onUpdate:modelValue":e[22]||(e[22]=l=>h.value.target_machine_id=l),clearable:"",style:{width:"100%"},placeholder:"选择目标机器(拓扑连线用)"},{default:o(()=>[(i(!0),d(U,null,D(H.value.filter(l=>l.id!=_(w)),l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"指向备注"},{default:o(()=>[t(x,{modelValue:h.value.target_notes,"onUpdate:modelValue":e[23]||(e[23]=l=>h.value.target_notes=l),placeholder:"如:反向代理到目标"},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:h.value.notes,"onUpdate:modelValue":e[24]||(e[24]=l=>h.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:B.value,"onUpdate:modelValue":e[34]||(e[34]=l=>B.value=l),title:"编辑关系",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[33]||(e[33]=l=>B.value=!1)},{default:o(()=>[...e[76]||(e[76]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:xe},{default:o(()=>[...e[77]||(e[77]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:k.value,"label-width":"100px"},{default:o(()=>[t(p,{label:"源机器",required:""},{default:o(()=>[t(z,{modelValue:k.value.source_machine_id,"onUpdate:modelValue":e[27]||(e[27]=l=>k.value.source_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,D(H.value,l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"目标机器",required:""},{default:o(()=>[t(z,{modelValue:k.value.target_machine_id,"onUpdate:modelValue":e[28]||(e[28]=l=>k.value.target_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,D(H.value,l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"关系类型",required:""},{default:o(()=>[t(z,{modelValue:k.value.relation_type,"onUpdate:modelValue":e[29]||(e[29]=l=>k.value.relation_type=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"端口转发",value:"port_forward"}),t(g,{label:"依赖",value:"dependency"}),t(g,{label:"主从",value:"primary_secondary"}),t(g,{label:"自定义",value:"custom"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"源端口"},{default:o(()=>[t(G,{modelValue:k.value.source_port,"onUpdate:modelValue":e[30]||(e[30]=l=>k.value.source_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"目标端口"},{default:o(()=>[t(G,{modelValue:k.value.target_port,"onUpdate:modelValue":e[31]||(e[31]=l=>k.value.target_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:k.value.notes,"onUpdate:modelValue":e[32]||(e[32]=l=>k.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])):m("",!0)}}},js=el(Os,[["__scopeId","data-v-8e39badc"]]);export{js as default}; diff --git a/web/dist/assets/MachineDetail-EJEjie9p.js b/web/dist/assets/MachineDetail-EJEjie9p.js deleted file mode 100644 index 003d526..0000000 --- a/web/dist/assets/MachineDetail-EJEjie9p.js +++ /dev/null @@ -1 +0,0 @@ -import{k as Me,H as $e,I as De,J as Te,U as He,V as Pe,o as i,c as d,a as s,b as t,w as o,h as f,t as u,p as Re,e as m,n as _,W as Z,X as ee,Q as Y,M as U,N as T,Y as ze,m as E,L as de,Z as Ee,r as V,d as S,F as Ie,u as Ne,K as qe,_ as Be,$ as Le,a0 as Ae,a1 as Fe,a2 as re,a3 as ve,a4 as le,a5 as Ke,E as M,a6 as me,a7 as _e,q as Oe,a8 as We,R as Ge,a9 as Ye,aa as je,ab as Je,ac as Qe,ad as Xe}from"./index-Chagxl0Z.js";import{_ as Ze}from"./_plugin-vue_export-helper-DlAUqK2U.js";const el={key:0,class:"page"},ll={class:"detail-header"},sl={class:"header-left"},tl={class:"host-title"},al={class:"host-subtitle"},ol={key:0},nl={key:1},il={key:0,class:"header-actions"},ul={class:"detail-grid"},dl={class:"card"},rl={class:"info-list"},vl={class:"info-item"},ml={class:"info-value"},_l={key:0,class:"info-item"},pl={class:"info-value"},cl={class:"info-item"},fl={class:"info-value"},yl={key:1,class:"info-item"},hl={class:"info-value"},kl={key:2,class:"info-item"},gl={class:"info-value text-muted"},Vl={key:0,class:"card"},bl={class:"status-pills"},wl={key:0,class:"status-pill"},xl={class:"sp-info"},Sl={class:"sp-title"},Cl={class:"sp-bar"},Ul={class:"sp-num"},Ml={key:1,class:"status-pill"},$l={class:"sp-info"},Dl={class:"sp-title"},Tl={class:"sp-bar"},Hl={class:"sp-num"},Pl={key:2,class:"status-pill disk-multi"},Rl={class:"sp-info"},zl={class:"sp-title"},El={class:"sp-bar"},Il={class:"sp-num"},Nl={class:"sp-info multi-disk-info"},ql={class:"dd-mount"},Bl={class:"dd-bar-wrap"},Ll={class:"dd-bar"},Al={class:"dd-val"},Fl={class:"dd-pct"},Kl={key:0,class:"uptime-line"},Ol={key:1,class:"card"},Wl={key:0,class:"sync-actions"},Gl={class:"ssh-actions"},Yl={key:1,class:"ssh-result"},jl={class:"result-grid"},Jl={class:"result-item"},Ql={class:"rv"},Xl={class:"result-item"},Zl={class:"rv"},es={class:"result-item"},ls={class:"rv"},ss={class:"result-item"},ts={class:"rv"},as={class:"result-item"},os={class:"rv"},ns={class:"result-item"},is={class:"rv"},us={class:"result-item full"},ds={class:"rv"},rs={class:"card"},vs={class:"card-title"},ms={key:0,class:"service-list"},_s={class:"service-main"},ps={class:"service-name"},cs={class:"service-port"},fs={key:0,class:"service-target"},ys={key:0,class:"target-note"},hs={key:1,class:"service-note"},ks={key:2,class:"service-actions"},gs={key:2,class:"card"},Vs={class:"offline-stats"},bs={class:"stat-box"},ws={class:"stat-num"},xs={class:"stat-box"},Ss={class:"stat-num"},Cs={key:0,class:"stat-box"},Us={class:"stat-reason"},Ms={key:0,class:"offline-logs"},$s={class:"log-time"},Ds={class:"log-reason"},Ts={key:0,class:"log-dur"},Hs={key:1,class:"log-dur pending"},Ps={key:3,class:"card"},Rs={class:"card-title"},zs={key:0,class:"rel-list"},Es={class:"rel-arrow"},Is={class:"rel-host"},Ns={class:"rel-host"},qs={class:"rel-meta"},Bs={key:0,class:"rel-port"},Ls={key:1,class:"rel-note"},As={class:"rel-actions"},Fs={__name:"MachineDetail",setup(Ks){const pe=Ee(),ce=Ne(),y=Ie().is_admin,w=pe.params.id,n=V(null),j=V([]),J=V([]),H=V([]),Q=V([]),I=V(!1),c=V({}),N=V(!1),$=V({username:"",password:""}),b=V(null),P=V(!1),q=V(!1),h=V({}),B=V(!1),k=V({}),fe=Oe(()=>{const a={};return H.value.forEach(e=>a[e.id]=e.hostname),a});let X=null;Me(async()=>{if(await L(),await F(),y){await K();const e=await qe();H.value=e.data}await $e();const a=De||1e4;a>0&&(X=setInterval(async()=>{await L(),await F(),y&&await K()},a))}),Te(()=>{X&&clearInterval(X)});async function L(){const a=await He(w);if(n.value=a.data.machine,y){const e=await Be(w);Q.value=e.data}n.value&&(n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime)?b.value={hostname:n.value.hostname,os_version:n.value.os_version,cpu:n.value.cpu_info,memory:n.value.memory_info,disk:n.value.disk_info,uptime:n.value.uptime,listen_ports:n.value.listen_ports?n.value.listen_ports.split(",").map(e=>e.trim()).filter(Boolean):[]}:b.value=null}async function F(){const a=await Pe(w);j.value=a.data}async function K(){const a=await Le(),e={};H.value.forEach(r=>e[r.id]=r.hostname),J.value=a.data.filter(r=>r.source_machine_id==w||r.target_machine_id==w).map(r=>({...r,source_hostname:e[r.source_machine_id]||r.source_machine_id,target_hostname:e[r.target_machine_id]||r.target_machine_id}))}function ye(a){c.value={...a,ssh_port:a.ssh_port||22,ssh_username:a.ssh_username||"",ssh_password:""},I.value=!0}async function he(){if(n.value.ssh_username){P.value=!0;try{const a=await me(w,{username:n.value.ssh_username,password:""});b.value=a.data;const e={...b.value};delete e.hostname,await _e(w,e),M.success("获取并同步成功"),await L(),P.value=!1;return}catch{P.value=!1}}$.value={username:n.value.ssh_username||"",password:""},N.value=!0}async function ke(){await Ge(c.value.id,c.value),M.success("保存成功"),I.value=!1,L()}async function ge(){try{await le.confirm("确定删除该机器?","提示",{type:"warning"}),await Ke(w),M.success("删除成功"),ce.back()}catch{}}async function Ve(){P.value=!0;try{const a=await me(w,$.value);b.value=a.data,N.value=!1;const e={...b.value};delete e.hostname,await _e(w,e),M.success("获取并同步成功"),await L()}catch{}P.value=!1}function se(a){h.value=a?{...a,target_machine_id:a.target_machine_id||null,target_notes:a.target_notes||""}:{name:"",port:80,protocol:"TCP",notes:"",target_machine_id:null,target_notes:""},q.value=!0}async function be(){const a={...h.value};a.id?await Ye(a.id,a):await je(w,a),M.success("保存成功"),q.value=!1,F()}async function we(a){try{await le.confirm("确定删除该服务?","提示",{type:"warning"}),await Xe(a.id),M.success("删除成功"),F()}catch{}}function te(a){k.value=a?{...a}:{source_machine_id:Number(w),target_machine_id:null,relation_type:"dependency",source_port:null,target_port:null,notes:""},B.value=!0}async function xe(){const a={...k.value};a.id?await Je(a.id,a):await Qe(a),M.success("保存成功"),B.value=!1,K()}async function Se(a){try{await le.confirm("确定删除该关系?","提示",{type:"warning"}),await We(a.id),M.success("删除成功"),K()}catch{}}function Ce(a){return{port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[a]||a}function C(a){if(!a)return 0;const e=a.match(/\((\d+)%\)/)||a.match(/(\d+(?:\.\d+)?)%/);if(e){const r=parseFloat(e[1]);return isNaN(r)?0:Math.min(100,Math.max(0,Math.round(r)))}return 0}function Ue(a){return a>=90?"#f87171":a>=70?"#fbbf24":"#34d399"}function ae(a){return a>=90?"#f87171":a>=80?"#fbbf24":"#60a5fa"}function oe(a){if(!a)return[];const e=[],r=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let v;for(;(v=r.exec(a))!==null;)e.push({mount:v[1],detail:v[2],percent:parseInt(v[3],10)});if(e.length>0)return e;const R=C(a),D=extractDetail(a);return D?[{mount:"",detail:D,percent:R}]:[]}function ne(a){if(!a)return"-";const e=new Date(a);if(isNaN(e.getTime()))return a;const r=v=>String(v).padStart(2,"0");return`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}function ie(a){if(!a&&a!==0)return"-";const e=Number(a);if(e<60)return`${e}秒`;if(e<3600)return`${Math.floor(e/60)}分${e%60}秒`;const r=Math.floor(e/3600),v=Math.floor(e%3600/60);if(r<24)return`${r}时${v}分`;const R=Math.floor(r/24),D=r%24;return`${R}天${D}时${v}分`}return(a,e)=>{var ue;const r=S("el-icon"),v=S("el-button"),R=S("el-tag"),D=S("el-empty"),x=S("el-input"),p=S("el-form-item"),O=S("el-form"),W=S("el-dialog"),G=S("el-input-number"),g=S("el-option"),z=S("el-select");return n.value?(i(),d("div",el,[s("div",ll,[s("div",sl,[t(v,{text:"",circle:"",onClick:e[0]||(e[0]=l=>a.$router.back())},{default:o(()=>[t(r,null,{default:o(()=>[t(m(Ae))]),_:1})]),_:1}),s("div",null,[s("div",tl,[f(u(n.value.hostname)+" ",1),s("span",{class:Re(["status-badge",n.value.is_online?"online":"offline"])},u(n.value.is_online?"在线":"离线"),3)]),s("div",al,[m(y)?(i(),d("span",ol,u(n.value.ip),1)):_("",!0),s("span",null,u(n.value.os_type),1),n.value.os_version?(i(),d("span",nl,u(n.value.os_version),1)):_("",!0)])])]),m(y)?(i(),d("div",il,[t(v,{text:"",icon:m(Z),onClick:e[1]||(e[1]=l=>ye(n.value))},{default:o(()=>[...e[35]||(e[35]=[f("编辑",-1)])]),_:1},8,["icon"]),t(v,{text:"",type:"danger",icon:m(ee),onClick:ge},{default:o(()=>[...e[36]||(e[36]=[f("删除",-1)])]),_:1},8,["icon"])])):_("",!0)]),s("div",ul,[s("div",dl,[e[42]||(e[42]=s("div",{class:"card-title"},"基本信息",-1)),s("div",rl,[s("div",vl,[e[37]||(e[37]=s("span",{class:"info-label"},"IP",-1)),s("span",ml,u(n.value.ip),1)]),m(y)?(i(),d("div",_l,[e[38]||(e[38]=s("span",{class:"info-label"},"MAC",-1)),s("span",pl,u(n.value.mac||"-"),1)])):_("",!0),s("div",cl,[e[39]||(e[39]=s("span",{class:"info-label"},"系统",-1)),s("span",fl,u(n.value.os_type)+" "+u(n.value.os_version||""),1)]),m(y)?(i(),d("div",yl,[e[40]||(e[40]=s("span",{class:"info-label"},"SSH 端口",-1)),s("span",hl,u(n.value.ssh_port||22),1)])):_("",!0),m(y)?(i(),d("div",kl,[e[41]||(e[41]=s("span",{class:"info-label"},"备注",-1)),s("span",gl,u(n.value.notes||"-"),1)])):_("",!0)])]),n.value.cpu_info||n.value.memory_info||n.value.disk_info?(i(),d("div",Vl,[e[47]||(e[47]=s("div",{class:"card-title"},"系统状态",-1)),s("div",bl,[n.value.cpu_info?(i(),d("div",wl,[e[43]||(e[43]=s("div",{class:"sp-icon cpu"},"CPU",-1)),s("div",xl,[s("div",Sl,u(n.value.cpu_info),1),s("div",Cl,[s("div",{class:"sp-fill",style:Y({width:C(n.value.cpu_info)+"%"})},null,4)])]),s("div",Ul,u(C(n.value.cpu_info))+"%",1)])):_("",!0),n.value.memory_info?(i(),d("div",Ml,[e[44]||(e[44]=s("div",{class:"sp-icon mem"},"MEM",-1)),s("div",$l,[s("div",Dl,u(n.value.memory_info),1),s("div",Tl,[s("div",{class:"sp-fill",style:Y({width:C(n.value.memory_info)+"%",background:Ue(C(n.value.memory_info))})},null,4)])]),s("div",Hl,u(C(n.value.memory_info))+"%",1)])):_("",!0),n.value.disk_info?(i(),d("div",Pl,[oe(n.value.disk_info).length<=1?(i(),d(U,{key:0},[e[45]||(e[45]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",Rl,[s("div",zl,u(n.value.disk_info),1),s("div",El,[s("div",{class:"sp-fill",style:Y({width:C(n.value.disk_info)+"%",background:ae(C(n.value.disk_info))})},null,4)])]),s("div",Il,u(C(n.value.disk_info))+"%",1)],64)):(i(),d(U,{key:1},[e[46]||(e[46]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",Nl,[(i(!0),d(U,null,T(oe(n.value.disk_info),(l,A)=>(i(),d("div",{key:A,class:"detail-disk-item"},[s("span",ql,u(l.mount),1),s("div",Bl,[s("div",Ll,[s("div",{class:"dd-fill",style:Y({width:l.percent+"%",background:ae(l.percent)})},null,4)])]),s("span",Al,u(l.detail),1),s("span",Fl,u(l.percent)+"%",1)]))),128))])],64))])):_("",!0)]),n.value.uptime?(i(),d("div",Kl,[t(r,null,{default:o(()=>[t(m(Fe))]),_:1}),s("span",null,"运行时间 "+u(n.value.uptime),1)])):_("",!0)])):_("",!0),m(y)?(i(),d("div",Ol,[e[56]||(e[56]=s("div",{class:"card-title"},"SSH 系统信息",-1)),n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime?(i(),d("div",Wl,[t(R,{size:"small",effect:"plain",round:""},{default:o(()=>[f("上次同步 "+u(ne(n.value.ssh_synced_at)),1)]),_:1})])):_("",!0),s("div",Gl,[t(v,{type:"primary",icon:m(ze),onClick:he},{default:o(()=>[...e[48]||(e[48]=[f("获取系统信息",-1)])]),_:1},8,["icon"])]),b.value?(i(),d("div",Yl,[s("div",jl,[s("div",Jl,[e[49]||(e[49]=s("span",{class:"rl"},"主机名",-1)),s("span",Ql,u(b.value.hostname),1)]),s("div",Xl,[e[50]||(e[50]=s("span",{class:"rl"},"系统版本",-1)),s("span",Zl,u(b.value.os_version),1)]),s("div",es,[e[51]||(e[51]=s("span",{class:"rl"},"CPU",-1)),s("span",ls,u(b.value.cpu),1)]),s("div",ss,[e[52]||(e[52]=s("span",{class:"rl"},"内存",-1)),s("span",ts,u(b.value.memory),1)]),s("div",as,[e[53]||(e[53]=s("span",{class:"rl"},"磁盘",-1)),s("span",os,u(b.value.disk),1)]),s("div",ns,[e[54]||(e[54]=s("span",{class:"rl"},"运行时间",-1)),s("span",is,u(b.value.uptime),1)]),s("div",us,[e[55]||(e[55]=s("span",{class:"rl"},"监听端口",-1)),s("span",ds,u((ue=b.value.listen_ports)==null?void 0:ue.join(", ")),1)])])])):_("",!0)])):_("",!0),s("div",rs,[s("div",vs,[e[58]||(e[58]=f(" 服务列表 ",-1)),m(y)?(i(),E(v,{key:0,size:"small",type:"primary",icon:m(de),onClick:e[2]||(e[2]=l=>se())},{default:o(()=>[...e[57]||(e[57]=[f("添加服务",-1)])]),_:1},8,["icon"])):_("",!0)]),j.value.length?(i(),d("div",ms,[(i(!0),d(U,null,T(j.value,l=>(i(),d("div",{key:l.id,class:"service-row"},[s("div",_s,[s("div",ps,u(l.name),1),s("div",cs,u(l.port)+" / "+u(l.protocol),1)]),m(y)&&l.target_machine_id?(i(),d("div",fs,[t(r,null,{default:o(()=>[t(m(re))]),_:1}),s("span",null,u(fe.value[l.target_machine_id]||l.target_machine_id),1),l.target_notes?(i(),d("span",ys,u(l.target_notes),1)):_("",!0)])):_("",!0),m(y)&&l.notes?(i(),d("div",hs,u(l.notes),1)):_("",!0),m(y)?(i(),d("div",ks,[t(v,{text:"",size:"small",icon:m(Z),onClick:ve(A=>se(l),["stop"])},{default:o(()=>[...e[59]||(e[59]=[f("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:m(ee),onClick:ve(A=>we(l),["stop"])},{default:o(()=>[...e[60]||(e[60]=[f("删除",-1)])]),_:1},8,["icon","onClick"])])):_("",!0)]))),128))])):(i(),E(D,{key:1,description:"暂无服务","image-size":80}))]),m(y)?(i(),d("div",gs,[e[65]||(e[65]=s("div",{class:"card-title"},"离线统计",-1)),s("div",Vs,[s("div",bs,[s("div",ws,u(n.value.offline_count||0),1),e[61]||(e[61]=s("div",{class:"stat-label"},"离线次数",-1))]),s("div",xs,[s("div",Ss,u(ie(n.value.total_offline_seconds)),1),e[62]||(e[62]=s("div",{class:"stat-label"},"累计离线时长",-1))]),n.value.last_offline_reason?(i(),d("div",Cs,[s("div",Us,u(n.value.last_offline_reason),1),e[63]||(e[63]=s("div",{class:"stat-label"},"上次离线原因",-1))])):_("",!0)]),Q.value.length?(i(),d("div",Ms,[e[64]||(e[64]=s("div",{class:"log-title"},"最近离线记录",-1)),(i(!0),d(U,null,T(Q.value.slice(0,5),l=>(i(),d("div",{key:l.id,class:"log-row"},[s("span",$s,u(ne(l.started_at)),1),s("span",Ds,u(l.reason||"未知原因"),1),l.duration_seconds!==null&&l.duration_seconds!==void 0?(i(),d("span",Ts,"持续 "+u(ie(l.duration_seconds)),1)):(i(),d("span",Hs,"未恢复"))]))),128))])):_("",!0)])):_("",!0),m(y)?(i(),d("div",Ps,[s("div",Rs,[e[67]||(e[67]=f(" 关联关系 ",-1)),t(v,{size:"small",type:"primary",icon:m(de),onClick:e[3]||(e[3]=l=>te())},{default:o(()=>[...e[66]||(e[66]=[f("添加关系",-1)])]),_:1},8,["icon"])]),J.value.length?(i(),d("div",zs,[(i(!0),d(U,null,T(J.value,l=>(i(),d("div",{key:l.id,class:"rel-row"},[s("div",Es,[s("span",Is,u(l.source_hostname),1),t(r,null,{default:o(()=>[t(m(re))]),_:1}),s("span",Ns,u(l.target_hostname),1)]),s("div",qs,[t(R,{size:"small",effect:"plain",round:""},{default:o(()=>[f(u(Ce(l.relation_type)),1)]),_:2},1024),l.source_port?(i(),d("span",Bs,u(l.source_port)+" → "+u(l.target_port||"-"),1)):_("",!0),l.notes?(i(),d("span",Ls,u(l.notes),1)):_("",!0)]),s("div",As,[t(v,{text:"",size:"small",icon:m(Z),onClick:A=>te(l)},{default:o(()=>[...e[68]||(e[68]=[f("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:m(ee),onClick:A=>Se(l)},{default:o(()=>[...e[69]||(e[69]=[f("删除",-1)])]),_:1},8,["icon","onClick"])])]))),128))])):(i(),E(D,{key:1,description:"暂无关系","image-size":80}))])):_("",!0)]),t(W,{modelValue:N.value,"onUpdate:modelValue":e[7]||(e[7]=l=>N.value=l),title:"SSH 获取系统信息",width:"360px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[6]||(e[6]=l=>N.value=!1)},{default:o(()=>[...e[70]||(e[70]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",loading:P.value,onClick:Ve},{default:o(()=>[...e[71]||(e[71]=[f("连接",-1)])]),_:1},8,["loading"])]),default:o(()=>[t(O,{model:$.value,"label-width":"80px"},{default:o(()=>[t(p,{label:"用户名"},{default:o(()=>[t(x,{modelValue:$.value.username,"onUpdate:modelValue":e[4]||(e[4]=l=>$.value.username=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"密码"},{default:o(()=>[t(x,{modelValue:$.value.password,"onUpdate:modelValue":e[5]||(e[5]=l=>$.value.password=l),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:I.value,"onUpdate:modelValue":e[18]||(e[18]=l=>I.value=l),title:"编辑机器",width:"480px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[17]||(e[17]=l=>I.value=!1)},{default:o(()=>[...e[72]||(e[72]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:ke},{default:o(()=>[...e[73]||(e[73]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:c.value,"label-width":"90px"},{default:o(()=>[t(p,{label:"主机名",required:""},{default:o(()=>[t(x,{modelValue:c.value.hostname,"onUpdate:modelValue":e[8]||(e[8]=l=>c.value.hostname=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"IP",required:""},{default:o(()=>[t(x,{modelValue:c.value.ip,"onUpdate:modelValue":e[9]||(e[9]=l=>c.value.ip=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"MAC"},{default:o(()=>[t(x,{modelValue:c.value.mac,"onUpdate:modelValue":e[10]||(e[10]=l=>c.value.mac=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH端口"},{default:o(()=>[t(G,{modelValue:c.value.ssh_port,"onUpdate:modelValue":e[11]||(e[11]=l=>c.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH用户"},{default:o(()=>[t(x,{modelValue:c.value.ssh_username,"onUpdate:modelValue":e[12]||(e[12]=l=>c.value.ssh_username=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"SSH密码"},{default:o(()=>[t(x,{modelValue:c.value.ssh_password,"onUpdate:modelValue":e[13]||(e[13]=l=>c.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),t(p,{label:"系统",required:""},{default:o(()=>[t(z,{modelValue:c.value.os_type,"onUpdate:modelValue":e[14]||(e[14]=l=>c.value.os_type=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"Linux",value:"Linux"}),t(g,{label:"Windows",value:"Windows"}),t(g,{label:"macOS",value:"macOS"}),t(g,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"系统版本"},{default:o(()=>[t(x,{modelValue:c.value.os_version,"onUpdate:modelValue":e[15]||(e[15]=l=>c.value.os_version=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:c.value.notes,"onUpdate:modelValue":e[16]||(e[16]=l=>c.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:q.value,"onUpdate:modelValue":e[26]||(e[26]=l=>q.value=l),title:"编辑服务",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[25]||(e[25]=l=>q.value=!1)},{default:o(()=>[...e[74]||(e[74]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:be},{default:o(()=>[...e[75]||(e[75]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:h.value,"label-width":"90px"},{default:o(()=>[t(p,{label:"名称",required:""},{default:o(()=>[t(x,{modelValue:h.value.name,"onUpdate:modelValue":e[19]||(e[19]=l=>h.value.name=l)},null,8,["modelValue"])]),_:1}),t(p,{label:"端口",required:""},{default:o(()=>[t(G,{modelValue:h.value.port,"onUpdate:modelValue":e[20]||(e[20]=l=>h.value.port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"协议"},{default:o(()=>[t(z,{modelValue:h.value.protocol,"onUpdate:modelValue":e[21]||(e[21]=l=>h.value.protocol=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"TCP",value:"TCP"}),t(g,{label:"UDP",value:"UDP"}),t(g,{label:"HTTP",value:"HTTP"}),t(g,{label:"HTTPS",value:"HTTPS"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"指向机器"},{default:o(()=>[t(z,{modelValue:h.value.target_machine_id,"onUpdate:modelValue":e[22]||(e[22]=l=>h.value.target_machine_id=l),clearable:"",style:{width:"100%"},placeholder:"选择目标机器(拓扑连线用)"},{default:o(()=>[(i(!0),d(U,null,T(H.value.filter(l=>l.id!=m(w)),l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"指向备注"},{default:o(()=>[t(x,{modelValue:h.value.target_notes,"onUpdate:modelValue":e[23]||(e[23]=l=>h.value.target_notes=l),placeholder:"如:反向代理到目标"},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:h.value.notes,"onUpdate:modelValue":e[24]||(e[24]=l=>h.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:B.value,"onUpdate:modelValue":e[34]||(e[34]=l=>B.value=l),title:"编辑关系",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[33]||(e[33]=l=>B.value=!1)},{default:o(()=>[...e[76]||(e[76]=[f("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:xe},{default:o(()=>[...e[77]||(e[77]=[f("保存",-1)])]),_:1})]),default:o(()=>[t(O,{model:k.value,"label-width":"100px"},{default:o(()=>[t(p,{label:"源机器",required:""},{default:o(()=>[t(z,{modelValue:k.value.source_machine_id,"onUpdate:modelValue":e[27]||(e[27]=l=>k.value.source_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,T(H.value,l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"目标机器",required:""},{default:o(()=>[t(z,{modelValue:k.value.target_machine_id,"onUpdate:modelValue":e[28]||(e[28]=l=>k.value.target_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,T(H.value,l=>(i(),E(g,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"关系类型",required:""},{default:o(()=>[t(z,{modelValue:k.value.relation_type,"onUpdate:modelValue":e[29]||(e[29]=l=>k.value.relation_type=l),style:{width:"100%"}},{default:o(()=>[t(g,{label:"端口转发",value:"port_forward"}),t(g,{label:"依赖",value:"dependency"}),t(g,{label:"主从",value:"primary_secondary"}),t(g,{label:"自定义",value:"custom"})]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"源端口"},{default:o(()=>[t(G,{modelValue:k.value.source_port,"onUpdate:modelValue":e[30]||(e[30]=l=>k.value.source_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"目标端口"},{default:o(()=>[t(G,{modelValue:k.value.target_port,"onUpdate:modelValue":e[31]||(e[31]=l=>k.value.target_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:o(()=>[t(x,{modelValue:k.value.notes,"onUpdate:modelValue":e[32]||(e[32]=l=>k.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])):_("",!0)}}},Gs=Ze(Fs,[["__scopeId","data-v-c1fe3f9d"]]);export{Gs as default}; diff --git a/web/dist/assets/MachineDetail-OXzzIeiz.css b/web/dist/assets/MachineDetail-OXzzIeiz.css deleted file mode 100644 index eeb0962..0000000 --- a/web/dist/assets/MachineDetail-OXzzIeiz.css +++ /dev/null @@ -1 +0,0 @@ -.detail-header[data-v-8e39badc]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.header-left[data-v-8e39badc]{display:flex;align-items:center;gap:12px}.host-title[data-v-8e39badc]{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.status-badge[data-v-8e39badc]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.status-badge.online[data-v-8e39badc]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-8e39badc]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-8e39badc]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-8e39badc]{background:#f8717126;color:#f87171}.host-subtitle[data-v-8e39badc]{margin-top:4px;font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.host-subtitle span+span[data-v-8e39badc]:before{content:"·";margin-right:8px;color:var(--text-muted)}.detail-grid[data-v-8e39badc]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>.card[data-v-8e39badc]{margin-bottom:0}@media (max-width: 900px){.detail-grid[data-v-8e39badc]{grid-template-columns:1fr}}.info-list[data-v-8e39badc]{display:flex;flex-direction:column;gap:10px}.info-item[data-v-8e39badc]{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:var(--surface-hover);border-radius:8px;font-size:13px;transition:background .2s ease}.info-label[data-v-8e39badc]{color:var(--text-secondary)}.info-value[data-v-8e39badc]{font-weight:500;color:var(--text)}.text-muted[data-v-8e39badc]{color:var(--text-muted)}.status-pills[data-v-8e39badc]{display:flex;flex-direction:column;gap:10px}.status-pill[data-v-8e39badc]{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface-hover);border-radius:10px;transition:background .2s ease}.sp-icon[data-v-8e39badc]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;flex-shrink:0}.sp-icon.cpu[data-v-8e39badc]{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.sp-icon.mem[data-v-8e39badc]{background:linear-gradient(135deg,#22c55e,#4ade80)}.sp-icon.disk[data-v-8e39badc]{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.sp-info[data-v-8e39badc]{flex:1;min-width:0}.sp-title[data-v-8e39badc]{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.sp-bar[data-v-8e39badc]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.sp-fill[data-v-8e39badc]{height:100%;border-radius:3px;background:#3b82f6;transition:width .3s ease}.sp-num[data-v-8e39badc]{font-size:14px;font-weight:700;color:var(--text);min-width:36px;text-align:right}.status-pill.disk-multi[data-v-8e39badc]{flex-wrap:wrap}.multi-disk-info[data-v-8e39badc]{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;max-height:220px;overflow-y:auto}.detail-disk-item[data-v-8e39badc]{display:flex;align-items:center;gap:10px;font-size:12px}.dd-mount[data-v-8e39badc]{min-width:50px;color:var(--text-secondary);font-weight:500}.dd-bar-wrap[data-v-8e39badc]{flex:1;min-width:80px}.dd-bar[data-v-8e39badc]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.dd-fill[data-v-8e39badc]{height:100%;border-radius:3px}.dd-val[data-v-8e39badc]{white-space:nowrap;color:var(--text-secondary)}.dd-pct[data-v-8e39badc]{min-width:32px;text-align:right;font-weight:700;color:var(--text)}.load-line[data-v-8e39badc],.uptime-line[data-v-8e39badc]{margin-top:14px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);padding:8px 10px;background:var(--surface-hover);border-radius:8px;transition:background .2s ease}.sync-actions[data-v-8e39badc]{margin-bottom:10px}.ssh-actions[data-v-8e39badc]{margin-bottom:12px}.ssh-result[data-v-8e39badc]{background:var(--surface-hover);border-radius:10px;padding:12px;transition:background .2s ease}.result-grid[data-v-8e39badc]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-item[data-v-8e39badc]{display:flex;flex-direction:column;gap:2px}.result-item.full[data-v-8e39badc]{grid-column:1 / -1}.rl[data-v-8e39badc]{font-size:11px;color:var(--text-muted)}.rv[data-v-8e39badc]{font-size:13px;color:var(--text);font-weight:500}.service-list[data-v-8e39badc],.rel-list[data-v-8e39badc]{display:flex;flex-direction:column;gap:10px}.service-row[data-v-8e39badc]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.service-main[data-v-8e39badc]{display:flex;align-items:center;gap:10px}.service-name[data-v-8e39badc]{font-weight:600;font-size:14px}.service-port[data-v-8e39badc]{font-size:12px;color:var(--text-muted);background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border)}.service-target[data-v-8e39badc]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--primary)}.target-note[data-v-8e39badc]{color:var(--text-muted)}.service-note[data-v-8e39badc]{font-size:12px;color:var(--text-secondary);flex:1 1 100%}.service-actions[data-v-8e39badc]{display:flex;gap:6px}.rel-row[data-v-8e39badc]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.rel-arrow[data-v-8e39badc]{display:flex;align-items:center;gap:8px;font-size:14px}.rel-host[data-v-8e39badc]{font-weight:600}.rel-meta[data-v-8e39badc]{display:flex;align-items:center;gap:8px;font-size:12px}.rel-port[data-v-8e39badc]{background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border);color:var(--text-secondary)}.rel-note[data-v-8e39badc]{color:var(--text-muted)}.rel-actions[data-v-8e39badc]{display:flex;gap:6px}.offline-stats[data-v-8e39badc]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}.stat-box[data-v-8e39badc]{background:var(--surface-hover);border-radius:10px;padding:12px;text-align:center}.stat-num[data-v-8e39badc]{font-size:20px;font-weight:700;color:var(--text)}.stat-reason[data-v-8e39badc]{font-size:13px;font-weight:600;color:var(--danger);word-break:break-all}.stat-label[data-v-8e39badc]{font-size:12px;color:var(--text-muted);margin-top:4px}.offline-logs[data-v-8e39badc]{background:var(--surface-hover);border-radius:10px;padding:12px}.log-title[data-v-8e39badc]{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.log-row[data-v-8e39badc]{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.log-row[data-v-8e39badc]:last-child{border-bottom:none}.log-time[data-v-8e39badc]{color:var(--text-muted);min-width:140px}.log-reason[data-v-8e39badc]{flex:1;color:var(--text-secondary)}.log-dur[data-v-8e39badc]{color:var(--text);font-weight:500}.log-dur.pending[data-v-8e39badc]{color:var(--warning)} diff --git a/web/dist/assets/MachineDetail-PZRasqha.js b/web/dist/assets/MachineDetail-PZRasqha.js new file mode 100644 index 0000000..12c2a25 --- /dev/null +++ b/web/dist/assets/MachineDetail-PZRasqha.js @@ -0,0 +1 @@ +import{k as Te,I as He,J as Pe,K as Re,W as ze,X as Ee,o as i,c as d,a as s,b as t,w as o,h as p,t as u,p as Ie,e as m,n as _,m as $,Y as Ne,Z as qe,_ as le,$ as se,S as Y,N as U,O as P,a0 as Be,M as re,a1 as Le,r as y,d as S,G as Oe,u as Ae,L as Ke,a2 as Fe,a3 as Ge,a4 as We,a5 as je,a6 as ve,a7 as me,a8 as J,a9 as Ye,E as C,aa as _e,ab as pe,q as Je,ac as Xe,T as Ze,ad as Qe,ae as el,af as ll,ag as sl,ah as tl,ai as al,aj as ol}from"./index-BFjouPFU.js";import{_ as nl}from"./_plugin-vue_export-helper-DlAUqK2U.js";const il={key:0,class:"page"},ul={class:"detail-header"},dl={class:"header-left"},rl={class:"host-title"},vl={class:"host-subtitle"},ml={key:0},_l={key:1},pl={key:0,class:"header-actions"},cl={class:"detail-grid"},fl={class:"card"},yl={class:"info-list"},hl={class:"info-item"},gl={class:"info-value"},kl={key:0,class:"info-item"},Vl={class:"info-value"},wl={class:"info-item"},bl={class:"info-value"},xl={key:1,class:"info-item"},Sl={class:"info-value"},Cl={key:2,class:"info-item"},Ml={class:"info-value text-muted"},Ul={key:0,class:"card"},$l={class:"status-pills"},Dl={key:0,class:"status-pill"},Tl={class:"sp-info"},Hl={class:"sp-title"},Pl={class:"sp-bar"},Rl={class:"sp-num"},zl={key:1,class:"status-pill"},El={class:"sp-info"},Il={class:"sp-title"},Nl={class:"sp-bar"},ql={class:"sp-num"},Bl={key:2,class:"status-pill disk-multi"},Ll={class:"sp-info"},Ol={class:"sp-title"},Al={class:"sp-bar"},Kl={class:"sp-num"},Fl={class:"sp-info multi-disk-info"},Gl={class:"dd-mount"},Wl={class:"dd-bar-wrap"},jl={class:"dd-bar"},Yl={class:"dd-val"},Jl={class:"dd-pct"},Xl={key:0,class:"uptime-line"},Zl={key:1,class:"card"},Ql={key:0,class:"sync-actions"},es={class:"ssh-actions"},ls={key:1,class:"ssh-result"},ss={class:"result-grid"},ts={class:"result-item"},as={class:"rv"},os={class:"result-item"},ns={class:"rv"},is={class:"result-item"},us={class:"rv"},ds={class:"result-item"},rs={class:"rv"},vs={class:"result-item"},ms={class:"rv"},_s={class:"result-item"},ps={class:"rv"},cs={class:"result-item full"},fs={class:"rv"},ys={class:"card"},hs={class:"card-title"},gs={key:0,class:"service-list"},ks={class:"service-main"},Vs={class:"service-name"},ws={class:"service-port"},bs={key:0,class:"service-target"},xs={key:0,class:"target-note"},Ss={key:1,class:"service-note"},Cs={key:2,class:"service-actions"},Ms={key:2,class:"card"},Us={class:"offline-stats"},$s={class:"stat-box"},Ds={class:"stat-num"},Ts={class:"stat-box"},Hs={class:"stat-num"},Ps={key:0,class:"stat-box"},Rs={class:"stat-reason"},zs={key:0,class:"offline-logs"},Es={class:"log-time"},Is={class:"log-reason"},Ns={key:0,class:"log-dur"},qs={key:1,class:"log-dur pending"},Bs={key:3,class:"card"},Ls={class:"card-title"},Os={key:0,class:"rel-list"},As={class:"rel-arrow"},Ks={class:"rel-host"},Fs={class:"rel-host"},Gs={class:"rel-meta"},Ws={key:0,class:"rel-port"},js={key:1,class:"rel-note"},Ys={class:"rel-actions"},Js={__name:"MachineDetail",setup(Xs){const ce=Le(),fe=Ae(),h=Oe().is_admin,g=ce.params.id,n=y(null),X=y([]),Z=y([]),R=y(!1),z=y([]),Q=y([]),q=y(!1),f=y({}),B=y(!1),D=y({username:"",password:""}),b=y(null),E=y(!1),L=y(!1),k=y({}),O=y(!1),V=y({}),ye=Je(()=>{const a={};return z.value.forEach(e=>a[e.id]=e.hostname),a});let ee=null;Te(async()=>{if(await T(),await K(),h){await F();const e=await Ke();z.value=e.data}await He();const a=Pe||1e4;a>0&&(ee=setInterval(async()=>{await T(),await K(),h&&await F()},a))}),Re(()=>{ee&&clearInterval(ee)});async function T(){const a=await ze(g);if(n.value=a.data.machine,h){const e=await Fe(g);Q.value=e.data}n.value&&(n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime)?b.value={hostname:n.value.hostname,os_version:n.value.os_version,cpu:n.value.cpu_info,memory:n.value.memory_info,disk:n.value.disk_info,uptime:n.value.uptime,listen_ports:n.value.listen_ports?n.value.listen_ports.split(",").map(e=>e.trim()).filter(Boolean):[]}:b.value=null}async function K(){const a=await Ee(g);X.value=a.data}async function F(){const a=await Ge(),e={};z.value.forEach(r=>e[r.id]=r.hostname),Z.value=a.data.filter(r=>r.source_machine_id==g||r.target_machine_id==g).map(r=>({...r,source_hostname:e[r.source_machine_id]||r.source_machine_id,target_hostname:e[r.target_machine_id]||r.target_machine_id}))}function he(a){f.value={...a,ssh_port:a.ssh_port||22,ssh_username:a.ssh_username||"",ssh_password:""},q.value=!0}async function ge(){if(n.value.ssh_username){E.value=!0;try{const a=await _e(g,{username:n.value.ssh_username,password:""});b.value=a.data;const e={...b.value};delete e.hostname,await pe(g,e),C.success("获取并同步成功"),await T(),E.value=!1;return}catch{E.value=!1}}D.value={username:n.value.ssh_username||"",password:""},B.value=!0}async function ke(){await Ze(f.value.id,f.value),C.success("保存成功"),q.value=!1,T()}async function Ve(){R.value=!0;try{await tl(g),C.success("虚拟机已启动"),T()}catch{}R.value=!1}async function we(){try{await J.confirm("确定要关闭虚拟机吗?","确认关闭",{type:"warning"}),R.value=!0,await al(g),C.success("虚拟机已关闭"),T()}catch{}R.value=!1}async function be(){try{await J.confirm("确定删除该机器?","提示",{type:"warning"}),await Ye(g),C.success("删除成功"),fe.back()}catch{}}async function xe(){E.value=!0;try{const a=await _e(g,D.value);b.value=a.data,B.value=!1;const e={...b.value};delete e.hostname,await pe(g,e),C.success("获取并同步成功"),await T()}catch{}E.value=!1}function te(a){k.value=a?{...a,target_machine_id:a.target_machine_id||null,target_notes:a.target_notes||""}:{name:"",port:80,protocol:"TCP",notes:"",target_machine_id:null,target_notes:""},L.value=!0}async function Se(){const a={...k.value};a.id?await Qe(a.id,a):await el(g,a),C.success("保存成功"),L.value=!1,K()}async function Ce(a){try{await J.confirm("确定删除该服务?","提示",{type:"warning"}),await ol(a.id),C.success("删除成功"),K()}catch{}}function ae(a){V.value=a?{...a}:{source_machine_id:Number(g),target_machine_id:null,relation_type:"dependency",source_port:null,target_port:null,notes:""},O.value=!0}async function Me(){const a={...V.value};a.id?await ll(a.id,a):await sl(a),C.success("保存成功"),O.value=!1,F()}async function Ue(a){try{await J.confirm("确定删除该关系?","提示",{type:"warning"}),await Xe(a.id),C.success("删除成功"),F()}catch{}}function $e(a){return{port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[a]||a}function M(a){if(!a)return 0;const e=a.match(/\((\d+)%\)/)||a.match(/(\d+(?:\.\d+)?)%/);if(e){const r=parseFloat(e[1]);return isNaN(r)?0:Math.min(100,Math.max(0,Math.round(r)))}return 0}function De(a){return a>=90?"#f87171":a>=70?"#fbbf24":"#34d399"}function oe(a){return a>=90?"#f87171":a>=80?"#fbbf24":"#60a5fa"}function ne(a){if(!a)return[];const e=[],r=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let v;for(;(v=r.exec(a))!==null;)e.push({mount:v[1],detail:v[2],percent:parseInt(v[3],10)});if(e.length>0)return e;const I=M(a),H=extractDetail(a);return H?[{mount:"",detail:H,percent:I}]:[]}function ie(a){if(!a)return"-";const e=new Date(a);if(isNaN(e.getTime()))return a;const r=v=>String(v).padStart(2,"0");return`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}function ue(a){if(!a&&a!==0)return"-";const e=Number(a);if(e<60)return`${e}秒`;if(e<3600)return`${Math.floor(e/60)}分${e%60}秒`;const r=Math.floor(e/3600),v=Math.floor(e%3600/60);if(r<24)return`${r}时${v}分`;const I=Math.floor(r/24),H=r%24;return`${I}天${H}时${v}分`}return(a,e)=>{var de;const r=S("el-icon"),v=S("el-button"),I=S("el-tag"),H=S("el-empty"),x=S("el-input"),c=S("el-form-item"),G=S("el-form"),W=S("el-dialog"),j=S("el-input-number"),w=S("el-option"),N=S("el-select");return n.value?(i(),d("div",il,[s("div",ul,[s("div",dl,[t(v,{text:"",circle:"",onClick:e[0]||(e[0]=l=>a.$router.back())},{default:o(()=>[t(r,null,{default:o(()=>[t(m(We))]),_:1})]),_:1}),s("div",null,[s("div",rl,[p(u(n.value.hostname)+" ",1),s("span",{class:Ie(["status-badge",n.value.is_online?"online":"offline"])},u(n.value.is_online?"在线":"离线"),3)]),s("div",vl,[m(h)?(i(),d("span",ml,u(n.value.ip),1)):_("",!0),s("span",null,u(n.value.os_type),1),n.value.os_version?(i(),d("span",_l,u(n.value.os_version),1)):_("",!0)])])]),m(h)?(i(),d("div",pl,[n.value.pve_host_id&&n.value.pve_vmid?(i(),$(v,{key:0,type:"success",icon:m(Ne),loading:R.value,onClick:Ve},{default:o(()=>[...e[35]||(e[35]=[p("启动",-1)])]),_:1},8,["icon","loading"])):_("",!0),n.value.pve_host_id&&n.value.pve_vmid?(i(),$(v,{key:1,type:"warning",icon:m(qe),loading:R.value,onClick:we},{default:o(()=>[...e[36]||(e[36]=[p("关闭",-1)])]),_:1},8,["icon","loading"])):_("",!0),t(v,{text:"",icon:m(le),onClick:e[1]||(e[1]=l=>he(n.value))},{default:o(()=>[...e[37]||(e[37]=[p("编辑",-1)])]),_:1},8,["icon"]),t(v,{text:"",type:"danger",icon:m(se),onClick:be},{default:o(()=>[...e[38]||(e[38]=[p("删除",-1)])]),_:1},8,["icon"])])):_("",!0)]),s("div",cl,[s("div",fl,[e[44]||(e[44]=s("div",{class:"card-title"},"基本信息",-1)),s("div",yl,[s("div",hl,[e[39]||(e[39]=s("span",{class:"info-label"},"IP",-1)),s("span",gl,u(n.value.ip),1)]),m(h)?(i(),d("div",kl,[e[40]||(e[40]=s("span",{class:"info-label"},"MAC",-1)),s("span",Vl,u(n.value.mac||"-"),1)])):_("",!0),s("div",wl,[e[41]||(e[41]=s("span",{class:"info-label"},"系统",-1)),s("span",bl,u(n.value.os_type)+" "+u(n.value.os_version||""),1)]),m(h)?(i(),d("div",xl,[e[42]||(e[42]=s("span",{class:"info-label"},"SSH 端口",-1)),s("span",Sl,u(n.value.ssh_port||22),1)])):_("",!0),m(h)?(i(),d("div",Cl,[e[43]||(e[43]=s("span",{class:"info-label"},"备注",-1)),s("span",Ml,u(n.value.notes||"-"),1)])):_("",!0)])]),n.value.cpu_info||n.value.memory_info||n.value.disk_info?(i(),d("div",Ul,[e[49]||(e[49]=s("div",{class:"card-title"},"系统状态",-1)),s("div",$l,[n.value.cpu_info?(i(),d("div",Dl,[e[45]||(e[45]=s("div",{class:"sp-icon cpu"},"CPU",-1)),s("div",Tl,[s("div",Hl,u(n.value.cpu_info),1),s("div",Pl,[s("div",{class:"sp-fill",style:Y({width:M(n.value.cpu_info)+"%"})},null,4)])]),s("div",Rl,u(M(n.value.cpu_info))+"%",1)])):_("",!0),n.value.memory_info?(i(),d("div",zl,[e[46]||(e[46]=s("div",{class:"sp-icon mem"},"MEM",-1)),s("div",El,[s("div",Il,u(n.value.memory_info),1),s("div",Nl,[s("div",{class:"sp-fill",style:Y({width:M(n.value.memory_info)+"%",background:De(M(n.value.memory_info))})},null,4)])]),s("div",ql,u(M(n.value.memory_info))+"%",1)])):_("",!0),n.value.disk_info?(i(),d("div",Bl,[ne(n.value.disk_info).length<=1?(i(),d(U,{key:0},[e[47]||(e[47]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",Ll,[s("div",Ol,u(n.value.disk_info),1),s("div",Al,[s("div",{class:"sp-fill",style:Y({width:M(n.value.disk_info)+"%",background:oe(M(n.value.disk_info))})},null,4)])]),s("div",Kl,u(M(n.value.disk_info))+"%",1)],64)):(i(),d(U,{key:1},[e[48]||(e[48]=s("div",{class:"sp-icon disk"},"DISK",-1)),s("div",Fl,[(i(!0),d(U,null,P(ne(n.value.disk_info),(l,A)=>(i(),d("div",{key:A,class:"detail-disk-item"},[s("span",Gl,u(l.mount),1),s("div",Wl,[s("div",jl,[s("div",{class:"dd-fill",style:Y({width:l.percent+"%",background:oe(l.percent)})},null,4)])]),s("span",Yl,u(l.detail),1),s("span",Jl,u(l.percent)+"%",1)]))),128))])],64))])):_("",!0)]),n.value.uptime?(i(),d("div",Xl,[t(r,null,{default:o(()=>[t(m(je))]),_:1}),s("span",null,"运行时间 "+u(n.value.uptime),1)])):_("",!0)])):_("",!0),m(h)?(i(),d("div",Zl,[e[58]||(e[58]=s("div",{class:"card-title"},"SSH 系统信息",-1)),n.value.cpu_info||n.value.memory_info||n.value.disk_info||n.value.uptime?(i(),d("div",Ql,[t(I,{size:"small",effect:"plain",round:""},{default:o(()=>[p("上次同步 "+u(ie(n.value.ssh_synced_at)),1)]),_:1})])):_("",!0),s("div",es,[t(v,{type:"primary",icon:m(Be),onClick:ge},{default:o(()=>[...e[50]||(e[50]=[p("获取系统信息",-1)])]),_:1},8,["icon"])]),b.value?(i(),d("div",ls,[s("div",ss,[s("div",ts,[e[51]||(e[51]=s("span",{class:"rl"},"主机名",-1)),s("span",as,u(b.value.hostname),1)]),s("div",os,[e[52]||(e[52]=s("span",{class:"rl"},"系统版本",-1)),s("span",ns,u(b.value.os_version),1)]),s("div",is,[e[53]||(e[53]=s("span",{class:"rl"},"CPU",-1)),s("span",us,u(b.value.cpu),1)]),s("div",ds,[e[54]||(e[54]=s("span",{class:"rl"},"内存",-1)),s("span",rs,u(b.value.memory),1)]),s("div",vs,[e[55]||(e[55]=s("span",{class:"rl"},"磁盘",-1)),s("span",ms,u(b.value.disk),1)]),s("div",_s,[e[56]||(e[56]=s("span",{class:"rl"},"运行时间",-1)),s("span",ps,u(b.value.uptime),1)]),s("div",cs,[e[57]||(e[57]=s("span",{class:"rl"},"监听端口",-1)),s("span",fs,u((de=b.value.listen_ports)==null?void 0:de.join(", ")),1)])])])):_("",!0)])):_("",!0),s("div",ys,[s("div",hs,[e[60]||(e[60]=p(" 服务列表 ",-1)),m(h)?(i(),$(v,{key:0,size:"small",type:"primary",icon:m(re),onClick:e[2]||(e[2]=l=>te())},{default:o(()=>[...e[59]||(e[59]=[p("添加服务",-1)])]),_:1},8,["icon"])):_("",!0)]),X.value.length?(i(),d("div",gs,[(i(!0),d(U,null,P(X.value,l=>(i(),d("div",{key:l.id,class:"service-row"},[s("div",ks,[s("div",Vs,u(l.name),1),s("div",ws,u(l.port)+" / "+u(l.protocol),1)]),m(h)&&l.target_machine_id?(i(),d("div",bs,[t(r,null,{default:o(()=>[t(m(ve))]),_:1}),s("span",null,u(ye.value[l.target_machine_id]||l.target_machine_id),1),l.target_notes?(i(),d("span",xs,u(l.target_notes),1)):_("",!0)])):_("",!0),m(h)&&l.notes?(i(),d("div",Ss,u(l.notes),1)):_("",!0),m(h)?(i(),d("div",Cs,[t(v,{text:"",size:"small",icon:m(le),onClick:me(A=>te(l),["stop"])},{default:o(()=>[...e[61]||(e[61]=[p("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:m(se),onClick:me(A=>Ce(l),["stop"])},{default:o(()=>[...e[62]||(e[62]=[p("删除",-1)])]),_:1},8,["icon","onClick"])])):_("",!0)]))),128))])):(i(),$(H,{key:1,description:"暂无服务","image-size":80}))]),m(h)?(i(),d("div",Ms,[e[67]||(e[67]=s("div",{class:"card-title"},"离线统计",-1)),s("div",Us,[s("div",$s,[s("div",Ds,u(n.value.offline_count||0),1),e[63]||(e[63]=s("div",{class:"stat-label"},"离线次数",-1))]),s("div",Ts,[s("div",Hs,u(ue(n.value.total_offline_seconds)),1),e[64]||(e[64]=s("div",{class:"stat-label"},"累计离线时长",-1))]),n.value.last_offline_reason?(i(),d("div",Ps,[s("div",Rs,u(n.value.last_offline_reason),1),e[65]||(e[65]=s("div",{class:"stat-label"},"上次离线原因",-1))])):_("",!0)]),Q.value.length?(i(),d("div",zs,[e[66]||(e[66]=s("div",{class:"log-title"},"最近离线记录",-1)),(i(!0),d(U,null,P(Q.value.slice(0,5),l=>(i(),d("div",{key:l.id,class:"log-row"},[s("span",Es,u(ie(l.started_at)),1),s("span",Is,u(l.reason||"未知原因"),1),l.duration_seconds!==null&&l.duration_seconds!==void 0?(i(),d("span",Ns,"持续 "+u(ue(l.duration_seconds)),1)):(i(),d("span",qs,"未恢复"))]))),128))])):_("",!0)])):_("",!0),m(h)?(i(),d("div",Bs,[s("div",Ls,[e[69]||(e[69]=p(" 关联关系 ",-1)),t(v,{size:"small",type:"primary",icon:m(re),onClick:e[3]||(e[3]=l=>ae())},{default:o(()=>[...e[68]||(e[68]=[p("添加关系",-1)])]),_:1},8,["icon"])]),Z.value.length?(i(),d("div",Os,[(i(!0),d(U,null,P(Z.value,l=>(i(),d("div",{key:l.id,class:"rel-row"},[s("div",As,[s("span",Ks,u(l.source_hostname),1),t(r,null,{default:o(()=>[t(m(ve))]),_:1}),s("span",Fs,u(l.target_hostname),1)]),s("div",Gs,[t(I,{size:"small",effect:"plain",round:""},{default:o(()=>[p(u($e(l.relation_type)),1)]),_:2},1024),l.source_port?(i(),d("span",Ws,u(l.source_port)+" → "+u(l.target_port||"-"),1)):_("",!0),l.notes?(i(),d("span",js,u(l.notes),1)):_("",!0)]),s("div",Ys,[t(v,{text:"",size:"small",icon:m(le),onClick:A=>ae(l)},{default:o(()=>[...e[70]||(e[70]=[p("编辑",-1)])]),_:1},8,["icon","onClick"]),t(v,{text:"",size:"small",type:"danger",icon:m(se),onClick:A=>Ue(l)},{default:o(()=>[...e[71]||(e[71]=[p("删除",-1)])]),_:1},8,["icon","onClick"])])]))),128))])):(i(),$(H,{key:1,description:"暂无关系","image-size":80}))])):_("",!0)]),t(W,{modelValue:B.value,"onUpdate:modelValue":e[7]||(e[7]=l=>B.value=l),title:"SSH 获取系统信息",width:"360px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[6]||(e[6]=l=>B.value=!1)},{default:o(()=>[...e[72]||(e[72]=[p("取消",-1)])]),_:1}),t(v,{type:"primary",loading:E.value,onClick:xe},{default:o(()=>[...e[73]||(e[73]=[p("连接",-1)])]),_:1},8,["loading"])]),default:o(()=>[t(G,{model:D.value,"label-width":"80px"},{default:o(()=>[t(c,{label:"用户名"},{default:o(()=>[t(x,{modelValue:D.value.username,"onUpdate:modelValue":e[4]||(e[4]=l=>D.value.username=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"密码"},{default:o(()=>[t(x,{modelValue:D.value.password,"onUpdate:modelValue":e[5]||(e[5]=l=>D.value.password=l),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:q.value,"onUpdate:modelValue":e[18]||(e[18]=l=>q.value=l),title:"编辑机器",width:"480px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[17]||(e[17]=l=>q.value=!1)},{default:o(()=>[...e[74]||(e[74]=[p("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:ke},{default:o(()=>[...e[75]||(e[75]=[p("保存",-1)])]),_:1})]),default:o(()=>[t(G,{model:f.value,"label-width":"90px"},{default:o(()=>[t(c,{label:"主机名",required:""},{default:o(()=>[t(x,{modelValue:f.value.hostname,"onUpdate:modelValue":e[8]||(e[8]=l=>f.value.hostname=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"IP",required:""},{default:o(()=>[t(x,{modelValue:f.value.ip,"onUpdate:modelValue":e[9]||(e[9]=l=>f.value.ip=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"MAC"},{default:o(()=>[t(x,{modelValue:f.value.mac,"onUpdate:modelValue":e[10]||(e[10]=l=>f.value.mac=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"SSH端口"},{default:o(()=>[t(j,{modelValue:f.value.ssh_port,"onUpdate:modelValue":e[11]||(e[11]=l=>f.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(c,{label:"SSH用户"},{default:o(()=>[t(x,{modelValue:f.value.ssh_username,"onUpdate:modelValue":e[12]||(e[12]=l=>f.value.ssh_username=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"SSH密码"},{default:o(()=>[t(x,{modelValue:f.value.ssh_password,"onUpdate:modelValue":e[13]||(e[13]=l=>f.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),t(c,{label:"系统",required:""},{default:o(()=>[t(N,{modelValue:f.value.os_type,"onUpdate:modelValue":e[14]||(e[14]=l=>f.value.os_type=l),style:{width:"100%"}},{default:o(()=>[t(w,{label:"Linux",value:"Linux"}),t(w,{label:"Windows",value:"Windows"}),t(w,{label:"macOS",value:"macOS"}),t(w,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"系统版本"},{default:o(()=>[t(x,{modelValue:f.value.os_version,"onUpdate:modelValue":e[15]||(e[15]=l=>f.value.os_version=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"备注"},{default:o(()=>[t(x,{modelValue:f.value.notes,"onUpdate:modelValue":e[16]||(e[16]=l=>f.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:L.value,"onUpdate:modelValue":e[26]||(e[26]=l=>L.value=l),title:"编辑服务",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[25]||(e[25]=l=>L.value=!1)},{default:o(()=>[...e[76]||(e[76]=[p("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:Se},{default:o(()=>[...e[77]||(e[77]=[p("保存",-1)])]),_:1})]),default:o(()=>[t(G,{model:k.value,"label-width":"90px"},{default:o(()=>[t(c,{label:"名称",required:""},{default:o(()=>[t(x,{modelValue:k.value.name,"onUpdate:modelValue":e[19]||(e[19]=l=>k.value.name=l)},null,8,["modelValue"])]),_:1}),t(c,{label:"端口",required:""},{default:o(()=>[t(j,{modelValue:k.value.port,"onUpdate:modelValue":e[20]||(e[20]=l=>k.value.port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(c,{label:"协议"},{default:o(()=>[t(N,{modelValue:k.value.protocol,"onUpdate:modelValue":e[21]||(e[21]=l=>k.value.protocol=l),style:{width:"100%"}},{default:o(()=>[t(w,{label:"TCP",value:"TCP"}),t(w,{label:"UDP",value:"UDP"}),t(w,{label:"HTTP",value:"HTTP"}),t(w,{label:"HTTPS",value:"HTTPS"})]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"指向机器"},{default:o(()=>[t(N,{modelValue:k.value.target_machine_id,"onUpdate:modelValue":e[22]||(e[22]=l=>k.value.target_machine_id=l),clearable:"",style:{width:"100%"},placeholder:"选择目标机器(拓扑连线用)"},{default:o(()=>[(i(!0),d(U,null,P(z.value.filter(l=>l.id!=m(g)),l=>(i(),$(w,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"指向备注"},{default:o(()=>[t(x,{modelValue:k.value.target_notes,"onUpdate:modelValue":e[23]||(e[23]=l=>k.value.target_notes=l),placeholder:"如:反向代理到目标"},null,8,["modelValue"])]),_:1}),t(c,{label:"备注"},{default:o(()=>[t(x,{modelValue:k.value.notes,"onUpdate:modelValue":e[24]||(e[24]=l=>k.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(W,{modelValue:O.value,"onUpdate:modelValue":e[34]||(e[34]=l=>O.value=l),title:"编辑关系",width:"440px",class:"modern-dialog"},{footer:o(()=>[t(v,{onClick:e[33]||(e[33]=l=>O.value=!1)},{default:o(()=>[...e[78]||(e[78]=[p("取消",-1)])]),_:1}),t(v,{type:"primary",onClick:Me},{default:o(()=>[...e[79]||(e[79]=[p("保存",-1)])]),_:1})]),default:o(()=>[t(G,{model:V.value,"label-width":"100px"},{default:o(()=>[t(c,{label:"源机器",required:""},{default:o(()=>[t(N,{modelValue:V.value.source_machine_id,"onUpdate:modelValue":e[27]||(e[27]=l=>V.value.source_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,P(z.value,l=>(i(),$(w,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"目标机器",required:""},{default:o(()=>[t(N,{modelValue:V.value.target_machine_id,"onUpdate:modelValue":e[28]||(e[28]=l=>V.value.target_machine_id=l),style:{width:"100%"}},{default:o(()=>[(i(!0),d(U,null,P(z.value,l=>(i(),$(w,{key:l.id,label:l.hostname,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"关系类型",required:""},{default:o(()=>[t(N,{modelValue:V.value.relation_type,"onUpdate:modelValue":e[29]||(e[29]=l=>V.value.relation_type=l),style:{width:"100%"}},{default:o(()=>[t(w,{label:"端口转发",value:"port_forward"}),t(w,{label:"依赖",value:"dependency"}),t(w,{label:"主从",value:"primary_secondary"}),t(w,{label:"自定义",value:"custom"})]),_:1},8,["modelValue"])]),_:1}),t(c,{label:"源端口"},{default:o(()=>[t(j,{modelValue:V.value.source_port,"onUpdate:modelValue":e[30]||(e[30]=l=>V.value.source_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(c,{label:"目标端口"},{default:o(()=>[t(j,{modelValue:V.value.target_port,"onUpdate:modelValue":e[31]||(e[31]=l=>V.value.target_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(c,{label:"备注"},{default:o(()=>[t(x,{modelValue:V.value.notes,"onUpdate:modelValue":e[32]||(e[32]=l=>V.value.notes=l),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])):_("",!0)}}},et=nl(Js,[["__scopeId","data-v-8622dedd"]]);export{et as default}; diff --git a/web/dist/assets/MachineDetail-dlU7SJns.css b/web/dist/assets/MachineDetail-dlU7SJns.css deleted file mode 100644 index 6971b91..0000000 --- a/web/dist/assets/MachineDetail-dlU7SJns.css +++ /dev/null @@ -1 +0,0 @@ -.detail-header[data-v-c1fe3f9d]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.header-left[data-v-c1fe3f9d]{display:flex;align-items:center;gap:12px}.host-title[data-v-c1fe3f9d]{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.status-badge[data-v-c1fe3f9d]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.status-badge.online[data-v-c1fe3f9d]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-c1fe3f9d]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-c1fe3f9d]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-c1fe3f9d]{background:#f8717126;color:#f87171}.host-subtitle[data-v-c1fe3f9d]{margin-top:4px;font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.host-subtitle span+span[data-v-c1fe3f9d]:before{content:"·";margin-right:8px;color:var(--text-muted)}.detail-grid[data-v-c1fe3f9d]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>.card[data-v-c1fe3f9d]{margin-bottom:0}@media (max-width: 900px){.detail-grid[data-v-c1fe3f9d]{grid-template-columns:1fr}}.info-list[data-v-c1fe3f9d]{display:flex;flex-direction:column;gap:10px}.info-item[data-v-c1fe3f9d]{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:var(--surface-hover);border-radius:8px;font-size:13px;transition:background .2s ease}.info-label[data-v-c1fe3f9d]{color:var(--text-secondary)}.info-value[data-v-c1fe3f9d]{font-weight:500;color:var(--text)}.text-muted[data-v-c1fe3f9d]{color:var(--text-muted)}.status-pills[data-v-c1fe3f9d]{display:flex;flex-direction:column;gap:10px}.status-pill[data-v-c1fe3f9d]{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface-hover);border-radius:10px;transition:background .2s ease}.sp-icon[data-v-c1fe3f9d]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;flex-shrink:0}.sp-icon.cpu[data-v-c1fe3f9d]{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.sp-icon.mem[data-v-c1fe3f9d]{background:linear-gradient(135deg,#22c55e,#4ade80)}.sp-icon.disk[data-v-c1fe3f9d]{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.sp-info[data-v-c1fe3f9d]{flex:1;min-width:0}.sp-title[data-v-c1fe3f9d]{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.sp-bar[data-v-c1fe3f9d]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.sp-fill[data-v-c1fe3f9d]{height:100%;border-radius:3px;background:#3b82f6;transition:width .3s ease}.sp-num[data-v-c1fe3f9d]{font-size:14px;font-weight:700;color:var(--text);min-width:36px;text-align:right}.status-pill.disk-multi[data-v-c1fe3f9d]{flex-wrap:wrap}.multi-disk-info[data-v-c1fe3f9d]{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;max-height:220px;overflow-y:auto}.detail-disk-item[data-v-c1fe3f9d]{display:flex;align-items:center;gap:10px;font-size:12px}.dd-mount[data-v-c1fe3f9d]{min-width:50px;color:var(--text-secondary);font-weight:500}.dd-bar-wrap[data-v-c1fe3f9d]{flex:1;min-width:80px}.dd-bar[data-v-c1fe3f9d]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.dd-fill[data-v-c1fe3f9d]{height:100%;border-radius:3px}.dd-val[data-v-c1fe3f9d]{white-space:nowrap;color:var(--text-secondary)}.dd-pct[data-v-c1fe3f9d]{min-width:32px;text-align:right;font-weight:700;color:var(--text)}.uptime-line[data-v-c1fe3f9d]{margin-top:14px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);padding:8px 10px;background:var(--surface-hover);border-radius:8px;transition:background .2s ease}.sync-actions[data-v-c1fe3f9d]{margin-bottom:10px}.ssh-actions[data-v-c1fe3f9d]{margin-bottom:12px}.ssh-result[data-v-c1fe3f9d]{background:var(--surface-hover);border-radius:10px;padding:12px;transition:background .2s ease}.result-grid[data-v-c1fe3f9d]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-item[data-v-c1fe3f9d]{display:flex;flex-direction:column;gap:2px}.result-item.full[data-v-c1fe3f9d]{grid-column:1 / -1}.rl[data-v-c1fe3f9d]{font-size:11px;color:var(--text-muted)}.rv[data-v-c1fe3f9d]{font-size:13px;color:var(--text);font-weight:500}.service-list[data-v-c1fe3f9d],.rel-list[data-v-c1fe3f9d]{display:flex;flex-direction:column;gap:10px}.service-row[data-v-c1fe3f9d]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.service-main[data-v-c1fe3f9d]{display:flex;align-items:center;gap:10px}.service-name[data-v-c1fe3f9d]{font-weight:600;font-size:14px}.service-port[data-v-c1fe3f9d]{font-size:12px;color:var(--text-muted);background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border)}.service-target[data-v-c1fe3f9d]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--primary)}.target-note[data-v-c1fe3f9d]{color:var(--text-muted)}.service-note[data-v-c1fe3f9d]{font-size:12px;color:var(--text-secondary);flex:1 1 100%}.service-actions[data-v-c1fe3f9d]{display:flex;gap:6px}.rel-row[data-v-c1fe3f9d]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.rel-arrow[data-v-c1fe3f9d]{display:flex;align-items:center;gap:8px;font-size:14px}.rel-host[data-v-c1fe3f9d]{font-weight:600}.rel-meta[data-v-c1fe3f9d]{display:flex;align-items:center;gap:8px;font-size:12px}.rel-port[data-v-c1fe3f9d]{background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border);color:var(--text-secondary)}.rel-note[data-v-c1fe3f9d]{color:var(--text-muted)}.rel-actions[data-v-c1fe3f9d]{display:flex;gap:6px}.offline-stats[data-v-c1fe3f9d]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}.stat-box[data-v-c1fe3f9d]{background:var(--surface-hover);border-radius:10px;padding:12px;text-align:center}.stat-num[data-v-c1fe3f9d]{font-size:20px;font-weight:700;color:var(--text)}.stat-reason[data-v-c1fe3f9d]{font-size:13px;font-weight:600;color:var(--danger);word-break:break-all}.stat-label[data-v-c1fe3f9d]{font-size:12px;color:var(--text-muted);margin-top:4px}.offline-logs[data-v-c1fe3f9d]{background:var(--surface-hover);border-radius:10px;padding:12px}.log-title[data-v-c1fe3f9d]{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.log-row[data-v-c1fe3f9d]{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.log-row[data-v-c1fe3f9d]:last-child{border-bottom:none}.log-time[data-v-c1fe3f9d]{color:var(--text-muted);min-width:140px}.log-reason[data-v-c1fe3f9d]{flex:1;color:var(--text-secondary)}.log-dur[data-v-c1fe3f9d]{color:var(--text);font-weight:500}.log-dur.pending[data-v-c1fe3f9d]{color:var(--warning)} diff --git a/web/dist/assets/MachineList-9XRtZKRa.css b/web/dist/assets/MachineList-9XRtZKRa.css new file mode 100644 index 0000000..9f32f8d --- /dev/null +++ b/web/dist/assets/MachineList-9XRtZKRa.css @@ -0,0 +1 @@ +.toolbar[data-v-cae8dc77]{display:flex;align-items:center;gap:12px;margin-bottom:20px}.search-wrap[data-v-cae8dc77]{position:relative;flex:1;max-width:360px}.search-wrap[data-v-cae8dc77] .el-input__wrapper{padding-left:34px;border-radius:10px;box-shadow:0 0 0 1px var(--border) inset}.search-icon[data-v-cae8dc77]{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);font-size:16px;z-index:1}.os-select[data-v-cae8dc77] .el-input__wrapper{border-radius:10px;box-shadow:0 0 0 1px var(--border) inset}.cards-grid[data-v-cae8dc77]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}@media (max-width: 900px){.cards-grid[data-v-cae8dc77]{grid-template-columns:1fr}}.server-card[data-v-cae8dc77]{background:var(--surface);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);border:1px solid var(--border);border-top-width:3px;border-top-color:var(--border-strong);cursor:pointer;transition:transform .12s ease,box-shadow .2s ease,opacity .2s ease,border-color .2s ease}.server-card[data-v-cae8dc77]:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--border-strong)}.server-card.guest-card[data-v-cae8dc77]{cursor:default}.server-card.guest-card[data-v-cae8dc77]:hover{transform:none;box-shadow:var(--shadow);border-color:var(--border)}.server-card.offline-card[data-v-cae8dc77]{opacity:.65;border-top-color:var(--border)}.server-card.offline-card .hostname[data-v-cae8dc77]{color:var(--text-muted)}.card-header[data-v-cae8dc77]{display:flex;flex-direction:column;gap:6px}.title-row[data-v-cae8dc77]{display:flex;align-items:center;gap:10px}.os-dot[data-v-cae8dc77]{width:10px;height:10px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1px #00000014}.os-dot.os-linux[data-v-cae8dc77]{background:#3b82f6}.os-dot.os-windows[data-v-cae8dc77]{background:#22c55e}.os-dot.os-macos[data-v-cae8dc77]{background:#a855f7}.os-dot.os-other[data-v-cae8dc77]{background:#64748b}.status-badge[data-v-cae8dc77]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600;line-height:1}.status-badge.online[data-v-cae8dc77]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-cae8dc77]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-cae8dc77]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-cae8dc77]{background:#f8717126;color:#f87171}.hostname[data-v-cae8dc77]{font-weight:700;font-size:15px;color:var(--text)}.svc-tag[data-v-cae8dc77]{font-size:11px;height:18px;padding:0 8px;color:var(--text-secondary);border-color:var(--border)}.meta-row[data-v-cae8dc77]{display:flex;align-items:center;flex-wrap:wrap;gap:6px 0;font-size:12px;color:var(--text-secondary)}.meta-ip[data-v-cae8dc77]{color:var(--text);font-weight:500;background:var(--surface-hover);border:1px solid var(--border);padding:1px 6px;border-radius:4px}.meta-item+.meta-item[data-v-cae8dc77]:before,.meta-uptime[data-v-cae8dc77]:before{content:"·";margin:0 6px;color:var(--text-muted)}.meta-uptime[data-v-cae8dc77]{color:var(--success)}.stats-row[data-v-cae8dc77]{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat-pill[data-v-cae8dc77]{background:var(--pill-bg);border:1px solid var(--pill-border);border-radius:10px;padding:9px 10px;color:var(--pill-text);display:flex;align-items:center;gap:8px;transition:background .2s ease,border-color .2s ease}.pill-icon[data-v-cae8dc77]{width:22px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;background:#ffffff1a;flex-shrink:0}.pill-icon.cpu[data-v-cae8dc77]{color:#7dd3fc}.pill-icon.mem[data-v-cae8dc77]{color:#86efac}.pill-icon.disk[data-v-cae8dc77]{color:#93c5fd}.pill-body[data-v-cae8dc77]{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.pill-label[data-v-cae8dc77]{font-size:10px;color:#ffffffd9;font-weight:600}.pill-bar[data-v-cae8dc77]{height:3px;background:#ffffff26;border-radius:2px;overflow:hidden}.pill-fill[data-v-cae8dc77]{height:100%;border-radius:2px;background:#ffffffe6;transition:width .3s ease}.pill-value[data-v-cae8dc77]{font-size:11px;font-weight:700;color:#fff;white-space:nowrap}.ports-row[data-v-cae8dc77]{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.port-tag[data-v-cae8dc77]{font-size:11px;height:20px;padding:0 8px;color:var(--text-secondary);border-color:var(--border)}.more-ports[data-v-cae8dc77]{font-size:11px;color:var(--text-muted);line-height:20px}.sync-time[data-v-cae8dc77]{margin-top:10px;font-size:11px;color:var(--text-muted)} diff --git a/web/dist/assets/MachineList-B0yEQVq5.js b/web/dist/assets/MachineList-B0yEQVq5.js deleted file mode 100644 index 2b8cb35..0000000 --- a/web/dist/assets/MachineList-B0yEQVq5.js +++ /dev/null @@ -1 +0,0 @@ -import{k as ae,H as ne,I as ie,J as re,K as de,o as i,c as u,a as o,b as s,w as r,e as h,m as w,L as ue,n as c,M as I,N as R,r as k,d as m,F as ce,O as pe,E as V,u as _e,P as me,h as y,p as D,t as p,Q as B,R as fe,S as ve,T as he}from"./index-C_uWT3cF.js";import{_ as ye}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ge={class:"page"},be={class:"toolbar"},we={class:"search-wrap"},ke={class:"cards-grid"},Ve=["onClick"],Ce={class:"card-header"},xe={class:"title-row"},Se=["title"],Me={class:"hostname"},Ue={class:"meta-row"},De={key:0,class:"meta-ip"},Le={class:"meta-item"},$e={key:1,class:"meta-item"},Oe={key:2,class:"meta-uptime"},Fe={key:0,class:"stats-row"},Ie={key:0,class:"stat-pill"},Re={class:"pill-body"},Be={class:"pill-bar"},Ne={class:"pill-value"},Ee={key:1,class:"stat-pill"},Te={class:"pill-body"},Ae={class:"pill-bar"},He={class:"pill-value"},We={key:2,class:"stat-pill"},je={class:"pill-body"},ze={class:"pill-bar"},Ke={class:"pill-value"},Pe={key:1,class:"ports-row"},qe={key:0,class:"more-ports"},Ge={class:"card-footer"},Je={key:0,class:"load-stat",title:"系统负载 (1min 5min 15min)"},Qe={key:1,class:"sync-time"},Ye={class:"stability-stats"},Xe=["title"],Ze={__name:"MachineList",setup(et){const A=_e(),b=ce().is_admin,L=k([]),$=k(""),O=k(""),C=k(!1),d=k({hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:""}),N=k(null);let F=null;ae(async()=>{await x(),await ne();const l=ie||1e4;l>0&&(F=setInterval(x,l))}),re(()=>{F&&clearInterval(F)});async function x(){const l=await de({search:$.value,os_type:O.value});L.value=l.data}function H(l){A.push(`/machines/${l}`)}function W(l){d.value={hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:""},C.value=!0}async function j(){const l={...d.value};if(!l.hostname||!l.ip||!l.os_type){V.warning("请填写必填项");return}l.id?await fe(l.id,l):await ve(l),V.success("保存成功"),C.value=!1,x()}async function z(){try{const l=await he(),e=new Blob([l.data]),a=window.URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.download=`lan-manager-backup-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a),V.success("导出成功")}catch{V.error("导出失败")}}function K(){var l;(l=N.value)==null||l.click()}async function P(l){var n;const e=(n=l.target.files)==null?void 0:n[0];if(!e)return;const a=new FormData;a.append("file",e),a.append("mode","overwrite");try{await pe(a),V.success("导入成功,页面即将刷新"),setTimeout(()=>location.reload(),800)}catch{V.error("导入失败")}l.target.value=""}function S(l){if(!l)return 0;const e=l.match(/\((\d+)%\)/)||l.match(/(\d+(?:\.\d+)?)%/);if(e){const a=parseFloat(e[1]);return isNaN(a)?0:Math.min(100,Math.max(0,Math.round(a)))}return 0}function E(l){if(!l)return"";const e=l.match(/\((\d+)\s*cores\)/);if(e)return e[1]+" cores";let a=l.replace(/\s*\(\d+(?:\.\d+)?%\)\s*/g,"").trim();return a.includes(",")&&(a=a.split(",")[0].trim()),a=a.replace(/^\/\s+/,"").trim(),/^\d+\.?\d*\/\d+\.?\d*$/.test(a)&&(a+="G"),a}function q(l){return l>=90?"#f87171":l>=70?"#fbbf24":"#34d399"}function G(l){return l>=90?"#f87171":l>=80?"#fbbf24":"#60a5fa"}function J(l){if(!l)return[];const e=[],a=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let n;for(;(n=a.exec(l))!==null;)e.push({mount:n[1],detail:n[2],percent:parseInt(n[3],10)});if(e.length>0)return e;const _=S(l),f=E(l);return f?[{mount:"",detail:f,percent:_}]:[]}function U(l){return J(l).find(n=>n.mount==="/")||null}function Q(l){return{Linux:"os-linux",Windows:"os-windows",macOS:"os-macos"}[l]||"os-other"}function Y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const a=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())} ${a(e.getHours())}:${a(e.getMinutes())}:${a(e.getSeconds())}`}function X(l){if(!l.recent_status)return"暂无连通性数据";const e=l.recent_status.split(""),a=e.filter(f=>f==="g").length,n=e.filter(f=>f==="y").length,_=e.filter(f=>f==="r").length;return`最近 12 小时连通性:${a}h 稳定 · ${n}h 轻微波动 · ${_}h 多次断开`}return(l,e)=>{const a=m("el-icon"),n=m("el-input"),_=m("el-option"),f=m("el-select"),M=m("el-button"),T=m("el-tag"),Z=m("el-empty"),v=m("el-form-item"),ee=m("el-divider"),te=m("el-input-number"),le=m("el-form"),se=m("el-dialog");return i(),u("div",ge,[o("div",be,[o("div",we,[s(a,{class:"search-icon"},{default:r(()=>[s(h(me))]),_:1}),s(n,{modelValue:$.value,"onUpdate:modelValue":e[0]||(e[0]=t=>$.value=t),placeholder:"搜索主机名",clearable:"",onChange:x},null,8,["modelValue"])]),s(f,{modelValue:O.value,"onUpdate:modelValue":e[1]||(e[1]=t=>O.value=t),placeholder:"系统类型",clearable:"",onChange:x,class:"os-select"},{default:r(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"]),h(b)?(i(),w(M,{key:0,type:"primary",icon:h(ue),onClick:e[2]||(e[2]=t=>W())},{default:r(()=>[...e[14]||(e[14]=[y("添加机器",-1)])]),_:1},8,["icon"])):c("",!0),h(b)?(i(),w(M,{key:1,type:"success",onClick:z},{default:r(()=>[...e[15]||(e[15]=[y("导出数据",-1)])]),_:1})):c("",!0),h(b)?(i(),w(M,{key:2,type:"warning",onClick:K},{default:r(()=>[...e[16]||(e[16]=[y("导入数据",-1)])]),_:1})):c("",!0),o("input",{ref_key:"importFileRef",ref:N,type:"file",accept:".json",style:{display:"none"},onChange:P},null,544)]),o("div",ke,[(i(!0),u(I,null,R(L.value,t=>(i(),u("div",{key:t.id,class:D(["server-card",[{"guest-card":!h(b),"offline-card":!t.is_online}]]),onClick:g=>h(b)&&H(t.id)},[o("div",Ce,[o("div",xe,[o("span",{class:D(["os-dot",Q(t.os_type)]),title:t.os_type},null,10,Se),o("span",Me,p(t.hostname),1),o("span",{class:D(["status-badge",t.is_online?"online":"offline"])},p(t.is_online?"在线":"离线"),3),t.service_count?(i(),w(T,{key:0,size:"small",effect:"plain",class:"svc-tag",round:""},{default:r(()=>[y("服务 "+p(t.service_count),1)]),_:2},1024)):c("",!0)]),o("div",Ue,[h(b)?(i(),u("span",De,p(t.ip),1)):c("",!0),o("span",Le,p(t.os_type),1),t.os_version?(i(),u("span",$e,p(t.os_version),1)):c("",!0),t.uptime?(i(),u("span",Oe,p(t.uptime),1)):c("",!0)])]),t.cpu_info||t.memory_info||t.disk_info?(i(),u("div",Fe,[t.cpu_info?(i(),u("div",Ie,[e[18]||(e[18]=o("div",{class:"pill-icon cpu"},"C",-1)),o("div",Re,[e[17]||(e[17]=o("div",{class:"pill-label"},"CPU",-1)),o("div",Be,[o("div",{class:"pill-fill",style:B({width:S(t.cpu_info)+"%"})},null,4)])]),o("div",Ne,p(S(t.cpu_info))+"%",1)])):c("",!0),t.memory_info?(i(),u("div",Ee,[e[20]||(e[20]=o("div",{class:"pill-icon mem"},"M",-1)),o("div",Te,[e[19]||(e[19]=o("div",{class:"pill-label"},"RAM",-1)),o("div",Ae,[o("div",{class:"pill-fill",style:B({width:S(t.memory_info)+"%",background:q(S(t.memory_info))})},null,4)])]),o("div",He,p(E(t.memory_info)),1)])):c("",!0),U(t.disk_info)?(i(),u("div",We,[e[22]||(e[22]=o("div",{class:"pill-icon disk"},"D",-1)),o("div",je,[e[21]||(e[21]=o("div",{class:"pill-label"},"DISK",-1)),o("div",ze,[o("div",{class:"pill-fill",style:B({width:U(t.disk_info).percent+"%",background:G(U(t.disk_info).percent)})},null,4)])]),o("div",Ke,p(U(t.disk_info).detail),1)])):c("",!0)])):c("",!0),t.listen_ports?(i(),u("div",Pe,[(i(!0),u(I,null,R(t.listen_ports.split(",").slice(0,6),g=>(i(),w(T,{key:g,size:"small",effect:"plain",round:"",class:"port-tag"},{default:r(()=>[y(p(g.trim()),1)]),_:2},1024))),128)),t.listen_ports.split(",").length>6?(i(),u("span",qe,"+"+p(t.listen_ports.split(",").length-6),1)):c("",!0)])):c("",!0),o("div",Ge,[t.load_average?(i(),u("span",Je,p(t.load_average),1)):t.ssh_synced_at?(i(),u("span",Qe,"同步于 "+p(Y(t.ssh_synced_at)),1)):c("",!0),o("div",Ye,[o("span",{class:"battery-bar",title:X(t)},[(i(!0),u(I,null,R((t.recent_status||"gggggggggggg").split(""),(g,oe)=>(i(),u("span",{key:oe,class:D(["battery-cell",{green:g==="g",yellow:g==="y",red:g==="r"}])},"/",2))),128))],8,Xe)])])],10,Ve))),128))]),L.value.length?c("",!0):(i(),w(Z,{key:0,description:"暂无机器"})),s(se,{modelValue:C.value,"onUpdate:modelValue":e[13]||(e[13]=t=>C.value=t),title:d.value.id?"编辑机器":"添加机器",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:r(()=>[s(M,{onClick:e[12]||(e[12]=t=>C.value=!1)},{default:r(()=>[...e[24]||(e[24]=[y("取消",-1)])]),_:1}),s(M,{type:"primary",onClick:j},{default:r(()=>[...e[25]||(e[25]=[y("保存",-1)])]),_:1})]),default:r(()=>[s(le,{model:d.value,"label-width":"90px"},{default:r(()=>[s(v,{label:"主机名",required:""},{default:r(()=>[s(n,{modelValue:d.value.hostname,"onUpdate:modelValue":e[3]||(e[3]=t=>d.value.hostname=t),placeholder:"如 web-server-01"},null,8,["modelValue"])]),_:1}),s(v,{label:"IP",required:""},{default:r(()=>[s(n,{modelValue:d.value.ip,"onUpdate:modelValue":e[4]||(e[4]=t=>d.value.ip=t),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(v,{label:"MAC"},{default:r(()=>[s(n,{modelValue:d.value.mac,"onUpdate:modelValue":e[5]||(e[5]=t=>d.value.mac=t),placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),s(v,{label:"系统",required:""},{default:r(()=>[s(f,{modelValue:d.value.os_type,"onUpdate:modelValue":e[6]||(e[6]=t=>d.value.os_type=t),style:{width:"100%"}},{default:r(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"系统版本"},{default:r(()=>[s(n,{modelValue:d.value.os_version,"onUpdate:modelValue":e[7]||(e[7]=t=>d.value.os_version=t),placeholder:"Ubuntu 22.04"},null,8,["modelValue"])]),_:1}),s(ee,{"content-position":"left"},{default:r(()=>[...e[23]||(e[23]=[y("SSH 配置",-1)])]),_:1}),s(v,{label:"SSH 端口"},{default:r(()=>[s(te,{modelValue:d.value.ssh_port,"onUpdate:modelValue":e[8]||(e[8]=t=>d.value.ssh_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 用户"},{default:r(()=>[s(n,{modelValue:d.value.ssh_username,"onUpdate:modelValue":e[9]||(e[9]=t=>d.value.ssh_username=t),placeholder:"root"},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 密码"},{default:r(()=>[s(n,{modelValue:d.value.ssh_password,"onUpdate:modelValue":e[10]||(e[10]=t=>d.value.ssh_password=t),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(v,{label:"备注"},{default:r(()=>[s(n,{modelValue:d.value.notes,"onUpdate:modelValue":e[11]||(e[11]=t=>d.value.notes=t),type:"textarea",rows:3,placeholder:"记录用途、负责人等信息"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},st=ye(Ze,[["__scopeId","data-v-248b0e43"]]);export{st as default}; diff --git a/web/dist/assets/MachineList-Dl6ycQW2.js b/web/dist/assets/MachineList-Dl6ycQW2.js new file mode 100644 index 0000000..49e4d7a --- /dev/null +++ b/web/dist/assets/MachineList-Dl6ycQW2.js @@ -0,0 +1 @@ +import{k as oe,I as ae,J as ne,K as ie,L as de,o as u,c as r,a as o,b as s,w as i,e as f,m as b,M as ue,n as p,N as $,O as F,r as V,d as m,G as re,P as pe,E as k,u as ce,Q as _e,R as me,h as y,p as U,t as c,S as R,T as ve,U as fe,V as ye}from"./index-BFjouPFU.js";import{_ as he}from"./_plugin-vue_export-helper-DlAUqK2U.js";const be={class:"page"},Ve={class:"toolbar"},we={class:"search-wrap"},ke={class:"cards-grid"},ge=["onClick"],Ce={class:"card-header"},xe={class:"title-row"},Me=["title"],Se={class:"hostname"},Ue={class:"meta-row"},De={key:0,class:"meta-ip"},Le={class:"meta-item"},Oe={key:1,class:"meta-item"},Ee={key:2,class:"meta-uptime"},Ie={key:3,class:"meta-pve"},$e={key:0,class:"stats-row"},Fe={key:0,class:"stat-pill"},Re={class:"pill-body"},Be={class:"pill-bar"},Ne={class:"pill-value"},Pe={key:1,class:"stat-pill"},Ae={class:"pill-body"},He={class:"pill-bar"},Te={class:"pill-value"},We={key:2,class:"stat-pill"},je={class:"pill-body"},ze={class:"pill-bar"},Ge={class:"pill-value"},Ke={key:1,class:"ports-row"},qe={key:0,class:"more-ports"},Je={key:2,class:"sync-time"},Qe={__name:"MachineList",setup(Ye){const T=ce(),h=re().is_admin,D=V([]),B=V([]),L=V(""),O=V(""),g=V(!1),d=V({hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""}),N=V(null);let E=null;oe(async()=>{if(await C(),await ae(),h)try{const e=await _e();B.value=e.data}catch{}const t=ne||1e4;t>0&&(E=setInterval(C,t))}),ie(()=>{E&&clearInterval(E)});async function C(){const t=await de({search:L.value,os_type:O.value});D.value=t.data}function W(t){T.push(`/machines/${t}`)}function j(t){d.value={hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""},g.value=!0}async function z(){const t={...d.value};if(!t.hostname||!t.ip||!t.os_type){k.warning("请填写必填项");return}t.id?await ve(t.id,t):await fe(t),k.success("保存成功"),g.value=!1,C()}async function G(){try{const t=await ye(),e=new Blob([t.data]),a=window.URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.download=`lan-manager-backup-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a),k.success("导出成功")}catch{k.error("导出失败")}}function K(){var t;(t=N.value)==null||t.click()}async function q(t){var n;const e=(n=t.target.files)==null?void 0:n[0];if(!e)return;const a=new FormData;a.append("file",e),a.append("mode","overwrite");try{await pe(a),k.success("导入成功,页面即将刷新"),setTimeout(()=>location.reload(),800)}catch{k.error("导入失败")}t.target.value=""}function x(t){if(!t)return 0;const e=t.match(/\((\d+)%\)/)||t.match(/(\d+(?:\.\d+)?)%/);if(e){const a=parseFloat(e[1]);return isNaN(a)?0:Math.min(100,Math.max(0,Math.round(a)))}return 0}function P(t){if(!t)return"";const e=t.match(/\((\d+)\s*cores\)/);if(e)return e[1]+" cores";let a=t.replace(/\s*\(\d+(?:\.\d+)?%\)\s*/g,"").trim();return a.includes(",")&&(a=a.split(",")[0].trim()),a=a.replace(/^\/\s+/,"").trim(),/^\d+\.?\d*\/\d+\.?\d*$/.test(a)&&(a+="G"),a}function J(t){return t>=90?"#f87171":t>=70?"#fbbf24":"#34d399"}function Q(t){return t>=90?"#f87171":t>=80?"#fbbf24":"#60a5fa"}function Y(t){if(!t)return[];const e=[],a=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let n;for(;(n=a.exec(t))!==null;)e.push({mount:n[1],detail:n[2],percent:parseInt(n[3],10)});if(e.length>0)return e;const _=x(t),w=P(t);return w?[{mount:"",detail:w,percent:_}]:[]}function S(t){return Y(t).find(n=>n.mount==="/")||null}function X(t){return{Linux:"os-linux",Windows:"os-windows",macOS:"os-macos"}[t]||"os-other"}function Z(t){if(!t)return"-";const e=new Date(t);if(isNaN(e.getTime()))return t;const a=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())} ${a(e.getHours())}:${a(e.getMinutes())}:${a(e.getSeconds())}`}return(t,e)=>{const a=m("el-icon"),n=m("el-input"),_=m("el-option"),w=m("el-select"),M=m("el-button"),A=m("el-tag"),ee=m("el-empty"),v=m("el-form-item"),H=m("el-divider"),le=m("el-input-number"),te=m("el-form"),se=m("el-dialog");return u(),r("div",be,[o("div",Ve,[o("div",we,[s(a,{class:"search-icon"},{default:i(()=>[s(f(me))]),_:1}),s(n,{modelValue:L.value,"onUpdate:modelValue":e[0]||(e[0]=l=>L.value=l),placeholder:"搜索主机名",clearable:"",onChange:C},null,8,["modelValue"])]),s(w,{modelValue:O.value,"onUpdate:modelValue":e[1]||(e[1]=l=>O.value=l),placeholder:"系统类型",clearable:"",onChange:C,class:"os-select"},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"]),f(h)?(u(),b(M,{key:0,type:"primary",icon:f(ue),onClick:e[2]||(e[2]=l=>j())},{default:i(()=>[...e[16]||(e[16]=[y("添加机器",-1)])]),_:1},8,["icon"])):p("",!0),f(h)?(u(),b(M,{key:1,type:"success",onClick:G},{default:i(()=>[...e[17]||(e[17]=[y("导出数据",-1)])]),_:1})):p("",!0),f(h)?(u(),b(M,{key:2,type:"warning",onClick:K},{default:i(()=>[...e[18]||(e[18]=[y("导入数据",-1)])]),_:1})):p("",!0),o("input",{ref_key:"importFileRef",ref:N,type:"file",accept:".json",style:{display:"none"},onChange:q},null,544)]),o("div",ke,[(u(!0),r($,null,F(D.value,l=>(u(),r("div",{key:l.id,class:U(["server-card",[{"guest-card":!f(h),"offline-card":!l.is_online}]]),onClick:I=>f(h)&&W(l.id)},[o("div",Ce,[o("div",xe,[o("span",{class:U(["os-dot",X(l.os_type)]),title:l.os_type},null,10,Me),o("span",Se,c(l.hostname),1),o("span",{class:U(["status-badge",l.is_online?"online":"offline"])},c(l.is_online?"在线":"离线"),3),l.service_count?(u(),b(A,{key:0,size:"small",effect:"plain",class:"svc-tag",round:""},{default:i(()=>[y("服务 "+c(l.service_count),1)]),_:2},1024)):p("",!0)]),o("div",Ue,[f(h)?(u(),r("span",De,c(l.ip),1)):p("",!0),o("span",Le,c(l.os_type),1),l.os_version?(u(),r("span",Oe,c(l.os_version),1)):p("",!0),l.uptime?(u(),r("span",Ee,c(l.uptime),1)):p("",!0),f(h)&&l.pve_host_id&&l.pve_vmid?(u(),r("span",Ie,[o("span",{class:U(["vm-status",l.pve_vm_status])},c(l.pve_vm_status==="running"?"🟢 VM运行中":"🔴 VM已停止"),3)])):p("",!0)])]),l.cpu_info||l.memory_info||l.disk_info?(u(),r("div",$e,[l.cpu_info?(u(),r("div",Fe,[e[20]||(e[20]=o("div",{class:"pill-icon cpu"},"C",-1)),o("div",Re,[e[19]||(e[19]=o("div",{class:"pill-label"},"CPU",-1)),o("div",Be,[o("div",{class:"pill-fill",style:R({width:x(l.cpu_info)+"%"})},null,4)])]),o("div",Ne,c(x(l.cpu_info))+"%",1)])):p("",!0),l.memory_info?(u(),r("div",Pe,[e[22]||(e[22]=o("div",{class:"pill-icon mem"},"M",-1)),o("div",Ae,[e[21]||(e[21]=o("div",{class:"pill-label"},"RAM",-1)),o("div",He,[o("div",{class:"pill-fill",style:R({width:x(l.memory_info)+"%",background:J(x(l.memory_info))})},null,4)])]),o("div",Te,c(P(l.memory_info)),1)])):p("",!0),S(l.disk_info)?(u(),r("div",We,[e[24]||(e[24]=o("div",{class:"pill-icon disk"},"D",-1)),o("div",je,[e[23]||(e[23]=o("div",{class:"pill-label"},"DISK",-1)),o("div",ze,[o("div",{class:"pill-fill",style:R({width:S(l.disk_info).percent+"%",background:Q(S(l.disk_info).percent)})},null,4)])]),o("div",Ge,c(S(l.disk_info).detail),1)])):p("",!0)])):p("",!0),l.listen_ports?(u(),r("div",Ke,[(u(!0),r($,null,F(l.listen_ports.split(",").slice(0,6),I=>(u(),b(A,{key:I,size:"small",effect:"plain",round:"",class:"port-tag"},{default:i(()=>[y(c(I.trim()),1)]),_:2},1024))),128)),l.listen_ports.split(",").length>6?(u(),r("span",qe,"+"+c(l.listen_ports.split(",").length-6),1)):p("",!0)])):p("",!0),l.ssh_synced_at?(u(),r("div",Je," 同步于 "+c(Z(l.ssh_synced_at)),1)):p("",!0)],10,ge))),128))]),D.value.length?p("",!0):(u(),b(ee,{key:0,description:"暂无机器"})),s(se,{modelValue:g.value,"onUpdate:modelValue":e[15]||(e[15]=l=>g.value=l),title:d.value.id?"编辑机器":"添加机器",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:i(()=>[s(M,{onClick:e[14]||(e[14]=l=>g.value=!1)},{default:i(()=>[...e[27]||(e[27]=[y("取消",-1)])]),_:1}),s(M,{type:"primary",onClick:z},{default:i(()=>[...e[28]||(e[28]=[y("保存",-1)])]),_:1})]),default:i(()=>[s(te,{model:d.value,"label-width":"90px"},{default:i(()=>[s(v,{label:"主机名",required:""},{default:i(()=>[s(n,{modelValue:d.value.hostname,"onUpdate:modelValue":e[3]||(e[3]=l=>d.value.hostname=l),placeholder:"如 web-server-01"},null,8,["modelValue"])]),_:1}),s(v,{label:"IP",required:""},{default:i(()=>[s(n,{modelValue:d.value.ip,"onUpdate:modelValue":e[4]||(e[4]=l=>d.value.ip=l),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(v,{label:"MAC"},{default:i(()=>[s(n,{modelValue:d.value.mac,"onUpdate:modelValue":e[5]||(e[5]=l=>d.value.mac=l),placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),s(v,{label:"系统",required:""},{default:i(()=>[s(w,{modelValue:d.value.os_type,"onUpdate:modelValue":e[6]||(e[6]=l=>d.value.os_type=l),style:{width:"100%"}},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"系统版本"},{default:i(()=>[s(n,{modelValue:d.value.os_version,"onUpdate:modelValue":e[7]||(e[7]=l=>d.value.os_version=l),placeholder:"Ubuntu 22.04"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[25]||(e[25]=[y("SSH 配置",-1)])]),_:1}),s(v,{label:"SSH 端口"},{default:i(()=>[s(le,{modelValue:d.value.ssh_port,"onUpdate:modelValue":e[8]||(e[8]=l=>d.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 用户"},{default:i(()=>[s(n,{modelValue:d.value.ssh_username,"onUpdate:modelValue":e[9]||(e[9]=l=>d.value.ssh_username=l),placeholder:"root"},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 密码"},{default:i(()=>[s(n,{modelValue:d.value.ssh_password,"onUpdate:modelValue":e[10]||(e[10]=l=>d.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(v,{label:"备注"},{default:i(()=>[s(n,{modelValue:d.value.notes,"onUpdate:modelValue":e[11]||(e[11]=l=>d.value.notes=l),type:"textarea",rows:3,placeholder:"记录用途、负责人等信息"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[26]||(e[26]=[y("PVE 配置(可选)",-1)])]),_:1}),s(v,{label:"PVE 主机"},{default:i(()=>[s(w,{modelValue:d.value.pve_host_id,"onUpdate:modelValue":e[12]||(e[12]=l=>d.value.pve_host_id=l),placeholder:"选择 PVE 主机",clearable:"",style:{width:"100%"}},{default:i(()=>[(u(!0),r($,null,F(B.value,l=>(u(),b(_,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"虚拟机 ID"},{default:i(()=>[s(n,{modelValue:d.value.pve_vmid,"onUpdate:modelValue":e[13]||(e[13]=l=>d.value.pve_vmid=l),placeholder:"如 101"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},el=he(Qe,[["__scopeId","data-v-cae8dc77"]]);export{el as default}; diff --git a/web/dist/assets/MachineList-DpVAPZyx.css b/web/dist/assets/MachineList-DpVAPZyx.css deleted file mode 100644 index 21149c8..0000000 --- a/web/dist/assets/MachineList-DpVAPZyx.css +++ /dev/null @@ -1 +0,0 @@ -.toolbar[data-v-248b0e43]{display:flex;align-items:center;gap:12px;margin-bottom:20px}.search-wrap[data-v-248b0e43]{position:relative;flex:1;max-width:360px}.search-wrap[data-v-248b0e43] .el-input__wrapper{padding-left:34px;border-radius:10px;box-shadow:0 0 0 1px var(--border) inset}.search-icon[data-v-248b0e43]{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--text-muted);font-size:16px;z-index:1}.os-select[data-v-248b0e43] .el-input__wrapper{border-radius:10px;box-shadow:0 0 0 1px var(--border) inset}.cards-grid[data-v-248b0e43]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}@media (max-width: 900px){.cards-grid[data-v-248b0e43]{grid-template-columns:1fr}}.server-card[data-v-248b0e43]{background:var(--surface);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);border:1px solid var(--border);border-top-width:3px;border-top-color:var(--border-strong);cursor:pointer;transition:transform .12s ease,box-shadow .2s ease,opacity .2s ease,border-color .2s ease}.server-card[data-v-248b0e43]:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--border-strong)}.server-card.guest-card[data-v-248b0e43]{cursor:default}.server-card.guest-card[data-v-248b0e43]:hover{transform:none;box-shadow:var(--shadow);border-color:var(--border)}.server-card.offline-card[data-v-248b0e43]{opacity:.65;border-top-color:var(--border)}.server-card.offline-card .hostname[data-v-248b0e43]{color:var(--text-muted)}.card-header[data-v-248b0e43]{display:flex;flex-direction:column;gap:6px}.title-row[data-v-248b0e43]{display:flex;align-items:center;gap:10px}.os-dot[data-v-248b0e43]{width:10px;height:10px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1px #00000014}.os-dot.os-linux[data-v-248b0e43]{background:#3b82f6}.os-dot.os-windows[data-v-248b0e43]{background:#22c55e}.os-dot.os-macos[data-v-248b0e43]{background:#a855f7}.os-dot.os-other[data-v-248b0e43]{background:#64748b}.status-badge[data-v-248b0e43]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600;line-height:1}.status-badge.online[data-v-248b0e43]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-248b0e43]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-248b0e43]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-248b0e43]{background:#f8717126;color:#f87171}.hostname[data-v-248b0e43]{font-weight:700;font-size:15px;color:var(--text)}.svc-tag[data-v-248b0e43]{font-size:11px;height:18px;padding:0 8px;color:var(--text-secondary);border-color:var(--border)}.meta-row[data-v-248b0e43]{display:flex;align-items:center;flex-wrap:wrap;gap:6px 0;font-size:12px;color:var(--text-secondary)}.meta-ip[data-v-248b0e43]{color:var(--text);font-weight:500;background:var(--surface-hover);border:1px solid var(--border);padding:1px 6px;border-radius:4px}.meta-item+.meta-item[data-v-248b0e43]:before,.meta-uptime[data-v-248b0e43]:before{content:"·";margin:0 6px;color:var(--text-muted)}.meta-uptime[data-v-248b0e43]{color:var(--success)}.stats-row[data-v-248b0e43]{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat-pill[data-v-248b0e43]{background:var(--pill-bg);border:1px solid var(--pill-border);border-radius:10px;padding:9px 10px;color:var(--pill-text);display:flex;align-items:center;gap:8px;transition:background .2s ease,border-color .2s ease}.pill-icon[data-v-248b0e43]{width:22px;height:22px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;background:#ffffff1a;flex-shrink:0}.pill-icon.cpu[data-v-248b0e43]{color:#7dd3fc}.pill-icon.mem[data-v-248b0e43]{color:#86efac}.pill-icon.disk[data-v-248b0e43]{color:#93c5fd}.pill-body[data-v-248b0e43]{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.pill-label[data-v-248b0e43]{font-size:10px;color:#ffffffd9;font-weight:600}.pill-bar[data-v-248b0e43]{height:3px;background:#ffffff26;border-radius:2px;overflow:hidden}.pill-fill[data-v-248b0e43]{height:100%;border-radius:2px;background:#ffffffe6;transition:width .3s ease}.pill-value[data-v-248b0e43]{font-size:11px;font-weight:700;color:#fff;white-space:nowrap}.ports-row[data-v-248b0e43]{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.port-tag[data-v-248b0e43]{font-size:11px;height:20px;padding:0 8px;color:var(--text-secondary);border-color:var(--border)}.more-ports[data-v-248b0e43]{font-size:11px;color:var(--text-muted);line-height:20px}.card-footer[data-v-248b0e43]{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.sync-time[data-v-248b0e43]{font-size:11px;color:var(--text-muted)}.load-stat[data-v-248b0e43]{font-size:11px;color:var(--text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;flex-shrink:0}.stability-stats[data-v-248b0e43]{display:flex;align-items:center;flex-shrink:0}.battery-bar[data-v-248b0e43]{display:inline-flex;align-items:center;gap:1px}.battery-cell[data-v-248b0e43]{font-size:11px;font-weight:600;opacity:.9}.battery-cell.green[data-v-248b0e43]{color:#22c55e}.battery-cell.yellow[data-v-248b0e43]{color:#f59e0b}.battery-cell.red[data-v-248b0e43]{color:#ef4444} diff --git a/web/dist/assets/MachineList-xoH6VyjV.js b/web/dist/assets/MachineList-xoH6VyjV.js deleted file mode 100644 index 8a8a3f8..0000000 --- a/web/dist/assets/MachineList-xoH6VyjV.js +++ /dev/null @@ -1 +0,0 @@ -import{k as se,H as oe,I as ae,J as ne,K as ie,o as r,c,a,b as s,w as i,e as v,m as b,L as de,n as u,M as E,N as A,r as w,d as _,F as re,O as ue,E as k,u as ce,P as pe,h,p as F,t as p,Q as I,R as _e,S as me,T as fe}from"./index-Chagxl0Z.js";import{_ as ve}from"./_plugin-vue_export-helper-DlAUqK2U.js";const he={class:"page"},ye={class:"toolbar"},be={class:"search-wrap"},we={class:"cards-grid"},ke=["onClick"],ge={class:"card-header"},Ve={class:"title-row"},Ce=["title"],xe={class:"hostname"},Se={class:"meta-row"},Me={key:0,class:"meta-ip"},Ue={class:"meta-item"},De={key:1,class:"meta-item"},Le={key:2,class:"meta-uptime"},Oe={key:0,class:"stats-row"},$e={key:0,class:"stat-pill"},Fe={class:"pill-body"},Ie={class:"pill-bar"},Re={class:"pill-value"},Be={key:1,class:"stat-pill"},Ne={class:"pill-body"},Ee={class:"pill-bar"},Ae={class:"pill-value"},Te={key:2,class:"stat-pill"},He={class:"pill-body"},We={class:"pill-bar"},je={class:"pill-value"},ze={key:1,class:"ports-row"},Ke={key:0,class:"more-ports"},Pe={key:2,class:"sync-time"},qe={__name:"MachineList",setup(Ge){const T=ce(),y=re().is_admin,U=w([]),D=w(""),L=w(""),g=w(!1),d=w({hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:""}),R=w(null);let O=null;se(async()=>{await V(),await oe();const l=ae||1e4;l>0&&(O=setInterval(V,l))}),ne(()=>{O&&clearInterval(O)});async function V(){const l=await ie({search:D.value,os_type:L.value});U.value=l.data}function H(l){T.push(`/machines/${l}`)}function W(l){d.value={hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:""},g.value=!0}async function j(){const l={...d.value};if(!l.hostname||!l.ip||!l.os_type){k.warning("请填写必填项");return}l.id?await _e(l.id,l):await me(l),k.success("保存成功"),g.value=!1,V()}async function z(){try{const l=await fe(),e=new Blob([l.data]),o=window.URL.createObjectURL(e),n=document.createElement("a");n.href=o,n.download=`lan-manager-backup-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(o),k.success("导出成功")}catch{k.error("导出失败")}}function K(){var l;(l=R.value)==null||l.click()}async function P(l){var n;const e=(n=l.target.files)==null?void 0:n[0];if(!e)return;const o=new FormData;o.append("file",e),o.append("mode","overwrite");try{await ue(o),k.success("导入成功,页面即将刷新"),setTimeout(()=>location.reload(),800)}catch{k.error("导入失败")}l.target.value=""}function C(l){if(!l)return 0;const e=l.match(/\((\d+)%\)/)||l.match(/(\d+(?:\.\d+)?)%/);if(e){const o=parseFloat(e[1]);return isNaN(o)?0:Math.min(100,Math.max(0,Math.round(o)))}return 0}function B(l){if(!l)return"";const e=l.match(/\((\d+)\s*cores\)/);if(e)return e[1]+" cores";let o=l.replace(/\s*\(\d+(?:\.\d+)?%\)\s*/g,"").trim();return o.includes(",")&&(o=o.split(",")[0].trim()),o=o.replace(/^\/\s+/,"").trim(),/^\d+\.?\d*\/\d+\.?\d*$/.test(o)&&(o+="G"),o}function q(l){return l>=90?"#f87171":l>=70?"#fbbf24":"#34d399"}function G(l){return l>=90?"#f87171":l>=80?"#fbbf24":"#60a5fa"}function J(l){if(!l)return[];const e=[],o=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let n;for(;(n=o.exec(l))!==null;)e.push({mount:n[1],detail:n[2],percent:parseInt(n[3],10)});if(e.length>0)return e;const m=C(l),x=B(l);return x?[{mount:"",detail:x,percent:m}]:[]}function M(l){return J(l).find(n=>n.mount==="/")||null}function Q(l){return{Linux:"os-linux",Windows:"os-windows",macOS:"os-macos"}[l]||"os-other"}function Y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const o=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${o(e.getMonth()+1)}-${o(e.getDate())} ${o(e.getHours())}:${o(e.getMinutes())}:${o(e.getSeconds())}`}return(l,e)=>{const o=_("el-icon"),n=_("el-input"),m=_("el-option"),x=_("el-select"),S=_("el-button"),N=_("el-tag"),X=_("el-empty"),f=_("el-form-item"),Z=_("el-divider"),ee=_("el-input-number"),te=_("el-form"),le=_("el-dialog");return r(),c("div",he,[a("div",ye,[a("div",be,[s(o,{class:"search-icon"},{default:i(()=>[s(v(pe))]),_:1}),s(n,{modelValue:D.value,"onUpdate:modelValue":e[0]||(e[0]=t=>D.value=t),placeholder:"搜索主机名",clearable:"",onChange:V},null,8,["modelValue"])]),s(x,{modelValue:L.value,"onUpdate:modelValue":e[1]||(e[1]=t=>L.value=t),placeholder:"系统类型",clearable:"",onChange:V,class:"os-select"},{default:i(()=>[s(m,{label:"Linux",value:"Linux"}),s(m,{label:"Windows",value:"Windows"}),s(m,{label:"macOS",value:"macOS"}),s(m,{label:"Other",value:"Other"})]),_:1},8,["modelValue"]),v(y)?(r(),b(S,{key:0,type:"primary",icon:v(de),onClick:e[2]||(e[2]=t=>W())},{default:i(()=>[...e[14]||(e[14]=[h("添加机器",-1)])]),_:1},8,["icon"])):u("",!0),v(y)?(r(),b(S,{key:1,type:"success",onClick:z},{default:i(()=>[...e[15]||(e[15]=[h("导出数据",-1)])]),_:1})):u("",!0),v(y)?(r(),b(S,{key:2,type:"warning",onClick:K},{default:i(()=>[...e[16]||(e[16]=[h("导入数据",-1)])]),_:1})):u("",!0),a("input",{ref_key:"importFileRef",ref:R,type:"file",accept:".json",style:{display:"none"},onChange:P},null,544)]),a("div",we,[(r(!0),c(E,null,A(U.value,t=>(r(),c("div",{key:t.id,class:F(["server-card",[{"guest-card":!v(y),"offline-card":!t.is_online}]]),onClick:$=>v(y)&&H(t.id)},[a("div",ge,[a("div",Ve,[a("span",{class:F(["os-dot",Q(t.os_type)]),title:t.os_type},null,10,Ce),a("span",xe,p(t.hostname),1),a("span",{class:F(["status-badge",t.is_online?"online":"offline"])},p(t.is_online?"在线":"离线"),3),t.service_count?(r(),b(N,{key:0,size:"small",effect:"plain",class:"svc-tag",round:""},{default:i(()=>[h("服务 "+p(t.service_count),1)]),_:2},1024)):u("",!0)]),a("div",Se,[v(y)?(r(),c("span",Me,p(t.ip),1)):u("",!0),a("span",Ue,p(t.os_type),1),t.os_version?(r(),c("span",De,p(t.os_version),1)):u("",!0),t.uptime?(r(),c("span",Le,p(t.uptime),1)):u("",!0)])]),t.cpu_info||t.memory_info||t.disk_info?(r(),c("div",Oe,[t.cpu_info?(r(),c("div",$e,[e[18]||(e[18]=a("div",{class:"pill-icon cpu"},"C",-1)),a("div",Fe,[e[17]||(e[17]=a("div",{class:"pill-label"},"CPU",-1)),a("div",Ie,[a("div",{class:"pill-fill",style:I({width:C(t.cpu_info)+"%"})},null,4)])]),a("div",Re,p(C(t.cpu_info))+"%",1)])):u("",!0),t.memory_info?(r(),c("div",Be,[e[20]||(e[20]=a("div",{class:"pill-icon mem"},"M",-1)),a("div",Ne,[e[19]||(e[19]=a("div",{class:"pill-label"},"RAM",-1)),a("div",Ee,[a("div",{class:"pill-fill",style:I({width:C(t.memory_info)+"%",background:q(C(t.memory_info))})},null,4)])]),a("div",Ae,p(B(t.memory_info)),1)])):u("",!0),M(t.disk_info)?(r(),c("div",Te,[e[22]||(e[22]=a("div",{class:"pill-icon disk"},"D",-1)),a("div",He,[e[21]||(e[21]=a("div",{class:"pill-label"},"DISK",-1)),a("div",We,[a("div",{class:"pill-fill",style:I({width:M(t.disk_info).percent+"%",background:G(M(t.disk_info).percent)})},null,4)])]),a("div",je,p(M(t.disk_info).detail),1)])):u("",!0)])):u("",!0),t.listen_ports?(r(),c("div",ze,[(r(!0),c(E,null,A(t.listen_ports.split(",").slice(0,6),$=>(r(),b(N,{key:$,size:"small",effect:"plain",round:"",class:"port-tag"},{default:i(()=>[h(p($.trim()),1)]),_:2},1024))),128)),t.listen_ports.split(",").length>6?(r(),c("span",Ke,"+"+p(t.listen_ports.split(",").length-6),1)):u("",!0)])):u("",!0),t.ssh_synced_at?(r(),c("div",Pe," 同步于 "+p(Y(t.ssh_synced_at)),1)):u("",!0)],10,ke))),128))]),U.value.length?u("",!0):(r(),b(X,{key:0,description:"暂无机器"})),s(le,{modelValue:g.value,"onUpdate:modelValue":e[13]||(e[13]=t=>g.value=t),title:d.value.id?"编辑机器":"添加机器",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:i(()=>[s(S,{onClick:e[12]||(e[12]=t=>g.value=!1)},{default:i(()=>[...e[24]||(e[24]=[h("取消",-1)])]),_:1}),s(S,{type:"primary",onClick:j},{default:i(()=>[...e[25]||(e[25]=[h("保存",-1)])]),_:1})]),default:i(()=>[s(te,{model:d.value,"label-width":"90px"},{default:i(()=>[s(f,{label:"主机名",required:""},{default:i(()=>[s(n,{modelValue:d.value.hostname,"onUpdate:modelValue":e[3]||(e[3]=t=>d.value.hostname=t),placeholder:"如 web-server-01"},null,8,["modelValue"])]),_:1}),s(f,{label:"IP",required:""},{default:i(()=>[s(n,{modelValue:d.value.ip,"onUpdate:modelValue":e[4]||(e[4]=t=>d.value.ip=t),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(f,{label:"MAC"},{default:i(()=>[s(n,{modelValue:d.value.mac,"onUpdate:modelValue":e[5]||(e[5]=t=>d.value.mac=t),placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),s(f,{label:"系统",required:""},{default:i(()=>[s(x,{modelValue:d.value.os_type,"onUpdate:modelValue":e[6]||(e[6]=t=>d.value.os_type=t),style:{width:"100%"}},{default:i(()=>[s(m,{label:"Linux",value:"Linux"}),s(m,{label:"Windows",value:"Windows"}),s(m,{label:"macOS",value:"macOS"}),s(m,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(f,{label:"系统版本"},{default:i(()=>[s(n,{modelValue:d.value.os_version,"onUpdate:modelValue":e[7]||(e[7]=t=>d.value.os_version=t),placeholder:"Ubuntu 22.04"},null,8,["modelValue"])]),_:1}),s(Z,{"content-position":"left"},{default:i(()=>[...e[23]||(e[23]=[h("SSH 配置",-1)])]),_:1}),s(f,{label:"SSH 端口"},{default:i(()=>[s(ee,{modelValue:d.value.ssh_port,"onUpdate:modelValue":e[8]||(e[8]=t=>d.value.ssh_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(f,{label:"SSH 用户"},{default:i(()=>[s(n,{modelValue:d.value.ssh_username,"onUpdate:modelValue":e[9]||(e[9]=t=>d.value.ssh_username=t),placeholder:"root"},null,8,["modelValue"])]),_:1}),s(f,{label:"SSH 密码"},{default:i(()=>[s(n,{modelValue:d.value.ssh_password,"onUpdate:modelValue":e[10]||(e[10]=t=>d.value.ssh_password=t),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(f,{label:"备注"},{default:i(()=>[s(n,{modelValue:d.value.notes,"onUpdate:modelValue":e[11]||(e[11]=t=>d.value.notes=t),type:"textarea",rows:3,placeholder:"记录用途、负责人等信息"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},Ye=ve(qe,[["__scopeId","data-v-410eed19"]]);export{Ye as default}; diff --git a/web/dist/assets/MainLayout-BzeQKWOs.js b/web/dist/assets/MainLayout-BzeQKWOs.js deleted file mode 100644 index 2b9c444..0000000 --- a/web/dist/assets/MainLayout-BzeQKWOs.js +++ /dev/null @@ -1 +0,0 @@ -import{k as h,o as c,c as m,a as s,b as e,w as t,m as d,n as _,t as v,p as C,r as x,q as w,d as i,u as L,e as n,v as M,x as A,y as B,z as E,A as D,B as N,f as V,C as z,D as I,E as S,F as q,G as F}from"./index-Chagxl0Z.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";const R={class:"layout"},T={key:0,class:"sidebar"},$={class:"nav"},j={class:"sidebar-footer"},H={class:"user-info"},J={class:"user-name"},K={class:"main-inner"},O={__name:"MainLayout",setup(P){const f=L(),u=w(()=>q().is_admin),o=x(!1);h(()=>{o.value=document.documentElement.classList.contains("dark")});function p(){o.value=!o.value,document.documentElement.classList.toggle("dark",o.value),localStorage.setItem("theme",o.value?"dark":"light")}async function g(){try{await I()}catch{}F(),S.success("已退出"),f.push("/login")}return(k,a)=>{const l=i("el-icon"),r=i("router-link"),y=i("el-button"),b=i("router-view");return c(),m("div",R,[u.value?(c(),m("aside",T,[a[4]||(a[4]=s("div",{class:"brand"},[s("div",{class:"brand-logo"},"LM"),s("div",{class:"brand-text"},"LAN Manager")],-1)),s("nav",$,[e(r,{to:"/machines",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(M))]),_:1}),a[0]||(a[0]=s("span",null,"机器列表",-1))]),_:1}),u.value?(c(),d(r,{key:0,to:"/topology",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(A))]),_:1}),a[1]||(a[1]=s("span",null,"拓扑图",-1))]),_:1})):_("",!0),u.value?(c(),d(r,{key:1,to:"/logs",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(B))]),_:1}),a[2]||(a[2]=s("span",null,"操作日志",-1))]),_:1})):_("",!0)]),s("div",{class:"theme-toggle",onClick:p},[e(l,{class:"theme-icon"},{default:t(()=>[(c(),d(E(o.value?n(D):n(N))))]),_:1}),s("span",null,v(o.value?"浅色模式":"深色模式"),1)]),s("div",j,[s("div",H,[e(l,{class:"user-icon"},{default:t(()=>[e(n(V))]),_:1}),s("span",J,v(u.value?"管理员":"访客"),1)]),e(y,{text:"",class:"logout-btn",onClick:g},{default:t(()=>[e(l,null,{default:t(()=>[e(n(z))]),_:1}),a[3]||(a[3]=s("span",null,"退出",-1))]),_:1})])])):_("",!0),s("main",{class:C(["main",{"no-sidebar":!u.value}])},[s("div",K,[e(b)])],2)])}}},W=G(O,[["__scopeId","data-v-a4c6174b"]]);export{W as default}; diff --git a/web/dist/assets/MainLayout-CJz-pM3g.css b/web/dist/assets/MainLayout-CJz-pM3g.css deleted file mode 100644 index ab24d75..0000000 --- a/web/dist/assets/MainLayout-CJz-pM3g.css +++ /dev/null @@ -1 +0,0 @@ -.layout[data-v-a4c6174b]{display:flex;min-height:100vh}.sidebar[data-v-a4c6174b]{width:220px;background:#0f172a;color:#fff;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:100}.brand[data-v-a4c6174b]{padding:22px 18px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.06)}.brand-logo[data-v-a4c6174b]{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#60a5fa);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}.brand-text[data-v-a4c6174b]{font-weight:700;font-size:14px;letter-spacing:.3px}.nav[data-v-a4c6174b]{flex:1;padding:12px 10px;display:flex;flex-direction:column;gap:4px}.nav-item[data-v-a4c6174b]{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#ffffffa6;text-decoration:none;font-size:13px;transition:background .15s ease,color .15s ease}.nav-item[data-v-a4c6174b]:hover{background:#ffffff0f;color:#ffffffe6}.nav-item.active[data-v-a4c6174b]{background:#3b82f62e;color:#60a5fa;font-weight:600}.nav-item .el-icon[data-v-a4c6174b]{font-size:16px}.sidebar-footer[data-v-a4c6174b]{padding:12px 10px 16px;border-top:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;gap:6px}.user-info[data-v-a4c6174b]{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12px;color:#ffffff8c}.user-icon[data-v-a4c6174b]{font-size:14px}.user-name[data-v-a4c6174b]{font-weight:500;color:#ffffffd9}.logout-btn[data-v-a4c6174b]{justify-content:flex-start;width:100%;color:#ffffff8c;padding:8px 10px;border-radius:8px}.logout-btn[data-v-a4c6174b]:hover{color:#fff;background:#ffffff0f}.logout-btn span[data-v-a4c6174b]{margin-left:8px;font-size:12px}.main[data-v-a4c6174b]{flex:1;margin-left:220px;min-height:100vh;background:var(--bg)}.main-inner[data-v-a4c6174b]{padding:10px}.theme-toggle[data-v-a4c6174b]{margin:0 10px 10px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#ffffff8c;font-size:13px;cursor:pointer;transition:background .15s ease,color .15s ease}.theme-toggle[data-v-a4c6174b]:hover{background:#ffffff0f;color:#ffffffe6}.theme-icon[data-v-a4c6174b]{font-size:16px}.main.no-sidebar[data-v-a4c6174b]{margin-left:0}@media (max-width: 768px){.sidebar[data-v-a4c6174b]{width:64px}.brand-text[data-v-a4c6174b],.nav-item span[data-v-a4c6174b],.user-name[data-v-a4c6174b],.logout-btn span[data-v-a4c6174b]{display:none}.brand[data-v-a4c6174b]{justify-content:center;padding:18px 10px}.nav-item[data-v-a4c6174b]{justify-content:center}.main[data-v-a4c6174b]{margin-left:64px}.main.no-sidebar[data-v-a4c6174b]{margin-left:0}} diff --git a/web/dist/assets/MainLayout-Cavyx6zq.js b/web/dist/assets/MainLayout-Cavyx6zq.js new file mode 100644 index 0000000..d91c91f --- /dev/null +++ b/web/dist/assets/MainLayout-Cavyx6zq.js @@ -0,0 +1 @@ +import{k as h,o as i,c as m,a as s,b as e,w as t,m as d,n as r,t as v,p as C,r as x,q as w,d as _,u as E,e as l,v as L,x as M,y as A,z as B,A as D,B as N,C as V,f as z,D as I,F as S,E as q,G as F,H as G}from"./index-BFjouPFU.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"layout"},R={key:0,class:"sidebar"},T={class:"nav"},$={class:"sidebar-footer"},j={class:"user-info"},J={class:"user-name"},K={class:"main-inner"},O={__name:"MainLayout",setup(Q){const f=E(),u=w(()=>F().is_admin),o=x(!1);h(()=>{o.value=document.documentElement.classList.contains("dark")});function p(){o.value=!o.value,document.documentElement.classList.toggle("dark",o.value),localStorage.setItem("theme",o.value?"dark":"light")}async function g(){try{await S()}catch{}G(),q.success("已退出"),f.push("/login")}return(k,a)=>{const n=_("el-icon"),c=_("router-link"),y=_("el-button"),b=_("router-view");return i(),m("div",P,[u.value?(i(),m("aside",R,[a[5]||(a[5]=s("div",{class:"brand"},[s("div",{class:"brand-logo"},"LM"),s("div",{class:"brand-text"},"LAN Manager")],-1)),s("nav",T,[e(c,{to:"/machines",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(L))]),_:1}),a[0]||(a[0]=s("span",null,"机器列表",-1))]),_:1}),u.value?(i(),d(c,{key:0,to:"/topology",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(M))]),_:1}),a[1]||(a[1]=s("span",null,"拓扑图",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:1,to:"/logs",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(A))]),_:1}),a[2]||(a[2]=s("span",null,"操作日志",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:2,to:"/pve-hosts",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(B))]),_:1}),a[3]||(a[3]=s("span",null,"PVE 主机",-1))]),_:1})):r("",!0)]),s("div",{class:"theme-toggle",onClick:p},[e(n,{class:"theme-icon"},{default:t(()=>[(i(),d(D(o.value?l(N):l(V))))]),_:1}),s("span",null,v(o.value?"浅色模式":"深色模式"),1)]),s("div",$,[s("div",j,[e(n,{class:"user-icon"},{default:t(()=>[e(l(z))]),_:1}),s("span",J,v(u.value?"管理员":"访客"),1)]),e(y,{text:"",class:"logout-btn",onClick:g},{default:t(()=>[e(n,null,{default:t(()=>[e(l(I))]),_:1}),a[4]||(a[4]=s("span",null,"退出",-1))]),_:1})])])):r("",!0),s("main",{class:C(["main",{"no-sidebar":!u.value}])},[s("div",K,[e(b)])],2)])}}},X=H(O,[["__scopeId","data-v-dac2493b"]]);export{X as default}; diff --git a/web/dist/assets/MainLayout-CsFkTHMI.js b/web/dist/assets/MainLayout-CsFkTHMI.js deleted file mode 100644 index bdcb1a5..0000000 --- a/web/dist/assets/MainLayout-CsFkTHMI.js +++ /dev/null @@ -1 +0,0 @@ -import{k as h,o as c,c as m,a as s,b as e,w as t,m as d,n as _,t as v,p as C,r as x,q as w,d as i,u as L,e as n,v as M,x as A,y as B,z as E,A as D,B as N,f as V,C as z,D as I,E as S,F as q,G as F}from"./index-C_uWT3cF.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";const R={class:"layout"},T={key:0,class:"sidebar"},$={class:"nav"},j={class:"sidebar-footer"},H={class:"user-info"},J={class:"user-name"},K={class:"main-inner"},O={__name:"MainLayout",setup(P){const f=L(),u=w(()=>q().is_admin),o=x(!1);h(()=>{o.value=document.documentElement.classList.contains("dark")});function p(){o.value=!o.value,document.documentElement.classList.toggle("dark",o.value),localStorage.setItem("theme",o.value?"dark":"light")}async function g(){try{await I()}catch{}F(),S.success("已退出"),f.push("/login")}return(k,a)=>{const l=i("el-icon"),r=i("router-link"),y=i("el-button"),b=i("router-view");return c(),m("div",R,[u.value?(c(),m("aside",T,[a[4]||(a[4]=s("div",{class:"brand"},[s("div",{class:"brand-logo"},"LM"),s("div",{class:"brand-text"},"LAN Manager")],-1)),s("nav",$,[e(r,{to:"/machines",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(M))]),_:1}),a[0]||(a[0]=s("span",null,"机器列表",-1))]),_:1}),u.value?(c(),d(r,{key:0,to:"/topology",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(A))]),_:1}),a[1]||(a[1]=s("span",null,"拓扑图",-1))]),_:1})):_("",!0),u.value?(c(),d(r,{key:1,to:"/logs",class:"nav-item","active-class":"active"},{default:t(()=>[e(l,null,{default:t(()=>[e(n(B))]),_:1}),a[2]||(a[2]=s("span",null,"操作日志",-1))]),_:1})):_("",!0)]),s("div",{class:"theme-toggle",onClick:p},[e(l,{class:"theme-icon"},{default:t(()=>[(c(),d(E(o.value?n(D):n(N))))]),_:1}),s("span",null,v(o.value?"浅色模式":"深色模式"),1)]),s("div",j,[s("div",H,[e(l,{class:"user-icon"},{default:t(()=>[e(n(V))]),_:1}),s("span",J,v(u.value?"管理员":"访客"),1)]),e(y,{text:"",class:"logout-btn",onClick:g},{default:t(()=>[e(l,null,{default:t(()=>[e(n(z))]),_:1}),a[3]||(a[3]=s("span",null,"退出",-1))]),_:1})])])):_("",!0),s("main",{class:C(["main",{"no-sidebar":!u.value}])},[s("div",K,[e(b)])],2)])}}},W=G(O,[["__scopeId","data-v-a4c6174b"]]);export{W as default}; diff --git a/web/dist/assets/MainLayout-DQN4KPkJ.css b/web/dist/assets/MainLayout-DQN4KPkJ.css new file mode 100644 index 0000000..4e518ec --- /dev/null +++ b/web/dist/assets/MainLayout-DQN4KPkJ.css @@ -0,0 +1 @@ +.layout[data-v-dac2493b]{display:flex;min-height:100vh}.sidebar[data-v-dac2493b]{width:220px;background:#0f172a;color:#fff;display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;z-index:100}.brand[data-v-dac2493b]{padding:22px 18px 14px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(255,255,255,.06)}.brand-logo[data-v-dac2493b]{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#60a5fa);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}.brand-text[data-v-dac2493b]{font-weight:700;font-size:14px;letter-spacing:.3px}.nav[data-v-dac2493b]{flex:1;padding:12px 10px;display:flex;flex-direction:column;gap:4px}.nav-item[data-v-dac2493b]{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#ffffffa6;text-decoration:none;font-size:13px;transition:background .15s ease,color .15s ease}.nav-item[data-v-dac2493b]:hover{background:#ffffff0f;color:#ffffffe6}.nav-item.active[data-v-dac2493b]{background:#3b82f62e;color:#60a5fa;font-weight:600}.nav-item .el-icon[data-v-dac2493b]{font-size:16px}.sidebar-footer[data-v-dac2493b]{padding:12px 10px 16px;border-top:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;gap:6px}.user-info[data-v-dac2493b]{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12px;color:#ffffff8c}.user-icon[data-v-dac2493b]{font-size:14px}.user-name[data-v-dac2493b]{font-weight:500;color:#ffffffd9}.logout-btn[data-v-dac2493b]{justify-content:flex-start;width:100%;color:#ffffff8c;padding:8px 10px;border-radius:8px}.logout-btn[data-v-dac2493b]:hover{color:#fff;background:#ffffff0f}.logout-btn span[data-v-dac2493b]{margin-left:8px;font-size:12px}.main[data-v-dac2493b]{flex:1;margin-left:220px;min-height:100vh;background:var(--bg)}.main-inner[data-v-dac2493b]{padding:10px}.theme-toggle[data-v-dac2493b]{margin:0 10px 10px;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#ffffff8c;font-size:13px;cursor:pointer;transition:background .15s ease,color .15s ease}.theme-toggle[data-v-dac2493b]:hover{background:#ffffff0f;color:#ffffffe6}.theme-icon[data-v-dac2493b]{font-size:16px}.main.no-sidebar[data-v-dac2493b]{margin-left:0}@media (max-width: 768px){.sidebar[data-v-dac2493b]{width:64px}.brand-text[data-v-dac2493b],.nav-item span[data-v-dac2493b],.user-name[data-v-dac2493b],.logout-btn span[data-v-dac2493b]{display:none}.brand[data-v-dac2493b]{justify-content:center;padding:18px 10px}.nav-item[data-v-dac2493b]{justify-content:center}.main[data-v-dac2493b]{margin-left:64px}.main.no-sidebar[data-v-dac2493b]{margin-left:0}} diff --git a/web/dist/assets/PVEHosts-BMDl3QRA.css b/web/dist/assets/PVEHosts-BMDl3QRA.css new file mode 100644 index 0000000..19f9f20 --- /dev/null +++ b/web/dist/assets/PVEHosts-BMDl3QRA.css @@ -0,0 +1 @@ +.toolbar[data-v-c935d190]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-title[data-v-c935d190]{margin:0;font-size:20px;font-weight:600}.hosts-grid[data-v-c935d190]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.host-card[data-v-c935d190]{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.host-header[data-v-c935d190]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.host-icon[data-v-c935d190]{font-size:20px;color:var(--el-color-primary)}.host-name[data-v-c935d190]{font-size:16px;font-weight:600}.host-info[data-v-c935d190]{margin-bottom:12px}.info-row[data-v-c935d190]{display:flex;font-size:13px;margin-bottom:4px}.info-row .label[data-v-c935d190]{color:var(--text-secondary);width:50px}.info-row .value[data-v-c935d190]{color:var(--text)}.host-actions[data-v-c935d190]{display:flex;gap:8px} diff --git a/web/dist/assets/PVEHosts-Ch6D9CK9.js b/web/dist/assets/PVEHosts-Ch6D9CK9.js new file mode 100644 index 0000000..90a072f --- /dev/null +++ b/web/dist/assets/PVEHosts-Ch6D9CK9.js @@ -0,0 +1 @@ +import{k as N,Q as $,o as m,c as f,a as t,b as s,w as o,e as b,M,m as S,n as k,N as z,O as D,r as y,d,h as p,v as L,t as c,a8 as F,as as I,E as V,at as O,au as Q}from"./index-BFjouPFU.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";const j={class:"page"},A={class:"toolbar"},G={key:1,class:"hosts-grid"},J={class:"host-header"},K={class:"host-name"},R={class:"host-info"},W={class:"info-row"},X={class:"value"},Y={class:"info-row"},Z={class:"value"},ee={class:"host-actions"},le={__name:"PVEHosts",setup(ae){const v=y([]),i=y(!1),l=y({name:"",hostname:"",port:8006,username:"",password:"",verify_ssl:!1});N(()=>{w()});async function w(){const n=await $();v.value=n.data}function g(n){l.value=n?{...n,password:""}:{name:"",hostname:"",port:8006,username:"",password:"",verify_ssl:!1},i.value=!0}async function E(){if(!l.value.name||!l.value.hostname||!l.value.username){V.warning("请填写必填项");return}if(!l.value.id&&!l.value.password){V.warning("请填写密码");return}try{l.value.id?await O(l.value.id,l.value):await Q(l.value),V.success("保存成功"),i.value=!1,w()}catch{}}async function C(n){try{await F.confirm(`确定要删除主机 "${n.name}" 吗?`,"确认删除",{type:"warning"}),await I(n.id),V.success("删除成功"),w()}catch{}}return(n,e)=>{const r=d("el-button"),x=d("el-empty"),P=d("el-icon"),_=d("el-input"),u=d("el-form-item"),H=d("el-input-number"),U=d("el-switch"),h=d("el-form"),q=d("el-dialog");return m(),f("div",j,[t("div",A,[e[10]||(e[10]=t("h2",{class:"page-title"},"PVE 主机管理",-1)),s(r,{type:"primary",icon:b(M),onClick:e[0]||(e[0]=a=>g())},{default:o(()=>[...e[9]||(e[9]=[p("添加主机",-1)])]),_:1},8,["icon"])]),v.value.length?k("",!0):(m(),S(x,{key:0,description:"暂无 PVE 主机"})),v.value.length?(m(),f("div",G,[(m(!0),f(z,null,D(v.value,a=>(m(),f("div",{key:a.id,class:"host-card"},[t("div",J,[s(P,{class:"host-icon"},{default:o(()=>[s(b(L))]),_:1}),t("span",K,c(a.name),1)]),t("div",R,[t("div",W,[e[11]||(e[11]=t("span",{class:"label"},"地址:",-1)),t("span",X,c(a.hostname)+":"+c(a.port),1)]),t("div",Y,[e[12]||(e[12]=t("span",{class:"label"},"用户:",-1)),t("span",Z,c(a.username),1)])]),t("div",ee,[s(r,{size:"small",onClick:B=>g(a)},{default:o(()=>[...e[13]||(e[13]=[p("编辑",-1)])]),_:1},8,["onClick"]),s(r,{size:"small",type:"danger",onClick:B=>C(a)},{default:o(()=>[...e[14]||(e[14]=[p("删除",-1)])]),_:1},8,["onClick"])])]))),128))])):k("",!0),s(q,{modelValue:i.value,"onUpdate:modelValue":e[8]||(e[8]=a=>i.value=a),title:l.value.id?"编辑主机":"添加主机",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:o(()=>[s(r,{onClick:e[7]||(e[7]=a=>i.value=!1)},{default:o(()=>[...e[15]||(e[15]=[p("取消",-1)])]),_:1}),s(r,{type:"primary",onClick:E},{default:o(()=>[...e[16]||(e[16]=[p("保存",-1)])]),_:1})]),default:o(()=>[s(h,{model:l.value,"label-width":"90px"},{default:o(()=>[s(u,{label:"名称",required:""},{default:o(()=>[s(_,{modelValue:l.value.name,"onUpdate:modelValue":e[1]||(e[1]=a=>l.value.name=a),placeholder:"如 PVE-01"},null,8,["modelValue"])]),_:1}),s(u,{label:"地址",required:""},{default:o(()=>[s(_,{modelValue:l.value.hostname,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.hostname=a),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(u,{label:"端口"},{default:o(()=>[s(H,{modelValue:l.value.port,"onUpdate:modelValue":e[3]||(e[3]=a=>l.value.port=a),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(u,{label:"用户名",required:""},{default:o(()=>[s(_,{modelValue:l.value.username,"onUpdate:modelValue":e[4]||(e[4]=a=>l.value.username=a),placeholder:"root@pam 或 root@vmbr0"},null,8,["modelValue"])]),_:1}),s(u,{label:"密码",required:!l.value.id},{default:o(()=>[s(_,{modelValue:l.value.password,"onUpdate:modelValue":e[5]||(e[5]=a=>l.value.password=a),type:"password","show-password":"",placeholder:l.value.id?"留空保持不变":"必填"},null,8,["modelValue","placeholder"])]),_:1},8,["required"]),s(u,{label:"SSL 验证"},{default:o(()=>[s(U,{modelValue:l.value.verify_ssl,"onUpdate:modelValue":e[6]||(e[6]=a=>l.value.verify_ssl=a)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},te=T(le,[["__scopeId","data-v-c935d190"]]);export{te as default}; diff --git a/web/dist/assets/Topology-BJXdT35q.js b/web/dist/assets/Topology-BJXdT35q.js deleted file mode 100644 index 0554d06..0000000 --- a/web/dist/assets/Topology-BJXdT35q.js +++ /dev/null @@ -1,467 +0,0 @@ -import{af as Ka,ag as bi,ah as me,k as sP,K as uP,ai as fP,$ as lP,J as cP,o as Hb,c as hP,a as Zl,e as Zb,m as dP,w as vP,L as pP,n as gP,aj as yP,F as mP,d as bP,h as wP}from"./index-C_uWT3cF.js";import{_ as xP}from"./_plugin-vue_export-helper-DlAUqK2U.js";function EP(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const Xg=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ea},get Circle(){return a9},get Ellipse(){return i9},get Image(){return o9},get Line(){return s9},get Marker(){return f9},get Path(){return jy},get Polygon(){return g9},get Polyline(){return y9},get Rect(){return w9},get Text(){return x9}},Symbol.toStringTag,{value:"Module"})),Wg=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return M9},get Dom(){return A9},get Ellipse(){return C9},get Image(){return T9},get Line(){return I9},get Marker(){return k9},get Path(){return N9},get Polygon(){return O9},get Polyline(){return L9},get Rect(){return P9},get Text(){return G9}},Symbol.toStringTag,{value:"Module"}));var l0=function(r,e){return l0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},l0(r,e)};function jt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");l0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var P=function(){return P=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;s--)(o=r[s])&&(i=(a<3?o(i):a>3?o(e,t,i):o(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i}function nS(r,e){return function(t,n){e(t,n,r)}}function aS(r,e,t,n,a,i){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",f=!e&&r?n.static?r:r.prototype:null,l=e||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),c,h=!1,d=t.length-1;d>=0;d--){var v={};for(var p in n)v[p]=p==="access"?{}:n[p];for(var p in n.access)v.access[p]=n.access[p];v.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(y||null))};var g=(0,t[d])(s==="accessor"?{get:l.get,set:l.set}:l[u],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(l.get=c),(c=o(g.set))&&(l.set=c),(c=o(g.init))&&a.unshift(c)}else(c=o(g))&&(s==="field"?a.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),h=!0}function iS(r,e,t){for(var n=arguments.length>2,a=0;a0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vg(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function lS(){for(var r=[],e=0;e1||u(d,p)})},v&&(a[d]=v(a[d])))}function u(d,v){try{f(n[d](v))}catch(p){h(i[0][3],p)}}function f(d){d.value instanceof qs?Promise.resolve(d.value.v).then(l,c):h(i[0][2],d)}function l(d){u("next",d)}function c(d){u("throw",d)}function h(d,v){d(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function hS(r){var e,t;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=r[a]?function(o){return(t=!t)?{value:qs(r[a](o)),done:!1}:i?i(o):o}:i}}function dS(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof yh=="function"?yh(r):r[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=r[i]&&function(o){return new Promise(function(s,u){o=r[i](o),a(s,u,o.done,o.value)})}}function a(i,o,s,u){Promise.resolve(u).then(function(f){i({value:f,done:s})},o)}}function vS(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var _P=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e},c0=function(r){return c0=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},c0(r)};function pS(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t=c0(r),n=0;n-1:!1},_S=function(r,e){if(!On(r))return r;for(var t=[],n=0;n-1;)DP.call(r,i,1);return r},FP=Array.prototype.splice,TS=function(e,t){if(!On(e))return[];for(var n=e?t.length:0,a=n-1;n--;){var i=void 0,o=t[n];(n===a||o!==i)&&(i=o,FP.call(e,o,1))}return e},IS=function(r,e,t){if(!bt(r)&&!ln(r))return r;var n=t;return _e(r,function(a,i){n=e(n,a,i)}),n},BP=function(r,e){var t=[];if(!On(r))return t;for(var n=-1,a=[],i=r.length;++ni[s])return 1;if(a[s]t?t:r},eR=function(r,e){var t=e.toString(),n=t.indexOf(".");if(n===-1)return Math.round(r);var a=t.substr(n+1).length;return a>20&&(a=20),parseFloat(r.toFixed(a))},Ot=function(r){return xa(r,"Number")},tR=function(r){return Ot(r)&&r%1!==0},rR=function(r){return Ot(r)&&r%2===0},nR=Number.isInteger?Number.isInteger:function(r){return Ot(r)&&r%1===0},aR=function(r){return Ot(r)&&r<0},iR=1e-5;function NS(r,e,t){return t===void 0&&(t=iR),Math.abs(r-e)0};const uR=function(r,e){if(bt(r)){for(var t,n=-1/0,a=0;an&&(t=i,n=o)}return t}},fR=function(r,e){if(bt(r)){for(var t,n=1/0,a=0;ae?(n&&(clearTimeout(n),n=null),s=l,o=r.apply(a,i),n||(a=i=null)):!n&&t.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},GS=function(r){return On(r)?Array.prototype.slice.call(r):[]};var Kl={};const Ji=function(r){return r=r||"g",Kl[r]?Kl[r]+=1:Kl[r]=1,r+Kl[r]},nf=function(){},$R=function(r){return r};function XR(r){return Zt(r)?0:On(r)?r.length:Object.keys(r).length}var Ql;const af=RS(function(r,e){e===void 0&&(e={});var t=e.fontSize,n=e.fontFamily,a=e.fontWeight,i=e.fontStyle,o=e.fontVariant;return Ql||(Ql=document.createElement("canvas").getContext("2d")),Ql.font=[i,o,a,t+"px",n].join(" "),Ql.measureText(Ye(r)?r:"").width},function(r,e){return e===void 0&&(e={}),Yg([r],qg(e)).join("")}),WR=function(r,e,t,n){n===void 0&&(n="...");var a=16,i=af(n,t),o=Ye(r)?r:hu(r),s=e,u=[],f,l;if(af(r,t)<=e)return r;for(;f=o.substr(0,a),l=af(f,t),!(l+i>s&&l>s);)if(u.push(f),s-=l,o=o.substr(a),!o)return u.join("");for(;f=o.substr(0,1),l=af(f,t),!(l+i>s);)if(u.push(f),s-=l,o=o.substr(1),!o)return u.join("");return""+u.join("")+n};var VR=function(){function r(){this.map={}}return r.prototype.has=function(e){return this.map[e]!==void 0},r.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},r.prototype.set=function(e,t){this.map[e]=t},r.prototype.clear=function(){this.map={}},r.prototype.delete=function(e){delete this.map[e]},r.prototype.size=function(){return Object.keys(this.map).length},r}();const YR=Object.freeze(Object.defineProperty({__proto__:null,Cache:VR,assign:Et,augment:IR,clamp:JP,clearAnimationFrame:PS,clone:rr,contains:mh,debounce:Hg,deepMix:_r,difference:CP,each:_e,endsWith:WP,every:VP,extend:NR,filter:_S,find:IP,findIndex:kP,firstValue:NP,fixedBase:eR,flatten:OP,flattenDeep:AS,forIn:_e,get:BS,getEllipsisText:WR,getRange:LP,getType:OS,getWrapBehavior:ZP,group:HP,groupBy:wh,groupToMap:kS,has:Qb,hasKey:Qb,hasValue:vR,head:UP,identity:$R,includes:mh,indexOf:OR,isArguments:wR,isArray:bt,isArrayLike:On,isBoolean:Vf,isDate:xR,isDecimal:tR,isElement:TR,isEmpty:DR,isEqual:jo,isEqualWith:PR,isError:ER,isEven:rR,isFinite:_R,isFunction:Tr,isInteger:nR,isMatch:MS,isNegative:aR,isNil:Zt,isNull:SR,isNumber:Ot,isNumberEqual:NS,isObject:gn,isObjectLike:bh,isOdd:oR,isPlainObject:ln,isPositive:sR,isPrototype:LS,isRegExp:AR,isString:Ye,isType:xa,isUndefined:CR,keys:SS,last:$P,lowerCase:pR,lowerFirst:gR,map:RR,mapValues:BR,max:qa,maxBy:uR,measureTextWidth:af,memoize:RS,min:Ha,minBy:fR,mix:Et,mod:ud,noop:nf,number2color:KP,omit:UR,parseRadius:QP,pick:jR,pull:RP,pullAt:TS,reduce:IS,remove:BP,requestAnimationFrame:DS,set:GR,size:XR,some:YP,sortBy:GP,startsWith:XP,substitute:yR,throttle:xh,toArray:GS,toDegree:cR,toInteger:hR,toRadian:fd,toString:hu,union:zP,uniq:Mf,uniqueId:Ji,upperCase:mR,upperFirst:Hs,values:qg,valuesOfKey:jP,wrapBehavior:Fs},Symbol.toStringTag,{value:"Module"})),qR={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var t=this,n=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),_e(n,function(a,i){e.on(i,a)}),document.addEventListener("visibilitychange",function(){t.keydown=!1})},unbind:function(e){var t=this.events,n=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),_e(t,function(a,i){e.off(i,a)}),e.get("canvas").set("draggable",n)},get:function(e){return this[e]},set:function(e,t){return this[e]=t,this}};var Zg=function(){function r(){}return r.registerBehavior=function(e,t){if(!t)throw new Error("please specify handler for this behavior: ".concat(e));var n=rr(qR);Object.assign(n,t);var a=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var u=this.getEvents();this.events=null;var f={};u&&(_e(u,function(l,c){f[c]=Fs(s,l)}),this.events=f)};a.prototype=n,r.types[e]=a},r.hasBehavior=function(e){return!!r.types[e]},r.getBehavior=function(e){return r.types[e]},r.types={},r}(),HR="*",zS=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},r.prototype.once=function(e,t){return this.on(e,t,!0)},r.prototype.emit=function(e){for(var t=this,n=[],a=1;a=0?Math.round(r):r%.5===0?Math.floor(r):Math.round(r)}function ZR(r){qt=r}var KR=Math.PI/180,QR=180/Math.PI;function JR(r){return r*KR}function e3(r){return r*QR}function t3(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;return Math.abs(r-e)<=t*Math.max(1,Math.abs(r),Math.abs(e))}const r3=Object.freeze(Object.defineProperty({__proto__:null,ANGLE_ORDER:jS,get ARRAY_TYPE(){return qt},EPSILON:pt,RANDOM:ya,equals:t3,round:Ba,setMatrixArrayType:ZR,toDegree:e3,toRadian:JR},Symbol.toStringTag,{value:"Module"}));function n3(){var r=new qt(4);return qt!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r}function a3(r){var e=new qt(4);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e}function i3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}function o3(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r}function s3(r,e,t,n){var a=new qt(4);return a[0]=r,a[1]=e,a[2]=t,a[3]=n,a}function u3(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function f3(r,e){if(r===e){var t=e[1];r[1]=e[2],r[2]=t}else r[0]=e[0],r[1]=e[2],r[2]=e[1],r[3]=e[3];return r}function l3(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t*i-a*n;return o?(o=1/o,r[0]=i*o,r[1]=-n*o,r[2]=-a*o,r[3]=t*o,r):null}function c3(r,e){var t=e[0];return r[0]=e[3],r[1]=-e[1],r[2]=-e[2],r[3]=t,r}function h3(r){return r[0]*r[3]-r[2]*r[1]}function US(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*s+i*u,r[1]=a*s+o*u,r[2]=n*f+i*l,r[3]=a*f+o*l,r}function d3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+i*s,r[1]=a*u+o*s,r[2]=n*-s+i*u,r[3]=a*-s+o*u,r}function v3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1];return r[0]=n*s,r[1]=a*s,r[2]=i*u,r[3]=o*u,r}function p3(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=-t,r[3]=n,r}function g3(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=e[1],r}function y3(r){return"mat2("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}function m3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3])}function b3(r,e,t,n){return r[2]=n[2]/n[0],t[0]=n[0],t[1]=n[1],t[3]=n[3]-r[2]*t[1],[r,e,t]}function w3(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r}function $S(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r}function x3(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]}function E3(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(t-o)<=pt*Math.max(1,Math.abs(t),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}function _3(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}function S3(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r}var M3=US,A3=$S;const C3=Object.freeze(Object.defineProperty({__proto__:null,LDU:b3,add:w3,adjoint:c3,clone:a3,copy:i3,create:n3,determinant:h3,equals:E3,exactEquals:x3,frob:m3,fromRotation:p3,fromScaling:g3,fromValues:s3,identity:o3,invert:l3,mul:M3,multiply:US,multiplyScalar:_3,multiplyScalarAndAdd:S3,rotate:d3,scale:v3,set:u3,str:y3,sub:A3,subtract:$S,transpose:f3},Symbol.toStringTag,{value:"Module"}));function T3(){var r=new qt(6);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[4]=0,r[5]=0),r[0]=1,r[3]=1,r}function I3(r){var e=new qt(6);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e}function k3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function N3(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function O3(r,e,t,n,a,i){var o=new qt(6);return o[0]=r,o[1]=e,o[2]=t,o[3]=n,o[4]=a,o[5]=i,o}function L3(r,e,t,n,a,i,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r}function D3(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=t*i-n*a;return u?(u=1/u,r[0]=i*u,r[1]=-n*u,r[2]=-a*u,r[3]=t*u,r[4]=(a*s-i*o)*u,r[5]=(n*o-t*s)*u,r):null}function P3(r){return r[0]*r[3]-r[1]*r[2]}function XS(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1],c=t[2],h=t[3],d=t[4],v=t[5];return r[0]=n*f+i*l,r[1]=a*f+o*l,r[2]=n*c+i*h,r[3]=a*c+o*h,r[4]=n*d+i*v+s,r[5]=a*d+o*v+u,r}function R3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=Math.sin(t),l=Math.cos(t);return r[0]=n*l+i*f,r[1]=a*l+o*f,r[2]=n*-f+i*l,r[3]=a*-f+o*l,r[4]=s,r[5]=u,r}function F3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1];return r[0]=n*f,r[1]=a*f,r[2]=i*l,r[3]=o*l,r[4]=s,r[5]=u,r}function B3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=n*f+i*l+s,r[5]=a*f+o*l+u,r}function G3(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=-t,r[3]=n,r[4]=0,r[5]=0,r}function z3(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=e[1],r[4]=0,r[5]=0,r}function j3(r,e){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=e[0],r[5]=e[1],r}function U3(r){return"mat2d("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+")"}function $3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+1)}function X3(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r}function WS(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r}function W3(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r}function V3(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r}function Y3(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]}function q3(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=e[0],f=e[1],l=e[2],c=e[3],h=e[4],d=e[5];return Math.abs(t-u)<=pt*Math.max(1,Math.abs(t),Math.abs(u))&&Math.abs(n-f)<=pt*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-l)<=pt*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-c)<=pt*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=pt*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-d)<=pt*Math.max(1,Math.abs(s),Math.abs(d))}var H3=XS,Z3=WS;const K3=Object.freeze(Object.defineProperty({__proto__:null,add:X3,clone:I3,copy:k3,create:T3,determinant:P3,equals:q3,exactEquals:Y3,frob:$3,fromRotation:G3,fromScaling:z3,fromTranslation:j3,fromValues:O3,identity:N3,invert:D3,mul:H3,multiply:XS,multiplyScalar:W3,multiplyScalarAndAdd:V3,rotate:R3,scale:F3,set:L3,str:U3,sub:Z3,subtract:WS,translate:B3},Symbol.toStringTag,{value:"Module"}));function VS(){var r=new qt(9);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Q3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[4],r[4]=e[5],r[5]=e[6],r[6]=e[8],r[7]=e[9],r[8]=e[10],r}function J3(r){var e=new qt(9);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e}function e5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function t5(r,e,t,n,a,i,o,s,u){var f=new qt(9);return f[0]=r,f[1]=e,f[2]=t,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=u,f}function r5(r,e,t,n,a,i,o,s,u,f){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r[8]=f,r}function n5(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=1,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function a5(r,e){if(r===e){var t=e[1],n=e[2],a=e[5];r[1]=e[3],r[2]=e[6],r[3]=t,r[5]=e[7],r[6]=n,r[7]=a}else r[0]=e[0],r[1]=e[3],r[2]=e[6],r[3]=e[1],r[4]=e[4],r[5]=e[7],r[6]=e[2],r[7]=e[5],r[8]=e[8];return r}function YS(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=l*o-s*f,h=-l*i+s*u,d=f*i-o*u,v=t*c+n*h+a*d;return v?(v=1/v,r[0]=c*v,r[1]=(-l*n+a*f)*v,r[2]=(s*n-a*o)*v,r[3]=h*v,r[4]=(l*t-a*u)*v,r[5]=(-s*t+a*i)*v,r[6]=d*v,r[7]=(-f*t+n*u)*v,r[8]=(o*t-n*i)*v,r):null}function i5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8];return r[0]=o*l-s*f,r[1]=a*f-n*l,r[2]=n*s-a*o,r[3]=s*u-i*l,r[4]=t*l-a*u,r[5]=a*i-t*s,r[6]=i*f-o*u,r[7]=n*u-t*f,r[8]=t*o-n*i,r}function o5(r){var e=r[0],t=r[1],n=r[2],a=r[3],i=r[4],o=r[5],s=r[6],u=r[7],f=r[8];return e*(f*i-o*u)+t*(-f*a+o*s)+n*(u*a-i*s)}function Qa(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=t[0],d=t[1],v=t[2],p=t[3],g=t[4],y=t[5],m=t[6],b=t[7],w=t[8];return r[0]=h*n+d*o+v*f,r[1]=h*a+d*s+v*l,r[2]=h*i+d*u+v*c,r[3]=p*n+g*o+y*f,r[4]=p*a+g*s+y*l,r[5]=p*i+g*u+y*c,r[6]=m*n+b*o+w*f,r[7]=m*a+b*s+w*l,r[8]=m*i+b*u+w*c,r}function s5(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=t[0],d=t[1];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=u,r[6]=h*n+d*o+f,r[7]=h*a+d*s+l,r[8]=h*i+d*u+c,r}function u5(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=Math.sin(t),d=Math.cos(t);return r[0]=d*n+h*o,r[1]=d*a+h*s,r[2]=d*i+h*u,r[3]=d*o-h*n,r[4]=d*s-h*a,r[5]=d*u-h*i,r[6]=f,r[7]=l,r[8]=c,r}function f5(r,e,t){var n=t[0],a=t[1];return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=a*e[3],r[4]=a*e[4],r[5]=a*e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function Kg(r,e){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=1,r[5]=0,r[6]=e[0],r[7]=e[1],r[8]=1,r}function Qg(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=0,r[3]=-t,r[4]=n,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function Jg(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=e[1],r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function l5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=0,r[3]=e[2],r[4]=e[3],r[5]=0,r[6]=e[4],r[7]=e[5],r[8]=1,r}function c5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t+t,s=n+n,u=a+a,f=t*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return r[0]=1-c-v,r[3]=l-y,r[6]=h+g,r[1]=l+y,r[4]=1-f-v,r[7]=d-p,r[2]=h-g,r[5]=d+p,r[8]=1-f-c,r}function h5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,r[0]=(s*k-u*I+f*C)*O,r[1]=(u*M-o*k-f*A)*O,r[2]=(o*I-s*M+f*S)*O,r[3]=(a*I-n*k-i*C)*O,r[4]=(t*k-a*M+i*A)*O,r[5]=(n*M-t*I-i*S)*O,r[6]=(p*_-g*E+y*x)*O,r[7]=(g*w-v*_-y*b)*O,r[8]=(v*E-p*w+y*m)*O,r):null}function d5(r,e,t){return r[0]=2/e,r[1]=0,r[2]=0,r[3]=0,r[4]=-2/t,r[5]=0,r[6]=-1,r[7]=1,r[8]=1,r}function v5(r){return"mat3("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+", "+r[8]+")"}function p5(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+r[6]*r[6]+r[7]*r[7]+r[8]*r[8])}function g5(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r[6]=e[6]+t[6],r[7]=e[7]+t[7],r[8]=e[8]+t[8],r}function qS(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r[6]=e[6]-t[6],r[7]=e[7]-t[7],r[8]=e[8]-t[8],r}function y5(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r[6]=e[6]*t,r[7]=e[7]*t,r[8]=e[8]*t,r}function m5(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r[6]=e[6]+t[6]*n,r[7]=e[7]+t[7]*n,r[8]=e[8]+t[8]*n,r}function b5(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]}function w5(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=r[8],c=e[0],h=e[1],d=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(t-c)<=pt*Math.max(1,Math.abs(t),Math.abs(c))&&Math.abs(n-h)<=pt*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-d)<=pt*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-v)<=pt*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=pt*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=pt*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=pt*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(f-m)<=pt*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(l-b)<=pt*Math.max(1,Math.abs(l),Math.abs(b))}var x5=Qa,E5=qS;const HS=Object.freeze(Object.defineProperty({__proto__:null,add:g5,adjoint:i5,clone:J3,copy:e5,create:VS,determinant:o5,equals:w5,exactEquals:b5,frob:p5,fromMat2d:l5,fromMat4:Q3,fromQuat:c5,fromRotation:Qg,fromScaling:Jg,fromTranslation:Kg,fromValues:t5,identity:n5,invert:YS,mul:x5,multiply:Qa,multiplyScalar:y5,multiplyScalarAndAdd:m5,normalFromMat4:h5,projection:d5,rotate:u5,scale:f5,set:r5,str:v5,sub:E5,subtract:qS,translate:s5,transpose:a5},Symbol.toStringTag,{value:"Module"}));function _5(){var r=new qt(16);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r}function S5(r){var e=new qt(16);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}function M5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function A5(r,e,t,n,a,i,o,s,u,f,l,c,h,d,v,p){var g=new qt(16);return g[0]=r,g[1]=e,g[2]=t,g[3]=n,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=u,g[9]=f,g[10]=l,g[11]=c,g[12]=h,g[13]=d,g[14]=v,g[15]=p,g}function C5(r,e,t,n,a,i,o,s,u,f,l,c,h,d,v,p,g){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r[8]=f,r[9]=l,r[10]=c,r[11]=h,r[12]=d,r[13]=v,r[14]=p,r[15]=g,r}function ZS(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function T5(r,e){if(r===e){var t=e[1],n=e[2],a=e[3],i=e[6],o=e[7],s=e[11];r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=t,r[6]=e[9],r[7]=e[13],r[8]=n,r[9]=i,r[11]=e[14],r[12]=a,r[13]=o,r[14]=s}else r[0]=e[0],r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=e[1],r[5]=e[5],r[6]=e[9],r[7]=e[13],r[8]=e[2],r[9]=e[6],r[10]=e[10],r[11]=e[14],r[12]=e[3],r[13]=e[7],r[14]=e[11],r[15]=e[15];return r}function I5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,r[0]=(s*k-u*I+f*C)*O,r[1]=(a*I-n*k-i*C)*O,r[2]=(p*_-g*E+y*x)*O,r[3]=(h*E-c*_-d*x)*O,r[4]=(u*M-o*k-f*A)*O,r[5]=(t*k-a*M+i*A)*O,r[6]=(g*w-v*_-y*b)*O,r[7]=(l*_-h*w+d*b)*O,r[8]=(o*I-s*M+f*S)*O,r[9]=(n*M-t*I-i*S)*O,r[10]=(v*E-p*w+y*m)*O,r[11]=(c*w-l*E-d*m)*O,r[12]=(s*A-o*C-u*S)*O,r[13]=(t*C-n*A+a*S)*O,r[14]=(p*b-v*x-g*m)*O,r[15]=(l*x-c*b+h*m)*O,r):null}function k5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g;return r[0]=s*k-u*I+f*C,r[1]=a*I-n*k-i*C,r[2]=p*_-g*E+y*x,r[3]=h*E-c*_-d*x,r[4]=u*M-o*k-f*A,r[5]=t*k-a*M+i*A,r[6]=g*w-v*_-y*b,r[7]=l*_-h*w+d*b,r[8]=o*I-s*M+f*S,r[9]=n*M-t*I-i*S,r[10]=v*E-p*w+y*m,r[11]=c*w-l*E-d*m,r[12]=s*A-o*C-u*S,r[13]=t*C-n*A+a*S,r[14]=p*b-v*x-g*m,r[15]=l*x-c*b+h*m,r}function N5(r){var e=r[0],t=r[1],n=r[2],a=r[3],i=r[4],o=r[5],s=r[6],u=r[7],f=r[8],l=r[9],c=r[10],h=r[11],d=r[12],v=r[13],p=r[14],g=r[15],y=e*o-t*i,m=e*s-n*i,b=t*s-n*o,w=f*v-l*d,x=f*p-c*d,E=l*p-c*v,_=e*E-t*x+n*w,S=i*E-o*x+s*w,A=f*b-l*m+c*y,M=d*b-v*m+p*y;return u*_-a*S+g*A-h*M}function KS(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=e[9],d=e[10],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],b=t[0],w=t[1],x=t[2],E=t[3];return r[0]=b*n+w*s+x*c+E*p,r[1]=b*a+w*u+x*h+E*g,r[2]=b*i+w*f+x*d+E*y,r[3]=b*o+w*l+x*v+E*m,b=t[4],w=t[5],x=t[6],E=t[7],r[4]=b*n+w*s+x*c+E*p,r[5]=b*a+w*u+x*h+E*g,r[6]=b*i+w*f+x*d+E*y,r[7]=b*o+w*l+x*v+E*m,b=t[8],w=t[9],x=t[10],E=t[11],r[8]=b*n+w*s+x*c+E*p,r[9]=b*a+w*u+x*h+E*g,r[10]=b*i+w*f+x*d+E*y,r[11]=b*o+w*l+x*v+E*m,b=t[12],w=t[13],x=t[14],E=t[15],r[12]=b*n+w*s+x*c+E*p,r[13]=b*a+w*u+x*h+E*g,r[14]=b*i+w*f+x*d+E*y,r[15]=b*o+w*l+x*v+E*m,r}function O5(r,e,t){var n=t[0],a=t[1],i=t[2],o,s,u,f,l,c,h,d,v,p,g,y;return e===r?(r[12]=e[0]*n+e[4]*a+e[8]*i+e[12],r[13]=e[1]*n+e[5]*a+e[9]*i+e[13],r[14]=e[2]*n+e[6]*a+e[10]*i+e[14],r[15]=e[3]*n+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],u=e[2],f=e[3],l=e[4],c=e[5],h=e[6],d=e[7],v=e[8],p=e[9],g=e[10],y=e[11],r[0]=o,r[1]=s,r[2]=u,r[3]=f,r[4]=l,r[5]=c,r[6]=h,r[7]=d,r[8]=v,r[9]=p,r[10]=g,r[11]=y,r[12]=o*n+l*a+v*i+e[12],r[13]=s*n+c*a+p*i+e[13],r[14]=u*n+h*a+g*i+e[14],r[15]=f*n+d*a+y*i+e[15]),r}function L5(r,e,t){var n=t[0],a=t[1],i=t[2];return r[0]=e[0]*n,r[1]=e[1]*n,r[2]=e[2]*n,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*i,r[9]=e[9]*i,r[10]=e[10]*i,r[11]=e[11]*i,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function D5(r,e,t,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),u,f,l,c,h,d,v,p,g,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;return s0?(t[0]=(s*o+l*n+u*i-f*a)*2/c,t[1]=(u*o+l*a+f*n-s*i)*2/c,t[2]=(f*o+l*i+s*a-u*n)*2/c):(t[0]=(s*o+l*n+u*i-f*a)*2,t[1]=(u*o+l*a+f*n-s*i)*2,t[2]=(f*o+l*i+s*a-u*n)*2),QS(r,e,t),r}function JS(r,e){return r[0]=e[12],r[1]=e[13],r[2]=e[14],r}function eM(r,e){var t=e[0],n=e[1],a=e[2],i=e[4],o=e[5],s=e[6],u=e[8],f=e[9],l=e[10];return r[0]=Math.sqrt(t*t+n*n+a*a),r[1]=Math.sqrt(i*i+o*o+s*s),r[2]=Math.sqrt(u*u+f*f+l*l),r}function tM(r,e){var t=new qt(3);eM(t,e);var n=1/t[0],a=1/t[1],i=1/t[2],o=e[0]*n,s=e[1]*a,u=e[2]*i,f=e[4]*n,l=e[5]*a,c=e[6]*i,h=e[8]*n,d=e[9]*a,v=e[10]*i,p=o+l+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,r[3]=.25*g,r[0]=(c-d)/g,r[1]=(h-u)/g,r[2]=(s-f)/g):o>l&&o>v?(g=Math.sqrt(1+o-l-v)*2,r[3]=(c-d)/g,r[0]=.25*g,r[1]=(s+f)/g,r[2]=(h+u)/g):l>v?(g=Math.sqrt(1+l-o-v)*2,r[3]=(h-u)/g,r[0]=(s+f)/g,r[1]=.25*g,r[2]=(c+d)/g):(g=Math.sqrt(1+v-o-l)*2,r[3]=(s-f)/g,r[0]=(h+u)/g,r[1]=(c+d)/g,r[2]=.25*g),r}function W5(r,e,t,n){e[0]=n[12],e[1]=n[13],e[2]=n[14];var a=n[0],i=n[1],o=n[2],s=n[4],u=n[5],f=n[6],l=n[8],c=n[9],h=n[10];t[0]=Math.sqrt(a*a+i*i+o*o),t[1]=Math.sqrt(s*s+u*u+f*f),t[2]=Math.sqrt(l*l+c*c+h*h);var d=1/t[0],v=1/t[1],p=1/t[2],g=a*d,y=i*v,m=o*p,b=s*d,w=u*v,x=f*p,E=l*d,_=c*v,S=h*p,A=g+w+S,M=0;return A>0?(M=Math.sqrt(A+1)*2,r[3]=.25*M,r[0]=(x-_)/M,r[1]=(E-m)/M,r[2]=(y-b)/M):g>w&&g>S?(M=Math.sqrt(1+g-w-S)*2,r[3]=(x-_)/M,r[0]=.25*M,r[1]=(y+b)/M,r[2]=(E+m)/M):w>S?(M=Math.sqrt(1+w-g-S)*2,r[3]=(E-m)/M,r[0]=(y+b)/M,r[1]=.25*M,r[2]=(x+_)/M):(M=Math.sqrt(1+S-g-w)*2,r[3]=(y-b)/M,r[0]=(E+m)/M,r[1]=(x+_)/M,r[2]=.25*M),r}function V5(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=a+a,f=i+i,l=o+o,c=a*u,h=a*f,d=a*l,v=i*f,p=i*l,g=o*l,y=s*u,m=s*f,b=s*l,w=n[0],x=n[1],E=n[2];return r[0]=(1-(v+g))*w,r[1]=(h+b)*w,r[2]=(d-m)*w,r[3]=0,r[4]=(h-b)*x,r[5]=(1-(c+g))*x,r[6]=(p+y)*x,r[7]=0,r[8]=(d+m)*E,r[9]=(p-y)*E,r[10]=(1-(c+v))*E,r[11]=0,r[12]=t[0],r[13]=t[1],r[14]=t[2],r[15]=1,r}function Y5(r,e,t,n,a){var i=e[0],o=e[1],s=e[2],u=e[3],f=i+i,l=o+o,c=s+s,h=i*f,d=i*l,v=i*c,p=o*l,g=o*c,y=s*c,m=u*f,b=u*l,w=u*c,x=n[0],E=n[1],_=n[2],S=a[0],A=a[1],M=a[2],C=(1-(p+y))*x,I=(d+w)*x,k=(v-b)*x,O=(d-w)*E,B=(1-(h+y))*E,L=(g+m)*E,z=(v+b)*_,X=(g-m)*_,R=(1-(h+p))*_;return r[0]=C,r[1]=I,r[2]=k,r[3]=0,r[4]=O,r[5]=B,r[6]=L,r[7]=0,r[8]=z,r[9]=X,r[10]=R,r[11]=0,r[12]=t[0]+S-(C*S+O*A+z*M),r[13]=t[1]+A-(I*S+B*A+X*M),r[14]=t[2]+M-(k*S+L*A+R*M),r[15]=1,r}function q5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t+t,s=n+n,u=a+a,f=t*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return r[0]=1-c-v,r[1]=l+y,r[2]=h-g,r[3]=0,r[4]=l-y,r[5]=1-f-v,r[6]=d+p,r[7]=0,r[8]=h+g,r[9]=d-p,r[10]=1-f-c,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function H5(r,e,t,n,a,i,o){var s=1/(t-e),u=1/(a-n),f=1/(i-o);return r[0]=i*2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*u,r[6]=0,r[7]=0,r[8]=(t+e)*s,r[9]=(a+n)*u,r[10]=(o+i)*f,r[11]=-1,r[12]=0,r[13]=0,r[14]=o*i*2*f,r[15]=0,r}function rM(r,e,t,n,a){var i=1/Math.tan(e/2);if(r[0]=i/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,a!=null&&a!==1/0){var o=1/(n-a);r[10]=(a+n)*o,r[14]=2*a*n*o}else r[10]=-1,r[14]=-2*n;return r}var Z5=rM;function K5(r,e,t,n,a){var i=1/Math.tan(e/2);if(r[0]=i/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,a!=null&&a!==1/0){var o=1/(n-a);r[10]=a*o,r[14]=a*n*o}else r[10]=-1,r[14]=-n;return r}function Q5(r,e,t,n){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(a+i);return r[0]=u,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=f,r[6]=0,r[7]=0,r[8]=-((o-s)*u*.5),r[9]=(a-i)*f*.5,r[10]=n/(t-n),r[11]=-1,r[12]=0,r[13]=0,r[14]=n*t/(t-n),r[15]=0,r}function nM(r,e,t,n,a,i,o){var s=1/(e-t),u=1/(n-a),f=1/(i-o);return r[0]=-2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*u,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*f,r[11]=0,r[12]=(e+t)*s,r[13]=(a+n)*u,r[14]=(o+i)*f,r[15]=1,r}var J5=nM;function eF(r,e,t,n,a,i,o){var s=1/(e-t),u=1/(n-a),f=1/(i-o);return r[0]=-2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*u,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=f,r[11]=0,r[12]=(e+t)*s,r[13]=(a+n)*u,r[14]=i*f,r[15]=1,r}function tF(r,e,t,n){var a,i,o,s,u,f,l,c,h,d,v=e[0],p=e[1],g=e[2],y=n[0],m=n[1],b=n[2],w=t[0],x=t[1],E=t[2];return Math.abs(v-w)0&&(d=1/Math.sqrt(d),l*=d,c*=d,h*=d);var v=u*h-f*c,p=f*l-s*h,g=s*c-u*l;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),r[0]=v,r[1]=p,r[2]=g,r[3]=0,r[4]=c*g-h*p,r[5]=h*v-l*g,r[6]=l*p-c*v,r[7]=0,r[8]=l,r[9]=c,r[10]=h,r[11]=0,r[12]=a,r[13]=i,r[14]=o,r[15]=1,r}function nF(r){return"mat4("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+", "+r[8]+", "+r[9]+", "+r[10]+", "+r[11]+", "+r[12]+", "+r[13]+", "+r[14]+", "+r[15]+")"}function aF(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+r[6]*r[6]+r[7]*r[7]+r[8]*r[8]+r[9]*r[9]+r[10]*r[10]+r[11]*r[11]+r[12]*r[12]+r[13]*r[13]+r[14]*r[14]+r[15]*r[15])}function iF(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r[6]=e[6]+t[6],r[7]=e[7]+t[7],r[8]=e[8]+t[8],r[9]=e[9]+t[9],r[10]=e[10]+t[10],r[11]=e[11]+t[11],r[12]=e[12]+t[12],r[13]=e[13]+t[13],r[14]=e[14]+t[14],r[15]=e[15]+t[15],r}function aM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r[6]=e[6]-t[6],r[7]=e[7]-t[7],r[8]=e[8]-t[8],r[9]=e[9]-t[9],r[10]=e[10]-t[10],r[11]=e[11]-t[11],r[12]=e[12]-t[12],r[13]=e[13]-t[13],r[14]=e[14]-t[14],r[15]=e[15]-t[15],r}function oF(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r[6]=e[6]*t,r[7]=e[7]*t,r[8]=e[8]*t,r[9]=e[9]*t,r[10]=e[10]*t,r[11]=e[11]*t,r[12]=e[12]*t,r[13]=e[13]*t,r[14]=e[14]*t,r[15]=e[15]*t,r}function sF(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r[6]=e[6]+t[6]*n,r[7]=e[7]+t[7]*n,r[8]=e[8]+t[8]*n,r[9]=e[9]+t[9]*n,r[10]=e[10]+t[10]*n,r[11]=e[11]+t[11]*n,r[12]=e[12]+t[12]*n,r[13]=e[13]+t[13]*n,r[14]=e[14]+t[14]*n,r[15]=e[15]+t[15]*n,r}function uF(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]&&r[9]===e[9]&&r[10]===e[10]&&r[11]===e[11]&&r[12]===e[12]&&r[13]===e[13]&&r[14]===e[14]&&r[15]===e[15]}function fF(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=r[8],c=r[9],h=r[10],d=r[11],v=r[12],p=r[13],g=r[14],y=r[15],m=e[0],b=e[1],w=e[2],x=e[3],E=e[4],_=e[5],S=e[6],A=e[7],M=e[8],C=e[9],I=e[10],k=e[11],O=e[12],B=e[13],L=e[14],z=e[15];return Math.abs(t-m)<=pt*Math.max(1,Math.abs(t),Math.abs(m))&&Math.abs(n-b)<=pt*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-w)<=pt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-x)<=pt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-E)<=pt*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-_)<=pt*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-S)<=pt*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-A)<=pt*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(l-M)<=pt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-C)<=pt*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-I)<=pt*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-k)<=pt*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(v-O)<=pt*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=pt*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-L)<=pt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-z)<=pt*Math.max(1,Math.abs(y),Math.abs(z))}var lF=KS,cF=aM;const hF=Object.freeze(Object.defineProperty({__proto__:null,add:iF,adjoint:k5,clone:S5,copy:M5,create:_5,decompose:W5,determinant:N5,equals:fF,exactEquals:uF,frob:aF,fromQuat:q5,fromQuat2:X5,fromRotation:z5,fromRotationTranslation:QS,fromRotationTranslationScale:V5,fromRotationTranslationScaleOrigin:Y5,fromScaling:G5,fromTranslation:B5,fromValues:A5,fromXRotation:j5,fromYRotation:U5,fromZRotation:$5,frustum:H5,getRotation:tM,getScaling:eM,getTranslation:JS,identity:ZS,invert:I5,lookAt:tF,mul:lF,multiply:KS,multiplyScalar:oF,multiplyScalarAndAdd:sF,ortho:J5,orthoNO:nM,orthoZO:eF,perspective:Z5,perspectiveFromFieldOfView:Q5,perspectiveNO:rM,perspectiveZO:K5,rotate:D5,rotateX:P5,rotateY:R5,rotateZ:F5,scale:L5,set:C5,str:nF,sub:cF,subtract:aM,targetTo:rF,translate:O5,transpose:T5},Symbol.toStringTag,{value:"Module"}));function ey(){var r=new qt(3);return qt!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function dF(r){var e=new qt(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function iM(r){var e=r[0],t=r[1],n=r[2];return Math.sqrt(e*e+t*t+n*n)}function h0(r,e,t){var n=new qt(3);return n[0]=r,n[1]=e,n[2]=t,n}function vF(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r}function pF(r,e,t,n){return r[0]=e,r[1]=t,r[2]=n,r}function gF(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r}function oM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r}function sM(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r[2]=e[2]*t[2],r}function uM(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r[2]=e[2]/t[2],r}function yF(r,e){return r[0]=Math.ceil(e[0]),r[1]=Math.ceil(e[1]),r[2]=Math.ceil(e[2]),r}function mF(r,e){return r[0]=Math.floor(e[0]),r[1]=Math.floor(e[1]),r[2]=Math.floor(e[2]),r}function bF(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r}function wF(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r}function xF(r,e){return r[0]=Ba(e[0]),r[1]=Ba(e[1]),r[2]=Ba(e[2]),r}function EF(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r}function _F(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r}function fM(r,e){var t=e[0]-r[0],n=e[1]-r[1],a=e[2]-r[2];return Math.sqrt(t*t+n*n+a*a)}function lM(r,e){var t=e[0]-r[0],n=e[1]-r[1],a=e[2]-r[2];return t*t+n*n+a*a}function cM(r){var e=r[0],t=r[1],n=r[2];return e*e+t*t+n*n}function SF(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r}function MF(r,e){return r[0]=1/e[0],r[1]=1/e[1],r[2]=1/e[2],r}function hM(r,e){var t=e[0],n=e[1],a=e[2],i=t*t+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function ld(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function qc(r,e,t){var n=e[0],a=e[1],i=e[2],o=t[0],s=t[1],u=t[2];return r[0]=a*u-i*s,r[1]=i*o-n*u,r[2]=n*s-a*o,r}function AF(r,e,t,n){var a=e[0],i=e[1],o=e[2];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r[2]=o+n*(t[2]-o),r}function CF(r,e,t,n){var a=Math.acos(Math.min(Math.max(ld(e,t),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return r[0]=o*e[0]+s*t[0],r[1]=o*e[1]+s*t[1],r[2]=o*e[2]+s*t[2],r}function TF(r,e,t,n,a,i){var o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,f=o*(i-1),l=o*(3-2*i);return r[0]=e[0]*s+t[0]*u+n[0]*f+a[0]*l,r[1]=e[1]*s+t[1]*u+n[1]*f+a[1]*l,r[2]=e[2]*s+t[2]*u+n[2]*f+a[2]*l,r}function IF(r,e,t,n,a,i){var o=1-i,s=o*o,u=i*i,f=s*o,l=3*i*s,c=3*u*o,h=u*i;return r[0]=e[0]*f+t[0]*l+n[0]*c+a[0]*h,r[1]=e[1]*f+t[1]*l+n[1]*c+a[1]*h,r[2]=e[2]*f+t[2]*l+n[2]*c+a[2]*h,r}function kF(r,e){e=e===void 0?1:e;var t=ya()*2*Math.PI,n=ya()*2-1,a=Math.sqrt(1-n*n)*e;return r[0]=Math.cos(t)*a,r[1]=Math.sin(t)*a,r[2]=n*e,r}function NF(r,e,t){var n=e[0],a=e[1],i=e[2],o=t[3]*n+t[7]*a+t[11]*i+t[15];return o=o||1,r[0]=(t[0]*n+t[4]*a+t[8]*i+t[12])/o,r[1]=(t[1]*n+t[5]*a+t[9]*i+t[13])/o,r[2]=(t[2]*n+t[6]*a+t[10]*i+t[14])/o,r}function cd(r,e,t){var n=e[0],a=e[1],i=e[2];return r[0]=n*t[0]+a*t[3]+i*t[6],r[1]=n*t[1]+a*t[4]+i*t[7],r[2]=n*t[2]+a*t[5]+i*t[8],r}function OF(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,r[0]=s+o*l+a*h-i*c,r[1]=u+o*c+i*l-n*h,r[2]=f+o*h+n*c-a*l,r}function LF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function DF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function PF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function RF(r,e){var t=r[0],n=r[1],a=r[2],i=e[0],o=e[1],s=e[2],u=Math.sqrt((t*t+n*n+a*a)*(i*i+o*o+s*s)),f=u&&ld(r,e)/u;return Math.acos(Math.min(Math.max(f,-1),1))}function FF(r){return r[0]=0,r[1]=0,r[2]=0,r}function BF(r){return"vec3("+r[0]+", "+r[1]+", "+r[2]+")"}function GF(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]}function zF(r,e){var t=r[0],n=r[1],a=r[2],i=e[0],o=e[1],s=e[2];return Math.abs(t-i)<=pt*Math.max(1,Math.abs(t),Math.abs(i))&&Math.abs(n-o)<=pt*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=pt*Math.max(1,Math.abs(a),Math.abs(s))}var jF=oM,UF=sM,$F=uM,XF=fM,WF=lM,dM=iM,VF=cM,YF=function(){var r=ey();return function(e,t,n,a,i,o){var s,u;for(t||(t=3),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;s0&&(o=1/Math.sqrt(o)),r[0]=t*o,r[1]=n*o,r[2]=a*o,r[3]=i*o,r}function ny(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]}function nB(r,e,t,n){var a=t[0]*n[1]-t[1]*n[0],i=t[0]*n[2]-t[2]*n[0],o=t[0]*n[3]-t[3]*n[0],s=t[1]*n[2]-t[2]*n[1],u=t[1]*n[3]-t[3]*n[1],f=t[2]*n[3]-t[3]*n[2],l=e[0],c=e[1],h=e[2],d=e[3];return r[0]=c*f-h*u+d*s,r[1]=-(l*f)+h*o-d*i,r[2]=l*u-c*o+d*a,r[3]=-(l*s)+c*i-h*a,r}function CM(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r[2]=o+n*(t[2]-o),r[3]=s+n*(t[3]-s),r}function aB(r,e){e=e===void 0?1:e;var t,n,a,i,o,s,u;u=ya(),t=u*2-1,n=(4*ya()-2)*Math.sqrt(u*-u+u),o=t*t+n*n,u=ya(),a=u*2-1,i=(4*ya()-2)*Math.sqrt(u*-u+u),s=a*a+i*i;var f=Math.sqrt((1-o)/s);return r[0]=e*t,r[1]=e*n,r[2]=e*a*f,r[3]=e*i*f,r}function iB(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3];return r[0]=t[0]*n+t[4]*a+t[8]*i+t[12]*o,r[1]=t[1]*n+t[5]*a+t[9]*i+t[13]*o,r[2]=t[2]*n+t[6]*a+t[10]*i+t[14]*o,r[3]=t[3]*n+t[7]*a+t[11]*i+t[15]*o,r}function oB(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,r[0]=s+o*l+a*h-i*c,r[1]=u+o*c+i*l-n*h,r[2]=f+o*h+n*c-a*l,r[3]=e[3],r}function sB(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}function uB(r){return"vec4("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}function TM(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]}function fB(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(t-o)<=pt*Math.max(1,Math.abs(t),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}var lB=wM,cB=xM,hB=EM,dB=SM,vB=MM,pB=ty,gB=ry,yB=function(){var r=vM();return function(e,t,n,a,i,o){var s,u;for(t||(t=4),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;spt?(r[0]=e[0]/n,r[1]=e[1]/n,r[2]=e[2]/n):(r[0]=1,r[1]=0,r[2]=0),t}function xB(r,e){var t=iy(r,e);return Math.acos(2*t*t-1)}function kM(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*l+o*s+a*f-i*u,r[1]=a*l+o*u+i*s-n*f,r[2]=i*l+o*f+n*u-a*s,r[3]=o*l-n*s-a*u-i*f,r}function NM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+o*s,r[1]=a*u+i*s,r[2]=i*u-a*s,r[3]=o*u-n*s,r}function OM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u-i*s,r[1]=a*u+o*s,r[2]=i*u+n*s,r[3]=o*u-a*s,r}function LM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+a*s,r[1]=a*u-n*s,r[2]=i*u+o*s,r[3]=o*u-i*s,r}function EB(r,e){var t=e[0],n=e[1],a=e[2];return r[0]=t,r[1]=n,r[2]=a,r[3]=Math.sqrt(Math.abs(1-t*t-n*n-a*a)),r}function DM(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(t*t+n*n+a*a),s=Math.exp(i),u=o>0?s*Math.sin(o)/o:0;return r[0]=t*u,r[1]=n*u,r[2]=a*u,r[3]=s*Math.cos(o),r}function PM(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(t*t+n*n+a*a),s=o>0?Math.atan2(o,i)/o:0;return r[0]=t*s,r[1]=n*s,r[2]=a*s,r[3]=.5*Math.log(t*t+n*n+a*a+i*i),r}function _B(r,e,t){return PM(r,e),FM(r,r,t),DM(r,r),r}function Hc(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=t[0],f=t[1],l=t[2],c=t[3],h,d,v,p,g;return d=a*u+i*f+o*l+s*c,d<0&&(d=-d,u=-u,f=-f,l=-l,c=-c),1-d>pt?(h=Math.acos(d),v=Math.sin(h),p=Math.sin((1-n)*h)/v,g=Math.sin(n*h)/v):(p=1-n,g=n),r[0]=p*a+g*u,r[1]=p*i+g*f,r[2]=p*o+g*l,r[3]=p*s+g*c,r}function SB(r){var e=ya(),t=ya(),n=ya(),a=Math.sqrt(1-e),i=Math.sqrt(e);return r[0]=a*Math.sin(2*Math.PI*t),r[1]=a*Math.cos(2*Math.PI*t),r[2]=i*Math.sin(2*Math.PI*n),r[3]=i*Math.cos(2*Math.PI*n),r}function MB(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t*t+n*n+a*a+i*i,s=o?1/o:0;return r[0]=-t*s,r[1]=-n*s,r[2]=-a*s,r[3]=i*s,r}function AB(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r}function RM(r,e){var t=e[0]+e[4]+e[8],n;if(t>0)n=Math.sqrt(t+1),r[3]=.5*n,n=.5/n,r[0]=(e[5]-e[7])*n,r[1]=(e[6]-e[2])*n,r[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),r[a]=.5*n,n=.5/n,r[3]=(e[i*3+o]-e[o*3+i])*n,r[i]=(e[i*3+a]+e[a*3+i])*n,r[o]=(e[o*3+a]+e[a*3+o])*n}return r}function CB(r,e,t,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:jS,i=Math.PI/360;e*=i,n*=i,t*=i;var o=Math.sin(e),s=Math.cos(e),u=Math.sin(t),f=Math.cos(t),l=Math.sin(n),c=Math.cos(n);switch(a){case"xyz":r[0]=o*f*c+s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c-o*u*l;break;case"xzy":r[0]=o*f*c-s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c+o*u*l;break;case"yxz":r[0]=o*f*c+s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c+o*u*l;break;case"yzx":r[0]=o*f*c+s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c-o*u*l;break;case"zxy":r[0]=o*f*c-s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c-o*u*l;break;case"zyx":r[0]=o*f*c-s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c+o*u*l;break;default:throw new Error("Unknown angle order "+a)}return r}function TB(r){return"quat("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}var IB=pM,kB=gM,ay=yM,NB=mM,OB=bM,LB=kM,FM=_M,iy=ny,DB=CM,oy=ty,PB=oy,sy=ry,RB=sy,uy=AM,FB=TM;function BB(r,e){return Math.abs(ny(r,e))>=1-pt}var GB=function(){var r=ey(),e=h0(1,0,0),t=h0(0,1,0);return function(n,a,i){var o=ld(a,i);return o<-.999999?(qc(r,e,a),dM(r)<1e-6&&qc(r,t,a),hM(r,r),IM(n,r,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(qc(r,a,i),n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=1+o,uy(n,n))}}(),zB=function(){var r=Eh(),e=Eh();return function(t,n,a,i,o,s){return Hc(r,n,o,s),Hc(e,a,i,s),Hc(t,r,e,2*s*(1-s)),t}}(),jB=function(){var r=VS();return function(e,t,n,a){return r[0]=n[0],r[3]=n[1],r[6]=n[2],r[1]=a[0],r[4]=a[1],r[7]=a[2],r[2]=-t[0],r[5]=-t[1],r[8]=-t[2],uy(e,RM(e,r))}}();const UB=Object.freeze(Object.defineProperty({__proto__:null,add:OB,calculateW:EB,clone:IB,conjugate:AB,copy:ay,create:Eh,dot:iy,equals:BB,exactEquals:FB,exp:DM,fromEuler:CB,fromMat3:RM,fromValues:kB,getAngle:xB,getAxisAngle:wB,identity:bB,invert:MB,len:PB,length:oy,lerp:DB,ln:PM,mul:LB,multiply:kM,normalize:uy,pow:_B,random:SB,rotateX:NM,rotateY:OM,rotateZ:LM,rotationTo:GB,scale:FM,set:NB,setAxes:jB,setAxisAngle:IM,slerp:Hc,sqlerp:zB,sqrLen:RB,squaredLength:sy,str:TB},Symbol.toStringTag,{value:"Module"}));function $B(){var r=new qt(8);return qt!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[4]=0,r[5]=0,r[6]=0,r[7]=0),r[3]=1,r}function XB(r){var e=new qt(8);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e}function WB(r,e,t,n,a,i,o,s){var u=new qt(8);return u[0]=r,u[1]=e,u[2]=t,u[3]=n,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u}function VB(r,e,t,n,a,i,o){var s=new qt(8);s[0]=r,s[1]=e,s[2]=t,s[3]=n;var u=a*.5,f=i*.5,l=o*.5;return s[4]=u*n+f*t-l*e,s[5]=f*n+l*r-u*t,s[6]=l*n+u*e-f*r,s[7]=-u*r-f*e-l*t,s}function BM(r,e,t){var n=t[0]*.5,a=t[1]*.5,i=t[2]*.5,o=e[0],s=e[1],u=e[2],f=e[3];return r[0]=o,r[1]=s,r[2]=u,r[3]=f,r[4]=n*f+a*u-i*s,r[5]=a*f+i*o-n*u,r[6]=i*f+n*s-a*o,r[7]=-n*o-a*s-i*u,r}function YB(r,e){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r[4]=e[0]*.5,r[5]=e[1]*.5,r[6]=e[2]*.5,r[7]=0,r}function qB(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=0,r[5]=0,r[6]=0,r[7]=0,r}function HB(r,e){var t=Eh();tM(t,e);var n=new qt(3);return JS(n,e),BM(r,t,n),r}function GM(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r}function ZB(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r[6]=0,r[7]=0,r}function KB(r,e,t,n,a,i,o,s,u){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r}var QB=ay;function JB(r,e){return r[0]=e[4],r[1]=e[5],r[2]=e[6],r[3]=e[7],r}var eG=ay;function tG(r,e){return r[4]=e[0],r[5]=e[1],r[6]=e[2],r[7]=e[3],r}function rG(r,e){var t=e[4],n=e[5],a=e[6],i=e[7],o=-e[0],s=-e[1],u=-e[2],f=e[3];return r[0]=(t*f+i*o+n*u-a*s)*2,r[1]=(n*f+i*s+a*o-t*u)*2,r[2]=(a*f+i*u+t*s-n*o)*2,r}function nG(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0]*.5,u=t[1]*.5,f=t[2]*.5,l=e[4],c=e[5],h=e[6],d=e[7];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=o*s+a*f-i*u+l,r[5]=o*u+i*s-n*f+c,r[6]=o*f+n*u-a*s+h,r[7]=-n*s-a*u-i*f+d,r}function aG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return NM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function iG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return OM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function oG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return LM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function sG(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=e[3];return r[0]=s*o+l*n+u*i-f*a,r[1]=u*o+l*a+f*n-s*i,r[2]=f*o+l*i+s*a-u*n,r[3]=l*o-s*n-u*a-f*i,s=e[4],u=e[5],f=e[6],l=e[7],r[4]=s*o+l*n+u*i-f*a,r[5]=u*o+l*a+f*n-s*i,r[6]=f*o+l*i+s*a-u*n,r[7]=l*o-s*n-u*a-f*i,r}function uG(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*l+o*s+a*f-i*u,r[1]=a*l+o*u+i*s-n*f,r[2]=i*l+o*f+n*u-a*s,r[3]=o*l-n*s-a*u-i*f,s=t[4],u=t[5],f=t[6],l=t[7],r[4]=n*l+o*s+a*f-i*u,r[5]=a*l+o*u+i*s-n*f,r[6]=i*l+o*f+n*u-a*s,r[7]=o*l-n*s-a*u-i*f,r}function fG(r,e,t,n){if(Math.abs(n)0){t=Math.sqrt(t);var n=e[0]/t,a=e[1]/t,i=e[2]/t,o=e[3]/t,s=e[4],u=e[5],f=e[6],l=e[7],c=n*s+a*u+i*f+o*l;r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=(s-n*c)/t,r[5]=(u-a*c)/t,r[6]=(f-i*c)/t,r[7]=(l-o*c)/t}return r}function bG(r){return"quat2("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+")"}function wG(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]}function xG(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=e[0],c=e[1],h=e[2],d=e[3],v=e[4],p=e[5],g=e[6],y=e[7];return Math.abs(t-l)<=pt*Math.max(1,Math.abs(t),Math.abs(l))&&Math.abs(n-c)<=pt*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-h)<=pt*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-d)<=pt*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-v)<=pt*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=pt*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-g)<=pt*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-y)<=pt*Math.max(1,Math.abs(f),Math.abs(y))}const EG=Object.freeze(Object.defineProperty({__proto__:null,add:lG,clone:XB,conjugate:pG,copy:GM,create:$B,dot:jM,equals:xG,exactEquals:wG,fromMat4:HB,fromRotation:qB,fromRotationTranslation:BM,fromRotationTranslationValues:VB,fromTranslation:YB,fromValues:WB,getDual:JB,getReal:QB,getTranslation:rG,identity:ZB,invert:vG,len:gG,length:UM,lerp:dG,mul:cG,multiply:zM,normalize:mG,rotateAroundAxis:fG,rotateByQuatAppend:sG,rotateByQuatPrepend:uG,rotateX:aG,rotateY:iG,rotateZ:oG,scale:hG,set:KB,setDual:tG,setReal:eG,sqrLen:yG,squaredLength:hd,str:bG,translate:nG},Symbol.toStringTag,{value:"Module"}));function $M(){var r=new qt(2);return qt!=Float32Array&&(r[0]=0,r[1]=0),r}function _G(r){var e=new qt(2);return e[0]=r[0],e[1]=r[1],e}function SG(r,e){var t=new qt(2);return t[0]=r,t[1]=e,t}function MG(r,e){return r[0]=e[0],r[1]=e[1],r}function AG(r,e,t){return r[0]=e,r[1]=t,r}function fn(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function XM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function WM(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function VM(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function CG(r,e){return r[0]=Math.ceil(e[0]),r[1]=Math.ceil(e[1]),r}function TG(r,e){return r[0]=Math.floor(e[0]),r[1]=Math.floor(e[1]),r}function Pi(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ri(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}function IG(r,e){return r[0]=Ba(e[0]),r[1]=Ba(e[1]),r}function wn(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function kG(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function _h(r,e){var t=e[0]-r[0],n=e[1]-r[1];return Math.sqrt(t*t+n*n)}function YM(r,e){var t=e[0]-r[0],n=e[1]-r[1];return t*t+n*n}function qM(r){var e=r[0],t=r[1];return Math.sqrt(e*e+t*t)}function HM(r){var e=r[0],t=r[1];return e*e+t*t}function NG(r,e){return r[0]=-e[0],r[1]=-e[1],r}function OG(r,e){return r[0]=1/e[0],r[1]=1/e[1],r}function Wi(r,e){var t=e[0],n=e[1],a=t*t+n*n;return a>0&&(a=1/Math.sqrt(a)),r[0]=e[0]*a,r[1]=e[1]*a,r}function fy(r,e){return r[0]*e[0]+r[1]*e[1]}function LG(r,e,t){var n=e[0]*t[1]-e[1]*t[0];return r[0]=r[1]=0,r[2]=n,r}function DG(r,e,t,n){var a=e[0],i=e[1];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r}function PG(r,e){e=e===void 0?1:e;var t=ya()*2*Math.PI;return r[0]=Math.cos(t)*e,r[1]=Math.sin(t)*e,r}function RG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a,r[1]=t[1]*n+t[3]*a,r}function FG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function BG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[3]*a+t[6],r[1]=t[1]*n+t[4]*a+t[7],r}function GG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[4]*a+t[12],r[1]=t[1]*n+t[5]*a+t[13],r}function zG(r,e,t,n){var a=e[0]-t[0],i=e[1]-t[1],o=Math.sin(n),s=Math.cos(n);return r[0]=a*s-i*o+t[0],r[1]=a*o+i*s+t[1],r}function ZM(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.abs(Math.atan2(n*a-t*i,t*a+n*i))}function jG(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.atan2(t*i-n*a,t*a+n*i)}function UG(r){return r[0]=0,r[1]=0,r}function $G(r){return"vec2("+r[0]+", "+r[1]+")"}function ly(r,e){return r[0]===e[0]&&r[1]===e[1]}function XG(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.abs(t-a)<=pt*Math.max(1,Math.abs(t),Math.abs(a))&&Math.abs(n-i)<=pt*Math.max(1,Math.abs(n),Math.abs(i))}var WG=qM,Zc=XM,VG=WM,YG=VM,qG=_h,HG=YM,ZG=HM,KG=function(){var r=$M();return function(e,t,n,a,i,o){var s,u;for(t||(t=2),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;s0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o},eA=function(e){for(var t=e.nodes,n=t===void 0?[]:t,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=Un(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=Un(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),t&&n?(M=!1,C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!0)):t&&!n&&C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(t&&n===!1&&t.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=eA({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(t&&n&&t.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s},aA=function(e,t,n,a){return a===void 0&&(a=!0),t?py(e,n,a):vy(e,n,a)},l4=function(e,t,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?Un(v,s,"target"):Un(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c},Cf=function(e,t){for(var n=Uo(e,t),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},uA=function(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=QM();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=Uo(e,t),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=rr(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=ep(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=ep(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},fA=function(e,t,n,a,i,o,s,u){return t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e-4),i===void 0&&(i=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),u===void 0&&(u=1),my(e,t,n,a,!0,i,o,s,u)},lA=function(e,t){var n;t===void 0&&(t=1);for(var a=rr(e),i=a.nodes,o=i===void 0?[]:i,s=a.edges,u=s===void 0?[]:s,f=function(){var h=yi({nodes:o,edges:u}),d=Object.keys(h);d.sort(function(g,y){var m,b;return((m=h[g])===null||m===void 0?void 0:m.degree)-((b=h[y])===null||b===void 0?void 0:b.degree)});var v=d[0];if(!o.length||((n=h[v])===null||n===void 0?void 0:n.degree)>=t)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),u=u.filter(function(g){return!(g.source===v||g.target===v)})};;){var l=f();if(l==="break")break}return{nodes:o,edges:u}},rw=function(e,t,n){var a=[];switch(e){case pa.EuclideanDistance:a=t[n];break;default:a=[];break}return a},cA=function(e,t,n,a,i,o){t===void 0&&(t=3),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=["id"]),o===void 0&&(o=pa.EuclideanDistance);var s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(o===pa.EuclideanDistance&&!u.every(function(he){return he.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===pa.EuclideanDistance&&(h=gy(u,n),d=yy(h,a,i)),!d.length)return c;for(var v=Mf(d.map(function(he){return he.join("")})),p=Math.min(t,u.length,v.length),g=0;gx&&!y.find(function(it){return jo(it,rw(o,d,u[le].originIndex))})&&(x=Ve,E=le)}},S=0;S=0;O--)b[Number(u[g].clusterId)][O].id===u[g].id&&b[Number(u[g].clusterId)].splice(O,1);u[g].clusterId=String(M),b[M].push(u[g])}}for(var B=!1,g=0;g=1e3)break}var R=[],V={};return l.forEach(function(he){var ce,le,ie=he.source,Ie=he.target,qe=(ce=u.find(function(st){return st.id===ie}))===null||ce===void 0?void 0:ce.clusterId,Ve=(le=u.find(function(st){return st.id===Ie}))===null||le===void 0?void 0:le.clusterId,it="".concat(qe,"---").concat(Ve);if(V[it])V[it].count++;else{var dt={source:qe,target:Ve,count:1};V[it]=dt,R.push(dt)}}),{clusters:b,clusterEdges:R}},by=function(e,t){var n=new ta(t),a=n.norm2(),i=new ta(e),o=i.norm2(),s=n.dot(i),u=a*o,f=u?s/u:0;return f},hA=function(e,t,n,a,i){e===void 0&&(e=[]),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=[]);var o=rr(e.filter(function(h){return h.id!==t.id})),s=e.findIndex(function(h){return h.id===t.id}),u=gy(e,n),f=yy(u,a,i),l=f[s],c=[];return o.forEach(function(h,d){if(h.id!==t.id){var v=f[d],p=by(v,l);c.push(p),h.cosineSimilarity=p}}),o.sort(function(h,d){return d.cosineSimilarity-h.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},h4=function(){function r(e){this.count=e.length,this.parent={};for(var t=0,n=e;t0&&(this.list[0]=t,this.moveDown(0)),e},r.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},r.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var n=this.list[t];this.list[t]=this.list[e],this.list[e]=n,e=t,t=this.getParent(e)}},r.prototype.moveDown=function(e){var t,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(t=[this.list[n],this.list[e]],this.list[e]=t[0],this.list[n]=t[1],this.moveDown(n))},r}(),p4=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return t?g.weight-y.weight:0},c=new v4(l);for(Kc(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),Kc(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),Kc(v,s).forEach(function(p){c.insert(p)})))}return n},nw=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});t&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new h4(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},dA=function(e,t,n){var a={prim:p4,kruskal:nw};return n?a[n](e,t):nw(e,t)},vA=function(e,t,n){typeof t!="number"&&(t=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>t;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(t.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new ko(p,m,Ga,_.edgeLabel,Ga));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new Jl(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new Jl(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=t.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=t.maxNodeNum)){var y=t.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=t.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(t.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*t)););if(g<2*t&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*t)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[t]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},bA=function(e,t,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=Cf(e,n),c=Cf(t,n),h=lw(e.nodes,l,n),d=lw(t.nodes,c,n),v=uw(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=uw(t.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;fw(e.edges,s,p);var w=fw(t.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,Xn(Xn([],x,!1),[2],!1))),a||(a=i);var E=sw(e,l,o,a),_=sw(t,c,o,a),S=Math.min(100,f*(f-1)/2),A=E4(a,f,S,E,l),M=Qc(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=x4(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=Jc(Se,tt,o,s);X[te][N]=Fe})});var R=_4(X,z,L),V=R.structure,he=R.structureCountMap,ce=t.nodes[0],le=[],ie=(u=t.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;t.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=Qc(Se,_,t,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=Jc(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=Qc(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=Jc(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=mA(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:S4(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=Af(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,bu=ge[Ur.id].inDegree,wu=ge[Ur.id].outDegree,rn=Ur[o],ti=cw(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,xu=ti.minPatternNodeLabelInDegree,Eu=ti.minPatternNodeLabelOutDegree,_u=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},Bs=function(){function r(e){e===void 0&&(e=10),this.linkedList=new KM,this.maxStep=e}return Object.defineProperty(r.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),r.prototype.isEmpty=function(){return!this.linkedList.head},r.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},r.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},r.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},r.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},r.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},r.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},r}(),wA=dy;const M4={getAdjMatrix:Uo,breadthFirstSearch:JM,connectedComponent:cy,getDegree:yi,getInDegree:tA,getOutDegree:rA,detectCycle:dy,detectDirectedCycle:wA,detectAllCycles:aA,detectAllDirectedCycle:py,detectAllUndirectedCycle:vy,depthFirstSearch:hy,dijkstra:Af,findAllPath:sA,findShortestPath:oA,floydWarshall:Cf,labelPropagation:uA,louvain:my,iLouvain:fA,kCore:lA,kMeans:cA,cosineSimilarity:by,nodesCosineSimilarity:hA,minimumSpanningTree:dA,pageRank:vA,getNeighbors:Un,Stack:Bs,GADDI:bA},A4=Object.freeze(Object.defineProperty({__proto__:null,GADDI:bA,Stack:Bs,breadthFirstSearch:JM,connectedComponent:cy,cosineSimilarity:by,default:M4,depthFirstSearch:hy,detectAllCycles:aA,detectAllDirectedCycle:py,detectAllUndirectedCycle:vy,detectCycle:dy,detectDirectedCycle:wA,dijkstra:Af,findAllPath:sA,findShortestPath:oA,floydWarshall:Cf,getAdjMatrix:Uo,getDegree:yi,getInDegree:tA,getNeighbors:Un,getOutDegree:rA,iLouvain:fA,kCore:lA,kMeans:cA,labelPropagation:uA,louvain:my,minimumSpanningTree:dA,nodesCosineSimilarity:hA,pageRank:vA},Symbol.toStringTag,{value:"Module"}));var Mh=eo,C4=function(e){return function(t,n){return t[e]-n[e]}},hw=function(e,t,n){return e>=t&&e<=n},dd=function(e,t,n,a){var i=1e-4,o={x:n.x-e.x,y:n.y-e.y},s={x:t.x-e.x,y:t.y-e.y},u={x:a.x-n.x,y:a.y-n.y},f=s.x*u.y-s.y*u.x,l=f*f,c=1/f,h=s.x*s.x+s.y*s.y,d=u.x*u.x+u.y*u.y;if(l>i*h*d){var v=(o.x*u.y-o.y*u.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!hw(v,0,1)||!hw(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},xA=function(e,t){var n=e.x,a=e.y,i=e.width,o=e.height,s=n+i/2,u=a+o/2,f=[],l={x:s,y:u};f.push({x:n,y:a}),f.push({x:n+i,y:a}),f.push({x:n+i,y:a+o}),f.push({x:n,y:a+o}),f.push({x:n,y:a});for(var c=null,h=1;ht[a][o]+t[o][i]&&(t[a][i]=t[a][o]+t[o][i]);return t},k4=function(e,t){var n=e.nodes,a=e.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(s,u){o[s.id]=u;var f=[];i.push(f)}),a&&a.forEach(function(s){var u=s.source,f=s.target,l=o[u],c=o[f];i[l][c]=1,t||(i[c][l]=1)}),i},MA=function(e,t){e.translate(t.x,t.y)},v0=function(e,t,n,a){a===void 0&&(a={duration:500});var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=t.x-o.minX,u=t.y-o.minY;if(n){var f=s*i[0],l=u*i[4],c=0,h=0,d=0,v=0;e.animate(function(g){return d=f*g,v=l*g,i=Mh(i,[["t",d-c,v-h]]),c=d,h=v,{matrix:i}},a)}else{var p=Mh(i,[["t",s,u]]);e.setMatrix(p)}},N4=function(e,t){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=t;bt(t)||(a=[t,t]),bt(t)&&t.length===1&&(a=[t[0],t[0]]),n=Mh(n,[["s",a[0],a[1]]]),e.setMatrix(n)},O4=function(e,t){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=Mh(n,[["r",t]]),e.setMatrix(n)},L4=function(e,t,n){for(var a=[],i=0;i0!=s(l[1]-n)>0&&s(t-(n-f[1])*(f[0]-l[0])/(f[1]-l[1])-f[0])<0&&(a=!a)}return a},AA=function(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1){var m=h[0],b=h[v-1];d.push({from:{x:b[0],y:b[1]},to:{x:m[0],y:m[1]}})}return d};if(e.length<2||t.length<2)return!1;var i=n(e),o=n(t);if(!AA(i,o))return!1;var s=!1;if(_e(t,function(c){if(Tf(e,c[0],c[1]))return s=!0,!1}),s||(_e(e,function(c){if(Tf(t,c[0],c[1]))return s=!0,!1}),s))return!0;var u=a(e),f=a(t),l=!1;return _e(f,function(c){if(P4(u,c))return l=!0,!1}),l},$o=function(){function r(e,t,n,a){this.x1=e,this.y1=t,this.x2=n,this.y2=a}return r.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),t=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2),i={x:e,y:t,minX:e,minY:t,maxX:n,maxY:a,width:n-e,height:a-t};return i},r}(),wy=function(e,t){var n={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return n[t]},R4=function(e,t){var n=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),a=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),i=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(i){var o=n/i,s=a/i;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},TA=function(e,t){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=0,o=[],s=0;s<4;s++){var u=wy(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3];o[s]=dd({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},{x:f,y:l},{x:c,y:h}),o[s]&&(i+=1)}return[o,i]},xy=function(e,t){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var u=wy(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3],d=R4(t,new $o(f,l,c,h));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,i=d0){for(var a=0,i=e;at.x+t.width,i=e.y>t.y+t.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var Pa=Math.PI,y0=Math.sin,m0=Math.cos,sn=y0(Pa/8),un=m0(Pa/8),Th=function(e,t){var n=e.getBBox(),a={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(t){var o=t.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),a=js(a,o),i=js(i,o)}var s=a.x,u=a.y,f=i.x,l=i.y;return{x:s,y:u,minX:s,minY:u,maxX:f,maxY:l,width:f-s,height:l-u}},OA=function(e){var t=e.sourceNode||e.targetNode,n=t.get("group"),a=n.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getKeyShape(),o=i.getBBox(),s=e.loopCfg||{},u=s.dist||Math.max(o.width,o.height)*2,f=s.position||ft.defaultLoopPosition,l=[(o.minX+o.maxX)/2+a[6],(o.minY+o.maxY)/2+a[7]],c=[e.startPoint.x,e.startPoint.y],h=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,y=p*sn,m=p*un,b=g*sn,w=g*un,x=i.get("type"),E=Math.min(d/2,v/2),_=Math.min(d,v),S=s!=null&&s.pointPadding?Math.min(_,s==null?void 0:s.pointPadding):E;if(c[0]===h[0]&&c[1]===h[1]){switch(f){case"top":x==="circle"?(c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]):(c=[l[0]-S,l[1]-d],h=[l[0]+S,l[1]-d]);break;case"top-right":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]-m],h=[l[0]+w,l[1]-b]):(c=[l[0]+v-S,l[1]-d],h=[l[0]+v,l[1]-d+S]);break;case"right":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]-y],h=[l[0]+w,l[1]+b]):(c=[l[0]+v,l[1]-S],h=[l[0]+v,l[1]+S]);break;case"bottom-right":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]+y],h=[l[0]+b,l[1]+w]):(c=[l[0]+v,l[1]+d-S],h=[l[0]+v-S,l[1]+d]);break;case"bottom":p=d,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]+m],h=[l[0]-b,l[1]+w]):(c=[l[0]-S,l[1]+d],h=[l[0]+S,l[1]+d]);break;case"bottom-left":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]+m],h=[l[0]-w,l[1]+b]):(c=[l[0]-v,l[1]+d-S],h=[l[0]-v+S,l[1]+d]);break;case"left":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]+y],h=[l[0]-w,l[1]-b]):(c=[l[0]-v,l[1]-S],h=[l[0]-v,l[1]+S]);break;case"top-left":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]-y],h=[l[0]-b,l[1]-w]):(c=[l[0]-v+S,l[1]-d],h=[l[0]-v,l[1]-d+S]);break;default:p=v,g=v,y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]}if(s.clockwise===!1){var A=[c[0],c[1]];c=[h[0],h[1]],h=[A[0],A[1]]}}var M=[c[0]-l[0],c[1]-l[1]],C=(p+u)/p,I=(g+u)/g;s.clockwise===!1&&(C=(g+u)/g,I=(p+u)/p);var k=wn([0,0],M,C),O=[l[0]+k[0],l[1]+k[1]],B=[h[0]-l[0],h[1]-l[1]],L=wn([0,0],B,I),z=[l[0]+L[0],l[1]+L[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:h[0],y:h[1]},e.controlPoints=[{x:O[0],y:O[1]},{x:z[0],y:z[1]}],e},LA=function(e,t,n,a,i){var o=1e-4,s=[],u=e==null?void 0:e.getPoint(t);if(!u)return{x:0,y:0,angle:0};if(t1-o)s=e.getEndTangent();else{var f=e==null?void 0:e.getPoint(t+o);s.push([u.x,u.y]),s.push([f.x,f.y])}var l=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(l<0&&(l+=Pa*2),n&&(u.x+=m0(l)*n,u.y+=y0(l)*n),a){var c=l-Pa/2;l>1/2*Pa&&l<3*1/2*Pa&&(c-=Pa),u.x+=m0(c)*a,u.y+=y0(c)*a}var h={x:u.x,y:u.y,angle:l};return i?(l>.5*Pa&&l<1.5*Pa&&(l-=Pa),P({rotate:l},h)):h},W4=function r(e,t,n,a){if(a(e,t,n)===!1)return!1;if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!r(e.children[i],e,i,a))return!1}return!0},V4=function r(e,t,n,a){if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!r(e.children[i],e,i,a))return}return a(e,t,n)!==!1},bn=function(e,t){typeof t=="function"&&W4(e,null,-1,t)},Ra=function(e,t){typeof t=="function"&&V4(e,null,-1,t)},DA=function(e,t){return t*(X4[e]||1)},PA=function(e,t){var n=0,a=new RegExp("[一-龥]+");return e.split("").forEach(function(i){a.test(i)?n+=t:n+=DA(i,t)}),[n,t]},RA=function(e,t){return typeof t!="number"||t<=0||t>=e.length?e:e.substring(0,t)+"..."},b0=function(e,t){var n=[],a={},i={};e.forEach(function(u){i[u.id]=u}),e.forEach(function(u,f){var l=rr(u);l.itemType="combo",l.children=void 0,l.parentId===l.id?(console.warn("The parentId for combo ".concat(l.id," can not be the same as the combo's id")),delete l.parentId):l.parentId&&!i[l.parentId]&&(console.warn("The parent combo for combo ".concat(l.id," does not exist!")),delete l.parentId);var c=a[l.id];if(c){if(l.children=c.children,a[l.id]=l,c=l,!c.parentId){n.push(c);return}var h=a[c.parentId];if(h)h.children?h.children.push(l):h.children=[l];else{var d={id:c.parentId,children:[c]};a[c.parentId]=d,a[l.id]=l}return}if(Ye(u.parentId)){var v=a[u.parentId];if(v)v.children?v.children.push(l):v.children=[l],a[l.id]=l;else{var p={id:u.parentId,children:[l]};a[p.id]=p,a[l.id]=l}}else n.push(l),a[l.id]=l});var o={};(t||[]).forEach(function(u){o[u.id]=u;var f=a[u.comboId];if(f){var l={id:u.id,comboId:u.comboId};f.children?f.children.push(l):f.children=[l],l.itemType="node",a[u.id]=l}});var s=0;return n.forEach(function(u){u.depth=s+10,bn(u,function(f){var l,c=a[f.id].itemType;c==="node"?l=a[f.comboId]:l=a[f.parentId],l&&c==="node"?f.depth=s+1:f.depth=s+10,s-1&&i.splice(l,1),u||(o={id:t,itemType:"node",comboId:n},s[t]={children:void 0}),t){var c=!1;if(n){var h=0;(e||[]).forEach(function(v){c||bn(v,function(p){return n===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],h=p.depth,o.itemType==="node"?o.depth=h+2:o.depth=h+1,!1):!0})})}else(!n||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;bn(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},eh=function(e,t,n){var a={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var i=n==null?void 0:n.getModel(),o=i||{},s=o.x,u=o.y,f=o.fixSize,l=o.collapsed,c=o.fixCollapseSize,h=l?c:f,d=bt(h)?h:[h,h],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:u-g[1],maxX:s+g[0],maxY:u+g[1],x:s,y:u,width:v,height:p}}return e.forEach(function(y){var m=t.findById(y.id);if(!(!m||!m.isVisible())){m.set("bboxCanvasCache",void 0);var b=m.getCanvasBBox();b.x&&a.minX>b.minX&&(a.minX=b.minX),b.y&&a.minY>b.minY&&(a.minY=b.minY),b.x&&a.maxX2&&(t.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([a,o[0]]),s==="r")t.push([a].concat(o));else for(;o.length>=e[s]&&(t.push([a].concat(o.splice(0,e[s]))),!!e[s]););return r}),t},x0=function(r,e){for(var t=[],n=0,a=r.length;a-2*!e>n;n+=2){var i=[{x:+r[n-2],y:+r[n-1]},{x:+r[n],y:+r[n+1]},{x:+r[n+2],y:+r[n+3]},{x:+r[n+4],y:+r[n+5]}];e?n?a-4===n?i[3]={x:+r[0],y:+r[1]}:a-2===n&&(i[2]={x:+r[0],y:+r[1]},i[3]={x:+r[2],y:+r[3]}):i[0]={x:+r[a-2],y:+r[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+r[n],y:+r[n+1]}),t.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return t},rc=function(r,e,t,n,a){var i=[];if(a===null&&n===null&&(n=t),r=+r,e=+e,t=+t,n=+n,a!==null){var o=Math.PI/180,s=r+t*Math.cos(-n*o),u=r+t*Math.cos(-a*o),f=e+t*Math.sin(-n*o),l=e+t*Math.sin(-a*o);i=[["M",s,f],["A",t,t,0,+(a-n>180),0,u,l]]}else i=[["M",r,e],["m",0,-n],["a",t,n,0,1,1,0,2*n],["a",t,n,0,1,1,0,-2*n],["z"]];return i},E0=function(r){if(r=Gs(r),!r||!r.length)return[["M",0,0]];var e=[],t=0,n=0,a=0,i=0,o=0,s,u;r[0][0]==="M"&&(t=+r[0][1],n=+r[0][2],a=t,i=n,o++,e[0]=["M",t,n]);for(var f=r.length===3&&r[0][0]==="M"&&r[1][0].toUpperCase()==="R"&&r[2][0].toUpperCase()==="Z",l=void 0,c=void 0,h=o,d=r.length;h1&&(x=Math.sqrt(x),t=x*t,n=x*n);var E=t*t,_=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*b*b)/(E*w*w+_*b*b)));g=S*t*w/n+(r+s)/2,y=S*-n*b/t+(e+u)/2,v=Math.asin(((e-y)/n).toFixed(9)),p=Math.asin(((u-y)/n).toFixed(9)),v=rp&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var A=p-v;if(Math.abs(A)>l){var M=p,C=s,I=u;p=v+l*(o&&p>v?1:-1),s=g+t*Math.cos(p),u=y+n*Math.sin(p),h=FA(s,u,t,n,a,0,o,C,I,[p,M,g,y])}A=p-v;var k=Math.cos(v),O=Math.sin(v),B=Math.cos(p),L=Math.sin(p),z=Math.tan(A/4),X=4/3*t*z,R=4/3*n*z,V=[r,e],he=[r+X*O,e-R*k],ce=[s+X*L,u-R*B],le=[s,u];if(he[0]=2*V[0]-he[0],he[1]=2*V[1]-he[1],f)return[he,ce,le].concat(h);h=[he,ce,le].concat(h).join().split(",");for(var ie=[],Ie=0,qe=h.length;Ie7){b[w].shift();for(var x=b[w];x.length;)o[w]="A",n&&(s[w]="A"),b.splice(w++,0,["C"].concat(x.splice(0,6)));b.splice(w,1),l=Math.max(t.length,n&&n.length||0)}},d=function(b,w,x,E,_){b&&w&&b[_][0]==="M"&&w[_][0]!=="M"&&(w.splice(_,0,["M",E.x,E.y]),x.bx=0,x.by=0,x.x=b[_][1],x.y=b[_][2],l=Math.max(t.length,n&&n.length||0))};l=Math.max(t.length,n&&n.length||0);for(var v=0;v1?1:u<0?0:u;for(var f=u/2,l=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&u.push(d);continue}var p=c*c-4*h*l,g=Math.sqrt(p);if(!(p<0)){var y=(-c+g)/(2*l);y>0&&y<1&&u.push(y);var m=(-c-g)/(2*l);m>0&&m<1&&u.push(m)}}for(var b=u.length,w=b,x;b--;)d=u[b],x=1-d,f[0][b]=x*x*x*r+3*x*x*d*t+3*x*d*d*a+d*d*d*o,f[1][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*i+d*d*d*s;return f[0][w]=r,f[1][w]=e,f[0][w+1]=o,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},tz=function(r,e,t,n,a,i,o,s){if(!(Math.max(r,t)Math.max(a,o)||Math.max(e,n)Math.max(i,s))){var u=(r*n-e*t)*(a-o)-(r-t)*(a*s-i*o),f=(r*n-e*t)*(i-s)-(e-n)*(a*s-i*o),l=(r-t)*(i-s)-(e-n)*(a-o);if(l){var c=u/l,h=f/l,d=+c.toFixed(2),v=+h.toFixed(2);if(!(d<+Math.min(r,t).toFixed(2)||d>+Math.max(r,t).toFixed(2)||d<+Math.min(a,o).toFixed(2)||d>+Math.max(a,o).toFixed(2)||v<+Math.min(e,n).toFixed(2)||v>+Math.max(e,n).toFixed(2)||v<+Math.min(i,s).toFixed(2)||v>+Math.max(i,s).toFixed(2)))return{x:c,y:h}}}},Oi=function(r,e,t){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},GA=function(r,e,t,n,a){if(a)return[["M",+r+ +a,e],["l",t-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-t,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",r,e],["l",t,0],["l",0,n],["l",-t,0],["z"]];return i.parsePathArray=BA,i},S0=function(r,e,t,n){return r===null&&(r=e=t=n=0),e===null&&(e=r.y,t=r.width,n=r.height,r=r.x),{x:r,y:e,width:t,w:t,height:n,h:n,x2:r+t,y2:e+n,cx:r+t/2,cy:e+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:GA(r,e,t,n),vb:[r,e,t,n].join(" ")}},rz=function(r,e){return r=S0(r),e=S0(e),Oi(e,r.x,r.y)||Oi(e,r.x2,r.y)||Oi(e,r.x,r.y2)||Oi(e,r.x2,r.y2)||Oi(r,e.x,e.y)||Oi(r,e.x2,e.y)||Oi(r,e.x,e.y2)||Oi(r,e.x2,e.y2)||(r.xe.x||e.xr.x)&&(r.ye.y||e.yr.y)},xw=function(r,e,t,n,a,i,o,s){bt(r)||(r=[r,e,t,n,a,i,o,s]);var u=ez.apply(null,r);return S0(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Ew=function(r,e,t,n,a,i,o,s,u){var f=1-u,l=Math.pow(f,3),c=Math.pow(f,2),h=u*u,d=h*u,v=l*r+c*3*u*t+f*3*u*u*a+d*o,p=l*e+c*3*u*n+f*3*u*u*i+d*s,g=r+2*u*(t-r)+h*(a-2*t+r),y=e+2*u*(n-e)+h*(i-2*n+e),m=t+2*u*(a-t)+h*(o-2*a+t),b=n+2*u*(i-n)+h*(s-2*i+n),w=f*r+u*t,x=f*e+u*n,E=f*a+u*o,_=f*i+u*s,S=90-Math.atan2(g-m,y-b)*180/Math.PI;return{x:v,y:p,m:{x:g,y},n:{x:m,y:b},start:{x:w,y:x},end:{x:E,y:_},alpha:S}},nz=function(r,e,t){var n=xw(r),a=xw(e);if(!rz(n,a))return[];for(var i=ww.apply(0,r),o=ww.apply(0,e),s=~~(i/8),u=~~(o/8),f=[],l=[],c={},h=[],d=0;d=0&&_<=1&&S>=0&&S<=1&&h.push({x:E.x,y:E.y,t1:_,t2:S})}}return h},az=function(r,e,t){r=_0(r),e=_0(e);for(var n,a,i,o,s,u,f,l,c,h,d=t?0:[],v=0,p=r.length;v=3&&(c.length===3&&h.push("Q"),h=h.concat(c[1])),c.length===2&&h.push("L"),h=h.concat(c[c.length-1]),h});return l}var uz=function(r,e,t){if(t===1)return[[].concat(r)];var n=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")n=n.concat(sz(r,e,t));else{var a=[].concat(r);a[0]==="M"&&(a[0]="L");for(var i=0;i<=t-1;i++)n.push(a)}return n},fz=function(r,e){if(r.length===1)return r;var t=r.length-1,n=e.length-1,a=t/n,i=[];if(r.length===1&&r[0][0]==="M"){for(var o=0;o=0;u--)o=i[u].index,i[u].type==="add"?r.splice(o,0,[].concat(r[o])):r.splice(o,1)}n=r.length;var c=a-n;if(n0)t=rp(t,r[n-1],1);else{r[n]=e[n];break}r[n]=["Q"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;case"T":r[n]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(n>0)t=rp(t,r[n-1],2);else{r[n]=e[n];break}r[n]=["C"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(t.length<2)if(n>0)t=rp(t,r[n-1],1);else{r[n]=e[n];break}r[n]=["S"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;default:r[n]=e[n]}return r};const dz=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:x0,fillPath:fz,fillPathByDiff:zA,formatPath:M0,intersection:iz,parsePathArray:BA,parsePathString:Gs,pathToAbsolute:E0,pathToCurve:_0,rectPath:GA},Symbol.toStringTag,{value:"Module"}));var UA=function(){function r(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return r.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},r.prototype.save=function(){},r.prototype.restore=function(){},r}();function $A(r,e){var t=r.indexOf(e);t!==-1&&r.splice(t,1)}var _w=typeof window<"u"&&typeof window.document<"u";function XA(r,e){if(r.isCanvas())return!0;for(var t=e.getParent(),n=!1;t;){if(t===r){n=!0;break}t=t.getParent()}return n}function A0(r){return r.cfg.visible&&r.cfg.capture}var vz=function(r){jt(e,r);function e(t){var n=r.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=Et(a,t),n}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,n){this.cfg[t]=n},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(zS),Sw=function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new bz:typeof navigator<"u"?Sz(navigator.userAgent):Az()}function _z(r){return r!==""&&Ez.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function Sz(r){var e=_z(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new mz;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.lengtho.delay&&_e(e.toAttrs,function(s,u){i.call(o.toAttrs,u)&&(delete o.toAttrs[u],delete o.fromAttrs[u])})}),r}var YA=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;n.attrs={};var a=n.getDefaultAttrs();return Et(a,t.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,n=[],a=0;a0?i=Pz(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var n=this;t===void 0&&(t=!0);var a=this.get("animations");_e(a,function(i){t&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),n=this.get("animations"),a=t.getTime();return _e(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),n=t.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return _e(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},e.prototype.emitDelegation=function(t,n){var a=this,i=n.propagationPath;this.getEvents();var o;t==="mouseenter"?o=n.fromShape:t==="mouseleave"&&(o=n.toShape);for(var s=function(c){var h=i[c],d=h.get("name");if(d){if((h.isGroup()||h.isCanvas&&h.isCanvas())&&o&&XA(h,o))return"break";bt(d)?_e(d,function(v){a.emitDelegateEvent(h,v,n)}):u.emitDelegateEvent(h,d,n)}},u=this,f=0;f0)});o.length>0?_e(o,function(u){var f=u.getBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(t=0,n=0,a=0,i=0);var s={x:t,y:a,minX:t,minY:a,maxX:n,maxY:i,width:n-t,height:i-a};return s},e.prototype.getCanvasBBox=function(){var t=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});o.length>0?_e(o,function(u){var f=u.getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(t=0,n=0,a=0,i=0);var s={x:t,y:a,minX:t,minY:a,maxX:n,maxY:i,width:n-t,height:i-a};return s},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.children=[],t},e.prototype.onAttrChange=function(t,n,a){if(r.prototype.onAttrChange.call(this,t,n,a),t==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();r.prototype.applyMatrix.call(this,t);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},e.prototype._applyChildrenMarix=function(t){var n=this.getChildren();_e(n,function(a){a.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],n=0;n=0;s--){var u=t[s];if(A0(u)&&(u.isGroup()?o=u.getShape(n,a,i):u.isHit(n,a)&&(o=u)),o)break}return o},e.prototype.add=function(t){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=t.getParent();o&&Rz(o,t),t.set("parent",this),n&&qA(t,n),i&&HA(t,i),a.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var n=this.getTotalMatrix();n&&t.applyMatrix(n)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();_e(t,function(n,a){return n[C0]=a,n}),t.sort(Fz(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),n=t.length-1;n>=0;n--)t[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),r.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var n=this.getChildren();return n[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var n=this.getChildren();return n.indexOf(t)>-1},e.prototype.removeChild=function(t,n){n===void 0&&(n=!0),this.contain(t)&&t.remove(n)},e.prototype.findAll=function(t){var n=[],a=this.getChildren();return _e(a,function(i){t(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(t)))}),n},e.prototype.find=function(t){var n=null,a=this.getChildren();return _e(a,function(i){if(t(i)?n=i:i.isGroup()&&(n=i.find(t)),n)return!1}),n},e.prototype.findById=function(t){return this.find(function(n){return n.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(n){return n.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(n){return n.get("name")===t})},e}(YA),Zs=0,of=0,Uu=0,KA=1e3,Ih,sf,kh=0,Xo=0,vd=0,kf=typeof performance=="object"&&performance.now?performance:Date,QA=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function JA(){return Xo||(QA(Bz),Xo=kf.now()+vd)}function Bz(){Xo=0}function T0(){this._call=this._time=this._next=null}T0.prototype=_y.prototype={constructor:T0,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?JA():+t)+(e==null?0:+e),!this._next&&sf!==this&&(sf?sf._next=this:Ih=this,sf=this),this._call=r,this._time=t,I0()},stop:function(){this._call&&(this._call=null,this._time=1/0,I0())}};function _y(r,e,t){var n=new T0;return n.restart(r,e,t),n}function Gz(){JA(),++Zs;for(var r=Ih,e;r;)(e=Xo-r._time)>=0&&r._call.call(null,e),r=r._next;--Zs}function Iw(){Xo=(kh=kf.now())+vd,Zs=of=0;try{Gz()}finally{Zs=0,jz(),Xo=0}}function zz(){var r=kf.now(),e=r-kh;e>KA&&(vd-=e,kh=r)}function jz(){for(var r,e=Ih,t,n=1/0;e;)e._call?(n>e._time&&(n=e._time),r=e,e=e._next):(t=e._next,e._next=null,e=r?r._next=t:Ih=t);sf=r,I0(n)}function I0(r){if(!Zs){of&&(of=clearTimeout(of));var e=r-Xo;e>24?(r<1/0&&(of=setTimeout(Iw,r-kf.now()-vd)),Uu&&(Uu=clearInterval(Uu))):(Uu||(kh=kf.now(),Uu=setInterval(zz,KA)),Zs=1,QA(Iw))}}function Sy(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function eC(r,e){var t=Object.create(r.prototype);for(var n in e)t[n]=e[n];return t}function Yf(){}var Nf=.7,Nh=1/Nf,Us="\\s*([+-]?\\d+)\\s*",Of="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uz=/^#([0-9a-f]{3,8})$/,$z=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Xz=new RegExp(`^rgb\\(${Va},${Va},${Va}\\)$`),Wz=new RegExp(`^rgba\\(${Us},${Us},${Us},${Of}\\)$`),Vz=new RegExp(`^rgba\\(${Va},${Va},${Va},${Of}\\)$`),Yz=new RegExp(`^hsl\\(${Of},${Va},${Va}\\)$`),qz=new RegExp(`^hsla\\(${Of},${Va},${Va},${Of}\\)$`),kw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sy(Yf,Lf,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Nw,formatHex:Nw,formatHex8:Hz,formatHsl:Zz,formatRgb:Ow,toString:Ow});function Nw(){return this.rgb().formatHex()}function Hz(){return this.rgb().formatHex8()}function Zz(){return tC(this).formatHsl()}function Ow(){return this.rgb().formatRgb()}function Lf(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=Uz.exec(r))?(t=e[1].length,e=parseInt(e[1],16),t===6?Lw(e):t===3?new Nn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?ac(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?ac(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=$z.exec(r))?new Nn(e[1],e[2],e[3],1):(e=Xz.exec(r))?new Nn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Wz.exec(r))?ac(e[1],e[2],e[3],e[4]):(e=Vz.exec(r))?ac(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Yz.exec(r))?Rw(e[1],e[2]/100,e[3]/100,1):(e=qz.exec(r))?Rw(e[1],e[2]/100,e[3]/100,e[4]):kw.hasOwnProperty(r)?Lw(kw[r]):r==="transparent"?new Nn(NaN,NaN,NaN,0):null}function Lw(r){return new Nn(r>>16&255,r>>8&255,r&255,1)}function ac(r,e,t,n){return n<=0&&(r=e=t=NaN),new Nn(r,e,t,n)}function Kz(r){return r instanceof Yf||(r=Lf(r)),r?(r=r.rgb(),new Nn(r.r,r.g,r.b,r.opacity)):new Nn}function k0(r,e,t,n){return arguments.length===1?Kz(r):new Nn(r,e,t,n??1)}function Nn(r,e,t,n){this.r=+r,this.g=+e,this.b=+t,this.opacity=+n}Sy(Nn,k0,eC(Yf,{brighter(r){return r=r==null?Nh:Math.pow(Nh,r),new Nn(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Nf:Math.pow(Nf,r),new Nn(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Nn(Bo(this.r),Bo(this.g),Bo(this.b),Oh(this.opacity))},displayable(){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:Dw,formatHex:Dw,formatHex8:Qz,formatRgb:Pw,toString:Pw}));function Dw(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function Qz(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pw(){const r=Oh(this.opacity);return`${r===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${r===1?")":`, ${r})`}`}function Oh(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Bo(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Po(r){return r=Bo(r),(r<16?"0":"")+r.toString(16)}function Rw(r,e,t,n){return n<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new ga(r,e,t,n)}function tC(r){if(r instanceof ga)return new ga(r.h,r.s,r.l,r.opacity);if(r instanceof Yf||(r=Lf(r)),!r)return new ga;if(r instanceof ga)return r;r=r.rgb();var e=r.r/255,t=r.g/255,n=r.b/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=NaN,s=i-a,u=(i+a)/2;return s?(e===i?o=(t-n)/s+(t0&&u<1?0:o,new ga(o,s,u,r.opacity)}function Jz(r,e,t,n){return arguments.length===1?tC(r):new ga(r,e,t,n??1)}function ga(r,e,t,n){this.h=+r,this.s=+e,this.l=+t,this.opacity=+n}Sy(ga,Jz,eC(Yf,{brighter(r){return r=r==null?Nh:Math.pow(Nh,r),new ga(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Nf:Math.pow(Nf,r),new ga(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,a=2*t-n;return new Nn(ap(r>=240?r-240:r+120,a,n),ap(r,a,n),ap(r<120?r+240:r-120,a,n),this.opacity)},clamp(){return new ga(Fw(this.h),ic(this.s),ic(this.l),Oh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Oh(this.opacity);return`${r===1?"hsl(":"hsla("}${Fw(this.h)}, ${ic(this.s)*100}%, ${ic(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Fw(r){return r=(r||0)%360,r<0?r+360:r}function ic(r){return Math.max(0,Math.min(1,r||0))}function ap(r,e,t){return(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)*255}const My=r=>()=>r;function e6(r,e){return function(t){return r+t*e}}function t6(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(n){return Math.pow(r+n*e,t)}}function r6(r){return(r=+r)==1?rC:function(e,t){return t-e?t6(e,t,r):My(isNaN(e)?t:e)}}function rC(r,e){var t=e-r;return t?e6(r,t):My(isNaN(r)?e:r)}const Bw=function r(e){var t=r6(e);function n(a,i){var o=t((a=k0(a)).r,(i=k0(i)).r),s=t(a.g,i.g),u=t(a.b,i.b),f=rC(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=f(l),a+""}}return n.gamma=r,n}(1);function nC(r,e){e||(e=[]);var t=r?Math.min(e.length,r.length):0,n=e.slice(),a;return function(i){for(a=0;at&&(i=e.slice(t,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:N0(n,a)})),t=ip.lastIndex;return tf.length?(u=Gs(i[s]),f=Gs(a[s]),f=zA(f,u),f=M0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u):e.pathFormatted||(u=Gs(i[s]),f=Gs(a[s]),f=M0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u,e.pathFormatted=!0),n[s]=[];for(var l=0;l0){for(var s=e.animators.length-1;s>=0;s--){if(n=e.animators[s],n.destroyed){e.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var u=a.length-1;u>=0;u--)i=a[u],t=U6(n,i,o),t&&(a.splice(u,1),t=!1,i.callback&&i.callback())}a.length===0&&e.removeAnimator(s)}var f=e.canvas.get("autoDraw");f||e.canvas.draw()}})},r.prototype.addAnimator=function(e){this.animators.push(e)},r.prototype.removeAnimator=function(e){this.animators.splice(e,1)},r.prototype.isAnimating=function(){return!!this.animators.length},r.prototype.stop=function(){this.timer&&this.timer.stop()},r.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},r.prototype.getTime=function(){return this.current},r}(),X6=40,qw=0,Hw=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Zw(r,e,t){t.name=e,t.target=r,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}function W6(r,e,t){if(t.bubbles){var n=void 0,a=!1;if(e==="mouseenter"?(n=t.fromShape,a=!0):e==="mouseleave"&&(a=!0,n=t.toShape),r.isCanvas()&&a)return;if(n&&XA(r,n)){t.bubbles=!1;return}t.name=e,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}}var V6=function(){function r(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;t._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=t.canvas,i=a.get("el");if(i!==n.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(n);t.dragging&&t._emitEvent("drag",n,o,t.draggingShape)}},this._onDocumentMouseUp=function(n){var a=t.canvas,i=a.get("el");if(i!==n.target&&t.dragging){var o=t._getPointInfo(n);t.draggingShape&&t._emitEvent("drop",n,o,null),t._emitEvent("dragend",n,o,t.draggingShape),t._afterDrag(t.draggingShape,o,n)}},this.canvas=e.canvas}return r.prototype.init=function(){this._bindEvents()},r.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");_e(Hw,function(n){t.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");_e(Hw,function(n){t.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._getEventObj=function(e,t,n,a,i,o){var s=new UA(e,t);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},r.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},r.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),a=t.getPointByEvent(e);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},r.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),a=this._getShape(n,t),i=this["_on"+e],o=!1;if(i)i.call(this,n,a,t);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,t,n,null,null,a),a&&this._emitEvent(e,t,n,a,null,a),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,n,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,t,n,s,s,null),this._emitEvent(e,t,n,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,n,null)):this._emitEvent(e,t,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var u=this.canvas,f=u.get("el");f.style.cursor=a.attr("cursor")||u.get("cursor")}},r.prototype._onmousedown=function(e,t,n){n.button===qw&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,t,null,null)},r.prototype._emitMouseoverEvents=function(e,t,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",e,t,n,n,a),this._emitEvent("mouseleave",e,t,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",e,t,a,n,a),this._emitEvent("mouseenter",e,t,a,n,a)))},r.prototype._emitDragoverEvents=function(e,t,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",e,t,n,n,a),this._emitEvent("dragenter",e,t,a,n,a)),i||this._emitEvent("dragover",e,t,a)):n&&this._emitEvent("dragleave",e,t,n,n,a),i&&this._emitEvent("dragover",e,t,a)},r.prototype._afterDrag=function(e,t,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(t,n);a!==e&&this._emitMouseoverEvents(n,t,e,a),this.currentShape=a},r.prototype._onmouseup=function(e,t,n){if(n.button===qw){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,e,t),this._emitEvent("dragend",n,e,a),this._afterDrag(a,e,n)):(this._emitEvent("mouseup",n,e,t),t===this.mousedownShape&&this._emitEvent("click",n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},r.prototype._ondragover=function(e,t,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,e,a,t,!0)},r.prototype._onmousemove=function(e,t,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,i,t,!1),this._emitEvent("drag",n,e,o);else{var s=this.mousedownPoint;if(s){var u=this.mousedownShape,f=n.timeStamp,l=f-this.mousedownTimeStamp,c=s.clientX-e.clientX,h=s.clientY-e.clientY,d=c*c+h*h;l>120||d>X6?u&&u.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!u&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t)):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t))}else this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t)}},r.prototype._emitEvent=function(e,t,n,a,i,o){var s=this._getEventObj(e,t,n,a,i,o);if(a){s.shape=a,Zw(a,e,s);for(var u=a.getParent();u;)u.emitDelegation(e,s),s.propagationStopped||W6(u,e,s),s.propagationPath.push(u),u=u.getParent()}else{var f=this.canvas;Zw(f,e,s)}},r.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},r}(),Kw="px",Qw=WA(),Y6=Qw&&Qw.name==="firefox",uC=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},e.prototype.initContainer=function(){var t=this.get("container");Ye(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var n=this.get("container");n.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new V6({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new $6(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,n){var a=this.get("el");_w&&(a.style.width=t+Kw,a.style.height=n+Kw)},e.prototype.changeSize=function(t,n){this.setDOMSize(t,n),this.set("width",t),this.set("height",n),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var n=this.get("el");_w&&n&&(n.style.cursor=t)},e.prototype.getPointByEvent=function(t){var n=this.get("supportCSSTransform");if(n){if(Y6&&!Zt(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Zt(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var a=this.getClientByEvent(t),i=a.x,o=a.y;return this.getPointByClient(i,o)},e.prototype.getClientByEvent=function(t){var n=t;return t.touches&&(t.type==="touchend"?n=t.changedTouches[0]:n=t.touches[0]),{x:n.clientX,y:n.clientY}},e.prototype.getPointByClient=function(t,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:t-i.left,y:n-i.top}},e.prototype.getClientByPoint=function(t,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:t+i.left,y:n+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),r.prototype.destroy.call(this))},e}(ZA),fC=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var t=r.prototype.clone.call(this),n=this.getChildren(),a=0;a=t&&a.minY<=n&&a.maxY>=n},e.prototype.afterAttrsChange=function(t){r.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(t){r.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),n=this.getTotalMatrix(),a=t.minX,i=t.minY,o=t.maxX,s=t.maxY;if(n){var u=Do(n,[t.minX,t.minY]),f=Do(n,[t.maxX,t.minY]),l=Do(n,[t.minX,t.maxY]),c=Do(n,[t.maxX,t.maxY]);a=Math.min(u[0],f[0],l[0],c[0]),o=Math.max(u[0],f[0],l[0],c[0]),i=Math.min(u[1],f[1],l[1],c[1]),s=Math.max(u[1],f[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,v=d===void 0?0:d,p=h.shadowOffsetX,g=p===void 0?0:p,y=h.shadowOffsetY,m=y===void 0?0:y,b=a-v+g,w=o+v+g,x=i-v+m,E=s+v+m;a=Math.min(a,b),o=Math.max(o,w),i=Math.min(i,x),s=Math.max(s,E)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,n){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[t,n,1];o=this.invertFromMatrix(o);var s=o[0],u=o[1],f=this._isInBBox(s,u);return this.isOnlyHitBox()?f:!!(f&&!this.isClipped(s,u)&&(this.isInShape(s,u)||a&&a.isHit(s,u)||i&&i.isHit(s,u)))},e}(YA),cC=new Map;function Ja(r,e){cC.set(r,e)}function hC(r){return cC.get(r)}function dC(r){var e=r.attr(),t=e.x,n=e.y,a=e.width,i=e.height;return{x:t,y:n,width:a,height:i}}function vC(r){var e=r.attr(),t=e.x,n=e.y,a=e.r;return{x:t-a,y:n-a,width:a*2,height:a*2}}function xn(r,e,t,n){var a=r-t,i=e-n;return Math.sqrt(a*a+i*i)}function rh(r,e){return Math.abs(r-e)<.001}function du(r,e){var t=Ha(r),n=Ha(e),a=qa(r),i=qa(e);return{x:t,y:n,width:a-t,height:i-n}}function pd(r){return(r+Math.PI*2)%(Math.PI*2)}const cn={box:function(r,e,t,n){return du([r,t],[e,n])},length:function(r,e,t,n){return xn(r,e,t,n)},pointAt:function(r,e,t,n,a){return{x:(1-a)*r+a*t,y:(1-a)*e+a*n}},pointDistance:function(r,e,t,n,a,i){var o=(t-r)*(a-r)+(n-e)*(i-e);if(o<0)return xn(r,e,a,i);var s=(t-r)*(t-r)+(n-e)*(n-e);return o>s?xn(t,n,a,i):this.pointToLine(r,e,t,n,a,i)},pointToLine:function(r,e,t,n,a,i){var o=[t-r,n-e];if(ly(o,[0,0]))return Math.sqrt((a-r)*(a-r)+(i-e)*(i-e));var s=[-o[1],o[0]];Wi(s,s);var u=[a-r,i-e];return Math.abs(fy(u,s))},tangentAngle:function(r,e,t,n){return Math.atan2(n-e,t-r)}};var q6=1e-4;function pC(r,e,t,n,a,i){var o,s=1/0,u=[t,n],f=20;i&&i>200&&(f=i/10);for(var l=1/f,c=l/10,h=0;h<=f;h++){var d=h*l,v=[a.apply(null,r.concat([d])),a.apply(null,e.concat([d]))],p=xn(u[0],u[1],v[0],v[1]);p=0&&p=0?[a]:[]}function ex(r,e,t,n){return 2*(1-n)*(e-r)+2*n*(t-e)}function gC(r,e,t,n,a,i,o){var s=Bi(r,t,a,o),u=Bi(e,n,i,o),f=cn.pointAt(r,e,t,n,o),l=cn.pointAt(t,n,a,i,o);return[[r,e,f.x,f.y,s,u],[s,u,l.x,l.y,a,i]]}function D0(r,e,t,n,a,i,o){if(o===0)return(xn(r,e,t,n)+xn(t,n,a,i)+xn(r,e,a,i))/2;var s=gC(r,e,t,n,a,i,.5),u=s[0],f=s[1];return u.push(o-1),f.push(o-1),D0.apply(null,u)+D0.apply(null,f)}const yC={box:function(r,e,t,n,a,i){var o=Jw(r,t,a)[0],s=Jw(e,n,i)[0],u=[r,a],f=[e,i];return o!==void 0&&u.push(Bi(r,t,a,o)),s!==void 0&&f.push(Bi(e,n,i,s)),du(u,f)},length:function(r,e,t,n,a,i){return D0(r,e,t,n,a,i,3)},nearestPoint:function(r,e,t,n,a,i,o,s){return pC([r,t,a],[e,n,i],o,s,Bi)},pointDistance:function(r,e,t,n,a,i,o,s){var u=this.nearestPoint(r,e,t,n,a,i,o,s);return xn(u.x,u.y,o,s)},interpolationAt:Bi,pointAt:function(r,e,t,n,a,i,o){return{x:Bi(r,t,a,o),y:Bi(e,n,i,o)}},divide:function(r,e,t,n,a,i,o){return gC(r,e,t,n,a,i,o)},tangentAngle:function(r,e,t,n,a,i,o){var s=ex(r,t,a,o),u=ex(e,n,i,o),f=Math.atan2(u,s);return pd(f)}};function Gi(r,e,t,n,a){var i=1-a;return i*i*i*r+3*e*a*i*i+3*t*a*a*i+n*a*a*a}function tx(r,e,t,n,a){var i=1-a;return 3*(i*i*(e-r)+2*i*a*(t-e)+a*a*(n-t))}function op(r,e,t,n){var a=-3*r+9*e-9*t+3*n,i=6*r-12*e+6*t,o=3*e-3*r,s=[],u,f,l;if(rh(a,0))rh(i,0)||(u=-o/i,u>=0&&u<=1&&s.push(u));else{var c=i*i-4*a*o;rh(c,0)?s.push(-i/(2*a)):c>0&&(l=Math.sqrt(c),u=(-i+l)/(2*a),f=(-i-l)/(2*a),u>=0&&u<=1&&s.push(u),f>=0&&f<=1&&s.push(f))}return s}function mC(r,e,t,n,a,i,o,s,u){var f=Gi(r,t,a,o,u),l=Gi(e,n,i,s,u),c=cn.pointAt(r,e,t,n,u),h=cn.pointAt(t,n,a,i,u),d=cn.pointAt(a,i,o,s,u),v=cn.pointAt(c.x,c.y,h.x,h.y,u),p=cn.pointAt(h.x,h.y,d.x,d.y,u);return[[r,e,c.x,c.y,v.x,v.y,f,l],[f,l,p.x,p.y,d.x,d.y,o,s]]}function P0(r,e,t,n,a,i,o,s,u){if(u===0)return H6([r,t,a,o],[e,n,i,s]);var f=mC(r,e,t,n,a,i,o,s,.5),l=f[0],c=f[1];return l.push(u-1),c.push(u-1),P0.apply(null,l)+P0.apply(null,c)}const gf={extrema:op,box:function(r,e,t,n,a,i,o,s){for(var u=[r,o],f=[e,s],l=op(r,t,a,o),c=op(e,n,i,s),h=0;h0?t:t*-1}const Z6={box:function(r,e,t,n){return{x:r-t,y:e-n,width:t*2,height:n*2}},length:function(r,e,t,n){return Math.PI*(3*(t+n)-Math.sqrt((3*t+n)*(t+3*n)))},nearestPoint:function(r,e,t,n,a,i){var o=t,s=n;if(o===0||s===0)return{x:r,y:e};for(var u=a-r,f=i-e,l=Math.abs(u),c=Math.abs(f),h=o*o,d=s*s,v=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(v),g=s*Math.sin(v);var m=(h-d)*Math.pow(Math.cos(v),3)/o,b=(d-h)*Math.pow(Math.sin(v),3)/s,w=p-m,x=g-b,E=l-m,_=c-b,S=Math.hypot(x,w),A=Math.hypot(_,E),M=S*Math.asin((w*_-x*E)/(S*A)),C=M/Math.sqrt(h+d-p*p-g*g);v+=C,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:r+rx(p,u),y:e+rx(g,f)}},pointDistance:function(r,e,t,n,a,i){var o=this.nearestPoint(r,e,t,n,a,i);return xn(o.x,o.y,a,i)},pointAt:function(r,e,t,n,a){var i=2*Math.PI*a;return{x:r+t*Math.cos(i),y:e+n*Math.sin(i)}},tangentAngle:function(r,e,t,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-t*Math.sin(i));return pd(o)}};function K6(r,e,t,n,a,i,o,s){return-1*t*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function Q6(r,e,t,n,a,i,o,s){return-1*t*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function J6(r,e,t){return Math.atan(-e/r*Math.tan(t))}function ej(r,e,t){return Math.atan(e/(r*Math.tan(t)))}function nx(r,e,t,n,a,i){return t*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+r}function ax(r,e,t,n,a,i){return t*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+e}function tj(r,e,t,n){var a=Math.atan2(n*r,t*e);return(a+Math.PI*2)%(Math.PI*2)}function ix(r,e,t){return{x:r*Math.cos(t),y:e*Math.sin(t)}}function ox(r,e,t){var n=Math.cos(t),a=Math.sin(t);return[r*n-e*a,r*a+e*n]}const rj={box:function(r,e,t,n,a,i,o){for(var s=J6(t,n,a),u=1/0,f=-1/0,l=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var h=s+c;if&&(f=d)}for(var v=ej(t,n,a),p=1/0,g=-1/0,y=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var m=v+c;ig&&(g=b)}return{x:u,y:p,width:f-u,height:g-p}},length:function(r,e,t,n,a,i,o){},nearestPoint:function(r,e,t,n,a,i,o,s,u){var f=ox(s-r,u-e,-a),l=f[0],c=f[1],h=Z6.nearestPoint(0,0,t,n,l,c),d=tj(t,n,h.x,h.y);do&&(h=ix(t,n,o));var v=ox(h.x,h.y,a);return{x:v[0]+r,y:v[1]+e}},pointDistance:function(r,e,t,n,a,i,o,s,u){var f=this.nearestPoint(r,e,t,n,s,u);return xn(f.x,f.y,s,u)},pointAt:function(r,e,t,n,a,i,o,s){var u=(o-i)*s+i;return{x:nx(r,e,t,n,a,u),y:ax(r,e,t,n,a,u)}},tangentAngle:function(r,e,t,n,a,i,o,s){var u=(o-i)*s+i,f=K6(r,e,t,n,a,i,o,u),l=Q6(r,e,t,n,a,i,o,u);return pd(Math.atan2(l,f))}};function bC(r){for(var e=0,t=[],n=0;n1||e<0||r.length<2)return null;var t=bC(r),n=t.segments,a=t.totalLength;if(a===0)return{x:r[0][0],y:r[0][1]};for(var i=0,o=null,s=0;s=i&&e<=i+c){var h=(e-i)/c;o=cn.pointAt(f[0],f[1],l[0],l[1],h);break}i+=c}return o}function ij(r,e){if(e>1||e<0||r.length<2)return 0;for(var t=bC(r),n=t.segments,a=t.totalLength,i=0,o=0,s=0;s=i&&e<=i+c){o=Math.atan2(l[1]-f[1],l[0]-f[0]);break}i+=c}return o}function oj(r,e,t){for(var n=1/0,a=0;a1){var a=fj(e,t);return e*n+a*(n-1)}return e}function fj(r,e){return e?e-r:r*.14}function lj(r,e){var t=xC(),n=0;if(Zt(r)||r==="")return n;if(t.save(),t.font=e,Ye(r)&&r.includes(` -`)){var a=r.split(` -`);_e(a,function(i){var o=t.measureText(i).width;n1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}_e(t,function(i,o){isNaN(i)||(t[o]=+i)}),e[n]=t}),e}function pj(r,e,t,n){var a=[],i=!!n,o,s,u,f,l,c,h;if(i){u=n[0],f=n[1];for(var d=0,v=r.length;d2&&(t.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([a,o[0]]),s==="r")t.push([a].concat(o));else for(;o.length>=e[s]&&(t.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}var bj=/[a-z]/;function ux(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function SC(r){var e=R0(r);if(!e||!e.length)return[["M",0,0]];for(var t=!1,n=0;n=0){t=!0;break}}if(!t)return e;var i=[],o=0,s=0,u=0,f=0,l=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],u=o,f=s,l++,i[0]=["M",o,s]);for(var n=l,h=e.length;n1&&(t*=Math.sqrt(d),n*=Math.sqrt(d));var v=t*t*(h*h)+n*n*(c*c),p=v?Math.sqrt((t*t*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*t*h/n:0,y=t?p*-n*c/t:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/t,(h-y)/n],x=[(-1*c-g)/t,(-1*h-y)/n],E=fx([1,0],w),_=fx(w,x);return F0(w,x)<=-1&&(_=Math.PI),F0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:B0(r,[f,l])?0:t,ry:B0(r,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}function lx(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function MC(r){r=vj(r);for(var e=[],t=null,n=null,a=null,i=0,o=r.length,s=0;sMath.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var c={xExtra:Math.cos(u/2-f)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(l-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0};return c}function Ej(r){var e=r.attr(),t=e.path,n=e.stroke,a=n?e.lineWidth:0,i=r.get("segments")||MC(t),o=xj(i,a),s=o.x,u=o.y,f=o.width,l=o.height,c={minX:s,minY:u,maxX:s+f,maxY:u+l};return c=ky(r,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function _j(r){var e=r.attr(),t=e.x1,n=e.y1,a=e.x2,i=e.y2,o=Math.min(t,a),s=Math.max(t,a),u=Math.min(n,i),f=Math.max(n,i),l={minX:o,maxX:s,minY:u,maxY:f};return l=ky(r,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}function Sj(r){var e=r.attr(),t=e.x,n=e.y,a=e.rx,i=e.ry;return{x:t-a,y:n-i,width:a*2,height:i*2}}Ja("rect",dC);Ja("image",dC);Ja("circle",vC);Ja("marker",vC);Ja("polyline",sj);Ja("polygon",uj);Ja("text",cj);Ja("path",Ej);Ja("line",_j);Ja("ellipse",Sj);var Mj=function(r){jt(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.item=n.item,a.canvasX=n.canvasX,a.canvasY=n.canvasY,a.wheelDelta=n.wheelDelta,a.detail=n.detail,a}return e}(UA),G0=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},Ny=function(e){if(bt(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(Ot(e))return[e,e,e,e];if(Ye(e)){var t=parseInt(e,10);return[t,t,t,t]}return[0,0,0,0]},Aj=function(e){var t=new Mj(e.type,e);return t.clientX=e.clientX,t.clientY=e.clientY,t.x=e.x,t.y=e.y,t.target=e.target,t.currentTarget=e.currentTarget,t.bubbles=!0,t.item=e.item,t},Cj=function(e){if(!e)return!1;for(var t=9,n=[1,0,0,0,1,0,0,0,1],a=0;an&&(n=c),h>i&&(i=h)}var d=Math.floor(t),v=Math.floor(a),p=Math.ceil(n)-Math.floor(t),g=Math.ceil(i)-Math.floor(a);return{x:d,y:v,width:p,height:g,minX:t,minY:a,maxX:n,maxY:i}},Tj=function(e,t,n,a,i){t===void 0&&(t=15),n===void 0&&(n="quadratic"),a===void 0&&(a=void 0),i===void 0&&(i=void 0);for(var o=e.length,s=t*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},l=[],c={},h=0;h=0;return t?a?Math.PI*2-n:n:a?n:Math.PI*2-n}to.angleTo=Lj;function Dj(r,e,t){return t?(r[0]=e[1],r[1]=-1*e[0]):(r[0]=-1*e[1],r[1]=e[0]),r}to.vertical=Dj;var Pj=function(){function r(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return r.prototype.getViewCenter=function(){var e=this.getFormatPadding(),t=this.graph,n=this.graph.get("width"),a=t.get("height");return{x:(n-e[1]-e[3])/2+e[3],y:(a-e[0]-e[2])/2+e[0]}},r.prototype.fitCenter=function(e,t){var n=this.graph,a=n.get("group"),i,o=n.getNodes();if(o.length>n.get("optimizeThreshold")){var s=1/0,u=1/0,f=-1/0,l=-1/0;o.forEach(function(w){var x=w.getModel(),E=x.x,_=x.y;s>E&&(s=E),u>_&&(u=_),fg&&(y=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var m=cx(d,[["t",-i.x,-i.y],["s",y,y],["t",i.x,i.y]]),b=If({animateCfg:n,callback:function(){e.setMatrix(m),f.emit("viewportchange",{action:"translate",matrix:d}),f.emit("viewportchange",{action:"zoom",matrix:m})}});e.stopAnimate(),e.setMatrix(t),e.animate(function(w){return{matrix:g0(t,m,w)}},b)}},r.prototype.fitView=function(e,t){var n=this.graph,a=this.getFormatPadding(),i=n.get("width"),o=n.get("height"),s=n.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var f,l=n.getNodes();if(l.length>n.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,v=-1/0;l.forEach(function(E){var _=E.getModel(),S=_.x,A=_.y;c>S&&(c=S),h>A&&(h=A),dm&&(b=m),e)this.animatedFitView(s,u,t,f,p,g,b,!0);else{var w=p.x-g.x,x=p.y-g.y;if(Fa(w)||Fa(x))return;n.translate(w,x),n.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b)}}},r.prototype.fitViewByRules=function(e,t,n){var a=e.onlyOutOfViewPort,i=a===void 0?!1:a,o=e.direction,s=o===void 0?"both":o,u=e.ratioRule,f=u===void 0?"min":u,l=this.graph,c=this.getFormatPadding(),h=l.get("width"),d=l.get("height"),v=l.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,y=l.getNodes();if(y.length>l.get("optimizeThreshold")){var m=1/0,b=1/0,w=-1/0,x=-1/0;y.forEach(function(O){var B=O.getModel(),L=B.x,z=B.y;m>L&&(m=L),b>z&&(b=z),wc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),y={x:c.x+c.width/2,y:c.y+c.height/2},m=(s-o[1]-o[3])/c.width,b=(u-o[0]-o[2])/c.height,w=m;m>b&&(w=b),n?this.animatedFitView(f,l,a,c,g,y,w,t):(i.translate(g.x-y.x,g.y-y.y),t&&!i.zoom(w,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",w))}}},r.prototype.changeSize=function(e,t){var n=this.graph;if(!Ot(e)||!Ot(t))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:e,height:t});var a=n.get("canvas");a.changeSize(e,t);var i=n.get("plugins");i.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},r.prototype.destroy=function(){this.graph=null,this.destroyed=!1},r}();function z0(r){"@babel/helpers - typeof";return z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z0(r)}function hx(r){if(typeof r!="string")return r;var e=function(_){if(typeof _!="string")return _;try{return JSON.parse(_.trim())}catch{return _.trim()}},t=e(r);if(typeof t!="string")return t;for(var n=function(_){return _[_.length-1]},a=r.trim(),i=[],o=[],s=function(){for(var _=[],S=0;S=0&&(i.height=o),s>=0&&(i.width=s),a.marginTop&&(i.y+=a.marginTop),a.marginLeft&&(i.x+=a.marginLeft),i}function OC(r,e){var t;e===void 0&&(e={x:0,y:0});var n=P({x:0,y:0,width:0,height:0},e);if(!((t=r.children)===null||t===void 0)&&t.length){var a=r.attrs,i=a===void 0?{}:a,o=i.marginTop,s=P({},e);o&&(s.y+=o);for(var u=0;un.width&&(n.width=l.width+l.x),l.height+l.y>n.height&&(n.height=l.height+l.y)}}}return r.bbox=Bj(r,e,n),r.attrs=P(P({},r.attrs),r.bbox),r}function LC(r,e){var t,n,a,i,o=(r||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&r&&(r.attrs.key=s),!r&&e)return{action:"delete",val:e,type:o,key:s};if(r&&!e)return{action:"add",val:r,type:o};if(!r&&!e)return{action:"same",type:o};var u=[];if(((t=r.children)===null||t===void 0?void 0:t.length)>0||((n=e.children)===null||n===void 0?void 0:n.length)>0)for(var f=Math.max((a=r.children)===null||a===void 0?void 0:a.length,(i=e.children)===null||i===void 0?void 0:i.length),l=e.children||[],c=r.children||[],h=0;h"u"?a=G0(i):typeof a!="string"&&(a=String(a)),this.get("model").id=a,this.set("id",a);var o=e.group;o&&(o.set("item",this),o.set("id",a)),this.init(),this.draw();var s=n.shape||n.type||(i==="edge"?"line":"circle"),u=this.get("shapeFactory");if(u&&u[s]){var f=u[s].options;if(f&&f.stateStyles){var l=this.get("styles")||n.stateStyles;l=_r({},f.stateStyles,l),this.set("styles",l)}}}return r.prototype.calculateBBox=function(){var e=this.get("keyShape"),t=this.get("group"),n=Th(e,t);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},r.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),t=this.get("group"),n=Th(e,t);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},r.prototype.drawInner=function(){var e=this,t=e.get("shapeFactory"),n=e.get("group"),a=e.get("model");n.clear();var i=a.visible;if(i!==void 0&&!i&&e.changeVisibility(i),!!t){e.updatePosition(a);var o=e.getShapeCfg(a),s=o.type,u=t.draw(s,o,n);u&&(e.set("keyShape",u),u.set("isKeyShape",!0),u.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(t,s)}},r.prototype.setOriginStyle=function(){var e=this.get("group"),t=e.get("children"),n=this.getKeyShape(),a=this,i=n.get("name");if(this.get("originStyle")){var d=this.get("originStyle");i&&!d[i]&&(d[i]={});for(var v=this.getCurrentStatesStyle(),p=function(y){var m=t[y],b=m.get("name"),w=m.attr();if(b&&b!==i){var x=v[b];d[b]||(d[b]={}),x?Object.keys(w).forEach(function(S){var A=w[S];A!==x[S]&&(d[b][S]=A)}):d[b]=m.get("type")!=="image"?rr(w):a.getShapeStyleByName(b)}else{var E=m.attr(),_={};Object.keys(v).forEach(function(S){var A=v[S];(S===i||!ln(A))&&(_[S]=A)}),Object.keys(E).forEach(function(S){var A=E[S];_[S]!==A&&(i?d[i][S]=A:d[S]=A)})}},s=0;s-1)return;n.push(i)}else u>-1&&n.splice(u,1)}else if(Ye(t)){var f=n.filter(function(h){return h.includes(o)});f.length>0&&this.clearStates(f),s=s.filter(function(h){return!h.includes(o)}),s.push(i),this.set("states",s)}if(a){var l=this.get("model"),c=l.type;a.setState(c,e,t,this)}},r.prototype.clearStates=function(e){var t=this,n=t.getStates(),a=t.get("shapeFactory"),i=t.get("model"),o=i.type;e||(e=n),Ye(e)&&(e=[e]);var s=n.filter(function(u){return e.indexOf(u)===-1});t.set("states",s),e.forEach(function(u){a.setState(o,u,!1,t)})},r.prototype.setOptimize=function(e){this.optimize=e},r.prototype.getContainer=function(){return this.get("group")},r.prototype.getKeyShape=function(){return this.get("keyShape")},r.prototype.getModel=function(){return this.get("model")},r.prototype.getType=function(){return this.get("type")},r.prototype.getID=function(){return this.get("id")},r.prototype.isItem=function(){return!0},r.prototype.getStates=function(){return this.get("states")},r.prototype.hasState=function(e){var t=this.getStates();return t.indexOf(e)>=0},r.prototype.refresh=function(e){var t=this.get("model");this.updatePosition(t),this.updateShape(e),this.afterUpdate(),this.clearCache()},r.prototype.getUpdateType=function(e){},r.prototype.update=function(e,t){t===void 0&&(t=void 0);var n=this.get("model");if(t==="move")this.updatePosition(e);else{var a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o={x:n.x,y:n.y};e.x=isNaN(+e.x)?n.x:+e.x,e.y=isNaN(+e.y)?n.y:+e.y;var s=this.get("styles");if(e.stateStyles){var u=e.stateStyles;Et(s,u),delete e.stateStyles}Object.assign(n,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(t)}this.afterUpdate(),this.clearCache()},r.prototype.updateShape=function(e){var t=this.get("shapeFactory"),n=this.get("model"),a=n.type;if(t.shouldUpdate(a)&&a===this.get("currentShape")){var i=this.getShapeCfg(n,e);t.baseUpdate(a,i,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(t,a)},r.prototype.updatePosition=function(e){var t=this.get("model"),n=isNaN(+e.x)?+t.x:+e.x,a=isNaN(+e.y)?+t.y:+e.y,i=this.get("group");if(isNaN(n)||isNaN(a))return!1;t.x=n,t.y=a;var o=i.getMatrix();return o&&o[6]===n&&o[7]===a?!1:(i.resetMatrix(),MA(i,{x:n,y:a}),this.clearCache(),!0)},r.prototype.getBBox=function(){var e=this.get(lp);return e||(e=this.calculateBBox(),this.set(lp,e)),e},r.prototype.getCanvasBBox=function(){var e=this.get(cp);return e||(e=this.calculateCanvasBBox(),this.set(cp,e)),e},r.prototype.toFront=function(){var e=this.get("group");e.toFront()},r.prototype.toBack=function(){var e=this.get("group");e.toBack()},r.prototype.show=function(){this.changeVisibility(!0)},r.prototype.hide=function(){this.changeVisibility(!1)},r.prototype.changeVisibility=function(e){var t=this.get("group");e?t.show():t.hide(),this.set("visible",e)},r.prototype.isVisible=function(){return this.get("visible")},r.prototype.enableCapture=function(e){var t=this.get("group");t&&t.set("capture",e)},r.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),t=this.get("group");e&&t.stopAnimate(),t.shapeMap={},this.clearCache(),t.remove(),this._cfg=null,this.destroyed=!0}},r}(),fc={source:"start",target:"end"},ka="Node",ms="Point",zj="Anchor",jj=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,n){var a=fc[t]+ms,i=t+ka,o=this.get(i);o&&!o.destroyed&&o.removeEdge(this),ln(n)?(this.set(a,n),this.set(i,null)):n&&(n.addEdge(this),this.set(i,n),this.set(a,null))},e.prototype.getLinkPoint=function(t,n,a){var i=fc[t]+ms,o=t+ka,s=this.get(i);if(!s){var u=this.get(o),f=t+zj,l=this.getPrePoint(t,a),c=n[f];Zt(c)||(s=u.getLinkPointByAnchor(c)),s=s||u.getLinkPoint(l),Zt(s.index)||this.set("".concat(t,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(t,n){if(n&&n.length){var a=t==="source"?0:n.length-1;return n[a]}var i=t==="source"?"target":"source";return this.getEndPoint(i)},e.prototype.getEndPoint=function(t){var n=t+ka,a=fc[t]+ms,i=this.get(n);return i&&!i.destroyed?i.get("model"):this.get(a)},e.prototype.getControlPointsByCenter=function(t){var n=this.getEndPoint("source"),a=this.getEndPoint("target"),i=this.get("shapeFactory"),o=t.type;return i.getControlPoints(o,{startPoint:n,endPoint:a})},e.prototype.getEndCenter=function(t){var n=t+ka,a=fc[t]+ms,i=this.get(n);if(i){var o=i.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(a)},e.prototype.init=function(){r.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(t,n){var a=this,i=a.get("linkCenter"),o=n!=null&&n.includes("move")?t:r.prototype.getShapeCfg.call(this,t);if(i)o.startPoint=a.getEndCenter("source"),o.endPoint=a.getEndCenter("target");else{var s=o.controlPoints||a.getControlPointsByCenter(o);o.startPoint=a.getLinkPoint("source",t,s),o.endPoint=a.getLinkPoint("target",t,s)}return o.sourceNode=a.get("sourceNode"),o.targetNode=a.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),n=this.get("source".concat(ka)),a=this.get("target".concat(ka));return n?delete t["source".concat(ka)]:t.source=this.get("start".concat(ms)),a?delete t["target".concat(ka)]:t.target=this.get("end".concat(ms)),!Ye(t.source)&&!ln(t.source)&&(t.source=t.source.getID()),!Ye(t.target)&&!ln(t.target)&&(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,n){n===void 0&&(n=void 0);var a=this.get("model"),i=a.visible,o=t.visible;i!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),u=this.get("target");if(!(!s||s.destroyed||!u||u.destroyed)){var f=this.get("styles");if(t.stateStyles){var l=t.stateStyles;Et(f,l),delete t.stateStyles}Object.assign(a,t),this.updateShape(n),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var t=this.get("source".concat(ka)),n=this.get("target".concat(ka));t&&!t.destroyed&&t.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),r.prototype.destroy.call(this)},e}(DC),hp="anchorPointsCache",Uj="bboxCache",PC=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(t,n){for(var a=0,i=t[0],o=Ah(t[0],n),s=0;s-1&&n.splice(a,1)},e.prototype.clearCache=function(){this.set(Uj,null),this.set(hp,null)},e.prototype.getUpdateType=function(t){var n,a,i,o,s;if(t){var u=!Zt(t.x),f=!Zt(t.y),l=Object.keys(t);if(l.length===1&&(u||f)||l.length===2&&u&&f)return"move";if(Ot(t.x)||Ot(t.y)||t.type||t.anchorPoints||t.size||t!=null&&t.style&&(!((n=t==null?void 0:t.style)===null||n===void 0)&&n.r||!((a=t==null?void 0:t.style)===null||a===void 0)&&a.width||!((i=t==null?void 0:t.style)===null||i===void 0)&&i.height||!((o=t==null?void 0:t.style)===null||o===void 0)&&o.rx||!((s=t==null?void 0:t.style)===null||s===void 0)&&s.ry))return"bbox|label";var c=l.includes("label")||l.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(t,n){var a=this;if(this.optimize){r.prototype.setState.call(this,t,n);return}this.runWithBBoxAffected(function(){return r.prototype.setState.call(a,t,n)})},e.prototype.clearStates=function(t){var n=this;if(this.optimize){r.prototype.clearStates.call(this,t);return}this.runWithBBoxAffected(function(){return r.prototype.clearStates.call(n,t)})},e.prototype.runWithBBoxAffected=function(t){var n=["r","width","height","rx","ry","lineWidth"],a=this.getKeyShape().attr(),i={};Object.keys(this.getKeyShape().attr()).forEach(function(f){n.includes(f)&&(i[f]=a[f])}),t();for(var o=this.getKeyShape().attr(),s=0;s-1?(n.splice(a,1),!0):!1}},e.prototype.removeNode=function(t){if(t){var n=this.getNodes(),a=n.indexOf(t);return a>-1?(n.splice(a,1),!0):!1}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){this.set(gx,null);var t=this.calculateCanvasBBox();return t},e.prototype.clearCache=function(){this.set(px,null),this.set(gx,null),this.set(yx,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),n=this.get("group");t&&n.stopAnimate(),n.shapeMap={},this.clearCache(),this.set(lc,null),this.set("bbox",null),n.remove(),this._cfg=null,this.destroyed=!0}},e}(PC),cc="node",hc="edge",mx="vedge",$u="combo",Xj="default",bx="Mapper",ii="stateStyles",Wj=function(){function r(e){var t=this;this.edgeToBeUpdateMap={},this.throttleRefresh=xh(function(n){var a=t.graph;if(!(!a||a.get("destroyed"))){var i=t.edgeToBeUpdateMap;if(i){var o=Object.values(i);o.length&&(o.forEach(function(s){var u=s.edge;if(!(!u||u.destroyed)){var f=u.getSource(),l=u.getTarget();!f||f.destroyed||!l||l.destroyed||u.refresh(s.updateType)}}),t.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return r.prototype.addItem=function(e,t){var n=this.graph,a=e===mx?hc:e,i=n.get("".concat(a,"Group"))||n.get("group"),o=Hs(a),s=null,u=n.get(a+Hs(ii))||{},f=n.get(Xj+o);t[ii]&&(u=t[ii]),f&&_e(f,function(E,_){gn(E)&&!bt(E)?t[_]=_r({},E,t[_]):bt(E)?t[_]=t[_]||rr(f[_]):t[_]=t[_]||f[_]});var l=n.get(a+bx);if(l){var c=l(t);c[ii]&&(u=c[ii],delete c[ii]),_e(c,function(E,_){gn(E)&&!bt(E)?t[_]=_r({},t[_],E):t[_]=c[_]||t[_]})}if(n.emit("beforeadditem",{type:e,model:t}),e===hc||e===mx){var h=void 0,d=void 0;if(h=t.source,d=t.target,h&&Ye(h)&&(h=n.findById(h)),d&&Ye(d)&&(d=n.findById(d)),!h||!d){console.warn("The source or target node of edge ".concat(t.id," does not exist!"));return}h.getType&&h.getType()==="combo"&&(t.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(t.isComboEdge=!0),s=new jj({model:t,source:h,target:d,styles:u,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(e===cc)s=new PC({model:t,styles:u,group:i.addGroup()});else if(e===$u){var v=t.children,p=eh(v,n),g=void 0,y=void 0;if(isNaN(p.x)?isNaN(t.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(t.y)&&(y=Math.random()*100):y=p.y,isNaN(t.x)||isNaN(t.y))t.x=g,t.y=y;else{var m=t.x-g,b=t.y-y;this.updateComboSucceeds(t.id,m,b,v)}var w=i.addGroup();w.setZIndex(t.depth),s=new $j({model:t,styles:u,animate:n.get("animate"),bbox:t.collapsed?eh([],n):p,group:w}),!t.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var x=s.getModel();(v||[]).forEach(function(E){var _=n.findById(E.id);s.addChild(_),E.depth=x.depth+2})}if(s)return s.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(e,"s")).push(s),n.get("itemMap")[s.get("id")]=s,n.emit("afteradditem",{item:s,model:t}),s},r.prototype.updateItem=function(e,t){var n=this,a,i,o=this.graph;if(Ye(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var u=o.get(s+bx),f=e.getModel(),l=f.x,c=f.y,h=e.getUpdateType(t);if(u){var d=_r({},f,t),v=u(d),p=_r({},f,v,t);v[ii]&&(e.set("styles",p[ii]),delete p[ii]),_e(p,function(M,C){t[C]=M})}else _e(t,function(M,C){f[C]&&gn(M)&&!bt(M)&&(t[C]=P(P({},f[C]),t[C]))});if(o.emit("beforeupdateitem",{item:e,cfg:t}),s===hc){if(t.source){var g=t.source;Ye(g)&&(g=o.findById(g)),e.setSource(g)}if(t.target){var y=t.target;Ye(y)&&(y=o.findById(y)),e.setTarget(y)}e.update(t)}else if(s===cc){e.update(t,h);var m=e.getEdges();h==="move"?_e(m,function(M){n.edgeToBeUpdateMap[M.getID()]={edge:M,updateType:h},n.throttleRefresh()}):h!=null&&h.includes("bbox")&&_e(m,function(M){M.refresh(h)})}else if(s===$u){if(e.update(t,h),!isNaN(t.x)||!isNaN(t.y)){var b=t.x-l||0,w=t.y-c||0;this.updateComboSucceeds(f.id,b,w)}var x=e.getEdges(),E=(h==null?void 0:h.includes("bbox"))||h==="move";if(E&&s===$u){var _=e.get("shapeFactory"),S=f.type||"circle",A=f.animate===void 0||t.animate===void 0?(i=(a=_[S])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:f.animate||t.animate;A?setTimeout(function(){if(!(!e||e.destroyed)){var M=e.getKeyShape();!M||M.destroyed||_e(x,function(C){C&&!C.destroyed&&C.refresh()})}},201):_e(x,function(M){M.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:t})}},r.prototype.updateCombo=function(e,t,n){var a=this,i,o,s=this.graph;if(Ye(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var u=e.getModel(),f=eh(t,s,e),l=f.x,c=f.y;e.set("bbox",f);var h=l,d=c;n?(h=isNaN(u.x)?l:u.x,d=isNaN(u.y)?c:u.y):(h=isNaN(l)?u.x:l,d=isNaN(c)?u.y:c),e.update({x:h,y:d});var v=e.get("shapeFactory"),p=u.type||"circle",g=u.animate===void 0?(o=(i=v[p])===null||i===void 0?void 0:i.options)===null||o===void 0?void 0:o.animate:u.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var y=e.getKeyShape();!y||y.destroyed||(e.getShapeCfg(u),a.updateComboEdges(e))}},201):this.updateComboEdges(e)}},r.prototype.updateComboEdges=function(e){for(var t,n,a=e.getEdges()||[],i=0;i-1&&o.splice(s,1),i===hc){var u=n.get("v".concat(i,"s")),f=u.indexOf(e);f>-1&&u.splice(f,1)}var l=e.get("id"),c=n.get("itemMap");delete c[l];var h=n.get("comboTrees"),d=e.get("id");if(i===cc){var v=e.getModel().comboId;if(h&&v){var p=h,g=!1;h.forEach(function(E){g||bn(E,function(_){if(_.id===d&&p){var S=p.indexOf(_);return p.splice(S,1),g=!0,!1}return p=_.children,!0})})}for(var y=e.getEdges(),m=y.length-1;m>=0;m--)n.removeItem(y[m],!1);v&&n.updateCombo(v)}else if(i===$u){var b=e.getModel().parentId,w,x=!1;(h||[]).forEach(function(_){x||bn(_,function(S){return S.id===d?(w=S,x=!0,!1):!0})}),w.removed=!0,w&&w.children&&w.children.forEach(function(_){t.removeItem(_.id)});for(var y=e.getEdges(),m=y.length;m>=0;m--)n.removeItem(y[m],!1);b&&n.updateCombo(b)}e.destroy(),n.emit("afterremoveitem",{item:a,type:i})}},r.prototype.setItemState=function(e,t,n){var a=this.graph,i=t;Ye(n)&&(i="".concat(t,":").concat(n)),!(e.hasState(i)===n&&n||Ye(n)&&e.hasState(i))&&(a.emit("beforeitemstatechange",{item:e,state:i,enabled:n}),e.setState(t,n),a.autoPaint(),a.emit("afteritemstatechange",{item:e,state:i,enabled:n}))},r.prototype.priorityState=function(e,t){var n=this.graph,a=e;Ye(e)&&(a=n.findById(e)),this.setItemState(a,t,!1),this.setItemState(a,t,!0)},r.prototype.clearItemStates=function(e,t){var n=this.graph;Ye(e)&&(e=n.findById(e)),n.emit("beforeitemstatesclear",{item:e,states:t}),e.clearStates(t),n.emit("afteritemstatesclear",{item:e,states:t})},r.prototype.refreshItem=function(e){var t=this.graph;Ye(e)&&(e=t.findById(e)),t.emit("beforeitemrefresh",{item:e}),e.refresh(),t.emit("afteritemrefresh",{item:e})},r.prototype.addCombos=function(e,t){var n=this,a=this.graph;(e||[]).forEach(function(o){Ra(o,function(s){var u;return t.forEach(function(f){f.id===s.id&&(f.children=s.children,f.depth=s.depth,u=f)}),u&&n.addItem("combo",u),!0})});var i=a.get("comboGroup");i&&i.sort()},r.prototype.changeItemVisibility=function(e,t){var n=this,a=this.graph;if(Ye(e)&&(e=a.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(a.emit("beforeitemvisibilitychange",{item:e,visible:t}),e.changeVisibility(t),e.getType&&e.getType()===cc){var i=e.getEdges();_e(i,function(l){t&&!(l.get("source").isVisible()&&l.get("target").isVisible())||n.changeItemVisibility(l,t)})}else if(e.getType&&e.getType()===$u){var o=a.get("comboTrees"),s=e.get("id"),u=[],f=!1;(o||[]).forEach(function(c){f||!c.children||c.children.length===0||bn(c,function(h){return h.id===s?(u=h.children,f=!0,!1):!0})}),u&&(!t||t&&!e.getModel().collapsed)&&u.forEach(function(c){var h=a.findById(c.id);n.changeItemVisibility(h,t)});var i=e.getEdges();_e(i,function(c){t&&!(c.get("source").isVisible()&&c.get("target").isVisible())||n.changeItemVisibility(c,t)})}return a.emit("afteritemvisibilitychange",{item:e,visible:t}),e},r.prototype.destroy=function(){this.graph=null,this.destroyed=!0},r}(),Vj=function(){function r(e){this.graph=e,this.destroyed=!1}return r.prototype.updateState=function(e,t,n){var a=this.graph.get("states"),i=t;Ye(n)&&(i="".concat(t,":").concat(n)),a[i]||(a[i]=[]),n?a[i].push(e):a[i]=a[i].filter(function(o){return o!==e}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:a})},r.prototype.updateStates=function(e,t,n){var a=this.graph.get("states"),i=Ye(t)?[t]:t;i.forEach(function(o){var s=o;a[s]||(a[s]=[]),Ye(n)&&(s="".concat(o,":").concat(n)),n?a[s].push(e):a[s]=a[s].filter(function(u){return u!==e})}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:t})},r.prototype.destroy=function(){this.graph=null,this.destroyed=!0},r}(),Yj=function(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,a){if(n.charAt(0)==="\\")return n.slice(1);var i=t[a];return i===0&&(i="0"),i||""})},RC=function(e){var t=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var n=0,a=e;n0?o-1:t-1,u=Wi([0,0],fn([0,0],i[s].v,wn([0,0],i[o].v,-1)));i[o].p=fn([0,0],i[o].p,wn([0,0],u,e))}return i.map(function(f){var l=f.p;return{x:l[0],y:l[1]}})}var Hj=function(e,t){for(var n=[],a=0;a<5;a++){var i=Math.cos((18+72*a)/180*Math.PI)*e,o=Math.sin((18+72*a)/180*Math.PI)*e,s=Math.cos((54+72*a)/180*Math.PI)*t,u=Math.sin((54+72*a)/180*Math.PI)*t;a===0?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",s,-u])}return n.push(["Z"]),n};const Zj=Object.freeze(Object.defineProperty({__proto__:null,getClosedSpline:U0,getControlPoint:Dh,getSpline:RC,getStarPath:Hj,paddedHull:FC,pathToPoints:j0,pointsToPolygon:qj,roundedHull:$0},Symbol.toStringTag,{value:"Module"}));var _x=function(e,t,n){return(e.y-n.y)*(t.x-n.x)-(e.x-n.x)*(t.y-n.y)},Sx=function(e){var t=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});t.sort(function(c,h){return c.x===h.x?c.y-h.y:c.x-h.x});for(var n={},a=t.length-1;a>=0;a--){var i=t[a],o=i.x,s=i.y;n["".concat(o,"-").concat(s)]&&t.splice(a,1),n["".concat(o,"-").concat(s)]=!0}if(t.length===1)return t;for(var u=[],a=0;a=2&&_x(u[u.length-2],u[u.length-1],t[a])<=0;)u.pop();u.push(t[a])}for(var f=[],a=t.length-1;a>=0;a--){for(;f.length>=2&&_x(f[f.length-2],f[f.length-1],t[a])<=0;)f.pop();f.push(t[a])}f.pop(),u.pop();var l=u.concat(f);return l},Kj={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Qj(r,e,t){var n=!1,a=function(u,f){return e.cells[u+f*e.width]},i=function(u,f){var l=0;return a(u-1,f-1)>=t&&(l+=1),a(u,f-1)>t&&(l+=2),a(u-1,f)>t&&(l+=4),a(u,f)>t&&(l+=8),l},o=function(u,f){for(var l=u,c=f,h,d,v=0;v-1){if(!(r[0].x!==l||r[0].y!==c))return!0}else r.push({x:l,y:c});var p=i(l,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:l++;break;case 12:case 14:case 4:l--;break;case 6:h===0&&(d===-1?l-=1:l+=1);break;case 1:case 13:case 5:c--;break;case 9:h===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;st&&i(s,u)!==15&&(n=o(s,u));return n}}var Jj=function(e,t,n){var a=Math.ceil(e/n),i=Math.ceil(t/n),o=new Float32Array(Math.max(0,a*i)).fill(0);return{cells:o,width:a,height:i}},eU=function(e,t,n){var a=null,i=Number.POSITIVE_INFINITY;return t.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},u={x:o.getModel().x,y:o.getModel().y},f=Ch(s,u),l=new $o(s.x,s.y,u.x,u.y),c=n.reduce(function(h,d){return xy(d,l)>0?h+1:h},0);f*Math.pow(c+1,2)=0&&o=1;)x/=1.5,E=Mx(v,x,g,w),_=f(E,o)||f(E,i),S=l(E,t);E&&!_&&(!w||!S)&&(o.push(new $o(d.x1,d.y1,E.x,E.y)),o.push(new $o(E.x,E.y,d.x2,d.y2)),s=!0)};m(!0),s||m(!1)}}s||i.push(d),u+=1};!s&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};function rU(r,e,t,n,a){var i=eU(r,t,e);if(i===null)return[];var o=function(c){for(var h=[];c.length>0;){var d=c.pop();if(c.length===0){h.push(d);break}var v=c.pop(),p=new $o(d.x1,d.y1,v.x2,v.y2),g=BC(e,p);g?(h.push(d),c.push(v)):c.push(p)}return h},s=new $o(r.getModel().x,r.getModel().y,i.getModel().x,i.getModel().y),u=tU(s,e,n,a),f=o(u);return f}var nU=function(e,t,n){var a=Object.assign(Kj,n),i=IA(e.map(function(m){return{x:m.getModel().x,y:m.getModel().y}}));e=e.sort(function(m,b){return Ch({x:m.getModel().x,y:m.getModel().y},i)-Ch({x:b.getModel().x,y:b.getModel().y},i)});var o=[],s=[];e.forEach(function(m){var b=rU(m,t,o,a.maxRoutingIterations,a.morphBuffer);b.forEach(function(w){s.push(w)}),o.push(m)});for(var u=aU(e,s,a.nodeR0),f=Jj(u.width,u.height,a.pixelGroupSize),l=[],c=[],h=0;h1)for(v=Math.floor(d.length/a.skip);v<3&&a.skip>1;)a.skip-=1,v=Math.floor(d.length/a.skip);for(var p=0,g=0;g0)a.nonMemberInfluenceFactor*=.8;else break}return c};function aU(r,e,t){var n={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},a=[];r.forEach(function(u){a.push(u.getBBox())}),e.forEach(function(u){a.push(u.getBBox())});for(var i=0,o=a;in.maxX?s.maxX:n.maxX)+t,n.maxY=(s.maxY>n.maxY?s.maxY:n.maxY)+t}return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.x=n.minX,n.y=n.minY,n}function iU(r,e,t,n,a,i){function o(d,v){var p=Math.floor((d-v)/i.pixelGroupSize);return p<0?0:p}function s(d,v){return d*i.pixelGroupSize+v}var u=(i.nodeR0-i.nodeR1)*(i.nodeR0-i.nodeR1),f=(i.edgeR0-i.edgeR1)*(i.edgeR0-i.edgeR1),l=function(v,p){var g=Math.min(o(v.minX,p+n.minX),a.width),y=Math.min(o(v.minY,p+n.minY),a.height),m=Math.min(o(v.maxX,-p+n.minX),a.width),b=Math.min(o(v.maxY,-p+n.minY),a.height);return[g,y,m,b]},c=function(v,p){for(var g=v.getBBox(),y=l(g,i.nodeR1),m=y[0],b=y[1],w=y[2],x=y[3],E=b;Eu.y?n?f.topLeft:f.bottomRight:n?f.topRight:f.bottomLeft:o.ys.x?n?f.topLeft:f.bottomRight:n?f.bottomLeft:f.topRight:i.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},r.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},r.prototype.calcPath=function(e,t){var n,a,i;switch(this.type){case"round-convex":n=Sx(e),i=$0(n.map(function(o){return[o.x,o.y]}),this.padding),a=R0(i);break;case"smooth-convex":n=Sx(e),n.length===2?(i=$0(n.map(function(o){return[o.x,o.y]}),this.padding),a=R0(i)):n.length>2&&(i=FC(n.map(function(o){return[o.x,o.y]}),this.padding),a=U0(i));break;case"bubble":n=nU(e,t,this.cfg.bubbleCfg),a=n.length>=2&&U0(n);break}return a},r.prototype.render=function(){this.group.addShape("path",{attrs:P({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},r.prototype.addMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.members.push(e);var t=this.nonMembers.indexOf(e);return t>-1&&this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},r.prototype.addNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var t=this.members.indexOf(e);return t>-1&&this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},r.prototype.removeMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var t=this.members.indexOf(e);return t>-1?(this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},r.prototype.removeNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var t=this.nonMembers.indexOf(e);return t>-1?(this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},r.prototype.updateData=function(e,t){var n=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(a){return Ye(a)?n.graph.findById(a):a})),t&&(this.nonMembers=t.map(function(a){return Ye(a)?n.graph.findById(a):a})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},r.prototype.updateStyle=function(e){var t=this.group.findById(this.id);t.attr(P({},e))},r.prototype.updateCfg=function(e){var t=this;this.cfg=_r(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(n){return Ye(n)?t.graph.findById(n):n})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(n){return Ye(n)?t.graph.findById(n):n})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},r.prototype.contain=function(e){var t=this,n;Ye(e)?n=this.graph.findById(e):n=e;var a,i=n.getKeyShape();if(n.get("type")==="path")a=j0(i.attr("path"));else{var o=i.getCanvasBBox();a=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return a=a.map(function(s){var u=t.graph.getPointByCanvas(s[0],s[1]);return[u.x,u.y]}),CA(a,j0(this.path))},r.prototype.destroy=function(){this.group.remove(),this.cfg=null},r}(),Xu=eo,sU="node",uU=function(r){jt(e,r);function e(t){var n=r.call(this)||this;return n.sortCombos=Hg(function(){var a=n.get("comboSorted");if(!(!n||n.destroyed||a)){n.set("comboSorted",!0);var i=[],o={},s=n.get("comboTrees");(s||[]).forEach(function(f){bn(f,function(l){return i[l.depth]?i[l.depth].push(l.id):i[l.depth]=[l.id],o[l.id]=l.depth,!0})});var u=n.getEdges().concat(n.get("vedges"));(u||[]).forEach(function(f){var l=f.getModel(),c=o[l.source]||0,h=o[l.target]||0,d=Math.max(c,h);i[d]?i[d].push(l.id):i[d]=[l.id]}),i.forEach(function(f){if(!(!f||!f.length))for(var l=f.length-1;l>=0;l--){var c=n.findById(f[l]);c&&c.toFront()}})}},500,!1),n.cfg=_r(n.getDefaultCfg(),t),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Bs(n.cfg.maxStep),n.redoStack=new Bs(n.cfg.maxStep)),n}return e.prototype.init=function(){this.initCanvas();var t=new Pj(this),n=new Z4(this),a=new Wj(this),i=new Vj(this);this.set({viewController:t,modeController:n,itemController:a,stateController:i}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var n=t.get("el"),a=(n||{}).id,i=a===void 0?"g6":a,o=t.addGroup({id:"".concat(i,"-root"),className:ft.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(i,"-edge"),className:ft.edgeContainerClassName}),u=o.addGroup({id:"".concat(i,"-node"),className:ft.nodeContainerClassName}),f=o.addGroup({id:"".concat(i,"-combo"),className:ft.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:s,comboGroup:f})}var l=o.addGroup({id:"".concat(i,"-delegate"),className:ft.delegateContainerClassName});this.set({delegateGroup:l}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,n){return ln(t)?this.cfg=P(P({},this.cfg),t):this.cfg[t]=n,t==="enabledStack"&&n&&!this.undoStack&&!this.redoStack&&(this.undoStack=new Bs(this.cfg.maxStep),this.redoStack=new Bs(this.cfg.maxStep)),this},e.prototype.get=function(t){var n;return(n=this.cfg)===null||n===void 0?void 0:n[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,n){Ye(t)&&(t=this.findById(t));var a=this.get("itemController");n||(n=t.get("states")),a.clearItemStates(t,n);var i=this.get("stateController");i.updateStates(t,n,!1)},e.prototype.node=function(t){typeof t=="function"&&this.set("nodeMapper",t)},e.prototype.edge=function(t){typeof t=="function"&&this.set("edgeMapper",t)},e.prototype.combo=function(t){typeof t=="function"&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,n){var a,i=this.get("".concat(t,"s"));return _e(i,function(o,s){if(n(o,s))return a=o,a}),a},e.prototype.findAll=function(t,n){var a=[];return _e(this.get("".concat(t,"s")),function(i,o){n(i,o)&&a.push(i)}),a},e.prototype.findAllByState=function(t,n,a){return a?this.findAll(t,function(i){return i.hasState(n)&&a(i)}):this.findAll(t,function(i){return i.hasState(n)})},e.prototype.translate=function(t,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),a){var f=If({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});v0(s,{x:s.getCanvasBBox().x+t,y:s.getCanvasBBox().y+n},a,f||{duration:500,easing:"easeCubic"})}else u=Xu(u,[["t",t,n]]),s.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},e.prototype.moveTo=function(t,n,a,i){var o=this.get("group");v0(o,{x:t,y:n},a,i||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(t,n,a,i){t&&this.set("fitViewPadding",t);var o=this.get("viewController");n?o.fitViewByRules(n,a,i):o.fitView(a,i),this.autoPaint()},e.prototype.fitCenter=function(t,n){var a=this.get("viewController");a.fitCenter(t,n),this.autoPaint()},e.prototype.addBehaviors=function(t,n){var a=this.get("modeController");return a.manipulateBehaviors(t,n,!0),this},e.prototype.removeBehaviors=function(t,n){var a=this.get("modeController");return a.manipulateBehaviors(t,n,!1),this},e.prototype.updateBehavior=function(t,n,a){var i=this.get("modeController");return i.updateBehavior(t,n,a),this},e.prototype.zoom=function(t,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),l=this.get("maxZoom"),c=this.getZoom()||1,h=c*t,d=t,v=!1;if(f&&hl&&(d=l/c,v=!0),n?u=Xu(u,[["t",-n.x,-n.y],["s",d,d],["t",n.x,n.y]]):u=Xu(u,[["s",d,d]]),a){var p=rr(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],y=g*d,m=If({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(b){if(b===1)p=u;else{var w=Ey(g,y,b)/p[0];n?p=Xu(p,[["t",-n.x,-n.y],["s",w,w],["t",n.x,n.y]]):p=Xu(p,[["s",w,w]])}return{matrix:p}},m)}else s.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!v},e.prototype.zoomTo=function(t,n,a,i){var o=t/this.getZoom();return this.zoom(o,n,a,i)},e.prototype.focusItem=function(t,n,a){var i=this.get("viewController"),o=!1;n?o=!0:n===void 0&&(o=this.get("animate"));var s={};a?s=a:a===void 0&&(s=this.get("animateCfg")),i.focus(t,o,s),this.autoPaint()},e.prototype.focusItems=function(t,n,a,i){var o=this.get("viewController");o.focusItems(t,n,a,i)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,n){var a=this.get("viewController");return a.getPointByClient(t,n)},e.prototype.getClientByPoint=function(t,n){var a=this.get("viewController");return a.getClientByPoint(t,n)},e.prototype.getPointByCanvas=function(t,n){var a=this.get("viewController");return a.getPointByCanvas(t,n)},e.prototype.getCanvasByPoint=function(t,n){var a=this.get("viewController");return a.getCanvasByPoint(t,n)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(t,!0);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!1}],f.nodes=[{id:o,visible:!0}];break;case"edge":u.nodes=[{id:o,visible:!1}],f.edges=[{id:o,visible:!0}];break;case"combo":u.nodes=[{id:o,visible:!1}],f.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.hideItem=function(t,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(t,!1);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!0}],f.nodes=[{id:o,visible:!1}];break;case"edge":u.nodes=[{id:o,visible:!0}],f.edges=[{id:o,visible:!1}];break;case"combo":u.nodes=[{id:o,visible:!0}],f.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.refreshItem=function(t){var n=this.get("itemController");n.refreshItem(t)},e.prototype.setAutoPaint=function(t){var n=this;n.set("autoPaint",t);var a=n.get("canvas");a.set("autoDraw",t)},e.prototype.remove=function(t,n){n===void 0&&(n=!0),this.removeItem(t,n)},e.prototype.removeItem=function(t,n){n===void 0&&(n=!0);var a=t;if(Ye(t)&&(a=this.findById(t)),!a&&Ye(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(a){var i="";if(a.getType&&(i=a.getType()),n&&this.get("enabledStack")){var o=P(P({},a.getModel()),{itemType:i}),s={};switch(i){case"node":{s.nodes=[o],s.edges=[];for(var u=a.getEdges(),f=u.length-1;f>=0;f--)s.edges.push(P(P({},u[f].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(i==="node"){var l=a.getModel();l.comboId&&this.updateComboTree(a,void 0,!1)}var c=this.get("itemController");if(c.removeItem(a),i==="combo"){var h=w0(this.get("comboTrees"));this.set("comboTrees",h)}}},e.prototype.innerAddItem=function(t,n,a){if(!H4(t,n))return!1;if(n.id&&this.findById(n.id)){console.warn("This item exists already. Be sure the id %c".concat(n.id,"%c is unique."),"font-size: 20px; color: red;","");return}var i,o=this.get("comboTrees")||[];if(t==="combo"){var s=this.get("itemMap"),u=!1;if(o.forEach(function(v){u||Ra(v,function(p){if(n.parentId===p.id){u=!0;var g=P({id:n.id,depth:p.depth+2},n);p.children?p.children.push(g):p.children=[g],n.depth=g.depth,i=a.addItem(t,n)}var y=s[p.id];return u&&y&&y.getType&&y.getType()==="combo"&&a.updateCombo(y,p.children),!0})}),!u){var f=P({id:n.id,depth:0},n);n.depth=f.depth,o.push(f),i=a.addItem(t,n)}this.set("comboTrees",o),n.collapsed&&(this.collapseCombo(i,!1),this.updateCombo(i))}else if(t==="node"&&Ye(n.comboId)&&o){var l=this.findById(n.comboId);l&&l.getType&&l.getType()!=="combo"&&console.warn("'".concat(n.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),i=a.addItem(t,n);var c=this.get("itemMap"),h=!1,d=!1;o.forEach(function(v){d||h||Ra(v,function(p){if(p.id===n.id)return d=!0,!1;if(n.comboId===p.id&&!d){h=!0;var g=rr(n);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return h&&c[p.id].getType&&c[p.id].getType()==="combo"&&a.updateCombo(c[p.id],p.children),!0})})}else i=a.addItem(t,n);if(t==="node"&&n.comboId||t==="combo"&&n.parentId){var l=this.findById(n.comboId||n.parentId);l&&l.getType&&l.getType()==="combo"&&l.addChild(i)}return i},e.prototype.addItem=function(t,n,a,i){a===void 0&&(a=!0),i===void 0&&(i=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!i);var s=this.get("itemController"),u=this.innerAddItem(t,n,s);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),a&&this.get("enabledStack")){var l=P(P({},u.getModel()),{itemType:t}),c={};switch(t){case"node":c.nodes=[l];break;case"edge":c.edges=[l];break;case"combo":c.combos=[l];break}this.pushStack("add",{before:{},after:c})}return u},e.prototype.addItems=function(t,n,a){t===void 0&&(t=[]),n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);for(var o=this.get("itemController"),s=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),n&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},u=0;u=0;g--)v[g].destroyed&&v.splice(g,1);h&&(o.addCombos(h),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),_e(l,function(w,x){w.getType&&(w.getType()==="node"||w.getType()==="combo")||c.edges.indexOf(w)<0&&(delete l[x],o.remove(w,!1))}),(this.get("comboTrees")||[]).forEach(function(w){Ra(w,function(x){var E=a.findById(x.id);return E.getType()==="combo"&&x.collapsed&&a.collapseCombo(x.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,m=y===void 0?!0:y,b=this.get("layoutController");return m&&b&&(b.changeData(function(){setTimeout(function(){var w;(w=o.getCombos())===null||w===void 0||w.forEach(function(x){x.set("animate",!0)})},0)}),o.get("animate")&&!b.getLayoutType()?(o.positionsAnimate(),(i=o.getCombos())===null||i===void 0||i.forEach(function(w){return w.set("animate",!0)})):o.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var n=this,a=n.get("comboTrees"),i=this.get("itemController");i.addCombos(a,t)},e.prototype.createCombo=function(t,n,a){var i=this;a===void 0&&(a=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",u;if(t){if(Ye(t))s=t,u={id:t};else{if(s=t.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=t}var f=a&&this.get("enabledStack"),l={nodes:[],combos:[]};f&&n.forEach(function(y){var m=i.findById(y),b=m.getType();if(!(b!=="node"&&b!=="combo")){var w=m.getModel();l["".concat(b,"s")].push({id:y,parentId:b==="node"?w.comboId:w.parentId})}});var c=this.get("comboTrees"),h=new Set(n),d=new Map;c&&(c.forEach(function(y){Ra(y,function(m,b,w){if(h.has(m.id)){if(b){var x=i.findById(b.id),E=i.findById(m.id);b.children.splice(w,1),x.removeChild(E),o.updateCombo(x,b.children)}m.itemType==="combo"&&d.set(m.id,m)}return!0})}),c=c.filter(function(y){return!h.has(y.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=n.map(function(y){var m=i.findById(y),b=m.getModel(),w="";m.getType&&(w=m.getType());var x=d.get(y)||{id:m.getID(),itemType:w};return w==="combo"?(x.parentId=s,b.parentId=s):w==="node"&&(x.comboId=s,b.comboId=s),f&&v["".concat(w,"s")].push({id:b.id,parentId:s}),x});u.children=p,this.addItem("combo",u,!1),this.set("comboSorted",!1),c&&(c.forEach(function(y){bn(y,function(m){return m.id===s?(m.itemType="combo",m.children=p,!1):!0})}),this.sortCombos()),f&&(v.combos.push(u),this.pushStack("createCombo",{before:l,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(t,n){var a=this,i,o;n===void 0&&(n=!0);var s=this,u=t;if(Ye(t)&&(u=this.findById(t)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),l=u.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var h=this.get("itemMap"),d=u.get("id"),v,p=[],g=this.get("combos"),y=this.findById(l),m=n&&this.get("enabledStack"),b={};if(m&&(b=rr(f),b.children=[]),c.forEach(function(_){v||Ra(_,function(S){var A;if(S.id===d){v=S;var M=u.getEdges().map(function(k){return k.getID()});M.forEach(function(k){a.removeItem(k,!1)});var C=g.indexOf(u);g.splice(C,1),delete h[d];var I=rr(u.getModel());u.destroy(),a.emit("afterremoveitem",{item:I,type:"combo"})}if(l&&v&&S.id===l){y.removeCombo(u),p=S.children;var C=p.indexOf(v);return C!==-1&&p.splice(C,1),(A=v.children)===null||A===void 0||A.forEach(function(O){var B=a.findById(O.id),L=B.getModel();B.getType&&B.getType()==="combo"?(O.parentId=l,delete O.comboId,L.parentId=l,delete L.comboId):B.getType&&B.getType()==="node"&&(O.comboId=l,L.comboId=l),y.addChild(B),p.push(O)}),a.updateCombo(y),!1}return!0})}),!l&&v){var w=c.indexOf(v);c.splice(w,1),(i=v.children)===null||i===void 0||i.forEach(function(_){_.parentId=void 0;var S=a.findById(_.id).getModel();delete S.parentId,delete S.comboId,_.itemType!=="node"&&c.push(_)})}if(m){var x={nodes:[],combos:[]},E={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(_){var S=a.findById(_.id),A=S.getType();A!=="node"&&A!=="combo"||(x["".concat(A,"s")].push({id:_.id,parentId:d}),E["".concat(A,"s")].push({id:_.id,parentId:l}))}),x.combos.push(b),this.pushStack("uncombo",{before:x,after:E})}},e.prototype.updateCombos=function(t){var n=this;t===void 0&&(t=!1);var a=this,i=this.get("comboTrees"),o=a.get("itemController"),s=a.get("itemMap");(i||[]).forEach(function(u){Ra(u,function(f){var l;if(!f)return!0;var c=s[f.id];if(((l=c==null?void 0:c.getType)===null||l===void 0?void 0:l.call(c))==="combo"){var h=Xn([],c.getStates(),!0);_e(h,function(d){return n.setItemState(c,d,!1)}),o.updateCombo(c,f.children,t),_e(h,function(d){return n.setItemState(c,d,!0)})}return!0})}),a.sortCombos()},e.prototype.updateCombo=function(t){var n=this,a=this,i=t,o;if(Ye(t)&&(i=this.findById(t)),!i||i.getType&&i.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=i.get("id");var s=this.get("comboTrees"),u=a.get("itemController"),f=a.get("itemMap");(s||[]).forEach(function(l){Ra(l,function(c){if(!c)return!0;var h=f[c.id];if(o===c.id&&h&&h.getType&&h.getType()==="combo"){var d=Xn([],h.getStates(),!0);_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!1)}),u.updateCombo(h,c.children),_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(t,n,a){a===void 0&&(a=!0);var i=this;this.set("comboSorted",!1);var o;Ye(t)?o=i.findById(t):o=t;var s=o.getModel(),u=s.comboId||s.parentId,f="";if(o.getType&&(f=o.getType()),n&&f==="combo"){var l=this.get("comboTrees"),c=!0,h;if((l||[]).forEach(function(m){h||bn(m,function(b){if(!h)return b.id===o.getID()&&(h=b),!0})}),bn(h,function(m){return m.id===n?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(a&&this.get("enabledStack")){var d={},v={};f==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:n}]):f==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:n}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(f==="combo"?s.parentId=n:f==="node"&&(s.comboId=n),n){var g=this.findById(n);g&&g.addChild(o)}if(u){var g=this.findById(u);g&&g.removeChild(o)}var y=w0(this.get("comboTrees"),s.id,n);this.set("comboTrees",y),this.updateCombos()},e.prototype.save=function(){var t=[],n=[],a=[];return _e(this.get("nodes"),function(i){t.push(i.getModel())}),_e(this.get("edges"),function(i){n.push(i.getModel())}),_e(this.get("combos"),function(i){a.push(i.getModel())}),{nodes:t,edges:n,combos:a}},e.prototype.changeSize=function(t,n){var a=this.get("viewController");return a.changeSize(t,n),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var n=t.get("nodes"),a=t.get("edges"),i=t.get("edges");_e(n,function(o){o.refresh()}),_e(a,function(o){o.refresh()}),_e(i,function(o){o.refresh()})}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(Ye(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo does not exist!");return}return t.getChildren()},e.prototype.positionsAnimate=function(t){var n=this;n.emit("beforeanimate");var a=n.get("animateCfg"),i=a.onFrame,o=t?n.getNodes().concat(n.getCombos()):n.getNodes(),s=o.map(function(f){var l=f.getModel();return{id:l.id,x:l.x,y:l.y}});n.stopAnimate();var u=n.get("canvas");n.animating=!0,setTimeout(function(){u.animate(function(f){_e(s,function(l){var c=n.findById(l.id);if(!(!c||c.destroyed)){var h=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(h==null&&(v&&(h={x:v[6],y:v[7]}),c.set("originAttrs",h||0)),i){var p=i(c,f,l,h||{x:0,y:0});c.set("model",Object.assign(d,p))}else h?(d.x=h.x+(l.x-h.x)*f,d.y=h.y+(l.y-h.y)*f):(d.x=l.x,d.y=l.y)}}),n.refreshPositions(t)},{duration:a.duration,easing:a.easing,callback:function(){_e(o,function(l){l.set("originAttrs",null)}),a.callback&&a.callback(),n.emit("afteranimate"),n.animating=!1}})},0)},e.prototype.refreshPositions=function(t){var n=this;n.emit("beforegraphrefreshposition");var a=n.get("nodes"),i=n.get("edges"),o=n.get("vedges"),s=n.get("combos"),u,f={},l=function(h){_e(h,function(d){u=d.getModel();var v=d.get("originAttrs");if(!(v&&u.x===v.x&&u.y===v.y)){var p=d.updatePosition({x:u.x,y:u.y});f[u.id]=p,u.comboId&&(f[u.comboId]=f[u.comboId]||p),u.parentId&&(f[u.parentId]=f[u.parentId]||p)}})};l(s),l(a),s&&s.length!==0&&(t&&l(s),n.updateCombos()),_e(i,function(c){var h=c.getSource().getModel(),d=c.getTarget();if(!ln(d)){var v=d.getModel();(f[h.id]||f[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),_e(o,function(c){c.refresh()}),n.emit("aftergraphrefreshposition"),n.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas"),n=t.cfg.timeline;n&&n.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){var t=this.get("modeController");return t.getMode()},e.prototype.setMode=function(t){var n=this.get("modeController");return n.setMode(t),this},e.prototype.clear=function(t){var n;return t===void 0&&(t=!1),(n=this.get("canvas"))===null||n===void 0||n.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,n,a,i){var o=this;t===void 0&&(t={}),i===void 0&&(i=!0);var s=this.get("layoutController");if(Ye(t)&&(t={type:t}),n){var u=a;u||(n==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(t.type)||!t.type&&f.includes(s==null?void 0:s.layoutType)?t.center=[u.x,u.y]:this.once("afterlayout",function(h){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*d[0]+d[6],u.y=u.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,y=v.minY,m=v.maxY,b={x:(p+g)/2,y:(y+m)/2};n==="begin"&&(b.x=p,b.y=y),o.translate(u.x-b.x,u.y-b.y)})}var l=P({},this.get("layout")),c={};Object.assign(c,l,t),t.pipes&&!t.type?delete c.type:!t.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===l.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),i&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:c}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");t==null||t.destroyLayout()},e.prototype.layout=function(){var t,n=this.get("layoutController"),a=this.get("layout");if(!(!a||!n)){if(a.workerEnabled){n.layout();return}!((t=n.layoutMethods)===null||t===void 0)&&t.length?n.relayout(!0):n.layout()}},e.prototype.collapseCombo=function(t,n){var a=this;if(n===void 0&&(n=!0),!this.destroyed){if(Ye(t)&&(t=this.findById(t)),!t){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var i=t.getModel(),o=this.get("itemController");o.collapseCombo(t,n),i.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){var d=h.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(h.isVisible()&&!v)){var y=h.getSource(),m=h.getTarget(),b=null,w;if(y.getModel().id===i.id||u.includes(y)&&!u.includes(m)?(b=m,w=!1):(m.getModel().id===i.id||!u.includes(y)&&u.includes(m))&&(b=y,w=!0),b){if(v){a.removeItem(h,!1);return}for(var x=b.getModel();!b.isVisible();){var E=x.parentId,_=x.comboId,S=E||_;if(b=a.findById(S),!b||!S)return;x=b.getModel()}var A=x.id,M=w?{source:A,target:i.id,size:g,isVEdge:!0}:{source:i.id,target:A,size:g,isVEdge:!0},C="".concat(M.source,"-").concat(M.target);if(c[C]){c[C].size+=g;return}c[C]=M}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}},e.prototype.expandCombo=function(t,n){var a=this;if(n===void 0&&(n=!0),Ye(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var i=t.getModel(),o=this.get("itemController");o.expandCombo(t,n),i.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){if(!(h.isVisible()&&!h.getModel().isVEdge)){var d=h.getSource(),v=h.getTarget(),p=d.get("id"),g=v.get("id"),y=null,m;if(p===i.id||u.includes(d)&&!u.includes(v)?(y=v,m=!1):g===i.id||!u.includes(d)&&u.includes(v)?(y=d,m=!0):u.includes(d)&&u.includes(v)&&d.isVisible()&&v.isVisible()&&h.show(),y){var b=h.getModel(),w=b.isVEdge,x=b.size,E=x===void 0?1:x;if(w){a.removeItem(h,!1);return}for(var _=y.getModel();!y.isVisible();){var S=_.parentId,A=_.comboId,M=S||A;if(y=a.findById(M),!y||!M)return;_=y.getModel()}for(var C=_.id,I=m?v:d,k=I.getModel();!I.isVisible();){var O=k.parentId,B=k.comboId,L=O||B;if(I=a.findById(L),!I||!L)return;if(k.comboId===i.id||k.parentId===i.id)break;k=I.getModel()}var z=k.id;if(C){var X=m?{source:C,target:z,isVEdge:!0,size:E}:{source:z,target:C,isVEdge:!0,size:E},R="".concat(X.source,"-").concat(X.target);if(c[R]){c[R].size+=E;return}c[R]=X}}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})},e.prototype.collapseExpandCombo=function(t,n){if(n===void 0&&(n=!0),Ye(t)&&(t=this.findById(t)),!(!t||t.getType&&t.getType()!=="combo")){for(var a=t.getModel(),i=this.findById(a.parentId);i;){var o=i.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),i=void 0;return}i=this.findById(o.parentId)}var s=a.collapsed;s?this.expandCombo(t,n):this.collapseCombo(t,n),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,n){var a=t;return Ye(t)&&(a=this.findById(t)),a.getNeighbors(n)},e.prototype.getNodeDegree=function(t,n,a){n===void 0&&(n=void 0),a===void 0&&(a=!1);var i=t;Ye(t)&&(i=this.findById(t));var o=this.get("degrees");(!o||a)&&(o=yi(this.save()),this.set("degrees",o));var s=o[i.getID()],u=0;if(!s)return 0;switch(n){case"in":u=s.inDegree;break;case"out":u=s.outDegree;break;case"all":u=s;break;default:u=s.degree;break}return u},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,n,a){if(t===void 0&&(t="update"),a===void 0&&(a="undo"),!this.get("enabledStack")){console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !");return}var i=n?rr(n):{before:{},after:rr(this.save())};a==="redo"?this.redoStack.push({action:t,data:i}):this.undoStack.push({action:t,data:i}),this.emit("stackchange",{action:t,stackType:a,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix");return(!a||!t)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),a},e.prototype.getShortestPathMatrix=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return(!a||!t)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),(!i||!t)&&(i=Cf(this.save(),n),this.set("shortestPathMatrix",i)),i},e.prototype.on=function(t,n,a){return r.prototype.on.call(this,t,n,a)},e.prototype.destroy=function(){var t,n,a,i,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(t=this.get("itemController"))===null||t===void 0||t.destroy(),(n=this.get("modeController"))===null||n===void 0||n.destroy(),(a=this.get("viewController"))===null||a===void 0||a.destroy(),(i=this.get("stateController"))===null||i===void 0||i.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(!t.members||t.members.length<1){console.warn("Create hull failed! The members is empty.");return}var n=this.get("hullGroup"),a=this.get("hullMap");if(a||(a={},this.set("hullMap",a)),(!n||n.get("destroyed"))&&(n=this.get("group").addGroup({id:"hullGroup"}),n.toBack(),this.set("hullGroup",n)),a[t.id])return console.warn("Existed hull id."),a[t.id];var i=n.addGroup({id:"".concat(t.id,"-container")}),o=new oU(this,P(P({},t),{group:i})),s=o.id;return a[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var n,a;Ye(t)?a=this.getHullById(t):a=t,(n=this.get("hullMap"))===null||n===void 0||delete n[a.id],a.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();!t||!Object.keys(t).length||(Object.keys(t).forEach(function(n){var a=t[n];a.destroy()}),this.set("hullMap",{}))},e}(zS);function X0(r){"@babel/helpers - typeof";return X0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X0(r)}var bs=eo,Ax="-shape",dp="-label",dc=["startArrow","endArrow"],Cx={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},fU={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},vc={edge:fU,node:Cx,combo:Cx},W0="-label-bg",Oy={options:{labelCfg:{style:{fontFamily:ft.windowFontFamily}},descriptionCfg:{style:{fontFamily:ft.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,t){return t==="move"||t!=null&&t.includes("bbox")?e:_r({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,t){t.shapeMap={},this.mergeStyle=this.getOptions(e);var n=this.drawShape(e,t);if(n.set("className",this.itemType+Ax),t.shapeMap[this.itemType+Ax]=n,e.label){var a=this.drawLabel(e,t);a.set("className",this.itemType+dp),t.shapeMap[this.itemType+dp]=a}return n},afterDraw:function(e,t,n){},drawShape:function(e,t){return null},drawLabel:function(e,t){var n=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,a=n||{},i=this.getLabelStyle(e,a,t),o=i.rotate;delete i.rotate;var s=t.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var u=s.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":f=bs(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break;case"lefttop":f=bs(f,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":f=bs(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);break;default:f=bs(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break}else f=bs(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);s.setMatrix(f)}if(i.background){var l=this.drawLabelBg(e,t,s),c=this.itemType+W0;l.set("classname",c),t.shapeMap[c]=l,s.toFront()}return s},drawLabelBg:function(e,t,n){var a=this.options.labelCfg,i=Et({},a,e.labelCfg),o=this.getLabelBgStyleByPosition(n,i),s=t.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return t.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,t,n){return{text:e.label}},getLabelBgStyleByPosition:function(e,t){return{}},getLabelStyle:function(e,t,n){var a=this.getLabelStyleByPosition(e,t,n),i="".concat(this.itemType,"Label"),o=ft[i]?ft[i].style:null;return P(P(P({},o),a),t.style)},getShapeStyle:function(e){return e.style},update:function(e,t,n){this.updateShapeStyle(e,t,n),this.updateLabel(e,t,n)},updateShapeStyle:function(e,t,n){var a,i=t.getContainer(),o=t.getKeyShape(),s=Et({},o.attr(),e.style),u=function(c){var h,d=s[c];if(ln(d)){var v=((a=i.shapeMap)===null||a===void 0?void 0:a[c])||i.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((h={},h[c]=d,h))};for(var f in s)u(f)},updateLabel:function(e,t,n){var a,i,o=t.getContainer(),s=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,u=s===void 0?{}:s,f=this.itemType+dp,l=o.shapeMap[f]||o.find(function(w){return w.get("className")===f}),c=this.itemType+W0,h=o.shapeMap[c]||o.find(function(w){return w.get("className")===c});if(l&&e.label===void 0&&(o.removeChild(l),delete o.shapeMap[f],h&&(o.removeChild(h),delete o.shapeMap[c])),e.label||e.label==="")if(l){(!n||n==="bbox|label"||this.itemType==="edge"&&n!=="style")&&(u=_r(u,e.labelCfg));var v=this.getLabelStyleByPosition(e,u,o),p=(a=e.labelCfg)===null||a===void 0?void 0:a.style,g=P(P({},v),p),y=g.rotate;if(delete g.rotate,!isNaN(y)&&y!==""){var m=[1,0,0,0,1,0,0,0,1];m=bs(m,[["t",-g.x,-g.y],["r",y],["t",g.x,g.y]]),g.matrix=m,l.attr(g)}else((i=l.getMatrix())===null||i===void 0?void 0:i[4])!==1&&l.resetMatrix(),l.attr(g);if(!h)g.background&&(h=this.drawLabelBg(e,o,l),h.set("classname",c),o.shapeMap[c]=h,l.toFront());else if(g.background){var b=this.getLabelBgStyleByPosition(l,u);h.attr(b)}else o.removeChild(h)}else{var d=this.drawLabel(e,o);d.set("className",f),o.shapeMap[f]=d}},afterUpdate:function(e,t){},setState:function(e,t,n){var a,i,o,s=n.get("keyShape");if(!(!s||s.destroyed)){var u=n.getType(),f=Vf(t)?e:"".concat(e,":").concat(t),l=this.getStateStyle(f,n),c=n.getStateStyle(f);if(!(!c&&!l)){var h=Et({},c||l),d=n.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(v.r=1,v.width=1,v.height=1),t){var p=function(L){var z,X=h[L];if(ln(X)&&!dc.includes(L)){var R=((o=d.shapeMap)===null||o===void 0?void 0:o[L])||d.find(function(V){return V.get("name")===L});R==null||R.attr(X)}else s.attr((z={},z[L]=X,z))};for(var g in h)p(g)}else{var y=th(n.getCurrentStatesStyle()),m=n.getModel(),b=Et({},m.style,th(n.getOriginStyle())),w=s.get("name"),x=s.attr(),E={};Object.keys(x).forEach(function(B){if(B!=="img"){var L=x[B];L&&X0(L)==="object"?E[B]=rr(L):E[B]=L}});var _={},S=function(L){var z=h[L];if(ln(z)&&!dc.includes(L)){var X=d.shapeMap[L]||d.find(function(he){return he.get("name")===L});if(X){var R=th(X.attr());_e(z,function(he,ce){if(L===w&&E[ce]&&!v[ce]){delete E[ce];var le=b[L][ce]||vc[u][ce];s.attr(ce,le)}else if(R[ce]||R[ce]===0){delete R[ce];var ie=b[L][ce]||vc[u][ce];X.attr(ce,ie)}}),_[L]=R}}else if(E[L]&&!v[L]){delete E[L];var V=b[L]||(b[w]?b[w][L]:void 0)||vc[u][L];s.attr(L,V)}};for(var A in h)S(A);w?_[w]=E:Et(_,E);for(var g in y)if(!v[g]){var M=y[g];(!ln(M)||dc.includes(g))&&(w?(Et(b[w],(i={},i[g]=M,i)),delete b[g]):Et(b,(a={},a[g]=M,a)),delete y[g])}var C={};_r(C,b,_,y);var I=!1,k=function(L){var z,X,R=C[L];if(ln(R)&&!dc.includes(L)){var V=d.shapeMap[L]||d.find(function(ce){return ce.get("name")===L});V&&((V.get("type")==="text"||V.get("labelRelated"))&&(delete R.x,delete R.y,delete R.matrix),L===w&&(u==="combo"&&(delete R.r,delete R.width,delete R.height),I=!0),V.attr(R))}else if(!I){var he=R||vc[u][L];u==="combo"?w||s.attr((z={},z[L]=he,z)):s.attr((X={},X[L]=he,X))}};for(var O in C)k(O)}}}},getStateStyle:function(e,t){var n=t.getModel(),a=t.getType(),i=this.getOptions(n),o=i.stateStyles,s=i.style,u=s===void 0?{}:s,f=n.stateStyles?n.stateStyles[e]:o&&o[e];return a==="combo"?rr(f):Et({},u,f)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var t,n,a=(e==null?void 0:e.anchorPoints)||((t=this.getCustomConfig(e))===null||t===void 0?void 0:t.anchorPoints)||((n=this.options)===null||n===void 0?void 0:n.anchorPoints);return a}},lU={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ft.nodeLabel.offset,getSize:function(e){var t,n=((t=this.mergeStyle)===null||t===void 0?void 0:t.size)||e.size||this.getOptions({}).size||ft.defaultNode.size;return bt(n)&&n.length===1&&(n=[n[0],n[0]]),bt(n)||(n=[n,n]),n},getLabelStyleByPosition:function(e,t){var n=t.maxLength,a=e.label;n&&(a=RA(a,n));var i=t.position||this.labelPosition;if(i==="center")return{x:0,y:0,text:a,textBaseline:"middle",textAlign:"center"};var o=t.offset;Zt(o)&&(o=this.offset);var s=this.getSize(e),u;switch(i){case"top":u={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=a,u},getLabelBgStyleByPosition:function(e,t){var n;if(!e)return{};var a=(n=t.style)===null||n===void 0?void 0:n.background;if(!a)return{};var i=e.getBBox(),o=Ny(a.padding),s=i.width+o[1]+o[3],u=i.height+o[0]+o[2];return P(P({x:i.minX-o[3],y:i.minY-o[0]},a),{width:s,height:u})},drawShape:function(e,t){var n=this.shapeType,a=this.getShapeStyle(e),i=t.addShape(n,{attrs:a,draggable:!0,name:"node-shape"});return t.shapeMap["node-shape"]=i,i},updateLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=t.shapeMap["link-point-left"]||t.find(function(C){return C.get("className")==="link-point-left"}),i=t.shapeMap["link-point-right"]||t.find(function(C){return C.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(C){return C.get("className")==="link-point-top"}),s=t.shapeMap["link-point-bottom"]||t.find(function(C){return C.get("className")==="link-point-bottom"}),u;a&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),s&&!u&&(u=s.attr()),u||(u=n);var f=Et({},u,e.linkPoints),l=f.fill,c=f.stroke,h=f.lineWidth,d=f.size/2;d||(d=f.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,y=v.top,m=v.bottom,b=this.getSize(e),w=b[0],x=b[1],E={r:d,fill:l,stroke:c,lineWidth:h};if(a)!p&&p!==void 0?(a.remove(),delete t.shapeMap["link-point-left"]):a.attr(P(P({},E),{x:-w/2,y:0}));else if(p){var _="link-point-left";t.shapeMap[_]=t.addShape("circle",{attrs:P(P({},E),{x:-w/2,y:0}),className:_,name:_,isAnchorPoint:!0})}if(i)!g&&g!==void 0&&(i.remove(),delete t.shapeMap["link-point-right"]),i.attr(P(P({},E),{x:w/2,y:0}));else if(g){var S="link-point-right";t.shapeMap[S]=t.addShape("circle",{attrs:P(P({},E),{x:w/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)!y&&y!==void 0&&(o.remove(),delete t.shapeMap["link-point-top"]),o.attr(P(P({},E),{x:0,y:-x/2}));else if(y){var A="link-point-top";t.shapeMap[A]=t.addShape("circle",{attrs:P(P({},E),{x:0,y:-x/2}),className:A,name:A,isAnchorPoint:!0})}if(s)!m&&m!==void 0?(s.remove(),delete t.shapeMap["link-point-bottom"]):s.attr(P(P({},E),{x:0,y:x/2}));else if(m){var M="link-point-bottom";t.shapeMap[M]=t.addShape("circle",{attrs:P(P({},E),{x:0,y:x/2}),className:M,name:M,isAnchorPoint:!0})}},updateShape:function(e,t,n,a,i){var o=t.get("keyShape");o.attr(P({},n)),this.updateLabel(e,t,i),a&&this.updateIcon(e,t)},updateIcon:function(e,t){var n=this,a=t.getContainer(),i=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,u=o.text,f=a.shapeMap["".concat(this.type,"-icon")]||a.find(function(y){return y.get("name")==="".concat(n.type,"-icon")});if(f)if(s||s===void 0){var l=Et({},f.attr(),i),c=l.width,h=c===void 0?20:c,d=l.height,v=d===void 0?20:d;(l.fontFamily==="iconfont"||l.hasOwnProperty("text"))&&(h=0,v=0),f.attr(P(P({},l),{x:-h/2,y:-v/2}))}else f.remove(),delete a.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(u)a.shapeMap[p]=a.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{var h=i.width,v=i.height;a.shapeMap[p]=a.addShape("image",{attrs:P(P({},i),{x:-h/2,y:-v/2}),className:p,name:p})}var g=a.shapeMap["node-label"]||a.find(function(y){return y.get("name")==="node-label"});g&&g.toFront()}}},cU=P(P({},Oy),lU);mr.registerNode("single-node",cU);var pc="edge-shape";function hU(r){var e=r;return r==="start"?e="end":r==="end"&&(e="start"),e}var dU={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ft.defaultEdge.size,style:{x:0,y:0,stroke:ft.defaultEdge.style.stroke,lineAppendWidth:ft.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ft.edgeLabel.style.fill,fontSize:ft.edgeLabel.style.fontSize,fontFamily:ft.windowFontFamily}},stateStyles:P({},ft.edgeStateStyles)},getPath:function(e){var t=[];return _e(e,function(n,a){a===0?t.push(["M",n.x,n.y]):t.push(["L",n.x,n.y])}),t},getShapeStyle:function(e){var t=this.options.style,n={stroke:e.color},a=Et({},t,n,e.style),i=e.size||ft.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,u=this.getControlPoints(e),f=[o];u&&(f=f.concat(u)),f.push(s);var l=this.getPath(f),c=Et({},ft.defaultEdge.style,{stroke:ft.defaultEdge.color,lineWidth:i,path:l},a);return c},updateShapeStyle:function(e,t,n){var a,i=t.getContainer(),o=((a=t.getKeyShape)===null||a===void 0?void 0:a.call(t))||i.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var u=e.startPoint,f=e.endPoint,l=this.getControlPoints(e),c=[u];l&&(c=c.concat(l)),c.push(f);var h=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};l||(g={source:v,target:p,offset:d.offset,radius:d.radius});var y=this.getPath(c,g),m={};n==="move"?m={path:y}:(h.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),h.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),m=P({},e.style),m.lineWidth===void 0&&(m.lineWidth=(Ot(s)?s:s==null?void 0:s[0])||h.lineWidth),m.path===void 0&&(m.path=y),m.stroke===void 0&&(m.stroke=h.stroke||e.color)),o&&o.attr(m)},getLabelStyleByPosition:function(e,t,n){var a=t.position||this.labelPosition,i={},o=n==null?void 0:n.shapeMap[pc],s;a==="start"?s=0:a==="end"?s=1:s=.5;var u=t.refX||this.refX,f=t.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return i.x=e.startPoint.x+u,i.y=e.startPoint.y+f,i.text=e.label,i;var l;Zt(t.autoRotate)?l=this.labelAutoRotate:l=t.autoRotate;var c=LA(o,s,u,f,l);return i.x=c.x,i.y=c.y,i.rotate=c.rotate,i.textAlign=this._getTextAlign(a,c.angle),i.text=e.label,i},getLabelBgStyleByPosition:function(e,t){if(!e)return{};var n=e.getBBox(),a=t.style&&t.style.background;if(!a)return{};var i=a.padding,o=n.width+i[1]+i[3],s=n.height+i[0]+i[2],u=P(P({},a),{width:o,height:s,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return Zt(t.autoRotate)?f=this.labelAutoRotate:f=t.autoRotate,f&&(u.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(e,t){var n="center";return t?(t=t%(Math.PI*2),e!=="center"&&(t>=0&&t<=Math.PI/2||t>=3/2*Math.PI&&t<2*Math.PI?n=e:n=hU(e)),n):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,t){var n=this.getShapeStyle(e),a=t.addShape("path",{className:pc,name:pc,attrs:n});return t.shapeMap[pc]=a,a},drawLabel:function(e,t){var n=this.options.labelCfg,a=_r({},n,e.labelCfg),i=this.getLabelStyle(e,a,t),o=i.rotate;delete i.rotate;var s=t.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),i.background){var u=this.drawLabelBg(e,t,s,i,o),f=this.itemType+W0;u.set("classname",f),t.shapeMap[f]=u,s.toFront()}return s},drawLabelBg:function(e,t,n,a,i){var o=this.options.labelCfg,s=_r({},o,e.labelCfg),u=this.getLabelBgStyleByPosition(n,s),f=t.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return t.shapeMap["text-bg-shape"]=f,f}},vU=P(P({},Oy),dU);mr.registerEdge("single-edge",vU);mr.registerEdge("line",{getControlPoints:function(){}},"single-edge");mr.registerEdge("spline",{getPath:function(e){var t=RC(e);return t}},"single-edge");mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var t=e.startPoint,n=e.endPoint,a={x:(t.x+n.x)/2,y:(t.y+n.y)/2},i,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],i=d0(t,o,n),t.x<=n.x&&t.y>n.y?this.clockwise=i.x>o.x?0:1:t.x<=n.x&&t.yo.x?1:0:t.x>n.x&&t.y<=n.y?this.clockwise=i.y0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o};Zi.detectConnectedComponents=UC;var $C=function(e){for(var t=e.nodes,n=t===void 0?[]:t,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=(0,jC.getNeighbors)(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=(0,VC.getNeighbors)(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),t&&n?(M=!1,C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!0)):t&&!n&&C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(t&&n===!1&&t.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=(0,WC.detectStrongConnectComponents)({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(t&&n&&t.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s};za.detectAllDirectedCycle=HC;var n8=function(e,t,n,a){return a===void 0&&(a=!0),t?HC(e,n,a):qC(e,n,a)};za.detectAllCycles=n8;var a8=r8;za.default=a8;var vu={};const ZC=Ka(AP),qf=Ka(YR);Object.defineProperty(vu,"__esModule",{value:!0});vu.default=void 0;var Tx=ZC,i8=qf,Ix=Wr,o8=function(e,t,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?(0,gc.getNeighbors)(v,s,"target"):(0,gc.getNeighbors)(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c};Js.findAllPath=h8;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var d8=v8(Zo);function v8(r){return r&&r.__esModule?r:{default:r}}var p8=function(e,t){for(var n=(0,d8.default)(e,t),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},g8=p8;Hf.default=g8;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});xd.default=void 0;var y8=b8(Zo),m8=Wr;function b8(r){return r&&r.__esModule?r:{default:r}}var w8=function(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=(0,m8.uniqueId)();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=(0,y8.default)(e,t),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=(0,N8.clone)(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=vp(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=vp(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},R8=P8;Ed.default=R8;var _d={},Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=void 0;var F8=function(){function r(e){this.count=e.length,this.parent={};for(var t=0,n=e;t0&&(this.list[0]=t,this.moveDown(0)),e},r.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},r.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var n=this.list[t];this.list[t]=this.list[e],this.list[e]=n,e=t,t=this.getParent(e)}},r.prototype.moveDown=function(e){var t,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(t=[this.list[n],this.list[e]],this.list[e]=t[0],this.list[n]=t[1],this.moveDown(n))},r}(),j8=z8;Md.default=j8;Object.defineProperty(_d,"__esModule",{value:!0});_d.default=void 0;var U8=nT(Sd),$8=nT(Md),pp=Wr;function nT(r){return r&&r.__esModule?r:{default:r}}var X8=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return t?g.weight-y.weight:0},c=new $8.default(l);for((0,pp.getEdgesByNodeId)(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),(0,pp.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),(0,pp.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return n},Px=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});t&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new U8.default(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},W8=function(e,t,n){var a={prim:X8,kruskal:Px};return n?a[n](e,t):Px(e,t)},V8=W8;_d.default=V8;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=void 0;var Y8=H8(pi),q8=Wr;function H8(r){return r&&r.__esModule?r:{default:r}}var Z8=function(e,t,n){typeof t!="number"&&(t=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>t;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(t.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new No(p,m,In.VACANT_NODE_LABEL,_.edgeLabel,In.VACANT_NODE_LABEL));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new yc(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new yc(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=t.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=t.maxNodeNum)){var y=t.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=t.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(t.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*t)););if(g<2*t&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*t)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[t]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},h$=function(e,t,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=(0,Gx.default)(e,n),c=(0,Gx.default)(t,n),h=Xx(e.nodes,l,n),d=Xx(t.nodes,c,n),v=Ux(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=Ux(t.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;$x(e.edges,s,p);var w=$x(t.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,(0,Bx.__spreadArray)((0,Bx.__spreadArray)([],x,!1),[2],!1))),a||(a=i);var E=jx(e,l,o,a),_=jx(t,c,o,a),S=Math.min(100,f*(f-1)/2),A=f$(a,f,S,E,l),M=nh(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=(0,s$.default)(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=ah(Se,tt,o,s);X[te][N]=Fe})});var R=l$(X,z,L),V=R.structure,he=R.structureCountMap,ce=t.nodes[0],le=[],ie=(u=t.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;t.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=nh(Se,_,t,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=ah(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=nh(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=ah(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=uT(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:c$(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=(0,zx.default)(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,bu=ge[Ur.id].inDegree,wu=ge[Ur.id].outDegree,rn=Ur[o],ti=Wx(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,xu=ti.minPatternNodeLabelInDegree,Eu=ti.minPatternNodeLabelOutDegree,_u=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},d$=h$;Cd.default=d$;(function(r){function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(w)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(r,"breadthFirstSearch",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"dijkstra",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(r,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(r,"floydWarshall",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"getAdjMatrix",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"getDegree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"getInDegree",{enumerable:!0,get:function(){return i.getInDegree}}),Object.defineProperty(r,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(r,"getOutDegree",{enumerable:!0,get:function(){return i.getOutDegree}}),Object.defineProperty(r,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"louvain",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(r,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"pageRank",{enumerable:!0,get:function(){return v.default}});var t=b(Zo),n=b(md),a=b(Zi),i=m(pi),o=b(za),s=b(wd),u=b(vu),f=Js,l=b(Hf),c=b(xd),h=b(Ed),d=b(_d),v=b(Ad),p=b(Cd),g=Wr;function y(w){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(y=function(S){return S?E:x})(w)}function m(w,x){if(w&&w.__esModule)return w;if(w===null||e(w)!=="object"&&typeof w!="function")return{default:w};var E=y(x);if(E&&E.has(w))return E.get(w);var _={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(A!=="default"&&Object.prototype.hasOwnProperty.call(w,A)){var M=S?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(_,A,M):_[A]=w[A]}return _.default=w,E&&E.set(w,_),_}function b(w){return w&&w.__esModule?w:{default:w}}})(zC);function Z0(r){"@babel/helpers - typeof";return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z0(r)}Object.defineProperty(yd,"__esModule",{value:!0});yd.default=void 0;var gp=v$(zC),Vx=Hi;function fT(r){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fT=function(a){return a?t:e})(r)}function v$(r,e){if(r&&r.__esModule)return r;if(r===null||Z0(r)!=="object"&&typeof r!="function")return{default:r};var t=fT(e);if(t&&t.has(r))return t.get(r);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)){var o=a?Object.getOwnPropertyDescriptor(r,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=r[i]}return n.default=r,t&&t.set(r,n),n}var yp=typeof self<"u"?self:{};yp.onmessage=function(r){var e=r.data,t=e._algorithmType,n=e.data;if(t){if(typeof gp[t]=="function"){var a=gp[t].apply(gp,n);yp.postMessage({_algorithmType:Vx.MESSAGE.SUCCESS,data:a});return}yp.postMessage({_algorithmType:Vx.MESSAGE.FAILURE})}};var p$=null;yd.default=p$;Object.defineProperty(gd,"__esModule",{value:!0});gd.default=void 0;var g$=Hi,y$=m$(yd);function m$(r){return r&&r.__esModule?r:{default:r}}var b$=function(e){return function(){for(var t=[],n=0;n=r&&a<=r+t&&i>=e&&i<=e+n}function Ff(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(t*=Math.sqrt(d),n*=Math.sqrt(d));var v=t*t*(h*h)+n*n*(c*c),p=v?Math.sqrt((t*t*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*t*h/n:0,y=t?p*-n*c/t:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/t,(h-y)/n],x=[(-1*c-g)/t,(-1*h-y)/n],E=qx([1,0],w),_=qx(w,x);return K0(w,x)<=-1&&(_=Math.PI),K0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:Yx(r,[f,l])?0:t,ry:Yx(r,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}var Ph=Math.sin,Rh=Math.cos,Fy=Math.atan2,bc=Math.PI;function dT(r,e,t,n,a,i,o){var s=e.stroke,u=e.lineWidth,f=t-a,l=n-i,c=Fy(l,f),h=new jy({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Rh(bc/6)+","+10*Ph(bc/6)+" L0,0 L"+10*Rh(bc/6)+",-"+10*Ph(bc/6),stroke:s,lineWidth:u}});h.translate(a,i),h.rotateAtPoint(a,i,c),r.set(o?"startArrowShape":"endArrowShape",h)}function vT(r,e,t,n,a,i,o){var s=e.startArrow,u=e.endArrow,f=e.stroke,l=e.lineWidth,c=o?s:u,h=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=Kr(c,["d","fill","stroke","lineWidth"]),y=t-a,m=n-i,b=Fy(m,y);h&&(a=a-Rh(b)*h,i=i-Ph(b)*h);var w=new jy({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:P(P({},g),{stroke:v||f,lineWidth:p||l,fill:d})});w.translate(a,i),w.rotateAtPoint(a,i,b),r.set(o?"startArrowShape":"endArrowShape",w)}function Go(r,e,t,n,a){var i=Fy(n-e,t-r);return{dx:Rh(i)*a,dy:Ph(i)*a}}function By(r,e,t,n,a,i){typeof e.startArrow=="object"?vT(r,e,t,n,a,i,!0):e.startArrow?dT(r,e,t,n,a,i,!0):r.set("startArrowShape",null)}function Gy(r,e,t,n,a,i){typeof e.endArrow=="object"?vT(r,e,t,n,a,i,!1):e.endArrow?dT(r,e,t,n,a,i,!1):r.set("startArrowShape",null)}var Zx={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function tu(r,e){var t=e.attr();for(var n in t){var a=t[n],i=Zx[n]?Zx[n]:n;i==="matrix"&&a?r.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&r.setLineDash?bt(a)&&r.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=K$(r,e,a):i==="globalAlpha"&&(a=a*r.globalAlpha),r[i]=a)}}function Q0(r,e,t){for(var n=0;nx?w:x,C=w>x?1:w/x,I=w>x?x/w:1;e.translate(m,b),e.rotate(S),e.scale(C,I),e.arc(0,0,M,E,_,1-A),e.scale(1/C,1/I),e.rotate(-S),e.translate(-m,-b)}break}case"Z":e.closePath();break}if(h==="Z")s=u;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function yT(r,e){var t=r.get("canvas");t&&(e==="remove"&&(r._cacheCanvasBBox=r.get("cacheCanvasBBox")),r.get("hasChanged")||(r.set("hasChanged",!0),r.cfg.parent&&r.cfg.parent.get("hasChanged")||(t.refreshElement(r,e,t),t.get("autoDraw")&&t.draw())))}function t9(r){var e;if(r.destroyed)e=r._cacheCanvasBBox;else{var t=r.get("cacheCanvasBBox"),n=t&&!!(t.width&&t.height),a=r.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?e=X$(t,a):n?e=t:i&&(e=a)}return e}function r9(r){if(!r.length)return null;var e=[],t=[],n=[],a=[];return _e(r,function(i){var o=t9(i);o&&(e.push(o.minX),t.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ha(e),minY:Ha(t),maxX:qa(n),maxY:qa(a)}}function n9(r,e){return!r||!e||!Ff(r,e)?null:{minX:Math.max(r.minX,e.minX),minY:Math.max(r.minY,e.minY),maxX:Math.min(r.maxX,e.maxX),maxY:Math.min(r.maxY,e.maxY)}}var mT=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(t){yT(this,t)},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,n){n&&(t.save(),tu(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,n=[],a=[];_e(t,function(h){var d=h.cfg.cacheCanvasBBox;d&&h.cfg.isInView&&(n.push(d.minX,d.maxX),a.push(d.minY,d.maxY))});var i=null;if(n.length){var o=Ha(n),s=qa(n),u=Ha(a),f=qa(a);i={minX:o,minY:u,x:o,y:u,maxX:s,maxY:f,width:s-o,height:f-u};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",Ff(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(t.save(),tu(t,this),this._applyClip(t,this.getClip()),Q0(t,a,n),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(fC),Ea=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return mT},e.prototype.onCanvasChange=function(t){yT(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),n=this.getHitLineWidth(),a=hC(t),i=a(this),o=n/2,s=i.x-o,u=i.y-o,f=i.x+i.width+o,l=i.y+i.height+o;return{x:s,minX:s,y:u,minY:u,width:i.width+n,height:i.height+n,maxX:f,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,n){n&&(t.save(),tu(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},e.prototype.draw=function(t,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Ff(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),tu(t,this),this._applyClip(t,a),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var n=this.getCanvasBBox(),a=Ff(n,t);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!Zt(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=i):this.fill(t)),this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,n,a,i,o)},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(lC),a9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.r,c=o/2,h=lT(u,f,t,n);return i&&a?h<=l+c:i?h<=l:a?h>=l-c&&h<=l+c:!1},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.r;t.beginPath(),t.arc(a,i,o,0,Math.PI*2,!1),t.closePath()},e}(Ea);function wc(r,e,t,n){return r/(t*t)+e/(n*n)}var i9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=o/2,f=s.x,l=s.y,c=s.rx,h=s.ry,d=(t-f)*(t-f),v=(n-l)*(n-l);return i&&a?wc(d,v,c+u,h+u)<=1:i?wc(d,v,c,h)<=1:a?wc(d,v,c-u,h-u)>=1&&wc(d,v,c+u,h+u)<=1:!1},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(t.beginPath(),t.ellipse)t.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var u=o>s?o:s,f=o>s?1:o/s,l=o>s?s/o:1;t.save(),t.translate(a,i),t.scale(f,l),t.arc(0,0,u,0,Math.PI*2),t.restore(),t.closePath()}},e}(Ea);function Kx(r){return r instanceof HTMLElement&&Ye(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS"}var o9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var n=this,a=this.attrs;if(Ye(t)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(a.width||(a.width=t.width),a.height||(a.height=t.height)):Kx(t)&&(a.width||(a.width=Number(t.getAttribute("width"))),a.height||(a.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),t==="img"&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.sx,f=n.sy,l=n.swidth,c=n.sheight,h=n.img;(h instanceof Image||Kx(h))&&(!Zt(u)&&!Zt(f)&&!Zt(l)&&!Zt(c)?t.drawImage(h,u,f,l,c,a,i,o,s):t.drawImage(h,a,i,o,s))},e}(Ea);function ji(r,e,t,n,a,i,o){var s=Math.min(r,t),u=Math.max(r,t),f=Math.min(e,n),l=Math.max(e,n),c=a/2;return i>=s-c&&i<=u+c&&o>=f-c&&o<=l+c?cn.pointToLine(r,e,t,n,i,o)<=a/2:!1}var s9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.startArrow,u=t.endArrow;s&&By(this,t,i,o,n,a),u&&Gy(this,t,n,a,i,o)},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),u=s.x1,f=s.y1,l=s.x2,c=s.y2;return ji(u,f,l,c,o,t,n)},e.prototype.createPath=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.startArrow,f=n.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};u&&u.d&&(l=Go(a,i,o,s,n.startArrow.d)),f&&f.d&&(c=Go(a,i,o,s,n.endArrow.d)),t.beginPath(),t.moveTo(a+l.dx,i+l.dy),t.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(t){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(t),a&&a.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,t)},e}(Ea),u9={circle:function(r,e,t){return[["M",r-t,e],["A",t,t,0,1,0,r+t,e],["A",t,t,0,1,0,r-t,e]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+n],["L",r,e-n],["L",r+t,e+n],["Z"]]},"triangle-down":function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-n],["L",r+t,e-n],["L",r,e+n],["Z"]]}},f9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Zt(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),n=t.x,a=t.y,i=t.symbol||"circle",o=this._getR(t),s,u;if(Tr(i))s=i,u=s(n,a,o),u=SC(u);else{if(s=e.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;u=s(n,a,o)}return u},e.prototype.createPath=function(t){var n=this._getPath(),a=this.get("paramsCache");gT(this,t,{path:n},a)},e.Symbols=u9,e}(Ea);function bT(r,e,t){var n=xC();return r.createPath(n),n.isPointInPath(e,t)}var l9=1e-6;function mp(r){return Math.abs(r)0!=mp(s[1]-t)>0&&mp(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function uf(r,e,t,n,a,i,o,s){var u=(Math.atan2(s-e,o-r)+Math.PI*2)%(Math.PI*2);if(ua)return!1;var f={x:r+t*Math.cos(u),y:e+t*Math.sin(u)};return lT(f.x,f.y,o,s)<=i/2}var h9=eo;function d9(r){for(var e=!1,t=r.length,n=0;nb?m:b,A=m>b?1:m/b,M=m>b?b/m:1,C=h9(null,[["t",-g,-y],["r",-E],["s",1/A,1/M]]);cd(_,_,C),i=uf(0,0,S,w,x,e,_[0],_[1]);break}if(i)break}}return i}function p9(r){for(var e=r.length,t=[],n=[],a=[],i=0;i0&&n.push(a),{polygons:t,polylines:n}}const xc=P({hasArc:d9,extractPolygons:p9,isPointInStroke:v9},dz);function Qx(r,e,t){for(var n=!1,a=0;a=l[0]&&t<=l[1]&&(a=(t-l[0])/(l[1]-l[0]),i=c)});var s=o[i];if(Zt(s)||Zt(i))return null;var u=s.length,f=o[i+1];return gf.pointAt(s[u-2],s[u-1],f[1],f[2],f[3],f[4],f[5],f[6],a)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",xc.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,n=0,a=[],i,o,s,u,f=this.get("curve");if(f){if(_e(f,function(l,c){s=f[c+1],u=l.length,s&&(t+=gf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}_e(f,function(l,c){s=f[c+1],u=l.length,s&&(i=[],i[0]=n/t,o=gf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/t,a.push(i))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var t=this.getSegments(),n;if(t.length>1){var a=t[0].currentPoint,i=t[1].currentPoint,o=t[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},e.prototype.getEndTangent=function(){var t=this.getSegments(),n=t.length,a;if(n>1){var i=t[n-2].currentPoint,o=t[n-1].currentPoint,s=t[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},e}(Ea);function xT(r,e,t,n,a){var i=r.length;if(i<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(i=(t-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(t,function(u,f){t[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],t[f+1][0],t[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},e.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,a=[];return a.push([t[n-1][0],t[n-1][1]]),a.push([t[n][0],t[n][1]]),a},e}(Ea);function m9(r,e,t,n,a,i,o){var s=a/2;return Ro(r-s,e-s,t,a,i,o)||Ro(r+t-s,e-s,a,n,i,o)||Ro(r+s,e+n-s,t,a,i,o)||Ro(r-s,e+s,a,n,i,o)}function b9(r,e,t,n,a,i,o,s){return ji(r+a,e,r+t-a,e,i,o,s)||ji(r+t,e+a,r+t,e+n-a,i,o,s)||ji(r+t-a,e+n,r+a,e+n,i,o,s)||ji(r,e+n-a,r,e+a,i,o,s)||uf(r+t-a,e+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||uf(r+t-a,e+n-a,a,0,.5*Math.PI,i,o,s)||uf(r+a,e+n-a,a,.5*Math.PI,Math.PI,i,o,s)||uf(r+a,e+a,a,Math.PI,1.5*Math.PI,i,o,s)}var w9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.width,c=s.height,h=s.radius;if(h){var v=!1;return a&&(v=b9(u,f,l,c,h,o,t,n)),!v&&i&&(v=bT(this,t,n)),v}else{var d=o/2;if(i&&a)return Ro(u-d,f-d,l+d,c+d,t,n);if(i)return Ro(u,f,l,c,t,n);if(a)return m9(u,f,l,c,o,t,n)}},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t.beginPath(),u===0)t.rect(a,i,o,s);else{var f=Q$(u),l=f[0],c=f[1],h=f[2],d=f[3];t.moveTo(a+l,i),t.lineTo(a+o-c,i),c!==0&&t.arc(a+o-c,i+c,c,-Math.PI/2,0),t.lineTo(a+o,i+s-h),h!==0&&t.arc(a+o-h,i+s-h,h,0,Math.PI/2),t.lineTo(a+d,i+s),d!==0&&t.arc(a+d,i+s-d,d,Math.PI/2,Math.PI),t.lineTo(a,i+l),l!==0&&t.arc(a+l,i+l,l,Math.PI,Math.PI*1.5),t.closePath()}},e}(Ea),x9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=_C(t)},e.prototype._setText=function(t){var n=null;Ye(t)&&t.indexOf(` -`)!==-1&&(n=t.split(` -`)),this.set("textArr",n)},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,n=t.lineHeight,a=t.fontSize*1;return n?n-a:a*.14},e.prototype._drawTextArr=function(t,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,u=i.y,f=i.fontSize*1,l=this._getSpaceingY(),c=EC(i.text,i.fontSize,i.lineHeight),h;_e(n,function(d,v){h=u+v*(l+f)-c+f,o==="middle"&&(h+=c-f-(c-f)/2),o==="top"&&(h+=c-f),Zt(d)||(a?t.fillText(d,s,h):t.strokeText(d,s,h))})},e.prototype._drawText=function(t,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,n);else{var u=a.text;Zt(u)||(n?t.fillText(u,i,o):t.strokeText(u,i,o))}},e.prototype.strokeAndFill=function(t){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(!Zt(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=i):this.fill(t)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(Ea);function E9(r,e){if(e){var t=VA(e);return Do(t,r)}return r}function ET(r,e,t){var n=r.getTotalMatrix();if(n){var a=E9([e,t,1],n),i=a[0],o=a[1];return[i,o]}return[e,t]}function Jx(r,e,t){if(r.isCanvas&&r.isCanvas())return!0;if(!A0(r)||r.cfg.isInView===!1)return!1;if(r.cfg.clipShape){var n=ET(r,e,t),a=n[0],i=n[1];if(r.isClipped(a,i))return!1}var o=r.cfg.cacheCanvasBBox||r.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&t>=o.minY&&t<=o.maxY}function _T(r,e,t){if(!Jx(r,e,t))return null;for(var n=null,a=r.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=_T(s,e,t);else if(Jx(s,e,t)){var u=s,f=ET(s,e,t),l=f[0],c=f[1];u.isInShape(l,c)&&(n=s)}if(n)break}return n}var Vu=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},e.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return mT},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||$$();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),n=t.getContext("2d");return this.set("context",n),t},e.prototype.setDOMSize=function(t,n){r.prototype.setDOMSize.call(this,t,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*t,i.height=o*n,o>1&&a.scale(o,o)},e.prototype.clear=function(){r.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(t,n){var a;return this.get("quickHit")?a=_T(this,t,n):a=r.prototype.getShape.call(this,t,n,null),a},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),n=this.getViewRange(),a;if(t.length&&t[0]===this)a=n;else if(a=r9(t),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=n9(a,n))}return a},e.prototype.refreshElement=function(t){var n=this.get("refreshElements");n.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(PS(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),n=this.get("el"),a=this.getChildren();t.clearRect(0,0,n.width,n.height),tu(t,this),Q0(t,a),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),tu(t,this),J$(this,a,i),Q0(t,a,i),t.restore()):n.length&&pT(n),_e(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=DS(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(uC),eg={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ar={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ra(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function ST(r){var e=eg[r.type],t=r.getParent();if(!e)throw new Error("the type "+r.type+" is not supported by svg");var n=ra(e);if(r.get("id")&&(n.id=r.get("id")),r.set("el",n),r.set("attrs",{}),t){var a=t.get("el");a||(a=t.createDom(),t.set("el",a)),a.appendChild(n)}return n}function MT(r,e){var t=r.get("el"),n=GS(t.children).sort(e),a=document.createDocumentFragment();n.forEach(function(i){a.appendChild(i)}),t.appendChild(a)}function _9(r,e){var t=r.parentNode,n=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),a=n[e],i=n.indexOf(r);if(a){if(i>e)t.insertBefore(r,a);else if(i0&&(n?"stroke"in a?this._setColor(t,"stroke",s):"strokeStyle"in a&&this._setColor(t,"stroke",u):this._setColor(t,"stroke",s||u),l&&h.setAttribute(ar.strokeOpacity,l),c&&h.setAttribute(ar.lineWidth,c))},e.prototype._setColor=function(t,n,a){var i=this.get("el");if(!a){i.setAttribute(ar[n],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=t.find("gradient",a);o||(o=t.addGradient(a)),i.setAttribute(ar[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=t.find("pattern",a);o||(o=t.addPattern(a)),i.setAttribute(ar[n],"url(#"+o+")")}else i.setAttribute(ar[n],a)},e.prototype.shadow=function(t,n){var a=this.attr(),i=n||a,o=i.shadowOffsetX,s=i.shadowOffsetY,u=i.shadowBlur,f=i.shadowColor;(o||s||u||f)&&S9(this,t)},e.prototype.transform=function(t){var n=this.attr(),a=(t||n).matrix;a&&Qf(this)},e.prototype.isInShape=function(t,n){return this.isPointInPath(t,n)},e.prototype.isPointInPath=function(t,n){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),s=t+o.left,u=n+o.top,f=document.elementFromPoint(s,u);return!!(f&&f.isEqualNode(a))},e.prototype.getHitLineWidth=function(){var t=this.attrs,n=t.lineWidth,a=t.lineAppendWidth;return this.isStroke()?n+a:0},e}(lC),M9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),A9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");if(_e(n||a,function(f,l){ar[l]&&i.setAttribute(ar[l],f)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var s=i.childNodes,u=s.length-1;u>=0;u--)i.removeChild(s[u]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},e}(aa),C9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),T9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){u==="img"?a._setImage(i.img):ar[u]&&o.setAttribute(ar[u],s)})},e.prototype.setAttr=function(t,n){this.attrs[t]=n,t==="img"&&this._setImage(n)},e.prototype._setImage=function(t){var n=this.attr(),a=this.get("el");if(Ye(t))a.setAttribute("href",t);else if(t instanceof window.Image)n.width||(a.setAttribute("width",t.width),this.attr("width",t.width)),n.height||(a.setAttribute("height",t.height),this.attr("height",t.height)),a.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Ye(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),n.width||(a.setAttribute("width",""+t.width),this.attr("width",t.width)),n.height||(a.setAttribute("height",""+t.height),this.attr("height",t.height)),a.setAttribute("href",i.toDataURL())}},e}(aa),I9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var u=gn(o)?t.addArrow(a,ar[s]):t.getDefaultArrow(a,ar[s]);i.setAttribute(ar[s],"url(#"+u+")")}else i.removeAttribute(ar[s]);else ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,t)},e}(aa),Ec={circle:function(r,e,t){return[["M",r,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+n],["L",r,e-n],["L",r+t,e+n],["z"]]},triangleDown:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-n],["L",r+t,e-n],["L",r,e+n],["Z"]]}};const eE={get:function(r){return Ec[r]},register:function(r,e){Ec[r]=e},remove:function(r){delete Ec[r]},getAll:function(){return Ec}};var k9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return bt(t)?t.map(function(n){return n.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),n=t.x,a=t.y,i=t.r||t.radius,o=t.symbol||"circle",s;return Tr(o)?s=o:s=eE.get(o),s?s(n,a,i):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=eE,e}(aa),N9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){if(u==="path"&&bt(s))o.setAttribute("d",a._formatPath(s));else if(u==="startArrow"||u==="endArrow")if(s){var f=gn(s)?t.addArrow(i,ar[u]):t.getDefaultArrow(i,ar[u]);o.setAttribute(ar[u],"url(#"+f+")")}else o.removeAttribute(ar[u]);else ar[u]&&o.setAttribute(ar[u],s)})},e.prototype._formatPath=function(t){var n=t.map(function(a){return a.join(" ")}).join("");return~n.indexOf("NaN")?"":n},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var n=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=n?n.getPointAtLength(t*a):null;return i?{x:i.x,y:i.y}:null},e}(aa),O9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),L9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr().points,n=this.get("totalLength");return Zt(n)?(this.set("totalLength",wC.length(t)),this.get("totalLength")):n},e.prototype.getPoint=function(t){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return _e(a,function(s,u){t>=s[0]&&t<=s[1]&&(i=(t-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(t,function(u,f){t[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],t[f+1][0],t[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},e.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,a=[];return a.push([t[n-1][0],t[n-1][1]]),a.push([t[n][0],t[n][1]]),a},e}(aa);function D9(r){var e=0,t=0,n=0,a=0;return bt(r)?r.length===1?e=t=n=a=r[0]:r.length===2?(e=n=r[0],t=a=r[1]):r.length===3?(e=r[0],t=a=r[1],n=r[2]):(e=r[0],t=r[1],n=r[2],a=r[3]):e=t=n=a=r,{r1:e,r2:t,r3:n,r4:a}}var P9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];_e(n||i,function(f,l){u.indexOf(l)!==-1&&!s?(o.setAttribute("d",a._assembleRect(i)),s=!0):u.indexOf(l)===-1&&ar[l]&&o.setAttribute(ar[l],f)})},e.prototype._assembleRect=function(t){var n=t.x,a=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+n+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=D9(s);bt(s)?s.length===1?u.r1=u.r2=u.r3=u.r4=s[0]:s.length===2?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):s.length===3?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var f=[["M "+(n+u.r1)+","+a],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return f.join(" ")},e}(aa),tE=.3,R9={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},F9={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},B9={left:"left",start:"left",center:"middle",right:"end",end:"end"},G9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");this._setFont(),_e(n||i,function(s,u){u==="text"?a._setText(""+s):u==="matrix"&&s?Qf(a):ar[u]&&o.setAttribute(ar[u],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),n=this.attr(),a=n.textBaseline,i=n.textAlign,o=WA();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",F9[a]||"alphabetic"):t.setAttribute("alignment-baseline",R9[a]||"baseline"),t.setAttribute("text-anchor",B9[i]||"left")},e.prototype._setText=function(t){var n=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,s=o===void 0?"bottom":o;if(!t)n.innerHTML="";else if(~t.indexOf(` -`)){var u=t.split(` -`),f=u.length-1,l="";_e(u,function(c,h){h===0?s==="alphabetic"?l+=''+c+"":s==="top"?l+=''+c+"":s==="middle"?l+=''+c+"":s==="bottom"?l+=''+c+"":s==="hanging"&&(l+=''+c+""):l+=''+c+""}),n.innerHTML=l}else n.innerHTML=t},e}(aa),z9=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,j9=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,U9=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function IT(r){var e=r.match(U9);if(!e)return"";var t="";return e.sort(function(n,a){return n=n.split(":"),a=a.split(":"),Number(n[0])-Number(a[0])}),_e(e,function(n){n=n.split(":"),t+=''}),t}function $9(r,e){var t=z9.exec(r),n=ud(fd(parseFloat(t[1])),Math.PI*2),a=t[2],i,o;n>=0&&n<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n`;t.innerHTML=n},r}(),rE=function(){function r(e,t){this.cfg={};var n=ra("marker"),a=Ji("marker_");n.setAttribute("id",a);var i=ra("path");i.setAttribute("stroke",e.stroke||"none"),i.setAttribute("fill",e.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=a;var o=e[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(t,i):(this.cfg=o,this._setMarker(e.lineWidth,i)),this}return r.prototype.match=function(){return!1},r.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},r.prototype._setMarker=function(e,t){var n=this.el,a=this.cfg.path,i=this.cfg.d;bt(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",a),n.appendChild(t),i&&n.setAttribute("refX",""+i/e)},r.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},r}(),H9=function(){function r(e){this.type="clip",this.cfg={};var t=ra("clipPath");this.el=t,this.id=Ji("clip_"),t.id=this.id;var n=e.cfg.el;return t.appendChild(n),this.cfg=e,this}return r.prototype.match=function(){return!1},r.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},r}(),Z9=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,K9=function(){function r(e){this.cfg={};var t=ra("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=ra("image");t.appendChild(n);var a=Ji("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var i=Z9.exec(e),o=i[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function u(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?u():(s.onload=u,s.src=s.src),this}return r.prototype.match=function(e,t){return this.cfg===t},r}(),Q9=function(){function r(e){var t=ra("defs"),n=Ji("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return r.prototype.find=function(e,t){for(var n=this.children,a=null,i=0;i]*>/,tg={tr:document.createElement("tbody"),tbody:ff,thead:ff,tfoot:ff,td:wp,th:wp,"*":document.createElement("div")}}function rg(r){ff||J9();var e=kT.test(r)&&RegExp.$1;(!e||!(e in tg))&&(e="*");var t=tg[e];r=typeof r=="string"?r.replace(/(^\s*)|(\s*$)/g,""):r,t.innerHTML=""+r;var n=t.childNodes[0];return n&&t.contains(n)&&t.removeChild(n),n}function Yu(r,e){if(r)for(var t in e)e.hasOwnProperty(t)&&(r.style[t]=e[t]);return r}var NT={exports:{}},OT={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]},LT={exports:{}},eX=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")},tX=eX,rX=Array.prototype.concat,nX=Array.prototype.slice,nE=LT.exports=function(e){for(var t=[],n=0,a=e.length;n=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};$n.to.keyword=function(r){return PT[r.slice(0,3)]};function Vi(r,e,t){return Math.min(Math.max(e,r),t)}function Sc(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}var iX=NT.exports,RT={exports:{}},zo=OT,FT={};for(var Ep in zo)zo.hasOwnProperty(Ep)&&(FT[zo[Ep]]=Ep);var mt=RT.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Tn in mt)if(mt.hasOwnProperty(Tn)){if(!("channels"in mt[Tn]))throw new Error("missing channels property: "+Tn);if(!("labels"in mt[Tn]))throw new Error("missing channel labels property: "+Tn);if(mt[Tn].labels.length!==mt[Tn].channels)throw new Error("channel and label counts mismatch: "+Tn);var oX=mt[Tn].channels,sX=mt[Tn].labels;delete mt[Tn].channels,delete mt[Tn].labels,Object.defineProperty(mt[Tn],"channels",{value:oX}),Object.defineProperty(mt[Tn],"labels",{value:sX})}mt.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s,u,f;return i===a?s=0:e===i?s=(t-n)/o:t===i?s=2+(n-e)/o:n===i&&(s=4+(e-t)/o),s=Math.min(s*60,360),s<0&&(s+=360),f=(a+i)/2,i===a?u=0:f<=.5?u=o/(i+a):u=o/(2-i-a),[s,u*100,f*100]};mt.rgb.hsv=function(r){var e,t,n,a,i,o=r[0]/255,s=r[1]/255,u=r[2]/255,f=Math.max(o,s,u),l=f-Math.min(o,s,u),c=function(h){return(f-h)/6/l+1/2};return l===0?a=i=0:(i=l/f,e=c(o),t=c(s),n=c(u),o===f?a=n-t:s===f?a=1/3+e-n:u===f&&(a=2/3+t-e),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,f*100]};mt.rgb.hwb=function(r){var e=r[0],t=r[1],n=r[2],a=mt.rgb.hsl(r)[0],i=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[a,i*100,n*100]};mt.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a,i,o,s;return s=Math.min(1-e,1-t,1-n),a=(1-e-s)/(1-s)||0,i=(1-t-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[a*100,i*100,o*100,s*100]};function uX(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}mt.rgb.keyword=function(r){var e=FT[r];if(e)return e;var t=1/0,n;for(var a in zo)if(zo.hasOwnProperty(a)){var i=zo[a],o=uX(r,i);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=e*.4124+t*.3576+n*.1805,i=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[a*100,i*100,o*100]};mt.rgb.lab=function(r){var e=mt.rgb.xyz(r),t=e[0],n=e[1],a=e[2],i,o,s;return t/=95.047,n/=100,a/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,o=500*(t-n),s=200*(n-a),[i,o,s]};mt.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,a,i,o,s,u;if(t===0)return u=n*255,[u,u,u];n<.5?i=n*(1+t):i=n+t-n*t,a=2*n-i,s=[0,0,0];for(var f=0;f<3;f++)o=e+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(i-a)*6*o:2*o<1?u=i:3*o<2?u=a+(i-a)*(2/3-o)*6:u=a,s[f]=u*255;return s};mt.hsl.hsv=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,a=t,i=Math.max(n,.01),o,s;return n*=2,t*=n<=1?n:2-n,a*=i<=1?i:2-i,s=(n+t)/2,o=n===0?2*a/(i+a):2*t/(n+t),[e,o*100,s*100]};mt.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,n=r[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-t),s=255*n*(1-t*i),u=255*n*(1-t*(1-i));switch(n*=255,a){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};mt.hsv.hsl=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,a=Math.max(n,.01),i,o,s;return s=(2-t)*n,i=(2-t)*a,o=t*a,o/=i<=1?i:2-i,o=o||0,s/=2,[e,o*100,s*100]};mt.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,a=t+n,i,o,s,u;a>1&&(t/=a,n/=a),i=Math.floor(6*e),o=1-n,s=6*e-i,i&1&&(s=1-s),u=t+s*(o-t);var f,l,c;switch(i){default:case 6:case 0:f=o,l=u,c=t;break;case 1:f=u,l=o,c=t;break;case 2:f=t,l=o,c=u;break;case 3:f=t,l=u,c=o;break;case 4:f=u,l=t,c=o;break;case 5:f=o,l=t,c=u;break}return[f*255,l*255,c*255]};mt.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,a=r[3]/100,i,o,s;return i=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,t*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),[i*255,o*255,s*255]};mt.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,a,i,o;return a=e*3.2406+t*-1.5372+n*-.4986,i=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};mt.xyz.lab=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=116*t-16,i=500*(e-t),o=200*(t-n),[a,i,o]};mt.lab.xyz=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;i=(e+16)/116,a=t/500+i,o=i-n/200;var s=Math.pow(i,3),u=Math.pow(a,3),f=Math.pow(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};mt.lab.lch=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return a=Math.atan2(n,t),i=a*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(t*t+n*n),[e,o,i]};mt.lch.lab=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return o=n/360*2*Math.PI,a=t*Math.cos(o),i=t*Math.sin(o),[e,a,i]};mt.rgb.ansi16=function(r){var e=r[0],t=r[1],n=r[2],a=1 in arguments?arguments[1]:mt.rgb.hsv(r)[2];if(a=Math.round(a/50),a===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return a===2&&(i+=60),i};mt.hsv.ansi16=function(r){return mt.rgb.ansi16(mt.hsv.rgb(r),r[2])};mt.rgb.ansi256=function(r){var e=r[0],t=r[1],n=r[2];if(e===t&&t===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5);return a};mt.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,n=(e&1)*t*255,a=(e>>1&1)*t*255,i=(e>>2&1)*t*255;return[n,a,i]};mt.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,n=Math.floor(r/36)/5*255,a=Math.floor((t=r%36)/6)/5*255,i=t%6/5*255;return[n,a,i]};mt.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};mt.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var n=parseInt(t,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};mt.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.max(Math.max(e,t),n),i=Math.min(Math.min(e,t),n),o=a-i,s,u;return o<1?s=i/(1-o):s=0,o<=0?u=0:a===e?u=(t-n)/o%6:a===t?u=2+(n-e)/o:u=4+(e-t)/o+4,u/=6,u%=1,[u*360,o*100,s*100]};mt.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1,a=0;return t<.5?n=2*e*t:n=2*e*(1-t),n<1&&(a=(t-.5*n)/(1-n)),[r[0],n*100,a*100]};mt.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=e*t,a=0;return n<1&&(a=(t-n)/(1-n)),[r[0],n*100,a*100]};mt.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];var a=[0,0,0],i=e%1*6,o=i%1,s=1-o,u=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return u=(1-t)*n,[(t*a[0]+u)*255,(t*a[1]+u)*255,(t*a[2]+u)*255]};mt.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e),a=0;return n>0&&(a=e/n),[r[0],a*100,n*100]};mt.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,n=t*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[r[0],a*100,n*100]};mt.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};mt.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1-t,a=n-e,i=0;return a<1&&(i=(n-a)/(1-a)),[r[0],a*100,i*100]};mt.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};mt.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};mt.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};mt.gray.hsl=mt.gray.hsv=function(r){return[0,0,r[0]]};mt.gray.hwb=function(r){return[0,100,r[0]]};mt.gray.cmyk=function(r){return[0,0,0,r[0]]};mt.gray.lab=function(r){return[r[0],0,0]};mt.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};mt.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]};var BT=RT.exports,Fh=BT;function fX(){for(var r={},e=Object.keys(Fh),t=e.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function yX(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=r(t);if(typeof n=="object")for(var a=n.length,i=0;i>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(r);"alpha"in r&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var s=o.sort().join("");if(!(s in ag))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=ag[s];var u=zn[this.model].labels,f=[];for(t=0;tt?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return pn.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),n=this.rgb(),a=e===void 0?.5:e,i=2*a-1,o=t.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,u=1-s;return pn.rgb(s*t.red()+u*n.red(),s*t.green()+u*n.green(),s*t.blue()+u*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};Object.keys(zn).forEach(function(r){if(GT.indexOf(r)===-1){var e=zn[r].channels;pn.prototype[r]=function(){if(this.model===r)return new pn(this);if(arguments.length)return new pn(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new pn(xX(zn[this.model][r].raw(this.color)).concat(t),r)},pn[r]=function(t){return typeof t=="number"&&(t=ig(Uy.call(arguments),e)),new pn(t,r)}}});function bX(r,e){return Number(r.toFixed(e))}function wX(r){return function(e){return bX(e,r)}}function Lr(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(n){(Bh[n]||(Bh[n]=[]))[e]=t}),r=r[0],function(n){var a;return arguments.length?(t&&(n=t(n)),a=this[r](),a.color[e]=n,a):(a=this[r]().color[e],t&&(a=t(a)),a)}}function qr(r){return function(e){return Math.max(0,Math.min(r,e))}}function xX(r){return Array.isArray(r)?r:[r]}function ig(r,e){for(var t=0;t=0,i=!t&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(LX,arguments)},brighten:function(){return this._applyModification(DX,arguments)},darken:function(){return this._applyModification(PX,arguments)},desaturate:function(){return this._applyModification(kX,arguments)},saturate:function(){return this._applyModification(NX,arguments)},greyscale:function(){return this._applyModification(OX,arguments)},spin:function(){return this._applyModification(RX,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(GX,arguments)},complement:function(){return this._applyCombination(FX,arguments)},monochromatic:function(){return this._applyCombination(zX,arguments)},splitcomplement:function(){return this._applyCombination(BX,arguments)},triad:function(){return this._applyCombination(uE,[3])},tetrad:function(){return this._applyCombination(uE,[4])}};wt.fromRatio=function(r,e){if(Gh(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(n==="a"?t[n]=r[n]:t[n]=cf(r[n]));r=t}return wt(r,e)};function MX(r){var e={r:0,g:0,b:0},t=1,n=null,a=null,i=null,o=!1,s=!1;return typeof r=="string"&&(r=WX(r)),Gh(r)=="object"&&(oi(r.r)&&oi(r.g)&&oi(r.b)?(e=AX(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):oi(r.h)&&oi(r.s)&&oi(r.v)?(n=cf(r.s),a=cf(r.v),e=TX(r.h,n,a),o=!0,s="hsv"):oi(r.h)&&oi(r.s)&&oi(r.l)&&(n=cf(r.s),i=cf(r.l),e=CX(r.h,n,i),o=!0,s="hsl"),r.hasOwnProperty("a")&&(t=r.a)),t=zT(t),{ok:o,format:r.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function AX(r,e,t){return{r:Er(r,255)*255,g:Er(e,255)*255,b:Er(t,255)*255}}function aE(r,e,t){r=Er(r,255),e=Er(e,255),t=Er(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case r:i=(e-t)/u+(e1&&(c-=1),c<1/6?f+(l-f)*6*c:c<1/2?l:c<2/3?f+(l-f)*(2/3-c)*6:f}if(e===0)n=a=i=t;else{var s=t<.5?t*(1+e):t+e-t*e,u=2*t-s;n=o(u,s,r+1/3),a=o(u,s,r),i=o(u,s,r-1/3)}return{r:n*255,g:a*255,b:i*255}}function iE(r,e,t){r=Er(r,255),e=Er(e,255),t=Er(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case r:i=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(wt(n));return i}function zX(r,e){e=e||6;for(var t=wt(r).toHsv(),n=t.h,a=t.s,i=t.v,o=[],s=1/e;e--;)o.push(wt({h:n,s:a,v:i})),i=(i+s)%1;return o}wt.mix=function(r,e,t){t=t===0?0:t||50;var n=wt(r).toRgb(),a=wt(e).toRgb(),i=t/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return wt(o)};wt.readability=function(r,e){var t=wt(r),n=wt(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};wt.isReadable=function(r,e,t){var n=wt.readability(r,e),a,i;switch(i=!1,a=VX(t),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};wt.mostReadable=function(r,e,t){var n=null,a=0,i,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var f=0;fa&&(a=i,n=wt(e[f]));return wt.isReadable(r,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,wt.mostReadable(r,["#fff","#000"],t))};var og=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},jX=wt.hexNames=UX(og);function UX(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}function zT(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Er(r,e){$X(r)&&(r="100%");var t=XX(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function Id(r){return Math.min(1,Math.max(0,r))}function Fn(r){return parseInt(r,16)}function $X(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function XX(r){return typeof r=="string"&&r.indexOf("%")!=-1}function ma(r){return r.length==1?"0"+r:""+r}function cf(r){return r<=1&&(r=r*100+"%"),r}function jT(r){return Math.round(parseFloat(r)*255).toString(16)}function fE(r){return Fn(r)/255}var ha=function(){var r="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+r+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",a="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oi(r){return!!ha.CSS_UNIT.exec(r)}function WX(r){r=r.replace(_X,"").replace(SX,"").toLowerCase();var e=!1;if(og[r])r=og[r],e=!0;else if(r=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=ha.rgb.exec(r))?{r:t[1],g:t[2],b:t[3]}:(t=ha.rgba.exec(r))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ha.hsl.exec(r))?{h:t[1],s:t[2],l:t[3]}:(t=ha.hsla.exec(r))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ha.hsv.exec(r))?{h:t[1],s:t[2],v:t[3]}:(t=ha.hsva.exec(r))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ha.hex8.exec(r))?{r:Fn(t[1]),g:Fn(t[2]),b:Fn(t[3]),a:fE(t[4]),format:e?"name":"hex8"}:(t=ha.hex6.exec(r))?{r:Fn(t[1]),g:Fn(t[2]),b:Fn(t[3]),format:e?"name":"hex"}:(t=ha.hex4.exec(r))?{r:Fn(t[1]+""+t[1]),g:Fn(t[2]+""+t[2]),b:Fn(t[3]+""+t[3]),a:fE(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=ha.hex3.exec(r))?{r:Fn(t[1]+""+t[1]),g:Fn(t[2]+""+t[2]),b:Fn(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function VX(r){var e,t;return r=r||{level:"AA",size:"small"},e=(r.level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var Mc=2,lE=.16,YX=.05,qX=.05,HX=.15,UT=5,$T=4,ZX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function cE(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-Mc*e:Math.round(r.h)+Mc*e:n=t?Math.round(r.h)+Mc*e:Math.round(r.h)-Mc*e,n<0?n+=360:n>=360&&(n-=360),n}function hE(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-lE*e:e===$T?n=r.s+lE:n=r.s+YX*e,n>1&&(n=1),t&&e===UT&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function dE(r,e,t){var n;return t?n=r.v+qX*e:n=r.v-HX*e,n>1&&(n=1),Number(n.toFixed(2))}function zh(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=wt(r),a=UT;a>0;a-=1){var i=n.toHsv(),o=wt({h:cE(i,a,!0),s:hE(i,a,!0),v:dE(i,a,!0)}).toHexString();t.push(o)}t.push(n.toHexString());for(var s=1;s<=$T;s+=1){var u=n.toHsv(),f=wt({h:cE(u,s),s:hE(u,s),v:dE(u,s)}).toHexString();t.push(f)}return e.theme==="dark"?ZX.map(function(l){var c=l.index,h=l.opacity,d=wt.mix(e.backgroundColor||"#141414",t[c],h*100).toHexString();return d}):t}var _p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Sp={},Mp={};Object.keys(_p).forEach(function(r){Sp[r]=zh(_p[r]),Sp[r].primary=Sp[r][5],Mp[r]=zh(_p[r],{theme:"dark",backgroundColor:"#141414"}),Mp[r].primary=Mp[r][5]});var Zr=function(e,t,n){var a=bf(e),i=bf(t);return bf([(1-n)*a.red()+n*i.red(),(1-n)*a.green()+n*i.green(),(1-n)*a.blue()+n*i.blue()]).rgb()},KX=function(e,t,n){t===void 0&&(t="#fff");var a=Zr(t,e,.05).rgb().toString(),i=Zr(t,e,.1).rgb().toString(),o=Zr(t,e,.2).rgb().toString(),s=Zr(t,e,.4).rgb().toString(),u=Zr(t,n,.02).rgb().toString(),f=Zr(t,n,.05).rgb().toString(),l=Zr(t,n,.1).rgb().toString(),c=Zr(t,n,.2).rgb().toString(),h=Zr(t,n,.3).rgb().toString(),d=zh(e,{theme:"default",backgroundColor:t}),v=bf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:t,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:h,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:u,comboActiveStroke:e,comboActiveFill:a,comboInactiveStroke:h,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:f}},QX=function(e,t,n){t===void 0&&(t="#fff");var a=Zr(t,e,.2).rgb().toString(),i=Zr(t,e,.3).rgb().toString(),o=Zr(t,e,.6).rgb().toString(),s=Zr(t,e,.8).rgb().toString(),u=Zr(t,n,.2).rgb().toString(),f=Zr(t,n,.25).rgb().toString(),l=Zr(t,n,.3).rgb().toString(),c=Zr(t,n,.4).rgb().toString(),h=Zr(t,n,.5).rgb().toString(),d=zh(e,{theme:"dark",backgroundColor:t}),v=bf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:a,highlightStroke:e,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:n,edgeActiveStroke:e,edgeInactiveStroke:n,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:f,comboActiveStroke:e,comboActiveFill:u,comboInactiveStroke:c,comboInactiveFill:f,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:f,comboDisableStroke:c,comboDisableFill:u}},$y=function(e,t,n,a){return t===void 0&&(t="#fff"),n===void 0&&(n="default"),n==="default"?KX(e,t,"rgb(150, 150, 150)"):QX(e,t,"#777")},JX=function(e,t,n,a){t===void 0&&(t="#fff"),n===void 0&&(n="default");var i=[];return e.forEach(function(o){i.push($y(o,t,n))}),i};const e7=Object.freeze(Object.defineProperty({__proto__:null,getColorSetsBySubjectColors:JX,getColorsWithSubjectColor:$y,mixColor:Zr},Symbol.toStringTag,{value:"Module"}));var t7="rgb(95, 149, 255)",r7="rgb(255, 255, 255)",Ht=$y(t7,r7);const wf={defaultNode:{style:{stroke:Ht.mainStroke,fill:Ht.mainFill},color:Ht.mainStroke,linkPoints:{fill:Ht.activeFill,stroke:Ht.activeStroke}},nodeStateStyles:{active:{fill:Ht.activeFill,stroke:Ht.activeStroke,shadowColor:Ht.mainStroke},selected:{fill:Ht.selectedFill,stroke:Ht.selectedStroke,shadowColor:Ht.selectedStroke},highlight:{fill:Ht.highlightFill,stroke:Ht.highlightStroke},inactive:{fill:Ht.inactiveFill,stroke:Ht.inactiveStroke},disable:{fill:Ht.disableFill,stroke:Ht.disableStroke}},defaultEdge:{style:{stroke:Ht.edgeMainStroke},color:Ht.edgeMainStroke},edgeStateStyles:{active:{stroke:Ht.edgeActiveStroke},selected:{stroke:Ht.edgeSelectedStroke,shadowColor:Ht.edgeSelectedStroke},highlight:{stroke:Ht.edgeHighlightStroke},inactive:{stroke:Ht.edgeInactiveStroke},disable:{stroke:Ht.edgeDisableStroke}},defaultCombo:{style:{fill:Ht.comboMainFill,stroke:Ht.comboMainStroke},color:Ht.comboMainStroke},comboStateStyles:{active:{stroke:Ht.comboActiveStroke,fill:Ht.comboActiveFill},selected:{stroke:Ht.comboSelectedStroke,fill:Ht.comboSelectedFill,shadowColor:Ht.comboSelectedStroke},highlight:{stroke:Ht.comboHighlightStroke,fill:Ht.comboHighlightFill},inactive:{stroke:Ht.comboInactiveStroke,fill:Ht.comboInactiveFill},disable:{stroke:Ht.comboDisableStroke,fill:Ht.comboDisableFill}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var n7=function(e){var t=e.clone();return XT(e,t),t},XT=function(e,t){var n;e.isGroup()&&t.isGroup()&&((n=e.get("children"))===null||n===void 0||n.forEach(function(s,u){var f=t.get("children")[u];XT(s,f)}));var a=e.get("type"),i=t.get("type");if(!(a!=="image"||i!=="image")){var o=e.get("clipShape");o&&t.setClip({type:o.get("type"),attrs:o.attr()})}},a7=Za.cloneEvent,i7=Za.isViewportChanged,o7=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=t,n.destroyed=!1,n.initEvents(),n}return e.prototype.initEvents=function(){var t=this,n=t.graph,a=t.extendEvents,i=a===void 0?[]:a,o=n.get("canvas"),s=o.get("el"),u=Fs(this,"onCanvasEvents"),f=Fs(this,"onExtendEvents"),l=Fs(this,"onWheelEvent");o.off("*").on("*",u),this.canvasHandler=u,i.push(_c(s,"wheel",l)),typeof window<"u"&&(i.push(_c(window,"keydown",f)),i.push(_c(window,"keyup",f)),i.push(_c(window,"focus",f))),this.resetHandler&&n.off("afterchangedata",this.resetHandler),this.resetHandler=Fs(this,"resetStatus"),n.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this,a=this.graph,i=a.get("canvas"),o=t.target,s=t.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return;break}t.canvasX=t.x,t.canvasY=t.y;var u={x:t.canvasX,y:t.canvasY},f=a.get("group"),l=f.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),i7(l)&&(u=a.getPointByClient(t.clientX,t.clientY)),t.x=u.x,t.y=u.y,t.currentTarget=a,o===i){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,a.emit(s,t),a.emit("canvas:".concat(s),t);return}var c=e.getItemRoot(o);if(!c){a.emit(s,t);return}var h=c.get("item");if(!h.destroyed){var d=h.getType();if(t.target=o,t.item=h,t.canvasX===t.x&&t.canvasY===t.y){var v=a.getCanvasByPoint(t.x,t.y);t.canvasX=v.x,t.canvasY=v.y}t.name&&!t.name.includes(":")?(a.emit("".concat(d,":").concat(s),t),a.emit(s,t)):t.name&&a.emit(t.name,t),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(t,d)}},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){Zt(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,n){var a=this,i=a.graph,o=a.preItem,s=i.get("canvas"),u=t.target===s?null:t.item;t=a7(t),o&&o!==u&&!o.destroyed&&(t.item=o,this.emitCustomEvent(o.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",t)),u&&o!==u&&(t.item=u,this.emitCustomEvent(n,"mouseenter",t),this.dragging&&this.emitCustomEvent(n,"dragenter",t)),this.preItem=u},e.prototype.emitCustomEvent=function(t,n,a){a.type=n,this.graph.emit("".concat(t,":").concat(n),a)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this,n=t.graph,a=t.canvasHandler,i=t.extendEvents,o=n.get("canvas");o.off("*",a),_e(i,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(EU),Kt={},gi={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Base=void 0;var s7=function(){function r(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return r.prototype.layout=function(e){return this.init(e),this.execute(!0)},r.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},r.prototype.execute=function(e){},r.prototype.executeWithWorker=function(){},r.prototype.getDefaultCfg=function(){return{}},r.prototype.updateCfg=function(e){e&&Object.assign(this,e)},r.prototype.getType=function(){return"base"},r.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},r}();Rr.Base=s7;var Ap={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.camelize=ru.isString=void 0;var u7=function(r){return typeof r=="string"};ru.isString=u7;var f7=function(r){var e=Object.create(null);return function(t){var n=e[t];return n||(e[t]=r(t))}},l7=/-(\w)/g;ru.camelize=f7(function(r){return r.replace(l7,function(e,t){return t?t.toUpperCase():""})});var el={};Object.defineProperty(el,"__esModule",{value:!0});el.isArray=void 0;el.isArray=Array.isArray;var kd={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.toNumber=r.isNaN=r.isNumber=void 0;var e=function(a){return typeof a=="number"};r.isNumber=e;var t=function(a){return Number.isNaN(Number(a))};r.isNaN=t;var n=function(a){var i=parseFloat(a);return(0,r.isNaN)(i)?a:i};r.toNumber=n})(kd);var Nd={},Xy={};(function(r){var e=me&&me.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;ob[x][_]+b[_][E]&&(b[x][E]=b[x][_]+b[_][E]);return b};r.floydWarshall=s;var u=function(m,b){var w=m.nodes,x=m.edges,E=[],_={};if(!w)throw new Error("invalid nodes data!");return w&&w.forEach(function(S,A){_[S.id]=A;var M=[];E.push(M)}),x==null||x.forEach(function(S){var A=(0,r.getEdgeTerminal)(S,"source"),M=(0,r.getEdgeTerminal)(S,"target"),C=_[A],I=_[M];C===void 0||I===void 0||(E[C][I]=1,b||(E[I][C]=1))}),E};r.getAdjMatrix=u;var f=function(m,b){var w=[];return m.forEach(function(x){var E=[];x.forEach(function(_){E.push(_*b)}),w.push(E)}),w};r.scaleMatrix=f;var l=function(m,b){if(m&&m.children){for(var w=m.children.length-1;w>=0;w--)if(!l(m.children[w],b))return}return!!b(m)},c=function(m,b){typeof b=="function"&&l(m,b)};r.traverseTreeUp=c;var h=function(m){var b=1/0,w=1/0,x=-1/0,E=-1/0;return m.forEach(function(_){var S=_.size;(0,e.isArray)(S)?S.length===1&&(S=[S[0],S[0]]):(0,t.isNumber)(S)?S=[S,S]:(S===void 0||isNaN(S))&&(S=[30,30]);var A=[S[0]/2,S[1]/2],M=_.x-A[0],C=_.x+A[0],I=_.y-A[1],k=_.y+A[1];b>M&&(b=M),w>I&&(w=I),xf.size[1]?f.size[0]:f.size[1]:(0,e.isObject)(f.size)?f.size.width>f.size.height?f.size.width:f.size.height:f.size:o}:(0,r.isFunction)(s)?s:(0,t.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(u){var f=Math.max.apply(Math,s);return isNaN(f)?o:f}return s}:(0,e.isObject)(s)?function(){if(u){var f=Math.max(s.width,s.height);return isNaN(f)?o:f}return[s.width,s.height]}:function(){return o}};r.getFuncByUnknownType=i}(Cp)),Cp}var pE;function Ir(){return pE||(pE=1,function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(ru,r),t(el,r),t(kd,r),t(Nd,r),t(Xy,r),t(c7(),r)}(Ap)),Ap}var h7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.getLayoutByName=gi.unRegisterLayout=gi.registerLayout=void 0;var d7=Rr,v7=Ir(),Ui=new Map,p7=function(r,e){if(Ui.get(r)&&console.warn("The layout with the name ".concat(r," exists already, it will be overridden")),(0,v7.isObject)(e)){var t=function(n){h7(a,n);function a(i){var o=this,s;o=n.call(this)||this;var u=o,f={},l=Object.assign({},u.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(f,l,e,i),Object.keys(f).forEach(function(c){var h=f[c];u[c]=h}),o}return a}(d7.Base);Ui.set(r,t)}else Ui.set(r,e);return Ui.get(r)};gi.registerLayout=p7;var g7=function(r){Ui.has(r)&&Ui.delete(r)};gi.unRegisterLayout=g7;var y7=function(r){return Ui.has(r)?Ui.get(r):null};gi.getLayoutByName=y7;var Tp={},tl={},m7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tl,"__esModule",{value:!0});tl.GridLayout=void 0;var ws=Ir(),b7=Rr,w7=function(r){m7(e,r);function e(t){var n=r.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,n=t.nodes,a=t.edges,i=t.begin,o=n.length;if(o===0)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a};if(o===1)return n[0].x=i[0],n[0].y=i[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a};var s=t.sortBy,u=t.width,f=t.height,l=t.condense,c=t.preventOverlapPadding,h=t.preventOverlap,d=t.nodeSpacing,v=t.nodeSize,p=[];n.forEach(function(I){p.push(I)});var g={};if(p.forEach(function(I,k){g[I.id]=k}),(s==="degree"||!(0,ws.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,ws.isNaN)(n[0].degree))){var y=(0,ws.getDegree)(p.length,g,a);p.forEach(function(I,k){I.degree=y[k].all})}p.sort(function(I,k){return k[s]-I[s]}),!u&&typeof window<"u"&&(u=window.innerWidth),!f&&typeof window<"u"&&(f=window.innerHeight);var m=t.rows,b=t.cols!=null?t.cols:t.columns;if(t.cells=o,m!=null&&b!=null?(t.rows=m,t.cols=b):m!=null&&b==null?(t.rows=m,t.cols=Math.ceil(t.cells/t.rows)):m==null&&b!=null?(t.cols=b,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells){var w=t.small(),x=t.large();(w-1)*x>=t.cells?t.small(w-1):(x-1)*w>=t.cells&&t.large(x-1)}else for(;t.cols*t.rows=t.cells?t.large(x+1):t.small(w+1)}if(t.cellWidth=u/t.cols,t.cellHeight=f/t.rows,l&&(t.cellWidth=0,t.cellHeight=0),h||d){var E=(0,ws.getFuncByUnknownType)(10,d),_=(0,ws.getFuncByUnknownType)(30,v,!1);p.forEach(function(I){(!I.x||!I.y)&&(I.x=0,I.y=0);var k=_(I)||30,O,B;(0,ws.isArray)(k)?(O=k[0],B=k[1]):(O=k,B=k);var L=E!==void 0?E(I):c,z=O+L,X=B+L;t.cellWidth=Math.max(t.cellWidth,z),t.cellHeight=Math.max(t.cellHeight,X)})}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S=n&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var n=this,a=n.begin,i=n.cellWidth,o=n.cellHeight,s,u,f=n.id2manPos[t.id];if(f)s=f.col*i+i/2+a[0],u=f.row*o+o/2+a[1];else{for(;n.used(n.row,n.col);)n.moveToNextCell();s=n.col*i+i/2+a[0],u=n.row*o+o/2+a[1],n.use(n.row,n.col),n.moveToNextCell()}t.x=s,t.y=u},e.prototype.getType=function(){return"grid"},e}(b7.Base);tl.GridLayout=w7;var rl={},x7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rl,"__esModule",{value:!0});rl.RandomLayout=void 0;var E7=Rr,_7=function(r){x7(e,r);function e(t){var n=r.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,n=t.nodes,a=.9,i=t.center;return!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),n&&n.forEach(function(o){o.x=(Math.random()-.5)*a*t.width+i[0],o.y=(Math.random()-.5)*a*t.height+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(E7.Base);rl.RandomLayout=_7;var nl={},S7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nl,"__esModule",{value:!0});nl.GForceLayout=void 0;var M7=Rr,yn=Ir(),Ip=function(r,e){var t;return r?(0,yn.isNumber)(r)?t=function(n){return r}:t=r:t=function(n){return e},t},A7=function(r){S7(e,r);function e(t){var n=r.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,n,a=this,i=a.nodes;if(a.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(a.timeInterval),!i||i.length===0){(t=a.onLayoutEnd)===null||t===void 0||t.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var o=a.center;if(i.length===1){i[0].x=o[0],i[0].y=o[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var s={},u={};i.forEach(function(v,p){(0,yn.isNumber)(v.x)||(v.x=Math.random()*a.width),(0,yn.isNumber)(v.y)||(v.y=Math.random()*a.height),s[v.id]=v,u[v.id]=p}),a.nodeMap=s,a.nodeIdxMap=u,a.linkDistance=Ip(a.linkDistance,1),a.nodeStrength=Ip(a.nodeStrength,1),a.edgeStrength=Ip(a.edgeStrength,1);var f=a.nodeSize,l;if(a.preventOverlap){var c=a.nodeSpacing,h;(0,yn.isNumber)(c)?h=function(){return c}:(0,yn.isFunction)(c)?h=c:h=function(){return 0},f?(0,yn.isArray)(f)?l=function(v){return Math.max(f[0],f[1])+h(v)}:l=function(v){return f+h(v)}:l=function(v){return v.size?(0,yn.isArray)(v.size)?Math.max(v.size[0],v.size[1])+h(v):(0,yn.isObject)(v.size)?Math.max(v.size.width,v.size.height)+h(v):v.size+h(v):10+h(v)}}a.nodeSize=l;var d=a.edges;a.degrees=(0,yn.getDegree)(i.length,a.nodeIdxMap,d),a.getMass||(a.getMass=function(v){var p=v.mass||a.degrees[a.nodeIdxMap[v.id]].all||1;return p}),a.run()},e.prototype.run=function(){var t,n=this,a=n.maxIteration,i=n.nodes,o=n.workerEnabled,s=n.minMovement,u=n.animate;if(i)if(o||!u){for(var f=0;f"u")return;var c=0;this.timeInterval=window.setInterval(function(){var h,d;if(i){var v=n.runOneStep(c)||[];n.reachMoveThreshold(i,v,s)&&((h=n.onLayoutEnd)===null||h===void 0||h.call(n),window.clearInterval(n.timeInterval)),c++,c>=a&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(t,n,a){var i=0;return t.forEach(function(o,s){var u=o.x-n[s].x,f=o.y-n[s].y;i+=Math.sqrt(u*u+f*f)}),i/=t.length,i=y)){var m=d.x-g.x,b=d.y-g.y;m===0&&b===0&&(m=Math.random()*.01,b=Math.random()*.01);var w=m*m+b*b,x=Math.sqrt(w),E=(x+.1)*s,_=m/x,S=b/x,A=(c(d)+c(g))*.5*o/(E*E),M=i?i(g):1;if(t[2*v]+=_*A,t[2*v+1]+=S*A,t[2*y]-=_*A,t[2*y+1]-=S*A,u&&(h(d)+h(g))/2>x){var C=l*(c(d)+c(g))*.5/w;t[2*v]+=_*C/p,t[2*v+1]+=S*C/p,t[2*y]-=_*C/M,t[2*y+1]-=S*C/M}}})})},e.prototype.calAttractive=function(t,n){var a=this,i=a.nodeMap,o=a.nodeIdxMap,s=a.linkDistance,u=a.edgeStrength,f=a.nodeSize,l=a.getMass;n.forEach(function(c,h){var d=(0,yn.getEdgeTerminal)(c,"source"),v=(0,yn.getEdgeTerminal)(c,"target"),p=i[d],g=i[v],y=g.x-p.x,m=g.y-p.y;y===0&&m===0&&(y=Math.random()*.01,m=Math.random()*.01);var b=Math.sqrt(y*y+m*m),w=y/b,x=m/b,E=s(c,p,g)||1+(f(p)+f(g)||0)/2,_=E-b,S=_*u(c),A=o[d],M=o[v],C=l?l(p):1,I=l?l(g):1;t[2*A]-=w*S/C,t[2*A+1]-=x*S/C,t[2*M]+=w*S/I,t[2*M+1]+=x*S/I})},e.prototype.calGravity=function(t,n){for(var a=this,i=a.center,o=a.gravity,s=a.degrees,u=n.length,f=0;fo.maxSpeed){var d=o.maxSpeed/h;l=d*l,c=d*c}n[2*f]=l,n[2*f+1]=c})},e.prototype.updatePosition=function(t,n,a){a.forEach(function(i,o){if((0,yn.isNumber)(i.fx)&&(0,yn.isNumber)(i.fy)){i.x=i.fx,i.y=i.fy;return}var s=t[2*o]*n,u=t[2*o+1]*n;i.x+=s,i.y+=u})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(M7.Base);nl.GForceLayout=A7;var al={},Od={};function C7(r){const e=+this._x.call(null,r),t=+this._y.call(null,r);return WT(this.cover(e,t),e,t,r)}function WT(r,e,t,n){if(isNaN(e)||isNaN(t))return r;var a,i=r._root,o={data:n},s=r._x0,u=r._y0,f=r._x1,l=r._y1,c,h,d,v,p,g,y,m;if(!i)return r._root=o,r;for(;i.length;)if((p=e>=(c=(s+f)/2))?s=c:f=c,(g=t>=(h=(u+l)/2))?u=h:l=h,a=i,!(i=i[y=g<<1|p]))return a[y]=o,r;if(d=+r._x.call(null,i.data),v=+r._y.call(null,i.data),e===d&&t===v)return o.next=i,a?a[y]=o:r._root=o,r;do a=a?a[y]=new Array(4):r._root=new Array(4),(p=e>=(c=(s+f)/2))?s=c:f=c,(g=t>=(h=(u+l)/2))?u=h:l=h;while((y=g<<1|p)===(m=(v>=h)<<1|d>=c));return a[m]=i,a[y]=o,r}function T7(r){var e,t,n=r.length,a,i,o=new Array(n),s=new Array(n),u=1/0,f=1/0,l=-1/0,c=-1/0;for(t=0;tl&&(l=a),ic&&(c=i));if(u>l||f>c)return this;for(this.cover(u,f).cover(l,c),t=0;tr||r>=a||n>e||e>=i;)switch(f=(el||(s=v.y0)>c||(u=v.x1)=y)<<1|r>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-p],h[h.length-1-p]=v)}else{var m=r-+this._x.call(null,d.data),b=e-+this._y.call(null,d.data),w=m*m+b*b;if(w=(h=(o+u)/2))?o=h:u=h,(p=c>=(d=(s+f)/2))?s=d:f=d,e=t,!(t=t[g=p<<1|v]))return this;if(!t.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(n=e,y=g)}for(;t.data!==r;)if(a=t,!(t=t.next))return this;return(i=t.next)&&delete t.next,a?(i?a.next=i:delete a.next,this):e?(i?e[g]=i:delete e[g],(t=e[0]||e[1]||e[2]||e[3])&&t===(e[3]||e[2]||e[1]||e[0])&&!t.length&&(n?n[y]=t:this._root=t),this):(this._root=i,this)}function D7(r){for(var e=0,t=r.length;e1&&(S=(0,Hr.getAvgNodePosition)(M))}else S=void 0;return{x:S==null?void 0:S.x,y:S==null?void 0:S.y}}}}if(a){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(b,w){return b[i]}))).filter(function(b){return b!==void 0}),v={};d.forEach(function(b){var w=o.filter(function(x){return x[i]===b}).map(function(x){return s[x.id]});v[b]=(0,Hr.getAvgNodePosition)(w)}),l={single:function(b){return f(b)},leaf:function(b){return f(b)},others:function(b){return f(b)},center:function(b,w,x){var E=v[b[i]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}this.centripetalOptions=da(da({},this.centripetalOptions),l);var p=this.centripetalOptions,g=p.leaf,y=p.single,m=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),y&&typeof y!="function"&&(this.centripetalOptions.single=function(){return y}),m&&typeof m!="function"&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var n=t.nodes,a=t.edges,i=t.defSpringLen;if(t.judgingDistance=0,!n||n.length===0){t.onLayoutEnd([]);return}!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var o=t.center;if(n.length===1){n[0].x=o[0],n[0].y=o[1],t.onLayoutEnd([da({},n[0])]);return}t.degreesMap=(0,Hr.getDegreeMap)(n,a),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(d){var v=1;(0,Hr.isNumber)(d.mass)&&(v=d.mass);var p=t.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=t.nodeSize,u;if(t.preventOverlap){var f=t.nodeSpacing,l;(0,Hr.isNumber)(f)?l=function(){return f}:(0,Hr.isFunction)(f)?l=f:l=function(){return 0},s?(0,Hr.isArray)(s)?u=function(d){return Math.max(s[0],s[1])+l(d)}:u=function(d){return s+l(d)}:u=function(d){return d.size?(0,Hr.isArray)(d.size)?Math.max(d.size[0],d.size[1])+l(d):(0,Hr.isObject)(d.size)?Math.max(d.size.width,d.size.height)+l(d):d.size+l(d):10+l(d)}}t.nodeSize=u,t.linkDistance=kp(t.linkDistance,1),t.nodeStrength=kp(t.nodeStrength,1),t.edgeStrength=kp(t.edgeStrength,1);var c={},h={};n.forEach(function(d,v){(0,Hr.isNumber)(d.x)||(d.x=Math.random()*t.width),(0,Hr.isNumber)(d.y)||(d.y=Math.random()*t.height);var p=t.degreesMap[d.id];c[d.id]=da(da({},d),{data:da(da({},d.data),{size:t.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:t.getMass(d),nodeStrength:t.nodeStrength(d,a)}}})}),h[d.id]=v}),t.nodeMap=c,t.nodeIdxMap=h,t.edgeInfos=[],a==null||a.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):t.edgeInfos.push({edgeStrength:t.edgeStrength(d),linkDistance:i?i(da(da({},d),{source:v,target:p}),v,p):t.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()},e.prototype.run=function(){var t=this,n=t.maxIteration,a=t.nodes,i=t.edges,o=t.workerEnabled,s=t.minMovement,u=t.animate,f=t.nodeMap,l=t.height;if(t.currentMinY=0,t.currentMaxY=l,!!a){var c=[];if(a.forEach(function(y,m){c[2*m]=0,c[2*m+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var h={};i.forEach(function(y){var m=y.source,b=y.target;h[m]=h[m]||[],h[m].push(y),h[b]=h[b]||[],h[b].push(y)}),this.relatedEdges=h}var d=n,v=!u;if(o||v){for(var p=0;(t.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){a&&(t.runOneStep(g,c),g++,(g>=d||t.judgingDistanceu){var v=u/d;c=v*c,h=v*h}n[2*l]=c,n[2*l+1]=h})},e.prototype.updatePosition=function(t,n){var a=this,i=a.nodes,o=a.distanceThresholdMode,s=a.nodeMap;if(!(i!=null&&i.length)){this.judgingDistance=0;return}var u=0;o==="max"?a.judgingDistance=-1/0:o==="min"&&(a.judgingDistance=1/0);var f=1/0,l=-1/0;i.forEach(function(c,h){var d=s[c.id];if((0,Hr.isNumber)(c.fx)&&(0,Hr.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=t[2*h]*n,p=t[2*h+1]*n;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yl&&(l=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":a.judgingDistanceg&&(a.judgingDistance=g);break;default:u=u+g;break}}),this.currentMinY=f,this.currentMaxY=l,(!o||o==="mean")&&(a.judgingDistance=u/i.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,n=t.nodeClusterBy,a=t.nodes,i=t.edges,o=t.nodeMap,s=t.degreesMap;if(a!=null&&a.length){var u={};return a.forEach(function(f,l){var c=s[f.id].all;c===1&&(u[f.id]=(0,Hr.getCoreNodeAndRelativeLeafNodes)("leaf",f,i,n,s,o))}),u}},e}(Q7.Base);al.Force2Layout=eW;var Vy={},Dd={};function tW(r,e){var t,n=1;r==null&&(r=0),e==null&&(e=0);function a(){var i,o=t.length,s,u=0,f=0;for(i=0;ih.index){var C=d-S.x-S.vx,I=v-S.y-S.vy,k=C*C+I*I;kd+M||Ev+M||_f.r&&(f.r=f[l].r)}function u(){if(e){var f,l=e.length,c;for(t=new Array(l),f=0;f[e(x,E,o),x])),w;for(g=0,s=new Array(y);g{}};function VT(){for(var r=0,e=arguments.length,t={},n;r=0&&(n=t.slice(a+1),t=t.slice(0,a)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ih.prototype=VT.prototype={constructor:ih,on:function(r,e){var t=this._,n=uW(r+"",t),a,i=-1,o=n.length;if(arguments.length<2){for(;++i0)for(var t=new Array(a),n=0,a,i;n(r=(lW*r+cW)%wE)/wE}function dW(r){return r.x}function vW(r){return r.y}var pW=10,gW=Math.PI*(3-Math.sqrt(5));function yW(r){var e,t=1,n=.001,a=1-Math.pow(n,1/300),i=0,o=.6,s=new Map,u=_y(c),f=VT("tick","end"),l=hW();r==null&&(r=[]);function c(){h(),f.call("tick",e),t1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,y){var m=0,b=r.length,w,x,E,_,S;for(y==null?y=1/0:y*=y,m=0;m1?(f.on(p,g),e):f.on(p)}}}function mW(){var r,e,t,n,a=Qr(-30),i,o=1,s=1/0,u=.81;function f(d){var v,p=r.length,g=Ld(r,dW,vW).visitAfter(c);for(n=d,v=0;v=s)return;(d.data!==e||d.next)&&(y===0&&(y=$i(t),w+=y*y),m===0&&(m=$i(t),w+=m*m),w-1||(o[u]=i[u])}),o}),n.ticking=!1},e.prototype.execute=function(t){var n=this,a=n.nodes,i=n.edges;if(!n.ticking){var o=n.forceSimulation,s=n.alphaMin,u=n.alphaDecay,f=n.alpha;if(o){if(t){if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(a),n.clusterForce.links(i)),o.nodes(a),i&&n.edgeForce)n.edgeForce.links(i);else if(i&&!n.edgeForce){var h=Es.forceLink().id(function(g){return g.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}}n.preventOverlap&&n.overlapProcess(o),o.alpha(f).restart(),this.ticking=!0}else try{var l=Es.forceManyBody();if(n.nodeStrength&&l.strength(n.nodeStrength),o=Es.forceSimulation().nodes(a),n.clustering){var c=(0,OW.default)();c.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),i&&c.links(i),a&&c.nodes(a),c.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=c,o.force("group",c)}if(o.force("center",Es.forceCenter(n.center[0],n.center[1])).force("charge",l).alpha(f).alphaDecay(u).alphaMin(s),n.preventOverlap&&n.overlapProcess(o),i){var h=Es.forceLink().id(function(p){return p.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!FW()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!n.workerEnabled)o.on("tick",function(){n.tick()}).on("end",function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()}),n.ticking=!0;else{o.stop();for(var d=RW(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:a,currentTick:v,totalTicks:d,type:DW.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}n.forceSimulation=o,n.ticking=!0}catch(p){n.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(t){var n=this,a=n.nodeSize,i=n.nodeSpacing,o,s,u=n.collideStrength;if((0,Ao.isNumber)(i)?s=function(){return i}:(0,Ao.isFunction)(i)?s=i:s=function(){return 0},!a)o=function(h){if(h.size){if((0,Ao.isArray)(h.size)){var d=h.size[0]>h.size[1]?h.size[0]:h.size[1];return d/2+s(h)}if((0,Ao.isObject)(h.size)){var d=h.size.width>h.size.height?h.size.width:h.size.height;return d/2+s(h)}return h.size/2+s(h)}return 10+s(h)};else if((0,Ao.isFunction)(a))o=function(h){var d=a(h);return d+s(h)};else if((0,Ao.isArray)(a)){var f=a[0]>a[1]?a[0]:a[1],l=f/2;o=function(h){return l+s(h)}}else if((0,Ao.isNumber)(a)){var c=a/2;o=function(h){return c+s(h)}}else o=function(){return 10};t.force("collisionForce",Es.forceCollide(o).strength(u))},e.prototype.updateCfg=function(t){var n=this;n.ticking&&(n.forceSimulation.stop(),n.ticking=!1),n.forceSimulation=null,Object.assign(n,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(LW.Base);Dd.ForceLayout=PW;function RW(r){var e=r.alphaMin(),t=r.alphaTarget(),n=r.alpha(),a=Math.log((e-t)/(n-t))/Math.log(1-r.alphaDecay()),i=Math.ceil(a);return i}function FW(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(Dd,r)})(Vy);var il={},BW=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(il,"__esModule",{value:!0});il.CircularLayout=void 0;var GW=Rr,$a=Ir();function zW(r,e,t,n){r.forEach(function(a,i){r[i].children=[],r[i].parent=[]}),n?e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=t[i]);var u=0;o&&(u=t[o]);var f=r[s].children,l=r[u].parent;f.push(r[u].id),l.push(r[s].id)}):e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=t[i]);var u=0;o&&(u=t[o]);var f=r[s].children,l=r[u].children;f.push(r[u].id),l.push(r[s].id)})}function jW(r,e,t){for(var n=t.length,a=0;an?1:0}var $W=function(r){BW(e,r);function e(t){var n=r.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,n=this,a=n.nodes,i=n.edges,o=a.length;if(o===0){n.onLayoutEnd&&n.onLayoutEnd();return}!n.width&&typeof window<"u"&&(n.width=window.innerWidth),!n.height&&typeof window<"u"&&(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(o===1){a[0].x=s[0],a[0].y=s[1],n.onLayoutEnd&&n.onLayoutEnd();return}var u=n.radius,f=n.startRadius,l=n.endRadius,c=n.divisions,h=n.startAngle,d=n.endAngle,v=n.angleRatio,p=n.ordering,g=n.clockwise,y=n.nodeSpacing,m=n.nodeSize,b=(d-h)/o,w={};a.forEach(function(L,z){w[L.id]=z}),n.nodeMap=w;var x=(0,$a.getDegree)(a.length,w,i);if(n.degrees=x,y){var E=(0,$a.getFuncByUnknownType)(10,y),_=(0,$a.getFuncByUnknownType)(10,m),S=-1/0;a.forEach(function(L){var z=_(L);Sn.width?n.width/2:n.height/2:!f&&l?f=l:f&&!l&&(l=f);var M=b*v,C=[];p==="topology"?C=n.topologyOrdering():p==="topology-directed"?C=n.topologyOrdering(!0):p==="degree"?C=n.degreeOrdering():C=a;for(var I=Math.ceil(o/c),k=0;k0?r.set(e,t):r.delete(e))}function YT(r,e,t,n){var a=String(e),i=String(t);if(!r&&a>i){var o=a;a=i,i=o}return a+$s.EDGE_KEY_DELIM+i+$s.EDGE_KEY_DELIM+(n===void 0?$s.DEFAULT_EDGE_NAME:n)}function SE(r,e,t,n){var a=String(e),i=String(t),o={v:e,w:t};if(!r&&a>i){var s=o.v;o.v=o.w,o.w=s}return n!==void 0&&(o.name=n),o}function Np(r,e){return YT(r,e.v,e.w,e.name)}function ME(r){return typeof r=="function"}var VW=function(e){return e.nodes().map(function(t){var n=e.node(t),a=e.parent(t),i={id:t,value:n,parent:a};return i.value===void 0&&delete i.value,i.parent===void 0&&delete i.parent,i})},YW=function(e){return e.edges().map(function(t){var n=e.edge(t),a={v:t.v,w:t.w,value:n,name:t.name};return a.name===void 0&&delete a.name,a.value===void 0&&delete a.value,a})},qW=function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:VW(e),edges:YW(e),value:e.graph()};return t.value===void 0&&delete t.value,t},HW=function(e){var t=new Ko(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(function(n){t.setNode(n.id,n.value),n.parent&&t.setParent(n.id,n.parent)}),e.edges.forEach(function(n){t.setEdge(n.v,n.w,n.value,n.name)}),t};function AE(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function CE(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};KW(this,r),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=$s.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(a){return e.label=a,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(a){return ME(a)?e.defaultNodeLabelFn=a:e.defaultNodeLabelFn=function(){return a},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(a){return e.nodesLabelMap.get(a)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.inEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.sinks=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.outEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.setNodes=function(a,i){return a.map(function(o){return e.setNode(o,i)}),e},this.hasNode=function(a){return e.nodesLabelMap.has(a)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(a){if(e.isCompound()){var i,o=(i=e.parentMap)===null||i===void 0?void 0:i.get(a);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(a){var i=e.parentMap.get(a);e.childrenMap.get(i).delete(a)},this.setParent=function(a,i){var o,s;e.checkCompound();for(var u=i===void 0?e.GRAPH_NODE:i,f=e.parent(u);f;){if(a===f)throw new Error("Setting "+i+" as parent of "+a+" would create a cycle");f=e.parent(f)}i&&e.setNode(i),e.setNode(a),e.removeFromParentsChildList(a),(o=e.parentMap)===null||o===void 0||o.set(a,u);var l=e.childrenMap.get(u);return l.set(a,!0),(s=e.childrenMap)===null||s===void 0||s.set(u,l),e},this.children=function(a){var i=a===void 0?e.GRAPH_NODE:a;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(i);return s?Array.from(s.keys()):void 0}if(i===e.GRAPH_NODE)return e.nodes();if(a&&e.hasNode(a))return[]},this.predecessors=function(a){var i=e.predecessorsMap.get(a);return i?Array.from(i.keys()):void 0},this.successors=function(a){var i=e.successorsMap.get(a);return i?Array.from(i.keys()):void 0},this.neighbors=function(a){var i;if(e.hasNode(a))return Array.from(new Set((i=e.predecessors(a))===null||i===void 0?void 0:i.concat(e.successors(a))))},this.isLeaf=function(a){var i;if(e.isDirected()){var o;return!(!((o=e.successors(a))===null||o===void 0)&&o.length)}return!(!((i=e.neighbors(a))===null||i===void 0)&&i.length)},this.filterNodes=function(a){var i=e.directed,o=e.multigraph,s=e.compound,u=new r({directed:i,multigraph:o,compound:s});if(u.setGraph(e.graph()),e.nodes().forEach(function(l){a(l)&&u.setNode(l,e.node(l))}),e.edges().forEach(function(l){u.hasNode(l.v)&&u.hasNode(l.w)&&u.setEdgeObj(l,e.edge(l))}),s){var f=function(c){for(var h=e.parent(c);h!==void 0&&!u.hasNode(h);)h=e.parent(h);return h};u.nodes().forEach(function(l){u.setParent(l,f(l))})}return u},this.setDefaultEdgeLabel=function(a){return ME(a)?e.defaultEdgeLabelFn=a:e.defaultEdgeLabelFn=function(){return a},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(a,i){return e.setEdge(a.v,a.w,i,a.name)},this.setPath=function(a,i){return a.reduce(function(o,s){return e.setEdge(o,s,i),s}),e},this.edgeFromArgs=function(a,i,o){return e.edge({v:a,w:i,name:o})},this.edge=function(a){return e.edgesLabelsMap.get(Np(e.isDirected(),a))},this.hasEdge=function(a,i,o){return e.edgesLabelsMap.has(Np(e.isDirected(),{v:a,w:i,name:o}))},this.removeEdgeObj=function(a){var i=a.v,o=a.w,s=a.name;return e.removeEdge(i,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(a,i){var o=e.inEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.v===i})},this.outEdges=function(a,i){var o=e.outEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.w===i})},this.nodeEdges=function(a,i){var o;if(e.hasNode(a))return(o=e.inEdges(a,i))===null||o===void 0?void 0:o.concat(e.outEdges(a,i))},this.toJSON=function(){return qW(e)},this.nodeInDegree=function(a){var i=e.inEdgesMap.get(a);return i?i.size:0},this.nodeOutDegree=function(a){var i=e.outEdgesMap.get(a);return i?i.size:0},this.nodeDegree=function(a){return e.nodeInDegree(a)+e.nodeOutDegree(a)},this.source=function(a){return a.v},this.target=function(a){return a.w};var n=CE(CE({},eV),t);this.compound=n.compound,this.directed=n.directed,this.multigraph=n.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return JW(r,[{key:"setNode",value:function(t,n){var a=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,u=this.childrenMap,f=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(a.has(t))return n!==void 0&&a.set(t,n),this;if(a.set(t,n||i(t)),o()){var d;s==null||s.set(t,this.GRAPH_NODE),u==null||u.set(t,new Map),u!=null&&u.has(this.GRAPH_NODE)||u==null||u.set(this.GRAPH_NODE,new Map),u==null||(d=u.get(this.GRAPH_NODE))===null||d===void 0||d.set(t,!0)}return[f,l,c,h].forEach(function(v){return v.set(t,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(t){var n=this;if(this.hasNode(t)){var a=function(g){n.removeEdge(g.v,g.w,g.name)},i=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,u=this.successorsMap,f=this.nodesLabelMap;if(this.isCompound()){var l,c,h;this.removeFromParentsChildList(t),(l=this.parentMap)===null||l===void 0||l.delete(t),(c=this.children(t))===null||c===void 0||c.forEach(function(p){return n.setParent(p)}),(h=this.childrenMap)===null||h===void 0||h.delete(t)}var d=i.get(t),v=o.get(t);Array.from(d.values()).forEach(function(p){return a(p)}),Array.from(v.values()).forEach(function(p){return a(p)}),f.delete(t),i.delete(t),o.delete(t),s.delete(t),u.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,n,a,i){var o,s,u=SE(this.isDirected(),t,n,i),f=Np(this.isDirected(),u),l=u.v,c=u.w;if(this.edgesLabelsMap.has(f))return this.edgesLabelsMap.set(f,a),this;if(i!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(f,a||this.defaultEdgeLabelFn(l,c,i)),Object.freeze(u),this.edgesMap.set(f,u);var h=this.predecessorsMap.get(c),d=this.successorsMap.get(l);return EE(h,l),EE(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(f,u),(s=this.outEdgesMap.get(l))===null||s===void 0||s.set(f,u),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,n,a){var i=YT(this.isDirected(),t,n,a),o=this.edgesMap.get(i);if(o){var s=SE(this.isDirected(),t,n,a),u=s.v,f=s.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var l=this.predecessorsMap.get(f),c=this.successorsMap.get(u);_E(l,u),_E(c,f),this.inEdgesMap.get(f).delete(i),this.outEdgesMap.get(u).delete(i),this.edgeCountNum-=1}return this}}]),r}();Ko.fromJSON=HW;function sg(r){"@babel/helpers - typeof";return sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sg(r)}function tV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function rV(r,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function di(r){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},di(r)}var lV=function(r){iV(t,r);var e=oV(t);function t(){var n;tV(this,t);for(var a=arguments.length,i=new Array(a),o=0;o-1&&this.eventPool[a].splice(o,1)}}},{key:"emitEvent",value:function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s>1,((s=n[i])===null||s===void 0?void 0:s.priority)e.arr[a].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[a].priority," New: ").concat(n));e.arr[a].priority=n,e.innerDecrease(a)}}),dV=function(e,t){var n=new Ko,a=new Map,i=new qT,o;function s(l){var c=l.v===o?l.w:l.v,h=i.priority(c);if(h!==void 0){var d=t(l);d0;){var f;if(o=i.removeMin(),a.has(o))n.setEdge(o,a.get(o));else{if(u)throw new Error("Input graph is not connected: "+e.graph());u=!0}(f=e.nodeEdges(o))===null||f===void 0||f.forEach(s)}return n},vV=function(e){var t=new Set,n=[],a=e.nodes();return a.forEach(function(i){for(var o=[],s=[i];s.length>0;){var u=s.pop();if(!t.has(u)){var f,l;t.add(u),o.push(u),(f=e.successors(u))===null||f===void 0||f.forEach(function(c){return s.push(c)}),(l=e.predecessors(u))===null||l===void 0||l.forEach(function(c){return s.push(c)})}}o.length&&n.push(o)}),n},pV=function r(e,t,n,a,i,o){a.includes(t)||(a.push(t),n||o.push(t),i(t).forEach(function(s){return r(e,s,n,a,i,o)}),n&&o.push(t))},em=function(e,t,n){var a=Array.isArray(t)?t:[t],i=function(f){return e.isDirected()?e.successors(f):e.neighbors(f)},o=[],s=[];return a.forEach(function(u){if(e.hasNode(u))pV(e,u,n==="post",s,i,o);else throw new Error("Graph does not have node: "+u)}),o};function gV(r,e){return wV(r)||bV(r,e)||mV(r,e)||yV()}function yV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mV(r,e){if(r){if(typeof r=="string")return TE(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return TE(r,e)}}function TE(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t0&&(s=o.removeMin(),u=i.get(s),!(u&&u.distance===Number.POSITIVE_INFINITY));)a(s).forEach(f);var l={};return Array.from(i.entries()).forEach(function(c){var h=gV(c,2),d=h[0],v=h[1];return l[String(d)]=v,l}),l},_V=function(e,t,n){var a={};return e.nodes().forEach(function(i){return a[String(i)]=HT(e,i,t,n),a}),a},ZT=function(e){var t=0,n=[],a=new Map,i=[];function o(s){var u,f={onStack:!0,lowlink:t,index:t};if(a.set(s,f),t+=1,n.push(s),(u=e.successors(s))===null||u===void 0||u.forEach(function(d){var v;if(a.has(d)){if(!((v=a.get(d))===null||v===void 0)&&v.onStack){var g=a.get(d);f.lowlink=Math.min(f.lowlink,g.index)}}else{o(d);var p=a.get(d);f.lowlink=Math.min(f.lowlink,p.lowlink)}}),f.lowlink===f.index){var l=[],c;do{c=n.pop();var h=a.get(c);h.onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return e.nodes().forEach(function(s){a.has(s)||o(s)}),i},SV=function(e){return ZT(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})};function fg(r){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fg(r)}function MV(r,e,t){return Object.defineProperty(r,"prototype",{writable:!1}),r}function AV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function CV(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Gf(r,e)}function TV(r){var e=KT();return function(){var n=zf(r),a;if(e){var i=zf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return IV(this,a)}}function IV(r,e){if(e&&(fg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kV(r)}function kV(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function lg(r){var e=typeof Map=="function"?new Map:void 0;return lg=function(n){if(n===null||!NV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return oh(n,arguments,zf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Gf(a,n)},lg(r)}function oh(r,e,t){return KT()?oh=Reflect.construct:oh=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),f=new u;return o&&Gf(f,o.prototype),f},oh.apply(null,arguments)}function KT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function NV(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Gf(r,e){return Gf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Gf(r,e)}function zf(r){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zf(r)}var cg=function(r){CV(t,r);var e=TV(t);function t(){return AV(this,t),e.apply(this,arguments)}return MV(t)}(lg(Error));function QT(r){var e=new Set,t=new Set,n=[];function a(i){if(t.has(i))throw new cg;if(!e.has(i)){var o;t.add(i),e.add(i),(o=r.predecessors(i))===null||o===void 0||o.forEach(a),t.delete(i),n.push(i)}}if(r.sinks().forEach(a),e.size!==r.nodeCount())throw new cg;return n}var OV=function(e){try{QT(e)}catch(t){if(t instanceof cg)return!1;throw t}return!0},LV=function(e,t){return em(e,t,"post")},DV=function(e,t){return em(e,t,"pre")},PV=function(){return 1};function RV(r,e,t){return FV(r,e||PV,t||function(n){return r.outEdges(n)})}function FV(r,e,t){var n={},a=r.nodes();return a.forEach(function(i){var o=String(i);n[o]={},n[o][o]={distance:0},a.forEach(function(s){i!==s&&(n[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),t(i).forEach(function(s){var u=s.v===i?s.w:s.v,f=e(s);n[o][String(u)]={distance:f,predecessor:i}})}),a.forEach(function(i){var o=String(i),s=n[o];a.forEach(function(u){var f=String(u),l=n[f];a.forEach(function(c){var h=String(c),d=l[o],v=s[h],p=l[h],g=d.distance+v.distance;gr.length)&&(e=r.length);for(var t=0,n=new Array(e);t0;--s)if(o=e[s].dequeue(),o){n=n.concat(Op(r,e,t,o,!0));break}}}return n},Op=function(r,e,t,n,a){var i,o,s=[];return(i=r.inEdges(n.v))===null||i===void 0||i.forEach(function(u){var f=r.edge(u),l=r.node(u.v);a&&s.push({v:u.v,w:u.w,in:0,out:0}),l.out===void 0&&(l.out=0),l.out-=f,hg(e,t,l)}),(o=r.outEdges(n.v))===null||o===void 0||o.forEach(function(u){var f=r.edge(u),l=u.w,c=r.node(l);c.in===void 0&&(c.in=0),c.in-=f,hg(e,t,c)}),r.removeNode(n.v),a?s:void 0},lY=function(r,e){var t=new oY,n=0,a=0;r.nodes().forEach(function(f){t.setNode(f,{v:f,in:0,out:0})}),r.edges().forEach(function(f){var l=t.edge(f)||0,c=(e==null?void 0:e(f))||1,h=l+c;t.setEdge(f.v,f.w,h),a=Math.max(a,t.node(f.v).out+=c),n=Math.max(n,t.node(f.w).in+=c)});for(var i=[],o=a+n+3,s=0;sMath.abs(S)*C?(A<0&&(C=-C),I=C*S/A,k=C):(S<0&&(M=-M),I=M,k=M*A/S),{x:E+I,y:_+k}};r.intersectRect=l;var c=function(w){for(var x=[],E=(0,r.maxRank)(w)+1,_=0;_x)&&(x=S)}),x||(x=0),x};r.maxRank=p;var g=function(w,x){var E={lhs:[],rhs:[]};return w==null||w.forEach(function(_){x(_)?E.lhs.push(_):E.rhs.push(_)}),E};r.partition=g;var y=function(w,x){var E=Date.now();try{return x()}finally{console.log("".concat(w," time: ").concat(Date.now()-E,"ms"))}};r.time=y;var m=function(w,x){return x()};r.notime=m;var b=function(w,x){return w.reduce(function(E,_){var S=x(E),A=x(_);return S>A?_:E})};r.minBy=b})(Vn);Object.defineProperty(rm,"__esModule",{value:!0});var bY=Vn,wY=function(r){r.graph().dummyChains=[],r.edges().forEach(function(e){return xY(r,e)})},xY=function(r,e){var t=e.v,n=r.node(t).rank,a=e.w,i=r.node(a).rank,o=e.name,s=r.edge(e),u=s.labelRank;if(i!==n+1){r.removeEdgeObj(e);var f=r.graph(),l,c,h;for(h=0,++n;nA.lim&&(M=A,C=!0);var I=w.edges().filter(function(k){return C===m(b,b.node(k.v),M)&&C!==m(b,b.node(k.w),M)});return(0,n.minBy)(I,function(k){return(0,t.slack)(w,k)})};r.enterEdge=v;var p=function(b,w,x,E){var _=x.v,S=x.w;b.removeEdge(_,S),b.setEdge(E.v,E.w,{}),(0,r.initLowLimValues)(b),(0,r.initCutValues)(b,w),g(b,w)};r.exchangeEdges=p;var g=function(b,w){var x=b.nodes().find(function(_){var S;return!(!((S=w.node(_))===null||S===void 0)&&S.parent)}),E=i(b,x);E=E==null?void 0:E.slice(1),E==null||E.forEach(function(_){var S=b.node(_).parent,A=w.edgeFromArgs(_,S),M=!1;A||(A=w.edgeFromArgs(S,_),M=!0),w.node(_).rank=w.node(S).rank+(M?A.minlen:-A.minlen)})},y=function(b,w,x){return b.hasEdge(w,x)},m=function(b,w,x){return x.low<=w.lim&&w.lim<=x.lim};r.default=s})(hI);var AY=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nm,"__esModule",{value:!0});var dI=ba,CY=Ki,TY=AY(hI),IY=function(r){switch(r.graph().ranker){case"network-simplex":NY(r);break;case"tight-tree":kE(r);break;case"longest-path":kY(r);break;default:kE(r)}},kY=dI.longestPath,kE=function(r){(0,dI.longestPathWithLayer)(r),(0,CY.feasibleTreeWithLayer)(r)},NY=function(r){(0,TY.default)(r)};nm.default=IY;var am={};Object.defineProperty(am,"__esModule",{value:!0});var OY=function(r){var e,t={},n=0,a=function(i){var o,s=n;(o=r.children(i))===null||o===void 0||o.forEach(a),t[i]={low:s,lim:n++}};return(e=r.children())===null||e===void 0||e.forEach(a),t},LY=function(r,e,t,n){var a=[],i=[],o=Math.min(e[t].low,e[n].low),s=Math.max(e[t].lim,e[n].lim),u,f;u=t;do u=r.parent(u),a.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=n;u&&u!==f;)i.push(u),u=r.parent(u);return{lca:f,path:a.concat(i.reverse())}},DY=function(r){var e,t=OY(r);(e=r.graph().dummyChains)===null||e===void 0||e.forEach(function(n){var a,i,o=n,s=r.node(o),u=s.edgeObj;if(u)for(var f=LY(r,t,u.v,u.w),l=f.path,c=f.lca,h=0,d=l[h],v=!0;o!==u.w;){if(s=r.node(o),v){for(;d!==c&&((a=r.node(d))===null||a===void 0?void 0:a.maxRank)-1:!1},mI=function(r,e){if(!Ln(r))return r;for(var t=[],n=0;n-1;)QY.call(r,i,1);return r},tq=Array.prototype.splice,MI=function(e,t){if(!Ln(e))return[];for(var n=e?t.length:0,a=n-1;n--;){var i=void 0,o=t[n];(n===a||o!==i)&&(i=o,tq.call(e,o,1))}return e},AI=function(r,e,t){if(!Vr(r)&&!au(r))return r;var n=t;return nu(r,function(a,i){n=e(n,a,i)}),n},rq=function(r,e){var t=[];if(!Ln(r))return t;for(var n=-1,a=[],i=r.length;++ni[s])return 1;if(a[s]t?t:r},bq=function(r,e){var t=e.toString(),n=t.indexOf(".");if(n===-1)return Math.round(r);var a=t.substr(n+1).length;return a>20&&(a=20),parseFloat(r.toFixed(a))};function xi(r){return typeof r=="number"}function wq(r){return xi(r)&&r%1!==0}function xq(r){return xi(r)&&r%2===0}function Eq(r){return xi(r)&&r%1===0}function _q(r){return xi(r)&&r<0}var Sq=1e-5;function Mq(r,e,t){return t===void 0&&(t=Sq),r===e||Math.abs(r-e)0};const Tq=function(r,e){if(Vr(r)){for(var t,n=-1/0,a=0;an&&(t=i,n=o)}return t}},Iq=function(r,e){if(Vr(r)){for(var t,n=1/0,a=0;aa&&(n=t,o(1),++e),t[s]=u}function o(s){e=0,t=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return t[s]!==void 0||n[s]!==void 0},get:function(s){var u=t[s];if(u!==void 0)return u;if((u=n[s])!==void 0)return i(s,u),u},set:function(s,u){t[s]!==void 0?t[s]=u:i(s,u)}}}var Fp=new Map;function LI(r,e,t){t===void 0&&(t=128);var n=function(){for(var a=[],i=0;ie?(n&&(clearTimeout(n),n=null),s=l,o=r.apply(a,i),n||(a=i=null)):!n&&t.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},xH=function(r){return Ln(r)?Array.prototype.slice.call(r):[]};var Cc={};const EH=function(r){return r=r||"g",Cc[r]?Cc[r]+=1:Cc[r]=1,r+Cc[r]},_H=function(){},SH=function(r){return r};function MH(r){return no(r)?0:Ln(r)?r.length:Object.keys(r).length}var AH=function(){function r(){this.map={}}return r.prototype.has=function(e){return this.map[e]!==void 0},r.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},r.prototype.set=function(e,t){this.map[e]=t},r.prototype.clear=function(){this.map={}},r.prototype.delete=function(e){delete this.map[e]},r.prototype.size=function(){return Object.keys(this.map).length},r}(),CH=/rgba?\(([\s.,0-9]+)\)/;function TH(){var r=document.getElementById("antv-web-colour-picker");return r||(r=document.createElement("i"),r.id="antv-web-colour-picker",r.title="Web Colour Picker",r.style.display="none",document.body.appendChild(r),r)}function IH(r){if(r[0]==="#"&&r.length===7)return r;var e=TH();e.style.color=r;var t=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),n=CH.exec(t),a=n[1].split(/\s*,\s*/).map(function(i){return Number(i)});return t=yI(a),t}var PI=LI(IH,function(r){return r},256);function Bp(r,e,t,n){return r[n]+(e[n]-r[n])*t}function kH(r,e){var t=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=r.length-1,a=Math.floor(n*t),i=n*t-a,o=r[a],s=a===n?o:r[a+1];return yI([Bp(o,s,i,0),Bp(o,s,i,1),Bp(o,s,i,2)])}function NH(r){var e=typeof r=="string"?r.split("-"):r,t=e.map(function(n){return gI(n.indexOf("#")===-1?PI(n):n)});return function(n){return kH(t,n)}}var OH=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,LH=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,DH=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function PH(r){return/^[r,R,L,l]{1}[\s]*\(/.test(r)}function RH(r){if(PH(r)){var e,t=void 0;if(r[0]==="l"){var n=OH.exec(r),a=+n[1]+90;t=n[2],e="linear-gradient(".concat(a,"deg, ")}else if(r[0]==="r"){e="radial-gradient(";var n=LH.exec(r);t=n[4]}var i=t.match(DH);return i.forEach(function(o,s){var u=o.split(":");e+="".concat(u[1]," ").concat(Number(u[0])*100,"%"),s!==i.length-1&&(e+=", ")}),e+=")",e}return r}function FH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Kg(n,t),Qa(r,n,e)}function BH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Qg(n,t),Qa(r,n,e)}function GH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Jg(n,t),Qa(r,n,e)}function zH(r,e,t){return Qa(r,t,e)}function jH(r,e){for(var t=r?[].concat(r):[1,0,0,0,1,0,0,0,1],n=0,a=e.length;n=0;return t?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function $H(r,e,t){return t?(r[0]=e[1],r[1]=-1*e[0]):(r[0]=-1*e[1],r[1]=e[0]),r}function XH(r,e){if(e==="off")return[].concat(r);var t=typeof e=="number"&&e>=1?Math.pow(10,e):1;return r.map(function(n){var a=n.slice(1).map(Number).map(function(i){return e?Math.round(i*t)/t:Math.round(i)});return[n[0]].concat(a)})}function WH(r,e){return e===void 0&&(e="off"),XH(r,e).map(function(t){return t[0]+t.slice(1).join(" ")}).join("")}var FI={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function VH(r,e,t){if(r[t].length>7){r[t].shift();for(var n=r[t],a=t;n.length;)e[t]="A",r.splice(a+=1,0,["C"].concat(n.splice(0,6)));r.splice(t,1)}}var xf={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function BI(r){return Array.isArray(r)&&r.every(function(e){var t=e[0].toLowerCase();return xf[t]===e.length-1&&"achlmqstvz".includes(t)})}function GI(r){return BI(r)&&r.every(function(e){var t=e[0];return t===t.toUpperCase()})}function zI(r){return GI(r)&&r.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}function PE(r){for(var e=r.pathValue[r.segmentStart],t=e.toLowerCase(),n=r.data;n.length>=xf[t]&&(t==="m"&&n.length>2?(r.segments.push([e].concat(n.splice(0,2))),t="l",e=e==="m"?"l":"L"):r.segments.push([e].concat(n.splice(0,xf[t]))),!!xf[t]););}function YH(r){var e=r.index,t=r.pathValue,n=t.charCodeAt(e);if(n===48){r.param=0,r.index+=1;return}if(n===49){r.param=1,r.index+=1;return}r.err='[path-util]: invalid Arc flag "'.concat(t[e],'", expecting 0 or 1 at index ').concat(e)}function qH(r){return r>=48&&r<=57||r===43||r===45||r===46}function _s(r){return r>=48&&r<=57}function HH(r){var e=r.max,t=r.pathValue,n=r.index,a=n,i=!1,o=!1,s=!1,u=!1,f;if(a>=e){r.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(f=t.charCodeAt(a),(f===43||f===45)&&(a+=1,f=t.charCodeAt(a)),!_s(f)&&f!==46){r.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(t[a],'" is not a number');return}if(f!==46){if(i=f===48,a+=1,f=t.charCodeAt(a),i&&a=5760&&e.includes(r)}function sh(r){for(var e=r.pathValue,t=r.max;r.index0;o-=1){if(QH(a)&&(o===3||o===4)?YH(r):HH(r),r.err.length)return;r.data.push(r.param),sh(r),r.index=r.max||!qH(t.charCodeAt(r.index)))break}PE(r)}var eZ=function(){function r(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return r}();function Bd(r){if(BI(r))return[].concat(r);var e=new eZ(r);for(sh(e);e.index1&&(M=Math.sqrt(M),h*=M,d*=M);var C=h*h,I=d*d,k=(i===o?-1:1)*Math.sqrt(Math.abs((C*I-C*A*A-I*S*S)/(C*A*A+I*S*S)));E=k*h*A/d+(l+v)/2,_=k*-d*S/h+(c+p)/2,w=Math.asin(((c-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=Math.asin(((p-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),w=lx&&(w-=Math.PI*2),!o&&x>w&&(x-=Math.PI*2)}var O=x-w;if(Math.abs(O)>g){var B=x,L=v,z=p;x=w+g*(o&&x>w?1:-1),v=E+h*Math.cos(x),p=_+d*Math.sin(x),m=lm(v,p,h,d,a,0,o,L,z,[x,B,E,_])}O=x-w;var X=Math.cos(w),R=Math.sin(w),V=Math.cos(x),he=Math.sin(x),ce=Math.tan(O/4),le=4/3*h*ce,ie=4/3*d*ce,Ie=[l,c],qe=[l+le*R,c-ie*X],Ve=[v+le*he,p-ie*V],it=[v,p];if(qe[0]=2*Ie[0]-qe[0],qe[1]=2*Ie[1]-qe[1],f)return qe.concat(Ve,it,m);m=qe.concat(Ve,it,m);for(var dt=[],st=0,Tt=m.length;st=i)o={x:t,y:n};else{var s=zi([r,e],[t,n],a/i),u=s[0],f=s[1];o={x:u,y:f}}return{length:i,point:o,min:{x:Math.min(r,t),y:Math.min(e,n)},max:{x:Math.max(r,t),y:Math.max(e,n)}}}function FE(r,e){var t=r.x,n=r.y,a=e.x,i=e.y,o=t*a+n*i,s=Math.sqrt((Math.pow(t,2)+Math.pow(n,2))*(Math.pow(a,2)+Math.pow(i,2))),u=t*i-n*a<0?-1:1,f=u*Math.acos(o/s);return f}function uZ(r,e,t,n,a,i,o,s,u,f){var l=Math.abs,c=Math.sin,h=Math.cos,d=Math.sqrt,v=Math.PI,p=l(t),g=l(n),y=(a%360+360)%360,m=y*(v/180);if(r===s&&e===u)return{x:r,y:e};if(p===0||g===0)return pg(r,e,s,u,f).point;var b=(r-s)/2,w=(e-u)/2,x={x:h(m)*b+c(m)*w,y:-c(m)*b+h(m)*w},E=Math.pow(x.x,2)/Math.pow(p,2)+Math.pow(x.y,2)/Math.pow(g,2);E>1&&(p*=d(E),g*=d(E));var _=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2),S=Math.pow(p,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2),A=_/S;A=A<0?0:A;var M=(i!==o?1:-1)*d(A),C={x:M*(p*x.y/g),y:M*(-(g*x.x)/p)},I={x:h(m)*C.x-c(m)*C.y+(r+s)/2,y:c(m)*C.x+h(m)*C.y+(e+u)/2},k={x:(x.x-C.x)/p,y:(x.y-C.y)/g},O=FE({x:1,y:0},k),B={x:(-x.x-C.x)/p,y:(-x.y-C.y)/g},L=FE(k,B);!o&&L>0?L-=2*v:o&&L<0&&(L+=2*v),L%=2*v;var z=O+L*f,X=p*h(z),R=g*c(z),V={x:h(m)*X-c(m)*R+I.x,y:c(m)*X+h(m)*R+I.y};return V}function fZ(r,e,t,n,a,i,o,s,u,f,l){var c,h=l.bbox,d=h===void 0?!0:h,v=l.length,p=v===void 0?!0:v,g=l.sampleSize,y=g===void 0?30:g,m=typeof f=="number",b=r,w=e,x=0,E=[b,w,x],_=[b,w],S=0,A={x:0,y:0},M=[{x:b,y:w}];m&&f<=0&&(A={x:b,y:w});for(var C=0;C<=y;C+=1){if(S=C/y,c=uZ(r,e,t,n,a,i,o,s,u,S),b=c.x,w=c.y,d&&M.push({x:b,y:w}),p&&(x+=yu(_,[b,w])),_=[b,w],m&&x>=f&&f>E[2]){var I=(x-f)/(x-E[2]);A={x:_[0]*(1-I)+E[0]*I,y:_[1]*(1-I)+E[1]*I}}E=[b,w,x]}return m&&f>=x&&(A={x:s,y:u}),{length:x,point:A,min:{x:Math.min.apply(null,M.map(function(k){return k.x})),y:Math.min.apply(null,M.map(function(k){return k.y}))},max:{x:Math.max.apply(null,M.map(function(k){return k.x})),y:Math.max.apply(null,M.map(function(k){return k.y}))}}}function lZ(r,e,t,n,a,i,o,s,u){var f=1-u;return{x:Math.pow(f,3)*r+3*Math.pow(f,2)*u*t+3*f*Math.pow(u,2)*a+Math.pow(u,3)*o,y:Math.pow(f,3)*e+3*Math.pow(f,2)*u*n+3*f*Math.pow(u,2)*i+Math.pow(u,3)*s}}function $I(r,e,t,n,a,i,o,s,u,f){var l,c=f.bbox,h=c===void 0?!0:c,d=f.length,v=d===void 0?!0:d,p=f.sampleSize,g=p===void 0?10:p,y=typeof u=="number",m=r,b=e,w=0,x=[m,b,w],E=[m,b],_=0,S={x:0,y:0},A=[{x:m,y:b}];y&&u<=0&&(S={x:m,y:b});for(var M=0;M<=g;M+=1){if(_=M/g,l=lZ(r,e,t,n,a,i,o,s,_),m=l.x,b=l.y,h&&A.push({x:m,y:b}),v&&(w+=yu(E,[m,b])),E=[m,b],y&&w>=u&&u>x[2]){var C=(w-u)/(w-x[2]);S={x:E[0]*(1-C)+x[0]*C,y:E[1]*(1-C)+x[1]*C}}x=[m,b,w]}return y&&u>=w&&(S={x:o,y:s}),{length:w,point:S,min:{x:Math.min.apply(null,A.map(function(I){return I.x})),y:Math.min.apply(null,A.map(function(I){return I.y}))},max:{x:Math.max.apply(null,A.map(function(I){return I.x})),y:Math.max.apply(null,A.map(function(I){return I.y}))}}}function cZ(r,e,t,n,a,i,o){var s=1-o;return{x:Math.pow(s,2)*r+2*s*o*t+Math.pow(o,2)*a,y:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i}}function hZ(r,e,t,n,a,i,o,s){var u,f=s.bbox,l=f===void 0?!0:f,c=s.length,h=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=r,y=e,m=0,b=[g,y,m],w=[g,y],x=0,E={x:0,y:0},_=[{x:g,y}];p&&o<=0&&(E={x:g,y});for(var S=0;S<=v;S+=1){if(x=S/v,u=cZ(r,e,t,n,a,i,x),g=u.x,y=u.y,l&&_.push({x:g,y}),h&&(m+=yu(w,[g,y])),w=[g,y],p&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);E={x:w[0]*(1-A)+b[0]*A,y:w[1]*(1-A)+b[1]*A}}b=[g,y,m]}return p&&o>=m&&(E={x:a,y:i}),{length:m,point:E,min:{x:Math.min.apply(null,_.map(function(M){return M.x})),y:Math.min.apply(null,_.map(function(M){return M.y}))},max:{x:Math.max.apply(null,_.map(function(M){return M.x})),y:Math.max.apply(null,_.map(function(M){return M.y}))}}}function zd(r,e,t){for(var n,a,i,o,s,u,f=Gd(r),l=typeof e=="number",c,h=[],d,v=0,p=0,g=0,y=0,m,b=[],w=[],x=0,E={x:0,y:0},_=E,S=E,A=E,M=0,C=0,I=f.length;C=e&&(A=S),w.push(_),b.push(E),M+=x,u=d!=="Z"?m.slice(-2):[g,y],v=u[0],p=u[1];return l&&e>=M&&(A={x:v,y:p}),{length:M,point:A,min:{x:Math.min.apply(null,b.map(function(k){return k.x})),y:Math.min.apply(null,b.map(function(k){return k.y}))},max:{x:Math.max.apply(null,w.map(function(k){return k.x})),y:Math.max.apply(null,w.map(function(k){return k.y}))}}}function dZ(r,e){if(!r)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=zd(r,void 0,P(P({},e),{length:!1})),n=t.min,a=n.x,i=n.y,o=t.max,s=o.x,u=o.y,f=s-a,l=u-i;return{width:f,height:l,x:a,y:i,x2:s,y2:u,cx:a+f/2,cy:i+l/2,cz:Math.max(f,l)+Math.min(f,l)/2}}function Ef(r,e){return zd(r,void 0,P(P({},e),{bbox:!1,length:!0})).length}function vZ(r,e){if(!r)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=zd(r,void 0,P(P({},e),{bbox:!0,length:!0})),n=t.length,a=t.min,i=a.x,o=a.y,s=t.max,u=s.x,f=s.y,l=u-i,c=f-o;return{length:n,width:l,height:c,x:i,y:o,x2:u,y2:f,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function pZ(r){var e=r.length,t=e-1;return r.map(function(n,a){return r.map(function(i,o){var s=a+o,u;return o===0||r[s]&&r[s][0]==="M"?(u=r[s],["M"].concat(u.slice(-2))):(s>=e&&(s-=t),r[s])})})}function gZ(r,e){var t=r.length-1,n=[],a=0,i=0,o=pZ(r);return o.forEach(function(s,u){r.slice(1).forEach(function(f,l){i+=yu(r[(u+l)%t].slice(-2),e[l%t].slice(-2))}),n[u]=i,i=0}),a=n.indexOf(Math.min.apply(null,n)),o[a]}function yZ(r,e,t,n,a,i,o,s){return 3*((s-e)*(t+a)-(o-r)*(n+i)+n*(r-a)-t*(e-i)+s*(a+r/3)-o*(i+e/3))/20}function XI(r){var e=0,t=0,n=0;return UI(r).map(function(a){var i;switch(a[0]){case"M":return e=a[1],t=a[2],0;default:var o=a.slice(1),s=o[0],u=o[1],f=o[2],l=o[3],c=o[4],h=o[5];return n=yZ(e,t,s,u,f,l,c,h),i=a.slice(-2),e=i[0],t=i[1],n}}).reduce(function(a,i){return a+i},0)}function mZ(r){return XI(r)>=0}function uh(r,e,t){return zd(r,e,P(P({},t),{bbox:!1,length:!0})).point}function bZ(r,e){var t=Bd(r);if(typeof t=="string")throw TypeError(t);var n=t.slice(),a=Ef(n),i=n.length-1,o=0,s=0,u=t[0],f=u.slice(-2),l=f[0],c=f[1],h={x:l,y:c};if(i<=0||!e||!Number.isFinite(e))return{segment:u,index:0,length:s,point:h,lengthAtSegment:o};if(e>=a)return n=t.slice(0,-1),o=Ef(n),s=a-o,{segment:t[i],index:i,length:s,lengthAtSegment:o};for(var d=[];i>0;)u=n[i],n=n.slice(0,-1),o=Ef(n),s=a-o,a=o,d.push({segment:u,index:i,length:s,lengthAtSegment:o}),i-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function wZ(r,e){for(var t=Bd(r),n=Gd(t),a=Ef(t),i=function(x){var E=x.x-e.x,_=x.y-e.y;return E*E+_*_},o=8,s,u=0,f,l=0,c=1/0,h=0;h<=a;h+=o)s=uh(n,h),u=i(s),u.5;)p=l-o,d=uh(n,p),y=i(d),g=l+o,v=uh(n,g),m=i(v),p>=0&&yEZ)return console.warn("Maximum recursion depth reached in equalizeSegments"),[r,e];var a=BE(r),i=BE(e),o=a.length,s=i.length,u=a.filter(function(y){return y.l}).length,f=i.filter(function(y){return y.l}).length,l=a.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/u||0,c=i.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/f||0,h=t||Math.max(o,s),d=[l,c],v=[h-o,h-s],p=0,g=[a,i].map(function(y,m){return y.l===h?y.map(function(b){return b.s}):y.map(function(b,w){return p=w&&v[m]&&b.l>=d[m],v[m]-=p?1:0,p?b.ss:[b.s]}).flat()});return g[0].length===g[1].length?g:WI(g[0],g[1],h,n+1)}var SZ=1e-6;function Gp(r){return Math.abs(r)0!=Gp(s[1]-t)>0&&Gp(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var GE=function(r,e,t){return r>=e&&r<=t};function AZ(r,e,t,n){var a=.001,i={x:t.x-r.x,y:t.y-r.y},o={x:e.x-r.x,y:e.y-r.y},s={x:n.x-t.x,y:n.y-t.y},u=o.x*s.y-o.y*s.x,f=u*u,l=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,h=null;if(f>a*l*c){var d=(i.x*s.y-i.y*s.x)/u,v=(i.x*o.y-i.y*o.x)/u;GE(d,0,1)&&GE(v,0,1)&&(h={x:r.x+d*o.x,y:r.y+d*o.y})}return h}function zE(r){for(var e=[],t=r.length,n=0;n1){var o=r[0],s=r[t-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function CZ(r,e){var t=!1;return r.forEach(function(n){if(AZ(n.from,n.to,e.from,e.to))return t=!0,!1}),t}function jE(r){var e=r.map(function(n){return n[0]}),t=r.map(function(n){return n[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function TZ(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=l.weight;f+=l.weight*h}}),f},FZ=function(r,e){for(var t=0,n=1;n<(e==null?void 0:e.length);n+=1)t+=RZ(r,e[n-1],e[n]);return t};cm.default=FZ;var hm={};Object.defineProperty(hm,"__esModule",{value:!0});var BZ=wi,GZ=function(r,e,t){var n=zZ(r),a=new BZ.Graph({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return r.node(i)});return r.nodes().forEach(function(i){var o,s=r.node(i),u=r.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||n),(o=r[t](i))===null||o===void 0||o.forEach(function(f){var l=f.v===i?f.w:f.v,c=a.edgeFromArgs(l,i),h=c!==void 0?c.weight:0;a.setEdge(l,i,{weight:r.edge(f).weight+h})}),s.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a},zZ=function(r){for(var e;r.hasNode(e="_root".concat(Math.random())););return e};hm.default=GZ;var dm={};Object.defineProperty(dm,"__esModule",{value:!0});var jZ=function(r,e,t){var n={},a;t==null||t.forEach(function(i){for(var o=r.parent(i),s,u;o;){if(s=r.parent(o),s?(u=n[s],n[s]=o):(u=a,a=o),u&&u!==o){e.setEdge(u,o);return}o=s}})};dm.default=jZ;var vm={},pm={};Object.defineProperty(pm,"__esModule",{value:!0});var UZ=function(r,e){return e.map(function(t){var n=r.inEdges(t);if(!(n!=null&&n.length))return{v:t};{var a={sum:0,weight:0};return n==null||n.forEach(function(i){var o=r.edge(i),s=r.node(i.v);a.sum+=o.weight*s.order,a.weight+=o.weight}),{v:t,barycenter:a.sum/a.weight,weight:a.weight}}})};pm.default=UZ;var gm={};Object.defineProperty(gm,"__esModule",{value:!0});var $Z=function(r,e){var t,n,a,i={};r==null||r.forEach(function(s,u){i[s.v]={i:u,indegree:0,in:[],out:[],vs:[s.v]};var f=i[s.v];s.barycenter!==void 0&&(f.barycenter=s.barycenter,f.weight=s.weight)}),(t=e.edges())===null||t===void 0||t.forEach(function(s){var u=i[s.v],f=i[s.w];u!==void 0&&f!==void 0&&(f.indegree++,u.out.push(i[s.w]))});var o=(a=(n=Object.values(i)).filter)===null||a===void 0?void 0:a.call(n,function(s){return!s.indegree});return XZ(o)},XZ=function(r){for(var e,t,n=[],a=function(f){return function(l){l.merged||(l.barycenter===void 0||f.barycenter===void 0||l.barycenter>=f.barycenter)&&WZ(f,l)}},i=function(f){return function(l){l.in.push(f),--l.indegree===0&&r.push(l)}},o=function(){var f=r.pop();n.push(f),(e=f.in.reverse())===null||e===void 0||e.forEach(function(l){return a(f)(l)}),(t=f.out)===null||t===void 0||t.forEach(function(l){return i(f)(l)})};r!=null&&r.length;)o();var s=n.filter(function(f){return!f.merged}),u=["vs","i","barycenter","weight"];return s.map(function(f){var l={};return u==null||u.forEach(function(c){f[c]!==void 0&&(l[c]=f[c])}),l})},WZ=function(r,e){var t,n=0,a=0;r.weight&&(n+=r.barycenter*r.weight,a+=r.weight),e.weight&&(n+=e.barycenter*e.weight,a+=e.weight),r.vs=(t=e.vs)===null||t===void 0?void 0:t.concat(r.vs),r.barycenter=n/a,r.weight=a,r.i=Math.min(e.i,r.i),e.merged=!0};gm.default=$Z;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});var VZ=Vn,YZ=function(r,e,t,n){var a=(0,VZ.partition)(r,function(h){var d=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return n?!d&&h.hasOwnProperty("barycenter"):d||h.hasOwnProperty("barycenter")}),i=a.lhs,o=a.rhs.sort(function(h,d){return-h.i- -d.i}),s=[],u=0,f=0,l=0;i==null||i.sort(qZ(!!e,!!t)),l=UE(s,o,l),i==null||i.forEach(function(h){var d;l+=(d=h.vs)===null||d===void 0?void 0:d.length,s.push(h.vs),u+=h.barycenter*h.weight,f+=h.weight,l=UE(s,o,l)});var c={vs:s.flat()};return f&&(c.barycenter=u/f,c.weight=f),c},UE=function(r,e,t){for(var n=t,a;e.length&&(a=e[e.length-1]).i<=n;)e.pop(),r==null||r.push(a.vs),n++;return n},qZ=function(r,e){return function(t,n){if(t.fixorder!==void 0&&n.fixorder!==void 0)return t.fixorder-n.fixorder;if(t.barycentern.barycenter)return 1;if(e&&t.order!==void 0&&n.order!==void 0){if(t.ordern.order)return 1}return r?n.i-t.i:t.i-n.i}};ym.default=YZ;var mm=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vm,"__esModule",{value:!0});var HZ=mm(pm),ZZ=mm(gm),KZ=mm(ym),YI=function(r,e,t,n,a,i){var o,s,u,f,l=r.children(e),c=r.node(e),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};h&&(l=l==null?void 0:l.filter(function(w){return w!==h&&w!==d}));var p=(0,HZ.default)(r,l||[]);p==null||p.forEach(function(w){var x;if(!((x=r.children(w.v))===null||x===void 0)&&x.length){var E=YI(r,w.v,t,n,i);v[w.v]=E,E.hasOwnProperty("barycenter")&&JZ(w,E)}});var g=(0,ZZ.default)(p,t);QZ(g,v),(o=g.filter(function(w){return w.vs.length>0}))===null||o===void 0||o.forEach(function(w){var x=r.node(w.vs[0]);x&&(w.fixorder=x.fixorder,w.order=x.order)});var y=(0,KZ.default)(g,n,a,i);if(h&&(y.vs=[h,y.vs,d].flat(),!((s=r.predecessors(h))===null||s===void 0)&&s.length)){var m=r.node(((u=r.predecessors(h))===null||u===void 0?void 0:u[0])||""),b=r.node(((f=r.predecessors(d))===null||f===void 0?void 0:f[0])||"");y.hasOwnProperty("barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+b.order)/(y.weight+2),y.weight+=2}return y},QZ=function(r,e){r==null||r.forEach(function(t){var n,a=(n=t.vs)===null||n===void 0?void 0:n.map(function(i){return e[i]?e[i].vs:i});t.vs=a.flat()})},JZ=function(r,e){r.barycenter!==void 0?(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight):(r.barycenter=e.barycenter,r.weight=e.weight)};vm.default=YI;var sl=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(um,"__esModule",{value:!0});var $E=sl(fm),XE=sl(cm),eK=sl(hm),tK=sl(dm),rK=sl(vm),WE=Ir(),nK=wi,zp=Vn,aK=function(r,e){for(var t=(0,zp.maxRank)(r),n=[],a=[],i=1;i-1;i--)a.push(i);var o=VE(r,n,"inEdges"),s=VE(r,a,"outEdges"),u=(0,$E.default)(r);jp(r,u);for(var f=Number.POSITIVE_INFINITY,l,i=0,c=0;c<4;++i,++c){YE(i%2?o:s,i%4>=2,!1,e),u=(0,zp.buildLayerMatrix)(r);var h=(0,XE.default)(r,u);h=2,!0,e),u=(0,zp.buildLayerMatrix)(r);var h=(0,XE.default)(r,u);hB)&&(0,r.addConflict)(E,V,X)}))}function S(C){return JSON.stringify(C.slice(1))}function A(C,I){var k=S(C);I.get(k)||(_.apply(void 0,C),I.set(k,!0))}var M=function(C,I){var k=-1,O,B=0,L=new Map;return I==null||I.forEach(function(z,X){var R;if(((R=w.node(z))===null||R===void 0?void 0:R.dummy)==="border"){var V=w.predecessors(z)||[];V.length&&(O=w.node(V[0]).order,A([I,B,X,k,O],L),B=X,k=O)}A([I,B,I.length,O,C.length],L)}),I};return x!=null&&x.length&&x.reduce(M),E};r.findType2Conflicts=s;var u=function(w,x){var E,_;if(!((E=w.node(x))===null||E===void 0)&&E.dummy)return(_=w.predecessors(x))===null||_===void 0?void 0:_.find(function(S){return w.node(S).dummy})};r.findOtherInnerSegmentNode=u;var f=function(w,x,E){var _=x,S=E;if(_>S){var A=_;_=S,S=A}var M=w[_];M||(w[_]=M={}),M[S]=!0};r.addConflict=f;var l=function(w,x,E){var _=x,S=E;if(_>S){var A=x;_=S,S=A}return!!w[_]};r.hasConflict=l;var c=function(w,x,E,_){var S={},A={},M={};return x==null||x.forEach(function(C){C==null||C.forEach(function(I,k){S[I]=I,A[I]=I,M[I]=k})}),x==null||x.forEach(function(C){var I=-1;C==null||C.forEach(function(k){var O=_(k);if(O.length){O=O.sort(function(R,V){return M[R]-M[V]});for(var B=(O.length-1)/2,L=Math.floor(B),z=Math.ceil(B);L<=z;++L){var X=O[L];A[k]===k&&IN.x&&(B=N.x),L>N.y&&(L=N.y)}),b.edges().forEach(function(te){var N,Se=b.edge(te);(N=Se.points)===null||N===void 0||N.forEach(function(Fe){B>Fe.x&&(B=Fe.x),L>Fe.y&&(L=Fe.y)})}),O[0]=h[0]-B,O[1]=h[1]-L}var z=l==="LR"||l==="RL";if(d){var X=this,R=X.focusNode,V=X.ranksep,he=X.getRadialPos,ce=(0,Rn.isString)(R)?R:R==null?void 0:R.id,le=ce?(o=b.node(ce))===null||o===void 0?void 0:o._rank:0,ie=[],Ie=z?"y":"x",qe=z?"height":"width",Ve=1/0,it=-1/0;b.nodes().forEach(function(te){var N=b.node(te);if(s.nodeMap[te]){var Se=A(s.nodeMap[te]);if(le===0)ie[N._rank]||(ie[N._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),ie[N._rank].nodes.push(te),ie[N._rank].totalWidth+=Se*2+N[qe],ie[N._rank].maxSizeit&&(it=$e)}});var dt=V||50,st={},Tt=(it-Ve)/.9,_t=[(Ve+it-Tt)*.5,(Ve+it+Tt)*.5],lr=function(te,N,Se,Fe){Se===void 0&&(Se=-1/0),Fe===void 0&&(Fe=[0,1]);var ge=Se;return te.forEach(function(Ue){var $e=b.node(Ue);st[Ue]=N;var Ze=he($e[Ie],_t,Tt,N,Fe),Je=Ze.x,ht=Ze.y;if(s.nodeMap[Ue]){s.nodeMap[Ue].x=Je+O[0],s.nodeMap[Ue].y=ht+O[1],s.nodeMap[Ue]._order=$e._order;var Lt=S(s.nodeMap[Ue]);ge=ge})}:function(te,N,Se){var Fe=Math.max(N.x,Se.x),ge=Math.min(N.x,Se.x);return te.filter(function(Ue){return Ue.x<=Fe&&Ue.x>=ge})};b.edges().forEach(function(te){var N,Se=b.edge(te),Fe=m.findIndex(function($e){var Ze=(0,Rn.getEdgeTerminal)($e,"source"),Je=(0,Rn.getEdgeTerminal)($e,"target");return Ze===te.v&&Je===te.w});if(!(Fe<=-1)&&s.edgeLabelSpace&&s.controlPoints&&m[Fe].type!=="loop"){(N=Se==null?void 0:Se.points)===null||N===void 0||N.forEach(function($e){$e.x+=O[0],$e.y+=O[1]});var ge=s.nodeMap[te.v],Ue=s.nodeMap[te.w];m[Fe].controlPoints=VK(Se==null?void 0:Se.points,ge,Ue,sr,z,tn,tt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,edges:m}}},e.prototype.getRadialPos=function(t,n,a,i,o){o===void 0&&(o=[0,1]);var s=(t-n[0])/a;s=s*(o[1]-o[0])+o[0];var u=s*2*Math.PI;return{x:Math.cos(u)*i,y:Math.sin(u)*i}},e.prototype.getType=function(){return"dagre"},e}(XK.Base);pu.DagreLayout=WK;var VK=function(r,e,t,n,a,i,o){var s=(r==null?void 0:r.slice(1,r.length-1))||[];if(e&&t){var u=e.x,f=e.y,l=t.x,c=t.y;if(a&&(u=e.y,f=e.x,l=t.y,c=t.x),c!==f&&u!==l){var h=n.indexOf(f),d=n[h+1];if(d){var v=s[0],p=a?{x:(f+d)/2,y:(v==null?void 0:v.y)||l}:{x:(v==null?void 0:v.x)||l,y:(f+d)/2};(!v||i(v,p))&&s.unshift(p)}var g=n.indexOf(c),y=Math.abs(g-h);if(y===1)s=o(s,e,t),s.length||s.push(a?{x:(f+c)/2,y:u}:{x:u,y:(f+c)/2});else if(y>1){var m=n[g-1];if(m){var b=s[s.length-1],w=a?{x:(c+m)/2,y:(b==null?void 0:b.y)||l}:{x:(b==null?void 0:b.x)||u,y:(c+m)/2};(!b||i(b,w))&&s.push(w)}}}}return s},ul={};const Vh={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function yg(r={},e=Vh){var t,n,a,i;const o=JSON.parse(JSON.stringify(e)),s=((t=r==null?void 0:r.graph)===null||t===void 0?void 0:t.meta)||{},u=((n=r==null?void 0:r.subScene)===null||n===void 0?void 0:n.meta)||{},f=((a=r==null?void 0:r.nodeSize)===null||a===void 0?void 0:a.meta)||{},l=((i=r==null?void 0:r.nodeSize)===null||i===void 0?void 0:i.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,u)},nodeSize:{meta:Object.assign(o.nodeSize.meta,f),node:Object.assign(o.nodeSize.node,l),bridge:c}}}function HI(r){return`◬${r}◬`}const iu=HI("ROOT"),ZI=HI("BRIDGE_GRAPH");var kn,Vo,ou,mg;(function(r){r[r.META=0]="META",r[r.NODE=1]="NODE",r[r.BRIDGE=2]="BRIDGE"})(kn||(kn={})),function(r){r[r.INCLUDE=0]="INCLUDE",r[r.EXCLUDE=1]="EXCLUDE",r[r.UNSPECIFIED=2]="UNSPECIFIED"}(Vo||(Vo={})),function(r){r[r.META=0]="META",r[r.CORE=1]="CORE",r[r.BRIDGE=2]="BRIDGE"}(ou||(ou={})),function(r){r[r.META=0]="META",r[r.OP=1]="OP",r[r.SERIES=2]="SERIES"}(mg||(mg={}));var Ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(r,e){return r(e={exports:{}},e.exports),e.exports}var YK=function(){this.__data__=[],this.size=0},mu=function(r,e){return r===e||r!=r&&e!=e},jd=function(r,e){for(var t=r.length;t--;)if(mu(r[t][0],e))return t;return-1},qK=Array.prototype.splice,HK=function(r){var e=this.__data__,t=jd(e,r);return!(t<0)&&(t==e.length-1?e.pop():qK.call(e,t,1),--this.size,!0)},ZK=function(r){var e=this.__data__,t=jd(e,r);return t<0?void 0:e[t][1]},KK=function(r){return jd(this.__data__,r)>-1},QK=function(r,e){var t=this.__data__,n=jd(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this};function Ns(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r-1&&r%1==0&&r<=9007199254740991},br={};br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object Boolean]"]=br["[object DataView]"]=br["[object Date]"]=br["[object Error]"]=br["[object Function]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object WeakMap]"]=!1;var GQ=function(r){return wa(r)&&Sm(r.length)&&!!br[ao(r)]},qd=function(r){return function(e){return r(e)}},uu=Em(function(r,e){var t=e&&!e.nodeType&&e,n=t&&r&&!r.nodeType&&r,a=n&&n.exports===t&&KI.process,i=function(){try{var o=n&&n.require&&n.require("util").types;return o||a&&a.binding&&a.binding("util")}catch{}}();r.exports=i}),o_=uu&&uu.isTypedArray,cl=o_?qd(o_):GQ,zQ=Object.prototype.hasOwnProperty,ek=function(r,e){var t=Pr(r),n=!t&&su(r),a=!t&&!n&&Yo(r),i=!t&&!n&&!a&&cl(r),o=t||n||a||i,s=o?DQ(r.length,String):[],u=s.length;for(var f in r)!e&&!zQ.call(r,f)||o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Yd(f,u))||s.push(f);return s},jQ=Object.prototype,Hd=function(r){var e=r&&r.constructor;return r===(typeof e=="function"&&e.prototype||jQ)},tk=function(r,e){return function(t){return r(e(t))}},UQ=tk(Object.keys,Object),$Q=Object.prototype.hasOwnProperty,Mm=function(r){if(!Hd(r))return UQ(r);var e=[];for(var t in Object(r))$Q.call(r,t)&&t!="constructor"&&e.push(t);return e},Ei=function(r){return r!=null&&Sm(r.length)&&!fl(r)},io=function(r){return Ei(r)?ek(r):Mm(r)},XQ=function(r,e){return r&&ll(e,io(e),r)},WQ=function(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e},VQ=Object.prototype.hasOwnProperty,YQ=function(r){if(!Dn(r))return WQ(r);var e=Hd(r),t=[];for(var n in r)(n!="constructor"||!e&&VQ.call(r,n))&&t.push(n);return t},es=function(r){return Ei(r)?ek(r,!0):YQ(r)},qQ=function(r,e){return r&&ll(e,es(e),r)},rk=Em(function(r,e){var t=e&&!e.nodeType&&e,n=t&&r&&!r.nodeType&&r,a=n&&n.exports===t?_a.Buffer:void 0,i=a?a.allocUnsafe:void 0;r.exports=function(o,s){if(s)return o.slice();var u=o.length,f=i?i(u):new o.constructor(u);return o.copy(f),f}}),nk=function(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++ts))return!1;var f=i.get(r),l=i.get(e);if(f&&l)return f==e&&l==r;var c=-1,h=!0,d=2&t?new pk:void 0;for(i.set(r,e),i.set(e,r);++c0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}(iee),ev=function(r,e){return Pk(Dk(r,e,ts),r+"")},Rk=function(r,e,t,n){for(var a=r.length,i=t+-1;++i-1},cee=function(){},hee=Vs&&1/Om(new Vs([,-0]))[1]==1/0?function(r){return new Vs(r)}:cee,dee=function(r,e,t){var n=-1,a=lee,i=r.length,o=!0,s=[],u=s;if(i>=200){var f=hee(r);if(f)return Om(f);o=!1,a=gk,u=new pk}else u=s;e:for(;++ni){var o=a;a=i,i=o}return a+""+i+""+(ot.isUndefined(n)?"\0":n)}function gee(r,e,t,n){var a=""+e,i=""+t;if(!r&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return n&&(s.name=n),s}function qp(r,e){return hf(r,e.v,e.w,e.name)}tr.prototype._nodeCount=0,tr.prototype._edgeCount=0,tr.prototype.isDirected=function(){return this._isDirected},tr.prototype.isMultigraph=function(){return this._isMultigraph},tr.prototype.isCompound=function(){return this._isCompound},tr.prototype.setGraph=function(r){return this._label=r,this},tr.prototype.graph=function(){return this._label},tr.prototype.setDefaultNodeLabel=function(r){return ot.isFunction(r)||(r=ot.constant(r)),this._defaultNodeLabelFn=r,this},tr.prototype.nodeCount=function(){return this._nodeCount},tr.prototype.nodes=function(){return ot.keys(this._nodes)},tr.prototype.sources=function(){var r=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(r._in[e])})},tr.prototype.sinks=function(){var r=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(r._out[e])})},tr.prototype.setNodes=function(r,e){var t=arguments,n=this;return ot.each(r,function(a){t.length>1?n.setNode(a,e):n.setNode(a)}),this},tr.prototype.setNode=function(r,e){return ot.has(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=e),this):(this._nodes[r]=arguments.length>1?e:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]="\0",this._children[r]={},this._children["\0"][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)},tr.prototype.node=function(r){return this._nodes[r]},tr.prototype.hasNode=function(r){return ot.has(this._nodes,r)},tr.prototype.removeNode=function(r){var e=this;if(ot.has(this._nodes,r)){var t=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],ot.each(this.children(r),function(n){e.setParent(n)}),delete this._children[r]),ot.each(ot.keys(this._in[r]),t),delete this._in[r],delete this._preds[r],ot.each(ot.keys(this._out[r]),t),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this},tr.prototype.setParent=function(r,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ot.isUndefined(e))e="\0";else{for(var t=e+="";!ot.isUndefined(t);t=this.parent(t))if(t===r)throw new Error("Setting "+e+" as parent of "+r+" would create a cycle");this.setNode(e)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=e,this._children[e][r]=!0,this},tr.prototype._removeFromParentsChildList=function(r){delete this._children[this._parent[r]][r]},tr.prototype.parent=function(r){if(this._isCompound){var e=this._parent[r];if(e!=="\0")return e}},tr.prototype.children=function(r){if(ot.isUndefined(r)&&(r="\0"),this._isCompound){var e=this._children[r];if(e)return ot.keys(e)}else{if(r==="\0")return this.nodes();if(this.hasNode(r))return[]}},tr.prototype.predecessors=function(r){var e=this._preds[r];if(e)return ot.keys(e)},tr.prototype.successors=function(r){var e=this._sucs[r];if(e)return ot.keys(e)},tr.prototype.neighbors=function(r){var e=this.predecessors(r);if(e)return ot.union(e,this.successors(r))},tr.prototype.isLeaf=function(r){return(this.isDirected()?this.successors(r):this.neighbors(r)).length===0},tr.prototype.filterNodes=function(r){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var t=this;ot.each(this._nodes,function(i,o){r(o)&&e.setNode(o,i)}),ot.each(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,t.edge(i))});var n={};function a(i){var o=t.parent(i);return o===void 0||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:a(o)}return this._isCompound&&ot.each(e.nodes(),function(i){e.setParent(i,a(i))}),e},tr.prototype.setDefaultEdgeLabel=function(r){return ot.isFunction(r)||(r=ot.constant(r)),this._defaultEdgeLabelFn=r,this},tr.prototype.edgeCount=function(){return this._edgeCount},tr.prototype.edges=function(){return ot.values(this._edgeObjs)},tr.prototype.setPath=function(r,e){var t=this,n=arguments;return ot.reduce(r,function(a,i){return n.length>1?t.setEdge(a,i,e):t.setEdge(a,i),i}),this},tr.prototype.setEdge=function(){var r,e,t,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(r=i.v,e=i.w,t=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(r=i,e=arguments[1],t=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),r=""+r,e=""+e,ot.isUndefined(t)||(t=""+t);var o=hf(this._isDirected,r,e,t);if(ot.has(this._edgeLabels,o))return a&&(this._edgeLabels[o]=n),this;if(!ot.isUndefined(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(e),this._edgeLabels[o]=a?n:this._defaultEdgeLabelFn(r,e,t);var s=gee(this._isDirected,r,e,t);return r=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,x_(this._preds[e],r),x_(this._sucs[r],e),this._in[e][o]=s,this._out[r][o]=s,this._edgeCount++,this},tr.prototype.edge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t);return this._edgeLabels[n]},tr.prototype.hasEdge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t);return ot.has(this._edgeLabels,n)},tr.prototype.removeEdge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t),a=this._edgeObjs[n];return a&&(r=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],E_(this._preds[e],r),E_(this._sucs[r],e),delete this._in[e][n],delete this._out[r][n],this._edgeCount--),this},tr.prototype.inEdges=function(r,e){var t=this._in[r];if(t){var n=ot.values(t);return e?ot.filter(n,function(a){return a.v===e}):n}},tr.prototype.outEdges=function(r,e){var t=this._out[r];if(t){var n=ot.values(t);return e?ot.filter(n,function(a){return a.w===e}):n}},tr.prototype.nodeEdges=function(r,e){var t=this.inEdges(r,e);if(t)return t.concat(this.outEdges(r,e))};var __={Graph:Rm,version:"2.1.8"},yee={write:function(r){var e={options:{directed:r.isDirected(),multigraph:r.isMultigraph(),compound:r.isCompound()},nodes:mee(r),edges:bee(r)};return ot.isUndefined(r.graph())||(e.value=ot.clone(r.graph())),e},read:function(r){var e=new Rm(r.options).setGraph(r.value);return ot.each(r.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),ot.each(r.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};function mee(r){return ot.map(r.nodes(),function(e){var t=r.node(e),n=r.parent(e),a={v:e};return ot.isUndefined(t)||(a.value=t),ot.isUndefined(n)||(a.parent=n),a})}function bee(r){return ot.map(r.edges(),function(e){var t=r.edge(e),n={v:e.v,w:e.w};return ot.isUndefined(e.name)||(n.name=e.name),ot.isUndefined(t)||(n.value=t),n})}var wee=function(r){var e,t={},n=[];function a(i){ot.has(t,i)||(t[i]=!0,e.push(i),ot.each(r.successors(i),a),ot.each(r.predecessors(i),a))}return ot.each(r.nodes(),function(i){e=[],a(i),e.length&&n.push(e)}),n},Gk=Qn;function Qn(){this._arr=[],this._keyIndices={}}Qn.prototype.size=function(){return this._arr.length},Qn.prototype.keys=function(){return this._arr.map(function(r){return r.key})},Qn.prototype.has=function(r){return ot.has(this._keyIndices,r)},Qn.prototype.priority=function(r){var e=this._keyIndices[r];if(e!==void 0)return this._arr[e].priority},Qn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Qn.prototype.add=function(r,e){var t=this._keyIndices;if(r=String(r),!ot.has(t,r)){var n=this._arr,a=n.length;return t[r]=a,n.push({key:r,priority:e}),this._decrease(a),!0}return!1},Qn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},Qn.prototype.decrease=function(r,e){var t=this._keyIndices[r];if(e>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[t].priority+" New: "+e);this._arr[t].priority=e,this._decrease(t)},Qn.prototype._heapify=function(r){var e=this._arr,t=2*r,n=t+1,a=r;t>1].priority0&&(u=c.removeMin(),(f=l[u]).distance!==Number.POSITIVE_INFINITY);)s(u).forEach(h);return l}(r,String(e),t||xee,n||function(a){return r.outEdges(a)})},xee=ot.constant(1),Eee=function(r,e,t){return ot.transform(r.nodes(),function(n,a){n[a]=zk(r,a,e,t)},{})},jk=function(r){var e=0,t=[],n={},a=[];function i(o){var s=n[o]={onStack:!0,lowlink:e,index:e++};if(t.push(o),r.successors(o).forEach(function(l){ot.has(n,l)?n[l].onStack&&(s.lowlink=Math.min(s.lowlink,n[l].index)):(i(l),s.lowlink=Math.min(s.lowlink,n[l].lowlink))}),s.lowlink===s.index){var u,f=[];do u=t.pop(),n[u].onStack=!1,f.push(u);while(o!==u);a.push(f)}}return r.nodes().forEach(function(o){ot.has(n,o)||i(o)}),a},_ee=function(r){return ot.filter(jk(r),function(e){return e.length>1||e.length===1&&r.hasEdge(e[0],e[0])})},See=function(r,e,t){return function(n,a,i){var o={},s=n.nodes();return s.forEach(function(u){o[u]={},o[u][u]={distance:0},s.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),i(u).forEach(function(f){var l=f.v===u?f.w:f.v,c=a(f);o[u][l]={distance:c,predecessor:u}})}),s.forEach(function(u){var f=o[u];s.forEach(function(l){var c=o[l];s.forEach(function(h){var d=c[u],v=f[h],p=c[h],g=d.distance+v.distance;g0;){if(t=i.removeMin(),ot.has(a,t))n.setEdge(t,a[t]);else{if(s)throw new Error("Input graph is not connected: "+r);s=!0}r.nodeEdges(t).forEach(o)}return n},tarjan:jk,topsort:Hp},version:__.version};try{Kh=Aee}catch{}Kh||(Kh=window.graphlib);var Sa=Kh,Cee=function(r){return ck(r,5)},$f=function(r,e,t){if(!Dn(t))return!1;var n=typeof e;return!!(n=="number"?Ei(t)&&Yd(e,t.length):n=="string"&&e in t)&&mu(t[e],r)},Xk=Object.prototype,Tee=Xk.hasOwnProperty,Iee=ev(function(r,e){r=Object(r);var t=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&$f(e[0],e[1],a)&&(n=1);++t-1?a[i?e[o]:o]:void 0}},Nee=/^\s+|\s+$/g,Oee=/^[-+]0x[0-9a-f]+$/i,Lee=/^0b[01]+$/i,Dee=/^0o[0-7]+$/i,Pee=parseInt,Ree=function(r){if(typeof r=="number")return r;if(Ho(r))return NaN;if(Dn(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Dn(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(Nee,"");var t=Lee.test(r);return t||Dee.test(r)?Pee(r.slice(2),t?2:8):Oee.test(r)?NaN:+r},lh=function(r){return r?(r=Ree(r))===1/0||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},Fee=function(r){var e=lh(r),t=e%1;return e==e?t?e-t:e:0},Bee=Math.max,Gee=kee(function(r,e,t){var n=r==null?0:r.length;if(!n)return-1;var a=t==null?0:Fee(t);return a<0&&(a=Bee(n+a,0)),Rk(r,_i(e),a)}),Wk=function(r){return r!=null&&r.length?Pm(r):[]},zee=function(r,e){return r==null?r:km(r,hk(e),es)},jee=function(r){var e=r==null?0:r.length;return e?r[e-1]:void 0},Uee=function(r,e){var t={};return e=_i(e),Nm(r,function(n,a,i){Wd(t,a,e(n,a,i))}),t},Fm=function(r,e,t){for(var n=-1,a=r.length;++ne},Xee=function(r){return r&&r.length?Fm(r,ts,$ee):void 0},Mg=function(r,e,t){(t!==void 0&&!mu(r[e],t)||t===void 0&&!(e in r))&&Wd(r,e,t)},Wee=Function.prototype,Vee=Object.prototype,Vk=Wee.toString,Yee=Vee.hasOwnProperty,qee=Vk.call(Object),Hee=function(r){if(!wa(r)||ao(r)!="[object Object]")return!1;var e=Zd(r);if(e===null)return!0;var t=Yee.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vk.call(t)==qee},M_=function(r,e){if((e!=="constructor"||typeof r[e]!="function")&&e!="__proto__")return r[e]},Zee=function(r){return ll(r,es(r))},Kee=function(r,e,t,n,a,i,o){var s=M_(r,t),u=M_(e,t),f=o.get(u);if(f)Mg(r,t,f);else{var l=void 0,c=l===void 0;if(c){var h=Pr(u),d=!h&&Yo(u),v=!h&&!d&&cl(u);l=u,h||d||v?Pr(s)?l=s:Fk(s)?l=nk(s):d?(c=!1,l=rk(u,!0)):v?(c=!1,l=uk(u,!0)):l=[]:Hee(u)||su(u)?(l=s,su(s)?l=Zee(s):Dn(s)&&!fl(s)||(l=lk(u))):c=!1}c&&(o.set(u,l),a(l,u,n,i,o),o.delete(u)),Mg(r,t,l)}},Qee=function r(e,t,n,a,i){e!==t&&km(t,function(o,s){if(i||(i=new Ws),Dn(o))Kee(e,t,s,n,r,a,i);else{var u=void 0;u===void 0&&(u=o),Mg(e,s,u)}},es)},Jee=function(r){return ev(function(e,t){var n=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(a--,i):void 0,o&&$f(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ne||i&&o&&u&&!s&&!f||n&&o&&u||!t&&u||!a)return 1;if(!n&&!i&&!f&&r=s?u:u*(t[n]=="desc"?-1:1)}return r.index-e.index},vte=function(r,e,t){e=e.length?Ys(e,function(i){return Pr(i)?function(o){return Jd(o,i.length===1?i[0]:i)}:i}):[ts];var n=-1;e=Ys(e,qd(_i));var a=Tk(r,function(i,o,s){return{criteria:Ys(e,function(u){return u(i)}),index:++n,value:i}});return cte(a,function(i,o){return dte(i,o,t)})},pte=ev(function(r,e){if(r==null)return[];var t=e.length;return t>1&&$f(r,e[0],e[1])?e=[]:t>2&&$f(e[0],e[1],e[2])&&(e=[e[0]]),vte(r,Pm(e),[])}),gte=0,yte=function(r){var e=++gte;return xk(r)+e},mte=function(r,e,t){for(var n=-1,a=r.length,i=e.length,o={};++n0;--c)if(s=i[c].dequeue()){u=u.concat(Zp(a,i,o,s,!0));break}}}return u}(t.graph,t.buckets,t.zeroIdx);return Z.flatten(Z.map(n,function(a){return r.outEdges(a.v,a.w)}),!0)},Ste=Z.constant(1);function Zp(r,e,t,n,a){var i=a?[]:void 0;return Z.forEach(r.inEdges(n.v),function(o){var s=r.edge(o),u=r.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=s,Ag(e,t,u)}),Z.forEach(r.outEdges(n.v),function(o){var s=r.edge(o),u=o.w,f=r.node(u);f.in-=s,Ag(e,t,f)}),r.removeNode(n.v),i}function Ag(r,e,t){t.out?t.in?r[t.out-t.in+e].enqueue(t):r[r.length-1].enqueue(t):r[0].enqueue(t)}var C_={run:function(r){var e=r.graph().acyclicer==="greedy"?_te(r,function(t){return function(n){return t.edge(n).weight}}(r)):function(t){var n=[],a={},i={};function o(s){Z.has(i,s)||(i[s]=!0,a[s]=!0,Z.forEach(t.outEdges(s),function(u){Z.has(a,u.w)?n.push(u):o(u.w)}),delete a[s])}return Z.forEach(t.nodes(),o),n}(r);Z.forEach(e,function(t){var n=r.edge(t);r.removeEdge(t),n.forwardName=t.name,n.reversed=!0,r.setEdge(t.w,t.v,n,Z.uniqueId("rev"))})},undo:function(r){Z.forEach(r.edges(),function(e){var t=r.edge(e);if(t.reversed){r.removeEdge(e);var n=t.forwardName;delete t.reversed,delete t.forwardName,r.setEdge(e.w,e.v,t,n)}})}},T_=Sa.Graph,Mn={addDummyNode:I_,simplify:function(r){var e=new T_().setGraph(r.graph());return Z.forEach(r.nodes(),function(t){e.setNode(t,r.node(t))}),Z.forEach(r.edges(),function(t){var n=e.edge(t.v,t.w)||{weight:0,minlen:1},a=r.edge(t);e.setEdge(t.v,t.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e},asNonCompoundGraph:function(r){var e=new T_({multigraph:r.isMultigraph()}).setGraph(r.graph());return Z.forEach(r.nodes(),function(t){r.children(t).length||e.setNode(t,r.node(t))}),Z.forEach(r.edges(),function(t){e.setEdge(t,r.edge(t))}),e},successorWeights:function(r){var e=Z.map(r.nodes(),function(t){var n={};return Z.forEach(r.outEdges(t),function(a){n[a.w]=(n[a.w]||0)+r.edge(a).weight}),n});return Z.zipObject(r.nodes(),e)},predecessorWeights:function(r){var e=Z.map(r.nodes(),function(t){var n={};return Z.forEach(r.inEdges(t),function(a){n[a.v]=(n[a.v]||0)+r.edge(a).weight}),n});return Z.zipObject(r.nodes(),e)},intersectRect:function(r,e){var t,n,a=r.x,i=r.y,o=e.x-a,s=e.y-i,u=r.width/2,f=r.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*f?(s<0&&(f=-f),t=f*o/s,n=f):(o<0&&(u=-u),t=u,n=u*s/o),{x:a+t,y:i+n}},buildLayerMatrix:function(r){var e=Z.map(Z.range(k_(r)+1),function(){return[]});return Z.forEach(r.nodes(),function(t){var n=r.node(t),a=n.rank;Z.isUndefined(a)||(e[a][n.order]=t)}),e},normalizeRanks:function(r){var e=Z.min(Z.map(r.nodes(),function(t){return r.node(t).rank}));Z.forEach(r.nodes(),function(t){var n=r.node(t);Z.has(n,"rank")&&(n.rank-=e)})},removeEmptyRanks:function(r){var e=Z.min(Z.map(r.nodes(),function(i){return r.node(i).rank})),t=[];Z.forEach(r.nodes(),function(i){var o=r.node(i).rank-e;t[o]||(t[o]=[]),t[o].push(i)});var n=0,a=r.graph().nodeRankFactor;Z.forEach(t,function(i,o){Z.isUndefined(i)&&o%a!=0?--n:n&&Z.forEach(i,function(s){r.node(s).rank+=n})})},addBorderNode:function(r,e,t,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=t,a.order=n),I_(r,"border",a,e)},maxRank:k_,partition:function(r,e){var t={lhs:[],rhs:[]};return Z.forEach(r,function(n){e(n)?t.lhs.push(n):t.rhs.push(n)}),t},time:function(r,e){var t=Z.now();try{return e()}finally{console.log(r+" time: "+(Z.now()-t)+"ms")}},notime:function(r,e){return e()}};function I_(r,e,t,n){var a;do a=Z.uniqueId(n);while(r.hasNode(a));return t.dummy=e,r.setNode(a,t),a}function k_(r){return Z.max(Z.map(r.nodes(),function(e){var t=r.node(e).rank;if(!Z.isUndefined(t))return t}))}var N_={run:function(r){r.graph().dummyChains=[],Z.forEach(r.edges(),function(e){(function(t,n){var a,i,o,s=n.v,u=t.node(s).rank,f=n.w,l=t.node(f).rank,c=n.name,h=t.edge(n),d=h.labelRank;if(l!==u+1){for(t.removeEdge(n),o=0,++u;uo.lim&&(s=o,u=!0);var f=Z.filter(e.edges(),function(l){return u===O_(r,r.node(l.v),s)&&u!==O_(r,r.node(l.w),s)});return Z.minBy(f,function(l){return Ite(e,l)})}function tN(r,e,t,n){var a=t.v,i=t.w;r.removeEdge(a,i),r.setEdge(n.v,n.w,{}),Gm(r),Bm(r,e),function(o,s){var u=Z.find(o.nodes(),function(l){return!s.node(l).parent}),f=Nte(o,u);f=f.slice(1),Z.forEach(f,function(l){var c=o.node(l).parent,h=s.edge(l,c),d=!1;h||(h=s.edge(c,l),d=!0),s.node(l).rank=s.node(c).rank+(d?h.minlen:-h.minlen)})}(r,e)}function O_(r,e,t){return t.low<=e.lim&&e.lim<=t.lim}Lo.initLowLimValues=Gm,Lo.initCutValues=Bm,Lo.calcCutValue=Kk,Lo.leaveEdge=Jk,Lo.enterEdge=eN,Lo.exchangeEdges=tN;var rN=qk,Pte=function(r){switch(r.graph().ranker){case"network-simplex":L_(r);break;case"tight-tree":(function(e){rN(e),Zk(e)})(r);break;case"longest-path":Rte(r);break;default:L_(r)}},Rte=rN;function L_(r){Dte(r)}var Fte=function(r){var e=function(t){var n={},a=0;function i(o){var s=a;Z.forEach(t.children(o),i),n[o]={low:s,lim:a++}}return Z.forEach(t.children(),i),n}(r);Z.forEach(r.graph().dummyChains,function(t){for(var n=r.node(t),a=n.edgeObj,i=function(c,h,d,v){var p,g,y=[],m=[],b=Math.min(h[d].low,h[v].low),w=Math.max(h[d].lim,h[v].lim);p=d;do p=c.parent(p),y.push(p);while(p&&(h[p].low>b||w>h[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)m.push(p);return{path:y.concat(m.reverse()),lca:g}}(r,e,a.v,a.w),o=i.path,s=i.lca,u=0,f=o[u],l=!0;t!==a.w;){if(n=r.node(t),l){for(;(f=o[u])!==s&&r.node(f).maxRank0;)l%2&&(c+=s[l+1]),s[l=l-1>>1]+=f.weight;u+=f.weight*c})),u}var Ute=function(r,e){return Z.map(e,function(t){var n=r.inEdges(t);if(n.length){var a=Z.reduce(n,function(i,o){var s=r.edge(o),u=r.node(o.v);return{sum:i.sum+s.weight*u.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:t,barycenter:a.sum/a.weight,weight:a.weight}}return{v:t}})},$te=function(r,e){var t={};return Z.forEach(r,function(n,a){var i=t[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};Z.isUndefined(n.barycenter)||(i.barycenter=n.barycenter,i.weight=n.weight)}),Z.forEach(e.edges(),function(n){var a=t[n.v],i=t[n.w];Z.isUndefined(a)||Z.isUndefined(i)||(i.indegree++,a.out.push(t[n.w]))}),function(n){var a=[];function i(u){return function(f){f.merged||(Z.isUndefined(f.barycenter)||Z.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&function(l,c){var h=0,d=0;l.weight&&(h+=l.barycenter*l.weight,d+=l.weight),c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),l.vs=c.vs.concat(l.vs),l.barycenter=h/d,l.weight=d,l.i=Math.min(c.i,l.i),c.merged=!0}(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree==0&&n.push(f)}}for(;n.length;){var s=n.pop();a.push(s),Z.forEach(s.in.reverse(),i(s)),Z.forEach(s.out,o(s))}return Z.map(Z.filter(a,function(u){return!u.merged}),function(u){return Z.pick(u,["vs","i","barycenter","weight"])})}(Z.filter(t,function(n){return!n.indegree}))},Xte=function(r,e){var t=Mn.partition(r,function(c){return Z.has(c,"barycenter")}),n=t.lhs,a=Z.sortBy(t.rhs,function(c){return-c.i}),i=[],o=0,s=0,u=0;n.sort((f=!!e,function(c,h){return c.barycenterh.barycenter?1:f?h.i-c.i:c.i-h.i})),u=G_(i,a,u),Z.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,u=G_(i,a,u)});var f,l={vs:Z.flatten(i,!0)};return s&&(l.barycenter=o/s,l.weight=s),l};function G_(r,e,t){for(var n;e.length&&(n=Z.last(e)).i<=t;)e.pop(),r.push(n.vs),t++;return t}var Wte=function r(e,t,n,a){var i=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};s&&(i=Z.filter(i,function(p){return p!==s&&p!==u}));var l=Ute(e,i);Z.forEach(l,function(p){if(e.children(p.v).length){var g=r(e,p.v,n,a);f[p.v]=g,Z.has(g,"barycenter")&&(y=p,m=g,Z.isUndefined(y.barycenter)?(y.barycenter=m.barycenter,y.weight=m.weight):(y.barycenter=(y.barycenter*y.weight+m.barycenter*m.weight)/(y.weight+m.weight),y.weight+=m.weight))}var y,m});var c=$te(l,n);(function(p,g){Z.forEach(p,function(y){y.vs=Z.flatten(y.vs.map(function(m){return g[m]?g[m].vs:m}),!0)})})(c,f);var h=Xte(c,a);if(s&&(h.vs=Z.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(u)[0]);Z.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+v.order)/(h.weight+2),h.weight+=2}return h},Vte=Sa.Graph,Yte=function(r,e,t){var n=function(i){for(var o;i.hasNode(o=Z.uniqueId("_root")););return o}(r),a=new Vte({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return r.node(i)});return Z.forEach(r.nodes(),function(i){var o=r.node(i),s=r.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(a.setNode(i),a.setParent(i,s||n),Z.forEach(r[t](i),function(u){var f=u.v===i?u.w:u.v,l=a.edge(f,i),c=Z.isUndefined(l)?0:l.weight;a.setEdge(f,i,{weight:r.edge(u).weight+c})}),Z.has(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),a},qte=function(r,e,t){var n,a={};Z.forEach(t,function(i){for(var o,s,u=r.parent(i);u;){if((o=r.parent(u))?(s=a[o],a[o]=u):(s=n,n=u),s&&s!==u)return void e.setEdge(s,u);u=o}})},Hte=Sa.Graph,Zte=function(r){var e=Mn.maxRank(r),t=z_(r,Z.range(1,e+1),"inEdges"),n=z_(r,Z.range(e-1,-1,-1),"outEdges"),a=Gte(r);j_(r,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){Kte(s%2?t:n,s%4>=2),a=Mn.buildLayerMatrix(r);var f=zte(r,a);fu)&&aN(t,c,f)})})}return Z.reduce(e,function(a,i){var o,s=-1,u=0;return Z.forEach(i,function(f,l){if(r.node(f).dummy==="border"){var c=r.predecessors(f);c.length&&(o=r.node(c[0]).order,n(i,u,l,s,o),u=l,s=o)}n(i,u,i.length,o,a.length)}),i}),t}function aN(r,e,t){if(e>t){var n=e;e=t,t=n}var a=r[e];a||(r[e]=a={}),a[t]=!0}function rre(r,e,t){if(e>t){var n=e;e=t,t=n}return Z.has(r[e],t)}function nre(r,e,t,n){var a={},i={},o={};return Z.forEach(e,function(s){Z.forEach(s,function(u,f){a[u]=u,i[u]=u,o[u]=f})}),Z.forEach(e,function(s){var u=-1;Z.forEach(s,function(f){var l=n(f);if(l.length)for(var c=((l=Z.sortBy(l,function(p){return o[p]})).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var v=l[h];i[f]===f&&unew Sre(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{(function(a,i,o){o.name!==i.name&&a.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:i.name}))})(e,t,n)})}),e}class Cre{constructor(e,t={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Vo.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=kn.META,this.path=[],this.name=e,this.metaGraph=zm(e,ou.META,t)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,t=[],n=[this];for(;n.length;){let a=n.shift();a.isGroupNode?(e=a.metaGraph,e.nodes().forEach(i=>n.push(e.node(i)))):t.push(a.name)}return t}}class Tre{constructor(e,t){this.v=e,this.w=t,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,t){this.baseEdgeList.push(e)}}function oN(r,e={}){return new Cre(r,e)}function sN(r,e){return new Tre(r,e)}function zm(r,e,t){const n=t||{},a=new Ere.Graph(n);return a.setGraph({name:r,rankdir:n.rankdir,type:e,align:n.align}),a}class Ire{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=oN(iu,this.graphOptions),this.index[iu]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,t){this.index[e]=t}getBridgeGraph(e){const t=this.index[e];if(!t)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in t))return null;const n=t;if(n.bridgeGraph)return n.bridgeGraph;const a=zm(ZI,ou.BRIDGE,this.graphOptions);if(n.bridgeGraph=a,!t.parentNode||!("metaGraph"in t.parentNode))return a;const i=t.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const u=s.w===e;o.edge(s).baseEdgeList.forEach(f=>{const[l,c]=u?[f.w,s.v]:[f.v,s.w],h=this.getChildName(e,l),d={v:u?c:h,w:u?h:c};let v=a.edge(d);v||(v=sN(d.v,d.w),v.inbound=u,a.setEdge(d.v,d.w,v)),v.addBaseEdge(f,this)})})}),a}getChildName(e,t){let n=this.index[t];for(;n;){if(n.parentNode&&n.parentNode.name===e)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+t)}getPredecessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!0)}getSuccessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!1)}getOneWayEdges(e,t){const n=[];if(!e.parentNode||!e.parentNode.isGroupNode)return n;const a=e.parentNode,i=a.metaGraph,o=this.getBridgeGraph(a.name);return U_(i,e,t,n),U_(o,e,t,n),n}}function kre(r,e){const{rankDirection:t,align:n}=e,a=new Ire({rankdir:t,align:n});return function(i,o){Object.keys(o.nodes).forEach(s=>{const u=o.nodes[s],f=u.path;let l=i.root;l.depth=Math.max(f.length,l.depth);for(let c=0;c{let d=0;for(;c;)h[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{u=[],f=[];let h=l(o.nodes[c.v],u),d=l(o.nodes[c.w],f);for(;u[h]===f[d];)if(h--,d--,h<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[u[h+1]],p=u[h],g=f[d];let y=v.metaGraph.edge(p,g);y||(y=sN(p,g),v.metaGraph.setEdge(p,g,y)),y.addBaseEdge(c,i)})}(a,r),a}function U_(r,e,t,n){(t?r.inEdges(e.name):r.outEdges(e.name)).forEach(a=>{const i=r.edge(a);n.push(i)})}class Nre{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new X_(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const t=this.index[e];if(t.node.type!==kn.META)return;const n=t,a=n.node.metaGraph,i=n.coreGraph;a.nodes().forEach(l=>{const c=this.getOrCreateRenderNodeByName(l);i.setNode(l,c)}),a.edges().forEach(l=>{const c=a.edge(l),h=new $_(c);i.setEdge(l.v,l.w,h)});const o=n.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),u=(l,...c)=>c.concat([l?"IN":"OUT"]).join("~~"),f=this.hierarchy.getBridgeGraph(e);f.edges().forEach(l=>{const c=f.edge(l),h=!!a.node(l.w),[d,v]=h?[l.w,l.v]:[l.v,l.w],p=x=>{const E=h?{v:x,w:e}:{v:e,w:x};return s.coreGraph.edge(E)};let g=p(v);g||(g=p(u(h,v,o.name)));const y=u(h,e),m=u(h,v,e);let b=i.node(m);if(!b){let x=i.node(y);if(!x){const _={name:y,type:kn.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Vo.UNSPECIFIED,inbound:h,attr:{}};x=new hh(_),this.index[y]=x,i.setNode(y,x)}const E={name:m,type:kn.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Vo.UNSPECIFIED,inbound:h,attr:{}};b=new hh(E),this.index[m]=b,i.setNode(m,b),i.setParent(m,y),x.node.cardinality++}const w=new $_(c);w.adjoiningMetaEdge=g,h?i.setEdge(m,d,w):i.setEdge(d,m,w)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const t=this.getNodeByName(e);return t?(this.index[e]=t.isGroupNode?new X_(t,this.hierarchy.graphOptions):new hh(t),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class hh{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class $_{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class X_ extends hh{constructor(e,t){super(e);const n=e.metaGraph.graph();t.compound=!0,this.coreGraph=zm(n.name,ou.CORE,t)}}function uN(r,e){r.node.isGroupNode&&function(t,n){const a=yg(n);t.coreGraph.nodes().map(i=>t.coreGraph.node(i)).forEach(i=>{var o,s,u,f,l,c;const{height:h,width:d}=i;switch(i.node.type){case kn.NODE:Object.assign(i,a.nodeSize.node),i.height=h||a.nodeSize.node.height,i.width=d||a.nodeSize.node.width;break;case kn.BRIDGE:Object.assign(i,a.nodeSize.bridge);break;case kn.META:i.expanded?uN(i,n):(Object.assign(i,a.nodeSize.meta),i.height=a.nodeSize.meta.height,i.width=a.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}if(!i.expanded){const v=i.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const y=`${p.displayName}`.length,m=3;p.width=Math.max(p.coreBox.width,y*m)}})(i,n&&(i.node.type===0&&!!(!((s=(o=n==null?void 0:n.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||i.node.type===1&&(!!(!((f=(u=n==null?void 0:n.nodeSize)===null||u===void 0?void 0:u.node)===null||f===void 0)&&f.width)||!!v.width)||i.node.type===2&&!!(!((c=(l=n==null?void 0:n.nodeSize)===null||l===void 0?void 0:l.bridge)===null||c===void 0)&&c.width)))}})}(r,e),r.node.type===kn.META&&function(t,n){const a=yg(n),i=a.subScene.meta;Object.assign(t,i);const{nodeSep:o,rankSep:s,edgeSep:u,align:f}=a.graph.meta,l={nodesep:o,ranksep:s,edgesep:u,align:f};Object.assign(t.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:y,align:m}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:y,align:m});const b=[];if(d.nodes().forEach(S=>{d.node(S).node.type!==kn.BRIDGE&&b.push(S)}),!b.length)return{width:0,height:0};_re(d);let w=1/0,x=1/0,E=-1/0,_=-1/0;return b.forEach(S=>{const A=d.node(S),M=.5*A.width,C=A.x-M,I=A.x+M;w=CE?I:E;const k=.5*A.height,O=A.y-k,B=A.y+k;x=O_?B:_}),d.edges().forEach(S=>{const A=d.edge(S),M=d.node(A.metaEdge.v),C=d.node(A.metaEdge.w);if(A.points.length===3&&function(O){let B=W_(O[0],O[1]);for(let L=1;L1)return!1;B=z}return!0}(A.points)){if(M!=null){const O=M.expanded?M.x:Cg(M);A.points[0].x=O}if(C!=null){const O=C.expanded?C.x:Cg(C);A.points[2].x=O}A.points=[A.points[0],A.points[1]]}const I=A.points[A.points.length-2];C!=null&&(A.points[A.points.length-1]=V_(I,C));const k=A.points[1];M!=null&&(A.points[0]=V_(k,M)),A.points.forEach(O=>{w=O.xE?O.x:E,x=O.y_?O.y:_})}),d.nodes().forEach(S=>{const A=d.node(S);A.x-=w,A.y-=x}),d.edges().forEach(S=>{d.edge(S).points.forEach(A=>{A.x-=w,A.y-=x})}),{width:E-w,height:_-x}}(t.coreGraph,l));let c=0;t.coreGraph.nodeCount()>0&&c++;const h=c<=1?0:c;t.coreBox.width+=h+h,t.coreBox.height=i.labelHeight+t.coreBox.height,t.width=t.coreBox.width+i.paddingLeft+i.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom}(r,e)}function W_(r,e){const t=e.x-r.x,n=e.y-r.y;return 180*Math.atan(n/t)/Math.PI}function Cg(r){return r.expanded?r.x:r.x-r.width/2+0+r.coreBox.width/2}function V_(r,e){const t=e.expanded?e.x:Cg(e),n=e.y,a=r.x-t,i=r.y-n;let o,s,u=e.expanded?e.width:e.coreBox.width,f=e.expanded?e.height:e.coreBox.height;return Math.abs(i)*u/2>Math.abs(a)*f/2?(i<0&&(f=-f),o=i===0?0:f/2*a/i,s=f/2):(a<0&&(u=-u),o=u/2,s=a===0?0:u/2*i/a),{x:t+o,y:n+s}}function Ore(r,e,t){var n,a,i,o;const s=r.nodes.filter((c,h,d)=>d.findIndex(v=>v.id===c.id)!==h).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const u=function(c){const h={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(m,b=[])=>{if(p.has(m))return p.get(m);for(let w=0;wc.edges.filter(b=>b.w===m).map(b=>({name:b.v}));return c.nodes.forEach(m=>{const b=m.id,w=[...g(b),b];let x=y(b);h.nodes.push({name:b,path:w,inputs:x,width:m.width,height:m.height,attr:Object.assign({},m)})}),h}(r),f=function(c,h){const d=(p,g)=>{for(let y of g.values())if(y.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const y=new Map(Object.keys(p).map(b=>[b,p[b]])),m={};for(let[b,w]of y)d(b,y)?m[b]=w:g=g.concat(b,w);return v(m,g)};return v(c).filter(p=>h.includes(p))}(r.compound||{},(e==null?void 0:e.expanded)||[]),l=function(c,h){return function(d){return new Nre(d)}(kre(Are(c),h))}(u,{rankDirection:((a=(n=t==null?void 0:t.graph)===null||n===void 0?void 0:n.meta)===null||a===void 0?void 0:a.rankDir)||(e==null?void 0:e.rankDirection)||Vh.graph.meta.rankDir,align:((o=(i=t==null?void 0:t.graph)===null||i===void 0?void 0:i.meta)===null||o===void 0?void 0:o.align)||Vh.graph.meta.align});return function(c,h){h.forEach(d=>{const v=c.getRenderInfoNodes().find(y=>y.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(l,f),uN(l.root,t),fN(l.root)}function Lre(r,e=!1){const t=JSON.parse(JSON.stringify(r)),n={nodes:[t],edges:[...t.edges]};return t.nodes.forEach(function a(i){(i.type===0||i.type===1)&&n.nodes.push(i),i.type===0&&(n.edges=n.edges.concat(i.edges)),Array.isArray(i.nodes)&&i.nodes.forEach(a)}),e&&n.nodes.forEach(a=>{const i=n.nodes.find(o=>o.id===a.parentNodeName);if(i){const o=i.x-i.width/2+i.paddingLeft,s=i.y-i.height/2+i.labelHeight+i.paddingTop;i.id!==iu&&(a.x+=o,a.y+=s),a.type===0&&a.edges.forEach(u=>{u.points.forEach(f=>{f.x+=a.x-a.width/2+a.paddingLeft,f.y+=a.y-a.height/2+a.labelHeight+a.paddingTop})})}}),n}function Dre(r,e,t,n){var a,i;let o=[];const s=((a=t.find(c=>c.id===r))===null||a===void 0?void 0:a.path)||[],u=((i=t.find(c=>c.id===e))===null||i===void 0?void 0:i.path)||[],f=[iu,...s].slice(0,s.length).reverse(),l=[iu,...u].slice(0,u.length);return f.forEach(c=>{const h=t.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||r)&&v.w===((n==null?void 0:n.w)||e))))}),l.filter(c=>!f.includes(c)).forEach(c=>{const h=t.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||r)&&v.w===((n==null?void 0:n.w)||e))))}),o}function fN(r){const e=r.coreGraph.nodes().map(n=>r.coreGraph.node(n));return Object.assign(Object.assign({},Y_(r)),{expanded:r.expanded,nodes:r.expanded?(t=e,t.map(n=>n.node.type===kn.META?fN(n):Y_(n))):[],edges:r.expanded?Pre(r):[]});var t}function Y_(r){return{id:r.node.name,name:r.node.name,type:r.node.type,cardinality:r.node.cardinality,attr:r.attr,parentNodeName:r.node.parentNode?r.node.parentNode.name:null,coreBox:Object.assign({},r.coreBox),x:r.x,y:r.y,width:r.width,height:r.height,radius:r.radius,labelHeight:r.labelHeight,labelOffset:r.labelOffset,outboxWidth:r.outboxWidth,paddingLeft:r.paddingLeft,paddingTop:r.paddingTop,paddingRight:r.paddingRight,paddingBottom:r.paddingBottom,path:r.node.path}}function Pre(r){return r.coreGraph.edges().map(e=>({renderInfoEdge:r.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:t})=>{const n=function(a,i){const o=i.points.map(s=>Object.assign({},s));if(i.adjoiningMetaEdge){const s=i.adjoiningMetaEdge.points,u=i.metaEdge.inbound,f=u?s[s.length-1]:s[0],l=o[u?0:o.length-1],c=a.x-a.width/2,h=a.y-a.height/2,d=f.x-c,v=f.y-h,p=-a.paddingLeft,g=-(a.paddingTop+a.labelHeight);l.x=d+p,l.y=v+g}return o}(r,t);return{adjoiningEdge:t.adjoiningMetaEdge?{w:t.adjoiningMetaEdge.metaEdge.w,v:t.adjoiningMetaEdge.metaEdge.v}:null,inbound:t.metaEdge.inbound,w:e.w,v:e.v,points:n,weight:t.weight,baseEdgeList:t.metaEdge.baseEdgeList,parentNodeName:r.node.name}})}const Rre=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:ZI,get GraphType(){return ou},get HierarchyNodeType(){return mg},get InclusionType(){return Vo},LAYOUT_CONFIG:Vh,get NodeType(){return kn},ROOT_NAME:iu,buildGraph:Ore,flatGraph:Lre,getEdges:Dre,mergeConfig:yg},Symbol.toStringTag,{value:"Module"})),Fre=Ka(Rre);var Bre=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),va=me&&me.__assign||function(){return va=Object.assign||function(r){for(var e,t=1,n=arguments.length;tf.x&&(s=f.x),u>f.y&&(u=f.y)}),n.forEach(function(f){f.points.forEach(function(l){s>l.x&&(s=l.x),u>l.y&&(u=l.y)})}),o[0]=i[0]-s,o[1]=i[1]-u}return o},e.prototype.updateNodePosition=function(t,n){var a=this,i=a.combos,o=a.nodes,s=a.edges,u=a.anchorPoint,f=a.graphSettings,l=this.getBegin(t,n);t.forEach(function(c){var h,d=c.x,v=c.y,p=c.id,g=c.type,y=c.coreBox;if(g===Hn.HierarchyNodeType.META&&p!==Hn.ROOT_NAME){var m=i.findIndex(function(_){return _.id===p}),b=(h=f==null?void 0:f.subScene)===null||h===void 0?void 0:h.meta;i[m].offsetX=d+l[0],i[m].offsetY=v+l[1],i[m].fixSize=[y.width,y.height],i[m].fixCollapseSize=[y.width,y.height],c.expanded?i[m].padding=[b==null?void 0:b.paddingTop,b==null?void 0:b.paddingRight,b==null?void 0:b.paddingBottom,b==null?void 0:b.paddingLeft]:i[m].padding=[0,0,0,0]}else if(g===Hn.HierarchyNodeType.OP){var m=o.findIndex(function(S){return S.id===p});if(o[m].x=d+l[0],o[m].y=v+l[1],u){var w=[],x=n.filter(function(S){return S.v===p}),E=n.filter(function(S){return S.w===p});x.length>0&&x.forEach(function(S){var A=S.points[0],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.sourceAnchor=w.length-1)})}),E.length>0&&E.forEach(function(S){var A=S.points[S.points.length-1],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.targetAnchor=w.length-1)})}),o[m].anchorPoints=w.length>0?w:o[m].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,n){var a=this,i=a.combos,o=a.edges,s=a.controlPoints,u=this.getBegin(t,n);s&&(i.forEach(function(f){f.inEdges=[],f.outEdges=[]}),o.forEach(function(f){var l,c,h,d,v=t.find(function(_){return _.id===f.source}),p=t.find(function(_){return _.id===f.target}),g=[],y=[];if(v&&p)y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t);else if(!v||!p){var m=a.getNodePath(f.source),b=a.getNodePath(f.target),w=m.reverse().slice(v?0:1).find(function(_){return t.find(function(S){return S.id===_})}),x=b.reverse().slice(p?0:1).find(function(_){return t.find(function(S){return S.id===_})});v=t.find(function(_){return _.id===w}),p=t.find(function(_){return _.id===x}),y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t,{v:f.source,w:f.target})}if(g=y.reduce(function(_,S){return Ss(Ss([],_,!0),S.points.map(function(A){return va(va({},A),{x:A.x+u[0],y:A.y+u[1]})}),!0)},[]),g=g.slice(1,-1),f.controlPoints=g,(p==null?void 0:p.type)===Hn.NodeType.META){var E=i.findIndex(function(_){return _.id===(p==null?void 0:p.id)});if(!i[E]||!((l=i[E].inEdges)===null||l===void 0)&&l.some(function(_){return _.source===v.id&&_.target===p.id}))return;(c=i[E].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Hn.NodeType.META){var E=i.findIndex(function(S){return S.id===(v==null?void 0:v.id)});if(!i[E]||!((h=i[E].outEdges)===null||h===void 0)&&h.some(function(S){return S.source===v.id&&S.target===p.id}))return;(d=i[E].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every(function(n){return n.layoutOrder!==void 0})||t.forEach(function(n,a){n.layoutOrder=a}),t.sort(function(n,a){return n.layoutOrder-a.layoutOrder})},e}(Gre.Base);ul.DagreCompoundLayout=zre;var jm={},tv={},Um={};const jre=Object.prototype.toString;function ed(r){const e=jre.call(r);return e.endsWith("Array]")&&!e.includes("Big")}function Ure(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ed(r))throw new TypeError("input must be an array");if(r.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,n=t===void 0?0:t,a=e.toIndex,i=a===void 0?r.length:a;if(n<0||n>=r.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>r.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=r[n],s=n+1;so&&(o=r[s]);return o}function $re(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ed(r))throw new TypeError("input must be an array");if(r.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,n=t===void 0?0:t,a=e.toIndex,i=a===void 0?r.length:a;if(n<0||n>=r.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>r.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=r[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(ed(r)){if(r.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var t;if(e.output!==void 0){if(!ed(e.output))throw new TypeError("output option must be an array if specified");t=e.output}else t=new Array(r.length);var n=$re(r),a=Ure(r);if(n===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=e.min,o=i===void 0?e.autoMinMax?n:0:i,s=e.max,u=s===void 0?e.autoMinMax?a:1:s;if(o>=u)throw new RangeError("min option must be smaller than max option");for(var f=(u-o)/(a-n),l=0;l>n);return this},r.prototype.signPropagatingRightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>n.get(a,i));return this},r.signPropagatingRightShift=function(n,a){return new e(n).signPropagatingRightShift(a)},r.prototype.rightShift=function(n){return typeof n=="number"?this.rightShiftS(n):this.rightShiftM(n)},r.prototype.rightShiftS=function(n){for(let a=0;a>>n);return this},r.prototype.rightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>>n.get(a,i));return this},r.rightShift=function(n,a){return new e(n).rightShift(a)},r.prototype.zeroFillRightShift=r.prototype.rightShift,r.prototype.zeroFillRightShiftS=r.prototype.rightShiftS,r.prototype.zeroFillRightShiftM=r.prototype.rightShiftM,r.zeroFillRightShift=r.rightShift,r.prototype.not=function(){for(let n=0;nn)throw new RangeError("Row index out of range")}function ea(r,e,t){let n=t?r.columns:r.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function Ps(r,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==r.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function Rs(r,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==r.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function hN(r,e,t){return{row:dN(r,e),column:vN(r,t)}}function dN(r,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(n=>n<0||n>=r.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function vN(r,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(n=>n<0||n>=r.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Tg(r,e,t,n,a){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(Oc("startRow",e),Oc("endRow",t),Oc("startColumn",n),Oc("endColumn",a),e>t||n>a||e<0||e>=r.rows||t<0||t>=r.rows||n<0||n>=r.columns||a<0||a>=r.columns)throw new RangeError("Submatrix indices are out of range")}function rv(r,e=0){let t=[];for(let n=0;n=i)throw new RangeError("min must be smaller than max");let s=i-a,u=new lt(e,t);for(let f=0;fn?(i=!0,n=t):(a=!1,i=!0);e++}return a}isReducedEchelonForm(){let e=0,t=0,n=-1,a=!0,i=!1;for(;en?(i=!0,n=t):(a=!1,i=!0);for(let o=t+1;oe.get(a,n)&&(a=i);if(e.get(a,n)===0)n++;else{e.swapRows(t,a);let i=e.get(t,n);for(let o=n;o=0;)if(e.maxRow(a)===0)a--;else{let i=0,o=!1;for(;ie&&(e=this.get(t,n));return e}maxIndex(){let e=this.get(0,0),t=[0,0];for(let n=0;ne&&(e=this.get(n,a),t[0]=n,t[1]=a);return t}min(){let e=this.get(0,0);for(let t=0;tt&&(t=this.get(e,n));return t}maxRowIndex(e){Jn(this,e);let t=this.get(e,0),n=[e,0];for(let a=1;at&&(t=this.get(e,a),n[1]=a);return n}minRow(e){Jn(this,e);let t=this.get(e,0);for(let n=1;nt&&(t=this.get(n,e));return t}maxColumnIndex(e){ea(this,e);let t=this.get(0,e),n=[0,e];for(let a=1;at&&(t=this.get(a,e),n[0]=a);return n}minColumn(e){ea(this,e);let t=this.get(0,e);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;i=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;in||t<0||t>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let a=new lt(e.length,n-t+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${e[i]}`);a.set(i,o-t,this.get(e[i],o))}return a}subMatrixColumn(e,t,n){if(t===void 0&&(t=0),n===void 0&&(n=this.rows-1),t>n||t<0||t>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let a=new lt(n-t+1,e.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${e[i]}`);a.set(o-t,i,this.get(o,e[i]))}return a}setSubMatrix(e,t,n){e=lt.checkMatrix(e);let a=t+e.rows-1,i=n+e.columns-1;Tg(this,t,a,n,i);for(let o=0;o0)if(this.data=[],Number.isInteger(t)&&t>0)for(let n=0;n"u"&&(t=e,e=this.columns),ea(this,e,!0),t=Rs(this,t);for(let n=0;nMath.abs(v[l])&&(l=s);if(l!==u){for(f=0;f=0;f--){for(u=0;uo?a.set(i,o,e.get(i,o)):i===o?a.set(i,o,1):a.set(i,o,0);return a}get upperTriangularMatrix(){let e=this.LU,t=e.rows,n=e.columns,a=new lt(t,n);for(let i=0;iMath.abs(e)?(t=e/r,Math.abs(r)*Math.sqrt(1+t*t)):e!==0?(t=r/e,Math.abs(e)*Math.sqrt(1+t*t)):0}class Ig{constructor(e){e=Wn.checkMatrix(e);let t=e.clone(),n=e.rows,a=e.columns,i=new Float64Array(a),o,s,u,f;for(u=0;u=0;f--){for(u=0;u=0;s--){for(i=0;i=0;M--)if(v[M]!==0){for(let C=M+1;C=0;M--){if(M0;){let M,C;for(M=_-2;M>=-1&&M!==-1;M--){const I=Number.MIN_VALUE+A*Math.abs(v[M]+Math.abs(v[M+1]));if(Math.abs(y[M])<=I||Number.isNaN(y[M])){y[M]=0;break}}if(M===_-2)C=4;else{let I;for(I=_-1;I>=M&&I!==M;I--){let k=(I!==_?Math.abs(y[I]):0)+(I!==M+1?Math.abs(y[I-1]):0);if(Math.abs(v[I])<=A*k){v[I]=0;break}}I===M?C=3:I===_-1?C=1:(C=2,M=I)}switch(M++,C){case 1:{let I=y[_-2];y[_-2]=0;for(let k=_-2;k>=M;k--){let O=hi(v[k],I),B=v[k]/O,L=I/O;if(v[k]=O,k!==M&&(I=-L*y[k-1],y[k-1]=B*y[k-1]),f)for(let z=0;z=v[M+1]);){let I=v[M];if(v[M]=v[M+1],v[M+1]=I,f&&Mt&&i.set(l,c,e.get(l,c)/this.s[c]);let o=this.U,s=o.rows,u=o.columns,f=new lt(n,s);for(let l=0;le&&t++;return t}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return lt.diag(this.s)}}function xne(r,e=!1){return r=Wn.checkMatrix(r),e?new fu(r).inverse():gN(r,lt.eye(r.rows))}function gN(r,e,t=!1){return r=Wn.checkMatrix(r),e=Wn.checkMatrix(e),t?new fu(r).solve(e):r.isSquare()?new td(r).solve(e):new Ig(r).solve(e)}function vh(r){if(r=lt.checkMatrix(r),r.isSquare()){let e,t,n,a;if(r.columns===2)return e=r.get(0,0),t=r.get(0,1),n=r.get(1,0),a=r.get(1,1),e*a-t*n;if(r.columns===3){let i,o,s;return i=new dh(r,[1,2],[1,2]),o=new dh(r,[1,2],[0,2]),s=new dh(r,[1,2],[0,1]),e=r.get(0,0),t=r.get(0,1),n=r.get(0,2),e*vh(i)-t*vh(o)+n*vh(s)}else return new td(r).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Ene(r,e){let t=[];for(let n=0;na)return new Array(e.rows+1).fill(0);{let i=e.addRow(t,[0]);for(let o=0;oe?i[o]=1/i[o]:i[o]=0;return a.mmul(lt.diag(i).mmul(n.transpose()))}function Ane(r,e=r,t={}){r=new lt(r);let n=!1;if(typeof e=="object"&&!lt.isMatrix(e)&&!Array.isArray(e)?(t=e,e=r,n=!0):e=new lt(e),r.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:a=!0}=t;a&&(r=r.center("column"),n||(e=e.center("column")));const i=r.transpose().mmul(e);for(let o=0;o0?a.set(i,i+1,t[i]):t[i]<0&&a.set(i,i-1,t[i])}return a}}function Tne(r,e,t,n){let a,i,o,s,u,f,l,c;for(u=0;u0;s--){for(c=0,o=0,f=0;f0&&(i=-i),e[s]=c*i,o=o-a*i,t[s-1]=a-i,u=0;uf)do{for(a=t[f],c=(t[f+1]-a)/(2*e[f]),h=hi(c,1),c<0&&(h=-h),t[f]=e[f]/(c+h),t[f+1]=e[f]*(c+h),d=t[f+1],i=a-t[f],o=f+2;o=f;o--)for(g=p,p=v,b=m,a=v*e[o],i=v*c,h=hi(c,e[o]),e[o+1]=m*h,m=e[o]/h,v=c/h,c=v*t[o]-m*a,t[o+1]=i+m*(v*a+m*t[o]),u=0;uE*x);t[f]=t[f]+w,e[f]=0}for(o=0;o=c;f--)t[f]=e.get(f,c-1)/h,u+=t[f]*t[f];for(s=Math.sqrt(u),t[c]>0&&(s=-s),u=u-t[c]*s,t[c]=t[c]-s,l=c;l=c;f--)o+=t[f]*e.get(f,l);for(o=o/u,f=c;f<=i;f++)e.set(f,l,e.get(f,l)-o*t[f])}for(f=0;f<=i;f++){for(o=0,l=i;l>=c;l--)o+=t[l]*e.get(f,l);for(o=o/u,l=c;l<=i;l++)e.set(f,l,e.get(f,l)-o*t[l])}t[c]=h*t[c],e.set(c,c-1,h*s)}}for(f=0;f=a+1;c--)if(e.get(c,c-1)!==0){for(f=c+1;f<=i;f++)t[f]=e.get(f,c-1);for(l=c;l<=i;l++){for(s=0,f=c;f<=i;f++)s+=t[f]*n.get(f,l);for(s=s/t[c]/e.get(c,c-1),f=c;f<=i;f++)n.set(f,l,n.get(f,l)+s*t[f])}}}function Nne(r,e,t,n,a){let i=r-1,o=0,s=r-1,u=Number.EPSILON,f=0,l=0,c=0,h=0,d=0,v=0,p=0,g=0,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;for(y=0;ys)&&(t[y]=a.get(y,y),e[y]=0),m=Math.max(y-1,0);m=o;){for(w=i;w>o&&(v=Math.abs(a.get(w-1,w-1))+Math.abs(a.get(w,w)),v===0&&(v=l),!(Math.abs(a.get(w,w-1))=0){for(p=c>=0?c+p:c-p,t[i-1]=S+p,t[i]=t[i-1],p!==0&&(t[i]=S-_/p),e[i-1]=0,e[i]=0,S=a.get(i,i-1),v=Math.abs(S)+Math.abs(p),c=S/v,h=p/v,d=Math.sqrt(c*c+h*h),c=c/d,h=h/d,m=i-1;m0)){for(v=Math.sqrt(v),A=w&&(p=a.get(x,x),d=S-p,v=A-p,c=(d*v-_)/a.get(x+1,x)+a.get(x,x+1),h=a.get(x+1,x+1)-p-d-v,d=a.get(x+2,x+1),v=Math.abs(c)+Math.abs(h)+Math.abs(d),c=c/v,h=h/v,d=d/v,!(x===w||Math.abs(a.get(x,x-1))*(Math.abs(h)+Math.abs(d))x+2&&a.set(y,y-3,0);for(b=x;b<=i-1&&(O=b!==i-1,b!==x&&(c=a.get(b,b-1),h=a.get(b+1,b-1),d=O?a.get(b+2,b-1):0,S=Math.abs(c)+Math.abs(h)+Math.abs(d),S!==0&&(c=c/S,h=h/S,d=d/S)),S!==0);b++)if(v=Math.sqrt(c*c+h*h+d*d),c<0&&(v=-v),v!==0){for(b!==x?a.set(b,b-1,-v*S):w!==x&&a.set(b,b-1,-a.get(b,b-1)),c=c+v,S=c/v,A=h/v,p=d/v,h=h/c,d=d/c,m=b;m=0;i--)if(c=t[i],h=e[i],h===0)for(w=i,a.set(i,i,1),y=i-1;y>=0;y--){for(_=a.get(y,y)-c,d=0,m=w;m<=i;m++)d=d+a.get(y,m)*a.get(m,i);if(e[y]<0)p=_,v=d;else if(w=y,e[y]===0?a.set(y,i,_!==0?-d/_:-d/(u*l)):(S=a.get(y,y+1),A=a.get(y+1,y),h=(t[y]-c)*(t[y]-c)+e[y]*e[y],E=(S*v-p*d)/h,a.set(y,i,E),a.set(y+1,i,Math.abs(S)>Math.abs(p)?(-d-_*E)/S:(-v-A*E)/p)),E=Math.abs(a.get(y,i)),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i,a.get(m,i)/E)}else if(h<0)for(w=i-1,Math.abs(a.get(i,i-1))>Math.abs(a.get(i-1,i))?(a.set(i-1,i-1,h/a.get(i,i-1)),a.set(i-1,i,-(a.get(i,i)-c)/a.get(i,i-1))):(B=Lc(0,-a.get(i-1,i),a.get(i-1,i-1)-c,h),a.set(i-1,i-1,B[0]),a.set(i-1,i,B[1])),a.set(i,i-1,0),a.set(i,i,1),y=i-2;y>=0;y--){for(M=0,C=0,m=w;m<=i;m++)M=M+a.get(y,m)*a.get(m,i-1),C=C+a.get(y,m)*a.get(m,i);if(_=a.get(y,y)-c,e[y]<0)p=_,d=M,v=C;else if(w=y,e[y]===0?(B=Lc(-M,-C,_,h),a.set(y,i-1,B[0]),a.set(y,i,B[1])):(S=a.get(y,y+1),A=a.get(y+1,y),I=(t[y]-c)*(t[y]-c)+e[y]*e[y]-h*h,k=(t[y]-c)*2*h,I===0&&k===0&&(I=u*l*(Math.abs(_)+Math.abs(h)+Math.abs(S)+Math.abs(A)+Math.abs(p))),B=Lc(S*d-p*M+h*C,S*v-p*C-h*M,I,k),a.set(y,i-1,B[0]),a.set(y,i,B[1]),Math.abs(S)>Math.abs(p)+Math.abs(h)?(a.set(y+1,i-1,(-M-_*a.get(y,i-1)+h*a.get(y,i))/S),a.set(y+1,i,(-C-_*a.get(y,i)-h*a.get(y,i-1))/S)):(B=Lc(-d-A*a.get(y,i-1),-v-A*a.get(y,i),p,h),a.set(y+1,i-1,B[0]),a.set(y+1,i,B[1]))),E=Math.max(Math.abs(a.get(y,i-1)),Math.abs(a.get(y,i))),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i-1,a.get(m,i-1)/E),a.set(m,i,a.get(m,i)/E)}for(y=0;ys)for(m=y;m=o;m--)for(y=o;y<=s;y++){for(p=0,b=o;b<=Math.min(m,s);b++)p=p+n.get(y,b)*a.get(b,m);n.set(y,m,p)}}}function Lc(r,e,t,n){let a,i;return Math.abs(t)>Math.abs(n)?(a=n/t,i=t+a*n,[(r+a*e)/i,(e-a*r)/i]):(a=t/n,i=n+a*t,[(a*r+e)/i,(a*e-r)/i])}class K_{constructor(e){if(e=Wn.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let t=e,n=t.rows,a=new lt(n,n),i=!0,o,s,u;for(s=0;s0,a.set(s,s,Math.sqrt(Math.max(f,0))),u=s+1;u=0;u--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),f=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(u=f.clone().sub(h).pow(2).sum()),h=f.clone(),n?(l=n.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),l=l.div(l.norm()),s=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):s=f;if(n){let d=e.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0));d=d.div(d.norm());let v=e.clone().sub(f.clone().mmul(d.transpose())),p=s.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),g=n.clone().sub(f.clone().mulS(p.get(0,0)).mmul(l.transpose()));this.t=f,this.p=d.transpose(),this.w=c.transpose(),this.q=l,this.u=s,this.s=f.transpose().mmul(f),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=f.transpose().mmul(f).sqrt(),a?this.t=f.clone().div(this.s.get(0,0)):this.t=f,this.xResidual=e.sub(f.mmul(c.transpose()))}}const One=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Xt,CHO:K_,CholeskyDecomposition:K_,EVD:Z_,EigenvalueDecomposition:Z_,LU:td,LuDecomposition:td,Matrix:lt,MatrixColumnSelectionView:dne,MatrixColumnView:hne,MatrixFlipColumnView:vne,MatrixFlipRowView:pne,MatrixRowSelectionView:yne,MatrixRowView:gne,MatrixSelectionView:dh,MatrixSubView:mne,MatrixTransposeView:bne,NIPALS:Q_,Nipals:Q_,QR:Ig,QrDecomposition:Ig,SVD:fu,SingularValueDecomposition:fu,WrapperMatrix1D:pN,WrapperMatrix2D:Wn,correlation:Cne,covariance:Ane,default:lt,determinant:vh,inverse:xne,linearDependencies:Sne,pseudoInverse:Mne,solve:gN,wrap:wne},Symbol.toStringTag,{value:"Module"})),yN=Ka(One);Object.defineProperty(Um,"__esModule",{value:!0});var Hu=yN,Lne=function(){function r(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return r.prototype.layout=function(){var e=this,t=e.dimension,n=e.distances,a=e.linkDistance;try{var i=Hu.Matrix.mul(Hu.Matrix.pow(n,2),-.5),o=i.mean("row"),s=i.mean("column"),u=i.mean();i.add(u).subRowVector(o).subColumnVector(s);var f=new Hu.SingularValueDecomposition(i),l=Hu.Matrix.sqrt(f.diagonalMatrix).diagonal();return f.leftSingularVectors.toJSON().map(function(p){return Hu.Matrix.mul([p],[l]).toJSON()[0].splice(0,t)})}catch{for(var c=[],h=0;hl?1:-1;c=.01*v,h=.01*v}if(dMath.PI/2&&(y-=Math.PI/2,v*=-1,p*=-1);var m=Math.cos(y)*g;f.x=v*m,f.y=p*m});var u=e.radii;t.forEach(function(f,l){if(l!==o){var c=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(c>0&&l!==o){var h=Math.min(s*(a/Dne),c);if(f[0]+=n[l].x/c*h,f[1]+=n[l].y/c*h,i){var d=f[0]-t[o][0],v=f[1]-t[o][1],p=Math.sqrt(d*d+v*v);d=d/p*u[l],v=v/p*u[l],f[0]=t[o][0]+d,f[1]=t[o][1]+v}}}})},r}();$m.default=Pne;var Rne=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mN=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(tv,"__esModule",{value:!0});tv.RadialLayout=void 0;var Zn=Ir(),Fne=Rr,Bne=mN(Um),Gne=mN($m);function zne(r){for(var e=r.length,t=r[0].length,n=[],a=0;ai[0]?i[0]:p-i[0],m=g-i[1]>i[1]?i[1]:g-i[1];y===0&&(y=p/2),m===0&&(m=g/2);var b=m>y?y:m,w=Math.max.apply(Math,v),x=[];v.forEach(function(X,R){t.unitRadius||(t.unitRadius=b/w),x[R]=X*t.unitRadius}),t.radii=x;var E=t.eIdealDisMatrix();t.eIdealDistances=E;var _=zne(E);t.weights=_;var S=new Bne.default({linkDistance:o,distances:E}),A=S.layout();A.forEach(function(X){(0,Zn.isNaN)(X[0])&&(X[0]=Math.random()*o),(0,Zn.isNaN)(X[1])&&(X[1]=Math.random()*o)}),t.positions=A,A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),A.forEach(function(X){X[0]-=A[l][0],X[1]-=A[l][1]}),t.run();var M=t.preventOverlap,C=t.nodeSize,I,k=t.strictRadial;if(M){var O=t.nodeSpacing,B;(0,Zn.isNumber)(O)?B=function(){return O}:(0,Zn.isFunction)(O)?B=O:B=function(){return 0},C?(0,Zn.isArray)(C)?I=function(X){var R=C[0]>C[1]?C[0]:C[1];return R+B(X)}:I=function(X){return C+B(X)}:I=function(X){if(X.size){if((0,Zn.isArray)(X.size)){var R=X.size[0]>X.size[1]?X.size[0]:X.size[1];return R+B(X)}if((0,Zn.isObject)(X.size)){var R=X.size.width>X.size.height?X.size.width:X.size.height;return R+B(X)}return X.size+B(X)}return 10+B(X)};var L={nodes:n,nodeSizeFunc:I,adjMatrix:c,positions:A,radii:x,height:g,width:p,strictRadial:k,focusID:l,iterations:t.maxPreventOverlapIteration||200,k:A.length/4.5},z=new Gne.default(L);A=z.layout()}return A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a}},e.prototype.run=function(){for(var t=this,n=t.maxIteration,a=t.positions||[],i=t.weights||[],o=t.eIdealDistances||[],s=t.radii||[],u=0;u<=n;u++){var f=u/n;t.oneIteration(f,a,s,o,i)}},e.prototype.oneIteration=function(t,n,a,i,o){var s=this,u=1-t,f=s.focusIndex;n.forEach(function(l,c){var h=J_(l,[0,0]),d=h===0?0:1/h;if(c!==f){var v=0,p=0,g=0;n.forEach(function(m,b){if(c!==b){var w=J_(l,m),x=w===0?0:1/w,E=i[b][c];g+=o[c][b],v+=o[c][b]*(m[0]+E*(l[0]-m[0])*x),p+=o[c][b]*(m[1]+E*(l[1]-m[1])*x)}});var y=a[c]===0?0:1/a[c];g*=u,g+=t*y*y,v*=u,v+=t*y*l[0]*d,l[0]=v/g,p*=u,p+=t*y*l[1]*d,l[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var t=this,n=t.nodes;if(!n)return[];var a=t.distances,i=t.linkDistance,o=t.radii||[],s=t.unitRadius||50,u=[];return a&&a.forEach(function(f,l){var c=[];f.forEach(function(h,d){if(l===d)c.push(0);else if(o[l]===o[d])if(t.sortBy==="data")c.push(h*(Math.abs(l-d)*t.sortStrength)/(o[l]/s));else if(t.sortBy){var v=n[l][t.sortBy]||0,p=n[d][t.sortBy]||0;(0,Zn.isString)(v)&&(v=v.charCodeAt(0)),(0,Zn.isString)(p)&&(p=p.charCodeAt(0)),c.push(h*(Math.abs(v-p)*t.sortStrength)/(o[l]/s))}else c.push(h*i/(o[l]/s));else{var g=(i+s)/2;c.push(h*g)}}),u.push(c)}),u},e.prototype.handleInfinity=function(t,n,a){for(var i=t.length,o=0;oa?t[n][i]:a);return a},e.prototype.getType=function(){return"radial"},e}(Fne.Base);tv.RadialLayout=Une;(function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(tv,r)})(jm);var dl={},$ne=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dl,"__esModule",{value:!0});dl.ConcentricLayout=void 0;var Na=Ir(),Xne=Rr,Wne=function(r){$ne(e,r);function e(t){var n=r.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=3/2*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t,n,a=this,i=a.nodes,o=a.edges,s=i.length;if(s===0){(t=a.onLayoutEnd)===null||t===void 0||t.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var u=a.center;if(s===1){i[0].x=u[0],i[0].y=u[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var f=a.nodeSize,l=a.nodeSpacing,c=[],h,d=0;(0,Na.isArray)(f)?h=Math.max(f[0],f[1]):h=f,(0,Na.isArray)(l)?d=Math.max(l[0],l[1]):(0,Na.isNumber)(l)&&(d=l),i.forEach(function(k){c.push(k);var O=h;(0,Na.isArray)(k.size)?O=Math.max(k.size[0],k.size[1]):(0,Na.isNumber)(k.size)?O=k.size:(0,Na.isObject)(k.size)&&(O=Math.max(k.size.width,k.size.height)),h=Math.max(h,O),(0,Na.isFunction)(l)&&(d=Math.max(l(k),d))}),a.clockwise=a.counterclockwise!==void 0?!a.counterclockwise:a.clockwise;var v={},p={};if(c.forEach(function(k,O){v[k.id]=k,p[k.id]=O}),(a.sortBy==="degree"||!(0,Na.isString)(a.sortBy)||c[0][a.sortBy]===void 0)&&(a.sortBy="degree",!(0,Na.isNumber)(i[0].degree))){var g=(0,Na.getDegree)(i.length,p,o);c.forEach(function(k,O){k.degree=g[O].all})}c.sort(function(k,O){return O[a.sortBy]-k[a.sortBy]}),a.maxValueNode=c[0],a.maxLevelDiff=a.maxLevelDiff||a.maxValueNode[a.sortBy]/4;var y=[[]],m=y[0];c.forEach(function(k){if(m.length>0){var O=Math.abs(m[0][a.sortBy]-k[a.sortBy]);a.maxLevelDiff&&O>=a.maxLevelDiff&&(m=[],y.push(m))}m.push(k)});var b=h+(d||a.minNodeSpacing);if(!a.preventOverlap){var w=y.length>0&&y[0].length>1,x=Math.min(a.width,a.height)/2-b,E=x/(y.length+(w?1:0));b=Math.min(b,E)}var _=0;if(y.forEach(function(k){var O=a.sweep;O===void 0&&(O=2*Math.PI-2*Math.PI/k.length);var B=k.dTheta=O/Math.max(1,k.length-1);if(k.length>1&&a.preventOverlap){var L=Math.cos(B)-Math.cos(0),z=Math.sin(B)-Math.sin(0),X=Math.sqrt(b*b/(L*L+z*z));_=Math.max(X,_)}k.r=_,_+=b}),a.equidistant){for(var S=0,A=0,M=0;M"u")return;var h=0;this.timeInterval=window.setInterval(function(){var d;n.runOneStep(l),h++,h>=o&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))},0)}return{nodes:a,edges:i}}},e.prototype.runOneStep=function(t){var n,a=this,i=a.nodes;if(i){var o=a.edges,s=a.center,u=a.gravity,f=a.speed,l=a.clustering,c=a.height*a.width,h=Math.sqrt(c)/10,d=c/(i.length+1),v=Math.sqrt(d),p=[];if(i.forEach(function(m,b){p[b]={x:0,y:0}}),a.applyCalculate(i,o,p,v,d),l){for(var g in t)t[g].cx=0,t[g].cy=0,t[g].count=0;i.forEach(function(m){var b=t[m.cluster];(0,Dr.isNumber)(m.x)&&(b.cx+=m.x),(0,Dr.isNumber)(m.y)&&(b.cy+=m.y),b.count++});for(var g in t)t[g].cx/=t[g].count,t[g].cy/=t[g].count;var y=a.clusterGravity||u;i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=t[m.cluster],x=Math.sqrt((m.x-w.cx)*(m.x-w.cx)+(m.y-w.cy)*(m.y-w.cy)),E=v*y;p[b].x-=E*(m.x-w.cx)/x,p[b].y-=E*(m.y-w.cy)/x}})}i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=.01*v*u;p[b].x-=w*(m.x-s[0]),p[b].y-=w*(m.y-s[1])}}),i.forEach(function(m,b){if((0,Dr.isNumber)(m.fx)&&(0,Dr.isNumber)(m.fy)){m.x=m.fx,m.y=m.fy;return}if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=Math.sqrt(p[b].x*p[b].x+p[b].y*p[b].y);if(w>0){var x=Math.min(h*(f/Kne),w);m.x+=p[b].x/w*x,m.y+=p[b].y/w*x}}}),(n=a.tick)===null||n===void 0||n.call(a)}},e.prototype.applyCalculate=function(t,n,a,i,o){var s=this;s.calRepulsive(t,a,o),n&&s.calAttractive(n,a,i)},e.prototype.calRepulsive=function(t,n,a){t.forEach(function(i,o){n[o]={x:0,y:0},t.forEach(function(s,u){if(o!==u&&!(!(0,Dr.isNumber)(i.x)||!(0,Dr.isNumber)(s.x)||!(0,Dr.isNumber)(i.y)||!(0,Dr.isNumber)(s.y))){var f=i.x-s.x,l=i.y-s.y,c=f*f+l*l;if(c===0){c=1;var h=o>u?1:-1;f=.01*h,l=.01*h}var d=a/c;n[o].x+=f*d,n[o].y+=l*d}})})},e.prototype.calAttractive=function(t,n,a){var i=this;t.forEach(function(o){var s=(0,Dr.getEdgeTerminal)(o,"source"),u=(0,Dr.getEdgeTerminal)(o,"target");if(!(!s||!u)){var f=i.nodeIdxMap[s],l=i.nodeIdxMap[u];if(f!==l){var c=i.nodeMap[s],h=i.nodeMap[u];if(!(!(0,Dr.isNumber)(h.x)||!(0,Dr.isNumber)(c.x)||!(0,Dr.isNumber)(h.y)||!(0,Dr.isNumber)(c.y))){var d=h.x-c.x,v=h.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/a;n[l].x-=d/p*g,n[l].y-=v/p*g,n[f].x+=d/p*g,n[f].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(Zne.Base);pl.FruchtermanLayout=Qne;var gl={};function e2(r,e,t,n,a,i,o){try{var s=r[i](o),u=s.value}catch(f){return void t(f)}s.done?e(u):Promise.resolve(u).then(n,a)}function Xi(r){return function(){var e=this,t=arguments;return new Promise(function(n,a){var i=r.apply(e,t);function o(u){e2(i,n,a,o,s,"next",u)}function s(u){e2(i,n,a,o,s,"throw",u)}o(void 0)})}}function lu(r){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lu(r)}function Jne(r,e){if(lu(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function bN(r){var e=Jne(r,"string");return lu(e)=="symbol"?e:e+""}function Ke(r,e,t){return(e=bN(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ma(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function t2(r,e){for(var t=0;t-1&&r%1==0&&r<=wae}var Eae=xae;function _ae(r){return r!=null&&typeof r=="object"}var Wm=_ae,Sae=Xm,Mae=Eae,Aae=Wm,Cae="[object Arguments]",Tae="[object Array]",Iae="[object Boolean]",kae="[object Date]",Nae="[object Error]",Oae="[object Function]",Lae="[object Map]",Dae="[object Number]",Pae="[object Object]",Rae="[object RegExp]",Fae="[object Set]",Bae="[object String]",Gae="[object WeakMap]",zae="[object ArrayBuffer]",jae="[object DataView]",Uae="[object Float32Array]",$ae="[object Float64Array]",Xae="[object Int8Array]",Wae="[object Int16Array]",Vae="[object Int32Array]",Yae="[object Uint8Array]",qae="[object Uint8ClampedArray]",Hae="[object Uint16Array]",Zae="[object Uint32Array]",wr={};wr[Uae]=wr[$ae]=wr[Xae]=wr[Wae]=wr[Vae]=wr[Yae]=wr[qae]=wr[Hae]=wr[Zae]=!0;wr[Cae]=wr[Tae]=wr[zae]=wr[Iae]=wr[jae]=wr[kae]=wr[Nae]=wr[Oae]=wr[Lae]=wr[Dae]=wr[Pae]=wr[Rae]=wr[Fae]=wr[Bae]=wr[Gae]=!1;function Kae(r){return Aae(r)&&Mae(r.length)&&!!wr[Sae(r)]}var Qae=Kae;function Jae(r){return function(e){return r(e)}}var eie=Jae,rd={exports:{}};rd.exports;(function(r,e){var t=wN,n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();r.exports=s})(rd,rd.exports);var tie=rd.exports,rie=Qae,nie=eie,i2=tie,o2=i2&&i2.isTypedArray,aie=o2?nie(o2):rie,iie=aie;const nd=bi(iie);var oie=Xm,sie=Wm,uie="[object Number]";function fie(r){return typeof r=="number"||sie(r)&&oie(r)==uie}var lie=fie;const cie=bi(lie);var hie=Array.isArray,die=hie;const vie=bi(die);var _N={exports:{}},SN={exports:{}};(function(r){function e(t,n){this.v=t,this.k=n}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(SN);var MN=SN.exports,AN={exports:{}},CN={exports:{}};(function(r){function e(t,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}r.exports=e=function(u,f,l,c){function h(d,v){e(u,d,function(p){return this._invoke(d,v,p)})}f?o?o(u,f,{value:l,enumerable:!c,configurable:!c,writable:!c}):u[f]=l:(h("next",0),h("throw",1),h("return",2))},r.exports.__esModule=!0,r.exports.default=r.exports,e(t,n,a,i)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(CN);var TN=CN.exports;(function(r){var e=TN;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(g,y,m,b){var w=y&&y.prototype instanceof l?y:l,x=Object.create(w.prototype);return e(x,"_invoke",function(E,_,S){var A,M,C,I=0,k=S||[],O=!1,B={p:0,n:0,v:n,a:L,f:L.bind(n,4),d:function(X,R){return A=X,M=0,C=n,B.n=R,f}};function L(z,X){for(M=z,C=X,a=0;!O&&I&&!R&&a3?(R=ce===X)&&(C=V[(M=V[4])?5:(M=3,3)],V[4]=V[5]=n):V[0]<=he&&((R=z<2&&heX||X>ce)&&(V[4]=z,V[5]=X,B.n=ce,M=0))}if(R||z>1)return f;throw O=!0,X}return function(z,X,R){if(I>1)throw TypeError("Generator is already running");for(O&&X===1&&L(X,R),M=X,C=R;(a=M<2?n:C)||!O;){A||(M?M<3?(M>1&&(B.n=-1),L(M,C)):B.n=C:B.v=C);try{if(I=2,A){if(M||(z="next"),a=A[z]){if(!(a=a.call(A,C)))throw TypeError("iterator result is not an object");if(!a.done)return a;C=a.value,M<2&&(M=0)}else M===1&&(a=A.return)&&a.call(A),M<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),M=1);A=n}else if((a=(O=B.n<0)?C:E.call(_,B))!==f)break}catch(V){A=n,M=1,C=V}finally{I=1}}return{value:a,done:O}}}(g,m,b),!0),x}var f={};function l(){}function c(){}function h(){}a=Object.getPrototypeOf;var d=[][o]?a(a([][o]())):(e(a={},o,function(){return this}),a),v=h.prototype=l.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,h):(g.__proto__=h,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=h,e(v,"constructor",h),e(h,"constructor",c),c.displayName="GeneratorFunction",e(h,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(r.exports=t=function(){return{w:u,m:p}},r.exports.__esModule=!0,r.exports.default=r.exports)()}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(AN);var IN=AN.exports,kN={exports:{}},NN={exports:{}},ON={exports:{}};(function(r){var e=MN,t=TN;function n(a,i){function o(u,f,l,c){try{var h=a[u](f),d=h.value;return d instanceof e?i.resolve(d.v).then(function(v){o("next",v,l,c)},function(v){o("throw",v,l,c)}):i.resolve(d).then(function(v){h.value=v,l(h)},function(v){return o("throw",v,l,c)})}catch(v){c(v)}}var s;this.next||(t(n.prototype),t(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),t(this,"_invoke",function(u,f,l){function c(){return new i(function(h,d){o(u,l,h,d)})}return s=s?s.then(c,c):c()},!0)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports})(ON);var LN=ON.exports;(function(r){var e=IN,t=LN;function n(a,i,o,s,u){return new t(e().w(a,i,o,s),u||Promise)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports})(NN);var DN=NN.exports;(function(r){var e=DN;function t(n,a,i,o,s){var u=e(n,a,i,o,s);return u.next().then(function(f){return f.done?f.value:u.next()})}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(kN);var pie=kN.exports,PN={exports:{}};(function(r){function e(t){var n=Object(t),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(PN);var gie=PN.exports,RN={exports:{}},FN={exports:{}};(function(r){function e(t){"@babel/helpers - typeof";return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r.exports.__esModule=!0,r.exports.default=r.exports,e(t)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(FN);var yie=FN.exports;(function(r){var e=yie.default;function t(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(e(n)+" is not iterable")}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(RN);var mie=RN.exports;(function(r){var e=MN,t=IN,n=pie,a=DN,i=LN,o=gie,s=mie;function u(){var f=t(),l=f.m(u),c=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function h(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,y;return function(m){g||(g={stop:function(){return y(m.a,2)},catch:function(){return m.v},abrupt:function(w,x){return y(m.a,d[w],x)},delegateYield:function(w,x,E){return g.resultName=x,y(m.d,s(w),E)},finish:function(w){return y(m.f,w)}},y=function(w,x,E){m.p=g.prev,m.n=g.next;try{return w(x,E)}finally{g.next=m.n}}),g.resultName&&(g[g.resultName]=m.v,g.resultName=void 0),g.sent=m.v,g.next=m.n;try{return p.call(this,g)}finally{m.p=g.prev,m.n=g.next}}}return(r.exports=u=function(){return{wrap:function(y,m,b,w){return f.w(v(y),m,b,w&&w.reverse())},isGeneratorFunction:h,mark:f.m,awrap:function(y,m){return new e(y,m)},AsyncIterator:i,async:function(y,m,b,w,x){return(h(m)?a:n)(v(y),m,b,w,x)},keys:o,values:s}},r.exports.__esModule=!0,r.exports.default=r.exports)()}r.exports=u,r.exports.__esModule=!0,r.exports.default=r.exports})(_N);var bie=_N.exports,ph=bie(),wie=ph;try{regeneratorRuntime=ph}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=ph:Function("r","regeneratorRuntime = r")(ph)}const mn=bi(wie);var xie=1;function BN(){return xie++}var ke;(function(r){r[r.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",r[r.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",r[r.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN",r[r.ZERO=0]="ZERO",r[r.ONE=1]="ONE",r[r.SRC_COLOR=768]="SRC_COLOR",r[r.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",r[r.SRC_ALPHA=770]="SRC_ALPHA",r[r.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",r[r.DST_ALPHA=772]="DST_ALPHA",r[r.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",r[r.DST_COLOR=774]="DST_COLOR",r[r.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",r[r.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",r[r.FUNC_ADD=32774]="FUNC_ADD",r[r.BLEND_EQUATION=32777]="BLEND_EQUATION",r[r.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",r[r.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",r[r.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",r[r.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",r[r.MAX_EXT=32776]="MAX_EXT",r[r.MIN_EXT=32775]="MIN_EXT",r[r.BLEND_DST_RGB=32968]="BLEND_DST_RGB",r[r.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",r[r.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",r[r.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",r[r.CONSTANT_COLOR=32769]="CONSTANT_COLOR",r[r.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",r[r.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",r[r.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",r[r.BLEND_COLOR=32773]="BLEND_COLOR",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",r[r.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",r[r.STREAM_DRAW=35040]="STREAM_DRAW",r[r.STATIC_DRAW=35044]="STATIC_DRAW",r[r.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",r[r.BUFFER_SIZE=34660]="BUFFER_SIZE",r[r.BUFFER_USAGE=34661]="BUFFER_USAGE",r[r.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",r[r.FRONT=1028]="FRONT",r[r.BACK=1029]="BACK",r[r.FRONT_AND_BACK=1032]="FRONT_AND_BACK",r[r.CULL_FACE=2884]="CULL_FACE",r[r.BLEND=3042]="BLEND",r[r.DITHER=3024]="DITHER",r[r.STENCIL_TEST=2960]="STENCIL_TEST",r[r.DEPTH_TEST=2929]="DEPTH_TEST",r[r.SCISSOR_TEST=3089]="SCISSOR_TEST",r[r.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",r[r.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",r[r.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",r[r.NO_ERROR=0]="NO_ERROR",r[r.INVALID_ENUM=1280]="INVALID_ENUM",r[r.INVALID_VALUE=1281]="INVALID_VALUE",r[r.INVALID_OPERATION=1282]="INVALID_OPERATION",r[r.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",r[r.CW=2304]="CW",r[r.CCW=2305]="CCW",r[r.LINE_WIDTH=2849]="LINE_WIDTH",r[r.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",r[r.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",r[r.CULL_FACE_MODE=2885]="CULL_FACE_MODE",r[r.FRONT_FACE=2886]="FRONT_FACE",r[r.DEPTH_RANGE=2928]="DEPTH_RANGE",r[r.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",r[r.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",r[r.DEPTH_FUNC=2932]="DEPTH_FUNC",r[r.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",r[r.STENCIL_FUNC=2962]="STENCIL_FUNC",r[r.STENCIL_FAIL=2964]="STENCIL_FAIL",r[r.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",r[r.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",r[r.STENCIL_REF=2967]="STENCIL_REF",r[r.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",r[r.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",r[r.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",r[r.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",r[r.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",r[r.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",r[r.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",r[r.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",r[r.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",r[r.VIEWPORT=2978]="VIEWPORT",r[r.SCISSOR_BOX=3088]="SCISSOR_BOX",r[r.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",r[r.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",r[r.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",r[r.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",r[r.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",r[r.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",r[r.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",r[r.RED_BITS=3410]="RED_BITS",r[r.GREEN_BITS=3411]="GREEN_BITS",r[r.BLUE_BITS=3412]="BLUE_BITS",r[r.ALPHA_BITS=3413]="ALPHA_BITS",r[r.DEPTH_BITS=3414]="DEPTH_BITS",r[r.STENCIL_BITS=3415]="STENCIL_BITS",r[r.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",r[r.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",r[r.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",r[r.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",r[r.SAMPLES=32937]="SAMPLES",r[r.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",r[r.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",r[r.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",r[r.DONT_CARE=4352]="DONT_CARE",r[r.FASTEST=4353]="FASTEST",r[r.NICEST=4354]="NICEST",r[r.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",r[r.BYTE=5120]="BYTE",r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.SHORT=5122]="SHORT",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.INT=5124]="INT",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.FLOAT=5126]="FLOAT",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.ALPHA=6406]="ALPHA",r[r.RGB=6407]="RGB",r[r.RGBA=6408]="RGBA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",r[r.VERTEX_SHADER=35633]="VERTEX_SHADER",r[r.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",r[r.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",r[r.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",r[r.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",r[r.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",r[r.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",r[r.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",r[r.SHADER_TYPE=35663]="SHADER_TYPE",r[r.DELETE_STATUS=35712]="DELETE_STATUS",r[r.LINK_STATUS=35714]="LINK_STATUS",r[r.VALIDATE_STATUS=35715]="VALIDATE_STATUS",r[r.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",r[r.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",r[r.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",r[r.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",r[r.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",r[r.NEVER=512]="NEVER",r[r.LESS=513]="LESS",r[r.EQUAL=514]="EQUAL",r[r.LEQUAL=515]="LEQUAL",r[r.GREATER=516]="GREATER",r[r.NOTEQUAL=517]="NOTEQUAL",r[r.GEQUAL=518]="GEQUAL",r[r.ALWAYS=519]="ALWAYS",r[r.KEEP=7680]="KEEP",r[r.REPLACE=7681]="REPLACE",r[r.INCR=7682]="INCR",r[r.DECR=7683]="DECR",r[r.INVERT=5386]="INVERT",r[r.INCR_WRAP=34055]="INCR_WRAP",r[r.DECR_WRAP=34056]="DECR_WRAP",r[r.VENDOR=7936]="VENDOR",r[r.RENDERER=7937]="RENDERER",r[r.VERSION=7938]="VERSION",r[r.NEAREST=9728]="NEAREST",r[r.LINEAR=9729]="LINEAR",r[r.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",r[r.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",r[r.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",r[r.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",r[r.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",r[r.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",r[r.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",r[r.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE=5890]="TEXTURE",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",r[r.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",r[r.TEXTURE0=33984]="TEXTURE0",r[r.TEXTURE1=33985]="TEXTURE1",r[r.TEXTURE2=33986]="TEXTURE2",r[r.TEXTURE3=33987]="TEXTURE3",r[r.TEXTURE4=33988]="TEXTURE4",r[r.TEXTURE5=33989]="TEXTURE5",r[r.TEXTURE6=33990]="TEXTURE6",r[r.TEXTURE7=33991]="TEXTURE7",r[r.TEXTURE8=33992]="TEXTURE8",r[r.TEXTURE9=33993]="TEXTURE9",r[r.TEXTURE10=33994]="TEXTURE10",r[r.TEXTURE11=33995]="TEXTURE11",r[r.TEXTURE12=33996]="TEXTURE12",r[r.TEXTURE13=33997]="TEXTURE13",r[r.TEXTURE14=33998]="TEXTURE14",r[r.TEXTURE15=33999]="TEXTURE15",r[r.TEXTURE16=34e3]="TEXTURE16",r[r.TEXTURE17=34001]="TEXTURE17",r[r.TEXTURE18=34002]="TEXTURE18",r[r.TEXTURE19=34003]="TEXTURE19",r[r.TEXTURE20=34004]="TEXTURE20",r[r.TEXTURE21=34005]="TEXTURE21",r[r.TEXTURE22=34006]="TEXTURE22",r[r.TEXTURE23=34007]="TEXTURE23",r[r.TEXTURE24=34008]="TEXTURE24",r[r.TEXTURE25=34009]="TEXTURE25",r[r.TEXTURE26=34010]="TEXTURE26",r[r.TEXTURE27=34011]="TEXTURE27",r[r.TEXTURE28=34012]="TEXTURE28",r[r.TEXTURE29=34013]="TEXTURE29",r[r.TEXTURE30=34014]="TEXTURE30",r[r.TEXTURE31=34015]="TEXTURE31",r[r.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",r[r.REPEAT=10497]="REPEAT",r[r.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",r[r.FLOAT_VEC2=35664]="FLOAT_VEC2",r[r.FLOAT_VEC3=35665]="FLOAT_VEC3",r[r.FLOAT_VEC4=35666]="FLOAT_VEC4",r[r.INT_VEC2=35667]="INT_VEC2",r[r.INT_VEC3=35668]="INT_VEC3",r[r.INT_VEC4=35669]="INT_VEC4",r[r.BOOL=35670]="BOOL",r[r.BOOL_VEC2=35671]="BOOL_VEC2",r[r.BOOL_VEC3=35672]="BOOL_VEC3",r[r.BOOL_VEC4=35673]="BOOL_VEC4",r[r.FLOAT_MAT2=35674]="FLOAT_MAT2",r[r.FLOAT_MAT3=35675]="FLOAT_MAT3",r[r.FLOAT_MAT4=35676]="FLOAT_MAT4",r[r.SAMPLER_2D=35678]="SAMPLER_2D",r[r.SAMPLER_CUBE=35680]="SAMPLER_CUBE",r[r.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",r[r.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",r[r.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",r[r.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",r[r.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",r[r.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",r[r.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",r[r.COMPILE_STATUS=35713]="COMPILE_STATUS",r[r.LOW_FLOAT=36336]="LOW_FLOAT",r[r.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",r[r.HIGH_FLOAT=36338]="HIGH_FLOAT",r[r.LOW_INT=36339]="LOW_INT",r[r.MEDIUM_INT=36340]="MEDIUM_INT",r[r.HIGH_INT=36341]="HIGH_INT",r[r.FRAMEBUFFER=36160]="FRAMEBUFFER",r[r.RENDERBUFFER=36161]="RENDERBUFFER",r[r.RGBA4=32854]="RGBA4",r[r.RGB5_A1=32855]="RGB5_A1",r[r.RGB565=36194]="RGB565",r[r.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",r[r.STENCIL_INDEX=6401]="STENCIL_INDEX",r[r.STENCIL_INDEX8=36168]="STENCIL_INDEX8",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL",r[r.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",r[r.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",r[r.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",r[r.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",r[r.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",r[r.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",r[r.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",r[r.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",r[r.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",r[r.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",r[r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",r[r.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",r[r.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",r[r.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",r[r.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",r[r.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",r[r.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",r[r.NONE=0]="NONE",r[r.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",r[r.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",r[r.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",r[r.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",r[r.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",r[r.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",r[r.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",r[r.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",r[r.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",r[r.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",r[r.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",r[r.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",r[r.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",r[r.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",r[r.COPY_SRC=1]="COPY_SRC",r[r.COPY_DST=2]="COPY_DST",r[r.SAMPLED=4]="SAMPLED",r[r.STORAGE=8]="STORAGE",r[r.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(ke||(ke={}));var Eie=function(){function r(){Ma(this,r),this.config=void 0}return Aa(r,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),r}(),Xf;(function(r){r.Void="Void",r.Boolean="Boolean",r.Float="Float",r.Uint32="Uint32",r.Int32="Int32",r.Vector="Vector",r.Vector2Float="vec2",r.Vector3Float="vec3",r.Vector4Float="vec4",r.Vector2Boolean="vec2",r.Vector3Boolean="vec3",r.Vector4Boolean="vec4",r.Vector2Uint="vec2",r.Vector3Uint="vec3",r.Vector4Uint="vec4",r.Vector2Int="vec2",r.Vector3Int="vec3",r.Vector4Int="vec4",r.Matrix="Matrix",r.Matrix3x3Float="mat3x3",r.Matrix4x4Float="mat4x4",r.Struct="Struct",r.FloatArray="Float[]",r.Vector4FloatArray="vec4[]"})(Xf||(Xf={}));var s2;(function(r){r.Program="Program",r.Identifier="Identifier",r.VariableDeclaration="VariableDeclaration",r.BlockStatement="BlockStatement",r.ReturnStatement="ReturnStatement",r.FunctionDeclaration="FunctionDeclaration",r.VariableDeclarator="VariableDeclarator",r.AssignmentExpression="AssignmentExpression",r.LogicalExpression="LogicalExpression",r.BinaryExpression="BinaryExpression",r.ArrayExpression="ArrayExpression",r.UnaryExpression="UnaryExpression",r.UpdateExpression="UpdateExpression",r.FunctionExpression="FunctionExpression",r.MemberExpression="MemberExpression",r.ConditionalExpression="ConditionalExpression",r.ExpressionStatement="ExpressionStatement",r.CallExpression="CallExpression",r.NumThreadStatement="NumThreadStatement",r.StorageStatement="StorageStatement",r.DoWhileStatement="DoWhileStatement",r.WhileStatement="WhileStatement",r.ForStatement="ForStatement",r.BreakStatement="BreakStatement",r.ContinueStatement="ContinueStatement",r.IfStatement="IfStatement",r.ImportedFunctionStatement="ImportedFunctionStatement"})(s2||(s2={}));var cu;(function(r){r.Input="Input",r.Output="Output",r.Uniform="Uniform",r.Workgroup="Workgroup",r.UniformConstant="UniformConstant",r.Image="Image",r.StorageBuffer="StorageBuffer",r.Private="Private",r.Function="Function"})(cu||(cu={}));var _f;(function(r){r.GLSL100="GLSL100",r.GLSL450="GLSL450",r.WGSL="WGSL"})(_f||(_f={}));var _ie="__DefineValuePlaceholder__";function Sie(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function u2(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function f2(r){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){f.next=6;break}return this.compiledBundle.context&&(i>1?this.compiledBundle.context.maxIteration=i:this.compiledBundle.context.maxIteration++),f.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(l){var c=l.isReferer;return c}).forEach(function(l){var c=l.data,h=l.name;a.model.confirmInput(c.model,h)}),o=0;o"u";case"symbol":return typeof T=="symbol"}}function h(T,F,W){c(T,F)||o("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T)}function d(T,F){T>=0&&(T|0)===T||o("invalid parameter type, ("+T+")"+u(F)+". must be a nonnegative integer")}function v(T,F,W){F.indexOf(T)<0&&o("invalid value"+u(W)+". must be one of: "+F)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(T){Object.keys(T).forEach(function(F){p.indexOf(F)<0&&o('invalid regl constructor argument "'+F+'". must be one of '+p)})}function y(T,F){for(T=T+"";T.length0&&F.push(new w("unknown",0,W))}}),F}function A(T,F){F.forEach(function(W){var ue=T[W.file];if(ue){var be=ue.index[W.line];if(be){be.errors.push(W),ue.hasErrors=!0;return}}T.unknown.hasErrors=!0,T.unknown.lines[0].errors.push(W)})}function M(T,F,W,ue,be){if(!T.getShaderParameter(F,T.COMPILE_STATUS)){var se=T.getShaderInfoLog(F),de=ue===T.FRAGMENT_SHADER?"fragment":"vertex";z(W,"string",de+" shader source must be a string",be);var Ce=_(W,be),Ne=S(se);A(Ce,Ne),Object.keys(Ce).forEach(function(Pe){var Oe=Ce[Pe];if(!Oe.hasErrors)return;var Be=[""],Xe=[""];function Te(Ge,re){Be.push(Ge),Xe.push(re||"")}Te("file number "+Pe+": "+Oe.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Oe.lines.forEach(function(Ge){if(Ge.errors.length>0){Te(y(Ge.number,4)+"| ","background-color:yellow; font-weight:bold"),Te(Ge.line+a,"color:red; background-color:yellow; font-weight:bold");var re=0;Ge.errors.forEach(function(ve){var De=ve.message,He=/^\s*'(.*)'\s*:\s*(.*)$/.exec(De);if(He){var Ee=He[1];switch(De=He[2],Ee){case"assign":Ee="=";break}re=Math.max(Ge.line.indexOf(Ee,re),0)}else re=0;Te(y("| ",6)),Te(y("^^^",re+3)+a,"font-weight:bold"),Te(y("| ",6)),Te(De+a,"font-weight:bold")}),Te(y("| ",6)+a)}else Te(y(Ge.number,4)+"| "),Te(Ge.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Xe[0]=Be.join("%c"),console.log.apply(console,Xe)):console.log(Be.join(""))}),s.raise("Error compiling "+de+" shader, "+Ce[0].name)}}function C(T,F,W,ue,be){if(!T.getProgramParameter(F,T.LINK_STATUS)){var se=T.getProgramInfoLog(F),de=_(W,be),Ce=_(ue,be),Ne='Error linking program with vertex shader, "'+Ce[0].name+'", and fragment shader "'+de[0].name+'"';typeof document<"u"?console.log("%c"+Ne+a+"%c"+se,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ne+a+se),s.raise(Ne)}}function I(T){T._commandRef=x()}function k(T,F,W,ue){I(T);function be(Ne){return Ne?ue.id(Ne):0}T._fragId=be(T.static.frag),T._vertId=be(T.static.vert);function se(Ne,Pe){Object.keys(Pe).forEach(function(Oe){Ne[ue.id(Oe)]=!0})}var de=T._uniformSet={};se(de,F.static),se(de,F.dynamic);var Ce=T._attributeSet={};se(Ce,W.static),se(Ce,W.dynamic),T._hasCount="count"in T.static||"count"in T.dynamic||"elements"in T.static||"elements"in T.dynamic}function O(T,F){var W=E();o(T+" in command "+(F||x())+(W==="unknown"?"":" called from "+W))}function B(T,F,W){T||O(F,W||x())}function L(T,F,W,ue){T in F||O("unknown parameter ("+T+")"+u(W)+". possible values: "+Object.keys(F).join(),ue||x())}function z(T,F,W,ue){c(T,F)||O("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T,ue||x())}function X(T){T()}function R(T,F,W){T.texture?v(T.texture._texture.internalformat,F,"unsupported texture format for attachment"):v(T.renderbuffer._renderbuffer.format,W,"unsupported renderbuffer format for attachment")}var V=33071,he=9728,ce=9984,le=9985,ie=9986,Ie=9987,qe=5120,Ve=5121,it=5122,dt=5123,st=5124,Tt=5125,_t=5126,lr=32819,Bt=32820,Wt=33635,vr=34042,cr=36193,$t={};$t[qe]=$t[Ve]=1,$t[it]=$t[dt]=$t[cr]=$t[Wt]=$t[lr]=$t[Bt]=2,$t[st]=$t[Tt]=$t[_t]=$t[vr]=4;function sr(T,F){return T===Bt||T===lr||T===Wt?2:T===vr?4:$t[T]*F}function tn(T){return!(T&T-1)&&!!T}function tt(T,F,W){var ue,be=F.width,se=F.height,de=F.channels;s(be>0&&be<=W.maxTextureSize&&se>0&&se<=W.maxTextureSize,"invalid texture shape"),(T.wrapS!==V||T.wrapT!==V)&&s(tn(be)&&tn(se),"incompatible wrap mode for texture, both width and height must be power of 2"),F.mipmask===1?be!==1&&se!==1&&s(T.minFilter!==ce&&T.minFilter!==ie&&T.minFilter!==le&&T.minFilter!==Ie,"min filter requires mipmap"):(s(tn(be)&&tn(se),"texture must be a square power of 2 to support mipmapping"),s(F.mipmask===(be<<1)-1,"missing or incomplete mipmap data")),F.type===_t&&(W.extensions.indexOf("oes_texture_float_linear")<0&&s(T.minFilter===he&&T.magFilter===he,"filter not supported, must enable oes_texture_float_linear"),s(!T.genMipmaps,"mipmap generation not supported with float textures"));var Ce=F.images;for(ue=0;ue<16;++ue)if(Ce[ue]){var Ne=be>>ue,Pe=se>>ue;s(F.mipmask&1<0&&be<=ue.maxTextureSize&&se>0&&se<=ue.maxTextureSize,"invalid texture shape"),s(be===se,"cube map must be square"),s(F.wrapS===V&&F.wrapT===V,"wrap mode not supported by cube map");for(var Ce=0;Ce>Oe,Te=se>>Oe;s(Ne.mipmask&1<1&&F===W&&(F==='"'||F==="'"))return['"'+Ze(T.substr(1,T.length-2))+'"'];var ue=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(T);if(ue)return Je(T.substr(0,ue.index)).concat(Je(ue[1])).concat(Je(T.substr(ue.index+ue[0].length)));var be=T.split(".");if(be.length===1)return['"'+Ze(T)+'"'];for(var se=[],de=0;deDt(W,F+"["+ue+"]")));if(T instanceof $e)return T;N(!1,"invalid option type in uniform "+F)}var fr={DynamicVariable:$e,define:Lt,isDynamic:ur,unbox:Dt,accessor:ht},or={next:typeof requestAnimationFrame=="function"?function(T){return requestAnimationFrame(T)}:function(T){return setTimeout(T,16)},cancel:typeof cancelAnimationFrame=="function"?function(T){return cancelAnimationFrame(T)}:clearTimeout},gr=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function hr(){var T={"":0},F=[""];return{id:function(W){var ue=T[W];return ue||(ue=T[W]=F.length,F.push(W),ue)},str:function(W){return F[W]}}}function hn(T,F,W){var ue=document.createElement("canvas");n(ue.style,{border:0,margin:0,padding:0,top:0,left:0}),T.appendChild(ue),T===document.body&&(ue.style.position="absolute",n(T.style,{margin:0,padding:0}));function be(){var Ce=window.innerWidth,Ne=window.innerHeight;if(T!==document.body){var Pe=T.getBoundingClientRect();Ce=Pe.right-Pe.left,Ne=Pe.bottom-Pe.top}ue.width=W*Ce,ue.height=W*Ne,n(ue.style,{width:Ce+"px",height:Ne+"px"})}var se;T!==document.body&&typeof ResizeObserver=="function"?(se=new ResizeObserver(function(){setTimeout(be)}),se.observe(T)):window.addEventListener("resize",be,!1);function de(){se?se.disconnect():window.removeEventListener("resize",be),T.removeChild(ue)}return be(),{canvas:ue,onDestroy:de}}function nr(T,F){function W(ue){try{return T.getContext(ue,F)}catch{return null}}return W("webgl")||W("experimental-webgl")||W("webgl-experimental")}function Fr(T){return typeof T.nodeName=="string"&&typeof T.appendChild=="function"&&typeof T.getBoundingClientRect=="function"}function oa(T){return typeof T.drawArrays=="function"||typeof T.drawElements=="function"}function Ur(T){return typeof T=="string"?T.split():(N(Array.isArray(T),"invalid extension array"),T)}function Mi(T){return typeof T=="string"?(N(typeof document<"u","not supported outside of DOM"),document.querySelector(T)):T}function bu(T){var F=T||{},W,ue,be,se,de={},Ce=[],Ne=[],Pe=typeof window>"u"?1:window.devicePixelRatio,Oe=!1,Be=function(Ge){Ge&&N.raise(Ge)},Xe=function(){};if(typeof F=="string"?(N(typeof document<"u","selector queries only supported in DOM enviroments"),W=document.querySelector(F),N(W,"invalid query string for element")):typeof F=="object"?Fr(F)?W=F:oa(F)?(se=F,be=se.canvas):(N.constructor(F),"gl"in F?se=F.gl:"canvas"in F?be=Mi(F.canvas):"container"in F&&(ue=Mi(F.container)),"attributes"in F&&(de=F.attributes,N.type(de,"object","invalid context attributes")),"extensions"in F&&(Ce=Ur(F.extensions)),"optionalExtensions"in F&&(Ne=Ur(F.optionalExtensions)),"onDone"in F&&(N.type(F.onDone,"function","invalid or missing onDone callback"),Be=F.onDone),"profile"in F&&(Oe=!!F.profile),"pixelRatio"in F&&(Pe=+F.pixelRatio,N(Pe>0,"invalid pixel ratio"))):N.raise("invalid arguments to regl"),W&&(W.nodeName.toLowerCase()==="canvas"?be=W:ue=W),!se){if(!be){N(typeof document<"u","must manually specify webgl context outside of DOM environments");var Te=hn(ue||document.body,Be,Pe);if(!Te)return null;be=Te.canvas,Xe=Te.onDestroy}de.premultipliedAlpha===void 0&&(de.premultipliedAlpha=!0),se=nr(be,de)}return se?{gl:se,canvas:be,container:ue,extensions:Ce,optionalExtensions:Ne,pixelRatio:Pe,profile:Oe,onDone:Be,onDestroy:Xe}:(Xe(),Be("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function wu(T,F){var W={};function ue(de){N.type(de,"string","extension name must be string");var Ce=de.toLowerCase(),Ne;try{Ne=W[Ce]=T.getExtension(Ce)}catch{}return!!Ne}for(var be=0;be65535)<<4,T>>>=F,W=(T>255)<<3,T>>>=W,F|=W,W=(T>15)<<2,T>>>=W,F|=W,W=(T>3)<<1,T>>>=W,F|=W,F|T>>1}function dr(){var T=rn(8,function(){return[]});function F(se){var de=ua(se),Ce=T[St(de)>>2];return Ce.length>0?Ce.pop():new ArrayBuffer(de)}function W(se){T[St(se.byteLength)>>2].push(se)}function ue(se,de){var Ce=null;switch(se){case ti:Ce=new Int8Array(F(de),0,de);break;case uo:Ce=new Uint8Array(F(de),0,de);break;case xu:Ce=new Int16Array(F(2*de),0,de);break;case Eu:Ce=new Uint16Array(F(2*de),0,de);break;case _u:Ce=new Int32Array(F(4*de),0,de);break;case sa:Ce=new Uint32Array(F(4*de),0,de);break;case Br:Ce=new Float32Array(F(4*de),0,de);break;default:return null}return Ce.length!==de?Ce.subarray(0,de):Ce}function be(se){W(se.buffer)}return{alloc:F,free:W,allocType:ue,freeType:be}}var gt=dr();gt.zero=dr();var Sr=3408,dn=3410,fo=3411,lo=3412,ri=3413,co=3414,ho=3415,vo=33901,xO=33902,EO=3379,_O=3386,SO=34921,MO=36347,AO=36348,CO=35661,TO=35660,IO=34930,kO=36349,NO=34076,OO=34024,LO=7936,DO=7937,PO=7938,RO=35724,FO=34047,BO=36063,GO=34852,xl=3553,i1=34067,zO=34069,jO=33984,Su=6408,av=5126,o1=5121,iv=36160,UO=36053,$O=36064,XO=16384,WO=function(T,F){var W=1;F.ext_texture_filter_anisotropic&&(W=T.getParameter(FO));var ue=1,be=1;F.webgl_draw_buffers&&(ue=T.getParameter(GO),be=T.getParameter(BO));var se=!!F.oes_texture_float;if(se){var de=T.createTexture();T.bindTexture(xl,de),T.texImage2D(xl,0,Su,1,1,0,Su,av,null);var Ce=T.createFramebuffer();if(T.bindFramebuffer(iv,Ce),T.framebufferTexture2D(iv,$O,xl,de,0),T.bindTexture(xl,null),T.checkFramebufferStatus(iv)!==UO)se=!1;else{T.viewport(0,0,1,1),T.clearColor(1,0,0,1),T.clear(XO);var Ne=gt.allocType(av,4);T.readPixels(0,0,1,1,Su,av,Ne),T.getError()?se=!1:(T.deleteFramebuffer(Ce),T.deleteTexture(de),se=Ne[0]===1),gt.freeType(Ne)}}var Pe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Oe=!0;if(!Pe){var Be=T.createTexture(),Xe=gt.allocType(o1,36);T.activeTexture(jO),T.bindTexture(i1,Be),T.texImage2D(zO,0,Su,3,3,0,Su,o1,Xe),gt.freeType(Xe),T.bindTexture(i1,null),T.deleteTexture(Be),Oe=!T.getError()}return{colorBits:[T.getParameter(dn),T.getParameter(fo),T.getParameter(lo),T.getParameter(ri)],depthBits:T.getParameter(co),stencilBits:T.getParameter(ho),subpixelBits:T.getParameter(Sr),extensions:Object.keys(F).filter(function(Te){return!!F[Te]}),maxAnisotropic:W,maxDrawbuffers:ue,maxColorAttachments:be,pointSizeDims:T.getParameter(vo),lineWidthDims:T.getParameter(xO),maxViewportDims:T.getParameter(_O),maxCombinedTextureUnits:T.getParameter(CO),maxCubeMapSize:T.getParameter(NO),maxRenderbufferSize:T.getParameter(OO),maxTextureUnits:T.getParameter(IO),maxTextureSize:T.getParameter(EO),maxAttributes:T.getParameter(SO),maxVertexUniforms:T.getParameter(MO),maxVertexTextureUnits:T.getParameter(TO),maxVaryingVectors:T.getParameter(AO),maxFragmentUniforms:T.getParameter(kO),glsl:T.getParameter(RO),renderer:T.getParameter(DO),vendor:T.getParameter(LO),version:T.getParameter(PO),readFloat:se,npotTextureCube:Oe}};function fa(T){return!!T&&typeof T=="object"&&Array.isArray(T.shape)&&Array.isArray(T.stride)&&typeof T.offset=="number"&&T.shape.length===T.stride.length&&(Array.isArray(T.data)||t(T.data))}var Pn=function(T){return Object.keys(T).map(function(F){return T[F]})},El={shape:HO,flatten:qO};function VO(T,F,W){for(var ue=0;ue0){var ze;if(Array.isArray(ve[0])){Ae=f1(ve);for(var Me=1,je=1;je0)if(typeof Me[0]=="number"){var We=gt.allocType(Ee.dtype,Me.length);c1(We,Me),Ae(We,ct),gt.freeType(We)}else if(Array.isArray(Me[0])||t(Me[0])){Mt=f1(Me);var Re=sv(Me,Mt,Ee.dtype);Ae(Re,ct),gt.freeType(Re)}else N.raise("invalid buffer data")}else if(fa(Me)){Mt=Me.shape;var xe=Me.stride,xt=0,It=0,nt=0,Rt=0;Mt.length===1?(xt=Mt[0],It=1,nt=xe[0],Rt=0):Mt.length===2?(xt=Mt[0],It=Mt[1],nt=xe[0],Rt=xe[1]):N.raise("invalid shape");var At=Array.isArray(Me.data)?Ee.dtype:Sl(Me.data),Pt=gt.allocType(At,xt*It);h1(Pt,Me.data,xt,It,nt,Rt,Me.offset),Ae(Pt,ct),gt.freeType(Pt)}else N.raise("invalid data for buffer subdata");return et}return De||et(re),et._reglType="buffer",et._buffer=Ee,et.subdata=ze,W.profile&&(et.stats=Ee.stats),et.destroy=function(){Xe(Ee)},et}function Ge(){Pn(se).forEach(function(re){re.buffer=T.createBuffer(),T.bindBuffer(re.type,re.buffer),T.bufferData(re.type,re.persistentData||re.byteLength,re.usage)})}return W.profile&&(F.getTotalBufferSize=function(){var re=0;return Object.keys(se).forEach(function(ve){re+=se[ve].stats.size}),re}),{create:Te,createStream:Ne,destroyStream:Pe,clear:function(){Pn(se).forEach(Xe),Ce.forEach(Xe)},getBuffer:function(re){return re&&re._buffer instanceof de?re._buffer:null},restore:Ge,_initBuffer:Be}}var uL=0,fL=0,lL=1,cL=1,hL=4,dL=4,rs={points:uL,point:fL,lines:lL,line:cL,triangles:hL,triangle:dL,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},vL=0,pL=1,Mu=4,gL=5120,ns=5121,d1=5122,as=5123,v1=5124,go=5125,lv=34963,yL=35040,mL=35044;function bL(T,F,W,ue){var be={},se=0,de={uint8:ns,uint16:as};F.oes_element_index_uint&&(de.uint32=go);function Ce(Ge){this.id=se++,be[this.id]=this,this.buffer=Ge,this.primType=Mu,this.vertCount=0,this.type=0}Ce.prototype.bind=function(){this.buffer.bind()};var Ne=[];function Pe(Ge){var re=Ne.pop();return re||(re=new Ce(W.create(null,lv,!0,!1)._buffer)),Be(re,Ge,yL,-1,-1,0,0),re}function Oe(Ge){Ne.push(Ge)}function Be(Ge,re,ve,De,He,Ee,et){Ge.buffer.bind();var Ae;if(re){var ze=et;!et&&(!t(re)||fa(re)&&!t(re.data))&&(ze=F.oes_element_index_uint?go:as),W._initBuffer(Ge.buffer,re,ve,ze,3)}else T.bufferData(lv,Ee,ve),Ge.buffer.dtype=Ae||ns,Ge.buffer.usage=ve,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ee;if(Ae=et,!et){switch(Ge.buffer.dtype){case ns:case gL:Ae=ns;break;case as:case d1:Ae=as;break;case go:case v1:Ae=go;break;default:N.raise("unsupported type for element array")}Ge.buffer.dtype=Ae}Ge.type=Ae,N(Ae!==go||!!F.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Me=He;Me<0&&(Me=Ge.buffer.byteLength,Ae===as?Me>>=1:Ae===go&&(Me>>=2)),Ge.vertCount=Me;var je=De;if(De<0){je=Mu;var ct=Ge.buffer.dimension;ct===1&&(je=vL),ct===2&&(je=pL),ct===3&&(je=Mu)}Ge.primType=je}function Xe(Ge){ue.elementsCount--,N(Ge.buffer!==null,"must not double destroy elements"),delete be[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function Te(Ge,re){var ve=W.create(null,lv,!0),De=new Ce(ve._buffer);ue.elementsCount++;function He(Ee){if(!Ee)ve(),De.primType=Mu,De.vertCount=0,De.type=ns;else if(typeof Ee=="number")ve(Ee),De.primType=Mu,De.vertCount=Ee|0,De.type=ns;else{var et=null,Ae=mL,ze=-1,Me=-1,je=0,ct=0;Array.isArray(Ee)||t(Ee)||fa(Ee)?et=Ee:(N.type(Ee,"object","invalid arguments for elements"),"data"in Ee&&(et=Ee.data,N(Array.isArray(et)||t(et)||fa(et),"invalid data for element buffer")),"usage"in Ee&&(N.parameter(Ee.usage,_l,"invalid element buffer usage"),Ae=_l[Ee.usage]),"primitive"in Ee&&(N.parameter(Ee.primitive,rs,"invalid element buffer primitive"),ze=rs[Ee.primitive]),"count"in Ee&&(N(typeof Ee.count=="number"&&Ee.count>=0,"invalid vertex count for elements"),Me=Ee.count|0),"type"in Ee&&(N.parameter(Ee.type,de,"invalid buffer type"),ct=de[Ee.type]),"length"in Ee?je=Ee.length|0:(je=Me,ct===as||ct===d1?je*=2:(ct===go||ct===v1)&&(je*=4))),Be(De,et,Ae,ze,Me,je,ct)}return He}return He(Ge),He._reglType="elements",He._elements=De,He.subdata=function(Ee,et){return ve.subdata(Ee,et),He},He.destroy=function(){Xe(De)},He}return{create:Te,createStream:Pe,destroyStream:Oe,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ce?Ge._elements:null},clear:function(){Pn(be).forEach(Xe)}}}var p1=new Float32Array(1),wL=new Uint32Array(p1.buffer),xL=5123;function g1(T){for(var F=gt.allocType(xL,T.length),W=0;W>>31<<15,se=(ue<<1>>>24)-127,de=ue>>13&1023;if(se<-24)F[W]=be;else if(se<-14){var Ce=-14-se;F[W]=be+(de+1024>>Ce)}else se>15?F[W]=be+31744:F[W]=be+(se+15<<10)+de}return F}function Mr(T){return Array.isArray(T)||t(T)}var y1=function(T){return!(T&T-1)&&!!T},EL=34467,Ca=3553,cv=34067,Ml=34069,yo=6408,hv=6406,Al=6407,Au=6409,Cl=6410,m1=32854,dv=32855,b1=36194,_L=32819,SL=32820,ML=33635,AL=34042,vv=6402,Tl=34041,pv=35904,gv=35906,is=36193,yv=33776,mv=33777,bv=33778,wv=33779,w1=35986,x1=35987,E1=34798,_1=35840,S1=35841,M1=35842,A1=35843,C1=36196,os=5121,xv=5123,Ev=5125,Cu=5126,CL=10242,TL=10243,IL=10497,_v=33071,kL=33648,NL=10240,OL=10241,Sv=9728,LL=9729,Mv=9984,T1=9985,I1=9986,Av=9987,DL=33170,Il=4352,PL=4353,RL=4354,FL=34046,BL=3317,GL=37440,zL=37441,jL=37443,k1=37444,Tu=33984,UL=[Mv,I1,T1,Av],kl=[0,Au,Cl,Al,yo],Yn={};Yn[Au]=Yn[hv]=Yn[vv]=1,Yn[Tl]=Yn[Cl]=2,Yn[Al]=Yn[pv]=3,Yn[yo]=Yn[gv]=4;function ss(T){return"[object "+T+"]"}var N1=ss("HTMLCanvasElement"),O1=ss("OffscreenCanvas"),L1=ss("CanvasRenderingContext2D"),D1=ss("ImageBitmap"),P1=ss("HTMLImageElement"),R1=ss("HTMLVideoElement"),$L=Object.keys(ov).concat([N1,O1,L1,D1,P1,R1]),us=[];us[os]=1,us[Cu]=4,us[is]=2,us[xv]=2,us[Ev]=4;var nn=[];nn[m1]=2,nn[dv]=2,nn[b1]=2,nn[Tl]=4,nn[yv]=.5,nn[mv]=.5,nn[bv]=1,nn[wv]=1,nn[w1]=.5,nn[x1]=1,nn[E1]=1,nn[_1]=.5,nn[S1]=.25,nn[M1]=.5,nn[A1]=.25,nn[C1]=.5;function F1(T){return Array.isArray(T)&&(T.length===0||typeof T[0]=="number")}function B1(T){if(!Array.isArray(T))return!1;var F=T.length;return!(F===0||!Mr(T[0]))}function mo(T){return Object.prototype.toString.call(T)}function G1(T){return mo(T)===N1}function z1(T){return mo(T)===O1}function XL(T){return mo(T)===L1}function WL(T){return mo(T)===D1}function VL(T){return mo(T)===P1}function YL(T){return mo(T)===R1}function Cv(T){if(!T)return!1;var F=mo(T);return $L.indexOf(F)>=0?!0:F1(T)||B1(T)||fa(T)}function j1(T){return ov[Object.prototype.toString.call(T)]|0}function qL(T,F){var W=F.length;switch(T.type){case os:case xv:case Ev:case Cu:var ue=gt.allocType(T.type,W);ue.set(F),T.data=ue;break;case is:T.data=g1(F);break;default:N.raise("unsupported texture type, must specify a typed array")}}function U1(T,F){return gt.allocType(T.type===is?Cu:T.type,F)}function $1(T,F){T.type===is?(T.data=g1(F),gt.freeType(F)):T.data=F}function HL(T,F,W,ue,be,se){for(var de=T.width,Ce=T.height,Ne=T.channels,Pe=de*Ce*Ne,Oe=U1(T,Pe),Be=0,Xe=0;Xe=1;)Ce+=de*Ne*Ne,Ne/=2;return Ce}else return de*W*ue}function ZL(T,F,W,ue,be,se,de){var Ce={"don't care":Il,"dont care":Il,nice:RL,fast:PL},Ne={repeat:IL,clamp:_v,mirror:kL},Pe={nearest:Sv,linear:LL},Oe=n({mipmap:Av,"nearest mipmap nearest":Mv,"linear mipmap nearest":T1,"nearest mipmap linear":I1,"linear mipmap linear":Av},Pe),Be={none:0,browser:k1},Xe={uint8:os,rgba4:_L,rgb565:ML,"rgb5 a1":SL},Te={alpha:hv,luminance:Au,"luminance alpha":Cl,rgb:Al,rgba:yo,rgba4:m1,"rgb5 a1":dv,rgb565:b1},Ge={};F.ext_srgb&&(Te.srgb=pv,Te.srgba=gv),F.oes_texture_float&&(Xe.float32=Xe.float=Cu),F.oes_texture_half_float&&(Xe.float16=Xe["half float"]=is),F.webgl_depth_texture&&(n(Te,{depth:vv,"depth stencil":Tl}),n(Xe,{uint16:xv,uint32:Ev,"depth stencil":AL})),F.webgl_compressed_texture_s3tc&&n(Ge,{"rgb s3tc dxt1":yv,"rgba s3tc dxt1":mv,"rgba s3tc dxt3":bv,"rgba s3tc dxt5":wv}),F.webgl_compressed_texture_atc&&n(Ge,{"rgb atc":w1,"rgba atc explicit alpha":x1,"rgba atc interpolated alpha":E1}),F.webgl_compressed_texture_pvrtc&&n(Ge,{"rgb pvrtc 4bppv1":_1,"rgb pvrtc 2bppv1":S1,"rgba pvrtc 4bppv1":M1,"rgba pvrtc 2bppv1":A1}),F.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=C1);var re=Array.prototype.slice.call(T.getParameter(EL));Object.keys(Ge).forEach(function($){var fe=Ge[$];re.indexOf(fe)>=0&&(Te[$]=fe)});var ve=Object.keys(Te);W.textureFormats=ve;var De=[];Object.keys(Te).forEach(function($){var fe=Te[$];De[fe]=$});var He=[];Object.keys(Xe).forEach(function($){var fe=Xe[$];He[fe]=$});var Ee=[];Object.keys(Pe).forEach(function($){var fe=Pe[$];Ee[fe]=$});var et=[];Object.keys(Oe).forEach(function($){var fe=Oe[$];et[fe]=$});var Ae=[];Object.keys(Ne).forEach(function($){var fe=Ne[$];Ae[fe]=$});var ze=ve.reduce(function($,fe){var oe=Te[fe];return oe===Au||oe===hv||oe===Au||oe===Cl||oe===vv||oe===Tl||F.ext_srgb&&(oe===pv||oe===gv)?$[oe]=oe:oe===dv||fe.indexOf("rgba")>=0?$[oe]=yo:$[oe]=Al,$},{});function Me(){this.internalformat=yo,this.format=yo,this.type=os,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=k1,this.width=0,this.height=0,this.channels=0}function je($,fe){$.internalformat=fe.internalformat,$.format=fe.format,$.type=fe.type,$.compressed=fe.compressed,$.premultiplyAlpha=fe.premultiplyAlpha,$.flipY=fe.flipY,$.unpackAlignment=fe.unpackAlignment,$.colorSpace=fe.colorSpace,$.width=fe.width,$.height=fe.height,$.channels=fe.channels}function ct($,fe){if(!(typeof fe!="object"||!fe)){if("premultiplyAlpha"in fe&&(N.type(fe.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),$.premultiplyAlpha=fe.premultiplyAlpha),"flipY"in fe&&(N.type(fe.flipY,"boolean","invalid texture flip"),$.flipY=fe.flipY),"alignment"in fe&&(N.oneOf(fe.alignment,[1,2,4,8],"invalid texture unpack alignment"),$.unpackAlignment=fe.alignment),"colorSpace"in fe&&(N.parameter(fe.colorSpace,Be,"invalid colorSpace"),$.colorSpace=Be[fe.colorSpace]),"type"in fe){var oe=fe.type;N(F.oes_texture_float||!(oe==="float"||oe==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),N(F.oes_texture_half_float||!(oe==="half float"||oe==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),N(F.webgl_depth_texture||!(oe==="uint16"||oe==="uint32"||oe==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(oe,Xe,"invalid texture type"),$.type=Xe[oe]}var rt=$.width,Ft=$.height,j=$.channels,D=!1;"shape"in fe?(N(Array.isArray(fe.shape)&&fe.shape.length>=2,"shape must be an array"),rt=fe.shape[0],Ft=fe.shape[1],fe.shape.length===3&&(j=fe.shape[2],N(j>0&&j<=4,"invalid number of channels"),D=!0),N(rt>=0&&rt<=W.maxTextureSize,"invalid width"),N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")):("radius"in fe&&(rt=Ft=fe.radius,N(rt>=0&&rt<=W.maxTextureSize,"invalid radius")),"width"in fe&&(rt=fe.width,N(rt>=0&&rt<=W.maxTextureSize,"invalid width")),"height"in fe&&(Ft=fe.height,N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")),"channels"in fe&&(j=fe.channels,N(j>0&&j<=4,"invalid number of channels"),D=!0)),$.width=rt|0,$.height=Ft|0,$.channels=j|0;var q=!1;if("format"in fe){var ee=fe.format;N(F.webgl_depth_texture||!(ee==="depth"||ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(ee,Te,"invalid texture format");var ne=$.internalformat=Te[ee];$.format=ze[ne],ee in Xe&&("type"in fe||($.type=Xe[ee])),ee in Ge&&($.compressed=!0),q=!0}!D&&q?$.channels=Yn[$.format]:D&&!q?$.channels!==kl[$.format]&&($.format=$.internalformat=kl[$.channels]):q&&D&&N($.channels===Yn[$.format],"number of channels inconsistent with specified format")}}function Mt($){T.pixelStorei(GL,$.flipY),T.pixelStorei(zL,$.premultiplyAlpha),T.pixelStorei(jL,$.colorSpace),T.pixelStorei(BL,$.unpackAlignment)}function We(){Me.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Re($,fe){var oe=null;if(Cv(fe)?oe=fe:fe&&(N.type(fe,"object","invalid pixel data type"),ct($,fe),"x"in fe&&($.xOffset=fe.x|0),"y"in fe&&($.yOffset=fe.y|0),Cv(fe.data)&&(oe=fe.data)),N(!$.compressed||oe instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),fe.copy){N(!oe,"can not specify copy and data field for the same texture");var rt=be.viewportWidth,Ft=be.viewportHeight;$.width=$.width||rt-$.xOffset,$.height=$.height||Ft-$.yOffset,$.needsCopy=!0,N($.xOffset>=0&&$.xOffset=0&&$.yOffset0&&$.width<=rt&&$.height>0&&$.height<=Ft,"copy texture read out of bounds")}else if(!oe)$.width=$.width||1,$.height=$.height||1,$.channels=$.channels||4;else if(t(oe))$.channels=$.channels||4,$.data=oe,!("type"in fe)&&$.type===os&&($.type=j1(oe));else if(F1(oe))$.channels=$.channels||4,qL($,oe),$.alignment=1,$.needsFree=!0;else if(fa(oe)){var j=oe.data;!Array.isArray(j)&&$.type===os&&($.type=j1(j));var D=oe.shape,q=oe.stride,ee,ne,K,H,Q,U;D.length===3?(K=D[2],U=q[2]):(N(D.length===2,"invalid ndarray pixel data, must be 2 or 3D"),K=1,U=1),ee=D[0],ne=D[1],H=q[0],Q=q[1],$.alignment=1,$.width=ee,$.height=ne,$.channels=K,$.format=$.internalformat=kl[K],$.needsFree=!0,HL($,j,H,Q,U,oe.offset)}else if(G1(oe)||z1(oe)||XL(oe))G1(oe)||z1(oe)?$.element=oe:$.element=oe.canvas,$.width=$.element.width,$.height=$.element.height,$.channels=4;else if(WL(oe))$.element=oe,$.width=oe.width,$.height=oe.height,$.channels=4;else if(VL(oe))$.element=oe,$.width=oe.naturalWidth,$.height=oe.naturalHeight,$.channels=4;else if(YL(oe))$.element=oe,$.width=oe.videoWidth,$.height=oe.videoHeight,$.channels=4;else if(B1(oe)){var Y=$.width||oe[0].length,G=$.height||oe.length,J=$.channels;Mr(oe[0][0])?J=J||oe[0][0].length:J=J||1;for(var ae=El.shape(oe),ye=1,we=0;we=0,"oes_texture_float extension not enabled"):$.type===is&&N(W.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xe($,fe,oe){var rt=$.element,Ft=$.data,j=$.internalformat,D=$.format,q=$.type,ee=$.width,ne=$.height;Mt($),rt?T.texImage2D(fe,oe,D,D,q,rt):$.compressed?T.compressedTexImage2D(fe,oe,j,ee,ne,0,Ft):$.needsCopy?(ue(),T.copyTexImage2D(fe,oe,D,$.xOffset,$.yOffset,ee,ne,0)):T.texImage2D(fe,oe,D,ee,ne,0,D,q,Ft||null)}function xt($,fe,oe,rt,Ft){var j=$.element,D=$.data,q=$.internalformat,ee=$.format,ne=$.type,K=$.width,H=$.height;Mt($),j?T.texSubImage2D(fe,Ft,oe,rt,ee,ne,j):$.compressed?T.compressedTexSubImage2D(fe,Ft,oe,rt,q,K,H,D):$.needsCopy?(ue(),T.copyTexSubImage2D(fe,Ft,oe,rt,$.xOffset,$.yOffset,K,H)):T.texSubImage2D(fe,Ft,oe,rt,K,H,ee,ne,D)}var It=[];function nt(){return It.pop()||new We}function Rt($){$.needsFree&>.freeType($.data),We.call($),It.push($)}function At(){Me.call(this),this.genMipmaps=!1,this.mipmapHint=Il,this.mipmask=0,this.images=Array(16)}function Pt($,fe,oe){var rt=$.images[0]=nt();$.mipmask=1,rt.width=$.width=fe,rt.height=$.height=oe,rt.channels=$.channels=4}function Qt($,fe){var oe=null;if(Cv(fe))oe=$.images[0]=nt(),je(oe,$),Re(oe,fe),$.mipmask=1;else if(ct($,fe),Array.isArray(fe.mipmap))for(var rt=fe.mipmap,Ft=0;Ft>=Ft,oe.height>>=Ft,Re(oe,rt[Ft]),$.mipmask|=1<=0&&!("faces"in fe)&&($.genMipmaps=!0)}if("mag"in fe){var rt=fe.mag;N.parameter(rt,Pe),$.magFilter=Pe[rt]}var Ft=$.wrapS,j=$.wrapT;if("wrap"in fe){var D=fe.wrap;typeof D=="string"?(N.parameter(D,Ne),Ft=j=Ne[D]):Array.isArray(D)&&(N.parameter(D[0],Ne),N.parameter(D[1],Ne),Ft=Ne[D[0]],j=Ne[D[1]])}else{if("wrapS"in fe){var q=fe.wrapS;N.parameter(q,Ne),Ft=Ne[q]}if("wrapT"in fe){var ee=fe.wrapT;N.parameter(ee,Ne),j=Ne[ee]}}if($.wrapS=Ft,$.wrapT=j,"anisotropic"in fe){var ne=fe.anisotropic;N(typeof ne=="number"&&ne>=1&&ne<=W.maxAnisotropic,"aniso samples must be between 1 and "),$.anisotropic=fe.anisotropic}if("mipmap"in fe){var K=!1;switch(typeof fe.mipmap){case"string":N.parameter(fe.mipmap,Ce,"invalid mipmap hint"),$.mipmapHint=Ce[fe.mipmap],$.genMipmaps=!0,K=!0;break;case"boolean":K=$.genMipmaps=fe.mipmap;break;case"object":N(Array.isArray(fe.mipmap),"invalid mipmap type"),$.genMipmaps=!1,K=!0;break;default:N.raise("invalid mipmap type")}K&&!("min"in fe)&&($.minFilter=Mv)}}function zr($,fe){T.texParameteri(fe,OL,$.minFilter),T.texParameteri(fe,NL,$.magFilter),T.texParameteri(fe,CL,$.wrapS),T.texParameteri(fe,TL,$.wrapT),F.ext_texture_filter_anisotropic&&T.texParameteri(fe,FL,$.anisotropic),$.genMipmaps&&(T.hint(DL,$.mipmapHint),T.generateMipmap(fe))}var jr=0,Yr={},an=W.maxTextureUnits,Ar=Array(an).map(function(){return null});function kt($){Me.call(this),this.mipmask=0,this.internalformat=yo,this.id=jr++,this.refCount=1,this.target=$,this.texture=T.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new pr,de.profile&&(this.stats={size:0})}function on($){T.activeTexture(Tu),T.bindTexture($.target,$.texture)}function ir(){var $=Ar[0];$?T.bindTexture($.target,$.texture):T.bindTexture(Ca,null)}function vt($){var fe=$.texture;N(fe,"must not double destroy texture");var oe=$.unit,rt=$.target;oe>=0&&(T.activeTexture(Tu+oe),T.bindTexture(rt,null),Ar[oe]=null),T.deleteTexture(fe),$.texture=null,$.params=null,$.pixels=null,$.refCount=0,delete Yr[$.id],se.textureCount--}n(kt.prototype,{bind:function(){var $=this;$.bindCount+=1;var fe=$.unit;if(fe<0){for(var oe=0;oe0)continue;rt.unit=-1}Ar[oe]=$,fe=oe;break}fe>=an&&N.raise("insufficient number of texture units"),de.profile&&se.maxTextureUnits>Q)-K,U.height=U.height||(oe.height>>Q)-H,N(oe.type===U.type&&oe.format===U.format&&oe.internalformat===U.internalformat,"incompatible format for texture.subimage"),N(K>=0&&H>=0&&K+U.width<=oe.width&&H+U.height<=oe.height,"texture.subimage write out of bounds"),N(oe.mipmask&1<>K;++K){var H=ee>>K,Q=ne>>K;if(!H||!Q)break;T.texImage2D(Ca,K,oe.format,H,Q,0,oe.format,oe.type,null)}return ir(),de.profile&&(oe.stats.size=Nl(oe.internalformat,oe.type,ee,ne,!1,!1)),rt}return rt($,fe),rt.subimage=Ft,rt.resize=j,rt._reglType="texture2d",rt._texture=oe,de.profile&&(rt.stats=oe.stats),rt.destroy=function(){oe.decRef()},rt}function Vt($,fe,oe,rt,Ft,j){var D=new kt(cv);Yr[D.id]=D,se.cubeCount++;var q=new Array(6);function ee(H,Q,U,Y,G,J){var ae,ye=D.texInfo;for(pr.call(ye),ae=0;ae<6;++ae)q[ae]=zt();if(typeof H=="number"||!H){var we=H|0||1;for(ae=0;ae<6;++ae)Pt(q[ae],we,we)}else if(typeof H=="object")if(Q)Qt(q[0],H),Qt(q[1],Q),Qt(q[2],U),Qt(q[3],Y),Qt(q[4],G),Qt(q[5],J);else if(Or(ye,H),ct(D,H),"faces"in H){var pe=H.faces;for(N(Array.isArray(pe)&&pe.length===6,"cube faces must be a length 6 array"),ae=0;ae<6;++ae)N(typeof pe[ae]=="object"&&!!pe[ae],"invalid input for cube map face"),je(q[ae],D),Qt(q[ae],pe[ae])}else for(ae=0;ae<6;++ae)Qt(q[ae],H);else N.raise("invalid arguments to cube map");for(je(D,q[0]),W.npotTextureCube||N(y1(D.width)&&y1(D.height),"your browser does not support non power or two texture dimensions"),ye.genMipmaps?D.mipmask=(q[0].width<<1)-1:D.mipmask=q[0].mipmask,N.textureCube(D,ye,q,W),D.internalformat=q[0].internalformat,ee.width=q[0].width,ee.height=q[0].height,on(D),ae=0;ae<6;++ae)Nr(q[ae],Ml+ae);for(zr(ye,cv),ir(),de.profile&&(D.stats.size=Nl(D.internalformat,D.type,ee.width,ee.height,ye.genMipmaps,!0)),ee.format=De[D.internalformat],ee.type=He[D.type],ee.mag=Ee[ye.magFilter],ee.min=et[ye.minFilter],ee.wrapS=Ae[ye.wrapS],ee.wrapT=Ae[ye.wrapT],ae=0;ae<6;++ae)Gr(q[ae]);return ee}function ne(H,Q,U,Y,G){N(!!Q,"must specify image data"),N(typeof H=="number"&&H===(H|0)&&H>=0&&H<6,"invalid face");var J=U|0,ae=Y|0,ye=G|0,we=nt();return je(we,D),we.width=0,we.height=0,Re(we,Q),we.width=we.width||(D.width>>ye)-J,we.height=we.height||(D.height>>ye)-ae,N(D.type===we.type&&D.format===we.format&&D.internalformat===we.internalformat,"incompatible format for texture.subimage"),N(J>=0&&ae>=0&&J+we.width<=D.width&&ae+we.height<=D.height,"texture.subimage write out of bounds"),N(D.mipmask&1<>Y;++Y)T.texImage2D(Ml+U,Y,D.format,Q>>Y,Q>>Y,0,D.format,D.type,null);return ir(),de.profile&&(D.stats.size=Nl(D.internalformat,D.type,ee.width,ee.height,!1,!0)),ee}}return ee($,fe,oe,rt,Ft,j),ee.subimage=ne,ee.resize=K,ee._reglType="textureCube",ee._texture=D,de.profile&&(ee.stats=D.stats),ee.destroy=function(){D.decRef()},ee}function Cr(){for(var $=0;$>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);else for(var Ft=0;Ft<6;++Ft)T.texImage2D(Ml+Ft,rt,oe.internalformat,oe.width>>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);zr(oe.texInfo,oe.target)})}function Mo(){for(var $=0;$=2,"invalid renderbuffer shape"),et=je[0]|0,Ae=je[1]|0}else"radius"in Me&&(et=Ae=Me.radius|0),"width"in Me&&(et=Me.width|0),"height"in Me&&(Ae=Me.height|0);"format"in Me&&(N.parameter(Me.format,se,"invalid renderbuffer format"),ze=se[Me.format])}else typeof He=="number"?(et=He|0,typeof Ee=="number"?Ae=Ee|0:Ae=et):He?N.raise("invalid arguments to renderbuffer constructor"):et=Ae=1;if(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),!(et===re.width&&Ae===re.height&&ze===re.format))return ve.width=re.width=et,ve.height=re.height=Ae,re.format=ze,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,ze,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=J1(re.format,re.width,re.height)),ve.format=de[re.format],ve}function De(He,Ee){var et=He|0,Ae=Ee|0||et;return et===re.width&&Ae===re.height||(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),ve.width=re.width=et,ve.height=re.height=Ae,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,re.format,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=J1(re.format,re.width,re.height))),ve}return ve(Te,Ge),ve.resize=De,ve._reglType="renderbuffer",ve._renderbuffer=re,be.profile&&(ve.stats=re.stats),ve.destroy=function(){re.decRef()},ve}be.profile&&(ue.getTotalRenderbufferSize=function(){var Te=0;return Object.keys(Ne).forEach(function(Ge){Te+=Ne[Ge].stats.size}),Te});function Xe(){Pn(Ne).forEach(function(Te){Te.renderbuffer=T.createRenderbuffer(),T.bindRenderbuffer(Ci,Te.renderbuffer),T.renderbufferStorage(Ci,Te.format,Te.width,Te.height)}),T.bindRenderbuffer(Ci,null)}return{create:Be,clear:function(){Pn(Ne).forEach(Oe)},restore:Xe}},ni=36160,Tv=36161,bo=3553,Ll=34069,eb=36064,tb=36096,rb=36128,nb=33306,ab=36053,QL=36054,JL=36055,eD=36057,tD=36061,rD=36193,nD=5121,aD=5126,ib=6407,ob=6408,iD=6402,oD=[ib,ob],Iv=[];Iv[ob]=4,Iv[ib]=3;var Dl=[];Dl[nD]=1,Dl[aD]=4,Dl[rD]=2;var sD=32854,uD=32855,fD=36194,lD=33189,cD=36168,sb=34041,hD=35907,dD=34836,vD=34842,pD=34843,gD=[sD,uD,fD,hD,vD,pD,dD],fs={};fs[ab]="complete",fs[QL]="incomplete attachment",fs[eD]="incomplete dimensions",fs[JL]="incomplete, missing attachment",fs[tD]="unsupported";function yD(T,F,W,ue,be,se){var de={cur:null,next:null,dirty:!1,setFBO:null},Ce=["rgba"],Ne=["rgba4","rgb565","rgb5 a1"];F.ext_srgb&&Ne.push("srgba"),F.ext_color_buffer_half_float&&Ne.push("rgba16f","rgb16f"),F.webgl_color_buffer_float&&Ne.push("rgba32f");var Pe=["uint8"];F.oes_texture_half_float&&Pe.push("half float","float16"),F.oes_texture_float&&Pe.push("float","float32");function Oe(We,Re,xe){this.target=We,this.texture=Re,this.renderbuffer=xe;var xt=0,It=0;Re?(xt=Re.width,It=Re.height):xe&&(xt=xe.width,It=xe.height),this.width=xt,this.height=It}function Be(We){We&&(We.texture&&We.texture._texture.decRef(),We.renderbuffer&&We.renderbuffer._renderbuffer.decRef())}function Xe(We,Re,xe){if(We)if(We.texture){var xt=We.texture._texture,It=Math.max(1,xt.width),nt=Math.max(1,xt.height);N(It===Re&&nt===xe,"inconsistent width/height for supplied texture"),xt.refCount+=1}else{var Rt=We.renderbuffer._renderbuffer;N(Rt.width===Re&&Rt.height===xe,"inconsistent width/height for renderbuffer"),Rt.refCount+=1}}function Te(We,Re){Re&&(Re.texture?T.framebufferTexture2D(ni,We,Re.target,Re.texture._texture.texture,0):T.framebufferRenderbuffer(ni,We,Tv,Re.renderbuffer._renderbuffer.renderbuffer))}function Ge(We){var Re=bo,xe=null,xt=null,It=We;typeof We=="object"&&(It=We.data,"target"in We&&(Re=We.target|0)),N.type(It,"function","invalid attachment data");var nt=It._reglType;return nt==="texture2d"?(xe=It,N(Re===bo)):nt==="textureCube"?(xe=It,N(Re>=Ll&&Re=2,"invalid shape for framebuffer"),Pt=on[0],Qt=on[1]}else"radius"in kt&&(Pt=Qt=kt.radius),"width"in kt&&(Pt=kt.width),"height"in kt&&(Qt=kt.height);("color"in kt||"colors"in kt)&&(zt=kt.color||kt.colors,Array.isArray(zt)&&N(zt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),zt||("colorCount"in kt&&(zr=kt.colorCount|0,N(zr>0,"invalid color buffer count")),"colorTexture"in kt&&(Gr=!!kt.colorTexture,pr="rgba4"),"colorType"in kt&&(Or=kt.colorType,Gr?(N(F.oes_texture_float||!(Or==="float"||Or==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),N(F.oes_texture_half_float||!(Or==="half float"||Or==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Or==="half float"||Or==="float16"?(N(F.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),pr="rgba16f"):(Or==="float"||Or==="float32")&&(N(F.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),pr="rgba32f"),N.oneOf(Or,Pe,"invalid color type")),"colorFormat"in kt&&(pr=kt.colorFormat,Ce.indexOf(pr)>=0?Gr=!0:Ne.indexOf(pr)>=0?Gr=!1:Gr?N.oneOf(kt.colorFormat,Ce,"invalid color format for texture"):N.oneOf(kt.colorFormat,Ne,"invalid color format for renderbuffer"))),("depthTexture"in kt||"depthStencilTexture"in kt)&&(Ar=!!(kt.depthTexture||kt.depthStencilTexture),N(!Ar||F.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in kt&&(typeof kt.depth=="boolean"?Nr=kt.depth:(jr=kt.depth,$r=!1)),"stencil"in kt&&(typeof kt.stencil=="boolean"?$r=kt.stencil:(Yr=kt.stencil,Nr=!1)),"depthStencil"in kt&&(typeof kt.depthStencil=="boolean"?Nr=$r=kt.depthStencil:(an=kt.depthStencil,Nr=!1,$r=!1))}var ir=null,vt=null,Gt=null,Vt=null;if(Array.isArray(zt))ir=zt.map(Ge);else if(zt)ir=[Ge(zt)];else for(ir=new Array(zr),At=0;At=0||ir[At].renderbuffer&&gD.indexOf(ir[At].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+At+" is invalid"),ir[At]&&ir[At].texture){var Ia=Iv[ir[At].texture._texture.format]*Dl[ir[At].texture._texture.type];Cr===null?Cr=Ia:N(Cr===Ia,"all color attachments much have the same number of bits per pixel.")}return Xe(vt,Pt,Qt),N(!vt||vt.texture&&vt.texture._texture.format===iD||vt.renderbuffer&&vt.renderbuffer._renderbuffer.format===lD,"invalid depth attachment for framebuffer object"),Xe(Gt,Pt,Qt),N(!Gt||Gt.renderbuffer&&Gt.renderbuffer._renderbuffer.format===cD,"invalid stencil attachment for framebuffer object"),Xe(Vt,Pt,Qt),N(!Vt||Vt.texture&&Vt.texture._texture.format===sb||Vt.renderbuffer&&Vt.renderbuffer._renderbuffer.format===sb,"invalid depth-stencil attachment for framebuffer object"),Ae(xe),xe.width=Pt,xe.height=Qt,xe.colorAttachments=ir,xe.depthAttachment=vt,xe.stencilAttachment=Gt,xe.depthStencilAttachment=Vt,xt.color=ir.map(ve),xt.depth=ve(vt),xt.stencil=ve(Gt),xt.depthStencil=ve(Vt),xt.width=xe.width,xt.height=xe.height,Me(xe),xt}function It(nt,Rt){N(de.next!==xe,"can not resize a framebuffer which is currently in use");var At=Math.max(nt|0,1),Pt=Math.max(Rt|0||At,1);if(At===xe.width&&Pt===xe.height)return xt;for(var Qt=xe.colorAttachments,Nr=0;Nr=2,"invalid shape for framebuffer"),N(Gr[0]===Gr[1],"cube framebuffer must be square"),At=Gr[0]}else"radius"in zt&&(At=zt.radius|0),"width"in zt?(At=zt.width|0,"height"in zt&&N(zt.height===At,"must be square")):"height"in zt&&(At=zt.height|0);("color"in zt||"colors"in zt)&&(Pt=zt.color||zt.colors,Array.isArray(Pt)&&N(Pt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),Pt||("colorCount"in zt&&($r=zt.colorCount|0,N($r>0,"invalid color buffer count")),"colorType"in zt&&(N.oneOf(zt.colorType,Pe,"invalid color type"),Nr=zt.colorType),"colorFormat"in zt&&(Qt=zt.colorFormat,N.oneOf(zt.colorFormat,Ce,"invalid color format for texture"))),"depth"in zt&&(Rt.depth=zt.depth),"stencil"in zt&&(Rt.stencil=zt.stencil),"depthStencil"in zt&&(Rt.depthStencil=zt.depthStencil)}var pr;if(Pt)if(Array.isArray(Pt))for(pr=[],nt=0;nt0&&(Rt.depth=Re[0].depth,Rt.stencil=Re[0].stencil,Rt.depthStencil=Re[0].depthStencil),Re[nt]?Re[nt](Rt):Re[nt]=je(Rt)}return n(xe,{width:At,height:At,color:pr})}function xt(It){var nt,Rt=It|0;if(N(Rt>0&&Rt<=W.maxCubeMapSize,"invalid radius for cube fbo"),Rt===xe.width)return xe;var At=xe.color;for(nt=0;nt0,"must specify at least one attribute");var ct={},Mt=ze.attributes;Mt.length=je.length;for(var We=0;We=xt.byteLength?It.subdata(xt):(It.destroy(),ze.buffers[We]=null)),ze.buffers[We]||(It=ze.buffers[We]=be.create(Re,ub,!1,!0)),xe.buffer=be.getBuffer(It),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1,ct[We]=1}else be.getBuffer(Re)?(xe.buffer=be.getBuffer(Re),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1):be.getBuffer(Re.buffer)?(xe.buffer=be.getBuffer(Re.buffer),xe.size=(+Re.size||xe.buffer.dimension)|0,xe.normalized=!!Re.normalized||!1,"type"in Re?(N.parameter(Re.type,po,"invalid buffer type"),xe.type=po[Re.type]):xe.type=xe.buffer.dtype,xe.offset=(Re.offset||0)|0,xe.stride=(Re.stride||0)|0,xe.divisor=(Re.divisor||0)|0,xe.state=1,N(xe.size>=1&&xe.size<=4,"size must be between 1 and 4"),N(xe.offset>=0,"invalid offset"),N(xe.stride>=0&&xe.stride<=255,"stride must be between 0 and 255"),N(xe.divisor>=0,"divisor must be positive"),N(!xe.divisor||!!F.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Re?(N(We>0,"first attribute must not be a constant"),xe.x=+Re.x||0,xe.y=+Re.y||0,xe.z=+Re.z||0,xe.w=+Re.w||0,xe.state=2):N(!1,"invalid attribute spec for location "+We)}for(var nt=0;nt1)for(var Mt=0;Mtre&&(re=ve.stats.uniformsCount)}),re},W.getMaxAttributesCount=function(){var re=0;return Oe.forEach(function(ve){ve.stats.attributesCount>re&&(re=ve.stats.attributesCount)}),re});function Ge(){be={},se={};for(var re=0;re=0,"missing vertex shader",De),N.command(ve>=0,"missing fragment shader",De);var Ee=Pe[ve];Ee||(Ee=Pe[ve]={});var et=Ee[re];if(et&&(et.refCount++,!He))return et;var Ae=new Xe(ve,re);return W.shaderCount++,Te(Ae,De,He),et||(Ee[re]=Ae),Oe.push(Ae),n(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){T.deleteProgram(Ae.program);var ze=Oe.indexOf(Ae);Oe.splice(ze,1),W.shaderCount--}Ee[Ae.vertId].refCount<=0&&(T.deleteShader(se[Ae.vertId]),delete se[Ae.vertId],delete Pe[Ae.fragId][Ae.vertId]),Object.keys(Pe[Ae.fragId]).length||(T.deleteShader(be[Ae.fragId]),delete be[Ae.fragId],delete Pe[Ae.fragId])}})},restore:Ge,shader:Ne,frag:-1,vert:-1}}var SD=6408,Iu=5121,MD=3333,Pl=5126;function AD(T,F,W,ue,be,se,de){function Ce(Oe){var Be;F.next===null?(N(be.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Be=Iu):(N(F.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Be=F.next.colorAttachments[0].texture._texture.type,se.oes_texture_float?(N(Be===Iu||Be===Pl,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Be===Pl&&N(de.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):N(Be===Iu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Xe=0,Te=0,Ge=ue.framebufferWidth,re=ue.framebufferHeight,ve=null;t(Oe)?ve=Oe:Oe&&(N.type(Oe,"object","invalid arguments to regl.read()"),Xe=Oe.x|0,Te=Oe.y|0,N(Xe>=0&&Xe=0&&Te0&&Ge+Xe<=ue.framebufferWidth,"invalid width for read pixels"),N(re>0&&re+Te<=ue.framebufferHeight,"invalid height for read pixels"),W();var De=Ge*re*4;return ve||(Be===Iu?ve=new Uint8Array(De):Be===Pl&&(ve=ve||new Float32Array(De))),N.isTypedArray(ve,"data buffer for regl.read() must be a typedarray"),N(ve.byteLength>=De,"data buffer for regl.read() too small"),T.pixelStorei(MD,4),T.readPixels(Xe,Te,Ge,re,SD,Be,ve),ve}function Ne(Oe){var Be;return F.setFBO({framebuffer:Oe.framebuffer},function(){Be=Ce(Oe)}),Be}function Pe(Oe){return!Oe||!("framebuffer"in Oe)?Ce(Oe):Ne(Oe)}return Pe}function ls(T){return Array.prototype.slice.call(T)}function cs(T){return ls(T).join("")}function CD(){var T=0,F=[],W=[];function ue(Be){for(var Xe=0;Xe0&&(Be.push(re,"="),Be.push.apply(Be,ls(arguments)),Be.push(";")),re}return n(Xe,{def:Ge,toString:function(){return cs([Te.length>0?"var "+Te.join(",")+";":"",cs(Be)])}})}function se(){var Be=be(),Xe=be(),Te=Be.toString,Ge=Xe.toString;function re(ve,De){Xe(ve,De,"=",Be.def(ve,De),";")}return n(function(){Be.apply(Be,ls(arguments))},{def:Be.def,entry:Be,exit:Xe,save:re,set:function(ve,De,He){re(ve,De),Be(ve,De,"=",He,";")},toString:function(){return Te()+Ge()}})}function de(){var Be=cs(arguments),Xe=se(),Te=se(),Ge=Xe.toString,re=Te.toString;return n(Xe,{then:function(){return Xe.apply(Xe,ls(arguments)),this},else:function(){return Te.apply(Te,ls(arguments)),this},toString:function(){var ve=re();return ve&&(ve="else{"+ve+"}"),cs(["if(",Be,"){",Ge(),"}",ve])}})}var Ce=be(),Ne={};function Pe(Be,Xe){var Te=[];function Ge(){var Ee="a"+Te.length;return Te.push(Ee),Ee}Xe=Xe||0;for(var re=0;re":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Gb={frag:OD,vert:LD},Kv={cw:Lb,ccw:Zv};function Hl(T){return Array.isArray(T)||t(T)||fa(T)}function zb(T){return T.sort(function(F,W){return F===ai?-1:W===ai?1:F=1,ue>=2,F)}else if(W===Rl){var be=T.data;return new En(be.thisDep,be.contextDep,be.propDep,F)}else{if(W===cb)return new En(!1,!1,!1,F);if(W===hb){for(var se=!1,de=!1,Ce=!1,Ne=0;Ne=1&&(de=!0),Oe>=2&&(Ce=!0)}else Pe.type===Rl&&(se=se||Pe.data.thisDep,de=de||Pe.data.contextDep,Ce=Ce||Pe.data.propDep)}return new En(se,de,Ce,F)}else return new En(W===Pv,W===Dv,W===Lv,F)}}var jb=new En(!1,!1,!1,function(){});function HD(T,F,W,ue,be,se,de,Ce,Ne,Pe,Oe,Be,Xe,Te,Ge){var re=Pe.Record,ve={add:32774,subtract:32778,"reverse subtract":32779};W.ext_blend_minmax&&(ve.min=XD,ve.max=WD);var De=W.angle_instanced_arrays,He=W.webgl_draw_buffers,Ee={dirty:!0,profile:Ge.profile},et={},Ae=[],ze={},Me={};function je(j){return j.replace(".","_")}function ct(j,D,q){var ee=je(j);Ae.push(j),et[ee]=Ee[ee]=!!q,ze[ee]=D}function Mt(j,D,q){var ee=je(j);Ae.push(j),Array.isArray(q)?(Ee[ee]=q.slice(),et[ee]=q.slice()):Ee[ee]=et[ee]=q,Me[ee]=D}ct(db,FD),ct(vb,RD),Mt(pb,"blendColor",[0,0,0,0]),Mt(Rv,"blendEquationSeparate",[Rb,Rb]),Mt(Fv,"blendFuncSeparate",[Pb,Db,Pb,Db]),ct(gb,GD,!0),Mt(yb,"depthFunc",YD),Mt(mb,"depthRange",[0,1]),Mt(bb,"depthMask",!0),Mt(Bv,Bv,[!0,!0,!0,!0]),ct(wb,PD),Mt(xb,"cullFace",So),Mt(Gv,Gv,Zv),Mt(zv,zv,1),ct(Eb,jD),Mt(jv,"polygonOffset",[0,0]),ct(_b,UD),ct(Sb,$D),Mt(Uv,"sampleCoverage",[1,!1]),ct(Mb,BD),Mt(Ab,"stencilMask",-1),Mt($v,"stencilFunc",[VD,0,-1]),Mt(Xv,"stencilOpSeparate",[zu,Ti,Ti,Ti]),Mt(ku,"stencilOpSeparate",[So,Ti,Ti,Ti]),ct(Cb,zD),Mt(Fl,"scissor",[0,0,T.drawingBufferWidth,T.drawingBufferHeight]),Mt(ai,ai,[0,0,T.drawingBufferWidth,T.drawingBufferHeight]);var We={gl:T,context:Xe,strings:F,next:et,current:Ee,draw:Be,elements:se,buffer:be,shader:Oe,attributes:Pe.state,vao:Pe,uniforms:Ne,framebuffer:Ce,extensions:W,timer:Te,isBufferArgs:Hl},Re={primTypes:rs,compareFuncs:ys,blendFuncs:Ta,blendEquations:ve,stencilOps:Ii,glTypes:po,orientationType:Kv};N.optional(function(){We.isArrayLike=Mr}),He&&(Re.backBuffer=[So],Re.drawBuffer=rn(ue.maxDrawbuffers,function(j){return j===0?[0]:rn(j,function(D){return qD+D})}));var xe=0;function xt(){var j=CD(),D=j.link,q=j.global;j.id=xe++,j.batchId="0";var ee=D(We),ne=j.shared={props:"a0"};Object.keys(We).forEach(function(Y){ne[Y]=q.def(ee,".",Y)}),N.optional(function(){j.CHECK=D(N),j.commandStr=N.guessCommand(),j.command=D(j.commandStr),j.assert=function(Y,G,J){Y("if(!(",G,"))",this.CHECK,".commandRaise(",D(J),",",this.command,");")},Re.invalidBlendCombinations=Bb});var K=j.next={},H=j.current={};Object.keys(Me).forEach(function(Y){Array.isArray(Ee[Y])&&(K[Y]=q.def(ne.next,".",Y),H[Y]=q.def(ne.current,".",Y))});var Q=j.constants={};Object.keys(Re).forEach(function(Y){Q[Y]=q.def(JSON.stringify(Re[Y]))}),j.invoke=function(Y,G){switch(G.type){case Ov:var J=["this",ne.context,ne.props,j.batchId];return Y.def(D(G.data),".call(",J.slice(0,Math.max(G.data.length+1,4)),")");case Lv:return Y.def(ne.props,G.data);case Dv:return Y.def(ne.context,G.data);case Pv:return Y.def("this",G.data);case Rl:return G.data.append(j,Y),G.data.ref;case cb:return G.data.toString();case hb:return G.data.map(function(ae){return j.invoke(Y,ae)})}},j.attribCache={};var U={};return j.scopeAttrib=function(Y){var G=F.id(Y);if(G in U)return U[G];var J=Pe.scope[G];J||(J=Pe.scope[G]=new re);var ae=U[G]=D(J);return ae},j}function It(j){var D=j.static,q=j.dynamic,ee;if(Nu in D){var ne=!!D[Nu];ee=kr(function(H,Q){return ne}),ee.enable=ne}else if(Nu in q){var K=q[Nu];ee=Cn(K,function(H,Q){return H.invoke(Q,K)})}return ee}function nt(j,D){var q=j.static,ee=j.dynamic;if(wo in q){var ne=q[wo];return ne?(ne=Ce.getFramebuffer(ne),N.command(ne,"invalid framebuffer object"),kr(function(H,Q){var U=H.link(ne),Y=H.shared;Q.set(Y.framebuffer,".next",U);var G=Y.context;return Q.set(G,"."+vs,U+".width"),Q.set(G,"."+ps,U+".height"),U})):kr(function(H,Q){var U=H.shared;Q.set(U.framebuffer,".next","null");var Y=U.context;return Q.set(Y,"."+vs,Y+"."+Ib),Q.set(Y,"."+ps,Y+"."+kb),"null"})}else if(wo in ee){var K=ee[wo];return Cn(K,function(H,Q){var U=H.invoke(Q,K),Y=H.shared,G=Y.framebuffer,J=Q.def(G,".getFramebuffer(",U,")");N.optional(function(){H.assert(Q,"!"+U+"||"+J,"invalid framebuffer object")}),Q.set(G,".next",J);var ae=Y.context;return Q.set(ae,"."+vs,J+"?"+J+".width:"+ae+"."+Ib),Q.set(ae,"."+ps,J+"?"+J+".height:"+ae+"."+kb),J})}else return null}function Rt(j,D,q){var ee=j.static,ne=j.dynamic;function K(U){if(U in ee){var Y=ee[U];N.commandType(Y,"object","invalid "+U,q.commandStr);var G=!0,J=Y.x|0,ae=Y.y|0,ye,we;return"width"in Y?(ye=Y.width|0,N.command(ye>=0,"invalid "+U,q.commandStr)):G=!1,"height"in Y?(we=Y.height|0,N.command(we>=0,"invalid "+U,q.commandStr)):G=!1,new En(!G&&D&&D.thisDep,!G&&D&&D.contextDep,!G&&D&&D.propDep,function(ut,Nt){var at=ut.shared.context,yt=ye;"width"in Y||(yt=Nt.def(at,".",vs,"-",J));var Ct=we;return"height"in Y||(Ct=Nt.def(at,".",ps,"-",ae)),[J,ae,yt,Ct]})}else if(U in ne){var pe=ne[U],Le=Cn(pe,function(ut,Nt){var at=ut.invoke(Nt,pe);N.optional(function(){ut.assert(Nt,at+"&&typeof "+at+'==="object"',"invalid "+U)});var yt=ut.shared.context,Ct=Nt.def(at,".x|0"),Jt=Nt.def(at,".y|0"),xr=Nt.def('"width" in ',at,"?",at,".width|0:","(",yt,".",vs,"-",Ct,")"),_n=Nt.def('"height" in ',at,"?",at,".height|0:","(",yt,".",ps,"-",Jt,")");return N.optional(function(){ut.assert(Nt,xr+">=0&&"+_n+">=0","invalid "+U)}),[Ct,Jt,xr,_n]});return D&&(Le.thisDep=Le.thisDep||D.thisDep,Le.contextDep=Le.contextDep||D.contextDep,Le.propDep=Le.propDep||D.propDep),Le}else return D?new En(D.thisDep,D.contextDep,D.propDep,function(ut,Nt){var at=ut.shared.context;return[0,0,Nt.def(at,".",vs),Nt.def(at,".",ps)]}):null}var H=K(ai);if(H){var Q=H;H=new En(H.thisDep,H.contextDep,H.propDep,function(U,Y){var G=Q.append(U,Y),J=U.shared.context;return Y.set(J,"."+TD,G[2]),Y.set(J,"."+ID,G[3]),G})}return{viewport:H,scissor_box:K(Fl)}}function At(j,D){var q=j.static,ee=typeof q[Lu]=="string"&&typeof q[Ou]=="string";if(ee){if(Object.keys(D.dynamic).length>0)return null;var ne=D.static,K=Object.keys(ne);if(K.length>0&&typeof ne[K[0]]=="number"){for(var H=[],Q=0;Q=0,"invalid "+G,D.commandStr),kr(function(we,pe){return J&&(we.OFFSET=ae),ae})}else if(G in ee){var ye=ee[G];return Cn(ye,function(we,pe){var Le=we.invoke(pe,ye);return J&&(we.OFFSET=Le,N.optional(function(){we.assert(pe,Le+">=0","invalid "+G)})),Le})}else if(J&&K)return kr(function(we,pe){return we.OFFSET="0",0});return null}var U=Q(Bl,!0);function Y(){if(_o in q){var G=q[_o]|0;return N.command(typeof G=="number"&&G>=0,"invalid vertex count",D.commandStr),kr(function(){return G})}else if(_o in ee){var J=ee[_o];return Cn(J,function(we,pe){var Le=we.invoke(pe,J);return N.optional(function(){we.assert(pe,"typeof "+Le+'==="number"&&'+Le+">=0&&"+Le+"===("+Le+"|0)","invalid vertex count")}),Le})}else if(K)if(ki(K)){if(K)return U?new En(U.thisDep,U.contextDep,U.propDep,function(we,pe){var Le=pe.def(we.ELEMENTS,".vertCount-",we.OFFSET);return N.optional(function(){we.assert(pe,Le+">=0","invalid vertex offset/element buffer too small")}),Le}):kr(function(we,pe){return pe.def(we.ELEMENTS,".vertCount")});var ae=kr(function(){return-1});return N.optional(function(){ae.MISSING=!0}),ae}else{var ye=new En(K.thisDep||U.thisDep,K.contextDep||U.contextDep,K.propDep||U.propDep,function(we,pe){var Le=we.ELEMENTS;return we.OFFSET?pe.def(Le,"?",Le,".vertCount-",we.OFFSET,":-1"):pe.def(Le,"?",Le,".vertCount:-1")});return N.optional(function(){ye.DYNAMIC=!0}),ye}return null}return{elements:K,primitive:H(),count:Y(),instances:Q(Gl,!1),offset:U}}function Nr(j,D){var q=j.static,ee=j.dynamic,ne={};return Ae.forEach(function(K){var H=je(K);function Q(U,Y){if(K in q){var G=U(q[K]);ne[H]=kr(function(){return G})}else if(K in ee){var J=ee[K];ne[H]=Cn(J,function(ae,ye){return Y(ae,ye,ae.invoke(ye,J))})}}switch(K){case wb:case vb:case db:case Mb:case gb:case Cb:case Eb:case _b:case Sb:case bb:return Q(function(U){return N.commandType(U,"boolean",K,D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="boolean"',"invalid flag "+K,U.commandStr)}),G});case yb:return Q(function(U){return N.commandParameter(U,ys,"invalid "+K,D.commandStr),ys[U]},function(U,Y,G){var J=U.constants.compareFuncs;return N.optional(function(){U.assert(Y,G+" in "+J,"invalid "+K+", must be one of "+Object.keys(ys))}),Y.def(J,"[",G,"]")});case mb:return Q(function(U){return N.command(Mr(U)&&U.length===2&&typeof U[0]=="number"&&typeof U[1]=="number"&&U[0]<=U[1],"depth range is 2d array",D.commandStr),U},function(U,Y,G){N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===2&&typeof "+G+'[0]==="number"&&typeof '+G+'[1]==="number"&&'+G+"[0]<="+G+"[1]","depth range must be a 2d array")});var J=Y.def("+",G,"[0]"),ae=Y.def("+",G,"[1]");return[J,ae]});case Fv:return Q(function(U){N.commandType(U,"object","blend.func",D.commandStr);var Y="srcRGB"in U?U.srcRGB:U.src,G="srcAlpha"in U?U.srcAlpha:U.src,J="dstRGB"in U?U.dstRGB:U.dst,ae="dstAlpha"in U?U.dstAlpha:U.dst;return N.commandParameter(Y,Ta,H+".srcRGB",D.commandStr),N.commandParameter(G,Ta,H+".srcAlpha",D.commandStr),N.commandParameter(J,Ta,H+".dstRGB",D.commandStr),N.commandParameter(ae,Ta,H+".dstAlpha",D.commandStr),N.command(Bb.indexOf(Y+", "+J)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Y+", "+J+")",D.commandStr),[Ta[Y],Ta[J],Ta[G],Ta[ae]]},function(U,Y,G){var J=U.constants.blendFuncs;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid blend func, must be an object")});function ae(at,yt){var Ct=Y.def('"',at,yt,'" in ',G,"?",G,".",at,yt,":",G,".",at);return N.optional(function(){U.assert(Y,Ct+" in "+J,"invalid "+K+"."+at+yt+", must be one of "+Object.keys(Ta))}),Ct}var ye=ae("src","RGB"),we=ae("dst","RGB");N.optional(function(){var at=U.constants.invalidBlendCombinations;U.assert(Y,at+".indexOf("+ye+'+", "+'+we+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var pe=Y.def(J,"[",ye,"]"),Le=Y.def(J,"[",ae("src","Alpha"),"]"),ut=Y.def(J,"[",we,"]"),Nt=Y.def(J,"[",ae("dst","Alpha"),"]");return[pe,ut,Le,Nt]});case Rv:return Q(function(U){if(typeof U=="string")return N.commandParameter(U,ve,"invalid "+K,D.commandStr),[ve[U],ve[U]];if(typeof U=="object")return N.commandParameter(U.rgb,ve,K+".rgb",D.commandStr),N.commandParameter(U.alpha,ve,K+".alpha",D.commandStr),[ve[U.rgb],ve[U.alpha]];N.commandRaise("invalid blend.equation",D.commandStr)},function(U,Y,G){var J=U.constants.blendEquations,ae=Y.def(),ye=Y.def(),we=U.cond("typeof ",G,'==="string"');return N.optional(function(){function pe(Le,ut,Nt){U.assert(Le,Nt+" in "+J,"invalid "+ut+", must be one of "+Object.keys(ve))}pe(we.then,K,G),U.assert(we.else,G+"&&typeof "+G+'==="object"',"invalid "+K),pe(we.else,K+".rgb",G+".rgb"),pe(we.else,K+".alpha",G+".alpha")}),we.then(ae,"=",ye,"=",J,"[",G,"];"),we.else(ae,"=",J,"[",G,".rgb];",ye,"=",J,"[",G,".alpha];"),Y(we),[ae,ye]});case pb:return Q(function(U){return N.command(Mr(U)&&U.length===4,"blend.color must be a 4d array",D.commandStr),rn(4,function(Y){return+U[Y]})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","blend.color must be a 4d array")}),rn(4,function(J){return Y.def("+",G,"[",J,"]")})});case Ab:return Q(function(U){return N.commandType(U,"number",H,D.commandStr),U|0},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"',"invalid stencil.mask")}),Y.def(G,"|0")});case $v:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.cmp||"keep",G=U.ref||0,J="mask"in U?U.mask:-1;return N.commandParameter(Y,ys,K+".cmp",D.commandStr),N.commandType(G,"number",K+".ref",D.commandStr),N.commandType(J,"number",K+".mask",D.commandStr),[ys[Y],G,J]},function(U,Y,G){var J=U.constants.compareFuncs;N.optional(function(){function pe(){U.assert(Y,Array.prototype.join.call(arguments,""),"invalid stencil.func")}pe(G+"&&typeof ",G,'==="object"'),pe('!("cmp" in ',G,")||(",G,".cmp in ",J,")")});var ae=Y.def('"cmp" in ',G,"?",J,"[",G,".cmp]",":",Ti),ye=Y.def(G,".ref|0"),we=Y.def('"mask" in ',G,"?",G,".mask|0:-1");return[ae,ye,we]});case Xv:case ku:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.fail||"keep",G=U.zfail||"keep",J=U.zpass||"keep";return N.commandParameter(Y,Ii,K+".fail",D.commandStr),N.commandParameter(G,Ii,K+".zfail",D.commandStr),N.commandParameter(J,Ii,K+".zpass",D.commandStr),[K===ku?So:zu,Ii[Y],Ii[G],Ii[J]]},function(U,Y,G){var J=U.constants.stencilOps;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});function ae(ye){return N.optional(function(){U.assert(Y,'!("'+ye+'" in '+G+")||("+G+"."+ye+" in "+J+")","invalid "+K+"."+ye+", must be one of "+Object.keys(Ii))}),Y.def('"',ye,'" in ',G,"?",J,"[",G,".",ye,"]:",Ti)}return[K===ku?So:zu,ae("fail"),ae("zfail"),ae("zpass")]});case jv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.factor|0,G=U.units|0;return N.commandType(Y,"number",H+".factor",D.commandStr),N.commandType(G,"number",H+".units",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});var J=Y.def(G,".factor|0"),ae=Y.def(G,".units|0");return[J,ae]});case xb:return Q(function(U){var Y=0;return U==="front"?Y=zu:U==="back"&&(Y=So),N.command(!!Y,H,D.commandStr),Y},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="front"||'+G+'==="back"',"invalid cull.face")}),Y.def(G,'==="front"?',zu,":",So)});case zv:return Q(function(U){return N.command(typeof U=="number"&&U>=ue.lineWidthDims[0]&&U<=ue.lineWidthDims[1],"invalid line width, must be a positive number between "+ue.lineWidthDims[0]+" and "+ue.lineWidthDims[1],D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"&&'+G+">="+ue.lineWidthDims[0]+"&&"+G+"<="+ue.lineWidthDims[1],"invalid line width")}),G});case Gv:return Q(function(U){return N.commandParameter(U,Kv,H,D.commandStr),Kv[U]},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="cw"||'+G+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Y.def(G+'==="cw"?'+Lb+":"+Zv)});case Bv:return Q(function(U){return N.command(Mr(U)&&U.length===4,"color.mask must be length 4 array",D.commandStr),U.map(function(Y){return!!Y})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","invalid color.mask")}),rn(4,function(J){return"!!"+G+"["+J+"]"})});case Uv:return Q(function(U){N.command(typeof U=="object"&&U,H,D.commandStr);var Y="value"in U?U.value:1,G=!!U.invert;return N.command(typeof Y=="number"&&Y>=0&&Y<=1,"sample.coverage.value must be a number between 0 and 1",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid sample.coverage")});var J=Y.def('"value" in ',G,"?+",G,".value:1"),ae=Y.def("!!",G,".invert");return[J,ae]})}}),ne}function $r(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q;if(typeof H=="number"||typeof H=="boolean")Q=kr(function(){return H});else if(typeof H=="function"){var U=H._reglType;U==="texture2d"||U==="textureCube"?Q=kr(function(Y){return Y.link(H)}):U==="framebuffer"||U==="framebufferCube"?(N.command(H.color.length>0,'missing color attachment for framebuffer sent to uniform "'+K+'"',D.commandStr),Q=kr(function(Y){return Y.link(H.color[0])})):N.commandRaise('invalid data for uniform "'+K+'"',D.commandStr)}else Mr(H)?Q=kr(function(Y){var G=Y.global.def("[",rn(H.length,function(J){return N.command(typeof H[J]=="number"||typeof H[J]=="boolean","invalid uniform "+K,Y.commandStr),H[J]}),"]");return G}):N.commandRaise('invalid or missing data for uniform "'+K+'"',D.commandStr);Q.value=H,ne[K]=Q}),Object.keys(ee).forEach(function(K){var H=ee[K];ne[K]=Cn(H,function(Q,U){return Q.invoke(U,H)})}),ne}function zt(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q=F.id(K),U=new re;if(Hl(H))U.state=ds,U.buffer=be.getBuffer(be.create(H,gs,!1,!0)),U.type=0;else{var Y=be.getBuffer(H);if(Y)U.state=ds,U.buffer=Y,U.type=0;else if(N.command(typeof H=="object"&&H,"invalid data for attribute "+K,D.commandStr),"constant"in H){var G=H.constant;U.buffer="null",U.state=Nv,typeof G=="number"?U.x=G:(N.command(Mr(G)&&G.length>0&&G.length<=4,"invalid constant for attribute "+K,D.commandStr),hs.forEach(function(ut,Nt){Nt=0,'invalid offset for attribute "'+K+'"',D.commandStr);var ae=H.stride|0;N.command(ae>=0&&ae<256,'invalid stride for attribute "'+K+'", must be integer betweeen [0, 255]',D.commandStr);var ye=H.size|0;N.command(!("size"in H)||ye>0&&ye<=4,'invalid size for attribute "'+K+'", must be 1,2,3,4',D.commandStr);var we=!!H.normalized,pe=0;"type"in H&&(N.commandParameter(H.type,po,"invalid type for attribute "+K,D.commandStr),pe=po[H.type]);var Le=H.divisor|0;"divisor"in H&&(N.command(Le===0||De,'cannot specify divisor for attribute "'+K+'", instancing not supported',D.commandStr),N.command(Le>=0,'invalid divisor for attribute "'+K+'"',D.commandStr)),N.optional(function(){var ut=D.commandStr,Nt=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(H).forEach(function(at){N.command(Nt.indexOf(at)>=0,'unknown parameter "'+at+'" for attribute pointer "'+K+'" (valid parameters are '+Nt+")",ut)})}),U.buffer=Y,U.state=ds,U.size=ye,U.normalized=we,U.type=pe||Y.dtype,U.offset=J,U.stride=ae,U.divisor=Le}}ne[K]=kr(function(ut,Nt){var at=ut.attribCache;if(Q in at)return at[Q];var yt={isStream:!1};return Object.keys(U).forEach(function(Ct){yt[Ct]=U[Ct]}),U.buffer&&(yt.buffer=ut.link(U.buffer),yt.type=yt.type||yt.buffer+".dtype"),at[Q]=yt,yt})}),Object.keys(ee).forEach(function(K){var H=ee[K];function Q(U,Y){var G=U.invoke(Y,H),J=U.shared,ae=U.constants,ye=J.isBufferArgs,we=J.buffer;N.optional(function(){U.assert(Y,G+"&&(typeof "+G+'==="object"||typeof '+G+'==="function")&&('+ye+"("+G+")||"+we+".getBuffer("+G+")||"+we+".getBuffer("+G+".buffer)||"+ye+"("+G+'.buffer)||("constant" in '+G+"&&(typeof "+G+'.constant==="number"||'+J.isArrayLike+"("+G+".constant))))",'invalid dynamic attribute "'+K+'"')});var pe={isStream:Y.def(!1)},Le=new re;Le.state=ds,Object.keys(Le).forEach(function(yt){pe[yt]=Y.def(""+Le[yt])});var ut=pe.buffer,Nt=pe.type;Y("if(",ye,"(",G,")){",pe.isStream,"=true;",ut,"=",we,".createStream(",gs,",",G,");",Nt,"=",ut,".dtype;","}else{",ut,"=",we,".getBuffer(",G,");","if(",ut,"){",Nt,"=",ut,".dtype;",'}else if("constant" in ',G,"){",pe.state,"=",Nv,";","if(typeof "+G+'.constant === "number"){',pe[hs[0]],"=",G,".constant;",hs.slice(1).map(function(yt){return pe[yt]}).join("="),"=0;","}else{",hs.map(function(yt,Ct){return pe[yt]+"="+G+".constant.length>"+Ct+"?"+G+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",ye,"(",G,".buffer)){",ut,"=",we,".createStream(",gs,",",G,".buffer);","}else{",ut,"=",we,".getBuffer(",G,".buffer);","}",Nt,'="type" in ',G,"?",ae.glTypes,"[",G,".type]:",ut,".dtype;",pe.normalized,"=!!",G,".normalized;");function at(yt){Y(pe[yt],"=",G,".",yt,"|0;")}return at("size"),at("offset"),at("stride"),at("divisor"),Y("}}"),Y.exit("if(",pe.isStream,"){",we,".destroyStream(",ut,");","}"),pe}ne[K]=Cn(H,Q)}),ne}function Gr(j,D){var q=j.static,ee=j.dynamic;if(Du in q){var ne=q[Du];return ne!==null&&Pe.getVAO(ne)===null&&(ne=Pe.createVAO(ne)),kr(function(H){return H.link(Pe.getVAO(ne))})}else if(Du in ee){var K=ee[Du];return Cn(K,function(H,Q){var U=H.invoke(Q,K);return Q.def(H.shared.vao+".getVAO("+U+")")})}return null}function pr(j){var D=j.static,q=j.dynamic,ee={};return Object.keys(D).forEach(function(ne){var K=D[ne];ee[ne]=kr(function(H,Q){return typeof K=="number"||typeof K=="boolean"?""+K:H.link(K)})}),Object.keys(q).forEach(function(ne){var K=q[ne];ee[ne]=Cn(K,function(H,Q){return H.invoke(Q,K)})}),ee}function Or(j,D,q,ee,ne){var K=j.static,H=j.dynamic;N.optional(function(){var at=[wo,Ou,Lu,xo,Eo,Bl,_o,Gl,Nu,Du].concat(Ae);function yt(Ct){Object.keys(Ct).forEach(function(Jt){N.command(at.indexOf(Jt)>=0,'unknown parameter "'+Jt+'"',ne.commandStr)})}yt(K),yt(H)});var Q=At(j,D),U=nt(j),Y=Rt(j,U,ne),G=Qt(j,ne),J=Nr(j,ne),ae=Pt(j,ne,Q);function ye(at){var yt=Y[at];yt&&(J[at]=yt)}ye(ai),ye(je(Fl));var we=Object.keys(J).length>0,pe={framebuffer:U,draw:G,shader:ae,state:J,dirty:we,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pe.profile=It(j),pe.uniforms=$r(q,ne),pe.drawVAO=pe.scopeVAO=Gr(j),!pe.drawVAO&&ae.program&&!Q&&W.angle_instanced_arrays){var Le=!0,ut=ae.program.attributes.map(function(at){var yt=D.static[at];return Le=Le&&!!yt,yt});if(Le&&ut.length>0){var Nt=Pe.getVAO(Pe.createVAO(ut));pe.drawVAO=new En(null,null,null,function(at,yt){return at.link(Nt)}),pe.useVAO=!0}}return Q?pe.useVAO=!0:pe.attributes=zt(D,ne),pe.context=pr(ee),pe}function zr(j,D,q){var ee=j.shared,ne=ee.context,K=j.scope();Object.keys(q).forEach(function(H){D.save(ne,"."+H);var Q=q[H],U=Q.append(j,D);Array.isArray(U)?K(ne,".",H,"=[",U.join(),"];"):K(ne,".",H,"=",U,";")}),D(K)}function jr(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.framebuffer,Q;He&&(Q=D.def(ne.extensions,".webgl_draw_buffers"));var U=j.constants,Y=U.drawBuffer,G=U.backBuffer,J;q?J=q.append(j,D):J=D.def(H,".next"),ee||D("if(",J,"!==",H,".cur){"),D("if(",J,"){",K,".bindFramebuffer(",Fb,",",J,".framebuffer);"),He&&D(Q,".drawBuffersWEBGL(",Y,"[",J,".colorAttachments.length]);"),D("}else{",K,".bindFramebuffer(",Fb,",null);"),He&&D(Q,".drawBuffersWEBGL(",G,");"),D("}",H,".cur=",J,";"),ee||D("}")}function Yr(j,D,q){var ee=j.shared,ne=ee.gl,K=j.current,H=j.next,Q=ee.current,U=ee.next,Y=j.cond(Q,".dirty");Ae.forEach(function(G){var J=je(G);if(!(J in q.state)){var ae,ye;if(J in H){ae=H[J],ye=K[J];var we=rn(Ee[J].length,function(Le){return Y.def(ae,"[",Le,"]")});Y(j.cond(we.map(function(Le,ut){return Le+"!=="+ye+"["+ut+"]"}).join("||")).then(ne,".",Me[J],"(",we,");",we.map(function(Le,ut){return ye+"["+ut+"]="+Le}).join(";"),";"))}else{ae=Y.def(U,".",J);var pe=j.cond(ae,"!==",Q,".",J);Y(pe),J in ze?pe(j.cond(ae).then(ne,".enable(",ze[J],");").else(ne,".disable(",ze[J],");"),Q,".",J,"=",ae,";"):pe(ne,".",Me[J],"(",ae,");",Q,".",J,"=",ae,";")}}}),Object.keys(q.state).length===0&&Y(Q,".dirty=false;"),D(Y)}function an(j,D,q,ee){var ne=j.shared,K=j.current,H=ne.current,Q=ne.gl;zb(Object.keys(q)).forEach(function(U){var Y=q[U];if(!(ee&&!ee(Y))){var G=Y.append(j,D);if(ze[U]){var J=ze[U];ki(Y)?G?D(Q,".enable(",J,");"):D(Q,".disable(",J,");"):D(j.cond(G).then(Q,".enable(",J,");").else(Q,".disable(",J,");")),D(H,".",U,"=",G,";")}else if(Mr(G)){var ae=K[U];D(Q,".",Me[U],"(",G,");",G.map(function(ye,we){return ae+"["+we+"]="+ye}).join(";"),";")}else D(Q,".",Me[U],"(",G,");",H,".",U,"=",G,";")}})}function Ar(j,D){De&&(j.instancing=D.def(j.shared.extensions,".angle_instanced_arrays"))}function kt(j,D,q,ee,ne){var K=j.shared,H=j.stats,Q=K.current,U=K.timer,Y=q.profile;function G(){return typeof performance>"u"?"Date.now()":"performance.now()"}var J,ae;function ye(at){J=D.def(),at(J,"=",G(),";"),typeof ne=="string"?at(H,".count+=",ne,";"):at(H,".count++;"),Te&&(ee?(ae=D.def(),at(ae,"=",U,".getNumPendingQueries();")):at(U,".beginQuery(",H,");"))}function we(at){at(H,".cpuTime+=",G(),"-",J,";"),Te&&(ee?at(U,".pushScopeStats(",ae,",",U,".getNumPendingQueries(),",H,");"):at(U,".endQuery();"))}function pe(at){var yt=D.def(Q,".profile");D(Q,".profile=",at,";"),D.exit(Q,".profile=",yt,";")}var Le;if(Y){if(ki(Y)){Y.enable?(ye(D),we(D.exit),pe("true")):pe("false");return}Le=Y.append(j,D),pe(Le)}else Le=D.def(Q,".profile");var ut=j.block();ye(ut),D("if(",Le,"){",ut,"}");var Nt=j.block();we(Nt),D.exit("if(",Le,"){",Nt,"}")}function on(j,D,q,ee,ne){var K=j.shared;function H(U){switch(U){case zl:case $l:case Vl:return 2;case jl:case Xl:case Yl:return 3;case Ul:case Wl:case ql:return 4;default:return 1}}function Q(U,Y,G){var J=K.gl,ae=D.def(U,".location"),ye=D.def(K.attributes,"[",ae,"]"),we=G.state,pe=G.buffer,Le=[G.x,G.y,G.z,G.w],ut=["buffer","normalized","offset","stride"];function Nt(){D("if(!",ye,".buffer){",J,".enableVertexAttribArray(",ae,");}");var yt=G.type,Ct;if(G.size?Ct=D.def(G.size,"||",Y):Ct=Y,D("if(",ye,".type!==",yt,"||",ye,".size!==",Ct,"||",ut.map(function(xr){return ye+"."+xr+"!=="+G[xr]}).join("||"),"){",J,".bindBuffer(",gs,",",pe,".buffer);",J,".vertexAttribPointer(",[ae,Ct,yt,G.normalized,G.stride,G.offset],");",ye,".type=",yt,";",ye,".size=",Ct,";",ut.map(function(xr){return ye+"."+xr+"="+G[xr]+";"}).join(""),"}"),De){var Jt=G.divisor;D("if(",ye,".divisor!==",Jt,"){",j.instancing,".vertexAttribDivisorANGLE(",[ae,Jt],");",ye,".divisor=",Jt,";}")}}function at(){D("if(",ye,".buffer){",J,".disableVertexAttribArray(",ae,");",ye,".buffer=null;","}if(",hs.map(function(yt,Ct){return ye+"."+yt+"!=="+Le[Ct]}).join("||"),"){",J,".vertexAttrib4f(",ae,",",Le,");",hs.map(function(yt,Ct){return ye+"."+yt+"="+Le[Ct]+";"}).join(""),"}")}we===ds?Nt():we===Nv?at():(D("if(",we,"===",ds,"){"),Nt(),D("}else{"),at(),D("}"))}ee.forEach(function(U){var Y=U.name,G=q.attributes[Y],J;if(G){if(!ne(G))return;J=G.append(j,D)}else{if(!ne(jb))return;var ae=j.scopeAttrib(Y);N.optional(function(){j.assert(D,ae+".state","missing attribute "+Y)}),J={},Object.keys(new re).forEach(function(ye){J[ye]=D.def(ae,".",ye)})}Q(j.link(U),H(U.info.type),J)})}function ir(j,D,q,ee,ne){for(var K=j.shared,H=K.gl,Q,U=0;U1?D(rn(yt,function(_n){return Array.isArray(pe)?pe[_n]:pe+"["+_n+"]"})):(N(!Array.isArray(pe),"uniform value must not be an array"),D(pe));D(");")}}function vt(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.draw,Q=ee.draw;function U(){var Ct=Q.elements,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr)):Jt=xr.def(H,".",xo),Jt&&xr("if("+Jt+")"+K+".bindBuffer("+ND+","+Jt+".buffer.buffer);"),Jt}function Y(){var Ct=Q.count,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr),N.optional(function(){Ct.MISSING&&j.assert(D,"false","missing vertex count"),Ct.DYNAMIC&&j.assert(xr,Jt+">=0","missing vertex count")})):(Jt=xr.def(H,".",_o),N.optional(function(){j.assert(xr,Jt+">=0","missing vertex count")})),Jt}var G=U();function J(Ct){var Jt=Q[Ct];return Jt?Jt.contextDep&&ee.contextDynamic||Jt.propDep?Jt.append(j,q):Jt.append(j,D):D.def(H,".",Ct)}var ae=J(Eo),ye=J(Bl),we=Y();if(typeof we=="number"){if(we===0)return}else q("if(",we,"){"),q.exit("}");var pe,Le;De&&(pe=J(Gl),Le=j.instancing);var ut=G+".type",Nt=Q.elements&&ki(Q.elements);function at(){function Ct(){q(Le,".drawElementsInstancedANGLE(",[ae,we,ut,ye+"<<(("+ut+"-"+lb+")>>1)",pe],");")}function Jt(){q(Le,".drawArraysInstancedANGLE(",[ae,ye,we,pe],");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}function yt(){function Ct(){q(K+".drawElements("+[ae,we,ut,ye+"<<(("+ut+"-"+lb+")>>1)"]+");")}function Jt(){q(K+".drawArrays("+[ae,ye,we]+");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}De&&(typeof pe!="number"||pe>=0)?typeof pe=="string"?(q("if(",pe,">0){"),at(),q("}else if(",pe,"<0){"),yt(),q("}")):at():yt()}function Gt(j,D,q,ee,ne){var K=xt(),H=K.proc("body",ne);return N.optional(function(){K.commandStr=D.commandStr,K.command=K.link(D.commandStr)}),De&&(K.instancing=H.def(K.shared.extensions,".angle_instanced_arrays")),j(K,H,q,ee),K.compile().body}function Vt(j,D,q,ee){Ar(j,D),q.useVAO?q.drawVAO?D(j.shared.vao,".setVAO(",q.drawVAO.append(j,D),");"):D(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(D(j.shared.vao,".setVAO(null);"),on(j,D,q,ee.attributes,function(){return!0})),ir(j,D,q,ee.uniforms,function(){return!0}),vt(j,D,D,q)}function Cr(j,D){var q=j.proc("draw",1);Ar(j,q),zr(j,q,D.context),jr(j,q,D.framebuffer),Yr(j,q,D),an(j,q,D.state),kt(j,q,D,!1,!0);var ee=D.shader.progVar.append(j,q);if(q(j.shared.gl,".useProgram(",ee,".program);"),D.shader.program)Vt(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var ne=j.global.def("{}"),K=q.def(ee,".id"),H=q.def(ne,"[",K,"]");q(j.cond(H).then(H,".call(this,a0);").else(H,"=",ne,"[",K,"]=",j.link(function(Q){return Gt(Vt,j,D,Q,1)}),"(",ee,");",H,".call(this,a0);"))}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function Ia(j,D,q,ee){j.batchId="a1",Ar(j,D);function ne(){return!0}on(j,D,q,ee.attributes,ne),ir(j,D,q,ee.uniforms,ne),vt(j,D,D,q)}function Mo(j,D,q,ee){Ar(j,D);var ne=q.contextDep,K=D.def(),H="a0",Q="a1",U=D.def();j.shared.props=U,j.batchId=K;var Y=j.scope(),G=j.scope();D(Y.entry,"for(",K,"=0;",K,"<",Q,";++",K,"){",U,"=",H,"[",K,"];",G,"}",Y.exit);function J(ut){return ut.contextDep&&ne||ut.propDep}function ae(ut){return!J(ut)}if(q.needsContext&&zr(j,G,q.context),q.needsFramebuffer&&jr(j,G,q.framebuffer),an(j,G,q.state,J),q.profile&&J(q.profile)&&kt(j,G,q,!1,!0),ee)q.useVAO?q.drawVAO?J(q.drawVAO)?G(j.shared.vao,".setVAO(",q.drawVAO.append(j,G),");"):Y(j.shared.vao,".setVAO(",q.drawVAO.append(j,Y),");"):Y(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(Y(j.shared.vao,".setVAO(null);"),on(j,Y,q,ee.attributes,ae),on(j,G,q,ee.attributes,J)),ir(j,Y,q,ee.uniforms,ae),ir(j,G,q,ee.uniforms,J),vt(j,Y,G,q);else{var ye=j.global.def("{}"),we=q.shader.progVar.append(j,G),pe=G.def(we,".id"),Le=G.def(ye,"[",pe,"]");G(j.shared.gl,".useProgram(",we,".program);","if(!",Le,"){",Le,"=",ye,"[",pe,"]=",j.link(function(ut){return Gt(Ia,j,q,ut,2)}),"(",we,");}",Le,".call(this,a0[",K,"],",K,");")}}function $(j,D){var q=j.proc("batch",2);j.batchId="0",Ar(j,q);var ee=!1,ne=!0;Object.keys(D.context).forEach(function(ye){ee=ee||D.context[ye].propDep}),ee||(zr(j,q,D.context),ne=!1);var K=D.framebuffer,H=!1;K?(K.propDep?ee=H=!0:K.contextDep&&ee&&(H=!0),H||jr(j,q,K)):jr(j,q,null),D.state.viewport&&D.state.viewport.propDep&&(ee=!0);function Q(ye){return ye.contextDep&&ee||ye.propDep}Yr(j,q,D),an(j,q,D.state,function(ye){return!Q(ye)}),(!D.profile||!Q(D.profile))&&kt(j,q,D,!1,"a1"),D.contextDep=ee,D.needsContext=ne,D.needsFramebuffer=H;var U=D.shader.progVar;if(U.contextDep&&ee||U.propDep)Mo(j,q,D,null);else{var Y=U.append(j,q);if(q(j.shared.gl,".useProgram(",Y,".program);"),D.shader.program)Mo(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var G=j.global.def("{}"),J=q.def(Y,".id"),ae=q.def(G,"[",J,"]");q(j.cond(ae).then(ae,".call(this,a0,a1);").else(ae,"=",G,"[",J,"]=",j.link(function(ye){return Gt(Mo,j,D,ye,2)}),"(",Y,");",ae,".call(this,a0,a1);"))}}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function fe(j,D){var q=j.proc("scope",3);j.batchId="a2";var ee=j.shared,ne=ee.current;zr(j,q,D.context),D.framebuffer&&D.framebuffer.append(j,q),zb(Object.keys(D.state)).forEach(function(H){var Q=D.state[H],U=Q.append(j,q);Mr(U)?U.forEach(function(Y,G){q.set(j.next[H],"["+G+"]",Y)}):q.set(ee.next,"."+H,U)}),kt(j,q,D,!0,!0),[xo,Bl,_o,Gl,Eo].forEach(function(H){var Q=D.draw[H];Q&&q.set(ee.draw,"."+H,""+Q.append(j,q))}),Object.keys(D.uniforms).forEach(function(H){var Q=D.uniforms[H].append(j,q);Array.isArray(Q)&&(Q="["+Q.join()+"]"),q.set(ee.uniforms,"["+F.id(H)+"]",Q)}),Object.keys(D.attributes).forEach(function(H){var Q=D.attributes[H].append(j,q),U=j.scopeAttrib(H);Object.keys(new re).forEach(function(Y){q.set(U,"."+Y,Q[Y])})}),D.scopeVAO&&q.set(ee.vao,".targetVAO",D.scopeVAO.append(j,q));function K(H){var Q=D.shader[H];Q&&q.set(ee.shader,"."+H,Q.append(j,q))}K(Ou),K(Lu),Object.keys(D.state).length>0&&(q(ne,".dirty=true;"),q.exit(ne,".dirty=true;")),q("a1(",j.shared.context,",a0,",j.batchId,");")}function oe(j){if(!(typeof j!="object"||Mr(j))){for(var D=Object.keys(j),q=0;q=0;--vt){var Gt=xe[vt];Gt&&Gt(Te,null,0)}W.flush(),Pe&&Pe.update()}function Pt(){!Rt&&xe.length>0&&(Rt=or.next(At))}function Qt(){Rt&&(or.cancel(At),Rt=null)}function Nr(vt){vt.preventDefault(),be=!0,Qt(),xt.forEach(function(Gt){Gt()})}function $r(vt){W.getError(),be=!1,se.restore(),Ae.restore(),De.restore(),ze.restore(),Me.restore(),je.restore(),He.restore(),Pe&&Pe.restore(),ct.procs.refresh(),Pt(),It.forEach(function(Gt){Gt()})}Re&&(Re.addEventListener($b,Nr,!1),Re.addEventListener(Xb,$r,!1));function zt(){xe.length=0,Qt(),Re&&(Re.removeEventListener($b,Nr),Re.removeEventListener(Xb,$r)),Ae.clear(),je.clear(),Me.clear(),ze.clear(),et.clear(),De.clear(),He.clear(),Pe&&Pe.clear(),nt.forEach(function(vt){vt()})}function Gr(vt){N(!!vt,"invalid args to regl({...})"),N.type(vt,"object","invalid args to regl({...})");function Gt(ne){var K=n({},ne);delete K.uniforms,delete K.attributes,delete K.context,delete K.vao,"stencil"in K&&K.stencil.op&&(K.stencil.opBack=K.stencil.opFront=K.stencil.op,delete K.stencil.op);function H(Q){if(Q in K){var U=K[Q];delete K[Q],Object.keys(U).forEach(function(Y){K[Q+"."+Y]=U[Y]})}}return H("blend"),H("depth"),H("cull"),H("stencil"),H("polygonOffset"),H("scissor"),H("sample"),"vao"in ne&&(K.vao=ne.vao),K}function Vt(ne,K){var H={},Q={};return Object.keys(ne).forEach(function(U){var Y=ne[U];if(fr.isDynamic(Y)){Q[U]=fr.unbox(Y,U);return}else if(K&&Array.isArray(Y)){for(var G=0;G0)return Ft.call(this,q(ne|0),ne|0)}else if(Array.isArray(ne)){if(ne.length)return Ft.call(this,ne,ne.length)}else return rt.call(this,ne)}return n(ee,{stats:fe,destroy:function(){oe.destroy()}})}var pr=je.setFBO=Gr({framebuffer:fr.define.call(null,Wb,"framebuffer")});function Or(vt,Gt){var Vt=0;ct.procs.poll();var Cr=Gt.color;Cr&&(W.clearColor(+Cr[0]||0,+Cr[1]||0,+Cr[2]||0,+Cr[3]||0),Vt|=eP),"depth"in Gt&&(W.clearDepth(+Gt.depth),Vt|=tP),"stencil"in Gt&&(W.clearStencil(Gt.stencil|0),Vt|=rP),N(!!Vt,"called regl.clear with no buffer specified"),W.clear(Vt)}function zr(vt){if(N(typeof vt=="object"&&vt,"regl.clear() takes an object as input"),"framebuffer"in vt)if(vt.framebuffer&&vt.framebuffer_reglType==="framebufferCube")for(var Gt=0;Gt<6;++Gt)pr(n({framebuffer:vt.framebuffer.faces[Gt]},vt),Or);else pr(vt,Or);else Or(null,vt)}function jr(vt){N.type(vt,"function","regl.frame() callback must be a function"),xe.push(vt);function Gt(){var Vt=Vb(xe,vt);N(Vt>=0,"cannot cancel a frame twice");function Cr(){var Ia=Vb(xe,Cr);xe[Ia]=xe[xe.length-1],xe.length-=1,xe.length<=0&&Qt()}xe[Vt]=Cr}return Pt(),{cancel:Gt}}function Yr(){var vt=We.viewport,Gt=We.scissor_box;vt[0]=vt[1]=Gt[0]=Gt[1]=0,Te.viewportWidth=Te.framebufferWidth=Te.drawingBufferWidth=vt[2]=Gt[2]=W.drawingBufferWidth,Te.viewportHeight=Te.framebufferHeight=Te.drawingBufferHeight=vt[3]=Gt[3]=W.drawingBufferHeight}function an(){Te.tick+=1,Te.time=kt(),Yr(),ct.procs.poll()}function Ar(){ze.refresh(),Yr(),ct.procs.refresh(),Pe&&Pe.update()}function kt(){return(gr()-Oe)/1e3}Ar();function on(vt,Gt){N.type(Gt,"function","listener callback must be a function");var Vt;switch(vt){case"frame":return jr(Gt);case"lost":Vt=xt;break;case"restore":Vt=It;break;case"destroy":Vt=nt;break;default:N.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vt.push(Gt),{cancel:function(){for(var Cr=0;Cr=0},read:Mt,destroy:zt,_gl:W,_refresh:Ar,poll:function(){an(),Pe&&Pe.update()},now:kt,stats:Ce});return F.onDone(null,ir),ir}return oP})})(zN);var Mie=zN.exports;const Aie=bi(Mie);var Cie=function(){function r(e,t){Ma(this,r),this.attribute=void 0,this.buffer=void 0;var n=t.buffer,a=t.offset,i=t.stride,o=t.normalized,s=t.size,u=t.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:a||0,stride:i||0,normalized:o||!1,divisor:u||0},s&&(this.attribute.size=s)}return Aa(r,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),r}(),si,Qu,ui,Kn,Ju,Di,ef,Dc,Oa,To,vn,La,Da,Pc,Tie=(si={},Ke(si,ke.POINTS,"points"),Ke(si,ke.LINES,"lines"),Ke(si,ke.LINE_LOOP,"line loop"),Ke(si,ke.LINE_STRIP,"line strip"),Ke(si,ke.TRIANGLES,"triangles"),Ke(si,ke.TRIANGLE_FAN,"triangle fan"),Ke(si,ke.TRIANGLE_STRIP,"triangle strip"),si),jN=(Qu={},Ke(Qu,ke.STATIC_DRAW,"static"),Ke(Qu,ke.DYNAMIC_DRAW,"dynamic"),Ke(Qu,ke.STREAM_DRAW,"stream"),Qu),Vm=(ui={},Ke(ui,ke.BYTE,"int8"),Ke(ui,ke.UNSIGNED_INT,"int16"),Ke(ui,ke.INT,"int32"),Ke(ui,ke.UNSIGNED_BYTE,"uint8"),Ke(ui,ke.UNSIGNED_SHORT,"uint16"),Ke(ui,ke.UNSIGNED_INT,"uint32"),Ke(ui,ke.FLOAT,"float"),ui),Iie=(Kn={},Ke(Kn,ke.ALPHA,"alpha"),Ke(Kn,ke.LUMINANCE,"luminance"),Ke(Kn,ke.LUMINANCE_ALPHA,"luminance alpha"),Ke(Kn,ke.RGB,"rgb"),Ke(Kn,ke.RGBA,"rgba"),Ke(Kn,ke.RGBA4,"rgba4"),Ke(Kn,ke.RGB5_A1,"rgb5 a1"),Ke(Kn,ke.RGB565,"rgb565"),Ke(Kn,ke.DEPTH_COMPONENT,"depth"),Ke(Kn,ke.DEPTH_STENCIL,"depth stencil"),Kn),kie=(Ju={},Ke(Ju,ke.DONT_CARE,"dont care"),Ke(Ju,ke.NICEST,"nice"),Ke(Ju,ke.FASTEST,"fast"),Ju),l2=(Di={},Ke(Di,ke.NEAREST,"nearest"),Ke(Di,ke.LINEAR,"linear"),Ke(Di,ke.LINEAR_MIPMAP_LINEAR,"mipmap"),Ke(Di,ke.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Ke(Di,ke.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Ke(Di,ke.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),Di),c2=(ef={},Ke(ef,ke.REPEAT,"repeat"),Ke(ef,ke.CLAMP_TO_EDGE,"clamp"),Ke(ef,ke.MIRRORED_REPEAT,"mirror"),ef),Nie=(Dc={},Ke(Dc,ke.NONE,"none"),Ke(Dc,ke.BROWSER_DEFAULT_WEBGL,"browser"),Dc),Oie=(Oa={},Ke(Oa,ke.NEVER,"never"),Ke(Oa,ke.ALWAYS,"always"),Ke(Oa,ke.LESS,"less"),Ke(Oa,ke.LEQUAL,"lequal"),Ke(Oa,ke.GREATER,"greater"),Ke(Oa,ke.GEQUAL,"gequal"),Ke(Oa,ke.EQUAL,"equal"),Ke(Oa,ke.NOTEQUAL,"notequal"),Oa),h2=(To={},Ke(To,ke.FUNC_ADD,"add"),Ke(To,ke.MIN_EXT,"min"),Ke(To,ke.MAX_EXT,"max"),Ke(To,ke.FUNC_SUBTRACT,"subtract"),Ke(To,ke.FUNC_REVERSE_SUBTRACT,"reverse subtract"),To),Rc=(vn={},Ke(vn,ke.ZERO,"zero"),Ke(vn,ke.ONE,"one"),Ke(vn,ke.SRC_COLOR,"src color"),Ke(vn,ke.ONE_MINUS_SRC_COLOR,"one minus src color"),Ke(vn,ke.SRC_ALPHA,"src alpha"),Ke(vn,ke.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Ke(vn,ke.DST_COLOR,"dst color"),Ke(vn,ke.ONE_MINUS_DST_COLOR,"one minus dst color"),Ke(vn,ke.DST_ALPHA,"dst alpha"),Ke(vn,ke.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Ke(vn,ke.CONSTANT_COLOR,"constant color"),Ke(vn,ke.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Ke(vn,ke.CONSTANT_ALPHA,"constant alpha"),Ke(vn,ke.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Ke(vn,ke.SRC_ALPHA_SATURATE,"src alpha saturate"),vn),Lie=(La={},Ke(La,ke.NEVER,"never"),Ke(La,ke.ALWAYS,"always"),Ke(La,ke.LESS,"less"),Ke(La,ke.LEQUAL,"lequal"),Ke(La,ke.GREATER,"greater"),Ke(La,ke.GEQUAL,"gequal"),Ke(La,ke.EQUAL,"equal"),Ke(La,ke.NOTEQUAL,"notequal"),La),Ms=(Da={},Ke(Da,ke.ZERO,"zero"),Ke(Da,ke.KEEP,"keep"),Ke(Da,ke.REPLACE,"replace"),Ke(Da,ke.INVERT,"invert"),Ke(Da,ke.INCR,"increment"),Ke(Da,ke.DECR,"decrement"),Ke(Da,ke.INCR_WRAP,"increment wrap"),Ke(Da,ke.DECR_WRAP,"decrement wrap"),Da),Die=(Pc={},Ke(Pc,ke.FRONT,"front"),Ke(Pc,ke.BACK,"back"),Pc),Pie=function(){function r(e,t){Ma(this,r),this.buffer=void 0;var n=t.data,a=t.usage,i=t.type;this.buffer=e.buffer({data:n,usage:jN[a||ke.STATIC_DRAW],type:Vm[i||ke.UNSIGNED_BYTE]})}return Aa(r,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var n=t.data,a=t.offset;this.buffer.subdata(n,a)}}]),r}();function kg(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t16)throw new Error("invalid data type ".concat(c));a[l]=function(){return f.data}}});var i=this.getOuputDataTexture(),o=i.textureWidth,s=i.texelCount;a.u_OutputTextureSize=[o,o],a.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; -#else - precision mediump float; -#endif -`.concat(this.context.shader),uniforms:a,vert:jie,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return Aa(r,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){t.computeCommand()})}},{key:"readData",value:function(){var e=Xi(mn.mark(function n(){var a=this,i,o,s,u,f,l,c,h;return mn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){i=a.reGl.read()}),!i){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,u=o.elementsPerTexel,f=o.typedArrayConstructor,l=f===void 0?Float32Array:f,c=[],u!==4)for(h=0;h0&&arguments[0]!==void 0?arguments[0]:{},n=new r;return n.setConfig(t),n.setEngine(new foe),n}}]),r}();const coe=Object.freeze(Object.defineProperty({__proto__:null,Kernel:GN,World:loe},Symbol.toStringTag,{value:"Module"})),$N=Ka(coe);var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.arrayToTextureData=jn.attributesToTextureData=jn.buildTextureDataWithTwoEdgeAttr=jn.buildTextureData=jn.proccessToFunc=void 0;var hoe=Ir(),ad=Nd,doe=function(r,e){var t;return r?(0,hoe.isNumber)(r)?t=function(){return r}:t=r:t=function(){return e||1},t};jn.proccessToFunc=doe;var voe=function(r,e){var t=[],n=[],a={},i=0;for(i=0;i 0.0) { - dx += param * xDist; - dy += param * yDist; - if (xDist == 0 && yDist == 0) { - const sign = i < j ? 1 : -1; - dx += param * sign; - dy += param * sign; - } - } - } - } - return [dx, dy]; - } - calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // - let dx = 0, dy = 0; - const vx = currentNode[0] - this.u_Center[0]; - const vy = currentNode[1] - this.u_Center[1]; - const gf = 0.01 * this.u_K * this.u_Gravity; - dx = gf * vx; - dy = gf * vy; - if (this.u_Clustering == 1) { - const clusterIdx = int(nodeAttributes[0]); - const center = this.u_ClusterCenters[clusterIdx]; - const cvx = currentNode[0] - center[0]; - const cvy = currentNode[1] - center[1]; - const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; - const parma = this.u_K * this.u_ClusterGravity / dist; - dx += parma * cvx; - dy += parma * cvy; - } - return [dx, dy]; - } - calcAttractive(i: int, currentNode: vec4): vec2 { - let dx = 0, dy = 0; - const arr_offset = int(floor(currentNode[2] + 0.5)); - const length = int(floor(currentNode[3] + 0.5)); - const node_buffer: vec4; - for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { - if (p >= length) break; - const arr_idx = arr_offset + p; - // when arr_idx % 4 == 0 update currentNodedx_buffer - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; - } - const float_j = buf_offset == 0 ? node_buffer[0] : - buf_offset == 1 ? node_buffer[1] : - buf_offset == 2 ? node_buffer[2] : - node_buffer[3]; - const nextNode = this.u_Data[int(float_j)]; - const xDist = currentNode[0] - nextNode[0]; - const yDist = currentNode[1] - nextNode[1]; - const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; - let attractiveF = dist / this.u_K; - - if (dist > 0.0) { - dx -= xDist * attractiveF; - dy -= yDist * attractiveF; - if (xDist == 0 && yDist == 0) { - const sign = i < int(float_j) ? 1 : -1; - dx -= sign * attractiveF; - dy -= sign * attractiveF; - } - } - } - return [dx, dy]; - } - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - let dx = 0, dy = 0; - if (i >= VERTEX_COUNT) { - this.u_Data[i] = currentNode; - return; - } - - // [gravity, fx, fy, 0] - const nodeAttributes = this.u_AttributeArray[i]; - - if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { - // the node is fixed - this.u_Data[i] = [ - nodeAttributes[1], - nodeAttributes[2], - currentNode[2], - currentNode[3] - ]; - return; - } - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - dx += repulsive[0]; - dy += repulsive[1]; - // attractive - const attractive = this.calcAttractive(i, currentNode); - dx += attractive[0]; - dy += attractive[1]; - // gravity - const gravity = this.calcGravity(currentNode, nodeAttributes); - dx -= gravity[0]; - dy -= gravity[1]; - // speed - dx *= this.u_Speed; - dy *= this.u_Speed; - - // move - const distLength = sqrt(dx * dx + dy * dy); - if (distLength > 0.0) { - const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); - this.u_Data[i] = [ - currentNode[0] + dx / distLength * limitedDist, - currentNode[1] + dy / distLength * limitedDist, - currentNode[2], - currentNode[3] - ]; - } - } -} -`;Xa.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Xa.clusterCode=` -import { globalInvocationID } from 'g-webgpu'; -const VERTEX_COUNT; -const CLUSTER_COUNT; -@numthreads(1, 1, 1) -class CalcCenter { - @in - u_Data: vec4[]; - @in - u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] - @in @out - u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] - @main - compute() { - const i = globalInvocationID.x; - const center = this.u_ClusterCenters[i]; - let sumx = 0; - let sumy = 0; - let count = 0; - for (let j = 0; j < VERTEX_COUNT; j++) { - const attributes = this.u_NodeAttributes[j]; - const clusterIdx = int(attributes[0]); - const vertex = this.u_Data[j]; - if (clusterIdx == i) { - sumx += vertex.x; - sumy += vertex.y; - count += 1; - } - } - this.u_ClusterCenters[i] = [ - sumx / count, - sumy / count, - count, - i - ]; - } -} -`;Xa.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var moe=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fc=me&&me.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(r,e||[])).next())})},Bc=me&&me.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(t=0)),t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]= length) break; - const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置 - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4, - } - - let float_j: float = node_buffer[0]; - - const nextNode = this.u_Data[int(float_j)]; - const vx = nextNode[0] - currentNode[0]; - const vy = nextNode[1] - currentNode[1]; - const dist = sqrt(vx * vx + vy * vy) + 0.01; - const direx = vx / dist; - const direy = vy / dist; - const edgeLength = node_buffer[1]; - const edgeStrength = node_buffer[2]; - const diff: float = edgeLength - dist;//edgeLength - // const param = diff * this.u_stiffness / mass; // - const param = diff * edgeStrength / mass; // - ax -= direx * param; - ay -= direy * param; - } - return [ax, ay]; - } - - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - const movement = u_AveMovement[0]; - let ax = 0, ay = 0; - - if (i >= VERTEX_COUNT || movement.x < u_minMovement) { - this.u_Data[i] = currentNode; - return; - } - - // 每个节点属性占两个数组中各一格 - // [mass, degree, nodeStrength, fx] - const nodeAttributes1 = this.u_NodeAttributeArray1[i]; - // [centerX, centerY, centerGravity, fy] - const nodeAttributes2 = this.u_NodeAttributeArray2[i]; - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - ax += repulsive[0]; - ay += repulsive[1]; - - // attractive - const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); - ax += attractive[0]; - ay += attractive[1]; - - // gravity - const gravity = this.calcGravity(i, currentNode, nodeAttributes2); - ax -= gravity[0]; - ay -= gravity[1]; - - // speed - const param = this.u_interval * this.u_damping; - let vx = ax * param; - let vy = ay * param; - const vlength = sqrt(vx * vx + vy * vy) + 0.0001; - if (vlength > this.u_maxSpeed) { - const param2 = this.u_maxSpeed / vlength; - vx = param2 * vx; - vy = param2 * vy; - } - - // move - if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { - this.u_Data[i] = [ - nodeAttributes1[3], - nodeAttributes2[3], - currentNode[2], - 0 - ]; - } else { - const distx = vx * this.u_interval; - const disty = vy * this.u_interval; - const distLength = sqrt(distx * distx + disty * disty); - this.u_Data[i] = [ - currentNode[0] + distx, - currentNode[1] + disty, - currentNode[2], - distLength - ]; - } - - // the avarage move distance - // need to share memory - - } -} -`;Wa.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wa.aveMovementCode=` -const VERTEX_COUNT; -@numthreads(1, 1, 1) -class CalcAveMovement { - @in - u_Data: vec4[]; - @in - u_iter: float; - @in @out - u_AveMovement: vec4[]; - @main - compute() { - let movement = 0; - for (let j: int = 0; j < VERTEX_COUNT; j++) { - const vertex = this.u_Data[j]; - movement += vertex[3]; - } - movement = movement / float(VERTEX_COUNT); - this.u_AveMovement[0] = [movement, 0, 0, 0]; - } -} -`;Wa.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var Eoe=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),n0=me&&me.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(r,e||[])).next())})},a0=me&&me.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(t=0)),t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]z.size[1]?z.size[0]:z.size[1];return X/2}if((0,Ut.isObject)(z.size)){var X=z.size.width>z.size.height?z.size.width:z.size.height;return X/2}return z.size/2}return 10};else if((0,Ut.isFunction)(g))m=function(z){return g(z)};else if((0,Ut.isArray)(g)){var w=g[0]>g[1]?g[0]:g[1],x=w/2;m=function(z){return x}}else{var E=g/2;m=function(z){return E}}this.nodeSize=m;var _=t.comboSpacing,S;(0,Ut.isNumber)(_)?S=function(){return _}:(0,Ut.isFunction)(_)?S=_:S=function(){return 0},this.comboSpacing=S;var A=t.comboPadding,M;(0,Ut.isNumber)(A)?M=function(){return A}:(0,Ut.isArray)(A)?M=function(){return Math.max.apply(null,A)}:(0,Ut.isFunction)(A)?M=A:M=function(){return 0},this.comboPadding=M;var C=this.linkDistance,I;C||(C=10),(0,Ut.isNumber)(C)?I=function(z){return C}:I=C,this.linkDistance=I;var k=this.edgeStrength,O;k||(k=1),(0,Ut.isNumber)(k)?O=function(z){return k}:O=k,this.edgeStrength=O;var B=this.nodeStrength,L;B||(B=30),(0,Ut.isNumber)(B)?L=function(z){return B}:L=B,this.nodeStrength=L},e.prototype.initPos=function(t){var n=this,a=n.nodes;a.forEach(function(i,o){var s=i.comboId,u=t[s];s&&u?(i.x=u.cx+100/(o+1),i.y=u.cy+100/(o+1)):(i.x=100/(o+1),i.y=100/(o+1))})},e.prototype.getComboMap=function(){var t=this,n=t.nodeMap,a=t.comboTrees,i=t.oriComboMap,o={};return(a||[]).forEach(function(s){var u=[];(0,Ut.traverseTreeUp)(s,function(f){if(f.itemType==="node"||!i[f.id])return!0;if(o[f.id]===void 0){var l={id:f.id,name:f.id,cx:0,cy:0,count:0,depth:t.oriComboMap[f.id].depth||0,children:[]};o[f.id]=l}var c=f.children;c&&c.forEach(function(v){if(!o[v.id]&&!n[v.id])return!0;u.push(v)});var h=o[f.id];if(h.cx=0,h.cy=0,u.length===0){h.empty=!0;var d=i[f.id];h.cx=d.x,h.cy=d.y}return u.forEach(function(v){if(h.count++,v.itemType!=="node"){var p=o[v.id];(0,Ut.isNumber)(p.cx)&&(h.cx+=p.cx),(0,Ut.isNumber)(p.cy)&&(h.cy+=p.cy);return}var g=n[v.id];g&&((0,Ut.isNumber)(g.x)&&(h.cx+=g.x),(0,Ut.isNumber)(g.y)&&(h.cy+=g.y))}),h.cx/=h.count||1,h.cy/=h.count||1,h.children=u,!0})}),o},e.prototype.applyComboCenterForce=function(t){var n=this,a=n.gravity,i=n.comboGravity||a,o=this.alpha,s=n.comboTrees,u=n.indexMap,f=n.nodeMap,l=n.comboMap;(s||[]).forEach(function(c){(0,Ut.traverseTreeUp)(c,function(h){if(h.itemType==="node")return!0;var d=l[h.id];if(!d)return!0;var v=l[h.id],p=(v.depth+1)/10*.5,g=v.cx,y=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(m){if(m.itemType!=="node"){var b=l[m.id];b&&(0,Ut.isNumber)(b.cx)&&(v.cx+=b.cx),b&&(0,Ut.isNumber)(b.cy)&&(v.cy+=b.cy);return}var w=f[m.id],x=w.x-g||.005,E=w.y-y||.005,_=Math.sqrt(x*x+E*E),S=u[w.id],A=i*o/_*p;t[S].x-=x*A,t[S].y-=E*A,(0,Ut.isNumber)(w.x)&&(v.cx+=w.x),(0,Ut.isNumber)(w.y)&&(v.cy+=w.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(t){var n=this,a=n.comboMap,i=n.nodes,o={};i.forEach(function(u,f){i.forEach(function(l,c){if(!(fb&&(h.minX=b),h.minY>w&&(h.minY=w),h.maxX1&&l.forEach(function(c,h){if(c.itemType==="node")return!1;var d=n[c.id];d&&l.forEach(function(v,p){if(h<=p||v.itemType==="node")return!1;var g=n[v.id];if(!g)return!1;var y=d.cx-g.cx||.005,m=d.cy-g.cy||.005,b=y*y+m*m,w=d.r||1,x=g.r||1,E=w+x,_=x*x,S=w*w;if(bo)){var M=n["".concat(p.id,"-").concat(x.id)],C=M.vx,I=M.vy,k=Math.log(Math.abs(x.depth-p.depth)/10)+1||1;k=k<1?1:k,x.comboId!==p.comboId&&(k+=1);var O=k?Math.pow(d,k):1,B=s(x)*u/S*O;if(t[g].x+=C*B,t[g].y+=I*B,g=0;O--)k(O);return{nodes:c,edges:h,combos:d,comboEdges:v}},u.prototype.getInnerGraphs=function(f){var l=this,c=l.comboTrees,h=l.nodeSize,d=l.edges,v=l.comboPadding,p=l.spacing,g={},y=this.innerLayout||new i.ConcentricLayout({type:"concentric",sortBy:"id"});return y.center=[0,0],y.preventOverlap=!0,y.nodeSpacing=p,(c||[]).forEach(function(m){(0,a.traverseTreeUp)(m,function(b){var w,x=(v==null?void 0:v(b))||10;if((0,a.isArray)(x)&&(x=Math.max.apply(Math,x)),!((w=b.children)===null||w===void 0)&&w.length){var _=b.children.map(function(R){if(R.itemType==="combo")return g[R.id];var V=f[R.id]||{};return e(e({},V),R)}),S=_.map(function(R){return R.id}),A={nodes:_,edges:d.filter(function(R){return S.includes(R.source)&&S.includes(R.target)})},M=1/0;_.forEach(function(R){var V;R.size||(R.size=((V=g[R.id])===null||V===void 0?void 0:V.size)||(h==null?void 0:h(R))||[30,30]),(0,a.isNumber)(R.size)&&(R.size=[R.size,R.size]),M>R.size[0]&&(M=R.size[0]),M>R.size[1]&&(M=R.size[1])}),y.layout(A);var C=(0,a.getLayoutBBox)(_),I=C.minX,k=C.minY,O=C.maxX,B=C.maxY,L={x:(O+I)/2,y:(B+k)/2};A.nodes.forEach(function(R){R.x-=L.x,R.y-=L.y});var z=Math.max(O-I,M)+x*2,X=Math.max(B-k,M)+x*2;g[b.id]={id:b.id,nodes:_,size:[z,X]}}else if(b.itemType==="combo"){var E=x?[x*2,x*2]:[30,30];g[b.id]={id:b.id,nodes:[],size:E}}return!0})}),g},u.prototype.initVals=function(){var f=this,l=f.nodeSize,c=f.spacing,h,d;if((0,a.isNumber)(c)?d=function(){return c}:(0,a.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!l)h=function(b){var w=d(b);if(b.size){if((0,a.isArray)(b.size)){var x=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(x+w)/2}if((0,a.isObject)(b.size)){var x=b.size.width>b.size.height?b.size.width:b.size.height;return(x+w)/2}return(b.size+w)/2}return 10+w/2};else if((0,a.isFunction)(l))h=function(b){var w=l(b),x=d(b);if((0,a.isArray)(b.size)){var E=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(E+x)/2}return((w||10)+x)/2};else if((0,a.isArray)(l)){var v=l[0]>l[1]?l[0]:l[1],p=v/2;h=function(b){return p+d(b)/2}}else{var g=l/2;h=function(b){return g+d(b)/2}}this.nodeSize=h;var y=f.comboPadding,m;(0,a.isNumber)(y)?m=function(){return y}:(0,a.isArray)(y)?m=function(){return Math.max.apply(null,y)}:(0,a.isFunction)(y)?m=y:m=function(){return 0},this.comboPadding=m},u.prototype.getType=function(){return"comboCombined"},u}(n.Base);return tf.ComboCombinedLayout=o,tf}var bl={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});var koe=function(){function r(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return r.prototype.distanceTo=function(e){var t=this.rx-e.rx,n=this.ry-e.ry;return Math.hypot(t,n)},r.prototype.setPos=function(e,t){this.rx=e,this.ry=t},r.prototype.resetForce=function(){this.fx=0,this.fy=0},r.prototype.addForce=function(e){var t=e.rx-this.rx,n=e.ry-this.ry,a=Math.hypot(t,n);a=a<1e-4?1e-4:a;var i=this.g*(this.degree+1)*(e.degree+1)/a;this.fx+=i*t/a,this.fy+=i*n/a},r.prototype.in=function(e){return e.contains(this.rx,this.ry)},r.prototype.add=function(e){var t=this.mass+e.mass,n=(this.rx*this.mass+e.rx*e.mass)/t,a=(this.ry*this.mass+e.ry*e.mass)/t,i=this.degree+e.degree,o={rx:n,ry:a,mass:t,degree:i};return new r(o)},r}();Ym.default=koe;var qm={};Object.defineProperty(qm,"__esModule",{value:!0});var Noe=function(){function r(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return r.prototype.getLength=function(){return this.length},r.prototype.contains=function(e,t){var n=this.length/2;return e<=this.xmid+n&&e>=this.xmid-n&&t<=this.ymid+n&&t>=this.ymid-n},r.prototype.NW=function(){var e=this.xmid-this.length/4,t=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.NE=function(){var e=this.xmid+this.length/4,t=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.SW=function(){var e=this.xmid-this.length/4,t=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.SE=function(){var e=this.xmid+this.length/4,t=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r}();qm.default=Noe;var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});var Ooe=function(){function r(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return r.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new r(this.quad.NW()),this.NE=new r(this.quad.NE()),this.SW=new r(this.quad.SW()),this.SE=new r(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},r.prototype._putBody=function(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},r.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},r.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var t=this.quad?this.quad.getLength():0,n=this.body.distanceTo(e);t/n250&&(t.barnesHut=!0),t.prune===void 0&&u>100&&(t.prune=!0),this.maxIteration===0&&!t.prune?(o=250,u<=200&&u>100?o=1e3:u>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&i&&(o=100,u<=200&&u>100?o=500:u>200&&(o=950),this.maxIteration=o),t.kr||(t.kr=50,u>100&&u<=500?t.kr=20:u>500&&(t.kr=1)),t.kg||(t.kg=20,u>100&&u<=500?t.kg=10:u>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(s),a()},e.prototype.updateNodesByForces=function(t){for(var n=this,a=n.edges,i=n.maxIteration,o=n.nodes,s=a.filter(function(_){var S=(0,ci.getEdgeTerminal)(_,"source"),A=(0,ci.getEdgeTerminal)(_,"target");return S!==A}),u=o.length,f=s.length,l=[],c={},h={},d=[],v=0;v0;){for(var x=0;xy||!c)?m=this.getOptRepGraForces(m,w,o):m=this.getRepGraForces(g,y,m,p,s,o);var _=this.updatePos(m,b,v,o);f=_.nodes,v=_.sg,g--,u.tick&&u.tick()}return f},e.prototype.getAttrForces=function(t,n,a,i,o,s,u,f){for(var l=this,c=l.nodes,h=l.preventOverlap,d=l.dissuadeHubs,v=l.mode,p=l.prune,g=0;g0&&(_=E,S=E),f[2*i[y.id]]+=_*x[0],f[2*i[b.id]]-=S*x[0],f[2*i[y.id]+1]+=_*x[1],f[2*i[b.id]+1]-=S*x[1]}}return f},e.prototype.getRepGraForces=function(t,n,a,i,o,s){for(var u=this,f=u.nodes,l=u.preventOverlap,c=u.kr,h=u.kg,d=u.center,v=u.prune,p=f.length,g=0;g0&&(w=c*(s[g]+1)*(s[y]+1)/b),a[2*g]-=w*m[0],a[2*y]+=w*m[0],a[2*g+1]-=w*m[1],a[2*y+1]+=w*m[1]}var x=[f[g].x-d[0],f[g].y-d[1]],E=Math.hypot(x[0],x[1]);x[0]=x[0]/E,x[1]=x[1]/E;var _=h*(s[g]+1);a[2*g]-=_*x[0],a[2*g+1]-=_*x[1]}return a},e.prototype.getOptRepGraForces=function(t,n,a){for(var i=this,o=i.nodes,s=i.kg,u=i.center,f=i.prune,l=o.length,c=9e10,h=-9e10,d=9e10,v=-9e10,p=0;p=h&&(h=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(h-c,v-d),y={xmid:(h+c)/2,ymid:(v+d)/2,length:g,massCenter:u,mass:l},m=new Roe.default(y),b=new Foe.default(m),p=0;p1.5*E?1.5*E:a);for(var y=0;yA?A:_;var M=_*t[2*y],C=_*t[2*y+1];s[y].x+=M,s[y].y+=C}return{nodes:s,sg:a}},e}(Doe.Base);bl.ForceAtlas2Layout=Boe;var wl={},Km={},Qm={},Jm={},zs=me&&me.__assign||function(){return zs=Object.assign||function(r){for(var e,t=1,n=arguments.length;te;n--)for(var a=0;a=e&&(this.additionColumn[a]+=t);for(var n=0;ne;n--)this.cells[a][n+t]=zs(zs({},this.cells[a][n]),{dx:a,dy:n+t,x:a*this.CELL_W,y:(n+t)*this.CELL_H}),this.cells[a][n]={dx:a,dy:n,x:a*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n=e&&(this.additionRow[n]+=t);for(var a=0;ai){for(var d=Math.ceil((f.size[0]+a)/i)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][h].node)v--;else break}s.insertColumn(c,v)}if(f.size[1]+a>o){for(var d=Math.ceil((f.size[1]+a)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][h+p+1].node)v--;else break}s.insertRow(h,v)}}for(var u=0;ui0?(m=a-l,y=s-i,b=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)),w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):0y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):g<-i0?(m=a-l,y=-(f-n),m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):(m=u-o,Math.abs(p)>(i-n)/2?y=n-f:y=p,m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y&&g!==0?(y/Math.sin(g)).toFixed(2):m.toFixed(2)));var x=parseFloat(g.toFixed(2)),E=t;return t&&(E=$oei?e:r,s=a>i?r:e,u=o.x-o.size[0]/2,f=o.y-o.size[1]/2,l=o.x+o.size[0]/2,c=o.y+o.size[1]/2,h=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,y=o.y,m=s.x,b=s.y,w=l>=h&&v>=u&&c>=d&&p>=f,x=0,E=0;if(w){E=Math.sqrt(Math.pow(m-g,2)+Math.pow(b-y,2));var _=u>h?u:h,S=f>d?f:d,A=lWN||n.y>VN)&&(e+=1e12);for(var a=t+1;a150,d=c<30||c>150,v=l>70&&l<110,p=c>70&&c<110;if(h&&!d||l*c<0){s=!1;break}else if(v&&!p||l*c<0){s=!1;break}else if((f.x-r.x)*(f.x-e.x)<0){s=!1;break}else if((f.y-r.y)*(f.y-e.y)<0){s=!1;break}}return s}function Zoe(r,e){for(var t=!1,n=1,a=Woe*n,i=Voe*n,o=[a,-a,0,0],s=[0,0,i,-i],u=0;u_2?(l=d,t=!0):(f.x-=o[c],f.y-=s[c])}}return o0>_2&&(o0*=Yoe),t?HN(r):0}function S2(r,e){var t=0;(r.x<0||r.y<0||r.x+r.size[0]+20>WN||r.y+r.size[1]+20>VN)&&(t+=1e12);for(var n=0;n0&&(s++,!(s>=o));){var u=Zoe(r,e);u!==0&&(i=u),a=i-t,t=i,a===0?--n:n=20}return r.forEach(function(f){f.x=f.x-f.size[0]/2,f.y=f.y-f.size[1]/2}),{nodes:r,edges:e}}e1.default=Koe;var Og=me&&me.__assign||function(){return Og=Object.assign||function(r){for(var e,t=1,n=arguments.length;t1){var g=Og({},v);delete g.size,o.push(g)}});var s=[];n.forEach(function(v){var p=o.find(function(y){return y.id===v.source}),g=o.find(function(y){return y.id===v.target});p&&g&&s.push(v)});var u=new nse.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),f=u.layout({nodes:o,edges:s}).nodes;t.forEach(function(v){var p=(f||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||a/2,v.y=(p==null?void 0:p.y)||i/2});var l=JSON.parse(JSON.stringify(t)),c=JSON.parse(JSON.stringify(n)),h=Ts.forceSimulation().nodes(l).force("link",Ts.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",Ts.forceManyBody()).force("center",Ts.forceCenter(a/2,i/2)).force("x",Ts.forceX(a/2)).force("y",Ts.forceY(i/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){h.on("end",function(){t.forEach(function(x){var E=l.find(function(_){return _.id===x.id});E&&(x.x=E.x,x.y=E.y)});var p=Math.min.apply(Math,t.map(function(x){return x.x})),g=Math.max.apply(Math,t.map(function(x){return x.x})),y=Math.min.apply(Math,t.map(function(x){return x.y})),m=Math.max.apply(Math,t.map(function(x){return x.y})),b=a/(g-p),w=i/(m-y);t.forEach(function(x){x.x!==void 0&&b<1&&(x.x=(x.x-p)*b),x.y!==void 0&&w<1&&(x.y=(x.y-y)*w)}),t.forEach(function(x){x.sizeTemp=x.size,x.size=[10,10]}),(0,rse.default)(t,n),t.forEach(function(x){x.size=x.sizeTemp||[],delete x.sizeTemp}),(0,tse.default)({nodes:t,edges:n},e),v()})});return d}Km.default=ase;var ise=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ose=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wl,"__esModule",{value:!0});wl.ERLayout=void 0;var sse=Rr,use=ose(Km),fse=function(r){ise(e,r);function e(t){var n=r.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},t&&n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var t=this,n=t.nodes,a=t.edges;return n==null||n.forEach(function(i){i.size||(i.size=[50,50])}),(0,use.default)({nodes:n,edges:a},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){t.onLayoutEnd&&t.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(sse.Base);wl.ERLayout=fse;var Io={},M2;function lse(){if(M2)return Io;M2=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Layouts=Io.Layout=void 0;var r=gi,e=tl,t=rl,n=al,a=nl,i=Vy,o=il,s=pu,u=jm,f=dl,l=vl,c=pl,h=gl,d=yl,v=ml,p=XN(),g=bl,y=wl,m=ul,b=Ir(),w=function(){function x(E){var _=(0,r.getLayoutByName)(E.type);this.layoutInstance=new _(E)}return x.prototype.layout=function(E){return this.layoutInstance.layout(E)},x.prototype.updateCfg=function(E){this.layoutInstance.updateCfg(E)},x.prototype.init=function(E){this.correctLayers(E.nodes),this.layoutInstance.init(E)},x.prototype.correctLayers=function(E){if(E!=null&&E.length){var _=1/0,S=[];if(E.forEach(function(M){(0,b.isString)(M.layer)&&(M.layer=parseInt(M.layer,10)),!(M.layer===void 0||isNaN(M.layer))&&(S.push(M),M.layer<_&&(_=M.layer))}),_<=0){var A=Math.abs(_)+1;S.forEach(function(M){return M.layer+=A})}}},x.prototype.execute=function(){this.layoutInstance.execute()},x.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},x.prototype.destroy=function(){return this.layoutInstance.destroy()},x}();return Io.Layout=w,Io.Layouts={force:i.ForceLayout,fruchterman:c.FruchtermanLayout,forceAtlas2:g.ForceAtlas2Layout,gForce:a.GForceLayout,force2:n.Force2Layout,dagre:s.DagreLayout,dagreCompound:m.DagreCompoundLayout,circular:o.CircularLayout,radial:u.RadialLayout,concentric:f.ConcentricLayout,grid:e.GridLayout,mds:l.MDSLayout,comboForce:v.ComboForceLayout,comboCombined:p.ComboCombinedLayout,random:t.RandomLayout,"gForce-gpu":d.GForceGPULayout,"fruchterman-gpu":h.FruchtermanGPULayout,er:y.ERLayout},Io}var KN={};Object.defineProperty(KN,"__esModule",{value:!0});var A2;function QN(){return A2||(A2=1,function(r){var e=me&&me.__createBinding||(Object.create?function(E,_,S,A){A===void 0&&(A=S);var M=Object.getOwnPropertyDescriptor(_,S);(!M||("get"in M?!_.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(E,A,M)}:function(E,_,S,A){A===void 0&&(A=S),E[A]=_[S]}),t=me&&me.__exportStar||function(E,_){for(var S in E)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&e(_,E,S)};Object.defineProperty(r,"__esModule",{value:!0}),r.ERLayout=r.ForceAtlas2Layout=r.ComboCombinedLayout=r.ComboForceLayout=r.GForceGPULayout=r.FruchtermanGPULayout=r.FruchtermanLayout=r.MDSLayout=r.ConcentricLayout=r.RadialLayout=r.DagreCompoundLayout=r.DagreLayout=r.CircularLayout=r.ForceLayout=r.Force2Layout=r.GForceLayout=r.RandomLayout=r.GridLayout=r.Layouts=r.Layout=void 0;var n=tl;Object.defineProperty(r,"GridLayout",{enumerable:!0,get:function(){return n.GridLayout}});var a=rl;Object.defineProperty(r,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var i=nl;Object.defineProperty(r,"GForceLayout",{enumerable:!0,get:function(){return i.GForceLayout}});var o=al;Object.defineProperty(r,"Force2Layout",{enumerable:!0,get:function(){return o.Force2Layout}});var s=Vy;Object.defineProperty(r,"ForceLayout",{enumerable:!0,get:function(){return s.ForceLayout}});var u=il;Object.defineProperty(r,"CircularLayout",{enumerable:!0,get:function(){return u.CircularLayout}});var f=pu;Object.defineProperty(r,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var l=ul;Object.defineProperty(r,"DagreCompoundLayout",{enumerable:!0,get:function(){return l.DagreCompoundLayout}});var c=jm;Object.defineProperty(r,"RadialLayout",{enumerable:!0,get:function(){return c.RadialLayout}});var h=dl;Object.defineProperty(r,"ConcentricLayout",{enumerable:!0,get:function(){return h.ConcentricLayout}});var d=vl;Object.defineProperty(r,"MDSLayout",{enumerable:!0,get:function(){return d.MDSLayout}});var v=pl;Object.defineProperty(r,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var p=gl;Object.defineProperty(r,"FruchtermanGPULayout",{enumerable:!0,get:function(){return p.FruchtermanGPULayout}});var g=yl;Object.defineProperty(r,"GForceGPULayout",{enumerable:!0,get:function(){return g.GForceGPULayout}});var y=ml;Object.defineProperty(r,"ComboForceLayout",{enumerable:!0,get:function(){return y.ComboForceLayout}});var m=XN();Object.defineProperty(r,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var b=bl;Object.defineProperty(r,"ForceAtlas2Layout",{enumerable:!0,get:function(){return b.ForceAtlas2Layout}});var w=wl;Object.defineProperty(r,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var x=lse();Object.defineProperty(r,"Layout",{enumerable:!0,get:function(){return x.Layout}}),Object.defineProperty(r,"Layouts",{enumerable:!0,get:function(){return x.Layouts}}),t(KN,r)}(Tp)),Tp}(function(r){var e=me&&me.__createBinding||(Object.create?function(a,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(a,s,u)}:function(a,i,o,s){s===void 0&&(s=o),a[s]=i[o]}),t=me&&me.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&e(i,a,o)};Object.defineProperty(r,"__esModule",{value:!0}),r.getLayoutByName=r.unRegisterLayout=r.registerLayout=void 0;var n=gi;Object.defineProperty(r,"registerLayout",{enumerable:!0,get:function(){return n.registerLayout}}),Object.defineProperty(r,"unRegisterLayout",{enumerable:!0,get:function(){return n.unRegisterLayout}}),Object.defineProperty(r,"getLayoutByName",{enumerable:!0,get:function(){return n.getLayoutByName}}),t(QN(),r)})(Kt);function cse(r,e,t,n){return n===void 0&&(n="height"),t==="center"?(r[n]+e[n])/2:r.height}var oo={assign:Object.assign,getHeight:cse},JN=oo,t1=18,hse=t1*2,C2=t1,dse={getId:function(e){return e.id||e.name},getPreH:function(e){return e.preH||0},getPreV:function(e){return e.preV||0},getHGap:function(e){return e.hgap||C2},getVGap:function(e){return e.vgap||C2},getChildren:function(e){return e.children},getHeight:function(e){return e.height||hse},getWidth:function(e){var t=e.label||" ";return e.width||t.split("").length*t1}};function id(r,e){var t=this;if(t.vgap=t.hgap=0,r instanceof id)return r;t.data=r;var n=e.getHGap(r),a=e.getVGap(r);return t.preH=e.getPreH(r),t.preV=e.getPreV(r),t.width=e.getWidth(r),t.height=e.getHeight(r),t.width+=t.preH,t.height+=t.preV,t.id=e.getId(r),t.x=t.y=0,t.depth=0,t.children||(t.children=[]),t.addGap(n,a),t}JN.assign(id.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,t){var n=this;n.hgap+=e,n.vgap+=t,n.width+=2*e,n.height+=2*t},eachNode:function(e){for(var t=this,n=[t],a;a=n.shift();)e(a),n=a.children.concat(n)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var t=this,n=[t],a;a=n.shift();)e(a),n=n.concat(a.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.width=Math.max(e.width,t.x+t.width),e.height=Math.max(e.height,t.y+t.height)}),e},translate:function(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.eachNode(function(n){n.x+=e,n.y+=t,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var e=this,t=e.getBoundingBox();e.eachNode(function(n){n.x=n.x-(n.x-t.left)*2-n.width}),e.translate(t.width,0)},bottom2top:function(){var e=this,t=e.getBoundingBox();e.eachNode(function(n){n.y=n.y-(n.y-t.top)*2-n.height}),e.translate(0,t.height)}});function vse(r,e,t){e===void 0&&(e={}),e=JN.assign({},dse,e);var n=new id(r,e),a=[n],i;if(!t&&!r.collapsed){for(;i=a.shift();)if(!i.data.collapsed){var o=e.getChildren(i.data),s=o?o.length:0;if(i.children=new Array(s),o&&s)for(var u=0;uw.low&&(w=w.nxt);var A=E+x.prelim+x.w-(S+_.prelim);A>0&&(S+=A,o(m,b,w.index,A));var M=f(x),C=f(_);M<=C&&(x=u(x),x!==null&&(E+=x.mod)),M>=C&&(_=s(_),_!==null&&(S+=_.mod))}!x&&_?l(m,b,_,S):x&&!_&&c(m,b,x,E)}function o(m,b,w,x){m.c[b].mod+=x,m.c[b].msel+=x,m.c[b].mser+=x,v(m,b,w,x)}function s(m){return m.cs===0?m.tl:m.c[0]}function u(m){return m.cs===0?m.tr:m.c[m.cs-1]}function f(m){return m.y+m.h}function l(m,b,w,x){var E=m.c[0].el;E.tl=w;var _=x-w.mod-m.c[0].msel;E.mod+=_,E.prelim-=_,m.c[0].el=m.c[b].el,m.c[0].msel=m.c[b].msel}function c(m,b,w,x){var E=m.c[b].er;E.tr=w;var _=x-w.mod-m.c[b].mser;E.mod+=_,E.prelim-=_,m.c[b].er=m.c[b-1].er,m.c[b].mser=m.c[b-1].mser}function h(m){m.prelim=(m.c[0].prelim+m.c[0].mod+m.c[m.cs-1].mod+m.c[m.cs-1].prelim+m.c[m.cs-1].w)/2-m.w/2}function d(m,b){b+=m.mod,m.x=m.prelim+b,p(m);for(var w=0;w=w.low;)w=w.nxt;return{low:m,index:b,nxt:w}}aO(r,t);var y=df.fromNode(r,t);return n(y),d(y,0),nO(y,r,t),yse(r,t),r},T2=eO,iO=function(r,e){for(var t=T2(r.data,e,!0),n=T2(r.data,e,!0),a=r.children.length,i=Math.round(a/2),o=e.getSide||function(l,c){return c-1},Ese=Fi[0],r1=function(r,e,t){var n=e.direction||Ese;if(e.isHorizontal=xse(n),Fi.indexOf(n)===-1)throw new TypeError("Invalid direction: "+n);if(n===Fi[0])t(r,e);else if(n===Fi[1])t(r,e),r.right2left();else if(n===Fi[2])t(r,e);else if(n===Fi[3])t(r,e),r.bottom2top();else if(n===Fi[4]||n===Fi[5]){var a=bse(r,e),i=a.left,o=a.right;t(i,e),t(o,e),e.isHorizontal?i.right2left():i.bottom2top(),o.translate(i.x-o.x,i.y-o.y),r.x=i.x,r.y=o.y;var s=r.getBoundingBox();e.isHorizontal?s.top<0&&r.translate(0,-s.top):s.left<0&&r.translate(-s.left,0)}var u=e.fixedRoot;return u===void 0&&(u=!0),u&&r.translate(-(r.x+r.width/2+r.hgap),-(r.y+r.height/2+r.vgap)),_se(r,e),r};function _se(r,e){if(e.radial){var t=e.isHorizontal?["x","y"]:["y","x"],n=t[0],a=t[1],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;r.DFTraverse(function(l){s++;var c=l.x,h=l.y;i.x=Math.min(i.x,c),i.y=Math.min(i.y,h),o.x=Math.max(o.x,c),o.y=Math.max(o.y,h)});var u=o[a]-i[a];if(u===0)return;var f=Math.PI*2/s;r.DFTraverse(function(l){var c=(l[a]-i[a])/u*(Math.PI*2-f)+f,h=l[n]-r[n];l.x=Math.cos(c)*h,l.y=Math.sin(c)*h})}}function Sse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Lg(r,e)}function Lg(r,e){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Lg(r,e)}var Mse=nv,Ase=mse,Cse=r1,Tse=oo,Ise=function(r){function e(){return r.apply(this,arguments)||this}Sse(e,r);var t=e.prototype;return t.execute=function(){var a=this;return Cse(a.rootNode,a.options,Ase)},e}(Mse),kse={};function Nse(r,e){return e=Tse.assign({},kse,e),new Ise(r,e).execute()}var Ose=Nse,Lse=oo;function Dse(r,e){e===void 0&&(e=[]);var t=this;t.x=t.y=0,t.leftChild=t.rightChild=null,t.height=0,t.children=e}var Pse={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function oO(r,e,t){t?(e.x=r.x,e.y=r.y):(e.x=r.y,e.y=r.x),r.children.forEach(function(n,a){oO(n,e.children[a],t)})}var Rse=function(r,e){e===void 0&&(e={}),e=Lse.assign({},Pse,e);var t=0;function n(u){if(!u)return null;u.width=0,u.depth&&u.depth>t&&(t=u.depth);var f=u.children,l=f.length,c=new Dse(u.height,[]);return f.forEach(function(h,d){var v=n(h);c.children.push(v),d===0&&(c.leftChild=v),d===l-1&&(c.rightChild=v)}),c.originNode=u,c.isLeaf=u.isLeaf(),c}function a(u){if(u.isLeaf||u.children.length===0)u.drawingDepth=t;else{var f=u.children.map(function(c){return a(c)}),l=Math.min.apply(null,f);u.drawingDepth=l-1}return u.drawingDepth}var i;function o(u){u.x=u.drawingDepth*e.rankSep,u.isLeaf?(u.y=0,i&&(u.y=i.y+i.height+e.nodeSep,u.originNode.parent!==i.originNode.parent&&(u.y+=e.subTreeSep)),i=u):(u.children.forEach(function(f){o(f)}),u.y=(u.leftChild.y+u.rightChild.y)/2)}var s=n(r);return a(s),o(s),oO(s,r,e.isHorizontal),r};function Fse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Dg(r,e)}function Dg(r,e){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Dg(r,e)}var Bse=nv,Gse=Rse,zse=r1,jse=oo,Use=function(r){function e(){return r.apply(this,arguments)||this}Fse(e,r);var t=e.prototype;return t.execute=function(){var a=this;return a.rootNode.width=0,zse(a.rootNode,a.options,Gse)},e}(Bse),$se={};function Xse(r,e){return e=jse.assign({},$se,e),new Use(r,e).execute()}var Wse=Xse,I2=oo;function Vse(r,e,t,n,a){var i=(typeof t=="function"?t(r):t)*r.depth;if(!n)try{if(r.id===r.parent.children[0].id){r.x+=i,r.y=e?e.y:0;return}}catch{}if(r.x+=i,e){if(r.y=e.y+I2.getHeight(e,r,a),e.parent&&r.parent.id!==e.parent.id){var o=e.parent,s=o.y+I2.getHeight(o,r,a);r.y=s>r.y?s:r.y}}else r.y=0}var Yse=function(r,e,t,n){var a=null;r.eachNode(function(i){Vse(i,a,e,t,n),a=i})};function qse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Pg(r,e)}function Pg(r,e){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Pg(r,e)}var Hse=nv,zc=Yse,Zse=iO,Kse=oo,vf=["LR","RL","H"],Qse=vf[0],Jse=function(r){function e(){return r.apply(this,arguments)||this}qse(e,r);var t=e.prototype;return t.execute=function(){var a=this,i=a.options,o=a.rootNode;i.isHorizontal=!0;var s=i.indent,u=s===void 0?20:s,f=i.dropCap,l=f===void 0?!0:f,c=i.direction,h=c===void 0?Qse:c,d=i.align;if(h&&vf.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===vf[0])zc(o,u,l,d);else if(h===vf[1])zc(o,u,l,d),o.right2left();else if(h===vf[2]){var v=Zse(o,i),p=v.left,g=v.right;zc(p,u,l,d),p.right2left(),zc(g,u,l,d);var y=p.getBoundingBox();g.translate(y.width,0),o.x=g.x-o.width/2}return o},e}(Hse),eue={};function tue(r,e){return e=Kse.assign({},eue,e),new Jse(r,e).execute()}var rue=tue,nue=oo;function sO(r,e){var t=0;return r.children.length?r.children.forEach(function(n){t+=sO(n,e)}):t=r.height,r._subTreeSep=e.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,t)+2*r._subTreeSep,r.totalHeight}function uO(r){var e=r.children,t=e.length;if(t){e.forEach(function(u){uO(u)});var n=e[0],a=e[t-1],i=a.y-n.y+a.height,o=0;if(e.forEach(function(u){o+=u.totalHeight}),i>r.height)r.y=n.y+i/2-r.height/2;else if(e.length!==1||r.height>o){var s=r.y+(r.height-i)/2-n.y;e.forEach(function(u){u.translate(0,s)})}else r.y=(n.y+n.height/2+a.y+a.height/2)/2-r.height/2}}var aue={getSubTreeSep:function(){return 0}},iue=function(r,e){e===void 0&&(e={}),e=nue.assign({},aue,e),r.parent={x:0,width:0,height:0,y:0},r.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),r.parent=null,sO(r,e),r.startY=0,r.y=r.totalHeight/2-r.height/2,r.eachNode(function(t){var n=t.children,a=n.length;if(a){var i=n[0];if(i.startY=t.startY+t._subTreeSep,a===1)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var o=1;o=0&&(s="x",o="y");var u=0;N2(e,function(c){return u++,c.x>i.x&&(i.x=c.x),c.xi.y&&(i.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` -`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` -`)),t},addGetWebGLMessage:function(t){t=t||{};var n=t.parent!==void 0?t.parent:document.body,a=t.id!==void 0?t.id:"oldie",i=n1().getWebGLErrorMessage();i.id=a,n.appendChild(i)}}};const Mue=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:n1},Symbol.toStringTag,{value:"Module"}));var fO=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const Aue=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:fO},Symbol.toStringTag,{value:"Module"}));var so=P(P(P(P(P({},Za),e7),Sue),Mue),Aue);so.radialLayout;Kt.registerLayout("grid",Kt.GridLayout);Kt.registerLayout("random",Kt.RandomLayout);Kt.registerLayout("force",Kt.ForceLayout);Kt.registerLayout("circular",Kt.CircularLayout);Kt.registerLayout("dagre",Kt.DagreLayout);Kt.registerLayout("dagreCompound",Kt.DagreCompoundLayout);Kt.registerLayout("radial",Kt.RadialLayout);Kt.registerLayout("concentric",Kt.ConcentricLayout);Kt.registerLayout("mds",Kt.MDSLayout);Kt.registerLayout("fruchterman",Kt.FruchtermanLayout);Kt.registerLayout("fruchterman-gpu",Kt.FruchtermanGPULayout);Kt.registerLayout("gForce",Kt.GForceLayout);Kt.registerLayout("force2",Kt.Force2Layout);Kt.registerLayout("gForce-gpu",Kt.GForceGPULayout);Kt.registerLayout("comboForce",Kt.ComboForceLayout);Kt.registerLayout("comboCombined",Kt.ComboCombinedLayout);Kt.registerLayout("forceAtlas2",Kt.ForceAtlas2Layout);var Cue=function(){function r(e,t){var n=e.toString(),a=new Blob(["importScripts('".concat(t,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(a))}return r}(),Tue=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function t(){var a={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function i(s){var u=s.data.type;return u===a.RUN||u===a.GPURUN}function o(s){var u=this,f=s.data.type;switch(f){case a.RUN:{var l=s.data,c=l.nodes,h=l.edges,d=l.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}var y;v.onLayoutEnd=function(){u.postMessage({type:a.END,nodes:c}),y==null||y.destroy()},y=new g(v),y.init({nodes:c,edges:h}),y.execute();break}case a.GPURUN:{var m=s.data,b=m.nodes,h=m.edges,w=m.layoutCfg,v=w===void 0?{}:w,x=m.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:a.ERROR,message:"layout ".concat(p," does not support GPU")});break}var E=new g(v);E.init({nodes:b,edges:h}),E.executeWithWorker(x,this);break}}}onmessage=function(u){i(u)&&o(u)}}var n=new Cue(t,e);return n},Is={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function Fg(r){"@babel/helpers - typeof";return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fg(r)}var O2=function(e){return setTimeout(e,16)},L2=function(e){return clearTimeout(e)},jc={requestAnimationFrame:function(e){var t=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||O2;return t(e)},cancelAnimationFrame:function(e){var t=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||L2;return t(e)}},Iue=["fruchterman","gForce"],kue=["force","grid","circular"],Nue=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.graph=t,n.layoutCfg=t.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Tue(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(jc.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(jc.cancelAnimationFrame(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,p,h,d,v,p,g;return Gn(this,function(y){switch(y.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];u=t.type,t.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},u&&this.isGPU&&(lO(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Za.isForce(u)?(f=t.onTick,l=t.animate,c=l===void 0&&(u==="force"||u==="force2"),p=function(){f&&f(),(l||c)&&s.refreshPositions()},t.tick=p):(u==="comboForce"||u==="comboCombined")&&(t.comboTrees=s.get("comboTrees")),h=!1;try{d=new Kt.Layouts[u](t),this.layoutMethods[n]&&this.layoutMethods[n].destroy(),this.layoutMethods[n]=d}catch{console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),o()}return h=d.enableTick,h&&(v=t.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,t),Due(g,n),d.init(g),s.emit("beforesublayout",{type:u}),[4,d.execute()];case 1:return y.sent(),d.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this.graph,u=n==null?void 0:n.type,n.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},Za.isForce(u)&&(f=n.onTick,l=n.animate,c=l===void 0&&(u==="force"||u==="force2"),h=function(){f==null||f(),(l||c)&&s.refreshPositions()},n.tick=h),d=this.filterLayoutData(this.data,n),t.init(d),t.updateCfg(n),s.emit("beforesublayout",{type:u}),[4,t.execute()];case 1:return v.sent(),t.isCustomLayout&&n.onLayoutEnd&&n.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(t){var n=this,a,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,u=o.hiddenNodes;if(!s)return!1;var f=i.get("width"),l=i.get("height"),c={};Object.assign(c,{width:f,height:l,center:[f/2,l/2]},this.layoutCfg),this.layoutCfg=c;var h=c.type,d=!1;(a=this.layoutMethods)===null||a===void 0||a.forEach(function(x){var E;return d=!!(!((E=x.nodes)===null||E===void 0)&&E.length)||d});var v=this.destoryLayoutMethods();i.emit("beforelayout");var p=Promise.resolve();d&&h&&(v==null?void 0:v.length)===1&&v[0]===h?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,u);g.then(),this.isGPU=D2(c,h);var y=c.onLayoutEnd,m=c.layoutEndFormatted,b=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return y&&y(s),this.refreshLayout(),b&&c.pipes?[4,this.adjustPipesBox(this.data,b)]:[3,2];case 1:x.sent(),this.refreshLayout(),x.label=2;case 2:return i.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var w=!1;return c.type?(w=!0,p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,x.sent()]}})})})):c.pipes&&(w=!0,c.pipes.forEach(function(x,E){p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(_){switch(_.label){case 0:return[4,this.execLayoutMethod(x,E)];case 1:return[2,_.sent()]}})})})})),w?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),t&&t()}).catch(function(x){console.warn("graph layout failed,",x)}):(i.refreshPositions(),t==null||t()),!1}},e.prototype.tweakInit=function(){var t=this,n=t.data,a=t.graph,i=n.nodes,o=n.edges;if(i!=null&&i.length){var s={};i.forEach(function(l){var c=l.x,h=l.y;!isNaN(c)&&!isNaN(h)&&(s[l.id]={x:c,y:h},l.mass=l.mass||2)}),o.forEach(function(l){var c=l.source,h=l.target,d=s[c],v=s[h];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[h]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var u=a.get("width"),f=a.get("height");i.forEach(function(l){var c=s[l.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};l.x=c.x,l.y=c.y})}},e.prototype.initWithPreset=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this,u=s.layoutCfg,f=s.data,l=u.preset,!(l!=null&&l.type)||!Kt.Layouts[l==null?void 0:l.type]?(n==null||n(),i(),[2,!1]):(c=D2(l,l.type),h=c?"".concat(l.type,"-gpu"):l.type,d=new Kt.Layouts[h](l),delete u.preset,d.init(f),[4,d.execute()]);case 1:return v.sent(),t==null||t(),i(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(t,n){var a=this,i=this,o=i.layoutCfg,s=i.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,s.emit("beforelayout");var l=Promise.resolve(),c=!1;if(o.type)c=!0,l=l.then(function(){return a.runWebworker(u,t,o)});else if(o.pipes){c=!0;for(var h=function(y){l=l.then(function(){return a.runWebworker(u,t,y)})},d=0,v=o.pipes;d'),l=a?a.backgroundColor:void 0,c=a?a.padding:void 0;c?Ot(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var h=o+c[0]+c[2],d=s+c[1]+c[3],v={container:f,height:h,width:d,quickHit:!0},p=u==="svg"?new bp(v):new Vu(v),g=this.get("group"),y=g.clone(),m=rr(y.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var b=(i.maxX+i.minX)/2,w=(i.maxY+i.minY)/2;m=P2(m,[["t",-b,-w],["t",s/2+c[3],o/2+c[0]]]),y.resetMatrix(),y.setMatrix(m),p.add(y);var x=p.get("el"),E="";n||(n="image/png"),setTimeout(function(){if(u==="svg"){var _=x.cloneNode(!0),S=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),A=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",S);A.replaceChild(_,A.documentElement);var M=new XMLSerializer().serializeToString(A);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(M))}else{var C=void 0,I=x.getContext("2d"),k=void 0;if(l){var O=typeof window<"u"?window.devicePixelRatio:1;try{C=I.getImageData(0,0,d*O,h*O),k=I.globalCompositeOperation,I.globalCompositeOperation="destination-over",I.fillStyle=l,I.fillRect(0,0,d,h)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}E=x.toDataURL(n),l&&(I.clearRect(0,0,d,h),I.putImageData(C,0,0),I.globalCompositeOperation=k)}t&&t(E)},16)},e.prototype.downloadFullImage=function(t,n,a){var i=this,o=this.get("group").getCanvasBBox(),s=o.height,u=o.width,f=this.get("renderer"),l=rg('
'),c=document.querySelector(".g6-graph-watermarker"),h=a?a.backgroundColor:void 0,d=a?a.padding:void 0;d?Ot(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=u+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},y=g.width,m=g.height;v=Math.ceil(v/m)*m,p=Math.ceil(p/y)*y}var b={container:l,height:v,width:p},w=f==="svg"?new bp(b):new Vu(b),x=this.get("group"),E=n7(x),_=rr(E.getMatrix());_||(_=[1,0,0,0,1,0,0,0,1]);var S=(o.maxX+o.minX)/2,A=(o.maxY+o.minY)/2;_=P2(_,[["t",-S,-A],["t",u/2+d[3],s/2+d[0]]]),E.resetMatrix(),E.setMatrix(_),w.add(E);var M=w.get("el");n||(n="image/png"),this.asyncToDataUrl(n,h,function(C){var I=document.createElement("a"),k=(t||"graph")+(f==="svg"?".svg":".".concat(n.split("/")[1]));i.dataURLToImage(C,f,I,k);var O=document.createEvent("MouseEvents");O.initEvent("click",!1,!1),I.dispatchEvent(O)},p,v,M)},e.prototype.downloadImage=function(t,n,a){var i=this,o=this;o.stopAnimate();var s=o.get("canvas"),u=s.getRenderer();n||(n="image/png");var f=(t||"graph")+(u==="svg"?".svg":".".concat(n.split("/")[1])),l=document.createElement("a");o.asyncToDataUrl(n,a,function(c){i.dataURLToImage(c,u,l,f);var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),l.dispatchEvent(h)})},e.prototype.dataURLToImage=function(t,n,a,i){if(!t||t==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&n!=="svg"){var o=t.split(","),s="";if(o&&o.length>0){var u=o[0].match(/:(.*?);/);u&&u.length>=2&&(s=u[1])}for(var f=atob(o[1]),l=f.length,c=new Uint8Array(l);l--;)c[l]=f.charCodeAt(l);var h=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,i):a.addEventListener("click",function(){a.download=i,a.href=window.URL.createObjectURL(h)})}else a.addEventListener("click",function(){a.download=i,a.href=t})},e.prototype.addPlugin=function(t){var n=this;t.destroyed||(n.get("plugins").push(t),t.initPlugin(n))},e.prototype.removePlugin=function(t){var n=this.get("plugins"),a=n.indexOf(t);a>=0&&(t.destroyPlugin(),n.splice(a,1))},e.prototype.setImageWaterMarker=function(t,n){t===void 0&&(t=wf.waterMarkerImage);var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},wf.imageWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.image;if(!t){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new Vu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.x,y=l.y;v.rotate(-p*Math.PI/180);var m=new Image;m.crossOrigin="anonymous",m.src=t,m.onload=function(){if(v.drawImage(m,g,y,l.width,l.height),v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var b=document.querySelector(".g6-graph-watermarker");b||(b=document.createElement("div"),b.className="g6-graph-watermarker"),b.className="g6-graph-watermarker",i.destroyed||(b.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),a.appendChild(b))}}},e.prototype.setTextWaterMarker=function(t,n){var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},wf.textWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.text;if(!(t!=null&&t.length)){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new Vu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.fill,y=l.fontFamily,m=l.fontSize,b=l.baseline,w=l.x,x=l.y,E=l.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(m,"px ").concat(y),v.fillStyle=g,v.textBaseline=b;for(var _=Ye(t)?[t]:t,S=_.length-1;S>=0;S--)v.fillText(_[S],w,x+S*E);if(v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||(A=document.createElement("div"),A.className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),a.appendChild(A)}},e.prototype.destroy=function(){var t,n,a,i;_e(this.get("plugins"),function(l){l.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var f=s.length-1;f>=0;f--){var l=s[f].getModel();e.indexOfChild(t.children||[],l.id)===-1&&(i.innerRemoveChild(l.id,{x:t.x,y:t.y},a),s.splice(f,1))}}var c,h;o.get("originAttrs")&&(c=o.get("originAttrs").x,h=o.get("originAttrs").y);var d=o.getModel();a&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,t.data)),(c!==t.x||h!==t.y)&&o.updatePosition({x:t.x,y:t.y})},e.prototype.innerRemoveChild=function(t,n,a){var i=this,o=i.findById(t);if(o)if(_e(o.get("children"),function(u){i.innerRemoveChild(u.getModel().id,n,a)}),a){var s=o.getModel();o.set("to",n),o.set("originAttrs",{x:s.x,y:s.y}),i.get("removeList").push(o)}else i.removeItem(o,!1)},e.prototype.changeData=function(t,n){n===void 0&&(n=!0);var a=this;this.getNodes().map(function(i){return a.clearItemStates(i)}),this.getEdges().map(function(i){return a.clearItemStates(i)}),n&&this.get("enabledStack")&&this.pushStack("changedata",{before:a.get("originData"),after:t||a.get("data")}),t?(a.data(t),a.render(!1)):a.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var n=this;n.updateLayout(t)},e.prototype.updateLayout=function(t,n,a,i){i===void 0&&(i=!0);var o=this;if(!t){console.warn("layout cannot be null");return}if(i&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:t}),o.set("layout",t),o.set("layoutMethod",o.getLayout()),o.layout(),n){var s=a;s||(n==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*u[0]+u[6],s.y=s.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY,v={x:(l+c)/2,y:(h+d)/2};n==="begin"&&(v.x=l,v.y=h),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var n=this;n.layout(t)},e.prototype.layout=function(t){var n=this,a=this,i=a.get("data"),o=a.get("layoutMethod"),s=a.get("layout"),u=i;if(s!=null&&s.excludeInvisibles){i=rr(a.get("data"));var f={};u0(i,function(h){var d=h.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=n.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(f[h.id]=f[h.id]||[],f[h.id].push({idx:v,child:d.splice(v,1)[0]}))}}),u=o?o(i,a.get("layout")):i,u0(u,function(h){var d=f[h.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,y=p.child;h.children.splice(g,0,y)}})}else u=o?o(i,a.get("layout")):i;var l=a.get("animate");if(a.emit("beforerefreshlayout",{data:i,layoutData:u}),a.emit("beforelayout"),a.innerUpdateChild(u,void 0,l),t){var c=a.get("viewController");c.fitView()}l?a.layoutAnimate(u):(a.refresh(),a.paint()),a.emit("afterrefreshlayout",{data:i,layoutData:u}),a.emit("afterlayout")},e.prototype.addChild=function(t,n,a){a===void 0&&(a=!0);var i=this;i.emit("beforeaddchild",{model:t,parent:n}),Ye(n)||(n=n.get("id"));var o=i.findDataById(n);if(o){o.children||(o.children=[]),o.children.push(t);var s=i.findById(n);s.refresh(),i.changeData(void 0,a)}},e.prototype.updateChildren=function(t,n,a){a===void 0&&(a=!0);var i=this,o=i.findById(n);if(!n||!o){console.warn("Update children failed! There is no node with id '".concat(n,"'"));return}var s=i.findDataById(n);s.children=t,o.refresh(),i.changeData(void 0,a)},e.prototype.updateChild=function(t,n,a){a===void 0&&(a=!0);var i=this;if(!n||!i.findById(n)){i.changeData(t,a);return}var o=i.findDataById(n),s=i.findById(t.id);if(o.children||(o.children=[]),!s)o.children.push(t);else{var u=e.indexOfChild(o.children,t.id);u>-1&&(o.children[u]=t)}var f=i.findById(n);f==null||f.refresh(),i.changeData(void 0,a)},e.prototype.removeChild=function(t,n){n===void 0&&(n=!0);var a=this,i=a.findById(t),o;if(i?o=i==null?void 0:i.get("parent"):o=a.getNodes().find(function(c){var h=c.getModel().children||[];return!!h.find(function(d){return d.id===t})}),o&&!o.destroyed){var s=o.get("id"),u=a.findDataById(s),f=u&&u.children||[],l=e.indexOfChild(f,t);f.splice(l,1),o.refresh()}a.changeData(void 0,n)},e.prototype.findDataById=function(t,n){var a=this;if(n||(n=a.get("data")),t===n.id)return n;var i=null;return _e(n.children||[],function(o){if(o.id===t)return i=o,!1;if(i=a.findDataById(t,o),i)return!1}),i},e.prototype.layoutAnimate=function(t,n){var a=this,i=this.get("animateCfg");a.emit("beforeanimate",{data:t}),a.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){u0(t,function(s){var u=a.findById(s.id);if(u){var f=u.get("originAttrs"),l=u.get("model");if(f||(f={x:l.x,y:l.y},u.set("originAttrs",f)),n){var c=n(u,o,f,t);u.set("model",Object.assign(l,c))}else l.x=f.x+(s.x-f.x)*o,l.y=f.y+(s.y-f.y)*o}return!0}),_e(a.get("removeList"),function(s){var u=s.getModel(),f=s.get("originAttrs"),l=s.get("to");u.x=f.x+(l.x-f.x)*o,u.y=f.y+(l.y-f.y)*o}),a.refreshPositions()},{duration:i.duration,easing:i.ease,callback:function(){_e(a.getNodes(),function(s){s.set("originAttrs",null)}),_e(a.get("removeList"),function(s){a.removeItem(s,!1)}),a.set("removeList",[]),i.callback&&i.callback(),a.emit("afteranimate",{data:t})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){t===void 0&&(t=!0);var n=this,a=n.get("data");if(!a||!gn(a)||!Object.keys(a).length)throw new Error("data must be defined first");n.clear(),t&&this.get("enabledStack")&&this.clearStack(),n.emit("beforerender"),n.layout(this.get("fitView")),n.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(t){r.prototype.data.call(this,t),this.set("originData",Rue(t))},e})(cO);ro("circle",{options:{size:Qe.defaultNode.size,style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=_r({},a,e.icon),s="".concat(this.type,"-keyShape"),u=t.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});t.shapeMap[s]=u;var f=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");h?t.shapeMap[d]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):t.shapeMap[d]=t.addShape("image",{attrs:P({x:-f/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,t),u},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints;if(n){var a=n||{},i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2;if(o){var v="link-point-left";t.shapeMap[v]=t.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";t.shapeMap[p]=t.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(i){var g="link-point-top";t.shapeMap[g]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-d,r:f/2||l||5}),className:g,name:g,isAnchorPoint:!0})}if(u){var y="link-point-bottom";t.shapeMap[y]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:d,r:f/2||l||5}),className:y,name:y,isAnchorPoint:!0})}}},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=_r({},t,n),i=this.getSize(e),o=i[0]/2,s=P({x:0,y:0,r:o},a);return s},update:function(e,t,n){var a=t.getContainer(),i=this.getSize(e),o=P({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(i[0])&&(o.r=i[0]/2),this.updateShape(e,t,o,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("rect",{options:{size:[100,30],style:{radius:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:P({},Qe.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,t){var n=this.getShapeStyle(e),a=t.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return t.shapeMap["".concat(this.type,"-keyShape")]=a,this.drawLinkPoints(e,t),a},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s=t.get("keyShape");e.size||(o[0]=s.attr("width")||i.width,o[1]=s.attr("height")||i.height);var u={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},f=Et({},i,s.attr(),u);f=Et(f,e.style),this.updateShape(e,t,f,!1,n),this.updateLinkPoints(e,a)}},"single-node");ro("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});t.shapeMap["ellipse-keyShape"]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2,v=h[1]/2;o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=i[0]/2,s=i[1]/2,u=P({x:0,y:0,rx:o,ry:s},a);return u},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("diamond",{options:{size:[80,80],style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var t=this.getSize(e),n=t[0],a=t[1],i=[["M",0,-a/2],["L",n/2,0],["L",0,a/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("triangle",{options:{size:40,direction:"up",style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.icon,i=a===void 0?{}:a,o=n.direction,s=this.getShapeStyle(e),u=e.direction||o,f=t.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=f;var l=i.width,c=i.height,h=i.show,d=i.offset,v=i.text;if(h)if(v)t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,g=-c/2;(u==="up"||u==="down")&&(g+=d),(u==="left"||u==="right")&&(p+=d),t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,t),f},drawLinkPoints:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.linkPoints,i=a===void 0?{}:a,o=n.direction,s=e.direction||o,u=i.top,f=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,v=Kr(i,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(f){var y=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?y=[-b,m]:s==="down"?y=[-b,-m]:s==="left"&&(y=[-b,b-m]),y&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},v),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var w=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?w=[b,m]:s==="down"?w=[b,-m]:s==="right"&&(w=[b,b-m]),w&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},v),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var x=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?x=[b-m,-m]:s==="left"?x=[b,-m]:s==="right"&&(x=[-b,-m]),x&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},v),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var E=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="down"?E=[-b+m,m]:s==="left"?E=[b,m]:s==="right"&&(E=[-b,m]),E&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},v),{x:E[0],y:E[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var t=(this.mergeStyle||this.getOptions(e)).direction,n=e.direction||t,a=this.getSize(e),i=a[0],o=i*Math.sin(1/3*Math.PI),s=i*Math.sin(1/3*Math.PI),u=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return n==="down"?u=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:n==="left"?u=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:n==="right"&&(u=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),u},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,t){var n=this.getOptions({}),a=n.linkPoints,i=n.direction,o=e.direction||i,s=t.shapeMap["link-point-left"]||t.find(function(L){return L.get("className")==="link-point-left"}),u=t.shapeMap["link-point-right"]||t.find(function(L){return L.get("className")==="link-point-right"}),f=t.shapeMap["link-point-top"]||t.find(function(L){return L.get("className")==="link-point-top"}),l=t.shapeMap["link-point-bottom"]||t.find(function(L){return L.get("className")==="link-point-bottom"}),c=a,h=s||u||f||l;h&&(c=h.attr());var d=Et({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,y=d.size/2;y||(y=d.r);var m=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},b=m.left,w=m.right,x=m.top,E=m.bottom,_=this.getSize(e),S=_[0],A={r:y,fill:v,stroke:p,lineWidth:g},M=null,C=S*Math.sin(1/3*Math.PI),I=S*Math.sin(1/3*Math.PI);o==="up"?M=[-I,C]:o==="down"?M=[-I,-C]:o==="left"&&(M=[-I,I-C]),M&&(s?!b&&b!==void 0?(s.remove(),delete t.shapeMap["link-point-left"]):s.attr(P(P({},A),{x:M[0],y:M[1]})):b&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;o==="up"?k=[I,C]:o==="down"?k=[I,-C]:o==="right"&&(k=[I,I-C]),k&&(u?!w&&w!==void 0?(u.remove(),delete t.shapeMap["link-point-right"]):u.attr(P(P({},A),{x:k[0],y:k[1]})):w&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;o==="up"?O=[I-C,-C]:o==="left"?O=[I,-C]:o==="right"&&(O=[-I,-C]),O&&(f?!x&&x!==void 0?(f.remove(),delete t.shapeMap["link-point-top"]):f.attr(P(P({},A),{x:O[0],y:O[1]})):x&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},A),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var B=null;o==="down"?B=[-I+C,C]:o==="left"?B=[I,C]:o==="right"&&(B=[-I,C]),B&&(l?!E&&E!==void 0?(l.remove(),delete t.shapeMap["link-point-bottom"]):l.attr(P(P({},A),{x:B[0],y:B[1]})):E&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},A),{x:B[0],y:B[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");ro("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Qe.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Qe.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Qe.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).preRect,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=this.getSize(e),s=o[0],u=o[1],f=t.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=f;var l=a.show,c=Kr(a,["show"]);return l&&(t.shapeMap["pre-rect"]=t.addShape("rect",{attrs:P({x:-s/2,y:-u/2,height:u},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,t),this.drawStateIcon(e,t),this.drawLinkPoints(e,t),f},drawLogoIcon:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).logoIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?t.shapeMap["rect-logo-icon"]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):t.shapeMap["rect-logo-icon"]=t.addShape("image",{attrs:P(P({},d),{x:f||-o/2+s+c,y:l||-u/2,width:s,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).stateIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?t.shapeMap["rect-state-icon"]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):t.shapeMap["rect-state-icon"]=t.addShape("image",{attrs:P(P({},d),{x:f||o/2-s+c,y:l||-u/2,width:s,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,t){var n=this.getOptions(e),a=n.labelCfg,i=a===void 0?{}:a,o=n.logoIcon,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=null,d=s.show,v=s.width,p=-c/2+i.offset;d&&(p=-c/2+v+i.offset);var g=i.style,y=f.style,m=f.paddingTop;return Ye(e.description)?(h=t.addShape("text",{attrs:P(P({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=h,t.shapeMap["rect-description"]=t.addShape("text",{attrs:P(P({},y),{x:p,y:17+(m||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=t.addShape("text",{attrs:P(P({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=h),h},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.style,i=a===void 0?{}:a,o=n.labelCfg,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=l[1],d=t.get("keyShape");d.attr(P(P({},i),{x:-c/2,y:-h/2,width:c,height:h}));var v=t.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(qe){return qe.get("className")==="rect-logo-icon"}),g=p?p.attr():{},y=Et({},g,e.logoIcon),m=y.width;m===void 0&&(m=this.options.logoIcon.width);var b=e.logoIcon?e.logoIcon.show:void 0,w=s.offset,x=-c/2+m+w;!b&&b!==void 0&&(x=-c/2+w);var E=v.shapeMap["node-label"]||v.find(function(qe){return qe.get("className")==="node-label"}),_=v.shapeMap["rect-description"]||v.find(function(qe){return qe.get("className")==="rect-description"});if(e.label)if(!E)v.shapeMap["node-label"]=v.addShape("text",{attrs:P(P({},s.style),{x,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var S=e.labelCfg?e.labelCfg.style:{},A=Et({},E.attr(),S);e.label&&(A.text=e.label),A.x=x,Ye(e.description)&&(A.y=-5),_&&(_.resetMatrix(),_.attr({x})),E.resetMatrix(),E.attr(A)}if(Ye(e.description)){var M=f.paddingTop;if(!_)v.shapeMap["rect-description"]=v.addShape("text",{attrs:P(P({},f.style),{x,y:17+(M||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var S=e.descriptionCfg?e.descriptionCfg.style:{},C=Et({},_.attr(),S);Ye(e.description)&&(C.text=e.description),C.x=x,_.resetMatrix(),_.attr(P(P({},C),{y:17+(M||0)}))}}var I=v.shapeMap["pre-rect"]||v.find(function(qe){return qe.get("className")==="pre-rect"});if(I&&!I.destroyed){var k=Et({},I.attr(),e.preRect);I.attr(P(P({},k),{x:-c/2,y:-h/2,height:h}))}if(p&&!p.destroyed)if(!b&&b!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var O=y.width,B=y.height,L=y.x,z=y.y,X=y.offset,R=Kr(y,["width","height","x","y","offset"]);p.attr(P(P({},R),{x:L||-c/2+O+X,y:z||-B/2,width:O,height:B}))}else b&&this.drawLogoIcon(e,v);var V=v.shapeMap["rect-state-icon"]||v.find(function(qe){return qe.get("className")==="rect-state-icon"}),he=V?V.attr():{},ce=Et({},he,e.stateIcon);if(V){!ce.show&&ce.show!==void 0&&(V.remove(),delete v.shapeMap["rect-state-icon"]);var le=ce.width,B=ce.height,L=ce.x,z=ce.y,ie=ce.offset,Ie=Kr(ce,["width","height","x","y","offset"]);V.attr(P(P({},Ie),{x:L||c/2-le+ie,y:z||-B/2,width:le,height:B}))}else ce.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,t){return t==="move"?e:_r({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");ro("star",{options:{size:60,style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.leftBottom,f=a.rightBottom,l=a.size,c=a.r,h=Kr(a,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(u){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var t=this.getSize(e),n=t[0],a=n*3/8,i=e.innerR||a;return Za.getStarPath(n,i)},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,t){var n=this.getOptions({}).linkPoints,a=t.shapeMap["link-point-left"]||t.find(function(C){return C.get("className")==="link-point-left"}),i=t.shapeMap["link-point-right"]||t.find(function(C){return C.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(C){return C.get("className")==="link-point-top"}),s=t.shapeMap["link-point-left-bottom"]||t.find(function(C){return C.get("className")==="link-point-left-bottom"}),u=t.shapeMap["link-point-left-bottom"]||t.find(function(C){return C.get("className")==="link-point-right-bottom"}),f=n,l=a||i||o||s||u;l&&(f=l.attr());var c=Et({},f,e.linkPoints),h=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=g.left,m=g.right,b=g.top,w=g.leftBottom,x=g.rightBottom,E=this.getSize(e),_=E[0],S={r:p,fill:h,stroke:d,lineWidth:v},A=Math.cos((18+72*0)/180*Math.PI)*_,M=Math.sin((18+72*0)/180*Math.PI)*_;i?!m&&m!==void 0?(i.remove(),delete t.shapeMap["link-point-right"]):i.attr(P(P({},S),{x:A,y:-M})):m&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos((18+72*1)/180*Math.PI)*_,M=Math.sin((18+72*1)/180*Math.PI)*_,o?!b&&b!==void 0?(o.remove(),delete t.shapeMap["link-point-top"]):o.attr(P(P({},S),{x:A,y:-M})):b&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos((18+72*2)/180*Math.PI)*_,M=Math.sin((18+72*2)/180*Math.PI)*_,a?!y&&y!==void 0?(a.remove(),delete t.shapeMap["link-point-left"]):a.attr(P(P({},S),{x:A,y:-M})):y&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos((18+72*3)/180*Math.PI)*_,M=Math.sin((18+72*3)/180*Math.PI)*_,s?!w&&w!==void 0?(s.remove(),delete t.shapeMap["link-point-left-bottom"]):s.attr(P(P({},S),{x:A,y:-M})):w&&(t.shapeMap["link-point-left-bottom"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos((18+72*4)/180*Math.PI)*_,M=Math.sin((18+72*4)/180*Math.PI)*_,u?!x&&x!==void 0?(u.remove(),delete t.shapeMap["link-point-right-bottom"]):u.attr(P(P({},S),{x:A,y:-M})):x&&(t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var R2=Za.defaultSubjectColors,Sf="fan-shape-",dO=function(e,t){var n=0,a=[];return Object.keys(e).forEach(function(i){var o=+e[i];isNaN(o)||(a.push({key:i,value:o,color:t[i]}),n+=o)}),{totalValue:n,configs:a}},vO=function(e){var t=e.attr("r"),n=.6*t,a=(t+n)/2,i=t-n;return{lineWidth:i,arcR:a}},Gg=function(e,t){var n=t.arcR,a=t.arcBegin,i=t.beginAngle,o=t.config,s=t.fanIndex,u=t.lineWidth,f=t.totalValue,l=t.drawWhole,c=l===void 0?!1:l,h=t.updateShape,d=h===void 0?void 0:h,v=o.value/f;if(v<.001)return{beginAngle:i,arcBegin:a,shape:void 0,shouldEnd:!1};var p,g,y;if(c||v>.999)p=[n,1e-4],y=1;else{var m=v*Math.PI*2;g=i+m,p=[n*Math.cos(g),-n*Math.sin(g)],y=m>Math.PI?1:0}var b={path:[["M",a[0],a[1]],["A",n,n,0,y,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||R2[s%R2.length],lineWidth:u};return d?d.attr(b):e.shapeMap["".concat(Sf).concat(s)]=e.addShape("path",{attrs:b,name:"".concat(Sf).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(Sf).concat(s)],shouldEnd:c||v>.999}},Bue=function(e,t,n){var a=e.donutAttrs,i=a===void 0?{}:a,o=e.donutColorMap,s=o===void 0?{}:o,u=Object.keys(i).length;if(i&&u>1){var f=dO(i,s),l=f.configs,c=f.totalValue;if(c){var h=vO(n),d=h.lineWidth,v=h.arcR,p=[v,0],g=0;if(u===1){Gg(t,{arcR:v,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var y=0;y=0;i--){var o=e[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,t.push(o))}return t},pO=function(e){return a1(e)},od=function(e,t){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}:e},jue=function(e,t){var n=Math.abs(e.x-t.centerX),a=Math.abs(e.y-t.centerY);return n===0&&a===0?0:n/t.width>a/t.height},zg=function(e,t,n){var a=jue(t,e);if(a===0){var i=e.centerX,o=e.centerY;return n.yt.x?i=e.maxX:n.xe.centerX?e.maxX:e.minX,y:t.y}:{x:t.x,y:t.y>e.centerY?e.maxY:e.minY}},F2=function(e,t){var n=Math.min(e.minX,t.minX),a=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY);return{centerX:(n+i)/2,centerY:(a+o)/2,minX:n,minY:a,maxX:i,maxY:o,height:o-a,width:i-n}},jg=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},$c=function(e,t){var n=e.x,a=e.y;return nt.maxX||at.maxY},Uue=function(e,t){return te.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},$ue=function(e,t){return te.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},Xue=function(e,t){return Uue(e,t.x).concat($ue(e,t.y))},Wf=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Wue=function(e,t){var n=-2,a=0;return t.forEach(function(i){i&&(e.x===i.x&&(a+=n),e.y===i.y&&(a+=n))}),a},B2=function(e,t,n,a,i){return Wf(e,t)+Wf(e,n)+Wue(e,[t,n,a,i])},gO=function(e,t,n,a,i){i===void 0&&(i=0),e.unshift(t[a]),n[a]&&n[a]!==a&&i<=100&&gO(e,t,n,n[a],i+1)},Xc=function(e,t,n,a){var i=n.x-e.x,o=n.y-e.y,s=a.x-e.x,u=a.y-e.y,f=n.x-t.x,l=n.y-t.y,c=a.x-t.x,h=a.y-t.y,d=i*u-o*s,v=f*h-l*c,p=i*l-o*f,g=s*h-u*c;return d*v<=0&&p*g<=0},Ug=function(e,t,n){if(n.width||n.height){var a=jg(n),i=a[0],o=a[1],s=a[2],u=a[3];return Xc(e,t,i,o)||Xc(e,t,i,u)||Xc(e,t,o,s)||Xc(e,t,s,u)}return!1},Vue=function(e,t,n,a){var i=[];return e.forEach(function(o){if(o!==t&&(o.x===t.x||o.y===t.y)){if(Ug(o,t,n)||Ug(o,t,a))return;i.push(o)}}),a1(i)},yO=function(){function r(){this.arr=[],this.map={},this.arr=[],this.map={}}return r.prototype._innerAdd=function(e,t){for(var n=[0,t-1];n[1]-n[0]>1;){var a=Math.floor((n[0]+n[1])/2);if(this.arr[a].value>e.value)n[1]=a;else if(this.arr[a].value=0;t--)this.map[this.arr[t].id]?e=this.arr[t].id:this.arr.splice(t,1);return e},r.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},r.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},r}(),Yue=function(e,t,n,a,i,o,s){var u,f=[],l=(u={},u[t.id]=t,u),c={},h={},d={};h[t.id]=0,d[t.id]=B2(t,n,t);var v=new yO;v.add({id:t.id,value:d[t.id]});var p={};e.forEach(function(x){p[x.id]=x});for(var g;Object.keys(l).length;){var y=v.minId(!1);if(y)g=l[y];else break;if(g===n){var m=[];return gO(m,p,c,n.id),m}delete l[g.id],v.remove(g.id),f.push(g);var b=Vue(e,g,a,i),w=function(E){E.forEach(function(_){if(f.indexOf(_)===-1){var S=_.id;l[S]||(l[S]=_);var A=d[g.id]+Wf(g,_);if(h[S]&&A>=h[S]){v.add({id:S,value:d[S]});return}c[S]=g.id,h[S]=A,d[S]=h[S]+B2(_,n,t,o,s),v.add({id:S,value:d[S]})}})};w(b)}return[t,n]},que=function(e,t,n){return!(e.x===t.x&&t.x===n.x||e.y===t.y&&t.y===n.y)},Hue=function(e,t,n,a){var i=Wf(e,t),o=Wf(n,t);i=0;o--){var s=e[o];if(s.x===n.x?a.push(s):(a=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),a.length>2){var u=e.indexOf(a[1]);u>-1&&e.splice(u,1);continue}if(i.length>2){var u=e.indexOf(i[1]);u>-1&&e.splice(u,1)}}return e},Kue=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Que=function(e,t,n,a,i){return pO(mO(e,t,n,a,i.offset))},Jue={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Kue,fallbackRoute:Que},vi=function(e,t){var n=Math.round(Math.abs(e/t)),a=e<0?-1:1;return n<0?0:a*n},efe=function(e,t,n){var a={};return e.forEach(function(i){if(i)for(var o=od(i.getBBox(),n),s=vi(o.minX,t);s<=vi(o.maxX,t);s+=1)for(var u=vi(o.minY,t);u<=vi(o.maxY,t);u+=1)a["".concat(s,"|||").concat(u)]=!0}),a},f0=function(e,t){var n=t.x-e.x,a=t.y-e.y;return n||a?Math.atan2(a,n):0},z2=function(e,t){var n=Math.abs(e-t);return n>Math.PI?2*Math.PI-n:n},j2=function(e,t,n){for(var a=1/0,i=0,o=t.length;if.minX&&t.xf.minY&&t.y0&&E>0;){var B=b.minId((E+1)%30===0);if(B)_=v[B];else break;if(O["".concat(_.x,"|||").concat(_.y)])return tfe(_,g,l,t,e,c,u);delete v[_.id],b.remove(_.id),p[_.id]=!0;for(var w=0;wo.maxAllowedDirectionChange)&&!f[L])){v[L]||(v[L]=A);var z=s[I];M=o.distFunc(_,A)+(isNaN(z)?u:z),C=y[_.id]+M;var X=y[L];X&&C>=X||(g[L]=_,y[L]=C,m[L]=C+j2(A,d,o.distFunc),b.add({id:L,value:m[L]}))}}E-=1}return o.fallbackRoute(e,t,n,a,o)};_U("polyline",{options:{color:Qe.defaultEdge.color,size:Qe.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Qe.defaultEdge.style.stroke,lineAppendWidth:Qe.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Qe.edgeLabel.style.fill,fontSize:Qe.edgeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:P({},Qe.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,t){var n=this.getShapeStyle(e);n.radius===0&&delete n.radius;var a=t.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return t.shapeMap["edge-shape"]=a,a},getShapeStyle:function(e){var t=this.options.style,n={stroke:e.color},a=Et({},t,n,e.style);e=this.getPathPoints(e),this.radius=a.radius,this.offset=a.offset;var i=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),u=[i];s&&(u=u.concat(s)),u.push(o);var f=e.sourceNode,l=e.targetNode,c=a.radius,h=this.options.routeCfg,d=Et({},h,e.routeCfg);d.offset=a.offset;var v=this.getPath(u,f,l,c,d,!s);(bt(v)&&v.length<=1||Ye(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=Et({},Qe.defaultEdge.style,a,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,t){var n=t.getContainer();if(t.isVisible()){var a={stroke:e.color},i=n.shapeMap["edge-shape"]||n.find(function(w){return w.get("className")==="edge-shape"})||t.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,u=e.endPoint,f=this.getControlPoints(e),l=[s];f&&(l=l.concat(f)),l.push(u);var c=i.attr(),h=Et({},a,c,e.style),d=e.sourceNode,v=e.targetNode,p=h.radius,g=this.options.routeCfg,y=Et({},g,e.routeCfg);y.offset=h.offset;var m=this.getPath(l,d,v,p,y,!f);(bt(m)&&m.length<=1||Ye(m)&&m.indexOf("L")===-1)&&(m="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(m="M0 0, L0 0"),c.endArrow&&h.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&h.startArrow===!1&&(e.style.startArrow={path:""});var b=Et(a,i.attr(),{lineWidth:o,path:m},e.style);i&&i.attr(b)}},getPath:function(e,t,n,a,i,o){var s=i.offset,u=i.obstacles,f=i.simple;if(!s||e.length>2||o===!1){if(a)return G2(e,a);var l=[];return _e(e,function(v,p){p===0?l.push(["M",v.x,v.y]):l.push(["L",v.x,v.y])}),l}f!==!1&&!(u!=null&&u.length)&&(f=!0);var c=f?mO(e[e.length-1],e[0],n,t,s):rfe(e[0],e[e.length-1],t,n,i);if(!c||!c.length)return"M0 0, L0 0";if(a){var h=G2(c,a);return h}c=Zue(c);var d=Za.pointsToPolygon(c);return d}},"single-edge");var $2=so.cloneEvent,X2=so.isNaN,W2=Math.abs,nfe=10,afe=["shift","ctrl","alt","control"];const ife={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var t=this.origin,n=+e.clientX,a=+e.clientY;if(!(X2(n)||X2(a))){var i=n-t.x,o=a-t.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(i=0),this.origin={x:n,y:a};var s=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l=s*l,c=u*c),(f.minX<=s+l&&f.minX+i>s+l||f.maxX+l>=0&&f.maxX+l+i<0)&&(i=0),(f.minY<=u+c&&f.minY+o>u+c||f.maxY+c>=0&&f.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(e){var t=this,n=e.originalEvent.touches,a=n[0],i=n[1];a&&i||(e.preventDefault(),this.mousedown=!0,t.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){this.mousedown&&(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this,n=e.originalEvent;if(!(n&&e.name!=="touchstart"&&n.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&this.shouldBegin(e,this)&&!t.keydown&&this.allowDrag(e)){if(t.origin={x:e.clientX,y:e.clientY},t.dragging=!1,this.enableOptimize){for(var a=this.graph,i=a.getEdges(),o=0,s=i.length;ou)for(var d=a.getNodes(),v=0,p=d.length;v-1?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var t,n,a=e.target,i=a&&a.isCanvas&&a.isCanvas();if(Vf(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(gn(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,u=o.edge,f=o.combo,l=(n=(t=e.item)===null||t===void 0?void 0:t.getType)===null||n===void 0?void 0:n.call(t);if(!s&&l==="node"||!u&&l==="edge"||!f&&l==="combo")return!1}return!0}},ofe={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var t=e.getType();return t==="combo"},onTouchStart:function(e){if(e.item){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,t.onDragStart(e)}},onTouchMove:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i){t.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var t,n;if(((n=(t=e.item)===null||t===void 0?void 0:t.getType)===null||n===void 0?void 0:n.call(t))!=="node"){this.onDragEnd();return}this.mousedown&&(this.dragstart?this.onDrag(P(P({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(P(P({},e),this.mousedown),this)){var n=this.mousedown,a=n.item,i=n.target;if(!(!a||a.destroyed||a.hasLocked())){var o=a.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(a),i){var s=i.get("isAnchorPoint");if(s)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),l=a.get("id"),c=f.filter(function(d){var v=d.get("id");return l===v});if(c.length===0?this.targets.push(a):f.length>1?f.forEach(function(d){var v=d.hasLocked();v||t.targets.push(d)}):this.targets.push(a),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,y=v.id;h.push({x:p,y:g,id:y})}),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){p.isVisible()&&(t.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var t=this;if(!(!this.mousedown||!this.origin)&&this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(a){t.update(a,e);var i=a.getModel().comboId;i&&(n[i]=t.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var t=this,n;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(n=this.cachedCaptureItems)===null||n===void 0||n.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(u){t.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var a=this.graph;if(a.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){i.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),u=s.x,f=s.y,l=s.id;i.after.nodes.push({x:u,y:f,id:l})}),a.pushStack("update",rr(i))}a.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var t=e.item;if(this.currentShouldEnd=this.shouldEnd(e,t,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(t))){var n=this.graph;if(this.comboActiveState&&n.setItemState(t,this.comboActiveState,!1),this.targetCombo=t,this.onlyChangeComboSize)n.updateCombos();else{var a=t.getModel();this.targets.map(function(i){var o=i.getModel();o.comboId!==a.id&&n.updateComboTree(i,a.id)}),n.updateCombo(t)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var t=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(n){var a=n.getModel();a.comboId&&t.updateComboTree(n)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var t=this,n=e.item,a=t.graph,i=n.getModel().comboId,o=i?a.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var s=a.findById(i);t.comboActiveState&&a.setItemState(s,t.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();i!==f.comboId&&a.updateComboTree(u,i)}),a.updateCombo(s)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&a.updateComboTree(u)});a.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(e){var t=e.item;if(this.validationCombo(t)){var n=this.graph;this.comboActiveState&&n.setItemState(t,this.comboActiveState,!0)}},onDragLeave:function(e){var t=e.item;if(this.validationCombo(t)){var n=this.graph;this.comboActiveState&&n.setItemState(t,this.comboActiveState,!1)}},updatePositions:function(e,t){var n=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):t||this.targets.map(function(a){return n.update(a,e)}):this.targets.map(function(a){return n.update(a,e,t)}))},update:function(e,t,n){var a=this.origin,i=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var s=t.x-a.x+this.point[o].x,u=t.y-a.y+this.point[o].y;n&&(s+=a.x-t.x,u+=a.y-t.y);var f={x:s,y:u};this.get("updateEdge")?this.graph.updateItem(e,f,!1):e.updatePosition(f)},debounceUpdate:Hg(function(r){var e=r.targets,t=r.graph,n=r.point,a=r.origin,i=r.evt,o=r.updateEdge,s=r.onlyChangeComboSize,u=r.updateParentCombos;e.map(function(f){var l=f.get("model"),c=f.get("id");n[c]||(n[c]={x:l.x||0,y:l.y||0});var h=i.x-a.x+n[c].x,d=i.y-a.y+n[c].y,v={x:h,y:d};o?t.updateItem(f,v,!1):f.updatePosition(v)}),s&&u(t,e)},50,!0),updateDelegate:function(e){var t=this.graph;if(this.delegateRect){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:h,y:d})}else{var n=t.get("group"),a=_r({},wf.delegateStyle,this.delegateStyle),i=this.calculationGroupPosition(e),o=i.x,s=i.y,u=i.width,f=i.height,l=i.minX,c=i.minY;this.originPoint={x:o,y:s,width:u,height:f,minX:l,minY:c},this.delegateRect=n.addShape("rect",{attrs:P({width:u,height:f,x:o,y:s},a),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var t=this.targets;t.length===0&&t.push(e.item);for(var n=1/0,a=-1/0,i=1/0,o=-1/0,s=0;sa&&(a=h),d>o&&(o=d)}var v=Math.floor(n),p=Math.floor(i),g=Math.ceil(a)-Math.floor(n),y=Math.ceil(o)-Math.floor(i);return{x:v,y:p,width:g,height:y,minX:n,minY:i}},updateParentCombos:function(e,t){var n=e||this.graph,a=t||this.targets,i={};a==null||a.forEach(function(o){var s=o.getModel().comboId;s&&(i[s]=n.findById(s))}),Object.values(i).forEach(function(o){o&&n.updateCombo(o)})}};var Wc=null;const sfe={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.setAllItemStates(e)},clearOnTouchStart:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var t=this,n=this.shouldClearStatusOnSecond;n&&(Wc=null),this.timer=setTimeout(function(){t.throttleClearActiveState(e,t)},50)},throttleSetAllItemStates:xh(function(r,e){var t=r.item,n=e.graph;if(!(!n||n.destroyed)&&(e.item=t,!!e.shouldUpdate(r.item,{event:r,action:"activate"},e))){var a=e.shouldClearStatusOnSecond,i=t.getModel().id;if(Wc===i&&a){e.throttleClearActiveState(r,e),Wc=null;return}for(var o=e.activeState,s=e.inactiveState,u=n.getNodes(),f=n.getCombos(),l=n.getEdges(),c=n.get("vedges"),h=u.length,d=f.length,v=l.length,p=c.length,g=e.inactiveItems||{},y=e.activeItems||{},m=0;m-1||(this.trigger=q2,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var t=e.item,n=this.brush,a=this.selectOnCombo,i=(t==null?void 0:t.getType())==="combo";i&&!a||!i&&t||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||this.updateBrush(e))},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,t=e.graph,n=e.selectedState,a=t.findAllByState("node",n),i=t.findAllByState("edge",n),o=t.findAllByState("combo",n);a.forEach(function(s){return t.setItemState(s,n,!1)}),i.forEach(function(s){return t.setItemState(s,n,!1)}),o.forEach(function(s){return t.setItemState(s,n,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,t,n,a,i){var o=e.getBBox();return o.centerX>=t&&o.centerX<=n&&o.centerY>=a&&o.centerY<=i},getSelectedNodes:function(e){var t=this,n=this,a=n.graph,i=n.originPoint,o=n.shouldUpdate,s=n.isBBoxCenterInRect,u=this.selectedState,f={x:e.x,y:e.y},l=a.getPointByCanvas(i.x,i.y),c=Vc(f.x,l.x),h=V2(f.x,l.x),d=Vc(f.y,l.y),v=V2(f.y,l.y),p=[],g=[];a.getNodes().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",t)){p.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}});var y=[];this.includeEdges&&p.forEach(function(b){var w=b.getOutEdges();w.forEach(function(x){if(x.isVisible()){var E=x.getModel(),_=E.source,S=E.target;g.includes(_)&&g.includes(S)&&o(x,"select",t)&&(y.push(x),a.setItemState(x,t.selectedState,!0))}})});var m=[];this.includeCombos&&a.getCombos().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",t)){m.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}}),this.selectedEdges=y,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,y,m),a.emit("nodeselectchange",{selectedItems:{nodes:p,edges:y,combos:m},select:!0})},createBrush:function(){var e=this,t=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(e){var t=this.originPoint;this.brush.attr({width:Y2(e.canvasX-t.x),height:Y2(e.canvasY-t.y),x:Vc(e.canvasX,t.x),y:Vc(e.canvasY,t.y)})},onKeyDown:function(e){var t=e.key;if(t){var n=this.trigger.toLowerCase(),a=t.toLowerCase();a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var H2="shift",lfe=["shift","ctrl","alt","control"];const cfe={getDefaultCfg:function(){return{multiple:!0,trigger:H2,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return lfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=H2,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var t=this,n=e.item;if(!(!n||n.destroyed)){var a=n.getType(),i=t.graph,o=t.keydown,s=t.multiple,u=t.shouldUpdate,f=t.shouldBegin;if(f(e,t)){if(!o||!s){var l=i.findAllByState("node",t.selectedState).concat(i.findAllByState("edge",t.selectedState)).concat(i.findAllByState("combo",t.selectedState));_e(l,function(p){p!==n&&i.setItemState(p,t.selectedState,!1)})}var c=function(){switch(a){case"node":return t.selectNode;case"edge":return t.selectEdge;case"combo":return t.selectCombo;default:return!1}}();if(!c){var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:h,edges:d,combos:v},select:!1});return}if(n.hasState(t.selectedState)){u(e,t)&&i.setItemState(n,t.selectedState,!1);var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!1})}else{u(e,t)&&i.setItemState(n,t.selectedState,!0);var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var t=this,n=this,a=n.graph,i=n.shouldBegin;if(i(e,this)){var o=a.findAllByState("node",this.selectedState);_e(o,function(f){a.setItemState(f,t.selectedState,!1)});var s=a.findAllByState("edge",this.selectedState);_e(s,function(f){a.setItemState(f,t.selectedState,!1)});var u=a.findAllByState("combo",this.selectedState);_e(u,function(f){a.setItemState(f,t.selectedState,!1)}),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var t=this,n=e.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||n.toLowerCase()==="control"?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var hfe=eo,Yc=.05;const dfe={getDefaultCfg:function(){return this.isFireFox=fO()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var t=e.originalEvent.touches,n=t[0],a=t[1];e.preventDefault(),a&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,a&&(this.endPoint={pageX:a.pageX,pageY:a.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(this.moveable){e.preventDefault();var t=e.originalEvent.touches,n=t[0],a=t[1];if(a){this.endPoint||(this.endPoint={pageX:a.pageX,pageY:a.pageY});var i=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=i({x:n.pageX,y:n.pageY},{x:a.pageX,y:a.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>f||s0||e.wheelDelta<0?l=1-Yc*u:l=1/(1-Yc*u):e.wheelDelta<0?l=1-Yc*u:l=1/(1-Yc*u),c=f*l;var h=this.get("minZoom")||a.get("minZoom"),d=this.get("maxZoom")||a.get("maxZoom");c>d?c=d:ca/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),v="".concat(c,"px");Yu(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var t=e.get("el");t.style.position="relative";var n=rg('
'));return t.parentNode.appendChild(n),Yu(n,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},vfe=P({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bO),pfe=P({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bO);var Z2="click",gfe=["click","dblclick"];const yfe={getDefaultCfg:function(){return{trigger:Z2,onChange:function(){}}},getEvents:function(){var e,t;return gfe.includes(this.trigger)?t=this.trigger:(t=Z2,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["node:".concat(t)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var t=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){t.toggle(e),clearTimeout(t.timer),t.timer=0},200)}else this.toggle(e)},toggle:function(e){var t=e.item;if(t){var n=this.graph.findDataById(t.get("id"));if(n){var a=n.children;if(!(!a||a.length===0)){var i=!n.collapsed;this.shouldBegin(e,i,this)&&(n.collapsed=i,t.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:e.item,collapsed:i}),this.shouldUpdate(e,i,this)&&(this.onChange(t,i,this),this.graph.layout()))}}}}};var mfe=so.calculationItemsBBox,wO=function(e,t){if(t(e)!==!1&&e){var n=e.get("combos");if(n.length===0)return!1;_e(n,function(a){wO(a,t)})}};const bfe={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var t=e.item;if(!t||t.destroyed||!this.shouldUpdate(e,this))return!1;var n=t.getType();return n==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var t=this,n=this.graph,a=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!a.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=a.get("id"),s=i.filter(function(f){var l=f.get("id");return o===l});s.length===0?this.targets.push(a):this.targets=i.filter(function(f){return!f.hasLocked()});var u=[];this.targets.forEach(function(f){var l=f.getModel(),c=l.x,h=l.y,d=l.id;u.push({x:c,y:h,id:d})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var l=f.getModel();if(l.parentId){var c=n.findById(l.parentId);c&&n.setItemState(c,t.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],wO(a,function(f){if(f.destroyed)return!1;var l=f.getModel();return t.currentItemChildCombos.push(l.id),!0})}},onDrag:function(e){var t=this;if(this.origin&&this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var n=this.graph,a=e.item,i=a.getModel(),o=n.getCombos(),s=a.getBBox(),u=s.centerX,f=s.centerY,l=s.width,c=o.filter(function(h){var d=h.getModel();return i.parentId,d.id!==i.id&&!t.currentItemChildCombos.includes(d.id)});c.map(function(h){var d=h.getBBox(),v=d.centerX,p=d.centerY,g=d.width,y=u-v,m=f-p,b=2*Math.sqrt(y*y+m*m);l+g-b>.8*l?n.setItemState(h,t.activeState,!0):n.setItemState(h,t.activeState,!1)})}_e(this.targets,function(h){t.updateCombo(h,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,t){var n=this;(this.enableDelegate||t)&&_e(this.targets,function(a){n.updateCombo(a,e,t)})},onDrop:function(e){var t=this,n=e.item;if(this.currentShouldEnd=this.shouldEnd(e,n,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!n||!this.targets||n.destroyed)){var a=this.graph,i=n.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==i.id?(t.activeState&&a.setItemState(n,t.activeState,!1),t.onlyChangeComboSize?a.updateCombo(o):a.updateComboTree(o,i.id,!1)):a.updateCombo(n)}),this.end(n,e),this.endComparison=!0}},onNodeDrop:function(e){var t=this;if(!(!this.targets||this.targets.length===0)){var n=this.graph,a=e.item,i=a.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(i){if(this.activeState){var u=n.findById(i);n.setItemState(u,this.activeState,!1)}this.targets.map(function(f){t.onlyChangeComboSize?n.updateCombo(f):i!==f.getID()&&(s=n.findById(i),i!==f.getModel().parentId&&n.updateComboTree(f,i,!1))})}else this.targets.map(function(f){if(t.onlyChangeComboSize)n.updateCombo(f);else{var l=f.getModel();l.comboId&&n.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(this.origin&&this.validationCombo(e)){var t=e.item,n=this.graph;this.activeState&&n.setItemState(t,this.activeState,!0)}},onDragLeave:function(e){if(this.origin&&this.validationCombo(e)){var t=e.item,n=this.graph;this.activeState&&n.setItemState(t,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var t=e.item;this.currentShouldEnd&&this.updatePositions(e);var n=this.getParentCombo(t.getModel().parentId),a=this.graph;n&&this.activeState&&a.setItemState(n,this.activeState,!1),this.end(void 0,e)}},end:function(e,t){var n=this;if(this.origin){var a=this.graph;if(this.delegateShape){var i=a.get("delegateGroup");i.clear(),this.delegateShape=null}if(e&&this.activeState&&a.setItemState(e,this.activeState,!1),!e){var o=a.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!n.onlyChangeComboSize)a.updateComboTree(u,void 0,o);else{a.updateCombo(u);var f=u.getModel(),l=f.x,c=f.y,h=f.id;s.after.combos.push({x:l,y:c,id:h}),a.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,t,n){var a=this;if(n===void 0&&(n={}),t(e,n)!==!1&&e){var i=e.get("combos");_e(i,function(s){a.traverse(s,t,n)});var o=e.get("nodes");_e(o,function(s){a.traverse(s,t,n)})}},updateCombo:function(e,t,n){this.updateSingleItem(e,t,n);var a={};this.traverse(e,function(i,o){return i.destroyed?!1:(i.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},a),Object.values(a).forEach(function(i){return i.refresh()})},updateSingleItem:function(e,t,n){var a=this.origin,i=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var u=t.x-a.x+this.point[s].x,f=t.y-a.y+this.point[s].y;n&&(u+=a.x-t.x,f+=a.y-t.y),i.updateItem(e,{x:u,y:f},!1)},getParentCombo:function(e){var t=this.graph;if(e){var n=t.findById(e);if(n)return n}},updateDelegate:function(e){var t=this.graph;if(this.delegateShape){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:h,y:d})}else{var n=t.get("delegateGroup"),a=null;this.targets.length>1?a=mfe(this.targets):a=this.targets[0].getBBox();var i=a.x,o=a.y,s=a.width,u=a.height,f=a.minX,l=a.minY;this.originPoint={x:i,y:o,width:s,height:u,minX:f,minY:l};var c=P(P({},wf.delegateStyle),this.delegateStyle);this.delegateShape=n.addShape("rect",{attrs:P({width:a.width,height:a.height,x:a.x,y:a.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,t=e.graph,n=e.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().parentId;o&&(a[o]=t.findById(o))}),Object.values(a).forEach(function(i){i&&t.updateCombo(i)})}};var K2="dblclick",wfe=["click","dblclick"];const xfe={getDefaultCfg:function(){return{trigger:K2,relayout:!0}},getEvents:function(){var e,t;return wfe.includes(this.trigger)?t=this.trigger:(t=K2,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["combo:".concat(t)]="onComboClick",e},onComboClick:function(e){var t=e.item,n=this,a=n.graph,i=n.relayout;if(!(!t||t.destroyed||t.getType()!=="combo")){var o=t.getModel(),s=o.id;s&&(a.collapseExpandCombo(s),i&&a.get("layout")?a.layout():a.refreshPositions())}}};var Efe=so.isPolygonsIntersect,_fe=so.pathToPoints,Q2="shift",Sfe=["drag","shift","ctrl","alt","control"],Mfe=function(e,t){var n,a=e.getKeyShape();if(e.get("type")==="path")n=_fe(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return Efe(t,n)};const Afe={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:Q2,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Sfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Q2,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var t=this.lasso,n=e.item;n||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),t||(t=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),t.show())},onDragMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e)))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,t=[];return e.length&&(e.forEach(function(n,a){a===0?t.push(["M",n.x,n.y]):t.push(["L",n.x,n.y])}),t.push(["L",e[0].x,e[0].y])),t},clearStates:function(e){e===void 0&&(e="canvas:click");var t=this,n=t.graph,a=t.selectedState,i=t.shouldDeselect,o=n.findAllByState("node",a),s=n.findAllByState("edge",a);(!i||i({action:e,nodes:o,edges:s}))&&(o.forEach(function(u){return n.setItemState(u,a,!1)}),s.forEach(function(u){return n.setItemState(u,a,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,t=this,n=t.graph,a=t.shouldUpdate,i=this.points.map(function(l){return[n.getCanvasByPoint(l.x,l.y).x,n.getCanvasByPoint(l.x,l.y).y]}),o=this.selectedState,s=[],u=[];n.getNodes().forEach(function(l){if(l.isVisible()&&Mfe(l,i)&&a(l,"select",e)){s.push(l);var c=l.getModel();u.push(c.id),n.setItemState(l,o,!0)}});var f=[];this.includeEdges&&s.forEach(function(l){var c=l.getOutEdges();c.forEach(function(h){if(h.isVisible()){var d=h.getModel(),v=d.source,p=d.target;u.includes(v)&&u.includes(p)&&a(h,"select",e)&&(f.push(h),n.setItemState(h,e.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=s,this.onSelect&&this.onSelect(s,f),n.emit("nodeselectchange",{selectedItems:{nodes:s,edges:f},select:!0})},createLasso:function(){var e=this,t=e.graph.get("delegateGroup").addShape("path",{attrs:P({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(e){var t=this;this.lasso.attr({path:t.getLassoPath()})},onKeyDown:function(e){var t=e.key;t&&(t.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var J2="click",Cfe=["click","drag"],eS=void 0,Tfe=["shift","ctrl","control","alt","meta",void 0];const Ife={getDefaultCfg:function(){return{trigger:J2,key:eS,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;Cfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=J2,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&Tfe.indexOf(e.key.toLowerCase())===-1&&(e.trigger=eS,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined"));var t;return e.trigger==="drag"?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(e){var t=this;if(!(t.key&&!t.keydown)){var n=e.item;(!n||n.getID()===t.source||n.getType()!=="node")&&t.cancelCreating({item:t.edge,x:e.x,y:e.y})}},onClick:function(e){var t=this;if(!(t.key&&!t.keydown)){var n=e.item,a=t.graph,i=n.getModel(),o=t.getEdgeConfig;if(t.addingEdge&&t.edge){if(!t.shouldEnd(e,t))return;var s=void 0;o&&Tr(o)?s=o({source:t.source,target:i.id},t):s=t.edgeConfig;var u=P({target:i.id},s);if(t.source===i.id&&(u.type="loop"),a.emit("beforecreateedge",{}),a.updateItem(t.edge,u,!1),a.get("enabledStack")){var f=P(P({},t.edge.getModel()),{itemType:"edge"}),l={};l.edges=[f],a.pushStack("add",{before:{},after:l})}a.emit("aftercreateedge",{edge:t.edge}),t.edge.getKeyShape().set("capture",!0),t.edge=null,t.addingEdge=!1}else{if(!t.shouldBegin(e,t))return;var s=void 0;o&&Tr(o)?s=o({source:i.id,target:i.id},t):s=t.edgeConfig,t.edge=a.addItem("edge",P({source:i.id,target:i.id},s),!1),t.source=i.id,t.addingEdge=!0,t.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var t=this;if(!(t.key&&!t.keydown)){t.edge&&t.edge.destroyed&&t.cancelCreating({item:t.edge});var n={x:e.x,y:e.y};if(!t.graph.findById(t.source)){t.addingEdge=!1;return}t.addingEdge&&t.edge&&t.graph.updateItem(t.edge,{target:n},!1)}},cancelCreating:function(e){var t,n,a=this;if(!(a.key&&!a.keydown)){var i=a.graph,o=e.item;if(a.addingEdge&&(a.edge===o||!((n=(t=e.target)===null||t===void 0?void 0:t.isCanvas)===null||n===void 0)&&n.call(t))){a.edge&&!a.edge.destroyed&&i.removeItem(a.edge,!1),a.edge=null,a.addingEdge=!1;return}}},onKeyDown:function(e){var t=this,n=e.key;n&&(n.toLowerCase()===t.key.toLowerCase()?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var tS="ctrl",kfe=["shift","ctrl","alt","control"],Nfe="1";const Ofe={getDefaultCfg:function(){return{trigger:tS,combinedKey:Nfe,functionName:"fitView",functionParams:[]}},getEvents:function(){return kfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=tS,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var t=e.key;if(t){var n=this.trigger.toLowerCase(),a=t.toLowerCase();this.triggerKeydown||(a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(a===o||a==="control"&&o==="ctrl"||a==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var Lfe=["shift","ctrl","alt","control","meta"];const Dfe={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||Lfe.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var t=this;if(this.allowDrag(e)){var n=this.graph,a=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];a.includes("control")&&a.push("ctrl");var i=a.some(function(V){return e["".concat(V,"Key")]});if(i){var o=n.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),u=n.getZoom();e.wheelDelta>0?u=u+u*.05:u=u-u*.05,n.zoomTo(u,{x:s.x,y:s.y})}else{var f=e.deltaX||e.movementX,l=e.deltaY||e.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=-e.wheelDelta*125/3);var c=this.graph.get("width"),h=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=h*p);var g=d.minX,y=d.maxX,m=d.minY,b=d.maxY;f>0?y<-v?f=0:y-f<-v&&(f=y+v):f<0&&(g>c+v?f=0:g-f>c+v&&(f=g-(c+v))),l>0?b<-p?l=0:b-l<-p&&(l=b+p):l<0&&(m>h+p?l=0:m-l>h+p&&(l=m-(h+p))),this.get("direction")==="x"?l=0:this.get("direction")==="y"&&(f=0),n.translate(-f,-l)}e.preventDefault();var w=this.get("enableOptimize");if(w){var x=this.get("optimizeZoom"),E=this.get("optimized"),_=n.getNodes(),S=n.getEdges(),A=_.length,M=S.length;if(!E){for(var C=0;C{const v=d.getModel();t.updateItem(d,{style:{fill:i(),stroke:l(v.os),lineWidth:2,radius:8,shadowColor:a()?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:o(),fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:v.online?"#22c55e":"#ef4444",stroke:i(),lineWidth:2}}})}),t.getEdges().forEach(d=>{const v=d.getModel(),g=String(v.id).startsWith("rel-")?"#f97316":"#3b82f6";t.updateItem(d,{labelCfg:{style:{fill:g,fontSize:11,fontWeight:500,background:{fill:i(),padding:[2,4],radius:4}}}})}),t.paint())}sP(async()=>{const[h,d,v]=await Promise.all([uP(),fP(),lP()]),p=h.data,g=d.data,y=v.data,m={};p.forEach(A=>m[A.id]=A);const b=a(),w=i(),x=o(),E=p.map(A=>({id:String(A.id),label:A.hostname,online:A.is_online,os:A.os_type,style:{fill:w,stroke:l(A.os_type),lineWidth:2,radius:8,shadowColor:b?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:x,fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:A.is_online?"#22c55e":"#ef4444",stroke:w,lineWidth:2}}})),_=[];y.forEach(A=>{!m[A.source_machine_id]||!m[A.target_machine_id]||_.push({id:`rel-${A.id}`,source:String(A.source_machine_id),target:String(A.target_machine_id),label:c(A),style:{stroke:"#f97316",lineDash:[4,2],lineWidth:1.5,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#f97316"}},labelCfg:{style:{fill:"#f97316",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})}),g.forEach(A=>{A.target_machine_id&&m[A.target_machine_id]&&_.push({id:`svc-${A.id}`,source:String(A.machine_id),target:String(A.target_machine_id),label:A.name,style:{stroke:"#3b82f6",lineWidth:2,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#3b82f6"}},labelCfg:{style:{fill:"#3b82f6",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})});const S=document.getElementById("topo");S.style.background=s(),t=new cO({container:"topo",width:S.clientWidth,height:S.clientHeight,layout:{type:"force",preventOverlap:!0,linkDistance:140,nodeStrength:-80,edgeStrength:.2},defaultNode:{type:"rect",size:[110,40]},defaultEdge:{type:"line",style:{endArrow:!0}},modes:{default:["drag-node","drag-canvas","zoom-canvas"]},fitView:!0,fitViewPadding:20}),t.data({nodes:E,edges:_}),t.render(),t.on("node:click",A=>{const M=A.item.getModel().id;f(M)}),window.addEventListener("resize",()=>{const A=document.getElementById("topo");A&&t&&(t.changeSize(A.clientWidth,A.clientHeight),t.fitView())}),n=new MutationObserver(()=>{u()}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),cP(()=>{n&&n.disconnect(),t&&(t.destroy(),t=null)});function f(h){if(!t)return;const d=t.getEdges();d.forEach(v=>{const p=v.getModel();p.source===h||p.target===h?(t.setItemState(v,"active",!0),v.update({style:{opacity:1}})):(t.setItemState(v,"inactive",!0),v.update({style:{opacity:.15}}))}),setTimeout(()=>{d.forEach(v=>{t.clearItemStates(v),v.update({style:{opacity:1}})})},2e3)}function l(h){switch(h){case"Linux":return"#3b82f6";case"Windows":return"#06b6d4";case"macOS":return"#a855f7";default:return"#9ca3af"}}function c(h){const v={port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[h.relation_type]||h.relation_type;return h.source_port?`${v} (${h.source_port})`:v}return(h,d)=>{const v=bP("el-button");return Hb(),hP("div",Rfe,[Zl("div",Ffe,[d[2]||(d[2]=Zl("div",null,[Zl("div",{class:"page-title"},"拓扑图"),Zl("div",{class:"page-subtitle"},"展示机器之间的服务指向和关联关系")],-1)),Zb(e)?(Hb(),dP(v,{key:0,type:"primary",icon:Zb(pP),onClick:d[0]||(d[0]=p=>h.$router.push("/machines"))},{default:vP(()=>[...d[1]||(d[1]=[wP("添加机器",-1)])]),_:1},8,["icon"])):gP("",!0)]),d[3]||(d[3]=yP('
在线
离线
服务指向
关联关系
',1))])}}},jfe=xP(Bfe,[["__scopeId","data-v-1d46321d"]]);export{jfe as default}; diff --git a/web/dist/assets/Topology-BoCWnE97.js b/web/dist/assets/Topology-BoCWnE97.js new file mode 100644 index 0000000..9efd641 --- /dev/null +++ b/web/dist/assets/Topology-BoCWnE97.js @@ -0,0 +1,467 @@ +import{ak as Ka,al as bi,am as me,k as EP,L as _P,an as SP,a3 as MP,K as AP,o as iw,c as CP,a as rc,e as ow,m as TP,w as IP,M as kP,n as NP,ao as OP,G as LP,d as DP,h as PP}from"./index-BFjouPFU.js";import{_ as RP}from"./_plugin-vue_export-helper-DlAUqK2U.js";function FP(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const ty=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ea},get Circle(){return b9},get Ellipse(){return w9},get Image(){return x9},get Line(){return E9},get Marker(){return S9},get Path(){return Ky},get Polygon(){return N9},get Polyline(){return O9},get Rect(){return P9},get Text(){return R9}},Symbol.toStringTag,{value:"Module"})),ry=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return z9},get Dom(){return j9},get Ellipse(){return U9},get Image(){return $9},get Line(){return X9},get Marker(){return W9},get Path(){return V9},get Polygon(){return Y9},get Polyline(){return q9},get Rect(){return Z9},get Text(){return e7}},Symbol.toStringTag,{value:"Module"}));var b0=function(t,e){return b0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},b0(t,e)};function jt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");b0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var P=function(){return P=Object.assign||function(e){for(var r,n=1,a=arguments.length;n=0;s--)(o=t[s])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function vS(t,e){return function(r,n){e(r,n,t)}}function pS(t,e,r,n,a,i){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",f=!e&&t?n.static?t:t.prototype:null,l=e||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),c,h=!1,d=r.length-1;d>=0;d--){var v={};for(var p in n)v[p]=p==="access"?{}:n[p];for(var p in n.access)v.access[p]=n.access[p];v.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(y||null))};var g=(0,r[d])(s==="accessor"?{get:l.get,set:l.set}:l[u],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(l.get=c),(c=o(g.set))&&(l.set=c),(c=o(g.init))&&a.unshift(c)}else(c=o(g))&&(s==="field"?a.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),h=!0}function gS(t,e,r){for(var n=arguments.length>2,a=0;a0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ny(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function xS(){for(var t=[],e=0;e1||u(d,p)})},v&&(a[d]=v(a[d])))}function u(d,v){try{f(n[d](v))}catch(p){h(i[0][3],p)}}function f(d){d.value instanceof Hs?Promise.resolve(d.value.v).then(l,c):h(i[0][2],d)}function l(d){u("next",d)}function c(d){u("throw",d)}function h(d,v){d(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function _S(t){var e,r;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=t[a]?function(o){return(r=!r)?{value:Hs(t[a](o)),done:!1}:i?i(o):o}:i}}function SS(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof _h=="function"?_h(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(s,u){o=t[i](o),a(s,u,o.done,o.value)})}}function a(i,o,s,u){Promise.resolve(u).then(function(f){i({value:f,done:s})},o)}}function MS(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var BP=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},w0=function(t){return w0=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},w0(t)};function AS(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=w0(t),n=0;n-1:!1},DS=function(t,e){if(!On(t))return t;for(var r=[],n=0;n-1;)HP.call(t,i,1);return t},QP=Array.prototype.splice,GS=function(e,r){if(!On(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,QP.call(e,o,1))}return e},zS=function(t,e,r){if(!bt(t)&&!ln(t))return t;var n=r;return _e(t,function(a,i){n=e(n,a,i)}),n},JP=function(t,e){var r=[];if(!On(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},pR=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))},Ot=function(t){return xa(t,"Number")},gR=function(t){return Ot(t)&&t%1!==0},yR=function(t){return Ot(t)&&t%2===0},mR=Number.isInteger?Number.isInteger:function(t){return Ot(t)&&t%1===0},bR=function(t){return Ot(t)&&t<0},wR=1e-5;function US(t,e,r){return r===void 0&&(r=wR),Math.abs(t-e)0};const _R=function(t,e){if(bt(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},SR=function(t,e){if(bt(t)){for(var r,n=1/0,a=0;ae?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},ZS=function(t){return On(t)?Array.prototype.slice.call(t):[]};var nc={};const Ji=function(t){return t=t||"g",nc[t]?nc[t]+=1:nc[t]=1,t+nc[t]},sf=function(){},a3=function(t){return t};function i3(t){return Zt(t)?0:On(t)?t.length:Object.keys(t).length}var ac;const uf=YS(function(t,e){e===void 0&&(e={});var r=e.fontSize,n=e.fontFamily,a=e.fontWeight,i=e.fontStyle,o=e.fontVariant;return ac||(ac=document.createElement("canvas").getContext("2d")),ac.font=[i,o,a,r+"px",n].join(" "),ac.measureText(Ye(t)?t:"").width},function(t,e){return e===void 0&&(e={}),ay([t],iy(e)).join("")}),o3=function(t,e,r,n){n===void 0&&(n="...");var a=16,i=uf(n,r),o=Ye(t)?t:vu(t),s=e,u=[],f,l;if(uf(t,r)<=e)return t;for(;f=o.substr(0,a),l=uf(f,r),!(l+i>s&&l>s);)if(u.push(f),s-=l,o=o.substr(a),!o)return u.join("");for(;f=o.substr(0,1),l=uf(f,r),!(l+i>s);)if(u.push(f),s-=l,o=o.substr(1),!o)return u.join("");return""+u.join("")+n};var s3=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}();const u3=Object.freeze(Object.defineProperty({__proto__:null,Cache:s3,assign:Et,augment:XR,clamp:vR,clearAnimationFrame:VS,clone:rr,contains:Sh,debounce:oy,deepMix:_r,difference:UP,each:_e,endsWith:oR,every:sR,extend:VR,filter:DS,find:XP,findIndex:WP,firstValue:VP,fixedBase:pR,flatten:YP,flattenDeep:FS,forIn:_e,get:HS,getEllipsisText:o3,getRange:qP,getType:$S,getWrapBehavior:cR,group:lR,groupBy:Ah,groupToMap:jS,has:uw,hasKey:uw,hasValue:IR,head:nR,identity:a3,includes:Sh,indexOf:YR,isArguments:PR,isArray:bt,isArrayLike:On,isBoolean:Qf,isDate:RR,isDecimal:gR,isElement:$R,isEmpty:HR,isEqual:jo,isEqualWith:ZR,isError:FR,isEven:yR,isFinite:BR,isFunction:Tr,isInteger:mR,isMatch:RS,isNegative:bR,isNil:Zt,isNull:GR,isNumber:Ot,isNumberEqual:US,isObject:gn,isObjectLike:Mh,isOdd:xR,isPlainObject:ln,isPositive:ER,isPrototype:XS,isRegExp:jR,isString:Ye,isType:xa,isUndefined:UR,keys:PS,last:aR,lowerCase:kR,lowerFirst:NR,map:KR,mapValues:JR,max:qa,maxBy:_R,measureTextWidth:uf,memoize:YS,min:Ha,minBy:SR,mix:Et,mod:gd,noop:sf,number2color:hR,omit:n3,parseRadius:dR,pick:r3,pull:KP,pullAt:GS,reduce:zS,remove:JP,requestAnimationFrame:WS,set:e3,size:i3,some:uR,sortBy:eR,startsWith:iR,substitute:OR,throttle:Ch,toArray:ZS,toDegree:AR,toInteger:CR,toRadian:yd,toString:vu,union:tR,uniq:kf,uniqueId:Ji,upperCase:LR,upperFirst:Zs,values:iy,valuesOfKey:rR,wrapBehavior:Bs},Symbol.toStringTag,{value:"Module"})),f3={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var r=this,n=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),_e(n,function(a,i){e.on(i,a)}),document.addEventListener("visibilitychange",function(){r.keydown=!1})},unbind:function(e){var r=this.events,n=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),_e(r,function(a,i){e.off(i,a)}),e.get("canvas").set("draggable",n)},get:function(e){return this[e]},set:function(e,r){return this[e]=r,this}};var sy=function(){function t(){}return t.registerBehavior=function(e,r){if(!r)throw new Error("please specify handler for this behavior: ".concat(e));var n=rr(f3);Object.assign(n,r);var a=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var u=this.getEvents();this.events=null;var f={};u&&(_e(u,function(l,c){f[c]=Bs(s,l)}),this.events=f)};a.prototype=n,t.types[e]=a},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),l3="*",KS=function(){function t(){this._events={}}return t.prototype.on=function(e,r,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:r,once:!!n}),this},t.prototype.once=function(e,r){return this.on(e,r,!0)},t.prototype.emit=function(e){for(var r=this,n=[],a=1;a=0?Math.round(t):t%.5===0?Math.floor(t):Math.round(t)}function c3(t){qt=t}var h3=Math.PI/180,d3=180/Math.PI;function v3(t){return t*h3}function p3(t){return t*d3}function g3(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}const y3=Object.freeze(Object.defineProperty({__proto__:null,ANGLE_ORDER:QS,get ARRAY_TYPE(){return qt},EPSILON:pt,RANDOM:ya,equals:g3,round:Ba,setMatrixArrayType:c3,toDegree:p3,toRadian:v3},Symbol.toStringTag,{value:"Module"}));function m3(){var t=new qt(4);return qt!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function b3(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function w3(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function x3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function E3(t,e,r,n){var a=new qt(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function _3(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function S3(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function M3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*i-a*n;return o?(o=1/o,t[0]=i*o,t[1]=-n*o,t[2]=-a*o,t[3]=r*o,t):null}function A3(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t}function C3(t){return t[0]*t[3]-t[2]*t[1]}function JS(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*s+i*u,t[1]=a*s+o*u,t[2]=n*f+i*l,t[3]=a*f+o*l,t}function T3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=a*u+o*s,t[2]=n*-s+i*u,t[3]=a*-s+o*u,t}function I3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1];return t[0]=n*s,t[1]=a*s,t[2]=i*u,t[3]=o*u,t}function k3(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t}function N3(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function O3(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function L3(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3])}function D3(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]}function P3(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function eM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function R3(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function F3(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}function B3(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function G3(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}var z3=JS,j3=eM;const U3=Object.freeze(Object.defineProperty({__proto__:null,LDU:D3,add:P3,adjoint:A3,clone:b3,copy:w3,create:m3,determinant:C3,equals:F3,exactEquals:R3,frob:L3,fromRotation:k3,fromScaling:N3,fromValues:E3,identity:x3,invert:M3,mul:z3,multiply:JS,multiplyScalar:B3,multiplyScalarAndAdd:G3,rotate:T3,scale:I3,set:_3,str:O3,sub:j3,subtract:eM,transpose:S3},Symbol.toStringTag,{value:"Module"}));function $3(){var t=new qt(6);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function X3(t){var e=new qt(6);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}function W3(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}function V3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Y3(t,e,r,n,a,i){var o=new qt(6);return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=a,o[5]=i,o}function q3(t,e,r,n,a,i,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t}function H3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=r*i-n*a;return u?(u=1/u,t[0]=i*u,t[1]=-n*u,t[2]=-a*u,t[3]=r*u,t[4]=(a*s-i*o)*u,t[5]=(n*o-r*s)*u,t):null}function Z3(t){return t[0]*t[3]-t[1]*t[2]}function tM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1],c=r[2],h=r[3],d=r[4],v=r[5];return t[0]=n*f+i*l,t[1]=a*f+o*l,t[2]=n*c+i*h,t[3]=a*c+o*h,t[4]=n*d+i*v+s,t[5]=a*d+o*v+u,t}function K3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=Math.sin(r),l=Math.cos(r);return t[0]=n*l+i*f,t[1]=a*l+o*f,t[2]=n*-f+i*l,t[3]=a*-f+o*l,t[4]=s,t[5]=u,t}function Q3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n*f,t[1]=a*f,t[2]=i*l,t[3]=o*l,t[4]=s,t[5]=u,t}function J3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=n*f+i*l+s,t[5]=a*f+o*l+u,t}function e5(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t}function t5(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function r5(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function n5(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function a5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+1)}function i5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t}function rM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t}function o5(t,e,r){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]*r,t[5]=e[5]*r,t}function s5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t}function u5(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]}function f5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=e[0],f=e[1],l=e[2],c=e[3],h=e[4],d=e[5];return Math.abs(r-u)<=pt*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-f)<=pt*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-l)<=pt*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-c)<=pt*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=pt*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-d)<=pt*Math.max(1,Math.abs(s),Math.abs(d))}var l5=tM,c5=rM;const h5=Object.freeze(Object.defineProperty({__proto__:null,add:i5,clone:X3,copy:W3,create:$3,determinant:Z3,equals:f5,exactEquals:u5,frob:a5,fromRotation:e5,fromScaling:t5,fromTranslation:r5,fromValues:Y3,identity:V3,invert:H3,mul:l5,multiply:tM,multiplyScalar:o5,multiplyScalarAndAdd:s5,rotate:K3,scale:Q3,set:q3,str:n5,sub:c5,subtract:rM,translate:J3},Symbol.toStringTag,{value:"Module"}));function nM(){var t=new qt(9);return qt!=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 d5(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 v5(t){var e=new qt(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 p5(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}function g5(t,e,r,n,a,i,o,s,u){var f=new qt(9);return f[0]=t,f[1]=e,f[2]=r,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=u,f}function y5(t,e,r,n,a,i,o,s,u,f){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t}function m5(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function b5(t,e){if(t===e){var r=e[1],n=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function aM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=l*o-s*f,h=-l*i+s*u,d=f*i-o*u,v=r*c+n*h+a*d;return v?(v=1/v,t[0]=c*v,t[1]=(-l*n+a*f)*v,t[2]=(s*n-a*o)*v,t[3]=h*v,t[4]=(l*r-a*u)*v,t[5]=(-s*r+a*i)*v,t[6]=d*v,t[7]=(-f*r+n*u)*v,t[8]=(o*r-n*i)*v,t):null}function w5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8];return t[0]=o*l-s*f,t[1]=a*f-n*l,t[2]=n*s-a*o,t[3]=s*u-i*l,t[4]=r*l-a*u,t[5]=a*i-r*s,t[6]=i*f-o*u,t[7]=n*u-r*f,t[8]=r*o-n*i,t}function x5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8];return e*(f*i-o*u)+r*(-f*a+o*s)+n*(u*a-i*s)}function Qa(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1],v=r[2],p=r[3],g=r[4],y=r[5],m=r[6],b=r[7],w=r[8];return t[0]=h*n+d*o+v*f,t[1]=h*a+d*s+v*l,t[2]=h*i+d*u+v*c,t[3]=p*n+g*o+y*f,t[4]=p*a+g*s+y*l,t[5]=p*i+g*u+y*c,t[6]=m*n+b*o+w*f,t[7]=m*a+b*s+w*l,t[8]=m*i+b*u+w*c,t}function E5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t[6]=h*n+d*o+f,t[7]=h*a+d*s+l,t[8]=h*i+d*u+c,t}function _5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*o,t[1]=d*a+h*s,t[2]=d*i+h*u,t[3]=d*o-h*n,t[4]=d*s-h*a,t[5]=d*u-h*i,t[6]=f,t[7]=l,t[8]=c,t}function S5(t,e,r){var n=r[0],a=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function uy(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 fy(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function ly(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}function M5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function A5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[3]=l-y,t[6]=h+g,t[1]=l+y,t[4]=1-f-v,t[7]=d-p,t[2]=h-g,t[5]=d+p,t[8]=1-f-c,t}function C5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(u*M-o*k-f*A)*O,t[2]=(o*I-s*M+f*S)*O,t[3]=(a*I-n*k-i*C)*O,t[4]=(r*k-a*M+i*A)*O,t[5]=(n*M-r*I-i*S)*O,t[6]=(p*_-g*E+y*x)*O,t[7]=(g*w-v*_-y*b)*O,t[8]=(v*E-p*w+y*m)*O,t):null}function T5(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function I5(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}function N5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t}function iM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function O5(t,e,r){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]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t}function L5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t}function D5(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]}function P5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=e[0],h=e[1],d=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(r-c)<=pt*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(n-h)<=pt*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-d)<=pt*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-v)<=pt*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=pt*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=pt*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=pt*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(f-m)<=pt*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(l-b)<=pt*Math.max(1,Math.abs(l),Math.abs(b))}var R5=Qa,F5=iM;const oM=Object.freeze(Object.defineProperty({__proto__:null,add:N5,adjoint:w5,clone:v5,copy:p5,create:nM,determinant:x5,equals:P5,exactEquals:D5,frob:k5,fromMat2d:M5,fromMat4:d5,fromQuat:A5,fromRotation:fy,fromScaling:ly,fromTranslation:uy,fromValues:g5,identity:m5,invert:aM,mul:R5,multiply:Qa,multiplyScalar:O5,multiplyScalarAndAdd:L5,normalFromMat4:C5,projection:T5,rotate:_5,scale:S5,set:y5,str:I5,sub:F5,subtract:iM,translate:E5,transpose:b5},Symbol.toStringTag,{value:"Module"}));function B5(){var t=new qt(16);return qt!=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 G5(t){var e=new qt(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 z5(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 j5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p){var g=new qt(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=n,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=u,g[9]=f,g[10]=l,g[11]=c,g[12]=h,g[13]=d,g[14]=v,g[15]=p,g}function U5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t[9]=l,t[10]=c,t[11]=h,t[12]=d,t[13]=v,t[14]=p,t[15]=g,t}function sM(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 $5(t,e){if(t===e){var r=e[1],n=e[2],a=e[3],i=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=i,t[11]=e[14],t[12]=a,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 X5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(a*I-n*k-i*C)*O,t[2]=(p*_-g*E+y*x)*O,t[3]=(h*E-c*_-d*x)*O,t[4]=(u*M-o*k-f*A)*O,t[5]=(r*k-a*M+i*A)*O,t[6]=(g*w-v*_-y*b)*O,t[7]=(l*_-h*w+d*b)*O,t[8]=(o*I-s*M+f*S)*O,t[9]=(n*M-r*I-i*S)*O,t[10]=(v*E-p*w+y*m)*O,t[11]=(c*w-l*E-d*m)*O,t[12]=(s*A-o*C-u*S)*O,t[13]=(r*C-n*A+a*S)*O,t[14]=(p*b-v*x-g*m)*O,t[15]=(l*x-c*b+h*m)*O,t):null}function W5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g;return t[0]=s*k-u*I+f*C,t[1]=a*I-n*k-i*C,t[2]=p*_-g*E+y*x,t[3]=h*E-c*_-d*x,t[4]=u*M-o*k-f*A,t[5]=r*k-a*M+i*A,t[6]=g*w-v*_-y*b,t[7]=l*_-h*w+d*b,t[8]=o*I-s*M+f*S,t[9]=n*M-r*I-i*S,t[10]=v*E-p*w+y*m,t[11]=c*w-l*E-d*m,t[12]=s*A-o*C-u*S,t[13]=r*C-n*A+a*S,t[14]=p*b-v*x-g*m,t[15]=l*x-c*b+h*m,t}function V5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8],l=t[9],c=t[10],h=t[11],d=t[12],v=t[13],p=t[14],g=t[15],y=e*o-r*i,m=e*s-n*i,b=r*s-n*o,w=f*v-l*d,x=f*p-c*d,E=l*p-c*v,_=e*E-r*x+n*w,S=i*E-o*x+s*w,A=f*b-l*m+c*y,M=d*b-v*m+p*y;return u*_-a*S+g*A-h*M}function uM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=e[9],d=e[10],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],b=r[0],w=r[1],x=r[2],E=r[3];return t[0]=b*n+w*s+x*c+E*p,t[1]=b*a+w*u+x*h+E*g,t[2]=b*i+w*f+x*d+E*y,t[3]=b*o+w*l+x*v+E*m,b=r[4],w=r[5],x=r[6],E=r[7],t[4]=b*n+w*s+x*c+E*p,t[5]=b*a+w*u+x*h+E*g,t[6]=b*i+w*f+x*d+E*y,t[7]=b*o+w*l+x*v+E*m,b=r[8],w=r[9],x=r[10],E=r[11],t[8]=b*n+w*s+x*c+E*p,t[9]=b*a+w*u+x*h+E*g,t[10]=b*i+w*f+x*d+E*y,t[11]=b*o+w*l+x*v+E*m,b=r[12],w=r[13],x=r[14],E=r[15],t[12]=b*n+w*s+x*c+E*p,t[13]=b*a+w*u+x*h+E*g,t[14]=b*i+w*f+x*d+E*y,t[15]=b*o+w*l+x*v+E*m,t}function Y5(t,e,r){var n=r[0],a=r[1],i=r[2],o,s,u,f,l,c,h,d,v,p,g,y;return e===t?(t[12]=e[0]*n+e[4]*a+e[8]*i+e[12],t[13]=e[1]*n+e[5]*a+e[9]*i+e[13],t[14]=e[2]*n+e[6]*a+e[10]*i+e[14],t[15]=e[3]*n+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],u=e[2],f=e[3],l=e[4],c=e[5],h=e[6],d=e[7],v=e[8],p=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=l,t[5]=c,t[6]=h,t[7]=d,t[8]=v,t[9]=p,t[10]=g,t[11]=y,t[12]=o*n+l*a+v*i+e[12],t[13]=s*n+c*a+p*i+e[13],t[14]=u*n+h*a+g*i+e[14],t[15]=f*n+d*a+y*i+e[15]),t}function q5(t,e,r){var n=r[0],a=r[1],i=r[2];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]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function H5(t,e,r,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),u,f,l,c,h,d,v,p,g,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;return s0?(r[0]=(s*o+l*n+u*i-f*a)*2/c,r[1]=(u*o+l*a+f*n-s*i)*2/c,r[2]=(f*o+l*i+s*a-u*n)*2/c):(r[0]=(s*o+l*n+u*i-f*a)*2,r[1]=(u*o+l*a+f*n-s*i)*2,r[2]=(f*o+l*i+s*a-u*n)*2),fM(t,e,r),t}function lM(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function cM(t,e){var r=e[0],n=e[1],a=e[2],i=e[4],o=e[5],s=e[6],u=e[8],f=e[9],l=e[10];return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(i*i+o*o+s*s),t[2]=Math.sqrt(u*u+f*f+l*l),t}function hM(t,e){var r=new qt(3);cM(r,e);var n=1/r[0],a=1/r[1],i=1/r[2],o=e[0]*n,s=e[1]*a,u=e[2]*i,f=e[4]*n,l=e[5]*a,c=e[6]*i,h=e[8]*n,d=e[9]*a,v=e[10]*i,p=o+l+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,t[3]=.25*g,t[0]=(c-d)/g,t[1]=(h-u)/g,t[2]=(s-f)/g):o>l&&o>v?(g=Math.sqrt(1+o-l-v)*2,t[3]=(c-d)/g,t[0]=.25*g,t[1]=(s+f)/g,t[2]=(h+u)/g):l>v?(g=Math.sqrt(1+l-o-v)*2,t[3]=(h-u)/g,t[0]=(s+f)/g,t[1]=.25*g,t[2]=(c+d)/g):(g=Math.sqrt(1+v-o-l)*2,t[3]=(s-f)/g,t[0]=(h+u)/g,t[1]=(c+d)/g,t[2]=.25*g),t}function oF(t,e,r,n){e[0]=n[12],e[1]=n[13],e[2]=n[14];var a=n[0],i=n[1],o=n[2],s=n[4],u=n[5],f=n[6],l=n[8],c=n[9],h=n[10];r[0]=Math.sqrt(a*a+i*i+o*o),r[1]=Math.sqrt(s*s+u*u+f*f),r[2]=Math.sqrt(l*l+c*c+h*h);var d=1/r[0],v=1/r[1],p=1/r[2],g=a*d,y=i*v,m=o*p,b=s*d,w=u*v,x=f*p,E=l*d,_=c*v,S=h*p,A=g+w+S,M=0;return A>0?(M=Math.sqrt(A+1)*2,t[3]=.25*M,t[0]=(x-_)/M,t[1]=(E-m)/M,t[2]=(y-b)/M):g>w&&g>S?(M=Math.sqrt(1+g-w-S)*2,t[3]=(x-_)/M,t[0]=.25*M,t[1]=(y+b)/M,t[2]=(E+m)/M):w>S?(M=Math.sqrt(1+w-g-S)*2,t[3]=(E-m)/M,t[0]=(y+b)/M,t[1]=.25*M,t[2]=(x+_)/M):(M=Math.sqrt(1+S-g-w)*2,t[3]=(y-b)/M,t[0]=(E+m)/M,t[1]=(x+_)/M,t[2]=.25*M),t}function sF(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=a+a,f=i+i,l=o+o,c=a*u,h=a*f,d=a*l,v=i*f,p=i*l,g=o*l,y=s*u,m=s*f,b=s*l,w=n[0],x=n[1],E=n[2];return t[0]=(1-(v+g))*w,t[1]=(h+b)*w,t[2]=(d-m)*w,t[3]=0,t[4]=(h-b)*x,t[5]=(1-(c+g))*x,t[6]=(p+y)*x,t[7]=0,t[8]=(d+m)*E,t[9]=(p-y)*E,t[10]=(1-(c+v))*E,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function uF(t,e,r,n,a){var i=e[0],o=e[1],s=e[2],u=e[3],f=i+i,l=o+o,c=s+s,h=i*f,d=i*l,v=i*c,p=o*l,g=o*c,y=s*c,m=u*f,b=u*l,w=u*c,x=n[0],E=n[1],_=n[2],S=a[0],A=a[1],M=a[2],C=(1-(p+y))*x,I=(d+w)*x,k=(v-b)*x,O=(d-w)*E,B=(1-(h+y))*E,L=(g+m)*E,z=(v+b)*_,X=(g-m)*_,R=(1-(h+p))*_;return t[0]=C,t[1]=I,t[2]=k,t[3]=0,t[4]=O,t[5]=B,t[6]=L,t[7]=0,t[8]=z,t[9]=X,t[10]=R,t[11]=0,t[12]=r[0]+S-(C*S+O*A+z*M),t[13]=r[1]+A-(I*S+B*A+X*M),t[14]=r[2]+M-(k*S+L*A+R*M),t[15]=1,t}function fF(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[1]=l+y,t[2]=h-g,t[3]=0,t[4]=l-y,t[5]=1-f-v,t[6]=d+p,t[7]=0,t[8]=h+g,t[9]=d-p,t[10]=1-f-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function lF(t,e,r,n,a,i,o){var s=1/(r-e),u=1/(a-n),f=1/(i-o);return t[0]=i*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i*2*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(a+n)*u,t[10]=(o+i)*f,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*f,t[15]=0,t}function dM(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=(a+n)*o,t[14]=2*a*n*o}else t[10]=-1,t[14]=-2*n;return t}var cF=dM;function hF(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=a*o,t[14]=a*n*o}else t[10]=-1,t[14]=-n;return t}function dF(t,e,r,n){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(a+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=f,t[6]=0,t[7]=0,t[8]=-((o-s)*u*.5),t[9]=(a-i)*f*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}function vM(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=(o+i)*f,t[15]=1,t}var vF=vM;function pF(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=i*f,t[15]=1,t}function gF(t,e,r,n){var a,i,o,s,u,f,l,c,h,d,v=e[0],p=e[1],g=e[2],y=n[0],m=n[1],b=n[2],w=r[0],x=r[1],E=r[2];return Math.abs(v-w)0&&(d=1/Math.sqrt(d),l*=d,c*=d,h*=d);var v=u*h-f*c,p=f*l-s*h,g=s*c-u*l;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),t[0]=v,t[1]=p,t[2]=g,t[3]=0,t[4]=c*g-h*p,t[5]=h*v-l*g,t[6]=l*p-c*v,t[7]=0,t[8]=l,t[9]=c,t[10]=h,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function mF(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 bF(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8]+t[9]*t[9]+t[10]*t[10]+t[11]*t[11]+t[12]*t[12]+t[13]*t[13]+t[14]*t[14]+t[15]*t[15])}function wF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t}function pM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function xF(t,e,r){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]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t}function EF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t}function _F(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 SF(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=t[9],h=t[10],d=t[11],v=t[12],p=t[13],g=t[14],y=t[15],m=e[0],b=e[1],w=e[2],x=e[3],E=e[4],_=e[5],S=e[6],A=e[7],M=e[8],C=e[9],I=e[10],k=e[11],O=e[12],B=e[13],L=e[14],z=e[15];return Math.abs(r-m)<=pt*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(n-b)<=pt*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-w)<=pt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-x)<=pt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-E)<=pt*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-_)<=pt*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-S)<=pt*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-A)<=pt*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(l-M)<=pt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-C)<=pt*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-I)<=pt*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-k)<=pt*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(v-O)<=pt*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=pt*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-L)<=pt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-z)<=pt*Math.max(1,Math.abs(y),Math.abs(z))}var MF=uM,AF=pM;const CF=Object.freeze(Object.defineProperty({__proto__:null,add:wF,adjoint:W5,clone:G5,copy:z5,create:B5,decompose:oF,determinant:V5,equals:SF,exactEquals:_F,frob:bF,fromQuat:fF,fromQuat2:iF,fromRotation:tF,fromRotationTranslation:fM,fromRotationTranslationScale:sF,fromRotationTranslationScaleOrigin:uF,fromScaling:eF,fromTranslation:J5,fromValues:j5,fromXRotation:rF,fromYRotation:nF,fromZRotation:aF,frustum:lF,getRotation:hM,getScaling:cM,getTranslation:lM,identity:sM,invert:X5,lookAt:gF,mul:MF,multiply:uM,multiplyScalar:xF,multiplyScalarAndAdd:EF,ortho:vF,orthoNO:vM,orthoZO:pF,perspective:cF,perspectiveFromFieldOfView:dF,perspectiveNO:dM,perspectiveZO:hF,rotate:H5,rotateX:Z5,rotateY:K5,rotateZ:Q5,scale:q5,set:U5,str:mF,sub:AF,subtract:pM,targetTo:yF,translate:Y5,transpose:$5},Symbol.toStringTag,{value:"Module"}));function cy(){var t=new qt(3);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function TF(t){var e=new qt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function gM(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function x0(t,e,r){var n=new qt(3);return n[0]=t,n[1]=e,n[2]=r,n}function IF(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function kF(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function NF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function yM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function mM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function bM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function OF(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function LF(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function DF(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function PF(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function RF(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t[2]=Ba(e[2]),t}function FF(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function BF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function wM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(r*r+n*n+a*a)}function xM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function EM(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function GF(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function zF(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _M(t,e){var r=e[0],n=e[1],a=e[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function md(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eh(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[0],s=r[1],u=r[2];return t[0]=a*u-i*s,t[1]=i*o-n*u,t[2]=n*s-a*o,t}function jF(t,e,r,n){var a=e[0],i=e[1],o=e[2];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function UF(t,e,r,n){var a=Math.acos(Math.min(Math.max(md(e,r),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return t[0]=o*e[0]+s*r[0],t[1]=o*e[1]+s*r[1],t[2]=o*e[2]+s*r[2],t}function $F(t,e,r,n,a,i){var o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,f=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*s+r[0]*u+n[0]*f+a[0]*l,t[1]=e[1]*s+r[1]*u+n[1]*f+a[1]*l,t[2]=e[2]*s+r[2]*u+n[2]*f+a[2]*l,t}function XF(t,e,r,n,a,i){var o=1-i,s=o*o,u=i*i,f=s*o,l=3*i*s,c=3*u*o,h=u*i;return t[0]=e[0]*f+r[0]*l+n[0]*c+a[0]*h,t[1]=e[1]*f+r[1]*l+n[1]*c+a[1]*h,t[2]=e[2]*f+r[2]*l+n[2]*c+a[2]*h,t}function WF(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI,n=ya()*2-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t}function VF(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,t[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,t[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,t}function bd(t,e,r){var n=e[0],a=e[1],i=e[2];return t[0]=n*r[0]+a*r[3]+i*r[6],t[1]=n*r[1]+a*r[4]+i*r[7],t[2]=n*r[2]+a*r[5]+i*r[8],t}function YF(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t}function qF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function HF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function ZF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function KF(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2],u=Math.sqrt((r*r+n*n+a*a)*(i*i+o*o+s*s)),f=u&&md(t,e)/u;return Math.acos(Math.min(Math.max(f,-1),1))}function QF(t){return t[0]=0,t[1]=0,t[2]=0,t}function JF(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function eB(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function tB(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2];return Math.abs(r-i)<=pt*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=pt*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=pt*Math.max(1,Math.abs(a),Math.abs(s))}var rB=yM,nB=mM,aB=bM,iB=wM,oB=xM,SM=gM,sB=EM,uB=function(){var t=cy();return function(e,r,n,a,i,o){var s,u;for(r||(r=3),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=n*o,t[2]=a*o,t[3]=i*o,t}function vy(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function mB(t,e,r,n){var a=r[0]*n[1]-r[1]*n[0],i=r[0]*n[2]-r[2]*n[0],o=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],f=r[2]*n[3]-r[3]*n[2],l=e[0],c=e[1],h=e[2],d=e[3];return t[0]=c*f-h*u+d*s,t[1]=-(l*f)+h*o-d*i,t[2]=l*u-c*o+d*a,t[3]=-(l*s)+c*i-h*a,t}function BM(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}function bB(t,e){e=e===void 0?1:e;var r,n,a,i,o,s,u;u=ya(),r=u*2-1,n=(4*ya()-2)*Math.sqrt(u*-u+u),o=r*r+n*n,u=ya(),a=u*2-1,i=(4*ya()-2)*Math.sqrt(u*-u+u),s=a*a+i*i;var f=Math.sqrt((1-o)/s);return t[0]=e*r,t[1]=e*n,t[2]=e*a*f,t[3]=e*i*f,t}function wB(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,t}function xB(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t[3]=e[3],t}function EB(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function _B(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function GM(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function SB(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}var MB=NM,AB=OM,CB=LM,TB=PM,IB=RM,kB=hy,NB=dy,OB=function(){var t=MM();return function(e,r,n,a,i,o){var s,u;for(r||(r=4),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;spt?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function RB(t,e){var r=gy(t,e);return Math.acos(2*r*r-1)}function jM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,t}function UM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=a*u+i*s,t[2]=i*u-a*s,t[3]=o*u-n*s,t}function $M(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*s,t[1]=a*u+o*s,t[2]=i*u+n*s,t[3]=o*u-a*s,t}function XM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+a*s,t[1]=a*u-n*s,t[2]=i*u+o*s,t[3]=o*u-i*s,t}function FB(t,e){var r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t}function WM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=Math.exp(i),u=o>0?s*Math.sin(o)/o:0;return t[0]=r*u,t[1]=n*u,t[2]=a*u,t[3]=s*Math.cos(o),t}function VM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=o>0?Math.atan2(o,i)/o:0;return t[0]=r*s,t[1]=n*s,t[2]=a*s,t[3]=.5*Math.log(r*r+n*n+a*a+i*i),t}function BB(t,e,r){return VM(t,e),qM(t,t,r),WM(t,t),t}function th(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=r[0],f=r[1],l=r[2],c=r[3],h,d,v,p,g;return d=a*u+i*f+o*l+s*c,d<0&&(d=-d,u=-u,f=-f,l=-l,c=-c),1-d>pt?(h=Math.acos(d),v=Math.sin(h),p=Math.sin((1-n)*h)/v,g=Math.sin(n*h)/v):(p=1-n,g=n),t[0]=p*a+g*u,t[1]=p*i+g*f,t[2]=p*o+g*l,t[3]=p*s+g*c,t}function GB(t){var e=ya(),r=ya(),n=ya(),a=Math.sqrt(1-e),i=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=i*Math.sin(2*Math.PI*n),t[3]=i*Math.cos(2*Math.PI*n),t}function zB(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*r+n*n+a*a+i*i,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-a*s,t[3]=i*s,t}function jB(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function YM(t,e){var r=e[0]+e[4]+e[8],n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),t[a]=.5*n,n=.5/n,t[3]=(e[i*3+o]-e[o*3+i])*n,t[i]=(e[i*3+a]+e[a*3+i])*n,t[o]=(e[o*3+a]+e[a*3+o])*n}return t}function UB(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:QS,i=Math.PI/360;e*=i,n*=i,r*=i;var o=Math.sin(e),s=Math.cos(e),u=Math.sin(r),f=Math.cos(r),l=Math.sin(n),c=Math.cos(n);switch(a){case"xyz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"xzy":t[0]=o*f*c-s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c+o*u*l;break;case"yxz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;case"yzx":t[0]=o*f*c+s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c-o*u*l;break;case"zxy":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"zyx":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;default:throw new Error("Unknown angle order "+a)}return t}function $B(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var XB=AM,WB=CM,py=TM,VB=IM,YB=kM,qB=jM,qM=DM,gy=vy,HB=BM,yy=hy,ZB=yy,my=dy,KB=my,by=FM,QB=GM;function JB(t,e){return Math.abs(vy(t,e))>=1-pt}var e4=function(){var t=cy(),e=x0(1,0,0),r=x0(0,1,0);return function(n,a,i){var o=md(a,i);return o<-.999999?(eh(t,e,a),SM(t)<1e-6&&eh(t,r,a),_M(t,t),zM(n,t,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(eh(t,a,i),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=1+o,by(n,n))}}(),t4=function(){var t=Th(),e=Th();return function(r,n,a,i,o,s){return th(t,n,o,s),th(e,a,i,s),th(r,t,e,2*s*(1-s)),r}}(),r4=function(){var t=nM();return function(e,r,n,a){return t[0]=n[0],t[3]=n[1],t[6]=n[2],t[1]=a[0],t[4]=a[1],t[7]=a[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],by(e,YM(e,t))}}();const n4=Object.freeze(Object.defineProperty({__proto__:null,add:YB,calculateW:FB,clone:XB,conjugate:jB,copy:py,create:Th,dot:gy,equals:JB,exactEquals:QB,exp:WM,fromEuler:UB,fromMat3:YM,fromValues:WB,getAngle:RB,getAxisAngle:PB,identity:DB,invert:zB,len:ZB,length:yy,lerp:HB,ln:VM,mul:qB,multiply:jM,normalize:by,pow:BB,random:GB,rotateX:UM,rotateY:$M,rotateZ:XM,rotationTo:e4,scale:qM,set:VB,setAxes:r4,setAxisAngle:zM,slerp:th,sqlerp:t4,sqrLen:KB,squaredLength:my,str:$B},Symbol.toStringTag,{value:"Module"}));function a4(){var t=new qt(8);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function i4(t){var e=new qt(8);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}function o4(t,e,r,n,a,i,o,s){var u=new qt(8);return u[0]=t,u[1]=e,u[2]=r,u[3]=n,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u}function s4(t,e,r,n,a,i,o){var s=new qt(8);s[0]=t,s[1]=e,s[2]=r,s[3]=n;var u=a*.5,f=i*.5,l=o*.5;return s[4]=u*n+f*r-l*e,s[5]=f*n+l*t-u*r,s[6]=l*n+u*e-f*t,s[7]=-u*t-f*e-l*r,s}function HM(t,e,r){var n=r[0]*.5,a=r[1]*.5,i=r[2]*.5,o=e[0],s=e[1],u=e[2],f=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=n*f+a*u-i*s,t[5]=a*f+i*o-n*u,t[6]=i*f+n*s-a*o,t[7]=-n*o-a*s-i*u,t}function u4(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0]*.5,t[5]=e[1]*.5,t[6]=e[2]*.5,t[7]=0,t}function f4(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function l4(t,e){var r=Th();hM(r,e);var n=new qt(3);return lM(n,e),HM(t,r,n),t}function ZM(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}function c4(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function h4(t,e,r,n,a,i,o,s,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t}var d4=py;function v4(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var p4=py;function g4(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function y4(t,e){var r=e[4],n=e[5],a=e[6],i=e[7],o=-e[0],s=-e[1],u=-e[2],f=e[3];return t[0]=(r*f+i*o+n*u-a*s)*2,t[1]=(n*f+i*s+a*o-r*u)*2,t[2]=(a*f+i*u+r*s-n*o)*2,t}function m4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0]*.5,u=r[1]*.5,f=r[2]*.5,l=e[4],c=e[5],h=e[6],d=e[7];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=o*s+a*f-i*u+l,t[5]=o*u+i*s-n*f+c,t[6]=o*f+n*u-a*s+h,t[7]=-n*s-a*u-i*f+d,t}function b4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return UM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function w4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return $M(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function x4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return XM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function E4(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=e[3];return t[0]=s*o+l*n+u*i-f*a,t[1]=u*o+l*a+f*n-s*i,t[2]=f*o+l*i+s*a-u*n,t[3]=l*o-s*n-u*a-f*i,s=e[4],u=e[5],f=e[6],l=e[7],t[4]=s*o+l*n+u*i-f*a,t[5]=u*o+l*a+f*n-s*i,t[6]=f*o+l*i+s*a-u*n,t[7]=l*o-s*n-u*a-f*i,t}function _4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,s=r[4],u=r[5],f=r[6],l=r[7],t[4]=n*l+o*s+a*f-i*u,t[5]=a*l+o*u+i*s-n*f,t[6]=i*l+o*f+n*u-a*s,t[7]=o*l-n*s-a*u-i*f,t}function S4(t,e,r,n){if(Math.abs(n)0){r=Math.sqrt(r);var n=e[0]/r,a=e[1]/r,i=e[2]/r,o=e[3]/r,s=e[4],u=e[5],f=e[6],l=e[7],c=n*s+a*u+i*f+o*l;t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=(s-n*c)/r,t[5]=(u-a*c)/r,t[6]=(f-i*c)/r,t[7]=(l-o*c)/r}return t}function D4(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function P4(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]}function R4(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=e[0],c=e[1],h=e[2],d=e[3],v=e[4],p=e[5],g=e[6],y=e[7];return Math.abs(r-l)<=pt*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(n-c)<=pt*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-h)<=pt*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-d)<=pt*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-v)<=pt*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=pt*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-g)<=pt*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-y)<=pt*Math.max(1,Math.abs(f),Math.abs(y))}const F4=Object.freeze(Object.defineProperty({__proto__:null,add:M4,clone:i4,conjugate:k4,copy:ZM,create:a4,dot:QM,equals:R4,exactEquals:P4,fromMat4:l4,fromRotation:f4,fromRotationTranslation:HM,fromRotationTranslationValues:s4,fromTranslation:u4,fromValues:o4,getDual:v4,getReal:d4,getTranslation:y4,identity:c4,invert:I4,len:N4,length:JM,lerp:T4,mul:A4,multiply:KM,normalize:L4,rotateAroundAxis:S4,rotateByQuatAppend:E4,rotateByQuatPrepend:_4,rotateX:b4,rotateY:w4,rotateZ:x4,scale:C4,set:h4,setDual:g4,setReal:p4,sqrLen:O4,squaredLength:wd,str:D4,translate:m4},Symbol.toStringTag,{value:"Module"}));function eA(){var t=new qt(2);return qt!=Float32Array&&(t[0]=0,t[1]=0),t}function B4(t){var e=new qt(2);return e[0]=t[0],e[1]=t[1],e}function G4(t,e){var r=new qt(2);return r[0]=t,r[1]=e,r}function z4(t,e){return t[0]=e[0],t[1]=e[1],t}function j4(t,e,r){return t[0]=e,t[1]=r,t}function fn(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function tA(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function rA(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function nA(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function U4(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function $4(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function Pi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ri(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function X4(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t}function wn(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function W4(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Ih(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function aA(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function iA(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function oA(t){var e=t[0],r=t[1];return e*e+r*r}function V4(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Y4(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function Wi(t,e){var r=e[0],n=e[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function wy(t,e){return t[0]*e[0]+t[1]*e[1]}function q4(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t}function H4(t,e,r,n){var a=e[0],i=e[1];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t}function Z4(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t}function K4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a,t[1]=r[1]*n+r[3]*a,t}function Q4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function J4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[3]*a+r[6],t[1]=r[1]*n+r[4]*a+r[7],t}function eG(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[4]*a+r[12],t[1]=r[1]*n+r[5]*a+r[13],t}function tG(t,e,r,n){var a=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),s=Math.cos(n);return t[0]=a*s-i*o+r[0],t[1]=a*o+i*s+r[1],t}function sA(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(Math.atan2(n*a-r*i,r*a+n*i))}function rG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.atan2(r*i-n*a,r*a+n*i)}function nG(t){return t[0]=0,t[1]=0,t}function aG(t){return"vec2("+t[0]+", "+t[1]+")"}function xy(t,e){return t[0]===e[0]&&t[1]===e[1]}function iG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(r-a)<=pt*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-i)<=pt*Math.max(1,Math.abs(n),Math.abs(i))}var oG=iA,rh=tA,sG=rA,uG=nA,fG=Ih,lG=aA,cG=oA,hG=function(){var t=eA();return function(e,r,n,a,i,o){var s,u;for(r||(r=2),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o},cA=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=Un(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=Un(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=cA({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s},pA=function(e,r,n,a){return a===void 0&&(a=!0),r?Ay(e,n,a):My(e,n,a)},MG=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?Un(v,s,"target"):Un(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c},Of=function(e,r){for(var n=Uo(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},bA=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=fA();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=Uo(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=rr(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=fp(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=fp(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},wA=function(e,r,n,a,i,o,s,u){return r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e-4),i===void 0&&(i=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),u===void 0&&(u=1),Iy(e,r,n,a,!0,i,o,s,u)},xA=function(e,r){var n;r===void 0&&(r=1);for(var a=rr(e),i=a.nodes,o=i===void 0?[]:i,s=a.edges,u=s===void 0?[]:s,f=function(){var h=yi({nodes:o,edges:u}),d=Object.keys(h);d.sort(function(g,y){var m,b;return((m=h[g])===null||m===void 0?void 0:m.degree)-((b=h[y])===null||b===void 0?void 0:b.degree)});var v=d[0];if(!o.length||((n=h[v])===null||n===void 0?void 0:n.degree)>=r)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),u=u.filter(function(g){return!(g.source===v||g.target===v)})};;){var l=f();if(l==="break")break}return{nodes:o,edges:u}},hw=function(e,r,n){var a=[];switch(e){case pa.EuclideanDistance:a=r[n];break;default:a=[];break}return a},EA=function(e,r,n,a,i,o){r===void 0&&(r=3),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=["id"]),o===void 0&&(o=pa.EuclideanDistance);var s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(o===pa.EuclideanDistance&&!u.every(function(he){return he.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===pa.EuclideanDistance&&(h=Cy(u,n),d=Ty(h,a,i)),!d.length)return c;for(var v=kf(d.map(function(he){return he.join("")})),p=Math.min(r,u.length,v.length),g=0;gx&&!y.find(function(it){return jo(it,hw(o,d,u[le].originIndex))})&&(x=Ve,E=le)}},S=0;S=0;O--)b[Number(u[g].clusterId)][O].id===u[g].id&&b[Number(u[g].clusterId)].splice(O,1);u[g].clusterId=String(M),b[M].push(u[g])}}for(var B=!1,g=0;g=1e3)break}var R=[],V={};return l.forEach(function(he){var ce,le,ie=he.source,Ie=he.target,qe=(ce=u.find(function(st){return st.id===ie}))===null||ce===void 0?void 0:ce.clusterId,Ve=(le=u.find(function(st){return st.id===Ie}))===null||le===void 0?void 0:le.clusterId,it="".concat(qe,"---").concat(Ve);if(V[it])V[it].count++;else{var dt={source:qe,target:Ve,count:1};V[it]=dt,R.push(dt)}}),{clusters:b,clusterEdges:R}},ky=function(e,r){var n=new ta(r),a=n.norm2(),i=new ta(e),o=i.norm2(),s=n.dot(i),u=a*o,f=u?s/u:0;return f},_A=function(e,r,n,a,i){e===void 0&&(e=[]),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=[]);var o=rr(e.filter(function(h){return h.id!==r.id})),s=e.findIndex(function(h){return h.id===r.id}),u=Cy(e,n),f=Ty(u,a,i),l=f[s],c=[];return o.forEach(function(h,d){if(h.id!==r.id){var v=f[d],p=ky(v,l);c.push(p),h.cosineSimilarity=p}}),o.sort(function(h,d){return d.cosineSimilarity-h.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},CG=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),kG=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new IG(l);for(nh(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),nh(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),nh(v,s).forEach(function(p){c.insert(p)})))}return n},dw=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new CG(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},SA=function(e,r,n){var a={prim:kG,kruskal:dw};return n?a[n](e,r):dw(e,r)},MA=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new ko(p,m,Ga,_.edgeLabel,Ga));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new ic(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new ic(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},kA=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=Of(e,n),c=Of(r,n),h=ww(e.nodes,l,n),d=ww(r.nodes,c,n),v=mw(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=mw(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;bw(e.edges,s,p);var w=bw(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,Xn(Xn([],x,!1),[2],!1))),a||(a=i);var E=yw(e,l,o,a),_=yw(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=FG(a,f,S,E,l),M=ah(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=RG(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=ih(Se,tt,o,s);X[te][N]=Fe})});var R=BG(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=ah(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=ih(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=ah(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=ih(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=IA(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:GG(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=Nf(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=xw(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},Gs=function(){function t(e){e===void 0&&(e=10),this.linkedList=new uA,this.maxStep=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),NA=Sy;const zG={getAdjMatrix:Uo,breadthFirstSearch:lA,connectedComponent:Ey,getDegree:yi,getInDegree:hA,getOutDegree:dA,detectCycle:Sy,detectDirectedCycle:NA,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,depthFirstSearch:_y,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,labelPropagation:bA,louvain:Iy,iLouvain:wA,kCore:xA,kMeans:EA,cosineSimilarity:ky,nodesCosineSimilarity:_A,minimumSpanningTree:SA,pageRank:MA,getNeighbors:Un,Stack:Gs,GADDI:kA},jG=Object.freeze(Object.defineProperty({__proto__:null,GADDI:kA,Stack:Gs,breadthFirstSearch:lA,connectedComponent:Ey,cosineSimilarity:ky,default:zG,depthFirstSearch:_y,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,detectCycle:Sy,detectDirectedCycle:NA,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,getAdjMatrix:Uo,getDegree:yi,getInDegree:hA,getNeighbors:Un,getOutDegree:dA,iLouvain:wA,kCore:xA,kMeans:EA,labelPropagation:bA,louvain:Iy,minimumSpanningTree:SA,nodesCosineSimilarity:_A,pageRank:MA},Symbol.toStringTag,{value:"Module"}));var Nh=eo,UG=function(e){return function(r,n){return r[e]-n[e]}},Ew=function(e,r,n){return e>=r&&e<=n},xd=function(e,r,n,a){var i=1e-4,o={x:n.x-e.x,y:n.y-e.y},s={x:r.x-e.x,y:r.y-e.y},u={x:a.x-n.x,y:a.y-n.y},f=s.x*u.y-s.y*u.x,l=f*f,c=1/f,h=s.x*s.x+s.y*s.y,d=u.x*u.x+u.y*u.y;if(l>i*h*d){var v=(o.x*u.y-o.y*u.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!Ew(v,0,1)||!Ew(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},OA=function(e,r){var n=e.x,a=e.y,i=e.width,o=e.height,s=n+i/2,u=a+o/2,f=[],l={x:s,y:u};f.push({x:n,y:a}),f.push({x:n+i,y:a}),f.push({x:n+i,y:a+o}),f.push({x:n,y:a+o}),f.push({x:n,y:a});for(var c=null,h=1;hr[a][o]+r[o][i]&&(r[a][i]=r[a][o]+r[o][i]);return r},WG=function(e,r){var n=e.nodes,a=e.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(s,u){o[s.id]=u;var f=[];i.push(f)}),a&&a.forEach(function(s){var u=s.source,f=s.target,l=o[u],c=o[f];i[l][c]=1,r||(i[c][l]=1)}),i},RA=function(e,r){e.translate(r.x,r.y)},_0=function(e,r,n,a){a===void 0&&(a={duration:500});var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=r.x-o.minX,u=r.y-o.minY;if(n){var f=s*i[0],l=u*i[4],c=0,h=0,d=0,v=0;e.animate(function(g){return d=f*g,v=l*g,i=Nh(i,[["t",d-c,v-h]]),c=d,h=v,{matrix:i}},a)}else{var p=Nh(i,[["t",s,u]]);e.setMatrix(p)}},VG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=r;bt(r)||(a=[r,r]),bt(r)&&r.length===1&&(a=[r[0],r[0]]),n=Nh(n,[["s",a[0],a[1]]]),e.setMatrix(n)},YG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=Nh(n,[["r",r]]),e.setMatrix(n)},qG=function(e,r,n){for(var a=[],i=0;i0!=s(l[1]-n)>0&&s(r-(n-f[1])*(f[0]-l[0])/(f[1]-l[1])-f[0])<0&&(a=!a)}return a},FA=function(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY1){var m=h[0],b=h[v-1];d.push({from:{x:b[0],y:b[1]},to:{x:m[0],y:m[1]}})}return d};if(e.length<2||r.length<2)return!1;var i=n(e),o=n(r);if(!FA(i,o))return!1;var s=!1;if(_e(r,function(c){if(Lf(e,c[0],c[1]))return s=!0,!1}),s||(_e(e,function(c){if(Lf(r,c[0],c[1]))return s=!0,!1}),s))return!0;var u=a(e),f=a(r),l=!1;return _e(f,function(c){if(ZG(u,c))return l=!0,!1}),l},$o=function(){function t(e,r,n,a){this.x1=e,this.y1=r,this.x2=n,this.y2=a}return t.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),r=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2),i={x:e,y:r,minX:e,minY:r,maxX:n,maxY:a,width:n-e,height:a-r};return i},t}(),Ny=function(e,r){var n={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return n[r]},KG=function(e,r){var n=(r.x2-r.x1)*(e.y1-r.y1)-(r.y2-r.y1)*(e.x1-r.x1),a=(e.x2-e.x1)*(e.y1-r.y1)-(e.y2-e.y1)*(e.x1-r.x1),i=(r.y2-r.y1)*(e.x2-e.x1)-(r.x2-r.x1)*(e.y2-e.y1);if(i){var o=n/i,s=a/i;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},GA=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=0,o=[],s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3];o[s]=xd({x:r.x1,y:r.y1},{x:r.x2,y:r.y2},{x:f,y:l},{x:c,y:h}),o[s]&&(i+=1)}return[o,i]},Oy=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3],d=KG(r,new $o(f,l,c,h));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,i=d0){for(var a=0,i=e;ar.x+r.width,i=e.y>r.y+r.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var Pa=Math.PI,A0=Math.sin,C0=Math.cos,sn=A0(Pa/8),un=C0(Pa/8),Dh=function(e,r){var n=e.getBBox(),a={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(r){var o=r.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),a=Us(a,o),i=Us(i,o)}var s=a.x,u=a.y,f=i.x,l=i.y;return{x:s,y:u,minX:s,minY:u,maxX:f,maxY:l,width:f-s,height:l-u}},$A=function(e){var r=e.sourceNode||e.targetNode,n=r.get("group"),a=n.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=r.getKeyShape(),o=i.getBBox(),s=e.loopCfg||{},u=s.dist||Math.max(o.width,o.height)*2,f=s.position||ft.defaultLoopPosition,l=[(o.minX+o.maxX)/2+a[6],(o.minY+o.maxY)/2+a[7]],c=[e.startPoint.x,e.startPoint.y],h=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,y=p*sn,m=p*un,b=g*sn,w=g*un,x=i.get("type"),E=Math.min(d/2,v/2),_=Math.min(d,v),S=s!=null&&s.pointPadding?Math.min(_,s==null?void 0:s.pointPadding):E;if(c[0]===h[0]&&c[1]===h[1]){switch(f){case"top":x==="circle"?(c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]):(c=[l[0]-S,l[1]-d],h=[l[0]+S,l[1]-d]);break;case"top-right":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]-m],h=[l[0]+w,l[1]-b]):(c=[l[0]+v-S,l[1]-d],h=[l[0]+v,l[1]-d+S]);break;case"right":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]-y],h=[l[0]+w,l[1]+b]):(c=[l[0]+v,l[1]-S],h=[l[0]+v,l[1]+S]);break;case"bottom-right":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]+y],h=[l[0]+b,l[1]+w]):(c=[l[0]+v,l[1]+d-S],h=[l[0]+v-S,l[1]+d]);break;case"bottom":p=d,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]+m],h=[l[0]-b,l[1]+w]):(c=[l[0]-S,l[1]+d],h=[l[0]+S,l[1]+d]);break;case"bottom-left":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]+m],h=[l[0]-w,l[1]+b]):(c=[l[0]-v,l[1]+d-S],h=[l[0]-v+S,l[1]+d]);break;case"left":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]+y],h=[l[0]-w,l[1]-b]):(c=[l[0]-v,l[1]-S],h=[l[0]-v,l[1]+S]);break;case"top-left":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]-y],h=[l[0]-b,l[1]-w]):(c=[l[0]-v+S,l[1]-d],h=[l[0]-v,l[1]-d+S]);break;default:p=v,g=v,y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]}if(s.clockwise===!1){var A=[c[0],c[1]];c=[h[0],h[1]],h=[A[0],A[1]]}}var M=[c[0]-l[0],c[1]-l[1]],C=(p+u)/p,I=(g+u)/g;s.clockwise===!1&&(C=(g+u)/g,I=(p+u)/p);var k=wn([0,0],M,C),O=[l[0]+k[0],l[1]+k[1]],B=[h[0]-l[0],h[1]-l[1]],L=wn([0,0],B,I),z=[l[0]+L[0],l[1]+L[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:h[0],y:h[1]},e.controlPoints=[{x:O[0],y:O[1]},{x:z[0],y:z[1]}],e},XA=function(e,r,n,a,i){var o=1e-4,s=[],u=e==null?void 0:e.getPoint(r);if(!u)return{x:0,y:0,angle:0};if(r1-o)s=e.getEndTangent();else{var f=e==null?void 0:e.getPoint(r+o);s.push([u.x,u.y]),s.push([f.x,f.y])}var l=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(l<0&&(l+=Pa*2),n&&(u.x+=C0(l)*n,u.y+=A0(l)*n),a){var c=l-Pa/2;l>1/2*Pa&&l<3*1/2*Pa&&(c-=Pa),u.x+=C0(c)*a,u.y+=A0(c)*a}var h={x:u.x,y:u.y,angle:l};return i?(l>.5*Pa&&l<1.5*Pa&&(l-=Pa),P({rotate:l},h)):h},oz=function t(e,r,n,a){if(a(e,r,n)===!1)return!1;if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return!1}return!0},sz=function t(e,r,n,a){if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return}return a(e,r,n)!==!1},bn=function(e,r){typeof r=="function"&&oz(e,null,-1,r)},Ra=function(e,r){typeof r=="function"&&sz(e,null,-1,r)},WA=function(e,r){return r*(iz[e]||1)},VA=function(e,r){var n=0,a=new RegExp("[一-龥]+");return e.split("").forEach(function(i){a.test(i)?n+=r:n+=WA(i,r)}),[n,r]},YA=function(e,r){return typeof r!="number"||r<=0||r>=e.length?e:e.substring(0,r)+"..."},T0=function(e,r){var n=[],a={},i={};e.forEach(function(u){i[u.id]=u}),e.forEach(function(u,f){var l=rr(u);l.itemType="combo",l.children=void 0,l.parentId===l.id?(console.warn("The parentId for combo ".concat(l.id," can not be the same as the combo's id")),delete l.parentId):l.parentId&&!i[l.parentId]&&(console.warn("The parent combo for combo ".concat(l.id," does not exist!")),delete l.parentId);var c=a[l.id];if(c){if(l.children=c.children,a[l.id]=l,c=l,!c.parentId){n.push(c);return}var h=a[c.parentId];if(h)h.children?h.children.push(l):h.children=[l];else{var d={id:c.parentId,children:[c]};a[c.parentId]=d,a[l.id]=l}return}if(Ye(u.parentId)){var v=a[u.parentId];if(v)v.children?v.children.push(l):v.children=[l],a[l.id]=l;else{var p={id:u.parentId,children:[l]};a[p.id]=p,a[l.id]=l}}else n.push(l),a[l.id]=l});var o={};(r||[]).forEach(function(u){o[u.id]=u;var f=a[u.comboId];if(f){var l={id:u.id,comboId:u.comboId};f.children?f.children.push(l):f.children=[l],l.itemType="node",a[u.id]=l}});var s=0;return n.forEach(function(u){u.depth=s+10,bn(u,function(f){var l,c=a[f.id].itemType;c==="node"?l=a[f.comboId]:l=a[f.parentId],l&&c==="node"?f.depth=s+1:f.depth=s+10,s-1&&i.splice(l,1),u||(o={id:r,itemType:"node",comboId:n},s[r]={children:void 0}),r){var c=!1;if(n){var h=0;(e||[]).forEach(function(v){c||bn(v,function(p){return n===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],h=p.depth,o.itemType==="node"?o.depth=h+2:o.depth=h+1,!1):!0})})}else(!n||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;bn(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},oh=function(e,r,n){var a={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var i=n==null?void 0:n.getModel(),o=i||{},s=o.x,u=o.y,f=o.fixSize,l=o.collapsed,c=o.fixCollapseSize,h=l?c:f,d=bt(h)?h:[h,h],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:u-g[1],maxX:s+g[0],maxY:u+g[1],x:s,y:u,width:v,height:p}}return e.forEach(function(y){var m=r.findById(y.id);if(!(!m||!m.isVisible())){m.set("bboxCanvasCache",void 0);var b=m.getCanvasBBox();b.x&&a.minX>b.minX&&(a.minX=b.minX),b.y&&a.minY>b.minY&&(a.minY=b.minY),b.x&&a.maxX2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return t}),r},k0=function(t,e){for(var r=[],n=0,a=t.length;a-2*!e>n;n+=2){var i=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?a-4===n?i[3]={x:+t[0],y:+t[1]}:a-2===n&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+t[n],y:+t[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r},uc=function(t,e,r,n,a){var i=[];if(a===null&&n===null&&(n=r),t=+t,e=+e,r=+r,n=+n,a!==null){var o=Math.PI/180,s=t+r*Math.cos(-n*o),u=t+r*Math.cos(-a*o),f=e+r*Math.sin(-n*o),l=e+r*Math.sin(-a*o);i=[["M",s,f],["A",r,r,0,+(a-n>180),0,u,l]]}else i=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return i},N0=function(t){if(t=zs(t),!t||!t.length)return[["M",0,0]];var e=[],r=0,n=0,a=0,i=0,o=0,s,u;t[0][0]==="M"&&(r=+t[0][1],n=+t[0][2],a=r,i=n,o++,e[0]=["M",r,n]);for(var f=t.length===3&&t[0][0]==="M"&&t[1][0].toUpperCase()==="R"&&t[2][0].toUpperCase()==="Z",l=void 0,c=void 0,h=o,d=t.length;h1&&(x=Math.sqrt(x),r=x*r,n=x*n);var E=r*r,_=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*b*b)/(E*w*w+_*b*b)));g=S*r*w/n+(t+s)/2,y=S*-n*b/r+(e+u)/2,v=Math.asin(((e-y)/n).toFixed(9)),p=Math.asin(((u-y)/n).toFixed(9)),v=tp&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var A=p-v;if(Math.abs(A)>l){var M=p,C=s,I=u;p=v+l*(o&&p>v?1:-1),s=g+r*Math.cos(p),u=y+n*Math.sin(p),h=qA(s,u,r,n,a,0,o,C,I,[p,M,g,y])}A=p-v;var k=Math.cos(v),O=Math.sin(v),B=Math.cos(p),L=Math.sin(p),z=Math.tan(A/4),X=4/3*r*z,R=4/3*n*z,V=[t,e],he=[t+X*O,e-R*k],ce=[s+X*L,u-R*B],le=[s,u];if(he[0]=2*V[0]-he[0],he[1]=2*V[1]-he[1],f)return[he,ce,le].concat(h);h=[he,ce,le].concat(h).join().split(",");for(var ie=[],Ie=0,qe=h.length;Ie7){b[w].shift();for(var x=b[w];x.length;)o[w]="A",n&&(s[w]="A"),b.splice(w++,0,["C"].concat(x.splice(0,6)));b.splice(w,1),l=Math.max(r.length,n&&n.length||0)}},d=function(b,w,x,E,_){b&&w&&b[_][0]==="M"&&w[_][0]!=="M"&&(w.splice(_,0,["M",E.x,E.y]),x.bx=0,x.by=0,x.x=b[_][1],x.y=b[_][2],l=Math.max(r.length,n&&n.length||0))};l=Math.max(r.length,n&&n.length||0);for(var v=0;v1?1:u<0?0:u;for(var f=u/2,l=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&u.push(d);continue}var p=c*c-4*h*l,g=Math.sqrt(p);if(!(p<0)){var y=(-c+g)/(2*l);y>0&&y<1&&u.push(y);var m=(-c-g)/(2*l);m>0&&m<1&&u.push(m)}}for(var b=u.length,w=b,x;b--;)d=u[b],x=1-d,f[0][b]=x*x*x*t+3*x*x*d*r+3*x*d*d*a+d*d*d*o,f[1][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*i+d*d*d*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=o,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},gz=function(t,e,r,n,a,i,o,s){if(!(Math.max(t,r)Math.max(a,o)||Math.max(e,n)Math.max(i,s))){var u=(t*n-e*r)*(a-o)-(t-r)*(a*s-i*o),f=(t*n-e*r)*(i-s)-(e-n)*(a*s-i*o),l=(t-r)*(i-s)-(e-n)*(a-o);if(l){var c=u/l,h=f/l,d=+c.toFixed(2),v=+h.toFixed(2);if(!(d<+Math.min(t,r).toFixed(2)||d>+Math.max(t,r).toFixed(2)||d<+Math.min(a,o).toFixed(2)||d>+Math.max(a,o).toFixed(2)||v<+Math.min(e,n).toFixed(2)||v>+Math.max(e,n).toFixed(2)||v<+Math.min(i,s).toFixed(2)||v>+Math.max(i,s).toFixed(2)))return{x:c,y:h}}}},Oi=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},ZA=function(t,e,r,n,a){if(a)return[["M",+t+ +a,e],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return i.parsePathArray=HA,i},L0=function(t,e,r,n){return t===null&&(t=e=r=n=0),e===null&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:ZA(t,e,r,n),vb:[t,e,r,n].join(" ")}},yz=function(t,e){return t=L0(t),e=L0(e),Oi(e,t.x,t.y)||Oi(e,t.x2,t.y)||Oi(e,t.x,t.y2)||Oi(e,t.x2,t.y2)||Oi(t,e.x,e.y)||Oi(t,e.x2,e.y)||Oi(t,e.x,e.y2)||Oi(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},Nw=function(t,e,r,n,a,i,o,s){bt(t)||(t=[t,e,r,n,a,i,o,s]);var u=pz.apply(null,t);return L0(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Ow=function(t,e,r,n,a,i,o,s,u){var f=1-u,l=Math.pow(f,3),c=Math.pow(f,2),h=u*u,d=h*u,v=l*t+c*3*u*r+f*3*u*u*a+d*o,p=l*e+c*3*u*n+f*3*u*u*i+d*s,g=t+2*u*(r-t)+h*(a-2*r+t),y=e+2*u*(n-e)+h*(i-2*n+e),m=r+2*u*(a-r)+h*(o-2*a+r),b=n+2*u*(i-n)+h*(s-2*i+n),w=f*t+u*r,x=f*e+u*n,E=f*a+u*o,_=f*i+u*s,S=90-Math.atan2(g-m,y-b)*180/Math.PI;return{x:v,y:p,m:{x:g,y},n:{x:m,y:b},start:{x:w,y:x},end:{x:E,y:_},alpha:S}},mz=function(t,e,r){var n=Nw(t),a=Nw(e);if(!yz(n,a))return[];for(var i=kw.apply(0,t),o=kw.apply(0,e),s=~~(i/8),u=~~(o/8),f=[],l=[],c={},h=[],d=0;d=0&&_<=1&&S>=0&&S<=1&&h.push({x:E.x,y:E.y,t1:_,t2:S})}}return h},bz=function(t,e,r){t=O0(t),e=O0(e);for(var n,a,i,o,s,u,f,l,c,h,d=r?0:[],v=0,p=t.length;v=3&&(c.length===3&&h.push("Q"),h=h.concat(c[1])),c.length===2&&h.push("L"),h=h.concat(c[c.length-1]),h});return l}var _z=function(t,e,r){if(r===1)return[[].concat(t)];var n=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")n=n.concat(Ez(t,e,r));else{var a=[].concat(t);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n},Sz=function(t,e){if(t.length===1)return t;var r=t.length-1,n=e.length-1,a=r/n,i=[];if(t.length===1&&t[0][0]==="M"){for(var o=0;o=0;u--)o=i[u].index,i[u].type==="add"?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}n=t.length;var c=a-n;if(n0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":t[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=cp(r,t[n-1],2);else{t[n]=e[n];break}t[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:t[n]=e[n]}return t};const Tz=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:k0,fillPath:Sz,fillPathByDiff:KA,formatPath:D0,intersection:wz,parsePathArray:HA,parsePathString:zs,pathToAbsolute:N0,pathToCurve:O0,rectPath:ZA},Symbol.toStringTag,{value:"Module"}));var JA=function(){function t(e,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=r,this.timeStamp=r.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function eC(t,e){var r=t.indexOf(e);r!==-1&&t.splice(r,1)}var Lw=typeof window<"u"&&typeof window.document<"u";function tC(t,e){if(t.isCanvas())return!0;for(var r=e.getParent(),n=!1;r;){if(r===t){n=!0;break}r=r.getParent()}return n}function P0(t){return t.cfg.visible&&t.cfg.capture}var Iz=function(t){jt(e,t);function e(r){var n=t.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=Et(a,r),n}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(r){return this.cfg[r]},e.prototype.set=function(r,n){this.cfg[r]=n},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(KS),Dw=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Dz:typeof navigator<"u"?Gz(navigator.userAgent):jz()}function Bz(t){return t!==""&&Fz.reduce(function(e,r){var n=r[0],a=r[1];if(e)return e;var i=a.exec(t);return!!i&&[n,i]},!1)}function Gz(t){var e=Bz(t);if(!e)return null;var r=e[0],n=e[1];if(r==="searchbot")return new Lz;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.lengtho.delay&&_e(e.toAttrs,function(s,u){i.call(o.toAttrs,u)&&(delete o.toAttrs[u],delete o.fromAttrs[u])})}),t}var aC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;n.attrs={};var a=n.getDefaultAttrs();return Et(a,r.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(r){},e.prototype.initAttrs=function(r){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var r,n=[],a=0;a0?i=Zz(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var a=this.get("animations");_e(a,function(i){r&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),a=r.getTime();return _e(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},e.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return _e(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},e.prototype.emitDelegation=function(r,n){var a=this,i=n.propagationPath;this.getEvents();var o;r==="mouseenter"?o=n.fromShape:r==="mouseleave"&&(o=n.toShape);for(var s=function(c){var h=i[c],d=h.get("name");if(d){if((h.isGroup()||h.isCanvas&&h.isCanvas())&&o&&tC(h,o))return"break";bt(d)?_e(d,function(v){a.emitDelegateEvent(h,v,n)}):u.emitDelegateEvent(h,d,n)}},u=this,f=0;f0)});o.length>0?_e(o,function(u){var f=u.getBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getCanvasBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});o.length>0?_e(o,function(u){var f=u.getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.children=[],r},e.prototype.onAttrChange=function(r,n,a){if(t.prototype.onAttrChange.call(this,r,n,a),r==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,r);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},e.prototype._applyChildrenMarix=function(r){var n=this.getChildren();_e(n,function(a){a.applyMatrix(r)})},e.prototype.addShape=function(){for(var r=[],n=0;n=0;s--){var u=r[s];if(P0(u)&&(u.isGroup()?o=u.getShape(n,a,i):u.isHit(n,a)&&(o=u)),o)break}return o},e.prototype.add=function(r){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=r.getParent();o&&Kz(o,r),r.set("parent",this),n&&iC(r,n),i&&oC(r,i),a.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},e.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var r=this.getChildren();_e(r,function(n,a){return n[R0]=a,n}),r.sort(Qz(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},e.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},e.prototype.getCount=function(){var r=this.getChildren();return r.length},e.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},e.prototype.findAll=function(r){var n=[],a=this.getChildren();return _e(a,function(i){r(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(r)))}),n},e.prototype.find=function(r){var n=null,a=this.getChildren();return _e(a,function(i){if(r(i)?n=i:i.isGroup()&&(n=i.find(r)),n)return!1}),n},e.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},e.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},e.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},e}(aC),Ks=0,ff=0,Xu=0,uC=1e3,Ph,lf,Rh=0,Xo=0,Ed=0,Pf=typeof performance=="object"&&performance.now?performance:Date,fC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function lC(){return Xo||(fC(Jz),Xo=Pf.now()+Ed)}function Jz(){Xo=0}function F0(){this._call=this._time=this._next=null}F0.prototype=cC.prototype={constructor:F0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?lC():+r)+(e==null?0:+e),!this._next&&lf!==this&&(lf?lf._next=this:Ph=this,lf=this),this._call=t,this._time=r,B0()},stop:function(){this._call&&(this._call=null,this._time=1/0,B0())}};function cC(t,e,r){var n=new F0;return n.restart(t,e,r),n}function e6(){lC(),++Ks;for(var t=Ph,e;t;)(e=Xo-t._time)>=0&&t._call.call(null,e),t=t._next;--Ks}function Gw(){Xo=(Rh=Pf.now())+Ed,Ks=ff=0;try{e6()}finally{Ks=0,r6(),Xo=0}}function t6(){var t=Pf.now(),e=t-Rh;e>uC&&(Ed-=e,Rh=t)}function r6(){for(var t,e=Ph,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ph=r);lf=t,B0(n)}function B0(t){if(!Ks){ff&&(ff=clearTimeout(ff));var e=t-Xo;e>24?(t<1/0&&(ff=setTimeout(Gw,t-Pf.now()-Ed)),Xu&&(Xu=clearInterval(Xu))):(Xu||(Rh=Pf.now(),Xu=setInterval(t6,uC)),Ks=1,fC(Gw))}}function Dy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function hC(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Jf(){}var Rf=.7,Fh=1/Rf,$s="\\s*([+-]?\\d+)\\s*",Ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",n6=/^#([0-9a-f]{3,8})$/,a6=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),i6=new RegExp(`^rgb\\(${Va},${Va},${Va}\\)$`),o6=new RegExp(`^rgba\\(${$s},${$s},${$s},${Ff}\\)$`),s6=new RegExp(`^rgba\\(${Va},${Va},${Va},${Ff}\\)$`),u6=new RegExp(`^hsl\\(${Ff},${Va},${Va}\\)$`),f6=new RegExp(`^hsla\\(${Ff},${Va},${Va},${Ff}\\)$`),zw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dy(Jf,Bf,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:jw,formatHex:jw,formatHex8:l6,formatHsl:c6,formatRgb:Uw,toString:Uw});function jw(){return this.rgb().formatHex()}function l6(){return this.rgb().formatHex8()}function c6(){return dC(this).formatHsl()}function Uw(){return this.rgb().formatRgb()}function Bf(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=n6.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?$w(e):r===3?new Nn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?lc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?lc(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=a6.exec(t))?new Nn(e[1],e[2],e[3],1):(e=i6.exec(t))?new Nn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=o6.exec(t))?lc(e[1],e[2],e[3],e[4]):(e=s6.exec(t))?lc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=u6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,1):(e=f6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,e[4]):zw.hasOwnProperty(t)?$w(zw[t]):t==="transparent"?new Nn(NaN,NaN,NaN,0):null}function $w(t){return new Nn(t>>16&255,t>>8&255,t&255,1)}function lc(t,e,r,n){return n<=0&&(t=e=r=NaN),new Nn(t,e,r,n)}function h6(t){return t instanceof Jf||(t=Bf(t)),t?(t=t.rgb(),new Nn(t.r,t.g,t.b,t.opacity)):new Nn}function G0(t,e,r,n){return arguments.length===1?h6(t):new Nn(t,e,r,n??1)}function Nn(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Dy(Nn,G0,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Nn(Bo(this.r),Bo(this.g),Bo(this.b),Bh(this.opacity))},displayable(){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:Xw,formatHex:Xw,formatHex8:d6,formatRgb:Ww,toString:Ww}));function Xw(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function d6(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ww(){const t=Bh(this.opacity);return`${t===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${t===1?")":`, ${t})`}`}function Bh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Po(t){return t=Bo(t),(t<16?"0":"")+t.toString(16)}function Vw(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ga(t,e,r,n)}function dC(t){if(t instanceof ga)return new ga(t.h,t.s,t.l,t.opacity);if(t instanceof Jf||(t=Bf(t)),!t)return new ga;if(t instanceof ga)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,s=i-a,u=(i+a)/2;return s?(e===i?o=(r-n)/s+(r0&&u<1?0:o,new ga(o,s,u,t.opacity)}function v6(t,e,r,n){return arguments.length===1?dC(t):new ga(t,e,r,n??1)}function ga(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Dy(ga,v6,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new ga(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new ga(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new Nn(dp(t>=240?t-240:t+120,a,n),dp(t,a,n),dp(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new ga(Yw(this.h),cc(this.s),cc(this.l),Bh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Bh(this.opacity);return`${t===1?"hsl(":"hsla("}${Yw(this.h)}, ${cc(this.s)*100}%, ${cc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Yw(t){return t=(t||0)%360,t<0?t+360:t}function cc(t){return Math.max(0,Math.min(1,t||0))}function dp(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Py=t=>()=>t;function p6(t,e){return function(r){return t+r*e}}function g6(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function y6(t){return(t=+t)==1?vC:function(e,r){return r-e?g6(e,r,t):Py(isNaN(e)?r:e)}}function vC(t,e){var r=e-t;return r?p6(t,r):Py(isNaN(t)?e:t)}const qw=function t(e){var r=y6(e);function n(a,i){var o=r((a=G0(a)).r,(i=G0(i)).r),s=r(a.g,i.g),u=r(a.b,i.b),f=vC(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=f(l),a+""}}return n.gamma=t,n}(1);function pC(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;ar&&(i=e.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:z0(n,a)})),r=vp.lastIndex;return rf.length?(u=zs(i[s]),f=zs(a[s]),f=KA(f,u),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u):e.pathFormatted||(u=zs(i[s]),f=zs(a[s]),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u,e.pathFormatted=!0),n[s]=[];for(var l=0;l0){for(var s=e.animators.length-1;s>=0;s--){if(n=e.animators[s],n.destroyed){e.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var u=a.length-1;u>=0;u--)i=a[u],r=nj(n,i,o),r&&(a.splice(u,1),r=!1,i.callback&&i.callback())}a.length===0&&e.removeAnimator(s)}var f=e.canvas.get("autoDraw");f||e.canvas.draw()}})},t.prototype.addAnimator=function(e){this.animators.push(e)},t.prototype.removeAnimator=function(e){this.animators.splice(e,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(r){r.stopAnimate(e)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),ij=40,ax=0,ix=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ox(t,e,r){r.name=e,r.target=t,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}function oj(t,e,r){if(r.bubbles){var n=void 0,a=!1;if(e==="mouseenter"?(n=r.fromShape,a=!0):e==="mouseleave"&&(a=!0,n=r.toShape),t.isCanvas()&&a)return;if(n&&tC(t,n)){r.bubbles=!1;return}r.name=e,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}}var sj=function(){function t(e){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;r._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&(r.dragging||r.currentShape)){var o=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,o,r.draggingShape)}},this._onDocumentMouseUp=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&r.dragging){var o=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,o,null),r._emitEvent("dragend",n,o,r.draggingShape),r._afterDrag(r.draggingShape,o,n)}},this.canvas=e.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(e,r,n,a,i,o){var s=new JA(e,r);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},t.prototype._getShape=function(e,r){return this.canvas.getShape(e.x,e.y,r)},t.prototype._getPointInfo=function(e){var r=this.canvas,n=r.getClientByEvent(e),a=r.getPointByEvent(e);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(e,r){var n=this._getPointInfo(r),a=this._getShape(n,r),i=this["_on"+e],o=!1;if(i)i.call(this,n,a,r);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,r,n,null,null,a),a&&this._emitEvent(e,r,n,a,null,a),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,r,n,s,s,null),this._emitEvent(e,r,n,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(e,r,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var u=this.canvas,f=u.get("el");f.style.cursor=a.attr("cursor")||u.get("cursor")}},t.prototype._onmousedown=function(e,r,n){n.button===ax&&(this.mousedownShape=r,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,r,null,null)},t.prototype._emitMouseoverEvents=function(e,r,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",e,r,n,n,a),this._emitEvent("mouseleave",e,r,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",e,r,a,n,a),this._emitEvent("mouseenter",e,r,a,n,a)))},t.prototype._emitDragoverEvents=function(e,r,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",e,r,n,n,a),this._emitEvent("dragenter",e,r,a,n,a)),i||this._emitEvent("dragover",e,r,a)):n&&this._emitEvent("dragleave",e,r,n,n,a),i&&this._emitEvent("dragover",e,r,a)},t.prototype._afterDrag=function(e,r,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(r,n);a!==e&&this._emitMouseoverEvents(n,r,e,a),this.currentShape=a},t.prototype._onmouseup=function(e,r,n){if(n.button===ax){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,e,r),this._emitEvent("dragend",n,e,a),this._afterDrag(a,e,n)):(this._emitEvent("mouseup",n,e,r),r===this.mousedownShape&&this._emitEvent("click",n,e,r),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(e,r,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,e,a,r,!0)},t.prototype._onmousemove=function(e,r,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,i,r,!1),this._emitEvent("drag",n,e,o);else{var s=this.mousedownPoint;if(s){var u=this.mousedownShape,f=n.timeStamp,l=f-this.mousedownTimeStamp,c=s.clientX-e.clientX,h=s.clientY-e.clientY,d=c*c+h*h;l>120||d>ij?u&&u.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!u&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r))}else this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)}},t.prototype._emitEvent=function(e,r,n,a,i,o){var s=this._getEventObj(e,r,n,a,i,o);if(a){s.shape=a,ox(a,e,s);for(var u=a.getParent();u;)u.emitDelegation(e,s),s.propagationStopped||oj(u,e,s),s.propagationPath.push(u),u=u.getParent()}else{var f=this.canvas;ox(f,e,s)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),sx="px",ux=rC(),uj=ux&&ux.name==="firefox",wC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},e.prototype.initContainer=function(){var r=this.get("container");Ye(r)&&(r=document.getElementById(r),this.set("container",r))},e.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var r=new sj({canvas:this});r.init(),this.set("eventController",r)},e.prototype.initTimeline=function(){var r=new aj(this);this.set("timeline",r)},e.prototype.setDOMSize=function(r,n){var a=this.get("el");Lw&&(a.style.width=r+sx,a.style.height=n+sx)},e.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");Lw&&n&&(n.style.cursor=r)},e.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(uj&&!Zt(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!Zt(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var a=this.getClientByEvent(r),i=a.x,o=a.y;return this.getPointByClient(i,o)},e.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},e.prototype.getPointByClient=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r-i.left,y:n-i.top}},e.prototype.getClientByPoint=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r+i.left,y:n+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},e.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(sC),xC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var r=t.prototype.clone.call(this),n=this.getChildren(),a=0;a=r&&a.minY<=n&&a.maxY>=n},e.prototype.afterAttrsChange=function(r){t.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},e.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},e.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},e.prototype.applyMatrix=function(r){t.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),a=r.minX,i=r.minY,o=r.maxX,s=r.maxY;if(n){var u=Do(n,[r.minX,r.minY]),f=Do(n,[r.maxX,r.minY]),l=Do(n,[r.minX,r.maxY]),c=Do(n,[r.maxX,r.maxY]);a=Math.min(u[0],f[0],l[0],c[0]),o=Math.max(u[0],f[0],l[0],c[0]),i=Math.min(u[1],f[1],l[1],c[1]),s=Math.max(u[1],f[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,v=d===void 0?0:d,p=h.shadowOffsetX,g=p===void 0?0:p,y=h.shadowOffsetY,m=y===void 0?0:y,b=a-v+g,w=o+v+g,x=i-v+m,E=s+v+m;a=Math.min(a,b),o=Math.max(o,w),i=Math.min(i,x),s=Math.max(s,E)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(r,n){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(r,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[r,n,1];o=this.invertFromMatrix(o);var s=o[0],u=o[1],f=this._isInBBox(s,u);return this.isOnlyHitBox()?f:!!(f&&!this.isClipped(s,u)&&(this.isInShape(s,u)||a&&a.isHit(s,u)||i&&i.isHit(s,u)))},e}(aC),_C=new Map;function Ja(t,e){_C.set(t,e)}function SC(t){return _C.get(t)}function MC(t){var e=t.attr(),r=e.x,n=e.y,a=e.width,i=e.height;return{x:r,y:n,width:a,height:i}}function AC(t){var e=t.attr(),r=e.x,n=e.y,a=e.r;return{x:r-a,y:n-a,width:a*2,height:a*2}}function xn(t,e,r,n){var a=t-r,i=e-n;return Math.sqrt(a*a+i*i)}function uh(t,e){return Math.abs(t-e)<.001}function pu(t,e){var r=Ha(t),n=Ha(e),a=qa(t),i=qa(e);return{x:r,y:n,width:a-r,height:i-n}}function _d(t){return(t+Math.PI*2)%(Math.PI*2)}const cn={box:function(t,e,r,n){return pu([t,r],[e,n])},length:function(t,e,r,n){return xn(t,e,r,n)},pointAt:function(t,e,r,n,a){return{x:(1-a)*t+a*r,y:(1-a)*e+a*n}},pointDistance:function(t,e,r,n,a,i){var o=(r-t)*(a-t)+(n-e)*(i-e);if(o<0)return xn(t,e,a,i);var s=(r-t)*(r-t)+(n-e)*(n-e);return o>s?xn(r,n,a,i):this.pointToLine(t,e,r,n,a,i)},pointToLine:function(t,e,r,n,a,i){var o=[r-t,n-e];if(xy(o,[0,0]))return Math.sqrt((a-t)*(a-t)+(i-e)*(i-e));var s=[-o[1],o[0]];Wi(s,s);var u=[a-t,i-e];return Math.abs(wy(u,s))},tangentAngle:function(t,e,r,n){return Math.atan2(n-e,r-t)}};var fj=1e-4;function CC(t,e,r,n,a,i){var o,s=1/0,u=[r,n],f=20;i&&i>200&&(f=i/10);for(var l=1/f,c=l/10,h=0;h<=f;h++){var d=h*l,v=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))],p=xn(u[0],u[1],v[0],v[1]);p=0&&p=0?[a]:[]}function lx(t,e,r,n){return 2*(1-n)*(e-t)+2*n*(r-e)}function TC(t,e,r,n,a,i,o){var s=Bi(t,r,a,o),u=Bi(e,n,i,o),f=cn.pointAt(t,e,r,n,o),l=cn.pointAt(r,n,a,i,o);return[[t,e,f.x,f.y,s,u],[s,u,l.x,l.y,a,i]]}function $0(t,e,r,n,a,i,o){if(o===0)return(xn(t,e,r,n)+xn(r,n,a,i)+xn(t,e,a,i))/2;var s=TC(t,e,r,n,a,i,.5),u=s[0],f=s[1];return u.push(o-1),f.push(o-1),$0.apply(null,u)+$0.apply(null,f)}const IC={box:function(t,e,r,n,a,i){var o=fx(t,r,a)[0],s=fx(e,n,i)[0],u=[t,a],f=[e,i];return o!==void 0&&u.push(Bi(t,r,a,o)),s!==void 0&&f.push(Bi(e,n,i,s)),pu(u,f)},length:function(t,e,r,n,a,i){return $0(t,e,r,n,a,i,3)},nearestPoint:function(t,e,r,n,a,i,o,s){return CC([t,r,a],[e,n,i],o,s,Bi)},pointDistance:function(t,e,r,n,a,i,o,s){var u=this.nearestPoint(t,e,r,n,a,i,o,s);return xn(u.x,u.y,o,s)},interpolationAt:Bi,pointAt:function(t,e,r,n,a,i,o){return{x:Bi(t,r,a,o),y:Bi(e,n,i,o)}},divide:function(t,e,r,n,a,i,o){return TC(t,e,r,n,a,i,o)},tangentAngle:function(t,e,r,n,a,i,o){var s=lx(t,r,a,o),u=lx(e,n,i,o),f=Math.atan2(u,s);return _d(f)}};function Gi(t,e,r,n,a){var i=1-a;return i*i*i*t+3*e*a*i*i+3*r*a*a*i+n*a*a*a}function cx(t,e,r,n,a){var i=1-a;return 3*(i*i*(e-t)+2*i*a*(r-e)+a*a*(n-r))}function pp(t,e,r,n){var a=-3*t+9*e-9*r+3*n,i=6*t-12*e+6*r,o=3*e-3*t,s=[],u,f,l;if(uh(a,0))uh(i,0)||(u=-o/i,u>=0&&u<=1&&s.push(u));else{var c=i*i-4*a*o;uh(c,0)?s.push(-i/(2*a)):c>0&&(l=Math.sqrt(c),u=(-i+l)/(2*a),f=(-i-l)/(2*a),u>=0&&u<=1&&s.push(u),f>=0&&f<=1&&s.push(f))}return s}function kC(t,e,r,n,a,i,o,s,u){var f=Gi(t,r,a,o,u),l=Gi(e,n,i,s,u),c=cn.pointAt(t,e,r,n,u),h=cn.pointAt(r,n,a,i,u),d=cn.pointAt(a,i,o,s,u),v=cn.pointAt(c.x,c.y,h.x,h.y,u),p=cn.pointAt(h.x,h.y,d.x,d.y,u);return[[t,e,c.x,c.y,v.x,v.y,f,l],[f,l,p.x,p.y,d.x,d.y,o,s]]}function X0(t,e,r,n,a,i,o,s,u){if(u===0)return lj([t,r,a,o],[e,n,i,s]);var f=kC(t,e,r,n,a,i,o,s,.5),l=f[0],c=f[1];return l.push(u-1),c.push(u-1),X0.apply(null,l)+X0.apply(null,c)}const xf={extrema:pp,box:function(t,e,r,n,a,i,o,s){for(var u=[t,o],f=[e,s],l=pp(t,r,a,o),c=pp(e,n,i,s),h=0;h0?r:r*-1}const cj={box:function(t,e,r,n){return{x:t-r,y:e-n,width:r*2,height:n*2}},length:function(t,e,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(t,e,r,n,a,i){var o=r,s=n;if(o===0||s===0)return{x:t,y:e};for(var u=a-t,f=i-e,l=Math.abs(u),c=Math.abs(f),h=o*o,d=s*s,v=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(v),g=s*Math.sin(v);var m=(h-d)*Math.pow(Math.cos(v),3)/o,b=(d-h)*Math.pow(Math.sin(v),3)/s,w=p-m,x=g-b,E=l-m,_=c-b,S=Math.hypot(x,w),A=Math.hypot(_,E),M=S*Math.asin((w*_-x*E)/(S*A)),C=M/Math.sqrt(h+d-p*p-g*g);v+=C,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+hx(p,u),y:e+hx(g,f)}},pointDistance:function(t,e,r,n,a,i){var o=this.nearestPoint(t,e,r,n,a,i);return xn(o.x,o.y,a,i)},pointAt:function(t,e,r,n,a){var i=2*Math.PI*a;return{x:t+r*Math.cos(i),y:e+n*Math.sin(i)}},tangentAngle:function(t,e,r,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-r*Math.sin(i));return _d(o)}};function hj(t,e,r,n,a,i,o,s){return-1*r*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function dj(t,e,r,n,a,i,o,s){return-1*r*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function vj(t,e,r){return Math.atan(-e/t*Math.tan(r))}function pj(t,e,r){return Math.atan(e/(t*Math.tan(r)))}function dx(t,e,r,n,a,i){return r*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+t}function vx(t,e,r,n,a,i){return r*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+e}function gj(t,e,r,n){var a=Math.atan2(n*t,r*e);return(a+Math.PI*2)%(Math.PI*2)}function px(t,e,r){return{x:t*Math.cos(r),y:e*Math.sin(r)}}function gx(t,e,r){var n=Math.cos(r),a=Math.sin(r);return[t*n-e*a,t*a+e*n]}const yj={box:function(t,e,r,n,a,i,o){for(var s=vj(r,n,a),u=1/0,f=-1/0,l=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var h=s+c;if&&(f=d)}for(var v=pj(r,n,a),p=1/0,g=-1/0,y=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var m=v+c;ig&&(g=b)}return{x:u,y:p,width:f-u,height:g-p}},length:function(t,e,r,n,a,i,o){},nearestPoint:function(t,e,r,n,a,i,o,s,u){var f=gx(s-t,u-e,-a),l=f[0],c=f[1],h=cj.nearestPoint(0,0,r,n,l,c),d=gj(r,n,h.x,h.y);do&&(h=px(r,n,o));var v=gx(h.x,h.y,a);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,r,n,a,i,o,s,u){var f=this.nearestPoint(t,e,r,n,s,u);return xn(f.x,f.y,s,u)},pointAt:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i;return{x:dx(t,e,r,n,a,u),y:vx(t,e,r,n,a,u)}},tangentAngle:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i,f=hj(t,e,r,n,a,i,o,u),l=dj(t,e,r,n,a,i,o,u);return _d(Math.atan2(l,f))}};function NC(t){for(var e=0,r=[],n=0;n1||e<0||t.length<2)return null;var r=NC(t),n=r.segments,a=r.totalLength;if(a===0)return{x:t[0][0],y:t[0][1]};for(var i=0,o=null,s=0;s=i&&e<=i+c){var h=(e-i)/c;o=cn.pointAt(f[0],f[1],l[0],l[1],h);break}i+=c}return o}function wj(t,e){if(e>1||e<0||t.length<2)return 0;for(var r=NC(t),n=r.segments,a=r.totalLength,i=0,o=0,s=0;s=i&&e<=i+c){o=Math.atan2(l[1]-f[1],l[0]-f[0]);break}i+=c}return o}function xj(t,e,r){for(var n=1/0,a=0;a1){var a=Sj(e,r);return e*n+a*(n-1)}return e}function Sj(t,e){return e?e-t:t*.14}function Mj(t,e){var r=LC(),n=0;if(Zt(t)||t==="")return n;if(r.save(),r.font=e,Ye(t)&&t.includes(` +`)){var a=t.split(` +`);_e(a,function(i){var o=r.measureText(i).width;n1){var a=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=a}_e(r,function(i,o){isNaN(i)||(r[o]=+i)}),e[n]=r}),e}function kj(t,e,r,n){var a=[],i=!!n,o,s,u,f,l,c,h;if(i){u=n[0],f=n[1];for(var d=0,v=t.length;d2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),r}var Dj=/[a-z]/;function mx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function RC(t){var e=W0(t);if(!e||!e.length)return[["M",0,0]];for(var r=!1,n=0;n=0){r=!0;break}}if(!r)return e;var i=[],o=0,s=0,u=0,f=0,l=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],u=o,f=s,l++,i[0]=["M",o,s]);for(var n=l,h=e.length;n1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=bx([1,0],w),_=bx(w,x);return V0(w,x)<=-1&&(_=Math.PI),V0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:Y0(t,[f,l])?0:r,ry:Y0(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}function wx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function FC(t){t=Ij(t);for(var e=[],r=null,n=null,a=null,i=0,o=t.length,s=0;sMath.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var c={xExtra:Math.cos(u/2-f)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(l-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0};return c}function Fj(t){var e=t.attr(),r=e.path,n=e.stroke,a=n?e.lineWidth:0,i=t.get("segments")||FC(r),o=Rj(i,a),s=o.x,u=o.y,f=o.width,l=o.height,c={minX:s,minY:u,maxX:s+f,maxY:u+l};return c=zy(t,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function Bj(t){var e=t.attr(),r=e.x1,n=e.y1,a=e.x2,i=e.y2,o=Math.min(r,a),s=Math.max(r,a),u=Math.min(n,i),f=Math.max(n,i),l={minX:o,maxX:s,minY:u,maxY:f};return l=zy(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}function Gj(t){var e=t.attr(),r=e.x,n=e.y,a=e.rx,i=e.ry;return{x:r-a,y:n-i,width:a*2,height:i*2}}Ja("rect",MC);Ja("image",MC);Ja("circle",AC);Ja("marker",AC);Ja("polyline",Ej);Ja("polygon",_j);Ja("text",Aj);Ja("path",Fj);Ja("line",Bj);Ja("ellipse",Gj);var zj=function(t){jt(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.item=n.item,a.canvasX=n.canvasX,a.canvasY=n.canvasY,a.wheelDelta=n.wheelDelta,a.detail=n.detail,a}return e}(JA),q0=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},jy=function(e){if(bt(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(Ot(e))return[e,e,e,e];if(Ye(e)){var r=parseInt(e,10);return[r,r,r,r]}return[0,0,0,0]},jj=function(e){var r=new zj(e.type,e);return r.clientX=e.clientX,r.clientY=e.clientY,r.x=e.x,r.y=e.y,r.target=e.target,r.currentTarget=e.currentTarget,r.bubbles=!0,r.item=e.item,r},Uj=function(e){if(!e)return!1;for(var r=9,n=[1,0,0,0,1,0,0,0,1],a=0;an&&(n=c),h>i&&(i=h)}var d=Math.floor(r),v=Math.floor(a),p=Math.ceil(n)-Math.floor(r),g=Math.ceil(i)-Math.floor(a);return{x:d,y:v,width:p,height:g,minX:r,minY:a,maxX:n,maxY:i}},$j=function(e,r,n,a,i){r===void 0&&(r=15),n===void 0&&(n="quadratic"),a===void 0&&(a=void 0),i===void 0&&(i=void 0);for(var o=e.length,s=r*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},l=[],c={},h=0;h=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}to.angleTo=qj;function Hj(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}to.vertical=Hj;var Zj=function(){function t(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return t.prototype.getViewCenter=function(){var e=this.getFormatPadding(),r=this.graph,n=this.graph.get("width"),a=r.get("height");return{x:(n-e[1]-e[3])/2+e[3],y:(a-e[0]-e[2])/2+e[0]}},t.prototype.fitCenter=function(e,r){var n=this.graph,a=n.get("group"),i,o=n.getNodes();if(o.length>n.get("optimizeThreshold")){var s=1/0,u=1/0,f=-1/0,l=-1/0;o.forEach(function(w){var x=w.getModel(),E=x.x,_=x.y;s>E&&(s=E),u>_&&(u=_),fg&&(y=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var m=xx(d,[["t",-i.x,-i.y],["s",y,y],["t",i.x,i.y]]),b=Df({animateCfg:n,callback:function(){e.setMatrix(m),f.emit("viewportchange",{action:"translate",matrix:d}),f.emit("viewportchange",{action:"zoom",matrix:m})}});e.stopAnimate(),e.setMatrix(r),e.animate(function(w){return{matrix:M0(r,m,w)}},b)}},t.prototype.fitView=function(e,r){var n=this.graph,a=this.getFormatPadding(),i=n.get("width"),o=n.get("height"),s=n.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var f,l=n.getNodes();if(l.length>n.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,v=-1/0;l.forEach(function(E){var _=E.getModel(),S=_.x,A=_.y;c>S&&(c=S),h>A&&(h=A),dm&&(b=m),e)this.animatedFitView(s,u,r,f,p,g,b,!0);else{var w=p.x-g.x,x=p.y-g.y;if(Fa(w)||Fa(x))return;n.translate(w,x),n.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b)}}},t.prototype.fitViewByRules=function(e,r,n){var a=e.onlyOutOfViewPort,i=a===void 0?!1:a,o=e.direction,s=o===void 0?"both":o,u=e.ratioRule,f=u===void 0?"min":u,l=this.graph,c=this.getFormatPadding(),h=l.get("width"),d=l.get("height"),v=l.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,y=l.getNodes();if(y.length>l.get("optimizeThreshold")){var m=1/0,b=1/0,w=-1/0,x=-1/0;y.forEach(function(O){var B=O.getModel(),L=B.x,z=B.y;m>L&&(m=L),b>z&&(b=z),wc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),y={x:c.x+c.width/2,y:c.y+c.height/2},m=(s-o[1]-o[3])/c.width,b=(u-o[0]-o[2])/c.height,w=m;m>b&&(w=b),n?this.animatedFitView(f,l,a,c,g,y,w,r):(i.translate(g.x-y.x,g.y-y.y),r&&!i.zoom(w,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",w))}}},t.prototype.changeSize=function(e,r){var n=this.graph;if(!Ot(e)||!Ot(r))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:e,height:r});var a=n.get("canvas");a.changeSize(e,r);var i=n.get("plugins");i.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Ex(t){if(typeof t!="string")return t;var e=function(_){if(typeof _!="string")return _;try{return JSON.parse(_.trim())}catch{return _.trim()}},r=e(t);if(typeof r!="string")return r;for(var n=function(_){return _[_.length-1]},a=t.trim(),i=[],o=[],s=function(){for(var _=[],S=0;S=0&&(i.height=o),s>=0&&(i.width=s),a.marginTop&&(i.y+=a.marginTop),a.marginLeft&&(i.x+=a.marginLeft),i}function XC(t,e){var r;e===void 0&&(e={x:0,y:0});var n=P({x:0,y:0,width:0,height:0},e);if(!((r=t.children)===null||r===void 0)&&r.length){var a=t.attrs,i=a===void 0?{}:a,o=i.marginTop,s=P({},e);o&&(s.y+=o);for(var u=0;un.width&&(n.width=l.width+l.x),l.height+l.y>n.height&&(n.height=l.height+l.y)}}}return t.bbox=Jj(t,e,n),t.attrs=P(P({},t.attrs),t.bbox),t}function WC(t,e){var r,n,a,i,o=(t||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:o,key:s};if(t&&!e)return{action:"add",val:t,type:o};if(!t&&!e)return{action:"same",type:o};var u=[];if(((r=t.children)===null||r===void 0?void 0:r.length)>0||((n=e.children)===null||n===void 0?void 0:n.length)>0)for(var f=Math.max((a=t.children)===null||a===void 0?void 0:a.length,(i=e.children)===null||i===void 0?void 0:i.length),l=e.children||[],c=t.children||[],h=0;h"u"?a=q0(i):typeof a!="string"&&(a=String(a)),this.get("model").id=a,this.set("id",a);var o=e.group;o&&(o.set("item",this),o.set("id",a)),this.init(),this.draw();var s=n.shape||n.type||(i==="edge"?"line":"circle"),u=this.get("shapeFactory");if(u&&u[s]){var f=u[s].options;if(f&&f.stateStyles){var l=this.get("styles")||n.stateStyles;l=_r({},f.stateStyles,l),this.set("styles",l)}}}return t.prototype.calculateBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var e=this,r=e.get("shapeFactory"),n=e.get("group"),a=e.get("model");n.clear();var i=a.visible;if(i!==void 0&&!i&&e.changeVisibility(i),!!r){e.updatePosition(a);var o=e.getShapeCfg(a),s=o.type,u=r.draw(s,o,n);u&&(e.set("keyShape",u),u.set("isKeyShape",!0),u.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(r,s)}},t.prototype.setOriginStyle=function(){var e=this.get("group"),r=e.get("children"),n=this.getKeyShape(),a=this,i=n.get("name");if(this.get("originStyle")){var d=this.get("originStyle");i&&!d[i]&&(d[i]={});for(var v=this.getCurrentStatesStyle(),p=function(y){var m=r[y],b=m.get("name"),w=m.attr();if(b&&b!==i){var x=v[b];d[b]||(d[b]={}),x?Object.keys(w).forEach(function(S){var A=w[S];A!==x[S]&&(d[b][S]=A)}):d[b]=m.get("type")!=="image"?rr(w):a.getShapeStyleByName(b)}else{var E=m.attr(),_={};Object.keys(v).forEach(function(S){var A=v[S];(S===i||!ln(A))&&(_[S]=A)}),Object.keys(E).forEach(function(S){var A=E[S];_[S]!==A&&(i?d[i][S]=A:d[S]=A)})}},s=0;s-1)return;n.push(i)}else u>-1&&n.splice(u,1)}else if(Ye(r)){var f=n.filter(function(h){return h.includes(o)});f.length>0&&this.clearStates(f),s=s.filter(function(h){return!h.includes(o)}),s.push(i),this.set("states",s)}if(a){var l=this.get("model"),c=l.type;a.setState(c,e,r,this)}},t.prototype.clearStates=function(e){var r=this,n=r.getStates(),a=r.get("shapeFactory"),i=r.get("model"),o=i.type;e||(e=n),Ye(e)&&(e=[e]);var s=n.filter(function(u){return e.indexOf(u)===-1});r.set("states",s),e.forEach(function(u){a.setState(o,u,!1,r)})},t.prototype.setOptimize=function(e){this.optimize=e},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(e){var r=this.getStates();return r.indexOf(e)>=0},t.prototype.refresh=function(e){var r=this.get("model");this.updatePosition(r),this.updateShape(e),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(e){},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model");if(r==="move")this.updatePosition(e);else{var a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o={x:n.x,y:n.y};e.x=isNaN(+e.x)?n.x:+e.x,e.y=isNaN(+e.y)?n.y:+e.y;var s=this.get("styles");if(e.stateStyles){var u=e.stateStyles;Et(s,u),delete e.stateStyles}Object.assign(n,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(r)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(e){var r=this.get("shapeFactory"),n=this.get("model"),a=n.type;if(r.shouldUpdate(a)&&a===this.get("currentShape")){var i=this.getShapeCfg(n,e);r.baseUpdate(a,i,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(r,a)},t.prototype.updatePosition=function(e){var r=this.get("model"),n=isNaN(+e.x)?+r.x:+e.x,a=isNaN(+e.y)?+r.y:+e.y,i=this.get("group");if(isNaN(n)||isNaN(a))return!1;r.x=n,r.y=a;var o=i.getMatrix();return o&&o[6]===n&&o[7]===a?!1:(i.resetMatrix(),RA(i,{x:n,y:a}),this.clearCache(),!0)},t.prototype.getBBox=function(){var e=this.get(bp);return e||(e=this.calculateBBox(),this.set(bp,e)),e},t.prototype.getCanvasBBox=function(){var e=this.get(wp);return e||(e=this.calculateCanvasBBox(),this.set(wp,e)),e},t.prototype.toFront=function(){var e=this.get("group");e.toFront()},t.prototype.toBack=function(){var e=this.get("group");e.toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(e){var r=this.get("group");e?r.show():r.hide(),this.set("visible",e)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(e){var r=this.get("group");r&&r.set("capture",e)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),r.remove(),this._cfg=null,this.destroyed=!0}},t}(),pc={source:"start",target:"end"},ka="Node",bs="Point",t8="Anchor",r8=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(r,n){var a=pc[r]+bs,i=r+ka,o=this.get(i);o&&!o.destroyed&&o.removeEdge(this),ln(n)?(this.set(a,n),this.set(i,null)):n&&(n.addEdge(this),this.set(i,n),this.set(a,null))},e.prototype.getLinkPoint=function(r,n,a){var i=pc[r]+bs,o=r+ka,s=this.get(i);if(!s){var u=this.get(o),f=r+t8,l=this.getPrePoint(r,a),c=n[f];Zt(c)||(s=u.getLinkPointByAnchor(c)),s=s||u.getLinkPoint(l),Zt(s.index)||this.set("".concat(r,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(r,n){if(n&&n.length){var a=r==="source"?0:n.length-1;return n[a]}var i=r==="source"?"target":"source";return this.getEndPoint(i)},e.prototype.getEndPoint=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);return i&&!i.destroyed?i.get("model"):this.get(a)},e.prototype.getControlPointsByCenter=function(r){var n=this.getEndPoint("source"),a=this.getEndPoint("target"),i=this.get("shapeFactory"),o=r.type;return i.getControlPoints(o,{startPoint:n,endPoint:a})},e.prototype.getEndCenter=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);if(i){var o=i.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(a)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(r,n){var a=this,i=a.get("linkCenter"),o=n!=null&&n.includes("move")?r:t.prototype.getShapeCfg.call(this,r);if(i)o.startPoint=a.getEndCenter("source"),o.endPoint=a.getEndCenter("target");else{var s=o.controlPoints||a.getControlPointsByCenter(o);o.startPoint=a.getLinkPoint("source",r,s),o.endPoint=a.getLinkPoint("target",r,s)}return o.sourceNode=a.get("sourceNode"),o.targetNode=a.get("targetNode"),o},e.prototype.getModel=function(){var r=this.get("model"),n=this.get("source".concat(ka)),a=this.get("target".concat(ka));return n?delete r["source".concat(ka)]:r.source=this.get("start".concat(bs)),a?delete r["target".concat(ka)]:r.target=this.get("end".concat(bs)),!Ye(r.source)&&!ln(r.source)&&(r.source=r.source.getID()),!Ye(r.target)&&!ln(r.target)&&(r.target=r.target.getID()),r},e.prototype.setSource=function(r){this.setEnd("source",r),this.set("source",r)},e.prototype.setTarget=function(r){this.setEnd("target",r),this.set("target",r)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(r,n){n===void 0&&(n=void 0);var a=this.get("model"),i=a.visible,o=r.visible;i!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),u=this.get("target");if(!(!s||s.destroyed||!u||u.destroyed)){var f=this.get("styles");if(r.stateStyles){var l=r.stateStyles;Et(f,l),delete r.stateStyles}Object.assign(a,r),this.updateShape(n),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var r=this.get("source".concat(ka)),n=this.get("target".concat(ka));r&&!r.destroyed&&r.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(VC),xp="anchorPointsCache",n8="bboxCache",YC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(r,n){for(var a=0,i=r[0],o=Oh(r[0],n),s=0;s-1&&n.splice(a,1)},e.prototype.clearCache=function(){this.set(n8,null),this.set(xp,null)},e.prototype.getUpdateType=function(r){var n,a,i,o,s;if(r){var u=!Zt(r.x),f=!Zt(r.y),l=Object.keys(r);if(l.length===1&&(u||f)||l.length===2&&u&&f)return"move";if(Ot(r.x)||Ot(r.y)||r.type||r.anchorPoints||r.size||r!=null&&r.style&&(!((n=r==null?void 0:r.style)===null||n===void 0)&&n.r||!((a=r==null?void 0:r.style)===null||a===void 0)&&a.width||!((i=r==null?void 0:r.style)===null||i===void 0)&&i.height||!((o=r==null?void 0:r.style)===null||o===void 0)&&o.rx||!((s=r==null?void 0:r.style)===null||s===void 0)&&s.ry))return"bbox|label";var c=l.includes("label")||l.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(r,n){var a=this;if(this.optimize){t.prototype.setState.call(this,r,n);return}this.runWithBBoxAffected(function(){return t.prototype.setState.call(a,r,n)})},e.prototype.clearStates=function(r){var n=this;if(this.optimize){t.prototype.clearStates.call(this,r);return}this.runWithBBoxAffected(function(){return t.prototype.clearStates.call(n,r)})},e.prototype.runWithBBoxAffected=function(r){var n=["r","width","height","rx","ry","lineWidth"],a=this.getKeyShape().attr(),i={};Object.keys(this.getKeyShape().attr()).forEach(function(f){n.includes(f)&&(i[f]=a[f])}),r();for(var o=this.getKeyShape().attr(),s=0;s-1?(n.splice(a,1),!0):!1}},e.prototype.removeNode=function(r){if(r){var n=this.getNodes(),a=n.indexOf(r);return a>-1?(n.splice(a,1),!0):!1}},e.prototype.getUpdateType=function(r){},e.prototype.getBBox=function(){this.set(Ax,null);var r=this.calculateCanvasBBox();return r},e.prototype.clearCache=function(){this.set(Mx,null),this.set(Ax,null),this.set(Cx,null)},e.prototype.destroy=function(){if(!this.destroyed){var r=this.get("animate"),n=this.get("group");r&&n.stopAnimate(),n.shapeMap={},this.clearCache(),this.set(gc,null),this.set("bbox",null),n.remove(),this._cfg=null,this.destroyed=!0}},e}(YC),yc="node",mc="edge",Tx="vedge",Wu="combo",i8="default",Ix="Mapper",ii="stateStyles",o8=function(){function t(e){var r=this;this.edgeToBeUpdateMap={},this.throttleRefresh=Ch(function(n){var a=r.graph;if(!(!a||a.get("destroyed"))){var i=r.edgeToBeUpdateMap;if(i){var o=Object.values(i);o.length&&(o.forEach(function(s){var u=s.edge;if(!(!u||u.destroyed)){var f=u.getSource(),l=u.getTarget();!f||f.destroyed||!l||l.destroyed||u.refresh(s.updateType)}}),r.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return t.prototype.addItem=function(e,r){var n=this.graph,a=e===Tx?mc:e,i=n.get("".concat(a,"Group"))||n.get("group"),o=Zs(a),s=null,u=n.get(a+Zs(ii))||{},f=n.get(i8+o);r[ii]&&(u=r[ii]),f&&_e(f,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},E,r[_]):bt(E)?r[_]=r[_]||rr(f[_]):r[_]=r[_]||f[_]});var l=n.get(a+Ix);if(l){var c=l(r);c[ii]&&(u=c[ii],delete c[ii]),_e(c,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},r[_],E):r[_]=c[_]||r[_]})}if(n.emit("beforeadditem",{type:e,model:r}),e===mc||e===Tx){var h=void 0,d=void 0;if(h=r.source,d=r.target,h&&Ye(h)&&(h=n.findById(h)),d&&Ye(d)&&(d=n.findById(d)),!h||!d){console.warn("The source or target node of edge ".concat(r.id," does not exist!"));return}h.getType&&h.getType()==="combo"&&(r.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(r.isComboEdge=!0),s=new r8({model:r,source:h,target:d,styles:u,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(e===yc)s=new YC({model:r,styles:u,group:i.addGroup()});else if(e===Wu){var v=r.children,p=oh(v,n),g=void 0,y=void 0;if(isNaN(p.x)?isNaN(r.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(r.y)&&(y=Math.random()*100):y=p.y,isNaN(r.x)||isNaN(r.y))r.x=g,r.y=y;else{var m=r.x-g,b=r.y-y;this.updateComboSucceeds(r.id,m,b,v)}var w=i.addGroup();w.setZIndex(r.depth),s=new a8({model:r,styles:u,animate:n.get("animate"),bbox:r.collapsed?oh([],n):p,group:w}),!r.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var x=s.getModel();(v||[]).forEach(function(E){var _=n.findById(E.id);s.addChild(_),E.depth=x.depth+2})}if(s)return s.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(e,"s")).push(s),n.get("itemMap")[s.get("id")]=s,n.emit("afteradditem",{item:s,model:r}),s},t.prototype.updateItem=function(e,r){var n=this,a,i,o=this.graph;if(Ye(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var u=o.get(s+Ix),f=e.getModel(),l=f.x,c=f.y,h=e.getUpdateType(r);if(u){var d=_r({},f,r),v=u(d),p=_r({},f,v,r);v[ii]&&(e.set("styles",p[ii]),delete p[ii]),_e(p,function(M,C){r[C]=M})}else _e(r,function(M,C){f[C]&&gn(M)&&!bt(M)&&(r[C]=P(P({},f[C]),r[C]))});if(o.emit("beforeupdateitem",{item:e,cfg:r}),s===mc){if(r.source){var g=r.source;Ye(g)&&(g=o.findById(g)),e.setSource(g)}if(r.target){var y=r.target;Ye(y)&&(y=o.findById(y)),e.setTarget(y)}e.update(r)}else if(s===yc){e.update(r,h);var m=e.getEdges();h==="move"?_e(m,function(M){n.edgeToBeUpdateMap[M.getID()]={edge:M,updateType:h},n.throttleRefresh()}):h!=null&&h.includes("bbox")&&_e(m,function(M){M.refresh(h)})}else if(s===Wu){if(e.update(r,h),!isNaN(r.x)||!isNaN(r.y)){var b=r.x-l||0,w=r.y-c||0;this.updateComboSucceeds(f.id,b,w)}var x=e.getEdges(),E=(h==null?void 0:h.includes("bbox"))||h==="move";if(E&&s===Wu){var _=e.get("shapeFactory"),S=f.type||"circle",A=f.animate===void 0||r.animate===void 0?(i=(a=_[S])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:f.animate||r.animate;A?setTimeout(function(){if(!(!e||e.destroyed)){var M=e.getKeyShape();!M||M.destroyed||_e(x,function(C){C&&!C.destroyed&&C.refresh()})}},201):_e(x,function(M){M.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:r})}},t.prototype.updateCombo=function(e,r,n){var a=this,i,o,s=this.graph;if(Ye(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var u=e.getModel(),f=oh(r,s,e),l=f.x,c=f.y;e.set("bbox",f);var h=l,d=c;n?(h=isNaN(u.x)?l:u.x,d=isNaN(u.y)?c:u.y):(h=isNaN(l)?u.x:l,d=isNaN(c)?u.y:c),e.update({x:h,y:d});var v=e.get("shapeFactory"),p=u.type||"circle",g=u.animate===void 0?(o=(i=v[p])===null||i===void 0?void 0:i.options)===null||o===void 0?void 0:o.animate:u.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var y=e.getKeyShape();!y||y.destroyed||(e.getShapeCfg(u),a.updateComboEdges(e))}},201):this.updateComboEdges(e)}},t.prototype.updateComboEdges=function(e){for(var r,n,a=e.getEdges()||[],i=0;i-1&&o.splice(s,1),i===mc){var u=n.get("v".concat(i,"s")),f=u.indexOf(e);f>-1&&u.splice(f,1)}var l=e.get("id"),c=n.get("itemMap");delete c[l];var h=n.get("comboTrees"),d=e.get("id");if(i===yc){var v=e.getModel().comboId;if(h&&v){var p=h,g=!1;h.forEach(function(E){g||bn(E,function(_){if(_.id===d&&p){var S=p.indexOf(_);return p.splice(S,1),g=!0,!1}return p=_.children,!0})})}for(var y=e.getEdges(),m=y.length-1;m>=0;m--)n.removeItem(y[m],!1);v&&n.updateCombo(v)}else if(i===Wu){var b=e.getModel().parentId,w,x=!1;(h||[]).forEach(function(_){x||bn(_,function(S){return S.id===d?(w=S,x=!0,!1):!0})}),w.removed=!0,w&&w.children&&w.children.forEach(function(_){r.removeItem(_.id)});for(var y=e.getEdges(),m=y.length;m>=0;m--)n.removeItem(y[m],!1);b&&n.updateCombo(b)}e.destroy(),n.emit("afterremoveitem",{item:a,type:i})}},t.prototype.setItemState=function(e,r,n){var a=this.graph,i=r;Ye(n)&&(i="".concat(r,":").concat(n)),!(e.hasState(i)===n&&n||Ye(n)&&e.hasState(i))&&(a.emit("beforeitemstatechange",{item:e,state:i,enabled:n}),e.setState(r,n),a.autoPaint(),a.emit("afteritemstatechange",{item:e,state:i,enabled:n}))},t.prototype.priorityState=function(e,r){var n=this.graph,a=e;Ye(e)&&(a=n.findById(e)),this.setItemState(a,r,!1),this.setItemState(a,r,!0)},t.prototype.clearItemStates=function(e,r){var n=this.graph;Ye(e)&&(e=n.findById(e)),n.emit("beforeitemstatesclear",{item:e,states:r}),e.clearStates(r),n.emit("afteritemstatesclear",{item:e,states:r})},t.prototype.refreshItem=function(e){var r=this.graph;Ye(e)&&(e=r.findById(e)),r.emit("beforeitemrefresh",{item:e}),e.refresh(),r.emit("afteritemrefresh",{item:e})},t.prototype.addCombos=function(e,r){var n=this,a=this.graph;(e||[]).forEach(function(o){Ra(o,function(s){var u;return r.forEach(function(f){f.id===s.id&&(f.children=s.children,f.depth=s.depth,u=f)}),u&&n.addItem("combo",u),!0})});var i=a.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(e,r){var n=this,a=this.graph;if(Ye(e)&&(e=a.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(a.emit("beforeitemvisibilitychange",{item:e,visible:r}),e.changeVisibility(r),e.getType&&e.getType()===yc){var i=e.getEdges();_e(i,function(l){r&&!(l.get("source").isVisible()&&l.get("target").isVisible())||n.changeItemVisibility(l,r)})}else if(e.getType&&e.getType()===Wu){var o=a.get("comboTrees"),s=e.get("id"),u=[],f=!1;(o||[]).forEach(function(c){f||!c.children||c.children.length===0||bn(c,function(h){return h.id===s?(u=h.children,f=!0,!1):!0})}),u&&(!r||r&&!e.getModel().collapsed)&&u.forEach(function(c){var h=a.findById(c.id);n.changeItemVisibility(h,r)});var i=e.getEdges();_e(i,function(c){r&&!(c.get("source").isVisible()&&c.get("target").isVisible())||n.changeItemVisibility(c,r)})}return a.emit("afteritemvisibilitychange",{item:e,visible:r}),e},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),s8=function(){function t(e){this.graph=e,this.destroyed=!1}return t.prototype.updateState=function(e,r,n){var a=this.graph.get("states"),i=r;Ye(n)&&(i="".concat(r,":").concat(n)),a[i]||(a[i]=[]),n?a[i].push(e):a[i]=a[i].filter(function(o){return o!==e}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:a})},t.prototype.updateStates=function(e,r,n){var a=this.graph.get("states"),i=Ye(r)?[r]:r;i.forEach(function(o){var s=o;a[s]||(a[s]=[]),Ye(n)&&(s="".concat(o,":").concat(n)),n?a[s].push(e):a[s]=a[s].filter(function(u){return u!==e})}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:r})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),u8=function(e,r){return!e||!r?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,a){if(n.charAt(0)==="\\")return n.slice(1);var i=r[a];return i===0&&(i="0"),i||""})},qC=function(e){var r=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var n=0,a=e;n0?o-1:r-1,u=Wi([0,0],fn([0,0],i[s].v,wn([0,0],i[o].v,-1)));i[o].p=fn([0,0],i[o].p,wn([0,0],u,e))}return i.map(function(f){var l=f.p;return{x:l[0],y:l[1]}})}var l8=function(e,r){for(var n=[],a=0;a<5;a++){var i=Math.cos((18+72*a)/180*Math.PI)*e,o=Math.sin((18+72*a)/180*Math.PI)*e,s=Math.cos((54+72*a)/180*Math.PI)*r,u=Math.sin((54+72*a)/180*Math.PI)*r;a===0?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",s,-u])}return n.push(["Z"]),n};const c8=Object.freeze(Object.defineProperty({__proto__:null,getClosedSpline:K0,getControlPoint:zh,getSpline:qC,getStarPath:l8,paddedHull:HC,pathToPoints:Z0,pointsToPolygon:f8,roundedHull:Q0},Symbol.toStringTag,{value:"Module"}));var Lx=function(e,r,n){return(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y)},Dx=function(e){var r=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});r.sort(function(c,h){return c.x===h.x?c.y-h.y:c.x-h.x});for(var n={},a=r.length-1;a>=0;a--){var i=r[a],o=i.x,s=i.y;n["".concat(o,"-").concat(s)]&&r.splice(a,1),n["".concat(o,"-").concat(s)]=!0}if(r.length===1)return r;for(var u=[],a=0;a=2&&Lx(u[u.length-2],u[u.length-1],r[a])<=0;)u.pop();u.push(r[a])}for(var f=[],a=r.length-1;a>=0;a--){for(;f.length>=2&&Lx(f[f.length-2],f[f.length-1],r[a])<=0;)f.pop();f.push(r[a])}f.pop(),u.pop();var l=u.concat(f);return l},h8={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function d8(t,e,r){var n=!1,a=function(u,f){return e.cells[u+f*e.width]},i=function(u,f){var l=0;return a(u-1,f-1)>=r&&(l+=1),a(u,f-1)>r&&(l+=2),a(u-1,f)>r&&(l+=4),a(u,f)>r&&(l+=8),l},o=function(u,f){for(var l=u,c=f,h,d,v=0;v-1){if(!(t[0].x!==l||t[0].y!==c))return!0}else t.push({x:l,y:c});var p=i(l,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:l++;break;case 12:case 14:case 4:l--;break;case 6:h===0&&(d===-1?l-=1:l+=1);break;case 1:case 13:case 5:c--;break;case 9:h===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;sr&&i(s,u)!==15&&(n=o(s,u));return n}}var v8=function(e,r,n){var a=Math.ceil(e/n),i=Math.ceil(r/n),o=new Float32Array(Math.max(0,a*i)).fill(0);return{cells:o,width:a,height:i}},p8=function(e,r,n){var a=null,i=Number.POSITIVE_INFINITY;return r.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},u={x:o.getModel().x,y:o.getModel().y},f=Lh(s,u),l=new $o(s.x,s.y,u.x,u.y),c=n.reduce(function(h,d){return Oy(d,l)>0?h+1:h},0);f*Math.pow(c+1,2)=0&&o=1;)x/=1.5,E=Px(v,x,g,w),_=f(E,o)||f(E,i),S=l(E,r);E&&!_&&(!w||!S)&&(o.push(new $o(d.x1,d.y1,E.x,E.y)),o.push(new $o(E.x,E.y,d.x2,d.y2)),s=!0)};m(!0),s||m(!1)}}s||i.push(d),u+=1};!s&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};function y8(t,e,r,n,a){var i=p8(t,r,e);if(i===null)return[];var o=function(c){for(var h=[];c.length>0;){var d=c.pop();if(c.length===0){h.push(d);break}var v=c.pop(),p=new $o(d.x1,d.y1,v.x2,v.y2),g=ZC(e,p);g?(h.push(d),c.push(v)):c.push(p)}return h},s=new $o(t.getModel().x,t.getModel().y,i.getModel().x,i.getModel().y),u=g8(s,e,n,a),f=o(u);return f}var m8=function(e,r,n){var a=Object.assign(h8,n),i=zA(e.map(function(m){return{x:m.getModel().x,y:m.getModel().y}}));e=e.sort(function(m,b){return Lh({x:m.getModel().x,y:m.getModel().y},i)-Lh({x:b.getModel().x,y:b.getModel().y},i)});var o=[],s=[];e.forEach(function(m){var b=y8(m,r,o,a.maxRoutingIterations,a.morphBuffer);b.forEach(function(w){s.push(w)}),o.push(m)});for(var u=b8(e,s,a.nodeR0),f=v8(u.width,u.height,a.pixelGroupSize),l=[],c=[],h=0;h1)for(v=Math.floor(d.length/a.skip);v<3&&a.skip>1;)a.skip-=1,v=Math.floor(d.length/a.skip);for(var p=0,g=0;g0)a.nonMemberInfluenceFactor*=.8;else break}return c};function b8(t,e,r){var n={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},a=[];t.forEach(function(u){a.push(u.getBBox())}),e.forEach(function(u){a.push(u.getBBox())});for(var i=0,o=a;in.maxX?s.maxX:n.maxX)+r,n.maxY=(s.maxY>n.maxY?s.maxY:n.maxY)+r}return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.x=n.minX,n.y=n.minY,n}function w8(t,e,r,n,a,i){function o(d,v){var p=Math.floor((d-v)/i.pixelGroupSize);return p<0?0:p}function s(d,v){return d*i.pixelGroupSize+v}var u=(i.nodeR0-i.nodeR1)*(i.nodeR0-i.nodeR1),f=(i.edgeR0-i.edgeR1)*(i.edgeR0-i.edgeR1),l=function(v,p){var g=Math.min(o(v.minX,p+n.minX),a.width),y=Math.min(o(v.minY,p+n.minY),a.height),m=Math.min(o(v.maxX,-p+n.minX),a.width),b=Math.min(o(v.maxY,-p+n.minY),a.height);return[g,y,m,b]},c=function(v,p){for(var g=v.getBBox(),y=l(g,i.nodeR1),m=y[0],b=y[1],w=y[2],x=y[3],E=b;Eu.y?n?f.topLeft:f.bottomRight:n?f.topRight:f.bottomLeft:o.ys.x?n?f.topLeft:f.bottomRight:n?f.bottomLeft:f.topRight:i.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(e,r){var n,a,i;switch(this.type){case"round-convex":n=Dx(e),i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i);break;case"smooth-convex":n=Dx(e),n.length===2?(i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i)):n.length>2&&(i=HC(n.map(function(o){return[o.x,o.y]}),this.padding),a=K0(i));break;case"bubble":n=m8(e,r,this.cfg.bubbleCfg),a=n.length>=2&&K0(n);break}return a},t.prototype.render=function(){this.group.addShape("path",{attrs:P({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.members.push(e);var r=this.nonMembers.indexOf(e);return r>-1&&this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var r=this.members.indexOf(e);return r>-1&&this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.members.indexOf(e);return r>-1?(this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.removeNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.nonMembers.indexOf(e);return r>-1?(this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.updateData=function(e,r){var n=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(a){return Ye(a)?n.graph.findById(a):a})),r&&(this.nonMembers=r.map(function(a){return Ye(a)?n.graph.findById(a):a})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(e){var r=this.group.findById(this.id);r.attr(P({},e))},t.prototype.updateCfg=function(e){var r=this;this.cfg=_r(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(n){return Ye(n)?r.graph.findById(n):n})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(n){return Ye(n)?r.graph.findById(n):n})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(e){var r=this,n;Ye(e)?n=this.graph.findById(e):n=e;var a,i=n.getKeyShape();if(n.get("type")==="path")a=Z0(i.attr("path"));else{var o=i.getCanvasBBox();a=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return a=a.map(function(s){var u=r.graph.getPointByCanvas(s[0],s[1]);return[u.x,u.y]}),BA(a,Z0(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Vu=eo,E8="node",_8=function(t){jt(e,t);function e(r){var n=t.call(this)||this;return n.sortCombos=oy(function(){var a=n.get("comboSorted");if(!(!n||n.destroyed||a)){n.set("comboSorted",!0);var i=[],o={},s=n.get("comboTrees");(s||[]).forEach(function(f){bn(f,function(l){return i[l.depth]?i[l.depth].push(l.id):i[l.depth]=[l.id],o[l.id]=l.depth,!0})});var u=n.getEdges().concat(n.get("vedges"));(u||[]).forEach(function(f){var l=f.getModel(),c=o[l.source]||0,h=o[l.target]||0,d=Math.max(c,h);i[d]?i[d].push(l.id):i[d]=[l.id]}),i.forEach(function(f){if(!(!f||!f.length))for(var l=f.length-1;l>=0;l--){var c=n.findById(f[l]);c&&c.toFront()}})}},500,!1),n.cfg=_r(n.getDefaultCfg(),r),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Gs(n.cfg.maxStep),n.redoStack=new Gs(n.cfg.maxStep)),n}return e.prototype.init=function(){this.initCanvas();var r=new Zj(this),n=new cz(this),a=new o8(this),i=new s8(this);this.set({viewController:r,modeController:n,itemController:a,stateController:i}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var r=this.get("canvas");if(r){var n=r.get("el"),a=(n||{}).id,i=a===void 0?"g6":a,o=r.addGroup({id:"".concat(i,"-root"),className:ft.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(i,"-edge"),className:ft.edgeContainerClassName}),u=o.addGroup({id:"".concat(i,"-node"),className:ft.nodeContainerClassName}),f=o.addGroup({id:"".concat(i,"-combo"),className:ft.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:s,comboGroup:f})}var l=o.addGroup({id:"".concat(i,"-delegate"),className:ft.delegateContainerClassName});this.set({delegateGroup:l}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(r,n){return ln(r)?this.cfg=P(P({},this.cfg),r):this.cfg[r]=n,r==="enabledStack"&&n&&!this.undoStack&&!this.redoStack&&(this.undoStack=new Gs(this.cfg.maxStep),this.redoStack=new Gs(this.cfg.maxStep)),this},e.prototype.get=function(r){var n;return(n=this.cfg)===null||n===void 0?void 0:n[r]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(r){return this.set("minZoom",r)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(r){return this.set("maxZoom",r)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(r,n){Ye(r)&&(r=this.findById(r));var a=this.get("itemController");n||(n=r.get("states")),a.clearItemStates(r,n);var i=this.get("stateController");i.updateStates(r,n,!1)},e.prototype.node=function(r){typeof r=="function"&&this.set("nodeMapper",r)},e.prototype.edge=function(r){typeof r=="function"&&this.set("edgeMapper",r)},e.prototype.combo=function(r){typeof r=="function"&&this.set("comboMapper",r)},e.prototype.findById=function(r){return this.get("itemMap")[r]},e.prototype.find=function(r,n){var a,i=this.get("".concat(r,"s"));return _e(i,function(o,s){if(n(o,s))return a=o,a}),a},e.prototype.findAll=function(r,n){var a=[];return _e(this.get("".concat(r,"s")),function(i,o){n(i,o)&&a.push(i)}),a},e.prototype.findAllByState=function(r,n,a){return a?this.findAll(r,function(i){return i.hasState(n)&&a(i)}):this.findAll(r,function(i){return i.hasState(n)})},e.prototype.translate=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),a){var f=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});_0(s,{x:s.getCanvasBBox().x+r,y:s.getCanvasBBox().y+n},a,f||{duration:500,easing:"easeCubic"})}else u=Vu(u,[["t",r,n]]),s.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},e.prototype.moveTo=function(r,n,a,i){var o=this.get("group");_0(o,{x:r,y:n},a,i||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(r,n,a,i){r&&this.set("fitViewPadding",r);var o=this.get("viewController");n?o.fitViewByRules(n,a,i):o.fitView(a,i),this.autoPaint()},e.prototype.fitCenter=function(r,n){var a=this.get("viewController");a.fitCenter(r,n),this.autoPaint()},e.prototype.addBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!0),this},e.prototype.removeBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!1),this},e.prototype.updateBehavior=function(r,n,a){var i=this.get("modeController");return i.updateBehavior(r,n,a),this},e.prototype.zoom=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),l=this.get("maxZoom"),c=this.getZoom()||1,h=c*r,d=r,v=!1;if(f&&hl&&(d=l/c,v=!0),n?u=Vu(u,[["t",-n.x,-n.y],["s",d,d],["t",n.x,n.y]]):u=Vu(u,[["s",d,d]]),a){var p=rr(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],y=g*d,m=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(b){if(b===1)p=u;else{var w=Ly(g,y,b)/p[0];n?p=Vu(p,[["t",-n.x,-n.y],["s",w,w],["t",n.x,n.y]]):p=Vu(p,[["s",w,w]])}return{matrix:p}},m)}else s.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!v},e.prototype.zoomTo=function(r,n,a,i){var o=r/this.getZoom();return this.zoom(o,n,a,i)},e.prototype.focusItem=function(r,n,a){var i=this.get("viewController"),o=!1;n?o=!0:n===void 0&&(o=this.get("animate"));var s={};a?s=a:a===void 0&&(s=this.get("animateCfg")),i.focus(r,o,s),this.autoPaint()},e.prototype.focusItems=function(r,n,a,i){var o=this.get("viewController");o.focusItems(r,n,a,i)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(r,n){var a=this.get("viewController");return a.getPointByClient(r,n)},e.prototype.getClientByPoint=function(r,n){var a=this.get("viewController");return a.getClientByPoint(r,n)},e.prototype.getPointByCanvas=function(r,n){var a=this.get("viewController");return a.getPointByCanvas(r,n)},e.prototype.getCanvasByPoint=function(r,n){var a=this.get("viewController");return a.getCanvasByPoint(r,n)},e.prototype.getGraphCenterPoint=function(){var r=this.get("group").getCanvasBBox();return{x:(r.minX+r.maxX)/2,y:(r.minY+r.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!0);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!1}],f.nodes=[{id:o,visible:!0}];break;case"edge":u.nodes=[{id:o,visible:!1}],f.edges=[{id:o,visible:!0}];break;case"combo":u.nodes=[{id:o,visible:!1}],f.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.hideItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!1);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!0}],f.nodes=[{id:o,visible:!1}];break;case"edge":u.nodes=[{id:o,visible:!0}],f.edges=[{id:o,visible:!1}];break;case"combo":u.nodes=[{id:o,visible:!0}],f.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.refreshItem=function(r){var n=this.get("itemController");n.refreshItem(r)},e.prototype.setAutoPaint=function(r){var n=this;n.set("autoPaint",r);var a=n.get("canvas");a.set("autoDraw",r)},e.prototype.remove=function(r,n){n===void 0&&(n=!0),this.removeItem(r,n)},e.prototype.removeItem=function(r,n){n===void 0&&(n=!0);var a=r;if(Ye(r)&&(a=this.findById(r)),!a&&Ye(r))console.warn("The item ".concat(r," to be removed does not exist!"));else if(a){var i="";if(a.getType&&(i=a.getType()),n&&this.get("enabledStack")){var o=P(P({},a.getModel()),{itemType:i}),s={};switch(i){case"node":{s.nodes=[o],s.edges=[];for(var u=a.getEdges(),f=u.length-1;f>=0;f--)s.edges.push(P(P({},u[f].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(i==="node"){var l=a.getModel();l.comboId&&this.updateComboTree(a,void 0,!1)}var c=this.get("itemController");if(c.removeItem(a),i==="combo"){var h=I0(this.get("comboTrees"));this.set("comboTrees",h)}}},e.prototype.innerAddItem=function(r,n,a){if(!lz(r,n))return!1;if(n.id&&this.findById(n.id)){console.warn("This item exists already. Be sure the id %c".concat(n.id,"%c is unique."),"font-size: 20px; color: red;","");return}var i,o=this.get("comboTrees")||[];if(r==="combo"){var s=this.get("itemMap"),u=!1;if(o.forEach(function(v){u||Ra(v,function(p){if(n.parentId===p.id){u=!0;var g=P({id:n.id,depth:p.depth+2},n);p.children?p.children.push(g):p.children=[g],n.depth=g.depth,i=a.addItem(r,n)}var y=s[p.id];return u&&y&&y.getType&&y.getType()==="combo"&&a.updateCombo(y,p.children),!0})}),!u){var f=P({id:n.id,depth:0},n);n.depth=f.depth,o.push(f),i=a.addItem(r,n)}this.set("comboTrees",o),n.collapsed&&(this.collapseCombo(i,!1),this.updateCombo(i))}else if(r==="node"&&Ye(n.comboId)&&o){var l=this.findById(n.comboId);l&&l.getType&&l.getType()!=="combo"&&console.warn("'".concat(n.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),i=a.addItem(r,n);var c=this.get("itemMap"),h=!1,d=!1;o.forEach(function(v){d||h||Ra(v,function(p){if(p.id===n.id)return d=!0,!1;if(n.comboId===p.id&&!d){h=!0;var g=rr(n);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return h&&c[p.id].getType&&c[p.id].getType()==="combo"&&a.updateCombo(c[p.id],p.children),!0})})}else i=a.addItem(r,n);if(r==="node"&&n.comboId||r==="combo"&&n.parentId){var l=this.findById(n.comboId||n.parentId);l&&l.getType&&l.getType()==="combo"&&l.addChild(i)}return i},e.prototype.addItem=function(r,n,a,i){a===void 0&&(a=!0),i===void 0&&(i=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!i);var s=this.get("itemController"),u=this.innerAddItem(r,n,s);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),a&&this.get("enabledStack")){var l=P(P({},u.getModel()),{itemType:r}),c={};switch(r){case"node":c.nodes=[l];break;case"edge":c.edges=[l];break;case"combo":c.combos=[l];break}this.pushStack("add",{before:{},after:c})}return u},e.prototype.addItems=function(r,n,a){r===void 0&&(r=[]),n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);for(var o=this.get("itemController"),s=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),n&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},u=0;u=0;g--)v[g].destroyed&&v.splice(g,1);h&&(o.addCombos(h),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),_e(l,function(w,x){w.getType&&(w.getType()==="node"||w.getType()==="combo")||c.edges.indexOf(w)<0&&(delete l[x],o.remove(w,!1))}),(this.get("comboTrees")||[]).forEach(function(w){Ra(w,function(x){var E=a.findById(x.id);return E.getType()==="combo"&&x.collapsed&&a.collapseCombo(x.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,m=y===void 0?!0:y,b=this.get("layoutController");return m&&b&&(b.changeData(function(){setTimeout(function(){var w;(w=o.getCombos())===null||w===void 0||w.forEach(function(x){x.set("animate",!0)})},0)}),o.get("animate")&&!b.getLayoutType()?(o.positionsAnimate(),(i=o.getCombos())===null||i===void 0||i.forEach(function(w){return w.set("animate",!0)})):o.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(r){var n=this,a=n.get("comboTrees"),i=this.get("itemController");i.addCombos(a,r)},e.prototype.createCombo=function(r,n,a){var i=this;a===void 0&&(a=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",u;if(r){if(Ye(r))s=r,u={id:r};else{if(s=r.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=r}var f=a&&this.get("enabledStack"),l={nodes:[],combos:[]};f&&n.forEach(function(y){var m=i.findById(y),b=m.getType();if(!(b!=="node"&&b!=="combo")){var w=m.getModel();l["".concat(b,"s")].push({id:y,parentId:b==="node"?w.comboId:w.parentId})}});var c=this.get("comboTrees"),h=new Set(n),d=new Map;c&&(c.forEach(function(y){Ra(y,function(m,b,w){if(h.has(m.id)){if(b){var x=i.findById(b.id),E=i.findById(m.id);b.children.splice(w,1),x.removeChild(E),o.updateCombo(x,b.children)}m.itemType==="combo"&&d.set(m.id,m)}return!0})}),c=c.filter(function(y){return!h.has(y.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=n.map(function(y){var m=i.findById(y),b=m.getModel(),w="";m.getType&&(w=m.getType());var x=d.get(y)||{id:m.getID(),itemType:w};return w==="combo"?(x.parentId=s,b.parentId=s):w==="node"&&(x.comboId=s,b.comboId=s),f&&v["".concat(w,"s")].push({id:b.id,parentId:s}),x});u.children=p,this.addItem("combo",u,!1),this.set("comboSorted",!1),c&&(c.forEach(function(y){bn(y,function(m){return m.id===s?(m.itemType="combo",m.children=p,!1):!0})}),this.sortCombos()),f&&(v.combos.push(u),this.pushStack("createCombo",{before:l,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(r,n){var a=this,i,o;n===void 0&&(n=!0);var s=this,u=r;if(Ye(r)&&(u=this.findById(r)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),l=u.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var h=this.get("itemMap"),d=u.get("id"),v,p=[],g=this.get("combos"),y=this.findById(l),m=n&&this.get("enabledStack"),b={};if(m&&(b=rr(f),b.children=[]),c.forEach(function(_){v||Ra(_,function(S){var A;if(S.id===d){v=S;var M=u.getEdges().map(function(k){return k.getID()});M.forEach(function(k){a.removeItem(k,!1)});var C=g.indexOf(u);g.splice(C,1),delete h[d];var I=rr(u.getModel());u.destroy(),a.emit("afterremoveitem",{item:I,type:"combo"})}if(l&&v&&S.id===l){y.removeCombo(u),p=S.children;var C=p.indexOf(v);return C!==-1&&p.splice(C,1),(A=v.children)===null||A===void 0||A.forEach(function(O){var B=a.findById(O.id),L=B.getModel();B.getType&&B.getType()==="combo"?(O.parentId=l,delete O.comboId,L.parentId=l,delete L.comboId):B.getType&&B.getType()==="node"&&(O.comboId=l,L.comboId=l),y.addChild(B),p.push(O)}),a.updateCombo(y),!1}return!0})}),!l&&v){var w=c.indexOf(v);c.splice(w,1),(i=v.children)===null||i===void 0||i.forEach(function(_){_.parentId=void 0;var S=a.findById(_.id).getModel();delete S.parentId,delete S.comboId,_.itemType!=="node"&&c.push(_)})}if(m){var x={nodes:[],combos:[]},E={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(_){var S=a.findById(_.id),A=S.getType();A!=="node"&&A!=="combo"||(x["".concat(A,"s")].push({id:_.id,parentId:d}),E["".concat(A,"s")].push({id:_.id,parentId:l}))}),x.combos.push(b),this.pushStack("uncombo",{before:x,after:E})}},e.prototype.updateCombos=function(r){var n=this;r===void 0&&(r=!1);var a=this,i=this.get("comboTrees"),o=a.get("itemController"),s=a.get("itemMap");(i||[]).forEach(function(u){Ra(u,function(f){var l;if(!f)return!0;var c=s[f.id];if(((l=c==null?void 0:c.getType)===null||l===void 0?void 0:l.call(c))==="combo"){var h=Xn([],c.getStates(),!0);_e(h,function(d){return n.setItemState(c,d,!1)}),o.updateCombo(c,f.children,r),_e(h,function(d){return n.setItemState(c,d,!0)})}return!0})}),a.sortCombos()},e.prototype.updateCombo=function(r){var n=this,a=this,i=r,o;if(Ye(r)&&(i=this.findById(r)),!i||i.getType&&i.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=i.get("id");var s=this.get("comboTrees"),u=a.get("itemController"),f=a.get("itemMap");(s||[]).forEach(function(l){Ra(l,function(c){if(!c)return!0;var h=f[c.id];if(o===c.id&&h&&h.getType&&h.getType()==="combo"){var d=Xn([],h.getStates(),!0);_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!1)}),u.updateCombo(h,c.children),_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(r,n,a){a===void 0&&(a=!0);var i=this;this.set("comboSorted",!1);var o;Ye(r)?o=i.findById(r):o=r;var s=o.getModel(),u=s.comboId||s.parentId,f="";if(o.getType&&(f=o.getType()),n&&f==="combo"){var l=this.get("comboTrees"),c=!0,h;if((l||[]).forEach(function(m){h||bn(m,function(b){if(!h)return b.id===o.getID()&&(h=b),!0})}),bn(h,function(m){return m.id===n?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(a&&this.get("enabledStack")){var d={},v={};f==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:n}]):f==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:n}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(f==="combo"?s.parentId=n:f==="node"&&(s.comboId=n),n){var g=this.findById(n);g&&g.addChild(o)}if(u){var g=this.findById(u);g&&g.removeChild(o)}var y=I0(this.get("comboTrees"),s.id,n);this.set("comboTrees",y),this.updateCombos()},e.prototype.save=function(){var r=[],n=[],a=[];return _e(this.get("nodes"),function(i){r.push(i.getModel())}),_e(this.get("edges"),function(i){n.push(i.getModel())}),_e(this.get("combos"),function(i){a.push(i.getModel())}),{nodes:r,edges:n,combos:a}},e.prototype.changeSize=function(r,n){var a=this.get("viewController");return a.changeSize(r,n),this},e.prototype.refresh=function(){var r=this;if(r.emit("beforegraphrefresh"),r.get("animate"))r.positionsAnimate();else{var n=r.get("nodes"),a=r.get("edges"),i=r.get("edges");_e(n,function(o){o.refresh()}),_e(a,function(o){o.refresh()}),_e(i,function(o){o.refresh()})}r.emit("aftergraphrefresh"),r.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(r){if(Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo does not exist!");return}return r.getChildren()},e.prototype.positionsAnimate=function(r){var n=this;n.emit("beforeanimate");var a=n.get("animateCfg"),i=a.onFrame,o=r?n.getNodes().concat(n.getCombos()):n.getNodes(),s=o.map(function(f){var l=f.getModel();return{id:l.id,x:l.x,y:l.y}});n.stopAnimate();var u=n.get("canvas");n.animating=!0,setTimeout(function(){u.animate(function(f){_e(s,function(l){var c=n.findById(l.id);if(!(!c||c.destroyed)){var h=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(h==null&&(v&&(h={x:v[6],y:v[7]}),c.set("originAttrs",h||0)),i){var p=i(c,f,l,h||{x:0,y:0});c.set("model",Object.assign(d,p))}else h?(d.x=h.x+(l.x-h.x)*f,d.y=h.y+(l.y-h.y)*f):(d.x=l.x,d.y=l.y)}}),n.refreshPositions(r)},{duration:a.duration,easing:a.easing,callback:function(){_e(o,function(l){l.set("originAttrs",null)}),a.callback&&a.callback(),n.emit("afteranimate"),n.animating=!1}})},0)},e.prototype.refreshPositions=function(r){var n=this;n.emit("beforegraphrefreshposition");var a=n.get("nodes"),i=n.get("edges"),o=n.get("vedges"),s=n.get("combos"),u,f={},l=function(h){_e(h,function(d){u=d.getModel();var v=d.get("originAttrs");if(!(v&&u.x===v.x&&u.y===v.y)){var p=d.updatePosition({x:u.x,y:u.y});f[u.id]=p,u.comboId&&(f[u.comboId]=f[u.comboId]||p),u.parentId&&(f[u.parentId]=f[u.parentId]||p)}})};l(s),l(a),s&&s.length!==0&&(r&&l(s),n.updateCombos()),_e(i,function(c){var h=c.getSource().getModel(),d=c.getTarget();if(!ln(d)){var v=d.getModel();(f[h.id]||f[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),_e(o,function(c){c.refresh()}),n.emit("aftergraphrefreshposition"),n.autoPaint()},e.prototype.stopAnimate=function(){var r=this.get("canvas"),n=r.cfg.timeline;n&&n.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var r=this.get("group").getMatrix();return r?r[0]:1},e.prototype.getCurrentMode=function(){var r=this.get("modeController");return r.getMode()},e.prototype.setMode=function(r){var n=this.get("modeController");return n.setMode(r),this},e.prototype.clear=function(r){var n;return r===void 0&&(r=!1),(n=this.get("canvas"))===null||n===void 0||n.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),r||this.emit("afterrender"),this},e.prototype.updateLayout=function(r,n,a,i){var o=this;r===void 0&&(r={}),i===void 0&&(i=!0);var s=this.get("layoutController");if(Ye(r)&&(r={type:r}),n){var u=a;u||(n==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(r.type)||!r.type&&f.includes(s==null?void 0:s.layoutType)?r.center=[u.x,u.y]:this.once("afterlayout",function(h){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*d[0]+d[6],u.y=u.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,y=v.minY,m=v.maxY,b={x:(p+g)/2,y:(y+m)/2};n==="begin"&&(b.x=p,b.y=y),o.translate(u.x-b.x,u.y-b.y)})}var l=P({},this.get("layout")),c={};Object.assign(c,l,r),r.pipes&&!r.type?delete c.type:!r.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===l.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),i&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:c}))},e.prototype.destroyLayout=function(){var r=this.get("layoutController");r==null||r.destroyLayout()},e.prototype.layout=function(){var r,n=this.get("layoutController"),a=this.get("layout");if(!(!a||!n)){if(a.workerEnabled){n.layout();return}!((r=n.layoutMethods)===null||r===void 0)&&r.length?n.relayout(!0):n.layout()}},e.prototype.collapseCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),!this.destroyed){if(Ye(r)&&(r=this.findById(r)),!r){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:r});var i=r.getModel(),o=this.get("itemController");o.collapseCombo(r,n),i.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){var d=h.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(h.isVisible()&&!v)){var y=h.getSource(),m=h.getTarget(),b=null,w;if(y.getModel().id===i.id||u.includes(y)&&!u.includes(m)?(b=m,w=!1):(m.getModel().id===i.id||!u.includes(y)&&u.includes(m))&&(b=y,w=!0),b){if(v){a.removeItem(h,!1);return}for(var x=b.getModel();!b.isVisible();){var E=x.parentId,_=x.comboId,S=E||_;if(b=a.findById(S),!b||!S)return;x=b.getModel()}var A=x.id,M=w?{source:A,target:i.id,size:g,isVEdge:!0}:{source:i.id,target:A,size:g,isVEdge:!0},C="".concat(M.source,"-").concat(M.target);if(c[C]){c[C].size+=g;return}c[C]=M}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:r})}},e.prototype.expandCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:r});var i=r.getModel(),o=this.get("itemController");o.expandCombo(r,n),i.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){if(!(h.isVisible()&&!h.getModel().isVEdge)){var d=h.getSource(),v=h.getTarget(),p=d.get("id"),g=v.get("id"),y=null,m;if(p===i.id||u.includes(d)&&!u.includes(v)?(y=v,m=!1):g===i.id||!u.includes(d)&&u.includes(v)?(y=d,m=!0):u.includes(d)&&u.includes(v)&&d.isVisible()&&v.isVisible()&&h.show(),y){var b=h.getModel(),w=b.isVEdge,x=b.size,E=x===void 0?1:x;if(w){a.removeItem(h,!1);return}for(var _=y.getModel();!y.isVisible();){var S=_.parentId,A=_.comboId,M=S||A;if(y=a.findById(M),!y||!M)return;_=y.getModel()}for(var C=_.id,I=m?v:d,k=I.getModel();!I.isVisible();){var O=k.parentId,B=k.comboId,L=O||B;if(I=a.findById(L),!I||!L)return;if(k.comboId===i.id||k.parentId===i.id)break;k=I.getModel()}var z=k.id;if(C){var X=m?{source:C,target:z,isVEdge:!0,size:E}:{source:z,target:C,isVEdge:!0,size:E},R="".concat(X.source,"-").concat(X.target);if(c[R]){c[R].size+=E;return}c[R]=X}}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:r})},e.prototype.collapseExpandCombo=function(r,n){if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!(!r||r.getType&&r.getType()!=="combo")){for(var a=r.getModel(),i=this.findById(a.parentId);i;){var o=i.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),i=void 0;return}i=this.findById(o.parentId)}var s=a.collapsed;s?this.expandCombo(r,n):this.collapseCombo(r,n),this.updateCombo(r)}},e.prototype.getNeighbors=function(r,n){var a=r;return Ye(r)&&(a=this.findById(r)),a.getNeighbors(n)},e.prototype.getNodeDegree=function(r,n,a){n===void 0&&(n=void 0),a===void 0&&(a=!1);var i=r;Ye(r)&&(i=this.findById(r));var o=this.get("degrees");(!o||a)&&(o=yi(this.save()),this.set("degrees",o));var s=o[i.getID()],u=0;if(!s)return 0;switch(n){case"in":u=s.inDegree;break;case"out":u=s.outDegree;break;case"all":u=s;break;default:u=s.degree;break}return u},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(r,n,a){if(r===void 0&&(r="update"),a===void 0&&(a="undo"),!this.get("enabledStack")){console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !");return}var i=n?rr(n):{before:{},after:rr(this.save())};a==="redo"?this.redoStack.push({action:r,data:i}):this.undoStack.push({action:r,data:i}),this.emit("stackchange",{action:r,stackType:a,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),a},e.prototype.getShortestPathMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),(!i||!r)&&(i=Of(this.save(),n),this.set("shortestPathMatrix",i)),i},e.prototype.on=function(r,n,a){return t.prototype.on.call(this,r,n,a)},e.prototype.destroy=function(){var r,n,a,i,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(r=this.get("itemController"))===null||r===void 0||r.destroy(),(n=this.get("modeController"))===null||n===void 0||n.destroy(),(a=this.get("viewController"))===null||a===void 0||a.destroy(),(i=this.get("stateController"))===null||i===void 0||i.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(r){if(!r.members||r.members.length<1){console.warn("Create hull failed! The members is empty.");return}var n=this.get("hullGroup"),a=this.get("hullMap");if(a||(a={},this.set("hullMap",a)),(!n||n.get("destroyed"))&&(n=this.get("group").addGroup({id:"hullGroup"}),n.toBack(),this.set("hullGroup",n)),a[r.id])return console.warn("Existed hull id."),a[r.id];var i=n.addGroup({id:"".concat(r.id,"-container")}),o=new x8(this,P(P({},r),{group:i})),s=o.id;return a[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(r){return this.get("hullMap")[r]},e.prototype.removeHull=function(r){var n,a;Ye(r)?a=this.getHullById(r):a=r,(n=this.get("hullMap"))===null||n===void 0||delete n[a.id],a.destroy()},e.prototype.removeHulls=function(){var r=this.getHulls();!r||!Object.keys(r).length||(Object.keys(r).forEach(function(n){var a=r[n];a.destroy()}),this.set("hullMap",{}))},e}(KS);function J0(t){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J0(t)}var ws=eo,Rx="-shape",Ep="-label",bc=["startArrow","endArrow"],Fx={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},S8={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},wc={edge:S8,node:Fx,combo:Fx},eg="-label-bg",Uy={options:{labelCfg:{style:{fontFamily:ft.windowFontFamily}},descriptionCfg:{style:{fontFamily:ft.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,r){return r==="move"||r!=null&&r.includes("bbox")?e:_r({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,r){r.shapeMap={},this.mergeStyle=this.getOptions(e);var n=this.drawShape(e,r);if(n.set("className",this.itemType+Rx),r.shapeMap[this.itemType+Rx]=n,e.label){var a=this.drawLabel(e,r);a.set("className",this.itemType+Ep),r.shapeMap[this.itemType+Ep]=a}return n},afterDraw:function(e,r,n){},drawShape:function(e,r){return null},drawLabel:function(e,r){var n=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,a=n||{},i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var u=s.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break;case"lefttop":f=ws(f,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);break;default:f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break}else f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);s.setMatrix(f)}if(i.background){var l=this.drawLabelBg(e,r,s),c=this.itemType+eg;l.set("classname",c),r.shapeMap[c]=l,s.toFront()}return s},drawLabelBg:function(e,r,n){var a=this.options.labelCfg,i=Et({},a,e.labelCfg),o=this.getLabelBgStyleByPosition(n,i),s=r.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return r.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,r,n){return{text:e.label}},getLabelBgStyleByPosition:function(e,r){return{}},getLabelStyle:function(e,r,n){var a=this.getLabelStyleByPosition(e,r,n),i="".concat(this.itemType,"Label"),o=ft[i]?ft[i].style:null;return P(P(P({},o),a),r.style)},getShapeStyle:function(e){return e.style},update:function(e,r,n){this.updateShapeStyle(e,r,n),this.updateLabel(e,r,n)},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=r.getKeyShape(),s=Et({},o.attr(),e.style),u=function(c){var h,d=s[c];if(ln(d)){var v=((a=i.shapeMap)===null||a===void 0?void 0:a[c])||i.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((h={},h[c]=d,h))};for(var f in s)u(f)},updateLabel:function(e,r,n){var a,i,o=r.getContainer(),s=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,u=s===void 0?{}:s,f=this.itemType+Ep,l=o.shapeMap[f]||o.find(function(w){return w.get("className")===f}),c=this.itemType+eg,h=o.shapeMap[c]||o.find(function(w){return w.get("className")===c});if(l&&e.label===void 0&&(o.removeChild(l),delete o.shapeMap[f],h&&(o.removeChild(h),delete o.shapeMap[c])),e.label||e.label==="")if(l){(!n||n==="bbox|label"||this.itemType==="edge"&&n!=="style")&&(u=_r(u,e.labelCfg));var v=this.getLabelStyleByPosition(e,u,o),p=(a=e.labelCfg)===null||a===void 0?void 0:a.style,g=P(P({},v),p),y=g.rotate;if(delete g.rotate,!isNaN(y)&&y!==""){var m=[1,0,0,0,1,0,0,0,1];m=ws(m,[["t",-g.x,-g.y],["r",y],["t",g.x,g.y]]),g.matrix=m,l.attr(g)}else((i=l.getMatrix())===null||i===void 0?void 0:i[4])!==1&&l.resetMatrix(),l.attr(g);if(!h)g.background&&(h=this.drawLabelBg(e,o,l),h.set("classname",c),o.shapeMap[c]=h,l.toFront());else if(g.background){var b=this.getLabelBgStyleByPosition(l,u);h.attr(b)}else o.removeChild(h)}else{var d=this.drawLabel(e,o);d.set("className",f),o.shapeMap[f]=d}},afterUpdate:function(e,r){},setState:function(e,r,n){var a,i,o,s=n.get("keyShape");if(!(!s||s.destroyed)){var u=n.getType(),f=Qf(r)?e:"".concat(e,":").concat(r),l=this.getStateStyle(f,n),c=n.getStateStyle(f);if(!(!c&&!l)){var h=Et({},c||l),d=n.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(v.r=1,v.width=1,v.height=1),r){var p=function(L){var z,X=h[L];if(ln(X)&&!bc.includes(L)){var R=((o=d.shapeMap)===null||o===void 0?void 0:o[L])||d.find(function(V){return V.get("name")===L});R==null||R.attr(X)}else s.attr((z={},z[L]=X,z))};for(var g in h)p(g)}else{var y=sh(n.getCurrentStatesStyle()),m=n.getModel(),b=Et({},m.style,sh(n.getOriginStyle())),w=s.get("name"),x=s.attr(),E={};Object.keys(x).forEach(function(B){if(B!=="img"){var L=x[B];L&&J0(L)==="object"?E[B]=rr(L):E[B]=L}});var _={},S=function(L){var z=h[L];if(ln(z)&&!bc.includes(L)){var X=d.shapeMap[L]||d.find(function(he){return he.get("name")===L});if(X){var R=sh(X.attr());_e(z,function(he,ce){if(L===w&&E[ce]&&!v[ce]){delete E[ce];var le=b[L][ce]||wc[u][ce];s.attr(ce,le)}else if(R[ce]||R[ce]===0){delete R[ce];var ie=b[L][ce]||wc[u][ce];X.attr(ce,ie)}}),_[L]=R}}else if(E[L]&&!v[L]){delete E[L];var V=b[L]||(b[w]?b[w][L]:void 0)||wc[u][L];s.attr(L,V)}};for(var A in h)S(A);w?_[w]=E:Et(_,E);for(var g in y)if(!v[g]){var M=y[g];(!ln(M)||bc.includes(g))&&(w?(Et(b[w],(i={},i[g]=M,i)),delete b[g]):Et(b,(a={},a[g]=M,a)),delete y[g])}var C={};_r(C,b,_,y);var I=!1,k=function(L){var z,X,R=C[L];if(ln(R)&&!bc.includes(L)){var V=d.shapeMap[L]||d.find(function(ce){return ce.get("name")===L});V&&((V.get("type")==="text"||V.get("labelRelated"))&&(delete R.x,delete R.y,delete R.matrix),L===w&&(u==="combo"&&(delete R.r,delete R.width,delete R.height),I=!0),V.attr(R))}else if(!I){var he=R||wc[u][L];u==="combo"?w||s.attr((z={},z[L]=he,z)):s.attr((X={},X[L]=he,X))}};for(var O in C)k(O)}}}},getStateStyle:function(e,r){var n=r.getModel(),a=r.getType(),i=this.getOptions(n),o=i.stateStyles,s=i.style,u=s===void 0?{}:s,f=n.stateStyles?n.stateStyles[e]:o&&o[e];return a==="combo"?rr(f):Et({},u,f)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var r,n,a=(e==null?void 0:e.anchorPoints)||((r=this.getCustomConfig(e))===null||r===void 0?void 0:r.anchorPoints)||((n=this.options)===null||n===void 0?void 0:n.anchorPoints);return a}},M8={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ft.nodeLabel.offset,getSize:function(e){var r,n=((r=this.mergeStyle)===null||r===void 0?void 0:r.size)||e.size||this.getOptions({}).size||ft.defaultNode.size;return bt(n)&&n.length===1&&(n=[n[0],n[0]]),bt(n)||(n=[n,n]),n},getLabelStyleByPosition:function(e,r){var n=r.maxLength,a=e.label;n&&(a=YA(a,n));var i=r.position||this.labelPosition;if(i==="center")return{x:0,y:0,text:a,textBaseline:"middle",textAlign:"center"};var o=r.offset;Zt(o)&&(o=this.offset);var s=this.getSize(e),u;switch(i){case"top":u={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=a,u},getLabelBgStyleByPosition:function(e,r){var n;if(!e)return{};var a=(n=r.style)===null||n===void 0?void 0:n.background;if(!a)return{};var i=e.getBBox(),o=jy(a.padding),s=i.width+o[1]+o[3],u=i.height+o[0]+o[2];return P(P({x:i.minX-o[3],y:i.minY-o[0]},a),{width:s,height:u})},drawShape:function(e,r){var n=this.shapeType,a=this.getShapeStyle(e),i=r.addShape(n,{attrs:a,draggable:!0,name:"node-shape"});return r.shapeMap["node-shape"]=i,i},updateLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-bottom"]||r.find(function(C){return C.get("className")==="link-point-bottom"}),u;a&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),s&&!u&&(u=s.attr()),u||(u=n);var f=Et({},u,e.linkPoints),l=f.fill,c=f.stroke,h=f.lineWidth,d=f.size/2;d||(d=f.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,y=v.top,m=v.bottom,b=this.getSize(e),w=b[0],x=b[1],E={r:d,fill:l,stroke:c,lineWidth:h};if(a)!p&&p!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},E),{x:-w/2,y:0}));else if(p){var _="link-point-left";r.shapeMap[_]=r.addShape("circle",{attrs:P(P({},E),{x:-w/2,y:0}),className:_,name:_,isAnchorPoint:!0})}if(i)!g&&g!==void 0&&(i.remove(),delete r.shapeMap["link-point-right"]),i.attr(P(P({},E),{x:w/2,y:0}));else if(g){var S="link-point-right";r.shapeMap[S]=r.addShape("circle",{attrs:P(P({},E),{x:w/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)!y&&y!==void 0&&(o.remove(),delete r.shapeMap["link-point-top"]),o.attr(P(P({},E),{x:0,y:-x/2}));else if(y){var A="link-point-top";r.shapeMap[A]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:-x/2}),className:A,name:A,isAnchorPoint:!0})}if(s)!m&&m!==void 0?(s.remove(),delete r.shapeMap["link-point-bottom"]):s.attr(P(P({},E),{x:0,y:x/2}));else if(m){var M="link-point-bottom";r.shapeMap[M]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:x/2}),className:M,name:M,isAnchorPoint:!0})}},updateShape:function(e,r,n,a,i){var o=r.get("keyShape");o.attr(P({},n)),this.updateLabel(e,r,i),a&&this.updateIcon(e,r)},updateIcon:function(e,r){var n=this,a=r.getContainer(),i=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,u=o.text,f=a.shapeMap["".concat(this.type,"-icon")]||a.find(function(y){return y.get("name")==="".concat(n.type,"-icon")});if(f)if(s||s===void 0){var l=Et({},f.attr(),i),c=l.width,h=c===void 0?20:c,d=l.height,v=d===void 0?20:d;(l.fontFamily==="iconfont"||l.hasOwnProperty("text"))&&(h=0,v=0),f.attr(P(P({},l),{x:-h/2,y:-v/2}))}else f.remove(),delete a.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(u)a.shapeMap[p]=a.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{var h=i.width,v=i.height;a.shapeMap[p]=a.addShape("image",{attrs:P(P({},i),{x:-h/2,y:-v/2}),className:p,name:p})}var g=a.shapeMap["node-label"]||a.find(function(y){return y.get("name")==="node-label"});g&&g.toFront()}}},A8=P(P({},Uy),M8);mr.registerNode("single-node",A8);var xc="edge-shape";function C8(t){var e=t;return t==="start"?e="end":t==="end"&&(e="start"),e}var T8={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ft.defaultEdge.size,style:{x:0,y:0,stroke:ft.defaultEdge.style.stroke,lineAppendWidth:ft.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ft.edgeLabel.style.fill,fontSize:ft.edgeLabel.style.fontSize,fontFamily:ft.windowFontFamily}},stateStyles:P({},ft.edgeStateStyles)},getPath:function(e){var r=[];return _e(e,function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style),i=e.size||ft.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,u=this.getControlPoints(e),f=[o];u&&(f=f.concat(u)),f.push(s);var l=this.getPath(f),c=Et({},ft.defaultEdge.style,{stroke:ft.defaultEdge.color,lineWidth:i,path:l},a);return c},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=((a=r.getKeyShape)===null||a===void 0?void 0:a.call(r))||i.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var u=e.startPoint,f=e.endPoint,l=this.getControlPoints(e),c=[u];l&&(c=c.concat(l)),c.push(f);var h=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};l||(g={source:v,target:p,offset:d.offset,radius:d.radius});var y=this.getPath(c,g),m={};n==="move"?m={path:y}:(h.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),h.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),m=P({},e.style),m.lineWidth===void 0&&(m.lineWidth=(Ot(s)?s:s==null?void 0:s[0])||h.lineWidth),m.path===void 0&&(m.path=y),m.stroke===void 0&&(m.stroke=h.stroke||e.color)),o&&o.attr(m)},getLabelStyleByPosition:function(e,r,n){var a=r.position||this.labelPosition,i={},o=n==null?void 0:n.shapeMap[xc],s;a==="start"?s=0:a==="end"?s=1:s=.5;var u=r.refX||this.refX,f=r.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return i.x=e.startPoint.x+u,i.y=e.startPoint.y+f,i.text=e.label,i;var l;Zt(r.autoRotate)?l=this.labelAutoRotate:l=r.autoRotate;var c=XA(o,s,u,f,l);return i.x=c.x,i.y=c.y,i.rotate=c.rotate,i.textAlign=this._getTextAlign(a,c.angle),i.text=e.label,i},getLabelBgStyleByPosition:function(e,r){if(!e)return{};var n=e.getBBox(),a=r.style&&r.style.background;if(!a)return{};var i=a.padding,o=n.width+i[1]+i[3],s=n.height+i[0]+i[2],u=P(P({},a),{width:o,height:s,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return Zt(r.autoRotate)?f=this.labelAutoRotate:f=r.autoRotate,f&&(u.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(e,r){var n="center";return r?(r=r%(Math.PI*2),e!=="center"&&(r>=0&&r<=Math.PI/2||r>=3/2*Math.PI&&r<2*Math.PI?n=e:n=C8(e)),n):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("path",{className:xc,name:xc,attrs:n});return r.shapeMap[xc]=a,a},drawLabel:function(e,r){var n=this.options.labelCfg,a=_r({},n,e.labelCfg),i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),i.background){var u=this.drawLabelBg(e,r,s,i,o),f=this.itemType+eg;u.set("classname",f),r.shapeMap[f]=u,s.toFront()}return s},drawLabelBg:function(e,r,n,a,i){var o=this.options.labelCfg,s=_r({},o,e.labelCfg),u=this.getLabelBgStyleByPosition(n,s),f=r.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return r.shapeMap["text-bg-shape"]=f,f}},I8=P(P({},Uy),T8);mr.registerEdge("single-edge",I8);mr.registerEdge("line",{getControlPoints:function(){}},"single-edge");mr.registerEdge("spline",{getPath:function(e){var r=qC(e);return r}},"single-edge");mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var r=e.startPoint,n=e.endPoint,a={x:(r.x+n.x)/2,y:(r.y+n.y)/2},i,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],i=E0(r,o,n),r.x<=n.x&&r.y>n.y?this.clockwise=i.x>o.x?0:1:r.x<=n.x&&r.yo.x?1:0:r.x>n.x&&r.y<=n.y?this.clockwise=i.y0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o};Zi.detectConnectedComponents=eT;var tT=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=(0,JC.getNeighbors)(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=(0,aT.getNeighbors)(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=(0,nT.detectStrongConnectComponents)({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s};za.detectAllDirectedCycle=sT;var mU=function(e,r,n,a){return a===void 0&&(a=!0),r?sT(e,n,a):oT(e,n,a)};za.detectAllCycles=mU;var bU=yU;za.default=bU;var gu={};const uT=Ka(jP),el=Ka(u3);Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var Bx=uT,wU=el,Gx=Wr,xU=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?(0,Ec.getNeighbors)(v,s,"target"):(0,Ec.getNeighbors)(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c};eu.findAllPath=CU;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var TU=IU(Ko);function IU(t){return t&&t.__esModule?t:{default:t}}var kU=function(e,r){for(var n=(0,TU.default)(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},NU=kU;tl.default=NU;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var OU=DU(Ko),LU=Wr;function DU(t){return t&&t.__esModule?t:{default:t}}var PU=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=(0,LU.uniqueId)();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=(0,OU.default)(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=(0,VU.clone)(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=_p(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=_p(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},KU=ZU;kd.default=KU;var Nd={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var QU=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),r$=t$;Ld.default=r$;Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var n$=pT(Od),a$=pT(Ld),Sp=Wr;function pT(t){return t&&t.__esModule?t:{default:t}}var i$=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new a$.default(l);for((0,Sp.getEdgesByNodeId)(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),(0,Sp.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),(0,Sp.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return n},Wx=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new n$.default(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},o$=function(e,r,n){var a={prim:i$,kruskal:Wx};return n?a[n](e,r):Wx(e,r)},s$=o$;Nd.default=s$;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var u$=l$(pi),f$=Wr;function l$(t){return t&&t.__esModule?t:{default:t}}var c$=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new No(p,m,In.VACANT_NODE_LABEL,_.edgeLabel,In.VACANT_NODE_LABEL));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new _c(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new _c(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},C$=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=(0,Hx.default)(e,n),c=(0,Hx.default)(r,n),h=eE(e.nodes,l,n),d=eE(r.nodes,c,n),v=Qx(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=Qx(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;Jx(e.edges,s,p);var w=Jx(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,(0,qx.__spreadArray)((0,qx.__spreadArray)([],x,!1),[2],!1))),a||(a=i);var E=Kx(e,l,o,a),_=Kx(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=S$(a,f,S,E,l),M=fh(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=(0,E$.default)(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=lh(Se,tt,o,s);X[te][N]=Fe})});var R=M$(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=fh(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=lh(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=fh(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=lh(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=wT(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:A$(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=(0,Zx.default)(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=tE(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},T$=C$;Pd.default=T$;(function(t){function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(w)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"breadthFirstSearch",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"dijkstra",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(t,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(t,"floydWarshall",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getAdjMatrix",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"getDegree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"getInDegree",{enumerable:!0,get:function(){return i.getInDegree}}),Object.defineProperty(t,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(t,"getOutDegree",{enumerable:!0,get:function(){return i.getOutDegree}}),Object.defineProperty(t,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"louvain",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"pageRank",{enumerable:!0,get:function(){return v.default}});var r=b(Ko),n=b(Ad),a=b(Zi),i=m(pi),o=b(za),s=b(Td),u=b(gu),f=eu,l=b(tl),c=b(Id),h=b(kd),d=b(Nd),v=b(Dd),p=b(Pd),g=Wr;function y(w){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(y=function(S){return S?E:x})(w)}function m(w,x){if(w&&w.__esModule)return w;if(w===null||e(w)!=="object"&&typeof w!="function")return{default:w};var E=y(x);if(E&&E.has(w))return E.get(w);var _={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(A!=="default"&&Object.prototype.hasOwnProperty.call(w,A)){var M=S?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(_,A,M):_[A]=w[A]}return _.default=w,E&&E.set(w,_),_}function b(w){return w&&w.__esModule?w:{default:w}}})(QC);function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}Object.defineProperty(Md,"__esModule",{value:!0});Md.default=void 0;var Mp=I$(QC),rE=Hi;function xT(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(xT=function(a){return a?r:e})(t)}function I$(t,e){if(t&&t.__esModule)return t;if(t===null||ig(t)!=="object"&&typeof t!="function")return{default:t};var r=xT(e);if(r&&r.has(t))return r.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var o=a?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}var Ap=typeof self<"u"?self:{};Ap.onmessage=function(t){var e=t.data,r=e._algorithmType,n=e.data;if(r){if(typeof Mp[r]=="function"){var a=Mp[r].apply(Mp,n);Ap.postMessage({_algorithmType:rE.MESSAGE.SUCCESS,data:a});return}Ap.postMessage({_algorithmType:rE.MESSAGE.FAILURE})}};var k$=null;Md.default=k$;Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=void 0;var N$=Hi,O$=L$(Md);function L$(t){return t&&t.__esModule?t:{default:t}}var D$=function(e){return function(){for(var r=[],n=0;n=t&&a<=t+r&&i>=e&&i<=e+n}function Uf(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=aE([1,0],w),_=aE(w,x);return og(w,x)<=-1&&(_=Math.PI),og(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:nE(t,[f,l])?0:r,ry:nE(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}var jh=Math.sin,Uh=Math.cos,Yy=Math.atan2,Mc=Math.PI;function MT(t,e,r,n,a,i,o){var s=e.stroke,u=e.lineWidth,f=r-a,l=n-i,c=Yy(l,f),h=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Uh(Mc/6)+","+10*jh(Mc/6)+" L0,0 L"+10*Uh(Mc/6)+",-"+10*jh(Mc/6),stroke:s,lineWidth:u}});h.translate(a,i),h.rotateAtPoint(a,i,c),t.set(o?"startArrowShape":"endArrowShape",h)}function AT(t,e,r,n,a,i,o){var s=e.startArrow,u=e.endArrow,f=e.stroke,l=e.lineWidth,c=o?s:u,h=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=Kr(c,["d","fill","stroke","lineWidth"]),y=r-a,m=n-i,b=Yy(m,y);h&&(a=a-Uh(b)*h,i=i-jh(b)*h);var w=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:P(P({},g),{stroke:v||f,lineWidth:p||l,fill:d})});w.translate(a,i),w.rotateAtPoint(a,i,b),t.set(o?"startArrowShape":"endArrowShape",w)}function Go(t,e,r,n,a){var i=Yy(n-e,r-t);return{dx:Uh(i)*a,dy:jh(i)*a}}function qy(t,e,r,n,a,i){typeof e.startArrow=="object"?AT(t,e,r,n,a,i,!0):e.startArrow?MT(t,e,r,n,a,i,!0):t.set("startArrowShape",null)}function Hy(t,e,r,n,a,i){typeof e.endArrow=="object"?AT(t,e,r,n,a,i,!1):e.endArrow?MT(t,e,r,n,a,i,!1):t.set("startArrowShape",null)}var oE={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ru(t,e){var r=e.attr();for(var n in r){var a=r[n],i=oE[n]?oE[n]:n;i==="matrix"&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&t.setLineDash?bt(a)&&t.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=h9(t,e,a):i==="globalAlpha"&&(a=a*t.globalAlpha),t[i]=a)}}function sg(t,e,r){for(var n=0;nx?w:x,C=w>x?1:w/x,I=w>x?x/w:1;e.translate(m,b),e.rotate(S),e.scale(C,I),e.arc(0,0,M,E,_,1-A),e.scale(1/C,1/I),e.rotate(-S),e.translate(-m,-b)}break}case"Z":e.closePath();break}if(h==="Z")s=u;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function IT(t,e){var r=t.get("canvas");r&&(e==="remove"&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(r.refreshElement(t,e,r),r.get("autoDraw")&&r.draw())))}function g9(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var r=t.get("cacheCanvasBBox"),n=r&&!!(r.width&&r.height),a=t.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?e=i9(r,a):n?e=r:i&&(e=a)}return e}function y9(t){if(!t.length)return null;var e=[],r=[],n=[],a=[];return _e(t,function(i){var o=g9(i);o&&(e.push(o.minX),r.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ha(e),minY:Ha(r),maxX:qa(n),maxY:qa(a)}}function m9(t,e){return!t||!e||!Uf(t,e)?null:{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}}var kT=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.cacheCanvasBBox=function(){var r=this.cfg.children,n=[],a=[];_e(r,function(h){var d=h.cfg.cacheCanvasBBox;d&&h.cfg.isInView&&(n.push(d.minX,d.maxX),a.push(d.minY,d.maxY))});var i=null;if(n.length){var o=Ha(n),s=qa(n),u=Ha(a),f=qa(a);i={minX:o,minY:u,x:o,y:u,maxX:s,maxY:f,width:s-o,height:f-u};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",Uf(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(r,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(r.save(),ru(r,this),this._applyClip(r,this.getClip()),sg(r,a,n),r.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(xC),Ea=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.calculateBBox=function(){var r=this.get("type"),n=this.getHitLineWidth(),a=SC(r),i=a(this),o=n/2,s=i.x-o,u=i.y-o,f=i.x+i.width+o,l=i.y+i.height+o;return{x:s,minX:s,y:u,minY:u,width:i.width+n,height:i.height+n,maxX:f,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.draw=function(r,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Uf(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}r.save(),ru(r,this),this._applyClip(r,a),this.drawPath(r),r.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var r=this.cfg.canvas;return r?r.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var r=this.getCanvasViewBox();if(r){var n=this.getCanvasBBox(),a=Uf(n,r);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(r){this.createPath(r),this.strokeAndFill(r),this.afterDrawPath(r)},e.prototype.fill=function(r){r.fill()},e.prototype.stroke=function(r){r.stroke()},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=o),this.stroke(r)),this.afterDrawPath(r)},e.prototype.createPath=function(r){},e.prototype.afterDrawPath=function(r){},e.prototype.isInShape=function(r,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var r=this.attrs;return r.lineWidth+r.lineAppendWidth},e}(EC),b9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.r,c=o/2,h=ET(u,f,r,n);return i&&a?h<=l+c:i?h<=l:a?h>=l-c&&h<=l+c:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.r;r.beginPath(),r.arc(a,i,o,0,Math.PI*2,!1),r.closePath()},e}(Ea);function Ac(t,e,r,n){return t/(r*r)+e/(n*n)}var w9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=o/2,f=s.x,l=s.y,c=s.rx,h=s.ry,d=(r-f)*(r-f),v=(n-l)*(n-l);return i&&a?Ac(d,v,c+u,h+u)<=1:i?Ac(d,v,c,h)<=1:a?Ac(d,v,c-u,h-u)>=1&&Ac(d,v,c+u,h+u)<=1:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(r.beginPath(),r.ellipse)r.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var u=o>s?o:s,f=o>s?1:o/s,l=o>s?s/o:1;r.save(),r.translate(a,i),r.scale(f,l),r.arc(0,0,u,0,Math.PI*2),r.restore(),r.closePath()}},e}(Ea);function sE(t){return t instanceof HTMLElement&&Ye(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS"}var x9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(r){this._setImage(r.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var r=this.get("canvas");r?r.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(r){var n=this,a=this.attrs;if(Ye(r)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=r,this.set("loading",!0)}else r instanceof Image?(a.width||(a.width=r.width),a.height||(a.height=r.height)):sE(r)&&(a.width||(a.width=Number(r.getAttribute("width"))),a.height||(a.height,Number(r.getAttribute("height"))))},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r==="img"&&this._setImage(n)},e.prototype.createPath=function(r){if(this.get("loading")){this.set("toDraw",!0),this.set("context",r);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.sx,f=n.sy,l=n.swidth,c=n.sheight,h=n.img;(h instanceof Image||sE(h))&&(!Zt(u)&&!Zt(f)&&!Zt(l)&&!Zt(c)?r.drawImage(h,u,f,l,c,a,i,o,s):r.drawImage(h,a,i,o,s))},e}(Ea);function ji(t,e,r,n,a,i,o){var s=Math.min(t,r),u=Math.max(t,r),f=Math.min(e,n),l=Math.max(e,n),c=a/2;return i>=s-c&&i<=u+c&&o>=f-c&&o<=l+c?cn.pointToLine(t,e,r,n,i,o)<=a/2:!1}var E9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(r){this.setArrow()},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),this.setArrow()},e.prototype.setArrow=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2,s=r.startArrow,u=r.endArrow;s&&qy(this,r,i,o,n,a),u&&Hy(this,r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),u=s.x1,f=s.y1,l=s.x2,c=s.y2;return ji(u,f,l,c,o,r,n)},e.prototype.createPath=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.startArrow,f=n.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};u&&u.d&&(l=Go(a,i,o,s,n.startArrow.d)),f&&f.d&&(c=Go(a,i,o,s,n.endArrow.d)),r.beginPath(),r.moveTo(a+l.dx,i+l.dy),r.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(Ea),_9={circle:function(t,e,r){return[["M",t-r,e],["A",r,r,0,1,0,t+r,e],["A",r,r,0,1,0,t-r,e]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["Z"]]},"triangle-down":function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}},S9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initAttrs=function(r){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["symbol","x","y","r","radius"].indexOf(r)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(r){return Zt(r.r)?r.radius:r.r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.symbol||"circle",o=this._getR(r),s,u;if(Tr(i))s=i,u=s(n,a,o),u=RC(u);else{if(s=e.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;u=s(n,a,o)}return u},e.prototype.createPath=function(r){var n=this._getPath(),a=this.get("paramsCache");TT(this,r,{path:n},a)},e.Symbols=_9,e}(Ea);function NT(t,e,r){var n=LC();return t.createPath(n),n.isPointInPath(e,r)}var M9=1e-6;function Cp(t){return Math.abs(t)0!=Cp(s[1]-r)>0&&Cp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function cf(t,e,r,n,a,i,o,s){var u=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2);if(ua)return!1;var f={x:t+r*Math.cos(u),y:e+r*Math.sin(u)};return ET(f.x,f.y,o,s)<=i/2}var C9=eo;function T9(t){for(var e=!1,r=t.length,n=0;nb?m:b,A=m>b?1:m/b,M=m>b?b/m:1,C=C9(null,[["t",-g,-y],["r",-E],["s",1/A,1/M]]);bd(_,_,C),i=cf(0,0,S,w,x,e,_[0],_[1]);break}if(i)break}}return i}function k9(t){for(var e=t.length,r=[],n=[],a=[],i=0;i0&&n.push(a),{polygons:r,polylines:n}}const Cc=P({hasArc:T9,extractPolygons:k9,isPointInStroke:I9},Tz);function uE(t,e,r){for(var n=!1,a=0;a=l[0]&&r<=l[1]&&(a=(r-l[0])/(l[1]-l[0]),i=c)});var s=o[i];if(Zt(s)||Zt(i))return null;var u=s.length,f=o[i+1];return xf.pointAt(s[u-2],s[u-1],f[1],f[2],f[3],f[4],f[5],f[6],a)},e.prototype._calculateCurve=function(){var r=this.attr().path;this.set("curve",Cc.pathToCurve(r))},e.prototype._setTcache=function(){var r=0,n=0,a=[],i,o,s,u,f=this.get("curve");if(f){if(_e(f,function(l,c){s=f[c+1],u=l.length,s&&(r+=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",r),r===0){this.set("tCache",[]);return}_e(f,function(l,c){s=f[c+1],u=l.length,s&&(i=[],i[0]=n/r,o=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/r,a.push(i))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var r=this.getSegments(),n;if(r.length>1){var a=r[0].currentPoint,i=r[1].currentPoint,o=r[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},e.prototype.getEndTangent=function(){var r=this.getSegments(),n=r.length,a;if(n>1){var i=r[n-2].currentPoint,o=r[n-1].currentPoint,s=r[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},e}(Ea);function LT(t,e,r,n,a){var i=t.length;if(i<2)return!1;for(var o=0;o=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(Ea);function L9(t,e,r,n,a,i,o){var s=a/2;return Ro(t-s,e-s,r,a,i,o)||Ro(t+r-s,e-s,a,n,i,o)||Ro(t+s,e+n-s,r,a,i,o)||Ro(t-s,e+s,a,n,i,o)}function D9(t,e,r,n,a,i,o,s){return ji(t+a,e,t+r-a,e,i,o,s)||ji(t+r,e+a,t+r,e+n-a,i,o,s)||ji(t+r-a,e+n,t+a,e+n,i,o,s)||ji(t,e+n-a,t,e+a,i,o,s)||cf(t+r-a,e+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||cf(t+r-a,e+n-a,a,0,.5*Math.PI,i,o,s)||cf(t+a,e+n-a,a,.5*Math.PI,Math.PI,i,o,s)||cf(t+a,e+a,a,Math.PI,1.5*Math.PI,i,o,s)}var P9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.width,c=s.height,h=s.radius;if(h){var v=!1;return a&&(v=D9(u,f,l,c,h,o,r,n)),!v&&i&&(v=NT(this,r,n)),v}else{var d=o/2;if(i&&a)return Ro(u-d,f-d,l+d,c+d,r,n);if(i)return Ro(u,f,l,c,r,n);if(a)return L9(u,f,l,c,o,r,n)}},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(r.beginPath(),u===0)r.rect(a,i,o,s);else{var f=d9(u),l=f[0],c=f[1],h=f[2],d=f[3];r.moveTo(a+l,i),r.lineTo(a+o-c,i),c!==0&&r.arc(a+o-c,i+c,c,-Math.PI/2,0),r.lineTo(a+o,i+s-h),h!==0&&r.arc(a+o-h,i+s-h,h,0,Math.PI/2),r.lineTo(a+d,i+s),d!==0&&r.arc(a+d,i+s-d,d,Math.PI/2,Math.PI),r.lineTo(a,i+l),l!==0&&r.arc(a+l,i+l,l,Math.PI,Math.PI*1.5),r.closePath()}},e}(Ea),R9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(r){this._assembleFont(),r.text&&this._setText(r.text)},e.prototype._assembleFont=function(){var r=this.attrs;r.font=PC(r)},e.prototype._setText=function(r){var n=null;Ye(r)&&r.indexOf(` +`)!==-1&&(n=r.split(` +`)),this.set("textArr",n)},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r.startsWith("font")&&this._assembleFont(),r==="text"&&this._setText(n)},e.prototype._getSpaceingY=function(){var r=this.attrs,n=r.lineHeight,a=r.fontSize*1;return n?n-a:a*.14},e.prototype._drawTextArr=function(r,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,u=i.y,f=i.fontSize*1,l=this._getSpaceingY(),c=DC(i.text,i.fontSize,i.lineHeight),h;_e(n,function(d,v){h=u+v*(l+f)-c+f,o==="middle"&&(h+=c-f-(c-f)/2),o==="top"&&(h+=c-f),Zt(d)||(a?r.fillText(d,s,h):r.strokeText(d,s,h))})},e.prototype._drawText=function(r,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(r,s,n);else{var u=a.text;Zt(u)||(n?r.fillText(u,i,o):r.strokeText(u,i,o))}},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=i),this.stroke(r)),this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.afterDrawPath(r)},e.prototype.fill=function(r){this._drawText(r,!0)},e.prototype.stroke=function(r){this._drawText(r,!1)},e}(Ea);function F9(t,e){if(e){var r=nC(e);return Do(r,t)}return t}function DT(t,e,r){var n=t.getTotalMatrix();if(n){var a=F9([e,r,1],n),i=a[0],o=a[1];return[i,o]}return[e,r]}function fE(t,e,r){if(t.isCanvas&&t.isCanvas())return!0;if(!P0(t)||t.cfg.isInView===!1)return!1;if(t.cfg.clipShape){var n=DT(t,e,r),a=n[0],i=n[1];if(t.isClipped(a,i))return!1}var o=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&r>=o.minY&&r<=o.maxY}function PT(t,e,r){if(!fE(t,e,r))return null;for(var n=null,a=t.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=PT(s,e,r);else if(fE(s,e,r)){var u=s,f=DT(s,e,r),l=f[0],c=f[1];u.isInShape(l,c)&&(n=s)}if(n)break}return n}var qu=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.renderer="canvas",r.autoDraw=!0,r.localRefresh=!0,r.refreshElements=[],r.clipView=!0,r.quickHit=!1,r},e.prototype.onCanvasChange=function(r){(r==="attr"||r==="sort"||r==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.getPixelRatio=function(){var r=this.get("pixelRatio")||a9();return r>=1?Math.ceil(r):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var r=document.createElement("canvas"),n=r.getContext("2d");return this.set("context",n),r},e.prototype.setDOMSize=function(r,n){t.prototype.setDOMSize.call(this,r,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*r,i.height=o*n,o>1&&a.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var r=this.get("context"),n=this.get("el");r.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(r,n){var a;return this.get("quickHit")?a=PT(this,r,n):a=t.prototype.getShape.call(this,r,n,null),a},e.prototype._getRefreshRegion=function(){var r=this.get("refreshElements"),n=this.getViewRange(),a;if(r.length&&r[0]===this)a=n;else if(a=y9(r),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=m9(a,n))}return a},e.prototype.refreshElement=function(r){var n=this.get("refreshElements");n.push(r)},e.prototype._clearFrame=function(){var r=this.get("drawFrame");r&&(VS(r),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var r=this.get("drawFrame");this.get("autoDraw")&&r||this._startDraw()},e.prototype._drawAll=function(){var r=this.get("context"),n=this.get("el"),a=this.getChildren();r.clearRect(0,0,n.width,n.height),ru(r,this),sg(r,a),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var r=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(r.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.save(),r.beginPath(),r.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.clip(),ru(r,this),v9(this,a,i),sg(r,a,i),r.restore()):n.length&&CT(n),_e(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var r=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=WS(function(){r.get("localRefresh")?r._drawRegion():r._drawAll(),r.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.width=0,r.height=0,r.parentNode.removeChild(r)},e}(wC),fg={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ar={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ra(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function RT(t){var e=fg[t.type],r=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=ra(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),r){var a=r.get("el");a||(a=r.createDom(),r.set("el",a)),a.appendChild(n)}return n}function FT(t,e){var r=t.get("el"),n=ZS(r.children).sort(e),a=document.createDocumentFragment();n.forEach(function(i){a.appendChild(i)}),r.appendChild(a)}function B9(t,e){var r=t.parentNode,n=Array.from(r.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),a=n[e],i=n.indexOf(t);if(a){if(i>e)r.insertBefore(t,a);else if(i0&&(n?"stroke"in a?this._setColor(r,"stroke",s):"strokeStyle"in a&&this._setColor(r,"stroke",u):this._setColor(r,"stroke",s||u),l&&h.setAttribute(ar.strokeOpacity,l),c&&h.setAttribute(ar.lineWidth,c))},e.prototype._setColor=function(r,n,a){var i=this.get("el");if(!a){i.setAttribute(ar[n],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=r.find("gradient",a);o||(o=r.addGradient(a)),i.setAttribute(ar[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=r.find("pattern",a);o||(o=r.addPattern(a)),i.setAttribute(ar[n],"url(#"+o+")")}else i.setAttribute(ar[n],a)},e.prototype.shadow=function(r,n){var a=this.attr(),i=n||a,o=i.shadowOffsetX,s=i.shadowOffsetY,u=i.shadowBlur,f=i.shadowColor;(o||s||u||f)&&G9(this,r)},e.prototype.transform=function(r){var n=this.attr(),a=(r||n).matrix;a&&al(this)},e.prototype.isInShape=function(r,n){return this.isPointInPath(r,n)},e.prototype.isPointInPath=function(r,n){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),s=r+o.left,u=n+o.top,f=document.elementFromPoint(s,u);return!!(f&&f.isEqualNode(a))},e.prototype.getHitLineWidth=function(){var r=this.attrs,n=r.lineWidth,a=r.lineAppendWidth;return this.isStroke()?n+a:0},e}(EC),z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="circle",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),j9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dom",r.canFill=!1,r.canStroke=!1,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");if(_e(n||a,function(f,l){ar[l]&&i.setAttribute(ar[l],f)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var s=i.childNodes,u=s.length-1;u>=0;u--)i.removeChild(s[u]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},e}(aa),U9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="ellipse",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),$9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="image",r.canFill=!1,r.canStroke=!1,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){u==="img"?a._setImage(i.img):ar[u]&&o.setAttribute(ar[u],s)})},e.prototype.setAttr=function(r,n){this.attrs[r]=n,r==="img"&&this._setImage(n)},e.prototype._setImage=function(r){var n=this.attr(),a=this.get("el");if(Ye(r))a.setAttribute("href",r);else if(r instanceof window.Image)n.width||(a.setAttribute("width",r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",r.height),this.attr("height",r.height)),a.setAttribute("href",r.src);else if(r instanceof HTMLElement&&Ye(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",r.toDataURL());else if(r instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+r.width),i.setAttribute("height",""+r.height),i.getContext("2d").putImageData(r,0,0),n.width||(a.setAttribute("width",""+r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",""+r.height),this.attr("height",r.height)),a.setAttribute("href",i.toDataURL())}},e}(aa),X9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="line",r.canFill=!1,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var u=gn(o)?r.addArrow(a,ar[s]):r.getDefaultArrow(a,ar[s]);i.setAttribute(ar[s],"url(#"+u+")")}else i.removeAttribute(ar[s]);else ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(aa),Tc={circle:function(t,e,r){return[["M",t,e],["m",-r,0],["a",r,r,0,1,0,r*2,0],["a",r,r,0,1,0,-r*2,0]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["z"]]},triangleDown:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}};const lE={get:function(t){return Tc[t]},register:function(t,e){Tc[t]=e},remove:function(t){delete Tc[t]},getAll:function(){return Tc}};var W9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="marker",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var r=this._getPath();return bt(r)?r.map(function(n){return n.join(" ")}).join(""):r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.r||r.radius,o=r.symbol||"circle",s;return Tr(o)?s=o:s=lE.get(o),s?s(n,a,i):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=lE,e}(aa),V9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="path",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){if(u==="path"&&bt(s))o.setAttribute("d",a._formatPath(s));else if(u==="startArrow"||u==="endArrow")if(s){var f=gn(s)?r.addArrow(i,ar[u]):r.getDefaultArrow(i,ar[u]);o.setAttribute(ar[u],"url(#"+f+")")}else o.removeAttribute(ar[u]);else ar[u]&&o.setAttribute(ar[u],s)})},e.prototype._formatPath=function(r){var n=r.map(function(a){return a.join(" ")}).join("");return~n.indexOf("NaN")?"":n},e.prototype.getTotalLength=function(){var r=this.get("el");return r?r.getTotalLength():null},e.prototype.getPoint=function(r){var n=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=n?n.getPointAtLength(r*a):null;return i?{x:i.x,y:i.y}:null},e}(aa),Y9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polygon",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),q9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polyline",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["points"].indexOf(r)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr().points,n=this.get("totalLength");return Zt(n)?(this.set("totalLength",OC.length(r)),this.get("totalLength")):n},e.prototype.getPoint=function(r){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return _e(a,function(s,u){r>=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(aa);function H9(t){var e=0,r=0,n=0,a=0;return bt(t)?t.length===1?e=r=n=a=t[0]:t.length===2?(e=n=t[0],r=a=t[1]):t.length===3?(e=t[0],r=a=t[1],n=t[2]):(e=t[0],r=t[1],n=t[2],a=t[3]):e=r=n=a=t,{r1:e,r2:r,r3:n,r4:a}}var Z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="rect",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];_e(n||i,function(f,l){u.indexOf(l)!==-1&&!s?(o.setAttribute("d",a._assembleRect(i)),s=!0):u.indexOf(l)===-1&&ar[l]&&o.setAttribute(ar[l],f)})},e.prototype._assembleRect=function(r){var n=r.x,a=r.y,i=r.width,o=r.height,s=r.radius;if(!s)return"M "+n+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=H9(s);bt(s)?s.length===1?u.r1=u.r2=u.r3=u.r4=s[0]:s.length===2?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):s.length===3?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var f=[["M "+(n+u.r1)+","+a],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return f.join(" ")},e}(aa),cE=.3,K9={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Q9={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},J9={left:"left",start:"left",center:"middle",right:"end",end:"end"},e7=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="text",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");this._setFont(),_e(n||i,function(s,u){u==="text"?a._setText(""+s):u==="matrix"&&s?al(a):ar[u]&&o.setAttribute(ar[u],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var r=this.get("el"),n=this.attr(),a=n.textBaseline,i=n.textAlign,o=rC();o&&o.name==="firefox"?r.setAttribute("dominant-baseline",Q9[a]||"alphabetic"):r.setAttribute("alignment-baseline",K9[a]||"baseline"),r.setAttribute("text-anchor",J9[i]||"left")},e.prototype._setText=function(r){var n=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,s=o===void 0?"bottom":o;if(!r)n.innerHTML="";else if(~r.indexOf(` +`)){var u=r.split(` +`),f=u.length-1,l="";_e(u,function(c,h){h===0?s==="alphabetic"?l+=''+c+"":s==="top"?l+=''+c+"":s==="middle"?l+=''+c+"":s==="bottom"?l+=''+c+"":s==="hanging"&&(l+=''+c+""):l+=''+c+""}),n.innerHTML=l}else n.innerHTML=r},e}(aa),t7=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r7=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n7=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function jT(t){var e=t.match(n7);if(!e)return"";var r="";return e.sort(function(n,a){return n=n.split(":"),a=a.split(":"),Number(n[0])-Number(a[0])}),_e(e,function(n){n=n.split(":"),r+=''}),r}function a7(t,e){var r=t7.exec(t),n=gd(yd(parseFloat(r[1])),Math.PI*2),a=r[2],i,o;n>=0&&n<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n`;r.innerHTML=n},t}(),hE=function(){function t(e,r){this.cfg={};var n=ra("marker"),a=Ji("marker_");n.setAttribute("id",a);var i=ra("path");i.setAttribute("stroke",e.stroke||"none"),i.setAttribute("fill",e.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=a;var o=e[r==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(r,i):(this.cfg=o,this._setMarker(e.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(e,r){var n=this.el;r.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(e,r){var n=this.el,a=this.cfg.path,i=this.cfg.d;bt(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),r.setAttribute("d",a),n.appendChild(r),i&&n.setAttribute("refX",""+i/e)},t.prototype.update=function(e){var r=this.child;r.attr?r.attr("fill",e):r.setAttribute("fill",e)},t}(),l7=function(){function t(e){this.type="clip",this.cfg={};var r=ra("clipPath");this.el=r,this.id=Ji("clip_"),r.id=this.id;var n=e.cfg.el;return r.appendChild(n),this.cfg=e,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},t}(),c7=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,h7=function(){function t(e){this.cfg={};var r=ra("pattern");r.setAttribute("patternUnits","userSpaceOnUse");var n=ra("image");r.appendChild(n);var a=Ji("pattern_");r.id=a,this.el=r,this.id=a,this.cfg=e;var i=c7.exec(e),o=i[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function u(){r.setAttribute("width",""+s.width),r.setAttribute("height",""+s.height)}return s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(e,r){return this.cfg===r},t}(),d7=function(){function t(e){var r=ra("defs"),n=Ji("defs_");r.id=n,e.appendChild(r),this.children=[],this.defaultArrow={},this.el=r,this.canvas=e}return t.prototype.find=function(e,r){for(var n=this.children,a=null,i=0;i]*>/,lg={tr:document.createElement("tbody"),tbody:hf,thead:hf,tfoot:hf,td:Ip,th:Ip,"*":document.createElement("div")}}function cg(t){hf||v7();var e=UT.test(t)&&RegExp.$1;(!e||!(e in lg))&&(e="*");var r=lg[e];t=typeof t=="string"?t.replace(/(^\s*)|(\s*$)/g,""):t,r.innerHTML=""+t;var n=r.childNodes[0];return n&&r.contains(n)&&r.removeChild(n),n}function Hu(t,e){if(t)for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return t}var $T={exports:{}},p7={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]},XT={exports:{}},g7=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")},y7=g7,m7=Array.prototype.concat,b7=Array.prototype.slice,dE=XT.exports=function(e){for(var r=[],n=0,a=e.length;n=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};$n.to.keyword=function(t){return VT[t.slice(0,3)]};function Vi(t,e,r){return Math.min(Math.max(e,t),r)}function kc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var x7=$T.exports,YT={exports:{}},E7={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]},zo=E7,qT={};for(var Np in zo)zo.hasOwnProperty(Np)&&(qT[zo[Np]]=Np);var mt=YT.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Tn in mt)if(mt.hasOwnProperty(Tn)){if(!("channels"in mt[Tn]))throw new Error("missing channels property: "+Tn);if(!("labels"in mt[Tn]))throw new Error("missing channel labels property: "+Tn);if(mt[Tn].labels.length!==mt[Tn].channels)throw new Error("channel and label counts mismatch: "+Tn);var _7=mt[Tn].channels,S7=mt[Tn].labels;delete mt[Tn].channels,delete mt[Tn].labels,Object.defineProperty(mt[Tn],"channels",{value:_7}),Object.defineProperty(mt[Tn],"labels",{value:S7})}mt.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s,u,f;return i===a?s=0:e===i?s=(r-n)/o:r===i?s=2+(n-e)/o:n===i&&(s=4+(e-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),f=(a+i)/2,i===a?u=0:f<=.5?u=o/(i+a):u=o/(2-i-a),[s,u*100,f*100]};mt.rgb.hsv=function(t){var e,r,n,a,i,o=t[0]/255,s=t[1]/255,u=t[2]/255,f=Math.max(o,s,u),l=f-Math.min(o,s,u),c=function(h){return(f-h)/6/l+1/2};return l===0?a=i=0:(i=l/f,e=c(o),r=c(s),n=c(u),o===f?a=n-r:s===f?a=1/3+e-n:u===f&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,f*100]};mt.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],a=mt.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[a,i*100,n*100]};mt.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a,i,o,s;return s=Math.min(1-e,1-r,1-n),a=(1-e-s)/(1-s)||0,i=(1-r-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[a*100,i*100,o*100,s*100]};function M7(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}mt.rgb.keyword=function(t){var e=qT[t];if(e)return e;var r=1/0,n;for(var a in zo)if(zo.hasOwnProperty(a)){var i=zo[a],o=M7(t,i);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=e*.4124+r*.3576+n*.1805,i=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[a*100,i*100,o*100]};mt.rgb.lab=function(t){var e=mt.rgb.xyz(t),r=e[0],n=e[1],a=e[2],i,o,s;return r/=95.047,n/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,o=500*(r-n),s=200*(n-a),[i,o,s]};mt.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a,i,o,s,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,a=2*n-i,s=[0,0,0];for(var f=0;f<3;f++)o=e+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(i-a)*6*o:2*o<1?u=i:3*o<2?u=a+(i-a)*(2/3-o)*6:u=a,s[f]=u*255;return s};mt.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=r,i=Math.max(n,.01),o,s;return n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i,s=(n+r)/2,o=n===0?2*a/(i+a):2*r/(n+r),[e,o*100,s*100]};mt.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};mt.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=Math.max(n,.01),i,o,s;return s=(2-r)*n,i=(2-r)*a,o=r*a,o/=i<=1?i:2-i,o=o||0,s/=2,[e,o*100,s*100]};mt.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a=r+n,i,o,s,u;a>1&&(r/=a,n/=a),i=Math.floor(6*e),o=1-n,s=6*e-i,i&1&&(s=1-s),u=r+s*(o-r);var f,l,c;switch(i){default:case 6:case 0:f=o,l=u,c=r;break;case 1:f=u,l=o,c=r;break;case 2:f=r,l=o,c=u;break;case 3:f=r,l=u,c=o;break;case 4:f=u,l=r,c=o;break;case 5:f=o,l=r,c=u;break}return[f*255,l*255,c*255]};mt.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a=t[3]/100,i,o,s;return i=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),[i*255,o*255,s*255]};mt.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a,i,o;return a=e*3.2406+r*-1.5372+n*-.4986,i=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};mt.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=116*r-16,i=500*(e-r),o=200*(r-n),[a,i,o]};mt.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;i=(e+16)/116,a=r/500+i,o=i-n/200;var s=Math.pow(i,3),u=Math.pow(a,3),f=Math.pow(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};mt.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return a=Math.atan2(n,r),i=a*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[e,o,i]};mt.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return o=n/360*2*Math.PI,a=r*Math.cos(o),i=r*Math.sin(o),[e,a,i]};mt.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],a=1 in arguments?arguments[1]:mt.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(i+=60),i};mt.hsv.ansi16=function(t){return mt.rgb.ansi16(mt.hsv.rgb(t),t[2])};mt.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return a};mt.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,a=(e>>1&1)*r*255,i=(e>>2&1)*r*255;return[n,a,i]};mt.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,a=Math.floor((r=t%36)/6)/5*255,i=r%6/5*255;return[n,a,i]};mt.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};mt.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(s){return s+s}).join(""));var n=parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};mt.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,r),n),i=Math.min(Math.min(e,r),n),o=a-i,s,u;return o<1?s=i/(1-o):s=0,o<=0?u=0:a===e?u=(r-n)/o%6:a===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,s*100]};mt.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,a=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(a=(r-.5*n)/(1-n)),[t[0],n*100,a*100]};mt.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,a=0;return n<1&&(a=(r-n)/(1-n)),[t[0],n*100,a*100]};mt.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var a=[0,0,0],i=e%1*6,o=i%1,s=1-o,u=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return u=(1-r)*n,[(r*a[0]+u)*255,(r*a[1]+u)*255,(r*a[2]+u)*255]};mt.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};mt.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};mt.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};mt.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,a=n-e,i=0;return a<1&&(i=(n-a)/(1-a)),[t[0],a*100,i*100]};mt.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};mt.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};mt.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};mt.gray.hsl=mt.gray.hsv=function(t){return[0,0,t[0]]};mt.gray.hwb=function(t){return[0,100,t[0]]};mt.gray.cmyk=function(t){return[0,0,0,t[0]]};mt.gray.lab=function(t){return[t[0],0,0]};mt.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};mt.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var HT=YT.exports,$h=HT;function A7(){for(var t={},e=Object.keys($h),r=e.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function D7(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var a=n.length,i=0;i>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var s=o.sort().join("");if(!(s in dg))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=dg[s];var u=zn[this.model].labels,f=[];for(r=0;rr?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return pn.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,i=2*a-1,o=r.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,u=1-s;return pn.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};Object.keys(zn).forEach(function(t){if(ZT.indexOf(t)===-1){var e=zn[t].channels;pn.prototype[t]=function(){if(this.model===t)return new pn(this);if(arguments.length)return new pn(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new pn(B7(zn[this.model][t].raw(this.color)).concat(r),t)},pn[t]=function(r){return typeof r=="number"&&(r=vg(Qy.call(arguments),e)),new pn(r,t)}}});function R7(t,e){return Number(t.toFixed(e))}function F7(t){return function(e){return R7(e,t)}}function Lr(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Xh[n]||(Xh[n]=[]))[e]=r}),t=t[0],function(n){var a;return arguments.length?(r&&(n=r(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function qr(t){return function(e){return Math.max(0,Math.min(t,e))}}function B7(t){return Array.isArray(t)?t:[t]}function vg(t,e){for(var r=0;r=0,i=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Z7,arguments)},brighten:function(){return this._applyModification(K7,arguments)},darken:function(){return this._applyModification(Q7,arguments)},desaturate:function(){return this._applyModification(Y7,arguments)},saturate:function(){return this._applyModification(q7,arguments)},greyscale:function(){return this._applyModification(H7,arguments)},spin:function(){return this._applyModification(J7,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rX,arguments)},complement:function(){return this._applyCombination(eX,arguments)},monochromatic:function(){return this._applyCombination(nX,arguments)},splitcomplement:function(){return this._applyCombination(tX,arguments)},triad:function(){return this._applyCombination(mE,[3])},tetrad:function(){return this._applyCombination(mE,[4])}};wt.fromRatio=function(t,e){if(Wh(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=vf(t[n]));t=r}return wt(t,e)};function U7(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=uX(t)),Wh(t)=="object"&&(oi(t.r)&&oi(t.g)&&oi(t.b)?(e=$7(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):oi(t.h)&&oi(t.s)&&oi(t.v)?(n=vf(t.s),a=vf(t.v),e=W7(t.h,n,a),o=!0,s="hsv"):oi(t.h)&&oi(t.s)&&oi(t.l)&&(n=vf(t.s),i=vf(t.l),e=X7(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=KT(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function $7(t,e,r){return{r:Er(t,255)*255,g:Er(e,255)*255,b:Er(r,255)*255}}function vE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case t:i=(e-r)/u+(e1&&(c-=1),c<1/6?f+(l-f)*6*c:c<1/2?l:c<2/3?f+(l-f)*(2/3-c)*6:f}if(e===0)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function pE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case t:i=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(wt(n));return i}function nX(t,e){e=e||6;for(var r=wt(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(wt({h:n,s:a,v:i})),i=(i+s)%1;return o}wt.mix=function(t,e,r){r=r===0?0:r||50;var n=wt(t).toRgb(),a=wt(e).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return wt(o)};wt.readability=function(t,e){var r=wt(t),n=wt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};wt.isReadable=function(t,e,r){var n=wt.readability(t,e),a,i;switch(i=!1,a=fX(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};wt.mostReadable=function(t,e,r){var n=null,a=0,i,o,s,u;r=r||{},o=r.includeFallbackColors,s=r.level,u=r.size;for(var f=0;fa&&(a=i,n=wt(e[f]));return wt.isReadable(t,n,{level:s,size:u})||!o?n:(r.includeFallbackColors=!1,wt.mostReadable(t,["#fff","#000"],r))};var pg=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aX=wt.hexNames=iX(pg);function iX(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function KT(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Er(t,e){oX(t)&&(t="100%");var r=sX(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Fd(t){return Math.min(1,Math.max(0,t))}function Fn(t){return parseInt(t,16)}function oX(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function sX(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ma(t){return t.length==1?"0"+t:""+t}function vf(t){return t<=1&&(t=t*100+"%"),t}function QT(t){return Math.round(parseFloat(t)*255).toString(16)}function bE(t){return Fn(t)/255}var ha=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oi(t){return!!ha.CSS_UNIT.exec(t)}function uX(t){t=t.replace(z7,"").replace(j7,"").toLowerCase();var e=!1;if(pg[t])t=pg[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ha.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ha.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ha.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ha.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ha.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ha.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ha.hex8.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),a:bE(r[4]),format:e?"name":"hex8"}:(r=ha.hex6.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),format:e?"name":"hex"}:(r=ha.hex4.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),a:bE(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ha.hex3.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function fX(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var Nc=2,wE=.16,lX=.05,cX=.05,hX=.15,JT=5,eI=4,dX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function xE(t,e,r){var n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-Nc*e:Math.round(t.h)+Nc*e:n=r?Math.round(t.h)+Nc*e:Math.round(t.h)-Nc*e,n<0?n+=360:n>=360&&(n-=360),n}function EE(t,e,r){if(t.h===0&&t.s===0)return t.s;var n;return r?n=t.s-wE*e:e===eI?n=t.s+wE:n=t.s+lX*e,n>1&&(n=1),r&&e===JT&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function _E(t,e,r){var n;return r?n=t.v+cX*e:n=t.v-hX*e,n>1&&(n=1),Number(n.toFixed(2))}function Vh(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=wt(t),a=JT;a>0;a-=1){var i=n.toHsv(),o=wt({h:xE(i,a,!0),s:EE(i,a,!0),v:_E(i,a,!0)}).toHexString();r.push(o)}r.push(n.toHexString());for(var s=1;s<=eI;s+=1){var u=n.toHsv(),f=wt({h:xE(u,s),s:EE(u,s),v:_E(u,s)}).toHexString();r.push(f)}return e.theme==="dark"?dX.map(function(l){var c=l.index,h=l.opacity,d=wt.mix(e.backgroundColor||"#141414",r[c],h*100).toHexString();return d}):r}var Op={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Lp={},Dp={};Object.keys(Op).forEach(function(t){Lp[t]=Vh(Op[t]),Lp[t].primary=Lp[t][5],Dp[t]=Vh(Op[t],{theme:"dark",backgroundColor:"#141414"}),Dp[t].primary=Dp[t][5]});var Zr=function(e,r,n){var a=Sf(e),i=Sf(r);return Sf([(1-n)*a.red()+n*i.red(),(1-n)*a.green()+n*i.green(),(1-n)*a.blue()+n*i.blue()]).rgb()},vX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.05).rgb().toString(),i=Zr(r,e,.1).rgb().toString(),o=Zr(r,e,.2).rgb().toString(),s=Zr(r,e,.4).rgb().toString(),u=Zr(r,n,.02).rgb().toString(),f=Zr(r,n,.05).rgb().toString(),l=Zr(r,n,.1).rgb().toString(),c=Zr(r,n,.2).rgb().toString(),h=Zr(r,n,.3).rgb().toString(),d=Vh(e,{theme:"default",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:r,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:h,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:u,comboActiveStroke:e,comboActiveFill:a,comboInactiveStroke:h,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:f}},pX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.2).rgb().toString(),i=Zr(r,e,.3).rgb().toString(),o=Zr(r,e,.6).rgb().toString(),s=Zr(r,e,.8).rgb().toString(),u=Zr(r,n,.2).rgb().toString(),f=Zr(r,n,.25).rgb().toString(),l=Zr(r,n,.3).rgb().toString(),c=Zr(r,n,.4).rgb().toString(),h=Zr(r,n,.5).rgb().toString(),d=Vh(e,{theme:"dark",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:a,highlightStroke:e,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:n,edgeActiveStroke:e,edgeInactiveStroke:n,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:f,comboActiveStroke:e,comboActiveFill:u,comboInactiveStroke:c,comboInactiveFill:f,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:f,comboDisableStroke:c,comboDisableFill:u}},Jy=function(e,r,n,a){return r===void 0&&(r="#fff"),n===void 0&&(n="default"),n==="default"?vX(e,r,"rgb(150, 150, 150)"):pX(e,r,"#777")},gX=function(e,r,n,a){r===void 0&&(r="#fff"),n===void 0&&(n="default");var i=[];return e.forEach(function(o){i.push(Jy(o,r,n))}),i};const yX=Object.freeze(Object.defineProperty({__proto__:null,getColorSetsBySubjectColors:gX,getColorsWithSubjectColor:Jy,mixColor:Zr},Symbol.toStringTag,{value:"Module"}));var mX="rgb(95, 149, 255)",bX="rgb(255, 255, 255)",Ht=Jy(mX,bX);const Mf={defaultNode:{style:{stroke:Ht.mainStroke,fill:Ht.mainFill},color:Ht.mainStroke,linkPoints:{fill:Ht.activeFill,stroke:Ht.activeStroke}},nodeStateStyles:{active:{fill:Ht.activeFill,stroke:Ht.activeStroke,shadowColor:Ht.mainStroke},selected:{fill:Ht.selectedFill,stroke:Ht.selectedStroke,shadowColor:Ht.selectedStroke},highlight:{fill:Ht.highlightFill,stroke:Ht.highlightStroke},inactive:{fill:Ht.inactiveFill,stroke:Ht.inactiveStroke},disable:{fill:Ht.disableFill,stroke:Ht.disableStroke}},defaultEdge:{style:{stroke:Ht.edgeMainStroke},color:Ht.edgeMainStroke},edgeStateStyles:{active:{stroke:Ht.edgeActiveStroke},selected:{stroke:Ht.edgeSelectedStroke,shadowColor:Ht.edgeSelectedStroke},highlight:{stroke:Ht.edgeHighlightStroke},inactive:{stroke:Ht.edgeInactiveStroke},disable:{stroke:Ht.edgeDisableStroke}},defaultCombo:{style:{fill:Ht.comboMainFill,stroke:Ht.comboMainStroke},color:Ht.comboMainStroke},comboStateStyles:{active:{stroke:Ht.comboActiveStroke,fill:Ht.comboActiveFill},selected:{stroke:Ht.comboSelectedStroke,fill:Ht.comboSelectedFill,shadowColor:Ht.comboSelectedStroke},highlight:{stroke:Ht.comboHighlightStroke,fill:Ht.comboHighlightFill},inactive:{stroke:Ht.comboInactiveStroke,fill:Ht.comboInactiveFill},disable:{stroke:Ht.comboDisableStroke,fill:Ht.comboDisableFill}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var wX=function(e){var r=e.clone();return tI(e,r),r},tI=function(e,r){var n;e.isGroup()&&r.isGroup()&&((n=e.get("children"))===null||n===void 0||n.forEach(function(s,u){var f=r.get("children")[u];tI(s,f)}));var a=e.get("type"),i=r.get("type");if(!(a!=="image"||i!=="image")){var o=e.get("clipShape");o&&r.setClip({type:o.get("type"),attrs:o.attr()})}},xX=Za.cloneEvent,EX=Za.isViewportChanged,_X=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=r,n.destroyed=!1,n.initEvents(),n}return e.prototype.initEvents=function(){var r=this,n=r.graph,a=r.extendEvents,i=a===void 0?[]:a,o=n.get("canvas"),s=o.get("el"),u=Bs(this,"onCanvasEvents"),f=Bs(this,"onExtendEvents"),l=Bs(this,"onWheelEvent");o.off("*").on("*",u),this.canvasHandler=u,i.push(Ic(s,"wheel",l)),typeof window<"u"&&(i.push(Ic(window,"keydown",f)),i.push(Ic(window,"keyup",f)),i.push(Ic(window,"focus",f))),this.resetHandler&&n.off("afterchangedata",this.resetHandler),this.resetHandler=Bs(this,"resetStatus"),n.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(r){for(;r&&!r.get("item");)r=r.get("parent");return r},e.prototype.onCanvasEvents=function(r){var n=this,a=this.graph,i=a.get("canvas"),o=r.target,s=r.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},r,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},r,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return;break}r.canvasX=r.x,r.canvasY=r.y;var u={x:r.canvasX,y:r.canvasY},f=a.get("group"),l=f.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),EX(l)&&(u=a.getPointByClient(r.clientX,r.clientY)),r.x=u.x,r.y=u.y,r.currentTarget=a,o===i){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(r,"canvas"),r.target=i,r.item=null,a.emit(s,r),a.emit("canvas:".concat(s),r);return}var c=e.getItemRoot(o);if(!c){a.emit(s,r);return}var h=c.get("item");if(!h.destroyed){var d=h.getType();if(r.target=o,r.item=h,r.canvasX===r.x&&r.canvasY===r.y){var v=a.getCanvasByPoint(r.x,r.y);r.canvasX=v.x,r.canvasY=v.y}r.name&&!r.name.includes(":")?(a.emit("".concat(d,":").concat(s),r),a.emit(s,r)):r.name&&a.emit(r.name,r),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(r,d)}},e.prototype.onExtendEvents=function(r){this.graph.emit(r.type,r)},e.prototype.onWheelEvent=function(r){Zt(r.wheelDelta)&&(r.wheelDelta=-r.detail),this.graph.emit("wheel",r)},e.prototype.handleMouseMove=function(r,n){var a=this,i=a.graph,o=a.preItem,s=i.get("canvas"),u=r.target===s?null:r.item;r=xX(r),o&&o!==u&&!o.destroyed&&(r.item=o,this.emitCustomEvent(o.getType(),"mouseleave",r),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",r)),u&&o!==u&&(r.item=u,this.emitCustomEvent(n,"mouseenter",r),this.dragging&&this.emitCustomEvent(n,"dragenter",r)),this.preItem=u},e.prototype.emitCustomEvent=function(r,n,a){a.type=n,this.graph.emit("".concat(r,":").concat(n),a)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var r=this,n=r.graph,a=r.canvasHandler,i=r.extendEvents,o=n.get("canvas");o.off("*",a),_e(i,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(F8),Kt={},gi={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Base=void 0;var SX=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(e){return this.init(e),this.execute(!0)},t.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},t.prototype.execute=function(e){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(e){e&&Object.assign(this,e)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();Rr.Base=SX;var Pp={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.camelize=nu.isString=void 0;var MX=function(t){return typeof t=="string"};nu.isString=MX;var AX=function(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}},CX=/-(\w)/g;nu.camelize=AX(function(t){return t.replace(CX,function(e,r){return r?r.toUpperCase():""})});var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.isArray=void 0;ol.isArray=Array.isArray;var Bd={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toNumber=t.isNaN=t.isNumber=void 0;var e=function(a){return typeof a=="number"};t.isNumber=e;var r=function(a){return Number.isNaN(Number(a))};t.isNaN=r;var n=function(a){var i=parseFloat(a);return(0,t.isNaN)(i)?a:i};t.toNumber=n})(Bd);var Gd={},em={};(function(t){var e=me&&me.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;ob[x][_]+b[_][E]&&(b[x][E]=b[x][_]+b[_][E]);return b};t.floydWarshall=s;var u=function(m,b){var w=m.nodes,x=m.edges,E=[],_={};if(!w)throw new Error("invalid nodes data!");return w&&w.forEach(function(S,A){_[S.id]=A;var M=[];E.push(M)}),x==null||x.forEach(function(S){var A=(0,t.getEdgeTerminal)(S,"source"),M=(0,t.getEdgeTerminal)(S,"target"),C=_[A],I=_[M];C===void 0||I===void 0||(E[C][I]=1,b||(E[I][C]=1))}),E};t.getAdjMatrix=u;var f=function(m,b){var w=[];return m.forEach(function(x){var E=[];x.forEach(function(_){E.push(_*b)}),w.push(E)}),w};t.scaleMatrix=f;var l=function(m,b){if(m&&m.children){for(var w=m.children.length-1;w>=0;w--)if(!l(m.children[w],b))return}return!!b(m)},c=function(m,b){typeof b=="function"&&l(m,b)};t.traverseTreeUp=c;var h=function(m){var b=1/0,w=1/0,x=-1/0,E=-1/0;return m.forEach(function(_){var S=_.size;(0,e.isArray)(S)?S.length===1&&(S=[S[0],S[0]]):(0,r.isNumber)(S)?S=[S,S]:(S===void 0||isNaN(S))&&(S=[30,30]);var A=[S[0]/2,S[1]/2],M=_.x-A[0],C=_.x+A[0],I=_.y-A[1],k=_.y+A[1];b>M&&(b=M),w>I&&(w=I),xf.size[1]?f.size[0]:f.size[1]:(0,e.isObject)(f.size)?f.size.width>f.size.height?f.size.width:f.size.height:f.size:o}:(0,t.isFunction)(s)?s:(0,r.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(u){var f=Math.max.apply(Math,s);return isNaN(f)?o:f}return s}:(0,e.isObject)(s)?function(){if(u){var f=Math.max(s.width,s.height);return isNaN(f)?o:f}return[s.width,s.height]}:function(){return o}};t.getFuncByUnknownType=i}(Rp)),Rp}var ME;function Ir(){return ME||(ME=1,function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(nu,t),r(ol,t),r(Bd,t),r(Gd,t),r(em,t),r(TX(),t)}(Pp)),Pp}var IX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.getLayoutByName=gi.unRegisterLayout=gi.registerLayout=void 0;var kX=Rr,NX=Ir(),Ui=new Map,OX=function(t,e){if(Ui.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,NX.isObject)(e)){var r=function(n){IX(a,n);function a(i){var o=this,s;o=n.call(this)||this;var u=o,f={},l=Object.assign({},u.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(f,l,e,i),Object.keys(f).forEach(function(c){var h=f[c];u[c]=h}),o}return a}(kX.Base);Ui.set(t,r)}else Ui.set(t,e);return Ui.get(t)};gi.registerLayout=OX;var LX=function(t){Ui.has(t)&&Ui.delete(t)};gi.unRegisterLayout=LX;var DX=function(t){return Ui.has(t)?Ui.get(t):null};gi.getLayoutByName=DX;var Fp={},sl={},PX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sl,"__esModule",{value:!0});sl.GridLayout=void 0;var xs=Ir(),RX=Rr,FX=function(t){PX(e,t);function e(r){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges,i=r.begin,o=n.length;if(o===0)return r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};if(o===1)return n[0].x=i[0],n[0].y=i[1],r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};var s=r.sortBy,u=r.width,f=r.height,l=r.condense,c=r.preventOverlapPadding,h=r.preventOverlap,d=r.nodeSpacing,v=r.nodeSize,p=[];n.forEach(function(I){p.push(I)});var g={};if(p.forEach(function(I,k){g[I.id]=k}),(s==="degree"||!(0,xs.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,xs.isNaN)(n[0].degree))){var y=(0,xs.getDegree)(p.length,g,a);p.forEach(function(I,k){I.degree=y[k].all})}p.sort(function(I,k){return k[s]-I[s]}),!u&&typeof window<"u"&&(u=window.innerWidth),!f&&typeof window<"u"&&(f=window.innerHeight);var m=r.rows,b=r.cols!=null?r.cols:r.columns;if(r.cells=o,m!=null&&b!=null?(r.rows=m,r.cols=b):m!=null&&b==null?(r.rows=m,r.cols=Math.ceil(r.cells/r.rows)):m==null&&b!=null?(r.cols=b,r.rows=Math.ceil(r.cells/r.cols)):(r.splits=Math.sqrt(r.cells*r.height/r.width),r.rows=Math.round(r.splits),r.cols=Math.round(r.width/r.height*r.splits)),r.rows=Math.max(r.rows,1),r.cols=Math.max(r.cols,1),r.cols*r.rows>r.cells){var w=r.small(),x=r.large();(w-1)*x>=r.cells?r.small(w-1):(x-1)*w>=r.cells&&r.large(x-1)}else for(;r.cols*r.rows=r.cells?r.large(x+1):r.small(w+1)}if(r.cellWidth=u/r.cols,r.cellHeight=f/r.rows,l&&(r.cellWidth=0,r.cellHeight=0),h||d){var E=(0,xs.getFuncByUnknownType)(10,d),_=(0,xs.getFuncByUnknownType)(30,v,!1);p.forEach(function(I){(!I.x||!I.y)&&(I.x=0,I.y=0);var k=_(I)||30,O,B;(0,xs.isArray)(k)?(O=k[0],B=k[1]):(O=k,B=k);var L=E!==void 0?E(I):c,z=O+L,X=B+L;r.cellWidth=Math.max(r.cellWidth,z),r.cellHeight=Math.max(r.cellHeight,X)})}r.cellUsed={},r.row=0,r.col=0,r.id2manPos={};for(var S=0;S=n&&(r.col=0,r.row++)},e.prototype.getPos=function(r){var n=this,a=n.begin,i=n.cellWidth,o=n.cellHeight,s,u,f=n.id2manPos[r.id];if(f)s=f.col*i+i/2+a[0],u=f.row*o+o/2+a[1];else{for(;n.used(n.row,n.col);)n.moveToNextCell();s=n.col*i+i/2+a[0],u=n.row*o+o/2+a[1],n.use(n.row,n.col),n.moveToNextCell()}r.x=s,r.y=u},e.prototype.getType=function(){return"grid"},e}(RX.Base);sl.GridLayout=FX;var ul={},BX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ul,"__esModule",{value:!0});ul.RandomLayout=void 0;var GX=Rr,zX=function(t){BX(e,t);function e(r){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var r=this,n=r.nodes,a=.9,i=r.center;return!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),n&&n.forEach(function(o){o.x=(Math.random()-.5)*a*r.width+i[0],o.y=(Math.random()-.5)*a*r.height+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(GX.Base);ul.RandomLayout=zX;var fl={},jX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(fl,"__esModule",{value:!0});fl.GForceLayout=void 0;var UX=Rr,yn=Ir(),Bp=function(t,e){var r;return t?(0,yn.isNumber)(t)?r=function(n){return t}:r=t:r=function(n){return e},r},$X=function(t){jX(e,t);function e(r){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes;if(a.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(a.timeInterval),!i||i.length===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var o=a.center;if(i.length===1){i[0].x=o[0],i[0].y=o[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var s={},u={};i.forEach(function(v,p){(0,yn.isNumber)(v.x)||(v.x=Math.random()*a.width),(0,yn.isNumber)(v.y)||(v.y=Math.random()*a.height),s[v.id]=v,u[v.id]=p}),a.nodeMap=s,a.nodeIdxMap=u,a.linkDistance=Bp(a.linkDistance,1),a.nodeStrength=Bp(a.nodeStrength,1),a.edgeStrength=Bp(a.edgeStrength,1);var f=a.nodeSize,l;if(a.preventOverlap){var c=a.nodeSpacing,h;(0,yn.isNumber)(c)?h=function(){return c}:(0,yn.isFunction)(c)?h=c:h=function(){return 0},f?(0,yn.isArray)(f)?l=function(v){return Math.max(f[0],f[1])+h(v)}:l=function(v){return f+h(v)}:l=function(v){return v.size?(0,yn.isArray)(v.size)?Math.max(v.size[0],v.size[1])+h(v):(0,yn.isObject)(v.size)?Math.max(v.size.width,v.size.height)+h(v):v.size+h(v):10+h(v)}}a.nodeSize=l;var d=a.edges;a.degrees=(0,yn.getDegree)(i.length,a.nodeIdxMap,d),a.getMass||(a.getMass=function(v){var p=v.mass||a.degrees[a.nodeIdxMap[v.id]].all||1;return p}),a.run()},e.prototype.run=function(){var r,n=this,a=n.maxIteration,i=n.nodes,o=n.workerEnabled,s=n.minMovement,u=n.animate;if(i)if(o||!u){for(var f=0;f"u")return;var c=0;this.timeInterval=window.setInterval(function(){var h,d;if(i){var v=n.runOneStep(c)||[];n.reachMoveThreshold(i,v,s)&&((h=n.onLayoutEnd)===null||h===void 0||h.call(n),window.clearInterval(n.timeInterval)),c++,c>=a&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(r,n,a){var i=0;return r.forEach(function(o,s){var u=o.x-n[s].x,f=o.y-n[s].y;i+=Math.sqrt(u*u+f*f)}),i/=r.length,i=y)){var m=d.x-g.x,b=d.y-g.y;m===0&&b===0&&(m=Math.random()*.01,b=Math.random()*.01);var w=m*m+b*b,x=Math.sqrt(w),E=(x+.1)*s,_=m/x,S=b/x,A=(c(d)+c(g))*.5*o/(E*E),M=i?i(g):1;if(r[2*v]+=_*A,r[2*v+1]+=S*A,r[2*y]-=_*A,r[2*y+1]-=S*A,u&&(h(d)+h(g))/2>x){var C=l*(c(d)+c(g))*.5/w;r[2*v]+=_*C/p,r[2*v+1]+=S*C/p,r[2*y]-=_*C/M,r[2*y+1]-=S*C/M}}})})},e.prototype.calAttractive=function(r,n){var a=this,i=a.nodeMap,o=a.nodeIdxMap,s=a.linkDistance,u=a.edgeStrength,f=a.nodeSize,l=a.getMass;n.forEach(function(c,h){var d=(0,yn.getEdgeTerminal)(c,"source"),v=(0,yn.getEdgeTerminal)(c,"target"),p=i[d],g=i[v],y=g.x-p.x,m=g.y-p.y;y===0&&m===0&&(y=Math.random()*.01,m=Math.random()*.01);var b=Math.sqrt(y*y+m*m),w=y/b,x=m/b,E=s(c,p,g)||1+(f(p)+f(g)||0)/2,_=E-b,S=_*u(c),A=o[d],M=o[v],C=l?l(p):1,I=l?l(g):1;r[2*A]-=w*S/C,r[2*A+1]-=x*S/C,r[2*M]+=w*S/I,r[2*M+1]+=x*S/I})},e.prototype.calGravity=function(r,n){for(var a=this,i=a.center,o=a.gravity,s=a.degrees,u=n.length,f=0;fo.maxSpeed){var d=o.maxSpeed/h;l=d*l,c=d*c}n[2*f]=l,n[2*f+1]=c})},e.prototype.updatePosition=function(r,n,a){a.forEach(function(i,o){if((0,yn.isNumber)(i.fx)&&(0,yn.isNumber)(i.fy)){i.x=i.fx,i.y=i.fy;return}var s=r[2*o]*n,u=r[2*o+1]*n;i.x+=s,i.y+=u})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(UX.Base);fl.GForceLayout=$X;var ll={},zd={};function XX(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return rI(this.cover(e,r),e,r,t)}function rI(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var a,i=t._root,o={data:n},s=t._x0,u=t._y0,f=t._x1,l=t._y1,c,h,d,v,p,g,y,m;if(!i)return t._root=o,t;for(;i.length;)if((p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h,a=i,!(i=i[y=g<<1|p]))return a[y]=o,t;if(d=+t._x.call(null,i.data),v=+t._y.call(null,i.data),e===d&&r===v)return o.next=i,a?a[y]=o:t._root=o,t;do a=a?a[y]=new Array(4):t._root=new Array(4),(p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h;while((y=g<<1|p)===(m=(v>=h)<<1|d>=c));return a[m]=i,a[y]=o,t}function WX(t){var e,r,n=t.length,a,i,o=new Array(n),s=new Array(n),u=1/0,f=1/0,l=-1/0,c=-1/0;for(r=0;rl&&(l=a),ic&&(c=i));if(u>l||f>c)return this;for(this.cover(u,f).cover(l,c),r=0;rt||t>=a||n>e||e>=i;)switch(f=(el||(s=v.y0)>c||(u=v.x1)=y)<<1|t>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-p],h[h.length-1-p]=v)}else{var m=t-+this._x.call(null,d.data),b=e-+this._y.call(null,d.data),w=m*m+b*b;if(w=(h=(o+u)/2))?o=h:u=h,(p=c>=(d=(s+f)/2))?s=d:f=d,e=r,!(r=r[g=p<<1|v]))return this;if(!r.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(n=e,y=g)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(i=r.next)&&delete r.next,a?(i?a.next=i:delete a.next,this):e?(i?e[g]=i:delete e[g],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(n?n[y]=r:this._root=r),this):(this._root=i,this)}function KX(t){for(var e=0,r=t.length;e1&&(S=(0,Hr.getAvgNodePosition)(M))}else S=void 0;return{x:S==null?void 0:S.x,y:S==null?void 0:S.y}}}}if(a){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(b,w){return b[i]}))).filter(function(b){return b!==void 0}),v={};d.forEach(function(b){var w=o.filter(function(x){return x[i]===b}).map(function(x){return s[x.id]});v[b]=(0,Hr.getAvgNodePosition)(w)}),l={single:function(b){return f(b)},leaf:function(b){return f(b)},others:function(b){return f(b)},center:function(b,w,x){var E=v[b[i]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}this.centripetalOptions=da(da({},this.centripetalOptions),l);var p=this.centripetalOptions,g=p.leaf,y=p.single,m=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),y&&typeof y!="function"&&(this.centripetalOptions.single=function(){return y}),m&&typeof m!="function"&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(r){r&&Object.assign(this,r)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r=this;r.stop();var n=r.nodes,a=r.edges,i=r.defSpringLen;if(r.judgingDistance=0,!n||n.length===0){r.onLayoutEnd([]);return}!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var o=r.center;if(n.length===1){n[0].x=o[0],n[0].y=o[1],r.onLayoutEnd([da({},n[0])]);return}r.degreesMap=(0,Hr.getDegreeMap)(n,a),r.propsGetMass?r.getMass=r.propsGetMass:r.getMass=function(d){var v=1;(0,Hr.isNumber)(d.mass)&&(v=d.mass);var p=r.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=r.nodeSize,u;if(r.preventOverlap){var f=r.nodeSpacing,l;(0,Hr.isNumber)(f)?l=function(){return f}:(0,Hr.isFunction)(f)?l=f:l=function(){return 0},s?(0,Hr.isArray)(s)?u=function(d){return Math.max(s[0],s[1])+l(d)}:u=function(d){return s+l(d)}:u=function(d){return d.size?(0,Hr.isArray)(d.size)?Math.max(d.size[0],d.size[1])+l(d):(0,Hr.isObject)(d.size)?Math.max(d.size.width,d.size.height)+l(d):d.size+l(d):10+l(d)}}r.nodeSize=u,r.linkDistance=Gp(r.linkDistance,1),r.nodeStrength=Gp(r.nodeStrength,1),r.edgeStrength=Gp(r.edgeStrength,1);var c={},h={};n.forEach(function(d,v){(0,Hr.isNumber)(d.x)||(d.x=Math.random()*r.width),(0,Hr.isNumber)(d.y)||(d.y=Math.random()*r.height);var p=r.degreesMap[d.id];c[d.id]=da(da({},d),{data:da(da({},d.data),{size:r.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:r.getMass(d),nodeStrength:r.nodeStrength(d,a)}}})}),h[d.id]=v}),r.nodeMap=c,r.nodeIdxMap=h,r.edgeInfos=[],a==null||a.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):r.edgeInfos.push({edgeStrength:r.edgeStrength(d),linkDistance:i?i(da(da({},d),{source:v,target:p}),v,p):r.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),r.onLayoutEnd=r.onLayoutEnd||function(){},r.run()},e.prototype.run=function(){var r=this,n=r.maxIteration,a=r.nodes,i=r.edges,o=r.workerEnabled,s=r.minMovement,u=r.animate,f=r.nodeMap,l=r.height;if(r.currentMinY=0,r.currentMaxY=l,!!a){var c=[];if(a.forEach(function(y,m){c[2*m]=0,c[2*m+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var h={};i.forEach(function(y){var m=y.source,b=y.target;h[m]=h[m]||[],h[m].push(y),h[b]=h[b]||[],h[b].push(y)}),this.relatedEdges=h}var d=n,v=!u;if(o||v){for(var p=0;(r.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){a&&(r.runOneStep(g,c),g++,(g>=d||r.judgingDistanceu){var v=u/d;c=v*c,h=v*h}n[2*l]=c,n[2*l+1]=h})},e.prototype.updatePosition=function(r,n){var a=this,i=a.nodes,o=a.distanceThresholdMode,s=a.nodeMap;if(!(i!=null&&i.length)){this.judgingDistance=0;return}var u=0;o==="max"?a.judgingDistance=-1/0:o==="min"&&(a.judgingDistance=1/0);var f=1/0,l=-1/0;i.forEach(function(c,h){var d=s[c.id];if((0,Hr.isNumber)(c.fx)&&(0,Hr.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=r[2*h]*n,p=r[2*h+1]*n;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yl&&(l=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":a.judgingDistanceg&&(a.judgingDistance=g);break;default:u=u+g;break}}),this.currentMinY=f,this.currentMaxY=l,(!o||o==="mean")&&(a.judgingDistance=u/i.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var r=this,n=r.nodeClusterBy,a=r.nodes,i=r.edges,o=r.nodeMap,s=r.degreesMap;if(a!=null&&a.length){var u={};return a.forEach(function(f,l){var c=s[f.id].all;c===1&&(u[f.id]=(0,Hr.getCoreNodeAndRelativeLeafNodes)("leaf",f,i,n,s,o))}),u}},e}(pW.Base);ll.Force2Layout=yW;var rm={},Ud={};function mW(t,e){var r,n=1;t==null&&(t=0),e==null&&(e=0);function a(){var i,o=r.length,s,u=0,f=0;for(i=0;ih.index){var C=d-S.x-S.vx,I=v-S.y-S.vy,k=C*C+I*I;kd+M||Ev+M||_f.r&&(f.r=f[l].r)}function u(){if(e){var f,l=e.length,c;for(r=new Array(l),f=0;f[e(x,E,o),x])),w;for(g=0,s=new Array(y);g{}};function nI(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ch.prototype=nI.prototype={constructor:ch,on:function(t,e){var r=this._,n=MW(t+"",r),a,i=-1,o=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(a),n=0,a,i;n=0&&t._call.call(null,e),t=t._next;--au}function kE(){Wo=(qh=Xf.now())+$d,au=pf=0;try{TW()}finally{au=0,kW(),Wo=0}}function IW(){var t=Xf.now(),e=t-qh;e>aI&&($d-=e,qh=t)}function kW(){for(var t,e=Yh,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Yh=r);gf=t,yg(n)}function yg(t){if(!au){pf&&(pf=clearTimeout(pf));var e=t-Wo;e>24?(t<1/0&&(pf=setTimeout(kE,t-Xf.now()-$d)),Zu&&(Zu=clearInterval(Zu))):(Zu||(qh=Xf.now(),Zu=setInterval(IW,aI)),au=1,iI(kE))}}const NW=1664525,OW=1013904223,NE=4294967296;function LW(){let t=1;return()=>(t=(NW*t+OW)%NE)/NE}function DW(t){return t.x}function PW(t){return t.y}var RW=10,FW=Math.PI*(3-Math.sqrt(5));function BW(t){var e,r=1,n=.001,a=1-Math.pow(n,1/300),i=0,o=.6,s=new Map,u=sI(c),f=nI("tick","end"),l=LW();t==null&&(t=[]);function c(){h(),f.call("tick",e),r1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,y){var m=0,b=t.length,w,x,E,_,S;for(y==null?y=1/0:y*=y,m=0;m1?(f.on(p,g),e):f.on(p)}}}function GW(){var t,e,r,n,a=Qr(-30),i,o=1,s=1/0,u=.81;function f(d){var v,p=t.length,g=jd(t,DW,PW).visitAfter(c);for(n=d,v=0;v=s)return;(d.data!==e||d.next)&&(y===0&&(y=$i(r),w+=y*y),m===0&&(m=$i(r),w+=m*m),w-1||(o[u]=i[u])}),o}),n.ticking=!1},e.prototype.execute=function(r){var n=this,a=n.nodes,i=n.edges;if(!n.ticking){var o=n.forceSimulation,s=n.alphaMin,u=n.alphaDecay,f=n.alpha;if(o){if(r){if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(a),n.clusterForce.links(i)),o.nodes(a),i&&n.edgeForce)n.edgeForce.links(i);else if(i&&!n.edgeForce){var h=_s.forceLink().id(function(g){return g.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}}n.preventOverlap&&n.overlapProcess(o),o.alpha(f).restart(),this.ticking=!0}else try{var l=_s.forceManyBody();if(n.nodeStrength&&l.strength(n.nodeStrength),o=_s.forceSimulation().nodes(a),n.clustering){var c=(0,JW.default)();c.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),i&&c.links(i),a&&c.nodes(a),c.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=c,o.force("group",c)}if(o.force("center",_s.forceCenter(n.center[0],n.center[1])).force("charge",l).alpha(f).alphaDecay(u).alphaMin(s),n.preventOverlap&&n.overlapProcess(o),i){var h=_s.forceLink().id(function(p){return p.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!aV()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!n.workerEnabled)o.on("tick",function(){n.tick()}).on("end",function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()}),n.ticking=!0;else{o.stop();for(var d=nV(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:a,currentTick:v,totalTicks:d,type:tV.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}n.forceSimulation=o,n.ticking=!0}catch(p){n.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(r){var n=this,a=n.nodeSize,i=n.nodeSpacing,o,s,u=n.collideStrength;if((0,Ao.isNumber)(i)?s=function(){return i}:(0,Ao.isFunction)(i)?s=i:s=function(){return 0},!a)o=function(h){if(h.size){if((0,Ao.isArray)(h.size)){var d=h.size[0]>h.size[1]?h.size[0]:h.size[1];return d/2+s(h)}if((0,Ao.isObject)(h.size)){var d=h.size.width>h.size.height?h.size.width:h.size.height;return d/2+s(h)}return h.size/2+s(h)}return 10+s(h)};else if((0,Ao.isFunction)(a))o=function(h){var d=a(h);return d+s(h)};else if((0,Ao.isArray)(a)){var f=a[0]>a[1]?a[0]:a[1],l=f/2;o=function(h){return l+s(h)}}else if((0,Ao.isNumber)(a)){var c=a/2;o=function(h){return c+s(h)}}else o=function(){return 10};r.force("collisionForce",_s.forceCollide(o).strength(u))},e.prototype.updateCfg=function(r){var n=this;n.ticking&&(n.forceSimulation.stop(),n.ticking=!1),n.forceSimulation=null,Object.assign(n,r)},e.prototype.destroy=function(){var r=this;r.ticking&&(r.forceSimulation.stop(),r.ticking=!1),r.nodes=null,r.edges=null,r.destroyed=!0},e}(eV.Base);Ud.ForceLayout=rV;function nV(t){var e=t.alphaMin(),r=t.alphaTarget(),n=t.alpha(),a=Math.log((e-r)/(n-r))/Math.log(1-t.alphaDecay()),i=Math.ceil(a);return i}function aV(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ud,t)})(rm);var cl={},iV=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cl,"__esModule",{value:!0});cl.CircularLayout=void 0;var oV=Rr,$a=Ir();function sV(t,e,r,n){t.forEach(function(a,i){t[i].children=[],t[i].parent=[]}),n?e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].parent;f.push(t[u].id),l.push(t[s].id)}):e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].children;f.push(t[u].id),l.push(t[s].id)})}function uV(t,e,r){for(var n=r.length,a=0;an?1:0}var lV=function(t){iV(e,t);function e(r){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var r,n=this,a=n.nodes,i=n.edges,o=a.length;if(o===0){n.onLayoutEnd&&n.onLayoutEnd();return}!n.width&&typeof window<"u"&&(n.width=window.innerWidth),!n.height&&typeof window<"u"&&(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(o===1){a[0].x=s[0],a[0].y=s[1],n.onLayoutEnd&&n.onLayoutEnd();return}var u=n.radius,f=n.startRadius,l=n.endRadius,c=n.divisions,h=n.startAngle,d=n.endAngle,v=n.angleRatio,p=n.ordering,g=n.clockwise,y=n.nodeSpacing,m=n.nodeSize,b=(d-h)/o,w={};a.forEach(function(L,z){w[L.id]=z}),n.nodeMap=w;var x=(0,$a.getDegree)(a.length,w,i);if(n.degrees=x,y){var E=(0,$a.getFuncByUnknownType)(10,y),_=(0,$a.getFuncByUnknownType)(10,m),S=-1/0;a.forEach(function(L){var z=_(L);Sn.width?n.width/2:n.height/2:!f&&l?f=l:f&&!l&&(l=f);var M=b*v,C=[];p==="topology"?C=n.topologyOrdering():p==="topology-directed"?C=n.topologyOrdering(!0):p==="degree"?C=n.degreeOrdering():C=a;for(var I=Math.ceil(o/c),k=0;k0?t.set(e,r):t.delete(e))}function uI(t,e,r,n){var a=String(e),i=String(r);if(!t&&a>i){var o=a;a=i,i=o}return a+Xs.EDGE_KEY_DELIM+i+Xs.EDGE_KEY_DELIM+(n===void 0?Xs.DEFAULT_EDGE_NAME:n)}function PE(t,e,r,n){var a=String(e),i=String(r),o={v:e,w:r};if(!t&&a>i){var s=o.v;o.v=o.w,o.w=s}return n!==void 0&&(o.name=n),o}function zp(t,e){return uI(t,e.v,e.w,e.name)}function RE(t){return typeof t=="function"}var dV=function(e){return e.nodes().map(function(r){var n=e.node(r),a=e.parent(r),i={id:r,value:n,parent:a};return i.value===void 0&&delete i.value,i.parent===void 0&&delete i.parent,i})},vV=function(e){return e.edges().map(function(r){var n=e.edge(r),a={v:r.v,w:r.w,value:n,name:r.name};return a.name===void 0&&delete a.name,a.value===void 0&&delete a.value,a})},pV=function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:dV(e),edges:vV(e),value:e.graph()};return r.value===void 0&&delete r.value,r},gV=function(e){var r=new Qo(e.options);return e.value!==void 0&&r.setGraph(e.value),e.nodes.forEach(function(n){r.setNode(n.id,n.value),n.parent&&r.setParent(n.id,n.parent)}),e.edges.forEach(function(n){r.setEdge(n.v,n.w,n.value,n.name)}),r};function FE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function BE(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};mV(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=Xs.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(a){return e.label=a,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(a){return RE(a)?e.defaultNodeLabelFn=a:e.defaultNodeLabelFn=function(){return a},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(a){return e.nodesLabelMap.get(a)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.inEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.sinks=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.outEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.setNodes=function(a,i){return a.map(function(o){return e.setNode(o,i)}),e},this.hasNode=function(a){return e.nodesLabelMap.has(a)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(a){if(e.isCompound()){var i,o=(i=e.parentMap)===null||i===void 0?void 0:i.get(a);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(a){var i=e.parentMap.get(a);e.childrenMap.get(i).delete(a)},this.setParent=function(a,i){var o,s;e.checkCompound();for(var u=i===void 0?e.GRAPH_NODE:i,f=e.parent(u);f;){if(a===f)throw new Error("Setting "+i+" as parent of "+a+" would create a cycle");f=e.parent(f)}i&&e.setNode(i),e.setNode(a),e.removeFromParentsChildList(a),(o=e.parentMap)===null||o===void 0||o.set(a,u);var l=e.childrenMap.get(u);return l.set(a,!0),(s=e.childrenMap)===null||s===void 0||s.set(u,l),e},this.children=function(a){var i=a===void 0?e.GRAPH_NODE:a;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(i);return s?Array.from(s.keys()):void 0}if(i===e.GRAPH_NODE)return e.nodes();if(a&&e.hasNode(a))return[]},this.predecessors=function(a){var i=e.predecessorsMap.get(a);return i?Array.from(i.keys()):void 0},this.successors=function(a){var i=e.successorsMap.get(a);return i?Array.from(i.keys()):void 0},this.neighbors=function(a){var i;if(e.hasNode(a))return Array.from(new Set((i=e.predecessors(a))===null||i===void 0?void 0:i.concat(e.successors(a))))},this.isLeaf=function(a){var i;if(e.isDirected()){var o;return!(!((o=e.successors(a))===null||o===void 0)&&o.length)}return!(!((i=e.neighbors(a))===null||i===void 0)&&i.length)},this.filterNodes=function(a){var i=e.directed,o=e.multigraph,s=e.compound,u=new t({directed:i,multigraph:o,compound:s});if(u.setGraph(e.graph()),e.nodes().forEach(function(l){a(l)&&u.setNode(l,e.node(l))}),e.edges().forEach(function(l){u.hasNode(l.v)&&u.hasNode(l.w)&&u.setEdgeObj(l,e.edge(l))}),s){var f=function(c){for(var h=e.parent(c);h!==void 0&&!u.hasNode(h);)h=e.parent(h);return h};u.nodes().forEach(function(l){u.setParent(l,f(l))})}return u},this.setDefaultEdgeLabel=function(a){return RE(a)?e.defaultEdgeLabelFn=a:e.defaultEdgeLabelFn=function(){return a},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(a,i){return e.setEdge(a.v,a.w,i,a.name)},this.setPath=function(a,i){return a.reduce(function(o,s){return e.setEdge(o,s,i),s}),e},this.edgeFromArgs=function(a,i,o){return e.edge({v:a,w:i,name:o})},this.edge=function(a){return e.edgesLabelsMap.get(zp(e.isDirected(),a))},this.hasEdge=function(a,i,o){return e.edgesLabelsMap.has(zp(e.isDirected(),{v:a,w:i,name:o}))},this.removeEdgeObj=function(a){var i=a.v,o=a.w,s=a.name;return e.removeEdge(i,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(a,i){var o=e.inEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.v===i})},this.outEdges=function(a,i){var o=e.outEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.w===i})},this.nodeEdges=function(a,i){var o;if(e.hasNode(a))return(o=e.inEdges(a,i))===null||o===void 0?void 0:o.concat(e.outEdges(a,i))},this.toJSON=function(){return pV(e)},this.nodeInDegree=function(a){var i=e.inEdgesMap.get(a);return i?i.size:0},this.nodeOutDegree=function(a){var i=e.outEdgesMap.get(a);return i?i.size:0},this.nodeDegree=function(a){return e.nodeInDegree(a)+e.nodeOutDegree(a)},this.source=function(a){return a.v},this.target=function(a){return a.w};var n=BE(BE({},xV),r);this.compound=n.compound,this.directed=n.directed,this.multigraph=n.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return wV(t,[{key:"setNode",value:function(r,n){var a=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,u=this.childrenMap,f=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(a.has(r))return n!==void 0&&a.set(r,n),this;if(a.set(r,n||i(r)),o()){var d;s==null||s.set(r,this.GRAPH_NODE),u==null||u.set(r,new Map),u!=null&&u.has(this.GRAPH_NODE)||u==null||u.set(this.GRAPH_NODE,new Map),u==null||(d=u.get(this.GRAPH_NODE))===null||d===void 0||d.set(r,!0)}return[f,l,c,h].forEach(function(v){return v.set(r,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(r){var n=this;if(this.hasNode(r)){var a=function(g){n.removeEdge(g.v,g.w,g.name)},i=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,u=this.successorsMap,f=this.nodesLabelMap;if(this.isCompound()){var l,c,h;this.removeFromParentsChildList(r),(l=this.parentMap)===null||l===void 0||l.delete(r),(c=this.children(r))===null||c===void 0||c.forEach(function(p){return n.setParent(p)}),(h=this.childrenMap)===null||h===void 0||h.delete(r)}var d=i.get(r),v=o.get(r);Array.from(d.values()).forEach(function(p){return a(p)}),Array.from(v.values()).forEach(function(p){return a(p)}),f.delete(r),i.delete(r),o.delete(r),s.delete(r),u.delete(r),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(r,n,a,i){var o,s,u=PE(this.isDirected(),r,n,i),f=zp(this.isDirected(),u),l=u.v,c=u.w;if(this.edgesLabelsMap.has(f))return this.edgesLabelsMap.set(f,a),this;if(i!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(f,a||this.defaultEdgeLabelFn(l,c,i)),Object.freeze(u),this.edgesMap.set(f,u);var h=this.predecessorsMap.get(c),d=this.successorsMap.get(l);return LE(h,l),LE(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(f,u),(s=this.outEdgesMap.get(l))===null||s===void 0||s.set(f,u),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(r,n,a){var i=uI(this.isDirected(),r,n,a),o=this.edgesMap.get(i);if(o){var s=PE(this.isDirected(),r,n,a),u=s.v,f=s.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var l=this.predecessorsMap.get(f),c=this.successorsMap.get(u);DE(l,u),DE(c,f),this.inEdgesMap.get(f).delete(i),this.outEdgesMap.get(u).delete(i),this.edgeCountNum-=1}return this}}]),t}();Qo.fromJSON=gV;function mg(t){"@babel/helpers - typeof";return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(t)}function EV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _V(t,e){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},di(t)}var NV=function(t){AV(r,t);var e=CV(r);function r(){var n;EV(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1&&this.eventPool[a].splice(o,1)}}},{key:"emitEvent",value:function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s>1,((s=n[i])===null||s===void 0?void 0:s.priority)e.arr[a].priority)throw new Error("New priority is greater than current priority.Key: ".concat(r," Old: + ").concat(e.arr[a].priority," New: ").concat(n));e.arr[a].priority=n,e.innerDecrease(a)}}),DV=function(e,r){var n=new Qo,a=new Map,i=new fI,o;function s(l){var c=l.v===o?l.w:l.v,h=i.priority(c);if(h!==void 0){var d=r(l);d0;){var f;if(o=i.removeMin(),a.has(o))n.setEdge(o,a.get(o));else{if(u)throw new Error("Input graph is not connected: "+e.graph());u=!0}(f=e.nodeEdges(o))===null||f===void 0||f.forEach(s)}return n},PV=function(e){var r=new Set,n=[],a=e.nodes();return a.forEach(function(i){for(var o=[],s=[i];s.length>0;){var u=s.pop();if(!r.has(u)){var f,l;r.add(u),o.push(u),(f=e.successors(u))===null||f===void 0||f.forEach(function(c){return s.push(c)}),(l=e.predecessors(u))===null||l===void 0||l.forEach(function(c){return s.push(c)})}}o.length&&n.push(o)}),n},RV=function t(e,r,n,a,i,o){a.includes(r)||(a.push(r),n||o.push(r),i(r).forEach(function(s){return t(e,s,n,a,i,o)}),n&&o.push(r))},lm=function(e,r,n){var a=Array.isArray(r)?r:[r],i=function(f){return e.isDirected()?e.successors(f):e.neighbors(f)},o=[],s=[];return a.forEach(function(u){if(e.hasNode(u))RV(e,u,n==="post",s,i,o);else throw new Error("Graph does not have node: "+u)}),o};function FV(t,e){return jV(t)||zV(t,e)||GV(t,e)||BV()}function BV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GV(t,e){if(t){if(typeof t=="string")return GE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GE(t,e)}}function GE(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(s=o.removeMin(),u=i.get(s),!(u&&u.distance===Number.POSITIVE_INFINITY));)a(s).forEach(f);var l={};return Array.from(i.entries()).forEach(function(c){var h=FV(c,2),d=h[0],v=h[1];return l[String(d)]=v,l}),l},XV=function(e,r,n){var a={};return e.nodes().forEach(function(i){return a[String(i)]=lI(e,i,r,n),a}),a},cI=function(e){var r=0,n=[],a=new Map,i=[];function o(s){var u,f={onStack:!0,lowlink:r,index:r};if(a.set(s,f),r+=1,n.push(s),(u=e.successors(s))===null||u===void 0||u.forEach(function(d){var v;if(a.has(d)){if(!((v=a.get(d))===null||v===void 0)&&v.onStack){var g=a.get(d);f.lowlink=Math.min(f.lowlink,g.index)}}else{o(d);var p=a.get(d);f.lowlink=Math.min(f.lowlink,p.lowlink)}}),f.lowlink===f.index){var l=[],c;do{c=n.pop();var h=a.get(c);h.onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return e.nodes().forEach(function(s){a.has(s)||o(s)}),i},WV=function(e){return cI(e).filter(function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})};function wg(t){"@babel/helpers - typeof";return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(t)}function VV(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function YV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wf(t,e)}function HV(t){var e=hI();return function(){var n=Vf(t),a;if(e){var i=Vf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return ZV(this,a)}}function ZV(t,e){if(e&&(wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KV(t)}function KV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xg(t){var e=typeof Map=="function"?new Map:void 0;return xg=function(n){if(n===null||!QV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return hh(n,arguments,Vf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Wf(a,n)},xg(t)}function hh(t,e,r){return hI()?hh=Reflect.construct:hh=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),f=new u;return o&&Wf(f,o.prototype),f},hh.apply(null,arguments)}function hI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QV(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Wf(t,e){return Wf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Wf(t,e)}function Vf(t){return Vf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vf(t)}var Eg=function(t){qV(r,t);var e=HV(r);function r(){return YV(this,r),e.apply(this,arguments)}return VV(r)}(xg(Error));function dI(t){var e=new Set,r=new Set,n=[];function a(i){if(r.has(i))throw new Eg;if(!e.has(i)){var o;r.add(i),e.add(i),(o=t.predecessors(i))===null||o===void 0||o.forEach(a),r.delete(i),n.push(i)}}if(t.sinks().forEach(a),e.size!==t.nodeCount())throw new Eg;return n}var JV=function(e){try{dI(e)}catch(r){if(r instanceof Eg)return!1;throw r}return!0},eY=function(e,r){return lm(e,r,"post")},tY=function(e,r){return lm(e,r,"pre")},rY=function(){return 1};function nY(t,e,r){return aY(t,e||rY,r||function(n){return t.outEdges(n)})}function aY(t,e,r){var n={},a=t.nodes();return a.forEach(function(i){var o=String(i);n[o]={},n[o][o]={distance:0},a.forEach(function(s){i!==s&&(n[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(s){var u=s.v===i?s.w:s.v,f=e(s);n[o][String(u)]={distance:f,predecessor:i}})}),a.forEach(function(i){var o=String(i),s=n[o];a.forEach(function(u){var f=String(u),l=n[f];a.forEach(function(c){var h=String(c),d=l[o],v=s[h],p=l[h],g=d.distance+v.distance;gt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;--s)if(o=e[s].dequeue(),o){n=n.concat(jp(t,e,r,o,!0));break}}}return n},jp=function(t,e,r,n,a){var i,o,s=[];return(i=t.inEdges(n.v))===null||i===void 0||i.forEach(function(u){var f=t.edge(u),l=t.node(u.v);a&&s.push({v:u.v,w:u.w,in:0,out:0}),l.out===void 0&&(l.out=0),l.out-=f,_g(e,r,l)}),(o=t.outEdges(n.v))===null||o===void 0||o.forEach(function(u){var f=t.edge(u),l=u.w,c=t.node(l);c.in===void 0&&(c.in=0),c.in-=f,_g(e,r,c)}),t.removeNode(n.v),a?s:void 0},NY=function(t,e){var r=new CY,n=0,a=0;t.nodes().forEach(function(f){r.setNode(f,{v:f,in:0,out:0})}),t.edges().forEach(function(f){var l=r.edge(f)||0,c=(e==null?void 0:e(f))||1,h=l+c;r.setEdge(f.v,f.w,h),a=Math.max(a,r.node(f.v).out+=c),n=Math.max(n,r.node(f.w).in+=c)});for(var i=[],o=a+n+3,s=0;sMath.abs(S)*C?(A<0&&(C=-C),I=C*S/A,k=C):(S<0&&(M=-M),I=M,k=M*A/S),{x:E+I,y:_+k}};t.intersectRect=l;var c=function(w){for(var x=[],E=(0,t.maxRank)(w)+1,_=0;_x)&&(x=S)}),x||(x=0),x};t.maxRank=p;var g=function(w,x){var E={lhs:[],rhs:[]};return w==null||w.forEach(function(_){x(_)?E.lhs.push(_):E.rhs.push(_)}),E};t.partition=g;var y=function(w,x){var E=Date.now();try{return x()}finally{console.log("".concat(w," time: ").concat(Date.now()-E,"ms"))}};t.time=y;var m=function(w,x){return x()};t.notime=m;var b=function(w,x){return w.reduce(function(E,_){var S=x(E),A=x(_);return S>A?_:E})};t.minBy=b})(Vn);Object.defineProperty(hm,"__esModule",{value:!0});var zY=Vn,jY=function(t){t.graph().dummyChains=[],t.edges().forEach(function(e){return UY(t,e)})},UY=function(t,e){var r=e.v,n=t.node(r).rank,a=e.w,i=t.node(a).rank,o=e.name,s=t.edge(e),u=s.labelRank;if(i!==n+1){t.removeEdgeObj(e);var f=t.graph(),l,c,h;for(h=0,++n;nA.lim&&(M=A,C=!0);var I=w.edges().filter(function(k){return C===m(b,b.node(k.v),M)&&C!==m(b,b.node(k.w),M)});return(0,n.minBy)(I,function(k){return(0,r.slack)(w,k)})};t.enterEdge=v;var p=function(b,w,x,E){var _=x.v,S=x.w;b.removeEdge(_,S),b.setEdge(E.v,E.w,{}),(0,t.initLowLimValues)(b),(0,t.initCutValues)(b,w),g(b,w)};t.exchangeEdges=p;var g=function(b,w){var x=b.nodes().find(function(_){var S;return!(!((S=w.node(_))===null||S===void 0)&&S.parent)}),E=i(b,x);E=E==null?void 0:E.slice(1),E==null||E.forEach(function(_){var S=b.node(_).parent,A=w.edgeFromArgs(_,S),M=!1;A||(A=w.edgeFromArgs(S,_),M=!0),w.node(_).rank=w.node(S).rank+(M?A.minlen:-A.minlen)})},y=function(b,w,x){return b.hasEdge(w,x)},m=function(b,w,x){return x.low<=w.lim&&w.lim<=x.lim};t.default=s})(CI);var YY=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dm,"__esModule",{value:!0});var TI=ba,qY=Ki,HY=YY(CI),ZY=function(t){switch(t.graph().ranker){case"network-simplex":QY(t);break;case"tight-tree":jE(t);break;case"longest-path":KY(t);break;default:jE(t)}},KY=TI.longestPath,jE=function(t){(0,TI.longestPathWithLayer)(t),(0,qY.feasibleTreeWithLayer)(t)},QY=function(t){(0,HY.default)(t)};dm.default=ZY;var vm={};Object.defineProperty(vm,"__esModule",{value:!0});var JY=function(t){var e,r={},n=0,a=function(i){var o,s=n;(o=t.children(i))===null||o===void 0||o.forEach(a),r[i]={low:s,lim:n++}};return(e=t.children())===null||e===void 0||e.forEach(a),r},eq=function(t,e,r,n){var a=[],i=[],o=Math.min(e[r].low,e[n].low),s=Math.max(e[r].lim,e[n].lim),u,f;u=r;do u=t.parent(u),a.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=n;u&&u!==f;)i.push(u),u=t.parent(u);return{lca:f,path:a.concat(i.reverse())}},tq=function(t){var e,r=JY(t);(e=t.graph().dummyChains)===null||e===void 0||e.forEach(function(n){var a,i,o=n,s=t.node(o),u=s.edgeObj;if(u)for(var f=eq(t,r,u.v,u.w),l=f.path,c=f.lca,h=0,d=l[h],v=!0;o!==u.w;){if(s=t.node(o),v){for(;d!==c&&((a=t.node(d))===null||a===void 0?void 0:a.maxRank)-1:!1},LI=function(t,e){if(!Ln(t))return t;for(var r=[],n=0;n-1;)bq.call(t,i,1);return t},Eq=Array.prototype.splice,zI=function(e,r){if(!Ln(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,Eq.call(e,o,1))}return e},jI=function(t,e,r){if(!Vr(t)&&!ou(t))return t;var n=r;return iu(t,function(a,i){n=e(n,a,i)}),n},_q=function(t,e){var r=[];if(!Ln(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},zq=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))};function xi(t){return typeof t=="number"}function jq(t){return xi(t)&&t%1!==0}function Uq(t){return xi(t)&&t%2===0}function $q(t){return xi(t)&&t%1===0}function Xq(t){return xi(t)&&t<0}var Wq=1e-5;function Vq(t,e,r){return r===void 0&&(r=Wq),t===e||Math.abs(t-e)0};const Hq=function(t,e){if(Vr(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},Zq=function(t,e){if(Vr(t)){for(var r,n=1/0,a=0;aa&&(n=r,o(1),++e),r[s]=u}function o(s){e=0,r=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return r[s]!==void 0||n[s]!==void 0},get:function(s){var u=r[s];if(u!==void 0)return u;if((u=n[s])!==void 0)return i(s,u),u},set:function(s,u){r[s]!==void 0?r[s]=u:i(s,u)}}}var Vp=new Map;function qI(t,e,r){r===void 0&&(r=128);var n=function(){for(var a=[],i=0;ie?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},UH=function(t){return Ln(t)?Array.prototype.slice.call(t):[]};var Lc={};const $H=function(t){return t=t||"g",Lc[t]?Lc[t]+=1:Lc[t]=1,t+Lc[t]},XH=function(){},WH=function(t){return t};function VH(t){return no(t)?0:Ln(t)?t.length:Object.keys(t).length}var YH=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),qH=/rgba?\(([\s.,0-9]+)\)/;function HH(){var t=document.getElementById("antv-web-colour-picker");return t||(t=document.createElement("i"),t.id="antv-web-colour-picker",t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t)}function ZH(t){if(t[0]==="#"&&t.length===7)return t;var e=HH();e.style.color=t;var r=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),n=qH.exec(r),a=n[1].split(/\s*,\s*/).map(function(i){return Number(i)});return r=OI(a),r}var ZI=qI(ZH,function(t){return t},256);function Yp(t,e,r,n){return t[n]+(e[n]-t[n])*r}function KH(t,e){var r=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,a=Math.floor(n*r),i=n*r-a,o=t[a],s=a===n?o:t[a+1];return OI([Yp(o,s,i,0),Yp(o,s,i,1),Yp(o,s,i,2)])}function QH(t){var e=typeof t=="string"?t.split("-"):t,r=e.map(function(n){return NI(n.indexOf("#")===-1?ZI(n):n)});return function(n){return KH(r,n)}}var JH=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,eZ=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,tZ=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function rZ(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}function nZ(t){if(rZ(t)){var e,r=void 0;if(t[0]==="l"){var n=JH.exec(t),a=+n[1]+90;r=n[2],e="linear-gradient(".concat(a,"deg, ")}else if(t[0]==="r"){e="radial-gradient(";var n=eZ.exec(t);r=n[4]}var i=r.match(tZ);return i.forEach(function(o,s){var u=o.split(":");e+="".concat(u[1]," ").concat(Number(u[0])*100,"%"),s!==i.length-1&&(e+=", ")}),e+=")",e}return t}function aZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return uy(n,r),Qa(t,n,e)}function iZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return fy(n,r),Qa(t,n,e)}function oZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return ly(n,r),Qa(t,n,e)}function sZ(t,e,r){return Qa(t,r,e)}function uZ(t,e){for(var r=t?[].concat(t):[1,0,0,0,1,0,0,0,1],n=0,a=e.length;n=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function lZ(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function cZ(t,e){if(e==="off")return[].concat(t);var r=typeof e=="number"&&e>=1?Math.pow(10,e):1;return t.map(function(n){var a=n.slice(1).map(Number).map(function(i){return e?Math.round(i*r)/r:Math.round(i)});return[n[0]].concat(a)})}function hZ(t,e){return e===void 0&&(e="off"),cZ(t,e).map(function(r){return r[0]+r.slice(1).join(" ")}).join("")}var QI={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function dZ(t,e,r){if(t[r].length>7){t[r].shift();for(var n=t[r],a=r;n.length;)e[r]="A",t.splice(a+=1,0,["C"].concat(n.splice(0,6)));t.splice(r,1)}}var Af={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function JI(t){return Array.isArray(t)&&t.every(function(e){var r=e[0].toLowerCase();return Af[r]===e.length-1&&"achlmqstvz".includes(r)})}function ek(t){return JI(t)&&t.every(function(e){var r=e[0];return r===r.toUpperCase()})}function tk(t){return ek(t)&&t.every(function(e){var r=e[0];return"ACLMQZ".includes(r)})}function VE(t){for(var e=t.pathValue[t.segmentStart],r=e.toLowerCase(),n=t.data;n.length>=Af[r]&&(r==="m"&&n.length>2?(t.segments.push([e].concat(n.splice(0,2))),r="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(n.splice(0,Af[r]))),!!Af[r]););}function vZ(t){var e=t.index,r=t.pathValue,n=r.charCodeAt(e);if(n===48){t.param=0,t.index+=1;return}if(n===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'.concat(r[e],'", expecting 0 or 1 at index ').concat(e)}function pZ(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ss(t){return t>=48&&t<=57}function gZ(t){var e=t.max,r=t.pathValue,n=t.index,a=n,i=!1,o=!1,s=!1,u=!1,f;if(a>=e){t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(f=r.charCodeAt(a),(f===43||f===45)&&(a+=1,f=r.charCodeAt(a)),!Ss(f)&&f!==46){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" is not a number');return}if(f!==46){if(i=f===48,a+=1,f=r.charCodeAt(a),i&&a=5760&&e.includes(t)}function dh(t){for(var e=t.pathValue,r=t.max;t.index0;o-=1){if(bZ(a)&&(o===3||o===4)?vZ(t):gZ(t),t.err.length)return;t.data.push(t.param),dh(t),t.index=t.max||!pZ(r.charCodeAt(t.index)))break}VE(t)}var xZ=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 Yd(t){if(JI(t))return[].concat(t);var e=new xZ(t);for(dh(e);e.index1&&(M=Math.sqrt(M),h*=M,d*=M);var C=h*h,I=d*d,k=(i===o?-1:1)*Math.sqrt(Math.abs((C*I-C*A*A-I*S*S)/(C*A*A+I*S*S)));E=k*h*A/d+(l+v)/2,_=k*-d*S/h+(c+p)/2,w=Math.asin(((c-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=Math.asin(((p-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),w=lx&&(w-=Math.PI*2),!o&&x>w&&(x-=Math.PI*2)}var O=x-w;if(Math.abs(O)>g){var B=x,L=v,z=p;x=w+g*(o&&x>w?1:-1),v=E+h*Math.cos(x),p=_+d*Math.sin(x),m=wm(v,p,h,d,a,0,o,L,z,[x,B,E,_])}O=x-w;var X=Math.cos(w),R=Math.sin(w),V=Math.cos(x),he=Math.sin(x),ce=Math.tan(O/4),le=4/3*h*ce,ie=4/3*d*ce,Ie=[l,c],qe=[l+le*R,c-ie*X],Ve=[v+le*he,p-ie*V],it=[v,p];if(qe[0]=2*Ie[0]-qe[0],qe[1]=2*Ie[1]-qe[1],f)return qe.concat(Ve,it,m);m=qe.concat(Ve,it,m);for(var dt=[],st=0,Tt=m.length;st=i)o={x:r,y:n};else{var s=zi([t,e],[r,n],a/i),u=s[0],f=s[1];o={x:u,y:f}}return{length:i,point:o,min:{x:Math.min(t,r),y:Math.min(e,n)},max:{x:Math.max(t,r),y:Math.max(e,n)}}}function qE(t,e){var r=t.x,n=t.y,a=e.x,i=e.y,o=r*a+n*i,s=Math.sqrt((Math.pow(r,2)+Math.pow(n,2))*(Math.pow(a,2)+Math.pow(i,2))),u=r*i-n*a<0?-1:1,f=u*Math.acos(o/s);return f}function IZ(t,e,r,n,a,i,o,s,u,f){var l=Math.abs,c=Math.sin,h=Math.cos,d=Math.sqrt,v=Math.PI,p=l(r),g=l(n),y=(a%360+360)%360,m=y*(v/180);if(t===s&&e===u)return{x:t,y:e};if(p===0||g===0)return Ag(t,e,s,u,f).point;var b=(t-s)/2,w=(e-u)/2,x={x:h(m)*b+c(m)*w,y:-c(m)*b+h(m)*w},E=Math.pow(x.x,2)/Math.pow(p,2)+Math.pow(x.y,2)/Math.pow(g,2);E>1&&(p*=d(E),g*=d(E));var _=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2),S=Math.pow(p,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2),A=_/S;A=A<0?0:A;var M=(i!==o?1:-1)*d(A),C={x:M*(p*x.y/g),y:M*(-(g*x.x)/p)},I={x:h(m)*C.x-c(m)*C.y+(t+s)/2,y:c(m)*C.x+h(m)*C.y+(e+u)/2},k={x:(x.x-C.x)/p,y:(x.y-C.y)/g},O=qE({x:1,y:0},k),B={x:(-x.x-C.x)/p,y:(-x.y-C.y)/g},L=qE(k,B);!o&&L>0?L-=2*v:o&&L<0&&(L+=2*v),L%=2*v;var z=O+L*f,X=p*h(z),R=g*c(z),V={x:h(m)*X-c(m)*R+I.x,y:c(m)*X+h(m)*R+I.y};return V}function kZ(t,e,r,n,a,i,o,s,u,f,l){var c,h=l.bbox,d=h===void 0?!0:h,v=l.length,p=v===void 0?!0:v,g=l.sampleSize,y=g===void 0?30:g,m=typeof f=="number",b=t,w=e,x=0,E=[b,w,x],_=[b,w],S=0,A={x:0,y:0},M=[{x:b,y:w}];m&&f<=0&&(A={x:b,y:w});for(var C=0;C<=y;C+=1){if(S=C/y,c=IZ(t,e,r,n,a,i,o,s,u,S),b=c.x,w=c.y,d&&M.push({x:b,y:w}),p&&(x+=bu(_,[b,w])),_=[b,w],m&&x>=f&&f>E[2]){var I=(x-f)/(x-E[2]);A={x:_[0]*(1-I)+E[0]*I,y:_[1]*(1-I)+E[1]*I}}E=[b,w,x]}return m&&f>=x&&(A={x:s,y:u}),{length:x,point:A,min:{x:Math.min.apply(null,M.map(function(k){return k.x})),y:Math.min.apply(null,M.map(function(k){return k.y}))},max:{x:Math.max.apply(null,M.map(function(k){return k.x})),y:Math.max.apply(null,M.map(function(k){return k.y}))}}}function NZ(t,e,r,n,a,i,o,s,u){var f=1-u;return{x:Math.pow(f,3)*t+3*Math.pow(f,2)*u*r+3*f*Math.pow(u,2)*a+Math.pow(u,3)*o,y:Math.pow(f,3)*e+3*Math.pow(f,2)*u*n+3*f*Math.pow(u,2)*i+Math.pow(u,3)*s}}function ak(t,e,r,n,a,i,o,s,u,f){var l,c=f.bbox,h=c===void 0?!0:c,d=f.length,v=d===void 0?!0:d,p=f.sampleSize,g=p===void 0?10:p,y=typeof u=="number",m=t,b=e,w=0,x=[m,b,w],E=[m,b],_=0,S={x:0,y:0},A=[{x:m,y:b}];y&&u<=0&&(S={x:m,y:b});for(var M=0;M<=g;M+=1){if(_=M/g,l=NZ(t,e,r,n,a,i,o,s,_),m=l.x,b=l.y,h&&A.push({x:m,y:b}),v&&(w+=bu(E,[m,b])),E=[m,b],y&&w>=u&&u>x[2]){var C=(w-u)/(w-x[2]);S={x:E[0]*(1-C)+x[0]*C,y:E[1]*(1-C)+x[1]*C}}x=[m,b,w]}return y&&u>=w&&(S={x:o,y:s}),{length:w,point:S,min:{x:Math.min.apply(null,A.map(function(I){return I.x})),y:Math.min.apply(null,A.map(function(I){return I.y}))},max:{x:Math.max.apply(null,A.map(function(I){return I.x})),y:Math.max.apply(null,A.map(function(I){return I.y}))}}}function OZ(t,e,r,n,a,i,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*r+Math.pow(o,2)*a,y:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i}}function LZ(t,e,r,n,a,i,o,s){var u,f=s.bbox,l=f===void 0?!0:f,c=s.length,h=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],w=[g,y],x=0,E={x:0,y:0},_=[{x:g,y}];p&&o<=0&&(E={x:g,y});for(var S=0;S<=v;S+=1){if(x=S/v,u=OZ(t,e,r,n,a,i,x),g=u.x,y=u.y,l&&_.push({x:g,y}),h&&(m+=bu(w,[g,y])),w=[g,y],p&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);E={x:w[0]*(1-A)+b[0]*A,y:w[1]*(1-A)+b[1]*A}}b=[g,y,m]}return p&&o>=m&&(E={x:a,y:i}),{length:m,point:E,min:{x:Math.min.apply(null,_.map(function(M){return M.x})),y:Math.min.apply(null,_.map(function(M){return M.y}))},max:{x:Math.max.apply(null,_.map(function(M){return M.x})),y:Math.max.apply(null,_.map(function(M){return M.y}))}}}function Hd(t,e,r){for(var n,a,i,o,s,u,f=qd(t),l=typeof e=="number",c,h=[],d,v=0,p=0,g=0,y=0,m,b=[],w=[],x=0,E={x:0,y:0},_=E,S=E,A=E,M=0,C=0,I=f.length;C=e&&(A=S),w.push(_),b.push(E),M+=x,u=d!=="Z"?m.slice(-2):[g,y],v=u[0],p=u[1];return l&&e>=M&&(A={x:v,y:p}),{length:M,point:A,min:{x:Math.min.apply(null,b.map(function(k){return k.x})),y:Math.min.apply(null,b.map(function(k){return k.y}))},max:{x:Math.max.apply(null,w.map(function(k){return k.x})),y:Math.max.apply(null,w.map(function(k){return k.y}))}}}function DZ(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{length:!1})),n=r.min,a=n.x,i=n.y,o=r.max,s=o.x,u=o.y,f=s-a,l=u-i;return{width:f,height:l,x:a,y:i,x2:s,y2:u,cx:a+f/2,cy:i+l/2,cz:Math.max(f,l)+Math.min(f,l)/2}}function Cf(t,e){return Hd(t,void 0,P(P({},e),{bbox:!1,length:!0})).length}function PZ(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{bbox:!0,length:!0})),n=r.length,a=r.min,i=a.x,o=a.y,s=r.max,u=s.x,f=s.y,l=u-i,c=f-o;return{length:n,width:l,height:c,x:i,y:o,x2:u,y2:f,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function RZ(t){var e=t.length,r=e-1;return t.map(function(n,a){return t.map(function(i,o){var s=a+o,u;return o===0||t[s]&&t[s][0]==="M"?(u=t[s],["M"].concat(u.slice(-2))):(s>=e&&(s-=r),t[s])})})}function FZ(t,e){var r=t.length-1,n=[],a=0,i=0,o=RZ(t);return o.forEach(function(s,u){t.slice(1).forEach(function(f,l){i+=bu(t[(u+l)%r].slice(-2),e[l%r].slice(-2))}),n[u]=i,i=0}),a=n.indexOf(Math.min.apply(null,n)),o[a]}function BZ(t,e,r,n,a,i,o,s){return 3*((s-e)*(r+a)-(o-t)*(n+i)+n*(t-a)-r*(e-i)+s*(a+t/3)-o*(i+e/3))/20}function ik(t){var e=0,r=0,n=0;return nk(t).map(function(a){var i;switch(a[0]){case"M":return e=a[1],r=a[2],0;default:var o=a.slice(1),s=o[0],u=o[1],f=o[2],l=o[3],c=o[4],h=o[5];return n=BZ(e,r,s,u,f,l,c,h),i=a.slice(-2),e=i[0],r=i[1],n}}).reduce(function(a,i){return a+i},0)}function GZ(t){return ik(t)>=0}function vh(t,e,r){return Hd(t,e,P(P({},r),{bbox:!1,length:!0})).point}function zZ(t,e){var r=Yd(t);if(typeof r=="string")throw TypeError(r);var n=r.slice(),a=Cf(n),i=n.length-1,o=0,s=0,u=r[0],f=u.slice(-2),l=f[0],c=f[1],h={x:l,y:c};if(i<=0||!e||!Number.isFinite(e))return{segment:u,index:0,length:s,point:h,lengthAtSegment:o};if(e>=a)return n=r.slice(0,-1),o=Cf(n),s=a-o,{segment:r[i],index:i,length:s,lengthAtSegment:o};for(var d=[];i>0;)u=n[i],n=n.slice(0,-1),o=Cf(n),s=a-o,a=o,d.push({segment:u,index:i,length:s,lengthAtSegment:o}),i-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function jZ(t,e){for(var r=Yd(t),n=qd(r),a=Cf(r),i=function(x){var E=x.x-e.x,_=x.y-e.y;return E*E+_*_},o=8,s,u=0,f,l=0,c=1/0,h=0;h<=a;h+=o)s=vh(n,h),u=i(s),u.5;)p=l-o,d=vh(n,p),y=i(d),g=l+o,v=vh(n,g),m=i(v),p>=0&&y$Z)return console.warn("Maximum recursion depth reached in equalizeSegments"),[t,e];var a=HE(t),i=HE(e),o=a.length,s=i.length,u=a.filter(function(y){return y.l}).length,f=i.filter(function(y){return y.l}).length,l=a.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/u||0,c=i.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/f||0,h=r||Math.max(o,s),d=[l,c],v=[h-o,h-s],p=0,g=[a,i].map(function(y,m){return y.l===h?y.map(function(b){return b.s}):y.map(function(b,w){return p=w&&v[m]&&b.l>=d[m],v[m]-=p?1:0,p?b.ss:[b.s]}).flat()});return g[0].length===g[1].length?g:ok(g[0],g[1],h,n+1)}var WZ=1e-6;function qp(t){return Math.abs(t)0!=qp(s[1]-r)>0&&qp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var ZE=function(t,e,r){return t>=e&&t<=r};function YZ(t,e,r,n){var a=.001,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:n.x-r.x,y:n.y-r.y},u=o.x*s.y-o.y*s.x,f=u*u,l=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,h=null;if(f>a*l*c){var d=(i.x*s.y-i.y*s.x)/u,v=(i.x*o.y-i.y*o.x)/u;ZE(d,0,1)&&ZE(v,0,1)&&(h={x:t.x+d*o.x,y:t.y+d*o.y})}return h}function KE(t){for(var e=[],r=t.length,n=0;n1){var o=t[0],s=t[r-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function qZ(t,e){var r=!1;return t.forEach(function(n){if(YZ(n.from,n.to,e.from,e.to))return r=!0,!1}),r}function QE(t){var e=t.map(function(n){return n[0]}),r=t.map(function(n){return n[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,r),maxY:Math.max.apply(null,r)}}function HZ(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=l.weight;f+=l.weight*h}}),f},aK=function(t,e){for(var r=0,n=1;n<(e==null?void 0:e.length);n+=1)r+=nK(t,e[n-1],e[n]);return r};xm.default=aK;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});var iK=wi,oK=function(t,e,r){var n=sK(t),a=new iK.Graph({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return t.nodes().forEach(function(i){var o,s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||n),(o=t[r](i))===null||o===void 0||o.forEach(function(f){var l=f.v===i?f.w:f.v,c=a.edgeFromArgs(l,i),h=c!==void 0?c.weight:0;a.setEdge(l,i,{weight:t.edge(f).weight+h})}),s.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a},sK=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};Em.default=oK;var _m={};Object.defineProperty(_m,"__esModule",{value:!0});var uK=function(t,e,r){var n={},a;r==null||r.forEach(function(i){for(var o=t.parent(i),s,u;o;){if(s=t.parent(o),s?(u=n[s],n[s]=o):(u=a,a=o),u&&u!==o){e.setEdge(u,o);return}o=s}})};_m.default=uK;var Sm={},Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});var fK=function(t,e){return e.map(function(r){var n=t.inEdges(r);if(!(n!=null&&n.length))return{v:r};{var a={sum:0,weight:0};return n==null||n.forEach(function(i){var o=t.edge(i),s=t.node(i.v);a.sum+=o.weight*s.order,a.weight+=o.weight}),{v:r,barycenter:a.sum/a.weight,weight:a.weight}}})};Mm.default=fK;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});var lK=function(t,e){var r,n,a,i={};t==null||t.forEach(function(s,u){i[s.v]={i:u,indegree:0,in:[],out:[],vs:[s.v]};var f=i[s.v];s.barycenter!==void 0&&(f.barycenter=s.barycenter,f.weight=s.weight)}),(r=e.edges())===null||r===void 0||r.forEach(function(s){var u=i[s.v],f=i[s.w];u!==void 0&&f!==void 0&&(f.indegree++,u.out.push(i[s.w]))});var o=(a=(n=Object.values(i)).filter)===null||a===void 0?void 0:a.call(n,function(s){return!s.indegree});return cK(o)},cK=function(t){for(var e,r,n=[],a=function(f){return function(l){l.merged||(l.barycenter===void 0||f.barycenter===void 0||l.barycenter>=f.barycenter)&&hK(f,l)}},i=function(f){return function(l){l.in.push(f),--l.indegree===0&&t.push(l)}},o=function(){var f=t.pop();n.push(f),(e=f.in.reverse())===null||e===void 0||e.forEach(function(l){return a(f)(l)}),(r=f.out)===null||r===void 0||r.forEach(function(l){return i(f)(l)})};t!=null&&t.length;)o();var s=n.filter(function(f){return!f.merged}),u=["vs","i","barycenter","weight"];return s.map(function(f){var l={};return u==null||u.forEach(function(c){f[c]!==void 0&&(l[c]=f[c])}),l})},hK=function(t,e){var r,n=0,a=0;t.weight&&(n+=t.barycenter*t.weight,a+=t.weight),e.weight&&(n+=e.barycenter*e.weight,a+=e.weight),t.vs=(r=e.vs)===null||r===void 0?void 0:r.concat(t.vs),t.barycenter=n/a,t.weight=a,t.i=Math.min(e.i,t.i),e.merged=!0};Am.default=lK;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});var dK=Vn,vK=function(t,e,r,n){var a=(0,dK.partition)(t,function(h){var d=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return n?!d&&h.hasOwnProperty("barycenter"):d||h.hasOwnProperty("barycenter")}),i=a.lhs,o=a.rhs.sort(function(h,d){return-h.i- -d.i}),s=[],u=0,f=0,l=0;i==null||i.sort(pK(!!e,!!r)),l=JE(s,o,l),i==null||i.forEach(function(h){var d;l+=(d=h.vs)===null||d===void 0?void 0:d.length,s.push(h.vs),u+=h.barycenter*h.weight,f+=h.weight,l=JE(s,o,l)});var c={vs:s.flat()};return f&&(c.barycenter=u/f,c.weight=f),c},JE=function(t,e,r){for(var n=r,a;e.length&&(a=e[e.length-1]).i<=n;)e.pop(),t==null||t.push(a.vs),n++;return n},pK=function(t,e){return function(r,n){if(r.fixorder!==void 0&&n.fixorder!==void 0)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&r.order!==void 0&&n.order!==void 0){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i}};Cm.default=vK;var Tm=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sm,"__esModule",{value:!0});var gK=Tm(Mm),yK=Tm(Am),mK=Tm(Cm),uk=function(t,e,r,n,a,i){var o,s,u,f,l=t.children(e),c=t.node(e),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};h&&(l=l==null?void 0:l.filter(function(w){return w!==h&&w!==d}));var p=(0,gK.default)(t,l||[]);p==null||p.forEach(function(w){var x;if(!((x=t.children(w.v))===null||x===void 0)&&x.length){var E=uk(t,w.v,r,n,i);v[w.v]=E,E.hasOwnProperty("barycenter")&&wK(w,E)}});var g=(0,yK.default)(p,r);bK(g,v),(o=g.filter(function(w){return w.vs.length>0}))===null||o===void 0||o.forEach(function(w){var x=t.node(w.vs[0]);x&&(w.fixorder=x.fixorder,w.order=x.order)});var y=(0,mK.default)(g,n,a,i);if(h&&(y.vs=[h,y.vs,d].flat(),!((s=t.predecessors(h))===null||s===void 0)&&s.length)){var m=t.node(((u=t.predecessors(h))===null||u===void 0?void 0:u[0])||""),b=t.node(((f=t.predecessors(d))===null||f===void 0?void 0:f[0])||"");y.hasOwnProperty("barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+b.order)/(y.weight+2),y.weight+=2}return y},bK=function(t,e){t==null||t.forEach(function(r){var n,a=(n=r.vs)===null||n===void 0?void 0:n.map(function(i){return e[i]?e[i].vs:i});r.vs=a.flat()})},wK=function(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};Sm.default=uk;var dl=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mm,"__esModule",{value:!0});var e_=dl(bm),t_=dl(xm),xK=dl(Em),EK=dl(_m),_K=dl(Sm),r_=Ir(),SK=wi,Hp=Vn,MK=function(t,e){for(var r=(0,Hp.maxRank)(t),n=[],a=[],i=1;i-1;i--)a.push(i);var o=n_(t,n,"inEdges"),s=n_(t,a,"outEdges"),u=(0,e_.default)(t);Zp(t,u);for(var f=Number.POSITIVE_INFINITY,l,i=0,c=0;c<4;++i,++c){a_(i%2?o:s,i%4>=2,!1,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);h=2,!0,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);hB)&&(0,t.addConflict)(E,V,X)}))}function S(C){return JSON.stringify(C.slice(1))}function A(C,I){var k=S(C);I.get(k)||(_.apply(void 0,C),I.set(k,!0))}var M=function(C,I){var k=-1,O,B=0,L=new Map;return I==null||I.forEach(function(z,X){var R;if(((R=w.node(z))===null||R===void 0?void 0:R.dummy)==="border"){var V=w.predecessors(z)||[];V.length&&(O=w.node(V[0]).order,A([I,B,X,k,O],L),B=X,k=O)}A([I,B,I.length,O,C.length],L)}),I};return x!=null&&x.length&&x.reduce(M),E};t.findType2Conflicts=s;var u=function(w,x){var E,_;if(!((E=w.node(x))===null||E===void 0)&&E.dummy)return(_=w.predecessors(x))===null||_===void 0?void 0:_.find(function(S){return w.node(S).dummy})};t.findOtherInnerSegmentNode=u;var f=function(w,x,E){var _=x,S=E;if(_>S){var A=_;_=S,S=A}var M=w[_];M||(w[_]=M={}),M[S]=!0};t.addConflict=f;var l=function(w,x,E){var _=x,S=E;if(_>S){var A=x;_=S,S=A}return!!w[_]};t.hasConflict=l;var c=function(w,x,E,_){var S={},A={},M={};return x==null||x.forEach(function(C){C==null||C.forEach(function(I,k){S[I]=I,A[I]=I,M[I]=k})}),x==null||x.forEach(function(C){var I=-1;C==null||C.forEach(function(k){var O=_(k);if(O.length){O=O.sort(function(R,V){return M[R]-M[V]});for(var B=(O.length-1)/2,L=Math.floor(B),z=Math.ceil(B);L<=z;++L){var X=O[L];A[k]===k&&IN.x&&(B=N.x),L>N.y&&(L=N.y)}),b.edges().forEach(function(te){var N,Se=b.edge(te);(N=Se.points)===null||N===void 0||N.forEach(function(Fe){B>Fe.x&&(B=Fe.x),L>Fe.y&&(L=Fe.y)})}),O[0]=h[0]-B,O[1]=h[1]-L}var z=l==="LR"||l==="RL";if(d){var X=this,R=X.focusNode,V=X.ranksep,he=X.getRadialPos,ce=(0,Rn.isString)(R)?R:R==null?void 0:R.id,le=ce?(o=b.node(ce))===null||o===void 0?void 0:o._rank:0,ie=[],Ie=z?"y":"x",qe=z?"height":"width",Ve=1/0,it=-1/0;b.nodes().forEach(function(te){var N=b.node(te);if(s.nodeMap[te]){var Se=A(s.nodeMap[te]);if(le===0)ie[N._rank]||(ie[N._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),ie[N._rank].nodes.push(te),ie[N._rank].totalWidth+=Se*2+N[qe],ie[N._rank].maxSizeit&&(it=$e)}});var dt=V||50,st={},Tt=(it-Ve)/.9,_t=[(Ve+it-Tt)*.5,(Ve+it+Tt)*.5],lr=function(te,N,Se,Fe){Se===void 0&&(Se=-1/0),Fe===void 0&&(Fe=[0,1]);var ge=Se;return te.forEach(function(Ue){var $e=b.node(Ue);st[Ue]=N;var Ze=he($e[Ie],_t,Tt,N,Fe),Je=Ze.x,ht=Ze.y;if(s.nodeMap[Ue]){s.nodeMap[Ue].x=Je+O[0],s.nodeMap[Ue].y=ht+O[1],s.nodeMap[Ue]._order=$e._order;var Lt=S(s.nodeMap[Ue]);ge=ge})}:function(te,N,Se){var Fe=Math.max(N.x,Se.x),ge=Math.min(N.x,Se.x);return te.filter(function(Ue){return Ue.x<=Fe&&Ue.x>=ge})};b.edges().forEach(function(te){var N,Se=b.edge(te),Fe=m.findIndex(function($e){var Ze=(0,Rn.getEdgeTerminal)($e,"source"),Je=(0,Rn.getEdgeTerminal)($e,"target");return Ze===te.v&&Je===te.w});if(!(Fe<=-1)&&s.edgeLabelSpace&&s.controlPoints&&m[Fe].type!=="loop"){(N=Se==null?void 0:Se.points)===null||N===void 0||N.forEach(function($e){$e.x+=O[0],$e.y+=O[1]});var ge=s.nodeMap[te.v],Ue=s.nodeMap[te.w];m[Fe].controlPoints=dQ(Se==null?void 0:Se.points,ge,Ue,sr,z,tn,tt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,edges:m}}},e.prototype.getRadialPos=function(r,n,a,i,o){o===void 0&&(o=[0,1]);var s=(r-n[0])/a;s=s*(o[1]-o[0])+o[0];var u=s*2*Math.PI;return{x:Math.cos(u)*i,y:Math.sin(u)*i}},e.prototype.getType=function(){return"dagre"},e}(cQ.Base);yu.DagreLayout=hQ;var dQ=function(t,e,r,n,a,i,o){var s=(t==null?void 0:t.slice(1,t.length-1))||[];if(e&&r){var u=e.x,f=e.y,l=r.x,c=r.y;if(a&&(u=e.y,f=e.x,l=r.y,c=r.x),c!==f&&u!==l){var h=n.indexOf(f),d=n[h+1];if(d){var v=s[0],p=a?{x:(f+d)/2,y:(v==null?void 0:v.y)||l}:{x:(v==null?void 0:v.x)||l,y:(f+d)/2};(!v||i(v,p))&&s.unshift(p)}var g=n.indexOf(c),y=Math.abs(g-h);if(y===1)s=o(s,e,r),s.length||s.push(a?{x:(f+c)/2,y:u}:{x:u,y:(f+c)/2});else if(y>1){var m=n[g-1];if(m){var b=s[s.length-1],w=a?{x:(c+m)/2,y:(b==null?void 0:b.y)||l}:{x:(b==null?void 0:b.x)||u,y:(c+m)/2};(!b||i(b,w))&&s.push(w)}}}}return s},vl={};const ed={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function Tg(t={},e=ed){var r,n,a,i;const o=JSON.parse(JSON.stringify(e)),s=((r=t==null?void 0:t.graph)===null||r===void 0?void 0:r.meta)||{},u=((n=t==null?void 0:t.subScene)===null||n===void 0?void 0:n.meta)||{},f=((a=t==null?void 0:t.nodeSize)===null||a===void 0?void 0:a.meta)||{},l=((i=t==null?void 0:t.nodeSize)===null||i===void 0?void 0:i.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,u)},nodeSize:{meta:Object.assign(o.nodeSize.meta,f),node:Object.assign(o.nodeSize.node,l),bridge:c}}}function lk(t){return`◬${t}◬`}const su=lk("ROOT"),ck=lk("BRIDGE_GRAPH");var kn,Yo,uu,Ig;(function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"})(kn||(kn={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(Yo||(Yo={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(uu||(uu={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(Ig||(Ig={}));var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(t,e){return t(e={exports:{}},e.exports),e.exports}var vQ=function(){this.__data__=[],this.size=0},wu=function(t,e){return t===e||t!=t&&e!=e},Zd=function(t,e){for(var r=t.length;r--;)if(wu(t[r][0],e))return r;return-1},pQ=Array.prototype.splice,gQ=function(t){var e=this.__data__,r=Zd(e,t);return!(r<0)&&(r==e.length-1?e.pop():pQ.call(e,r,1),--this.size,!0)},yQ=function(t){var e=this.__data__,r=Zd(e,t);return r<0?void 0:e[r][1]},mQ=function(t){return Zd(this.__data__,t)>-1},bQ=function(t,e){var r=this.__data__,n=Zd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Os(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991},br={};br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object Boolean]"]=br["[object DataView]"]=br["[object Date]"]=br["[object Error]"]=br["[object Function]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object WeakMap]"]=!1;var oJ=function(t){return wa(t)&&Dm(t.length)&&!!br[ao(t)]},nv=function(t){return function(e){return t(e)}},lu=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r&&hk.process,i=function(){try{var o=n&&n.require&&n.require("util").types;return o||a&&a.binding&&a.binding("util")}catch{}}();t.exports=i}),y_=lu&&lu.isTypedArray,yl=y_?nv(y_):oJ,sJ=Object.prototype.hasOwnProperty,pk=function(t,e){var r=Pr(t),n=!r&&fu(t),a=!r&&!n&&qo(t),i=!r&&!n&&!a&&yl(t),o=r||n||a||i,s=o?tJ(t.length,String):[],u=s.length;for(var f in t)!e&&!sJ.call(t,f)||o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||rv(f,u))||s.push(f);return s},uJ=Object.prototype,av=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||uJ)},gk=function(t,e){return function(r){return t(e(r))}},fJ=gk(Object.keys,Object),lJ=Object.prototype.hasOwnProperty,Pm=function(t){if(!av(t))return fJ(t);var e=[];for(var r in Object(t))lJ.call(t,r)&&r!="constructor"&&e.push(r);return e},Ei=function(t){return t!=null&&Dm(t.length)&&!pl(t)},io=function(t){return Ei(t)?pk(t):Pm(t)},cJ=function(t,e){return t&&gl(e,io(e),t)},hJ=function(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e},dJ=Object.prototype.hasOwnProperty,vJ=function(t){if(!Dn(t))return hJ(t);var e=av(t),r=[];for(var n in t)(n!="constructor"||!e&&dJ.call(t,n))&&r.push(n);return r},ts=function(t){return Ei(t)?pk(t,!0):vJ(t)},pJ=function(t,e){return t&&gl(e,ts(e),t)},yk=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r?_a.Buffer:void 0,i=a?a.allocUnsafe:void 0;t.exports=function(o,s){if(s)return o.slice();var u=o.length,f=i?i(u):new o.constructor(u);return o.copy(f),f}}),mk=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++rs))return!1;var f=i.get(t),l=i.get(e);if(f&&l)return f==e&&l==t;var c=-1,h=!0,d=2&r?new kk:void 0;for(i.set(t,e),i.set(e,t);++c0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Aee),fv=function(t,e){return Zk(Hk(t,e,rs),t+"")},Kk=function(t,e,r,n){for(var a=t.length,i=r+-1;++i-1},Oee=function(){},Lee=Ys&&1/Um(new Ys([,-0]))[1]==1/0?function(t){return new Ys(t)}:Oee,Dee=function(t,e,r){var n=-1,a=Nee,i=t.length,o=!0,s=[],u=s;if(i>=200){var f=Lee(t);if(f)return Um(f);o=!1,a=Nk,u=new kk}else u=s;e:for(;++ni){var o=a;a=i,i=o}return a+""+i+""+(ot.isUndefined(n)?"\0":n)}function Fee(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return n&&(s.name=n),s}function n0(t,e){return yf(t,e.v,e.w,e.name)}tr.prototype._nodeCount=0,tr.prototype._edgeCount=0,tr.prototype.isDirected=function(){return this._isDirected},tr.prototype.isMultigraph=function(){return this._isMultigraph},tr.prototype.isCompound=function(){return this._isCompound},tr.prototype.setGraph=function(t){return this._label=t,this},tr.prototype.graph=function(){return this._label},tr.prototype.setDefaultNodeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultNodeLabelFn=t,this},tr.prototype.nodeCount=function(){return this._nodeCount},tr.prototype.nodes=function(){return ot.keys(this._nodes)},tr.prototype.sources=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._in[e])})},tr.prototype.sinks=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._out[e])})},tr.prototype.setNodes=function(t,e){var r=arguments,n=this;return ot.each(t,function(a){r.length>1?n.setNode(a,e):n.setNode(a)}),this},tr.prototype.setNode=function(t,e){return ot.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},tr.prototype.node=function(t){return this._nodes[t]},tr.prototype.hasNode=function(t){return ot.has(this._nodes,t)},tr.prototype.removeNode=function(t){var e=this;if(ot.has(this._nodes,t)){var r=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ot.each(this.children(t),function(n){e.setParent(n)}),delete this._children[t]),ot.each(ot.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],ot.each(ot.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},tr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ot.isUndefined(e))e="\0";else{for(var r=e+="";!ot.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},tr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},tr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!=="\0")return e}},tr.prototype.children=function(t){if(ot.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ot.keys(e)}else{if(t==="\0")return this.nodes();if(this.hasNode(t))return[]}},tr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ot.keys(e)},tr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ot.keys(e)},tr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ot.union(e,this.successors(t))},tr.prototype.isLeaf=function(t){return(this.isDirected()?this.successors(t):this.neighbors(t)).length===0},tr.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;ot.each(this._nodes,function(i,o){t(o)&&e.setNode(o,i)}),ot.each(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,r.edge(i))});var n={};function a(i){var o=r.parent(i);return o===void 0||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:a(o)}return this._isCompound&&ot.each(e.nodes(),function(i){e.setParent(i,a(i))}),e},tr.prototype.setDefaultEdgeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultEdgeLabelFn=t,this},tr.prototype.edgeCount=function(){return this._edgeCount},tr.prototype.edges=function(){return ot.values(this._edgeObjs)},tr.prototype.setPath=function(t,e){var r=this,n=arguments;return ot.reduce(t,function(a,i){return n.length>1?r.setEdge(a,i,e):r.setEdge(a,i),i}),this},tr.prototype.setEdge=function(){var t,e,r,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,r=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),t=""+t,e=""+e,ot.isUndefined(r)||(r=""+r);var o=yf(this._isDirected,t,e,r);if(ot.has(this._edgeLabels,o))return a&&(this._edgeLabels[o]=n),this;if(!ot.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=a?n:this._defaultEdgeLabelFn(t,e,r);var s=Fee(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,O_(this._preds[e],t),O_(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this},tr.prototype.edge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return this._edgeLabels[n]},tr.prototype.hasEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return ot.has(this._edgeLabels,n)},tr.prototype.removeEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r),a=this._edgeObjs[n];return a&&(t=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],L_(this._preds[e],t),L_(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},tr.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.v===e}):n}},tr.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.w===e}):n}},tr.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))};var D_={Graph:Vm,version:"2.1.8"},Bee={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Gee(t),edges:zee(t)};return ot.isUndefined(t.graph())||(e.value=ot.clone(t.graph())),e},read:function(t){var e=new Vm(t.options).setGraph(t.value);return ot.each(t.nodes,function(r){e.setNode(r.v,r.value),r.parent&&e.setParent(r.v,r.parent)}),ot.each(t.edges,function(r){e.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),e}};function Gee(t){return ot.map(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),a={v:e};return ot.isUndefined(r)||(a.value=r),ot.isUndefined(n)||(a.parent=n),a})}function zee(t){return ot.map(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return ot.isUndefined(e.name)||(n.name=e.name),ot.isUndefined(r)||(n.value=r),n})}var jee=function(t){var e,r={},n=[];function a(i){ot.has(r,i)||(r[i]=!0,e.push(i),ot.each(t.successors(i),a),ot.each(t.predecessors(i),a))}return ot.each(t.nodes(),function(i){e=[],a(i),e.length&&n.push(e)}),n},eN=Qn;function Qn(){this._arr=[],this._keyIndices={}}Qn.prototype.size=function(){return this._arr.length},Qn.prototype.keys=function(){return this._arr.map(function(t){return t.key})},Qn.prototype.has=function(t){return ot.has(this._keyIndices,t)},Qn.prototype.priority=function(t){var e=this._keyIndices[t];if(e!==void 0)return this._arr[e].priority},Qn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Qn.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!ot.has(r,t)){var n=this._arr,a=n.length;return r[t]=a,n.push({key:t,priority:e}),this._decrease(a),!0}return!1},Qn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},Qn.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},Qn.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,a=t;r>1].priority0&&(u=c.removeMin(),(f=l[u]).distance!==Number.POSITIVE_INFINITY);)s(u).forEach(h);return l}(t,String(e),r||Uee,n||function(a){return t.outEdges(a)})},Uee=ot.constant(1),$ee=function(t,e,r){return ot.transform(t.nodes(),function(n,a){n[a]=tN(t,a,e,r)},{})},rN=function(t){var e=0,r=[],n={},a=[];function i(o){var s=n[o]={onStack:!0,lowlink:e,index:e++};if(r.push(o),t.successors(o).forEach(function(l){ot.has(n,l)?n[l].onStack&&(s.lowlink=Math.min(s.lowlink,n[l].index)):(i(l),s.lowlink=Math.min(s.lowlink,n[l].lowlink))}),s.lowlink===s.index){var u,f=[];do u=r.pop(),n[u].onStack=!1,f.push(u);while(o!==u);a.push(f)}}return t.nodes().forEach(function(o){ot.has(n,o)||i(o)}),a},Xee=function(t){return ot.filter(rN(t),function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})},Wee=function(t,e,r){return function(n,a,i){var o={},s=n.nodes();return s.forEach(function(u){o[u]={},o[u][u]={distance:0},s.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),i(u).forEach(function(f){var l=f.v===u?f.w:f.v,c=a(f);o[u][l]={distance:c,predecessor:u}})}),s.forEach(function(u){var f=o[u];s.forEach(function(l){var c=o[l];s.forEach(function(h){var d=c[u],v=f[h],p=c[h],g=d.distance+v.distance;g0;){if(r=i.removeMin(),ot.has(a,r))n.setEdge(r,a[r]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(r).forEach(o)}return n},tarjan:rN,topsort:a0},version:D_.version};try{id=Yee}catch{}id||(id=window.graphlib);var Sa=id,qee=function(t){return Ak(t,5)},Hf=function(t,e,r){if(!Dn(r))return!1;var n=typeof e;return!!(n=="number"?Ei(r)&&rv(e,r.length):n=="string"&&e in r)&&wu(r[e],t)},iN=Object.prototype,Hee=iN.hasOwnProperty,Zee=fv(function(t,e){t=Object(t);var r=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&Hf(e[0],e[1],a)&&(n=1);++r-1?a[i?e[o]:o]:void 0}},Qee=/^\s+|\s+$/g,Jee=/^[-+]0x[0-9a-f]+$/i,ete=/^0b[01]+$/i,tte=/^0o[0-7]+$/i,rte=parseInt,nte=function(t){if(typeof t=="number")return t;if(Zo(t))return NaN;if(Dn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Dn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Qee,"");var r=ete.test(t);return r||tte.test(t)?rte(t.slice(2),r?2:8):Jee.test(t)?NaN:+t},gh=function(t){return t?(t=nte(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:t===0?t:0},ate=function(t){var e=gh(t),r=e%1;return e==e?r?e-r:e:0},ite=Math.max,ote=Kee(function(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ate(r);return a<0&&(a=ite(n+a,0)),Kk(t,_i(e),a)}),oN=function(t){return t!=null&&t.length?Wm(t):[]},ste=function(t,e){return t==null?t:zm(t,Ck(e),ts)},ute=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},fte=function(t,e){var r={};return e=_i(e),jm(t,function(n,a,i){ev(r,a,e(n,a,i))}),r},Ym=function(t,e,r){for(var n=-1,a=t.length;++ne},cte=function(t){return t&&t.length?Ym(t,rs,lte):void 0},Rg=function(t,e,r){(r!==void 0&&!wu(t[e],r)||r===void 0&&!(e in t))&&ev(t,e,r)},hte=Function.prototype,dte=Object.prototype,sN=hte.toString,vte=dte.hasOwnProperty,pte=sN.call(Object),gte=function(t){if(!wa(t)||ao(t)!="[object Object]")return!1;var e=iv(t);if(e===null)return!0;var r=vte.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sN.call(r)==pte},R_=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},yte=function(t){return gl(t,ts(t))},mte=function(t,e,r,n,a,i,o){var s=R_(t,r),u=R_(e,r),f=o.get(u);if(f)Rg(t,r,f);else{var l=void 0,c=l===void 0;if(c){var h=Pr(u),d=!h&&qo(u),v=!h&&!d&&yl(u);l=u,h||d||v?Pr(s)?l=s:Qk(s)?l=mk(s):d?(c=!1,l=yk(u,!0)):v?(c=!1,l=_k(u,!0)):l=[]:gte(u)||fu(u)?(l=s,fu(s)?l=yte(s):Dn(s)&&!pl(s)||(l=Mk(u))):c=!1}c&&(o.set(u,l),a(l,u,n,i,o),o.delete(u)),Rg(t,r,l)}},bte=function t(e,r,n,a,i){e!==r&&zm(r,function(o,s){if(i||(i=new Vs),Dn(o))mte(e,r,s,n,t,a,i);else{var u=void 0;u===void 0&&(u=o),Rg(e,s,u)}},ts)},wte=function(t){return fv(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Hf(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ne||i&&o&&u&&!s&&!f||n&&o&&u||!r&&u||!a)return 1;if(!n&&!i&&!f&&t=s?u:u*(r[n]=="desc"?-1:1)}return t.index-e.index},Pte=function(t,e,r){e=e.length?qs(e,function(i){return Pr(i)?function(o){return uv(o,i.length===1?i[0]:i)}:i}):[rs];var n=-1;e=qs(e,nv(_i));var a=$k(t,function(i,o,s){return{criteria:qs(e,function(u){return u(i)}),index:++n,value:i}});return Ote(a,function(i,o){return Dte(i,o,r)})},Rte=fv(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Hf(t,e[0],e[1])?e=[]:r>2&&Hf(e[0],e[1],e[2])&&(e=[e[0]]),Pte(t,Wm(e),[])}),Fte=0,Bte=function(t){var e=++Fte;return Rk(t)+e},Gte=function(t,e,r){for(var n=-1,a=t.length,i=e.length,o={};++n0;--c)if(s=i[c].dequeue()){u=u.concat(i0(a,i,o,s,!0));break}}}return u}(r.graph,r.buckets,r.zeroIdx);return Z.flatten(Z.map(n,function(a){return t.outEdges(a.v,a.w)}),!0)},Wte=Z.constant(1);function i0(t,e,r,n,a){var i=a?[]:void 0;return Z.forEach(t.inEdges(n.v),function(o){var s=t.edge(o),u=t.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=s,Fg(e,r,u)}),Z.forEach(t.outEdges(n.v),function(o){var s=t.edge(o),u=o.w,f=t.node(u);f.in-=s,Fg(e,r,f)}),t.removeNode(n.v),i}function Fg(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var B_={run:function(t){var e=t.graph().acyclicer==="greedy"?Xte(t,function(r){return function(n){return r.edge(n).weight}}(t)):function(r){var n=[],a={},i={};function o(s){Z.has(i,s)||(i[s]=!0,a[s]=!0,Z.forEach(r.outEdges(s),function(u){Z.has(a,u.w)?n.push(u):o(u.w)}),delete a[s])}return Z.forEach(r.nodes(),o),n}(t);Z.forEach(e,function(r){var n=t.edge(r);t.removeEdge(r),n.forwardName=r.name,n.reversed=!0,t.setEdge(r.w,r.v,n,Z.uniqueId("rev"))})},undo:function(t){Z.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}},G_=Sa.Graph,Mn={addDummyNode:z_,simplify:function(t){var e=new G_().setGraph(t.graph());return Z.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},a=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e},asNonCompoundGraph:function(t){var e=new G_({multigraph:t.isMultigraph()}).setGraph(t.graph());return Z.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.outEdges(r),function(a){n[a.w]=(n[a.w]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.inEdges(r),function(a){n[a.v]=(n[a.v]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,a=t.x,i=t.y,o=e.x-a,s=e.y-i,u=t.width/2,f=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*f?(s<0&&(f=-f),r=f*o/s,n=f):(o<0&&(u=-u),r=u,n=u*s/o),{x:a+r,y:i+n}},buildLayerMatrix:function(t){var e=Z.map(Z.range(j_(t)+1),function(){return[]});return Z.forEach(t.nodes(),function(r){var n=t.node(r),a=n.rank;Z.isUndefined(a)||(e[a][n.order]=r)}),e},normalizeRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(r){return t.node(r).rank}));Z.forEach(t.nodes(),function(r){var n=t.node(r);Z.has(n,"rank")&&(n.rank-=e)})},removeEmptyRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(i){return t.node(i).rank})),r=[];Z.forEach(t.nodes(),function(i){var o=t.node(i).rank-e;r[o]||(r[o]=[]),r[o].push(i)});var n=0,a=t.graph().nodeRankFactor;Z.forEach(r,function(i,o){Z.isUndefined(i)&&o%a!=0?--n:n&&Z.forEach(i,function(s){t.node(s).rank+=n})})},addBorderNode:function(t,e,r,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),z_(t,"border",a,e)},maxRank:j_,partition:function(t,e){var r={lhs:[],rhs:[]};return Z.forEach(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r},time:function(t,e){var r=Z.now();try{return e()}finally{console.log(t+" time: "+(Z.now()-r)+"ms")}},notime:function(t,e){return e()}};function z_(t,e,r,n){var a;do a=Z.uniqueId(n);while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function j_(t){return Z.max(Z.map(t.nodes(),function(e){var r=t.node(e).rank;if(!Z.isUndefined(r))return r}))}var U_={run:function(t){t.graph().dummyChains=[],Z.forEach(t.edges(),function(e){(function(r,n){var a,i,o,s=n.v,u=r.node(s).rank,f=n.w,l=r.node(f).rank,c=n.name,h=r.edge(n),d=h.labelRank;if(l!==u+1){for(r.removeEdge(n),o=0,++u;uo.lim&&(s=o,u=!0);var f=Z.filter(e.edges(),function(l){return u===$_(t,t.node(l.v),s)&&u!==$_(t,t.node(l.w),s)});return Z.minBy(f,function(l){return Zte(e,l)})}function gN(t,e,r,n){var a=r.v,i=r.w;t.removeEdge(a,i),t.setEdge(n.v,n.w,{}),Hm(t),qm(t,e),function(o,s){var u=Z.find(o.nodes(),function(l){return!s.node(l).parent}),f=Qte(o,u);f=f.slice(1),Z.forEach(f,function(l){var c=o.node(l).parent,h=s.edge(l,c),d=!1;h||(h=s.edge(c,l),d=!0),s.node(l).rank=s.node(c).rank+(d?h.minlen:-h.minlen)})}(t,e)}function $_(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}Lo.initLowLimValues=Hm,Lo.initCutValues=qm,Lo.calcCutValue=hN,Lo.leaveEdge=vN,Lo.enterEdge=pN,Lo.exchangeEdges=gN;var yN=fN,rre=function(t){switch(t.graph().ranker){case"network-simplex":X_(t);break;case"tight-tree":(function(e){yN(e),cN(e)})(t);break;case"longest-path":nre(t);break;default:X_(t)}},nre=yN;function X_(t){tre(t)}var are=function(t){var e=function(r){var n={},a=0;function i(o){var s=a;Z.forEach(r.children(o),i),n[o]={low:s,lim:a++}}return Z.forEach(r.children(),i),n}(t);Z.forEach(t.graph().dummyChains,function(r){for(var n=t.node(r),a=n.edgeObj,i=function(c,h,d,v){var p,g,y=[],m=[],b=Math.min(h[d].low,h[v].low),w=Math.max(h[d].lim,h[v].lim);p=d;do p=c.parent(p),y.push(p);while(p&&(h[p].low>b||w>h[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)m.push(p);return{path:y.concat(m.reverse()),lca:g}}(t,e,a.v,a.w),o=i.path,s=i.lca,u=0,f=o[u],l=!0;r!==a.w;){if(n=t.node(r),l){for(;(f=o[u])!==s&&t.node(f).maxRank0;)l%2&&(c+=s[l+1]),s[l=l-1>>1]+=f.weight;u+=f.weight*c})),u}var fre=function(t,e){return Z.map(e,function(r){var n=t.inEdges(r);if(n.length){var a=Z.reduce(n,function(i,o){var s=t.edge(o),u=t.node(o.v);return{sum:i.sum+s.weight*u.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}return{v:r}})},lre=function(t,e){var r={};return Z.forEach(t,function(n,a){var i=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};Z.isUndefined(n.barycenter)||(i.barycenter=n.barycenter,i.weight=n.weight)}),Z.forEach(e.edges(),function(n){var a=r[n.v],i=r[n.w];Z.isUndefined(a)||Z.isUndefined(i)||(i.indegree++,a.out.push(r[n.w]))}),function(n){var a=[];function i(u){return function(f){f.merged||(Z.isUndefined(f.barycenter)||Z.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&function(l,c){var h=0,d=0;l.weight&&(h+=l.barycenter*l.weight,d+=l.weight),c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),l.vs=c.vs.concat(l.vs),l.barycenter=h/d,l.weight=d,l.i=Math.min(c.i,l.i),c.merged=!0}(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree==0&&n.push(f)}}for(;n.length;){var s=n.pop();a.push(s),Z.forEach(s.in.reverse(),i(s)),Z.forEach(s.out,o(s))}return Z.map(Z.filter(a,function(u){return!u.merged}),function(u){return Z.pick(u,["vs","i","barycenter","weight"])})}(Z.filter(r,function(n){return!n.indegree}))},cre=function(t,e){var r=Mn.partition(t,function(c){return Z.has(c,"barycenter")}),n=r.lhs,a=Z.sortBy(r.rhs,function(c){return-c.i}),i=[],o=0,s=0,u=0;n.sort((f=!!e,function(c,h){return c.barycenterh.barycenter?1:f?h.i-c.i:c.i-h.i})),u=Z_(i,a,u),Z.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,u=Z_(i,a,u)});var f,l={vs:Z.flatten(i,!0)};return s&&(l.barycenter=o/s,l.weight=s),l};function Z_(t,e,r){for(var n;e.length&&(n=Z.last(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}var hre=function t(e,r,n,a){var i=e.children(r),o=e.node(r),s=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};s&&(i=Z.filter(i,function(p){return p!==s&&p!==u}));var l=fre(e,i);Z.forEach(l,function(p){if(e.children(p.v).length){var g=t(e,p.v,n,a);f[p.v]=g,Z.has(g,"barycenter")&&(y=p,m=g,Z.isUndefined(y.barycenter)?(y.barycenter=m.barycenter,y.weight=m.weight):(y.barycenter=(y.barycenter*y.weight+m.barycenter*m.weight)/(y.weight+m.weight),y.weight+=m.weight))}var y,m});var c=lre(l,n);(function(p,g){Z.forEach(p,function(y){y.vs=Z.flatten(y.vs.map(function(m){return g[m]?g[m].vs:m}),!0)})})(c,f);var h=cre(c,a);if(s&&(h.vs=Z.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(u)[0]);Z.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+v.order)/(h.weight+2),h.weight+=2}return h},dre=Sa.Graph,vre=function(t,e,r){var n=function(i){for(var o;i.hasNode(o=Z.uniqueId("_root")););return o}(t),a=new dre({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return Z.forEach(t.nodes(),function(i){var o=t.node(i),s=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(a.setNode(i),a.setParent(i,s||n),Z.forEach(t[r](i),function(u){var f=u.v===i?u.w:u.v,l=a.edge(f,i),c=Z.isUndefined(l)?0:l.weight;a.setEdge(f,i,{weight:t.edge(u).weight+c})}),Z.has(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),a},pre=function(t,e,r){var n,a={};Z.forEach(r,function(i){for(var o,s,u=t.parent(i);u;){if((o=t.parent(u))?(s=a[o],a[o]=u):(s=n,n=u),s&&s!==u)return void e.setEdge(s,u);u=o}})},gre=Sa.Graph,yre=function(t){var e=Mn.maxRank(t),r=K_(t,Z.range(1,e+1),"inEdges"),n=K_(t,Z.range(e-1,-1,-1),"outEdges"),a=ore(t);Q_(t,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){mre(s%2?r:n,s%4>=2),a=Mn.buildLayerMatrix(t);var f=sre(t,a);fu)&&bN(r,c,f)})})}return Z.reduce(e,function(a,i){var o,s=-1,u=0;return Z.forEach(i,function(f,l){if(t.node(f).dummy==="border"){var c=t.predecessors(f);c.length&&(o=t.node(c[0]).order,n(i,u,l,s,o),u=l,s=o)}n(i,u,i.length,o,a.length)}),i}),r}function bN(t,e,r){if(e>r){var n=e;e=r,r=n}var a=t[e];a||(t[e]=a={}),a[r]=!0}function _re(t,e,r){if(e>r){var n=e;e=r,r=n}return Z.has(t[e],r)}function Sre(t,e,r,n){var a={},i={},o={};return Z.forEach(e,function(s){Z.forEach(s,function(u,f){a[u]=u,i[u]=u,o[u]=f})}),Z.forEach(e,function(s){var u=-1;Z.forEach(s,function(f){var l=n(f);if(l.length)for(var c=((l=Z.sortBy(l,function(p){return o[p]})).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var v=l[h];i[f]===f&&unew Wre(r)).forEach(r=>{e.nodes[r.name]=r,r.inputs.forEach(n=>{(function(a,i,o){o.name!==i.name&&a.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:i.name}))})(e,r,n)})}),e}class qre{constructor(e,r={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Yo.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=kn.META,this.path=[],this.name=e,this.metaGraph=Zm(e,uu.META,r)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,r=[],n=[this];for(;n.length;){let a=n.shift();a.isGroupNode?(e=a.metaGraph,e.nodes().forEach(i=>n.push(e.node(i)))):r.push(a.name)}return r}}class Hre{constructor(e,r){this.v=e,this.w=r,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,r){this.baseEdgeList.push(e)}}function xN(t,e={}){return new qre(t,e)}function EN(t,e){return new Hre(t,e)}function Zm(t,e,r){const n=r||{},a=new $re.Graph(n);return a.setGraph({name:t,rankdir:n.rankdir,type:e,align:n.align}),a}class Zre{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=xN(su,this.graphOptions),this.index[su]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,r){this.index[e]=r}getBridgeGraph(e){const r=this.index[e];if(!r)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in r))return null;const n=r;if(n.bridgeGraph)return n.bridgeGraph;const a=Zm(ck,uu.BRIDGE,this.graphOptions);if(n.bridgeGraph=a,!r.parentNode||!("metaGraph"in r.parentNode))return a;const i=r.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const u=s.w===e;o.edge(s).baseEdgeList.forEach(f=>{const[l,c]=u?[f.w,s.v]:[f.v,s.w],h=this.getChildName(e,l),d={v:u?c:h,w:u?h:c};let v=a.edge(d);v||(v=EN(d.v,d.w),v.inbound=u,a.setEdge(d.v,d.w,v)),v.addBaseEdge(f,this)})})}),a}getChildName(e,r){let n=this.index[r];for(;n;){if(n.parentNode&&n.parentNode.name===e)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+r)}getPredecessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!0)}getSuccessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!1)}getOneWayEdges(e,r){const n=[];if(!e.parentNode||!e.parentNode.isGroupNode)return n;const a=e.parentNode,i=a.metaGraph,o=this.getBridgeGraph(a.name);return J_(i,e,r,n),J_(o,e,r,n),n}}function Kre(t,e){const{rankDirection:r,align:n}=e,a=new Zre({rankdir:r,align:n});return function(i,o){Object.keys(o.nodes).forEach(s=>{const u=o.nodes[s],f=u.path;let l=i.root;l.depth=Math.max(f.length,l.depth);for(let c=0;c{let d=0;for(;c;)h[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{u=[],f=[];let h=l(o.nodes[c.v],u),d=l(o.nodes[c.w],f);for(;u[h]===f[d];)if(h--,d--,h<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[u[h+1]],p=u[h],g=f[d];let y=v.metaGraph.edge(p,g);y||(y=EN(p,g),v.metaGraph.setEdge(p,g,y)),y.addBaseEdge(c,i)})}(a,t),a}function J_(t,e,r,n){(r?t.inEdges(e.name):t.outEdges(e.name)).forEach(a=>{const i=t.edge(a);n.push(i)})}class Qre{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new t2(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const r=this.index[e];if(r.node.type!==kn.META)return;const n=r,a=n.node.metaGraph,i=n.coreGraph;a.nodes().forEach(l=>{const c=this.getOrCreateRenderNodeByName(l);i.setNode(l,c)}),a.edges().forEach(l=>{const c=a.edge(l),h=new e2(c);i.setEdge(l.v,l.w,h)});const o=n.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),u=(l,...c)=>c.concat([l?"IN":"OUT"]).join("~~"),f=this.hierarchy.getBridgeGraph(e);f.edges().forEach(l=>{const c=f.edge(l),h=!!a.node(l.w),[d,v]=h?[l.w,l.v]:[l.v,l.w],p=x=>{const E=h?{v:x,w:e}:{v:e,w:x};return s.coreGraph.edge(E)};let g=p(v);g||(g=p(u(h,v,o.name)));const y=u(h,e),m=u(h,v,e);let b=i.node(m);if(!b){let x=i.node(y);if(!x){const _={name:y,type:kn.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};x=new mh(_),this.index[y]=x,i.setNode(y,x)}const E={name:m,type:kn.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};b=new mh(E),this.index[m]=b,i.setNode(m,b),i.setParent(m,y),x.node.cardinality++}const w=new e2(c);w.adjoiningMetaEdge=g,h?i.setEdge(m,d,w):i.setEdge(d,m,w)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const r=this.getNodeByName(e);return r?(this.index[e]=r.isGroupNode?new t2(r,this.hierarchy.graphOptions):new mh(r),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class mh{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class e2{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class t2 extends mh{constructor(e,r){super(e);const n=e.metaGraph.graph();r.compound=!0,this.coreGraph=Zm(n.name,uu.CORE,r)}}function _N(t,e){t.node.isGroupNode&&function(r,n){const a=Tg(n);r.coreGraph.nodes().map(i=>r.coreGraph.node(i)).forEach(i=>{var o,s,u,f,l,c;const{height:h,width:d}=i;switch(i.node.type){case kn.NODE:Object.assign(i,a.nodeSize.node),i.height=h||a.nodeSize.node.height,i.width=d||a.nodeSize.node.width;break;case kn.BRIDGE:Object.assign(i,a.nodeSize.bridge);break;case kn.META:i.expanded?_N(i,n):(Object.assign(i,a.nodeSize.meta),i.height=a.nodeSize.meta.height,i.width=a.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}if(!i.expanded){const v=i.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const y=`${p.displayName}`.length,m=3;p.width=Math.max(p.coreBox.width,y*m)}})(i,n&&(i.node.type===0&&!!(!((s=(o=n==null?void 0:n.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||i.node.type===1&&(!!(!((f=(u=n==null?void 0:n.nodeSize)===null||u===void 0?void 0:u.node)===null||f===void 0)&&f.width)||!!v.width)||i.node.type===2&&!!(!((c=(l=n==null?void 0:n.nodeSize)===null||l===void 0?void 0:l.bridge)===null||c===void 0)&&c.width)))}})}(t,e),t.node.type===kn.META&&function(r,n){const a=Tg(n),i=a.subScene.meta;Object.assign(r,i);const{nodeSep:o,rankSep:s,edgeSep:u,align:f}=a.graph.meta,l={nodesep:o,ranksep:s,edgesep:u,align:f};Object.assign(r.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:y,align:m}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:y,align:m});const b=[];if(d.nodes().forEach(S=>{d.node(S).node.type!==kn.BRIDGE&&b.push(S)}),!b.length)return{width:0,height:0};Xre(d);let w=1/0,x=1/0,E=-1/0,_=-1/0;return b.forEach(S=>{const A=d.node(S),M=.5*A.width,C=A.x-M,I=A.x+M;w=CE?I:E;const k=.5*A.height,O=A.y-k,B=A.y+k;x=O_?B:_}),d.edges().forEach(S=>{const A=d.edge(S),M=d.node(A.metaEdge.v),C=d.node(A.metaEdge.w);if(A.points.length===3&&function(O){let B=r2(O[0],O[1]);for(let L=1;L1)return!1;B=z}return!0}(A.points)){if(M!=null){const O=M.expanded?M.x:Bg(M);A.points[0].x=O}if(C!=null){const O=C.expanded?C.x:Bg(C);A.points[2].x=O}A.points=[A.points[0],A.points[1]]}const I=A.points[A.points.length-2];C!=null&&(A.points[A.points.length-1]=n2(I,C));const k=A.points[1];M!=null&&(A.points[0]=n2(k,M)),A.points.forEach(O=>{w=O.xE?O.x:E,x=O.y_?O.y:_})}),d.nodes().forEach(S=>{const A=d.node(S);A.x-=w,A.y-=x}),d.edges().forEach(S=>{d.edge(S).points.forEach(A=>{A.x-=w,A.y-=x})}),{width:E-w,height:_-x}}(r.coreGraph,l));let c=0;r.coreGraph.nodeCount()>0&&c++;const h=c<=1?0:c;r.coreBox.width+=h+h,r.coreBox.height=i.labelHeight+r.coreBox.height,r.width=r.coreBox.width+i.paddingLeft+i.paddingRight,r.height=r.paddingTop+r.coreBox.height+r.paddingBottom}(t,e)}function r2(t,e){const r=e.x-t.x,n=e.y-t.y;return 180*Math.atan(n/r)/Math.PI}function Bg(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function n2(t,e){const r=e.expanded?e.x:Bg(e),n=e.y,a=t.x-r,i=t.y-n;let o,s,u=e.expanded?e.width:e.coreBox.width,f=e.expanded?e.height:e.coreBox.height;return Math.abs(i)*u/2>Math.abs(a)*f/2?(i<0&&(f=-f),o=i===0?0:f/2*a/i,s=f/2):(a<0&&(u=-u),o=u/2,s=a===0?0:u/2*i/a),{x:r+o,y:n+s}}function Jre(t,e,r){var n,a,i,o;const s=t.nodes.filter((c,h,d)=>d.findIndex(v=>v.id===c.id)!==h).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const u=function(c){const h={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(m,b=[])=>{if(p.has(m))return p.get(m);for(let w=0;wc.edges.filter(b=>b.w===m).map(b=>({name:b.v}));return c.nodes.forEach(m=>{const b=m.id,w=[...g(b),b];let x=y(b);h.nodes.push({name:b,path:w,inputs:x,width:m.width,height:m.height,attr:Object.assign({},m)})}),h}(t),f=function(c,h){const d=(p,g)=>{for(let y of g.values())if(y.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const y=new Map(Object.keys(p).map(b=>[b,p[b]])),m={};for(let[b,w]of y)d(b,y)?m[b]=w:g=g.concat(b,w);return v(m,g)};return v(c).filter(p=>h.includes(p))}(t.compound||{},(e==null?void 0:e.expanded)||[]),l=function(c,h){return function(d){return new Qre(d)}(Kre(Yre(c),h))}(u,{rankDirection:((a=(n=r==null?void 0:r.graph)===null||n===void 0?void 0:n.meta)===null||a===void 0?void 0:a.rankDir)||(e==null?void 0:e.rankDirection)||ed.graph.meta.rankDir,align:((o=(i=r==null?void 0:r.graph)===null||i===void 0?void 0:i.meta)===null||o===void 0?void 0:o.align)||ed.graph.meta.align});return function(c,h){h.forEach(d=>{const v=c.getRenderInfoNodes().find(y=>y.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(l,f),_N(l.root,r),SN(l.root)}function ene(t,e=!1){const r=JSON.parse(JSON.stringify(t)),n={nodes:[r],edges:[...r.edges]};return r.nodes.forEach(function a(i){(i.type===0||i.type===1)&&n.nodes.push(i),i.type===0&&(n.edges=n.edges.concat(i.edges)),Array.isArray(i.nodes)&&i.nodes.forEach(a)}),e&&n.nodes.forEach(a=>{const i=n.nodes.find(o=>o.id===a.parentNodeName);if(i){const o=i.x-i.width/2+i.paddingLeft,s=i.y-i.height/2+i.labelHeight+i.paddingTop;i.id!==su&&(a.x+=o,a.y+=s),a.type===0&&a.edges.forEach(u=>{u.points.forEach(f=>{f.x+=a.x-a.width/2+a.paddingLeft,f.y+=a.y-a.height/2+a.labelHeight+a.paddingTop})})}}),n}function tne(t,e,r,n){var a,i;let o=[];const s=((a=r.find(c=>c.id===t))===null||a===void 0?void 0:a.path)||[],u=((i=r.find(c=>c.id===e))===null||i===void 0?void 0:i.path)||[],f=[su,...s].slice(0,s.length).reverse(),l=[su,...u].slice(0,u.length);return f.forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),l.filter(c=>!f.includes(c)).forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),o}function SN(t){const e=t.coreGraph.nodes().map(n=>t.coreGraph.node(n));return Object.assign(Object.assign({},a2(t)),{expanded:t.expanded,nodes:t.expanded?(r=e,r.map(n=>n.node.type===kn.META?SN(n):a2(n))):[],edges:t.expanded?rne(t):[]});var r}function a2(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path}}function rne(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:r})=>{const n=function(a,i){const o=i.points.map(s=>Object.assign({},s));if(i.adjoiningMetaEdge){const s=i.adjoiningMetaEdge.points,u=i.metaEdge.inbound,f=u?s[s.length-1]:s[0],l=o[u?0:o.length-1],c=a.x-a.width/2,h=a.y-a.height/2,d=f.x-c,v=f.y-h,p=-a.paddingLeft,g=-(a.paddingTop+a.labelHeight);l.x=d+p,l.y=v+g}return o}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:e.w,v:e.v,points:n,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}const nne=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:ck,get GraphType(){return uu},get HierarchyNodeType(){return Ig},get InclusionType(){return Yo},LAYOUT_CONFIG:ed,get NodeType(){return kn},ROOT_NAME:su,buildGraph:Jre,flatGraph:ene,getEdges:tne,mergeConfig:Tg},Symbol.toStringTag,{value:"Module"})),ane=Ka(nne);var ine=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),va=me&&me.__assign||function(){return va=Object.assign||function(t){for(var e,r=1,n=arguments.length;rf.x&&(s=f.x),u>f.y&&(u=f.y)}),n.forEach(function(f){f.points.forEach(function(l){s>l.x&&(s=l.x),u>l.y&&(u=l.y)})}),o[0]=i[0]-s,o[1]=i[1]-u}return o},e.prototype.updateNodePosition=function(r,n){var a=this,i=a.combos,o=a.nodes,s=a.edges,u=a.anchorPoint,f=a.graphSettings,l=this.getBegin(r,n);r.forEach(function(c){var h,d=c.x,v=c.y,p=c.id,g=c.type,y=c.coreBox;if(g===Hn.HierarchyNodeType.META&&p!==Hn.ROOT_NAME){var m=i.findIndex(function(_){return _.id===p}),b=(h=f==null?void 0:f.subScene)===null||h===void 0?void 0:h.meta;i[m].offsetX=d+l[0],i[m].offsetY=v+l[1],i[m].fixSize=[y.width,y.height],i[m].fixCollapseSize=[y.width,y.height],c.expanded?i[m].padding=[b==null?void 0:b.paddingTop,b==null?void 0:b.paddingRight,b==null?void 0:b.paddingBottom,b==null?void 0:b.paddingLeft]:i[m].padding=[0,0,0,0]}else if(g===Hn.HierarchyNodeType.OP){var m=o.findIndex(function(S){return S.id===p});if(o[m].x=d+l[0],o[m].y=v+l[1],u){var w=[],x=n.filter(function(S){return S.v===p}),E=n.filter(function(S){return S.w===p});x.length>0&&x.forEach(function(S){var A=S.points[0],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.sourceAnchor=w.length-1)})}),E.length>0&&E.forEach(function(S){var A=S.points[S.points.length-1],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.targetAnchor=w.length-1)})}),o[m].anchorPoints=w.length>0?w:o[m].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(r,n){var a=this,i=a.combos,o=a.edges,s=a.controlPoints,u=this.getBegin(r,n);s&&(i.forEach(function(f){f.inEdges=[],f.outEdges=[]}),o.forEach(function(f){var l,c,h,d,v=r.find(function(_){return _.id===f.source}),p=r.find(function(_){return _.id===f.target}),g=[],y=[];if(v&&p)y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r);else if(!v||!p){var m=a.getNodePath(f.source),b=a.getNodePath(f.target),w=m.reverse().slice(v?0:1).find(function(_){return r.find(function(S){return S.id===_})}),x=b.reverse().slice(p?0:1).find(function(_){return r.find(function(S){return S.id===_})});v=r.find(function(_){return _.id===w}),p=r.find(function(_){return _.id===x}),y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r,{v:f.source,w:f.target})}if(g=y.reduce(function(_,S){return Ms(Ms([],_,!0),S.points.map(function(A){return va(va({},A),{x:A.x+u[0],y:A.y+u[1]})}),!0)},[]),g=g.slice(1,-1),f.controlPoints=g,(p==null?void 0:p.type)===Hn.NodeType.META){var E=i.findIndex(function(_){return _.id===(p==null?void 0:p.id)});if(!i[E]||!((l=i[E].inEdges)===null||l===void 0)&&l.some(function(_){return _.source===v.id&&_.target===p.id}))return;(c=i[E].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Hn.NodeType.META){var E=i.findIndex(function(S){return S.id===(v==null?void 0:v.id)});if(!i[E]||!((h=i[E].outEdges)===null||h===void 0)&&h.some(function(S){return S.source===v.id&&S.target===p.id}))return;(d=i[E].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(r){return r.every(function(n){return n.layoutOrder!==void 0})||r.forEach(function(n,a){n.layoutOrder=a}),r.sort(function(n,a){return n.layoutOrder-a.layoutOrder})},e}(one.Base);vl.DagreCompoundLayout=sne;var Km={},lv={},Qm={};const une=Object.prototype.toString;function ud(t){const e=une.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function fne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;so&&(o=t[s]);return o}function lne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(ud(t)){if(t.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var r;if(e.output!==void 0){if(!ud(e.output))throw new TypeError("output option must be an array if specified");r=e.output}else r=new Array(t.length);var n=lne(t),a=fne(t);if(n===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=e.min,o=i===void 0?e.autoMinMax?n:0:i,s=e.max,u=s===void 0?e.autoMinMax?a:1:s;if(o>=u)throw new RangeError("min option must be smaller than max option");for(var f=(u-o)/(a-n),l=0;l>n);return this},t.prototype.signPropagatingRightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>n.get(a,i));return this},t.signPropagatingRightShift=function(n,a){return new e(n).signPropagatingRightShift(a)},t.prototype.rightShift=function(n){return typeof n=="number"?this.rightShiftS(n):this.rightShiftM(n)},t.prototype.rightShiftS=function(n){for(let a=0;a>>n);return this},t.prototype.rightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>>n.get(a,i));return this},t.rightShift=function(n,a){return new e(n).rightShift(a)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let n=0;nn)throw new RangeError("Row index out of range")}function ea(t,e,r){let n=r?t.columns:t.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function Rs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function Fs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function CN(t,e,r){return{row:TN(t,e),column:IN(t,r)}}function TN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(n=>n<0||n>=t.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function IN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(n=>n<0||n>=t.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Gg(t,e,r,n,a){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(Bc("startRow",e),Bc("endRow",r),Bc("startColumn",n),Bc("endColumn",a),e>r||n>a||e<0||e>=t.rows||r<0||r>=t.rows||n<0||n>=t.columns||a<0||a>=t.columns)throw new RangeError("Submatrix indices are out of range")}function cv(t,e=0){let r=[];for(let n=0;n=i)throw new RangeError("min must be smaller than max");let s=i-a,u=new lt(e,r);for(let f=0;fn?(i=!0,n=r):(a=!1,i=!0);e++}return a}isReducedEchelonForm(){let e=0,r=0,n=-1,a=!0,i=!1;for(;en?(i=!0,n=r):(a=!1,i=!0);for(let o=r+1;oe.get(a,n)&&(a=i);if(e.get(a,n)===0)n++;else{e.swapRows(r,a);let i=e.get(r,n);for(let o=n;o=0;)if(e.maxRow(a)===0)a--;else{let i=0,o=!1;for(;ie&&(e=this.get(r,n));return e}maxIndex(){let e=this.get(0,0),r=[0,0];for(let n=0;ne&&(e=this.get(n,a),r[0]=n,r[1]=a);return r}min(){let e=this.get(0,0);for(let r=0;rr&&(r=this.get(e,n));return r}maxRowIndex(e){Jn(this,e);let r=this.get(e,0),n=[e,0];for(let a=1;ar&&(r=this.get(e,a),n[1]=a);return n}minRow(e){Jn(this,e);let r=this.get(e,0);for(let n=1;nr&&(r=this.get(n,e));return r}maxColumnIndex(e){ea(this,e);let r=this.get(0,e),n=[0,e];for(let a=1;ar&&(r=this.get(a,e),n[0]=a);return n}minColumn(e){ea(this,e);let r=this.get(0,e);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;i=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;in||r<0||r>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let a=new lt(e.length,n-r+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${e[i]}`);a.set(i,o-r,this.get(e[i],o))}return a}subMatrixColumn(e,r,n){if(r===void 0&&(r=0),n===void 0&&(n=this.rows-1),r>n||r<0||r>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let a=new lt(n-r+1,e.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${e[i]}`);a.set(o-r,i,this.get(o,e[i]))}return a}setSubMatrix(e,r,n){e=lt.checkMatrix(e);let a=r+e.rows-1,i=n+e.columns-1;Gg(this,r,a,n,i);for(let o=0;o0)if(this.data=[],Number.isInteger(r)&&r>0)for(let n=0;n"u"&&(r=e,e=this.columns),ea(this,e,!0),r=Fs(this,r);for(let n=0;nMath.abs(v[l])&&(l=s);if(l!==u){for(f=0;f=0;f--){for(u=0;uo?a.set(i,o,e.get(i,o)):i===o?a.set(i,o,1):a.set(i,o,0);return a}get upperTriangularMatrix(){let e=this.LU,r=e.rows,n=e.columns,a=new lt(r,n);for(let i=0;iMath.abs(e)?(r=e/t,Math.abs(t)*Math.sqrt(1+r*r)):e!==0?(r=t/e,Math.abs(e)*Math.sqrt(1+r*r)):0}class zg{constructor(e){e=Wn.checkMatrix(e);let r=e.clone(),n=e.rows,a=e.columns,i=new Float64Array(a),o,s,u,f;for(u=0;u=0;f--){for(u=0;u=0;s--){for(i=0;i=0;M--)if(v[M]!==0){for(let C=M+1;C=0;M--){if(M0;){let M,C;for(M=_-2;M>=-1&&M!==-1;M--){const I=Number.MIN_VALUE+A*Math.abs(v[M]+Math.abs(v[M+1]));if(Math.abs(y[M])<=I||Number.isNaN(y[M])){y[M]=0;break}}if(M===_-2)C=4;else{let I;for(I=_-1;I>=M&&I!==M;I--){let k=(I!==_?Math.abs(y[I]):0)+(I!==M+1?Math.abs(y[I-1]):0);if(Math.abs(v[I])<=A*k){v[I]=0;break}}I===M?C=3:I===_-1?C=1:(C=2,M=I)}switch(M++,C){case 1:{let I=y[_-2];y[_-2]=0;for(let k=_-2;k>=M;k--){let O=hi(v[k],I),B=v[k]/O,L=I/O;if(v[k]=O,k!==M&&(I=-L*y[k-1],y[k-1]=B*y[k-1]),f)for(let z=0;z=v[M+1]);){let I=v[M];if(v[M]=v[M+1],v[M+1]=I,f&&Mr&&i.set(l,c,e.get(l,c)/this.s[c]);let o=this.U,s=o.rows,u=o.columns,f=new lt(n,s);for(let l=0;le&&r++;return r}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return lt.diag(this.s)}}function Une(t,e=!1){return t=Wn.checkMatrix(t),e?new cu(t).inverse():NN(t,lt.eye(t.rows))}function NN(t,e,r=!1){return t=Wn.checkMatrix(t),e=Wn.checkMatrix(e),r?new cu(t).solve(e):t.isSquare()?new fd(t).solve(e):new zg(t).solve(e)}function wh(t){if(t=lt.checkMatrix(t),t.isSquare()){let e,r,n,a;if(t.columns===2)return e=t.get(0,0),r=t.get(0,1),n=t.get(1,0),a=t.get(1,1),e*a-r*n;if(t.columns===3){let i,o,s;return i=new bh(t,[1,2],[1,2]),o=new bh(t,[1,2],[0,2]),s=new bh(t,[1,2],[0,1]),e=t.get(0,0),r=t.get(0,1),n=t.get(0,2),e*wh(i)-r*wh(o)+n*wh(s)}else return new fd(t).determinant}else throw Error("determinant can only be calculated for a square matrix")}function $ne(t,e){let r=[];for(let n=0;na)return new Array(e.rows+1).fill(0);{let i=e.addRow(r,[0]);for(let o=0;oe?i[o]=1/i[o]:i[o]=0;return a.mmul(lt.diag(i).mmul(n.transpose()))}function Yne(t,e=t,r={}){t=new lt(t);let n=!1;if(typeof e=="object"&&!lt.isMatrix(e)&&!Array.isArray(e)?(r=e,e=t,n=!0):e=new lt(e),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:a=!0}=r;a&&(t=t.center("column"),n||(e=e.center("column")));const i=t.transpose().mmul(e);for(let o=0;o0?a.set(i,i+1,r[i]):r[i]<0&&a.set(i,i-1,r[i])}return a}}function Hne(t,e,r,n){let a,i,o,s,u,f,l,c;for(u=0;u0;s--){for(c=0,o=0,f=0;f0&&(i=-i),e[s]=c*i,o=o-a*i,r[s-1]=a-i,u=0;uf)do{for(a=r[f],c=(r[f+1]-a)/(2*e[f]),h=hi(c,1),c<0&&(h=-h),r[f]=e[f]/(c+h),r[f+1]=e[f]*(c+h),d=r[f+1],i=a-r[f],o=f+2;o=f;o--)for(g=p,p=v,b=m,a=v*e[o],i=v*c,h=hi(c,e[o]),e[o+1]=m*h,m=e[o]/h,v=c/h,c=v*r[o]-m*a,r[o+1]=i+m*(v*a+m*r[o]),u=0;uE*x);r[f]=r[f]+w,e[f]=0}for(o=0;o=c;f--)r[f]=e.get(f,c-1)/h,u+=r[f]*r[f];for(s=Math.sqrt(u),r[c]>0&&(s=-s),u=u-r[c]*s,r[c]=r[c]-s,l=c;l=c;f--)o+=r[f]*e.get(f,l);for(o=o/u,f=c;f<=i;f++)e.set(f,l,e.get(f,l)-o*r[f])}for(f=0;f<=i;f++){for(o=0,l=i;l>=c;l--)o+=r[l]*e.get(f,l);for(o=o/u,l=c;l<=i;l++)e.set(f,l,e.get(f,l)-o*r[l])}r[c]=h*r[c],e.set(c,c-1,h*s)}}for(f=0;f=a+1;c--)if(e.get(c,c-1)!==0){for(f=c+1;f<=i;f++)r[f]=e.get(f,c-1);for(l=c;l<=i;l++){for(s=0,f=c;f<=i;f++)s+=r[f]*n.get(f,l);for(s=s/r[c]/e.get(c,c-1),f=c;f<=i;f++)n.set(f,l,n.get(f,l)+s*r[f])}}}function Qne(t,e,r,n,a){let i=t-1,o=0,s=t-1,u=Number.EPSILON,f=0,l=0,c=0,h=0,d=0,v=0,p=0,g=0,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;for(y=0;ys)&&(r[y]=a.get(y,y),e[y]=0),m=Math.max(y-1,0);m=o;){for(w=i;w>o&&(v=Math.abs(a.get(w-1,w-1))+Math.abs(a.get(w,w)),v===0&&(v=l),!(Math.abs(a.get(w,w-1))=0){for(p=c>=0?c+p:c-p,r[i-1]=S+p,r[i]=r[i-1],p!==0&&(r[i]=S-_/p),e[i-1]=0,e[i]=0,S=a.get(i,i-1),v=Math.abs(S)+Math.abs(p),c=S/v,h=p/v,d=Math.sqrt(c*c+h*h),c=c/d,h=h/d,m=i-1;m0)){for(v=Math.sqrt(v),A=w&&(p=a.get(x,x),d=S-p,v=A-p,c=(d*v-_)/a.get(x+1,x)+a.get(x,x+1),h=a.get(x+1,x+1)-p-d-v,d=a.get(x+2,x+1),v=Math.abs(c)+Math.abs(h)+Math.abs(d),c=c/v,h=h/v,d=d/v,!(x===w||Math.abs(a.get(x,x-1))*(Math.abs(h)+Math.abs(d))x+2&&a.set(y,y-3,0);for(b=x;b<=i-1&&(O=b!==i-1,b!==x&&(c=a.get(b,b-1),h=a.get(b+1,b-1),d=O?a.get(b+2,b-1):0,S=Math.abs(c)+Math.abs(h)+Math.abs(d),S!==0&&(c=c/S,h=h/S,d=d/S)),S!==0);b++)if(v=Math.sqrt(c*c+h*h+d*d),c<0&&(v=-v),v!==0){for(b!==x?a.set(b,b-1,-v*S):w!==x&&a.set(b,b-1,-a.get(b,b-1)),c=c+v,S=c/v,A=h/v,p=d/v,h=h/c,d=d/c,m=b;m=0;i--)if(c=r[i],h=e[i],h===0)for(w=i,a.set(i,i,1),y=i-1;y>=0;y--){for(_=a.get(y,y)-c,d=0,m=w;m<=i;m++)d=d+a.get(y,m)*a.get(m,i);if(e[y]<0)p=_,v=d;else if(w=y,e[y]===0?a.set(y,i,_!==0?-d/_:-d/(u*l)):(S=a.get(y,y+1),A=a.get(y+1,y),h=(r[y]-c)*(r[y]-c)+e[y]*e[y],E=(S*v-p*d)/h,a.set(y,i,E),a.set(y+1,i,Math.abs(S)>Math.abs(p)?(-d-_*E)/S:(-v-A*E)/p)),E=Math.abs(a.get(y,i)),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i,a.get(m,i)/E)}else if(h<0)for(w=i-1,Math.abs(a.get(i,i-1))>Math.abs(a.get(i-1,i))?(a.set(i-1,i-1,h/a.get(i,i-1)),a.set(i-1,i,-(a.get(i,i)-c)/a.get(i,i-1))):(B=Gc(0,-a.get(i-1,i),a.get(i-1,i-1)-c,h),a.set(i-1,i-1,B[0]),a.set(i-1,i,B[1])),a.set(i,i-1,0),a.set(i,i,1),y=i-2;y>=0;y--){for(M=0,C=0,m=w;m<=i;m++)M=M+a.get(y,m)*a.get(m,i-1),C=C+a.get(y,m)*a.get(m,i);if(_=a.get(y,y)-c,e[y]<0)p=_,d=M,v=C;else if(w=y,e[y]===0?(B=Gc(-M,-C,_,h),a.set(y,i-1,B[0]),a.set(y,i,B[1])):(S=a.get(y,y+1),A=a.get(y+1,y),I=(r[y]-c)*(r[y]-c)+e[y]*e[y]-h*h,k=(r[y]-c)*2*h,I===0&&k===0&&(I=u*l*(Math.abs(_)+Math.abs(h)+Math.abs(S)+Math.abs(A)+Math.abs(p))),B=Gc(S*d-p*M+h*C,S*v-p*C-h*M,I,k),a.set(y,i-1,B[0]),a.set(y,i,B[1]),Math.abs(S)>Math.abs(p)+Math.abs(h)?(a.set(y+1,i-1,(-M-_*a.get(y,i-1)+h*a.get(y,i))/S),a.set(y+1,i,(-C-_*a.get(y,i)-h*a.get(y,i-1))/S)):(B=Gc(-d-A*a.get(y,i-1),-v-A*a.get(y,i),p,h),a.set(y+1,i-1,B[0]),a.set(y+1,i,B[1]))),E=Math.max(Math.abs(a.get(y,i-1)),Math.abs(a.get(y,i))),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i-1,a.get(m,i-1)/E),a.set(m,i,a.get(m,i)/E)}for(y=0;ys)for(m=y;m=o;m--)for(y=o;y<=s;y++){for(p=0,b=o;b<=Math.min(m,s);b++)p=p+n.get(y,b)*a.get(b,m);n.set(y,m,p)}}}function Gc(t,e,r,n){let a,i;return Math.abs(r)>Math.abs(n)?(a=n/r,i=r+a*n,[(t+a*e)/i,(e-a*t)/i]):(a=r/n,i=n+a*r,[(a*t+e)/i,(a*e-t)/i])}class u2{constructor(e){if(e=Wn.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let r=e,n=r.rows,a=new lt(n,n),i=!0,o,s,u;for(s=0;s0,a.set(s,s,Math.sqrt(Math.max(f,0))),u=s+1;u=0;u--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),f=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(u=f.clone().sub(h).pow(2).sum()),h=f.clone(),n?(l=n.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),l=l.div(l.norm()),s=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):s=f;if(n){let d=e.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0));d=d.div(d.norm());let v=e.clone().sub(f.clone().mmul(d.transpose())),p=s.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),g=n.clone().sub(f.clone().mulS(p.get(0,0)).mmul(l.transpose()));this.t=f,this.p=d.transpose(),this.w=c.transpose(),this.q=l,this.u=s,this.s=f.transpose().mmul(f),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=f.transpose().mmul(f).sqrt(),a?this.t=f.clone().div(this.s.get(0,0)):this.t=f,this.xResidual=e.sub(f.mmul(c.transpose()))}}const Jne=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Xt,CHO:u2,CholeskyDecomposition:u2,EVD:s2,EigenvalueDecomposition:s2,LU:fd,LuDecomposition:fd,Matrix:lt,MatrixColumnSelectionView:Dne,MatrixColumnView:Lne,MatrixFlipColumnView:Pne,MatrixFlipRowView:Rne,MatrixRowSelectionView:Bne,MatrixRowView:Fne,MatrixSelectionView:bh,MatrixSubView:Gne,MatrixTransposeView:zne,NIPALS:f2,Nipals:f2,QR:zg,QrDecomposition:zg,SVD:cu,SingularValueDecomposition:cu,WrapperMatrix1D:kN,WrapperMatrix2D:Wn,correlation:qne,covariance:Yne,default:lt,determinant:wh,inverse:Une,linearDependencies:Wne,pseudoInverse:Vne,solve:NN,wrap:jne},Symbol.toStringTag,{value:"Module"})),ON=Ka(Jne);Object.defineProperty(Qm,"__esModule",{value:!0});var Qu=ON,eae=function(){function t(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return t.prototype.layout=function(){var e=this,r=e.dimension,n=e.distances,a=e.linkDistance;try{var i=Qu.Matrix.mul(Qu.Matrix.pow(n,2),-.5),o=i.mean("row"),s=i.mean("column"),u=i.mean();i.add(u).subRowVector(o).subColumnVector(s);var f=new Qu.SingularValueDecomposition(i),l=Qu.Matrix.sqrt(f.diagonalMatrix).diagonal();return f.leftSingularVectors.toJSON().map(function(p){return Qu.Matrix.mul([p],[l]).toJSON()[0].splice(0,r)})}catch{for(var c=[],h=0;hl?1:-1;c=.01*v,h=.01*v}if(dMath.PI/2&&(y-=Math.PI/2,v*=-1,p*=-1);var m=Math.cos(y)*g;f.x=v*m,f.y=p*m});var u=e.radii;r.forEach(function(f,l){if(l!==o){var c=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(c>0&&l!==o){var h=Math.min(s*(a/tae),c);if(f[0]+=n[l].x/c*h,f[1]+=n[l].y/c*h,i){var d=f[0]-r[o][0],v=f[1]-r[o][1],p=Math.sqrt(d*d+v*v);d=d/p*u[l],v=v/p*u[l],f[0]=r[o][0]+d,f[1]=r[o][1]+v}}}})},t}();Jm.default=rae;var nae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),LN=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lv,"__esModule",{value:!0});lv.RadialLayout=void 0;var Zn=Ir(),aae=Rr,iae=LN(Qm),oae=LN(Jm);function sae(t){for(var e=t.length,r=t[0].length,n=[],a=0;ai[0]?i[0]:p-i[0],m=g-i[1]>i[1]?i[1]:g-i[1];y===0&&(y=p/2),m===0&&(m=g/2);var b=m>y?y:m,w=Math.max.apply(Math,v),x=[];v.forEach(function(X,R){r.unitRadius||(r.unitRadius=b/w),x[R]=X*r.unitRadius}),r.radii=x;var E=r.eIdealDisMatrix();r.eIdealDistances=E;var _=sae(E);r.weights=_;var S=new iae.default({linkDistance:o,distances:E}),A=S.layout();A.forEach(function(X){(0,Zn.isNaN)(X[0])&&(X[0]=Math.random()*o),(0,Zn.isNaN)(X[1])&&(X[1]=Math.random()*o)}),r.positions=A,A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),A.forEach(function(X){X[0]-=A[l][0],X[1]-=A[l][1]}),r.run();var M=r.preventOverlap,C=r.nodeSize,I,k=r.strictRadial;if(M){var O=r.nodeSpacing,B;(0,Zn.isNumber)(O)?B=function(){return O}:(0,Zn.isFunction)(O)?B=O:B=function(){return 0},C?(0,Zn.isArray)(C)?I=function(X){var R=C[0]>C[1]?C[0]:C[1];return R+B(X)}:I=function(X){return C+B(X)}:I=function(X){if(X.size){if((0,Zn.isArray)(X.size)){var R=X.size[0]>X.size[1]?X.size[0]:X.size[1];return R+B(X)}if((0,Zn.isObject)(X.size)){var R=X.size.width>X.size.height?X.size.width:X.size.height;return R+B(X)}return X.size+B(X)}return 10+B(X)};var L={nodes:n,nodeSizeFunc:I,adjMatrix:c,positions:A,radii:x,height:g,width:p,strictRadial:k,focusID:l,iterations:r.maxPreventOverlapIteration||200,k:A.length/4.5},z=new oae.default(L);A=z.layout()}return A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a}},e.prototype.run=function(){for(var r=this,n=r.maxIteration,a=r.positions||[],i=r.weights||[],o=r.eIdealDistances||[],s=r.radii||[],u=0;u<=n;u++){var f=u/n;r.oneIteration(f,a,s,o,i)}},e.prototype.oneIteration=function(r,n,a,i,o){var s=this,u=1-r,f=s.focusIndex;n.forEach(function(l,c){var h=l2(l,[0,0]),d=h===0?0:1/h;if(c!==f){var v=0,p=0,g=0;n.forEach(function(m,b){if(c!==b){var w=l2(l,m),x=w===0?0:1/w,E=i[b][c];g+=o[c][b],v+=o[c][b]*(m[0]+E*(l[0]-m[0])*x),p+=o[c][b]*(m[1]+E*(l[1]-m[1])*x)}});var y=a[c]===0?0:1/a[c];g*=u,g+=r*y*y,v*=u,v+=r*y*l[0]*d,l[0]=v/g,p*=u,p+=r*y*l[1]*d,l[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var r=this,n=r.nodes;if(!n)return[];var a=r.distances,i=r.linkDistance,o=r.radii||[],s=r.unitRadius||50,u=[];return a&&a.forEach(function(f,l){var c=[];f.forEach(function(h,d){if(l===d)c.push(0);else if(o[l]===o[d])if(r.sortBy==="data")c.push(h*(Math.abs(l-d)*r.sortStrength)/(o[l]/s));else if(r.sortBy){var v=n[l][r.sortBy]||0,p=n[d][r.sortBy]||0;(0,Zn.isString)(v)&&(v=v.charCodeAt(0)),(0,Zn.isString)(p)&&(p=p.charCodeAt(0)),c.push(h*(Math.abs(v-p)*r.sortStrength)/(o[l]/s))}else c.push(h*i/(o[l]/s));else{var g=(i+s)/2;c.push(h*g)}}),u.push(c)}),u},e.prototype.handleInfinity=function(r,n,a){for(var i=r.length,o=0;oa?r[n][i]:a);return a},e.prototype.getType=function(){return"radial"},e}(aae.Base);lv.RadialLayout=fae;(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(lv,t)})(Km);var bl={},lae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(bl,"__esModule",{value:!0});bl.ConcentricLayout=void 0;var Na=Ir(),cae=Rr,hae=function(t){lae(e,t);function e(r){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=3/2*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes,o=a.edges,s=i.length;if(s===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var u=a.center;if(s===1){i[0].x=u[0],i[0].y=u[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var f=a.nodeSize,l=a.nodeSpacing,c=[],h,d=0;(0,Na.isArray)(f)?h=Math.max(f[0],f[1]):h=f,(0,Na.isArray)(l)?d=Math.max(l[0],l[1]):(0,Na.isNumber)(l)&&(d=l),i.forEach(function(k){c.push(k);var O=h;(0,Na.isArray)(k.size)?O=Math.max(k.size[0],k.size[1]):(0,Na.isNumber)(k.size)?O=k.size:(0,Na.isObject)(k.size)&&(O=Math.max(k.size.width,k.size.height)),h=Math.max(h,O),(0,Na.isFunction)(l)&&(d=Math.max(l(k),d))}),a.clockwise=a.counterclockwise!==void 0?!a.counterclockwise:a.clockwise;var v={},p={};if(c.forEach(function(k,O){v[k.id]=k,p[k.id]=O}),(a.sortBy==="degree"||!(0,Na.isString)(a.sortBy)||c[0][a.sortBy]===void 0)&&(a.sortBy="degree",!(0,Na.isNumber)(i[0].degree))){var g=(0,Na.getDegree)(i.length,p,o);c.forEach(function(k,O){k.degree=g[O].all})}c.sort(function(k,O){return O[a.sortBy]-k[a.sortBy]}),a.maxValueNode=c[0],a.maxLevelDiff=a.maxLevelDiff||a.maxValueNode[a.sortBy]/4;var y=[[]],m=y[0];c.forEach(function(k){if(m.length>0){var O=Math.abs(m[0][a.sortBy]-k[a.sortBy]);a.maxLevelDiff&&O>=a.maxLevelDiff&&(m=[],y.push(m))}m.push(k)});var b=h+(d||a.minNodeSpacing);if(!a.preventOverlap){var w=y.length>0&&y[0].length>1,x=Math.min(a.width,a.height)/2-b,E=x/(y.length+(w?1:0));b=Math.min(b,E)}var _=0;if(y.forEach(function(k){var O=a.sweep;O===void 0&&(O=2*Math.PI-2*Math.PI/k.length);var B=k.dTheta=O/Math.max(1,k.length-1);if(k.length>1&&a.preventOverlap){var L=Math.cos(B)-Math.cos(0),z=Math.sin(B)-Math.sin(0),X=Math.sqrt(b*b/(L*L+z*z));_=Math.max(X,_)}k.r=_,_+=b}),a.equidistant){for(var S=0,A=0,M=0;M"u")return;var h=0;this.timeInterval=window.setInterval(function(){var d;n.runOneStep(l),h++,h>=o&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))},0)}return{nodes:a,edges:i}}},e.prototype.runOneStep=function(r){var n,a=this,i=a.nodes;if(i){var o=a.edges,s=a.center,u=a.gravity,f=a.speed,l=a.clustering,c=a.height*a.width,h=Math.sqrt(c)/10,d=c/(i.length+1),v=Math.sqrt(d),p=[];if(i.forEach(function(m,b){p[b]={x:0,y:0}}),a.applyCalculate(i,o,p,v,d),l){for(var g in r)r[g].cx=0,r[g].cy=0,r[g].count=0;i.forEach(function(m){var b=r[m.cluster];(0,Dr.isNumber)(m.x)&&(b.cx+=m.x),(0,Dr.isNumber)(m.y)&&(b.cy+=m.y),b.count++});for(var g in r)r[g].cx/=r[g].count,r[g].cy/=r[g].count;var y=a.clusterGravity||u;i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=r[m.cluster],x=Math.sqrt((m.x-w.cx)*(m.x-w.cx)+(m.y-w.cy)*(m.y-w.cy)),E=v*y;p[b].x-=E*(m.x-w.cx)/x,p[b].y-=E*(m.y-w.cy)/x}})}i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=.01*v*u;p[b].x-=w*(m.x-s[0]),p[b].y-=w*(m.y-s[1])}}),i.forEach(function(m,b){if((0,Dr.isNumber)(m.fx)&&(0,Dr.isNumber)(m.fy)){m.x=m.fx,m.y=m.fy;return}if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=Math.sqrt(p[b].x*p[b].x+p[b].y*p[b].y);if(w>0){var x=Math.min(h*(f/mae),w);m.x+=p[b].x/w*x,m.y+=p[b].y/w*x}}}),(n=a.tick)===null||n===void 0||n.call(a)}},e.prototype.applyCalculate=function(r,n,a,i,o){var s=this;s.calRepulsive(r,a,o),n&&s.calAttractive(n,a,i)},e.prototype.calRepulsive=function(r,n,a){r.forEach(function(i,o){n[o]={x:0,y:0},r.forEach(function(s,u){if(o!==u&&!(!(0,Dr.isNumber)(i.x)||!(0,Dr.isNumber)(s.x)||!(0,Dr.isNumber)(i.y)||!(0,Dr.isNumber)(s.y))){var f=i.x-s.x,l=i.y-s.y,c=f*f+l*l;if(c===0){c=1;var h=o>u?1:-1;f=.01*h,l=.01*h}var d=a/c;n[o].x+=f*d,n[o].y+=l*d}})})},e.prototype.calAttractive=function(r,n,a){var i=this;r.forEach(function(o){var s=(0,Dr.getEdgeTerminal)(o,"source"),u=(0,Dr.getEdgeTerminal)(o,"target");if(!(!s||!u)){var f=i.nodeIdxMap[s],l=i.nodeIdxMap[u];if(f!==l){var c=i.nodeMap[s],h=i.nodeMap[u];if(!(!(0,Dr.isNumber)(h.x)||!(0,Dr.isNumber)(c.x)||!(0,Dr.isNumber)(h.y)||!(0,Dr.isNumber)(c.y))){var d=h.x-c.x,v=h.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/a;n[l].x-=d/p*g,n[l].y-=v/p*g,n[f].x+=d/p*g,n[f].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(yae.Base);xl.FruchtermanLayout=bae;var El={};function c2(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(f){return void r(f)}s.done?e(u):Promise.resolve(u).then(n,a)}function Xi(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){c2(i,n,a,o,s,"next",u)}function s(u){c2(i,n,a,o,s,"throw",u)}o(void 0)})}}function hu(t){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(t)}function wae(t,e){if(hu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DN(t){var e=wae(t,"string");return hu(e)=="symbol"?e:e+""}function Ke(t,e,r){return(e=DN(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h2(t,e){for(var r=0;r-1&&t%1==0&&t<=jae}var $ae=Uae;function Xae(t){return t!=null&&typeof t=="object"}var t1=Xae,Wae=e1,Vae=$ae,Yae=t1,qae="[object Arguments]",Hae="[object Array]",Zae="[object Boolean]",Kae="[object Date]",Qae="[object Error]",Jae="[object Function]",eie="[object Map]",tie="[object Number]",rie="[object Object]",nie="[object RegExp]",aie="[object Set]",iie="[object String]",oie="[object WeakMap]",sie="[object ArrayBuffer]",uie="[object DataView]",fie="[object Float32Array]",lie="[object Float64Array]",cie="[object Int8Array]",hie="[object Int16Array]",die="[object Int32Array]",vie="[object Uint8Array]",pie="[object Uint8ClampedArray]",gie="[object Uint16Array]",yie="[object Uint32Array]",wr={};wr[fie]=wr[lie]=wr[cie]=wr[hie]=wr[die]=wr[vie]=wr[pie]=wr[gie]=wr[yie]=!0;wr[qae]=wr[Hae]=wr[sie]=wr[Zae]=wr[uie]=wr[Kae]=wr[Qae]=wr[Jae]=wr[eie]=wr[tie]=wr[rie]=wr[nie]=wr[aie]=wr[iie]=wr[oie]=!1;function mie(t){return Yae(t)&&Vae(t.length)&&!!wr[Wae(t)]}var bie=mie;function wie(t){return function(e){return t(e)}}var xie=wie,ld={exports:{}};ld.exports;(function(t,e){var r=PN,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s})(ld,ld.exports);var Eie=ld.exports,_ie=bie,Sie=xie,g2=Eie,y2=g2&&g2.isTypedArray,Mie=y2?Sie(y2):_ie,Aie=Mie;const cd=bi(Aie);var Cie=e1,Tie=t1,Iie="[object Number]";function kie(t){return typeof t=="number"||Tie(t)&&Cie(t)==Iie}var Nie=kie;const Oie=bi(Nie);var Lie=Array.isArray,Die=Lie;const Pie=bi(Die);var BN={exports:{}},GN={exports:{}};(function(t){function e(r,n){this.v=r,this.k=n}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(GN);var zN=GN.exports,jN={exports:{}},UN={exports:{}};(function(t){function e(r,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}t.exports=e=function(u,f,l,c){function h(d,v){e(u,d,function(p){return this._invoke(d,v,p)})}f?o?o(u,f,{value:l,enumerable:!c,configurable:!c,writable:!c}):u[f]=l:(h("next",0),h("throw",1),h("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,a,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(UN);var $N=UN.exports;(function(t){var e=$N;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(g,y,m,b){var w=y&&y.prototype instanceof l?y:l,x=Object.create(w.prototype);return e(x,"_invoke",function(E,_,S){var A,M,C,I=0,k=S||[],O=!1,B={p:0,n:0,v:n,a:L,f:L.bind(n,4),d:function(X,R){return A=X,M=0,C=n,B.n=R,f}};function L(z,X){for(M=z,C=X,a=0;!O&&I&&!R&&a3?(R=ce===X)&&(C=V[(M=V[4])?5:(M=3,3)],V[4]=V[5]=n):V[0]<=he&&((R=z<2&&heX||X>ce)&&(V[4]=z,V[5]=X,B.n=ce,M=0))}if(R||z>1)return f;throw O=!0,X}return function(z,X,R){if(I>1)throw TypeError("Generator is already running");for(O&&X===1&&L(X,R),M=X,C=R;(a=M<2?n:C)||!O;){A||(M?M<3?(M>1&&(B.n=-1),L(M,C)):B.n=C:B.v=C);try{if(I=2,A){if(M||(z="next"),a=A[z]){if(!(a=a.call(A,C)))throw TypeError("iterator result is not an object");if(!a.done)return a;C=a.value,M<2&&(M=0)}else M===1&&(a=A.return)&&a.call(A),M<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),M=1);A=n}else if((a=(O=B.n<0)?C:E.call(_,B))!==f)break}catch(V){A=n,M=1,C=V}finally{I=1}}return{value:a,done:O}}}(g,m,b),!0),x}var f={};function l(){}function c(){}function h(){}a=Object.getPrototypeOf;var d=[][o]?a(a([][o]())):(e(a={},o,function(){return this}),a),v=h.prototype=l.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,h):(g.__proto__=h,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=h,e(v,"constructor",h),e(h,"constructor",c),c.displayName="GeneratorFunction",e(h,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t.exports=r=function(){return{w:u,m:p}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(jN);var XN=jN.exports,WN={exports:{}},VN={exports:{}},YN={exports:{}};(function(t){var e=zN,r=$N;function n(a,i){function o(u,f,l,c){try{var h=a[u](f),d=h.value;return d instanceof e?i.resolve(d.v).then(function(v){o("next",v,l,c)},function(v){o("throw",v,l,c)}):i.resolve(d).then(function(v){h.value=v,l(h)},function(v){return o("throw",v,l,c)})}catch(v){c(v)}}var s;this.next||(r(n.prototype),r(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(u,f,l){function c(){return new i(function(h,d){o(u,l,h,d)})}return s=s?s.then(c,c):c()},!0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(YN);var qN=YN.exports;(function(t){var e=XN,r=qN;function n(a,i,o,s,u){return new r(e().w(a,i,o,s),u||Promise)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(VN);var HN=VN.exports;(function(t){var e=HN;function r(n,a,i,o,s){var u=e(n,a,i,o,s);return u.next().then(function(f){return f.done?f.value:u.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(WN);var Rie=WN.exports,ZN={exports:{}};(function(t){function e(r){var n=Object(r),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(ZN);var Fie=ZN.exports,KN={exports:{}},QN={exports:{}};(function(t){function e(r){"@babel/helpers - typeof";return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(QN);var Bie=QN.exports;(function(t){var e=Bie.default;function r(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(e(n)+" is not iterable")}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(KN);var Gie=KN.exports;(function(t){var e=zN,r=XN,n=Rie,a=HN,i=qN,o=Fie,s=Gie;function u(){var f=r(),l=f.m(u),c=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function h(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,y;return function(m){g||(g={stop:function(){return y(m.a,2)},catch:function(){return m.v},abrupt:function(w,x){return y(m.a,d[w],x)},delegateYield:function(w,x,E){return g.resultName=x,y(m.d,s(w),E)},finish:function(w){return y(m.f,w)}},y=function(w,x,E){m.p=g.prev,m.n=g.next;try{return w(x,E)}finally{g.next=m.n}}),g.resultName&&(g[g.resultName]=m.v,g.resultName=void 0),g.sent=m.v,g.next=m.n;try{return p.call(this,g)}finally{m.p=g.prev,m.n=g.next}}}return(t.exports=u=function(){return{wrap:function(y,m,b,w){return f.w(v(y),m,b,w&&w.reverse())},isGeneratorFunction:h,mark:f.m,awrap:function(y,m){return new e(y,m)},AsyncIterator:i,async:function(y,m,b,w,x){return(h(m)?a:n)(v(y),m,b,w,x)},keys:o,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports})(BN);var zie=BN.exports,xh=zie(),jie=xh;try{regeneratorRuntime=xh}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xh:Function("r","regeneratorRuntime = r")(xh)}const mn=bi(jie);var Uie=1;function JN(){return Uie++}var ke;(function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(ke||(ke={}));var $ie=function(){function t(){Ma(this,t),this.config=void 0}return Aa(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(r){this.config=r}}]),t}(),Zf;(function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2",t.Vector3Float="vec3",t.Vector4Float="vec4",t.Vector2Boolean="vec2",t.Vector3Boolean="vec3",t.Vector4Boolean="vec4",t.Vector2Uint="vec2",t.Vector3Uint="vec3",t.Vector4Uint="vec4",t.Vector2Int="vec2",t.Vector3Int="vec3",t.Vector4Int="vec4",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3",t.Matrix4x4Float="mat4x4",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4[]"})(Zf||(Zf={}));var m2;(function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"})(m2||(m2={}));var du;(function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"})(du||(du={}));var Tf;(function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"})(Tf||(Tf={}));var Xie="__DefineValuePlaceholder__";function Wie(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function b2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function w2(t){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){f.next=6;break}return this.compiledBundle.context&&(i>1?this.compiledBundle.context.maxIteration=i:this.compiledBundle.context.maxIteration++),f.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(l){var c=l.isReferer;return c}).forEach(function(l){var c=l.data,h=l.name;a.model.confirmInput(c.model,h)}),o=0;o"u";case"symbol":return typeof T=="symbol"}}function h(T,F,W){c(T,F)||o("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T)}function d(T,F){T>=0&&(T|0)===T||o("invalid parameter type, ("+T+")"+u(F)+". must be a nonnegative integer")}function v(T,F,W){F.indexOf(T)<0&&o("invalid value"+u(W)+". must be one of: "+F)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(T){Object.keys(T).forEach(function(F){p.indexOf(F)<0&&o('invalid regl constructor argument "'+F+'". must be one of '+p)})}function y(T,F){for(T=T+"";T.length0&&F.push(new w("unknown",0,W))}}),F}function A(T,F){F.forEach(function(W){var ue=T[W.file];if(ue){var be=ue.index[W.line];if(be){be.errors.push(W),ue.hasErrors=!0;return}}T.unknown.hasErrors=!0,T.unknown.lines[0].errors.push(W)})}function M(T,F,W,ue,be){if(!T.getShaderParameter(F,T.COMPILE_STATUS)){var se=T.getShaderInfoLog(F),de=ue===T.FRAGMENT_SHADER?"fragment":"vertex";z(W,"string",de+" shader source must be a string",be);var Ce=_(W,be),Ne=S(se);A(Ce,Ne),Object.keys(Ce).forEach(function(Pe){var Oe=Ce[Pe];if(!Oe.hasErrors)return;var Be=[""],Xe=[""];function Te(Ge,re){Be.push(Ge),Xe.push(re||"")}Te("file number "+Pe+": "+Oe.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Oe.lines.forEach(function(Ge){if(Ge.errors.length>0){Te(y(Ge.number,4)+"| ","background-color:yellow; font-weight:bold"),Te(Ge.line+a,"color:red; background-color:yellow; font-weight:bold");var re=0;Ge.errors.forEach(function(ve){var De=ve.message,He=/^\s*'(.*)'\s*:\s*(.*)$/.exec(De);if(He){var Ee=He[1];switch(De=He[2],Ee){case"assign":Ee="=";break}re=Math.max(Ge.line.indexOf(Ee,re),0)}else re=0;Te(y("| ",6)),Te(y("^^^",re+3)+a,"font-weight:bold"),Te(y("| ",6)),Te(De+a,"font-weight:bold")}),Te(y("| ",6)+a)}else Te(y(Ge.number,4)+"| "),Te(Ge.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Xe[0]=Be.join("%c"),console.log.apply(console,Xe)):console.log(Be.join(""))}),s.raise("Error compiling "+de+" shader, "+Ce[0].name)}}function C(T,F,W,ue,be){if(!T.getProgramParameter(F,T.LINK_STATUS)){var se=T.getProgramInfoLog(F),de=_(W,be),Ce=_(ue,be),Ne='Error linking program with vertex shader, "'+Ce[0].name+'", and fragment shader "'+de[0].name+'"';typeof document<"u"?console.log("%c"+Ne+a+"%c"+se,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ne+a+se),s.raise(Ne)}}function I(T){T._commandRef=x()}function k(T,F,W,ue){I(T);function be(Ne){return Ne?ue.id(Ne):0}T._fragId=be(T.static.frag),T._vertId=be(T.static.vert);function se(Ne,Pe){Object.keys(Pe).forEach(function(Oe){Ne[ue.id(Oe)]=!0})}var de=T._uniformSet={};se(de,F.static),se(de,F.dynamic);var Ce=T._attributeSet={};se(Ce,W.static),se(Ce,W.dynamic),T._hasCount="count"in T.static||"count"in T.dynamic||"elements"in T.static||"elements"in T.dynamic}function O(T,F){var W=E();o(T+" in command "+(F||x())+(W==="unknown"?"":" called from "+W))}function B(T,F,W){T||O(F,W||x())}function L(T,F,W,ue){T in F||O("unknown parameter ("+T+")"+u(W)+". possible values: "+Object.keys(F).join(),ue||x())}function z(T,F,W,ue){c(T,F)||O("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T,ue||x())}function X(T){T()}function R(T,F,W){T.texture?v(T.texture._texture.internalformat,F,"unsupported texture format for attachment"):v(T.renderbuffer._renderbuffer.format,W,"unsupported renderbuffer format for attachment")}var V=33071,he=9728,ce=9984,le=9985,ie=9986,Ie=9987,qe=5120,Ve=5121,it=5122,dt=5123,st=5124,Tt=5125,_t=5126,lr=32819,Bt=32820,Wt=33635,vr=34042,cr=36193,$t={};$t[qe]=$t[Ve]=1,$t[it]=$t[dt]=$t[cr]=$t[Wt]=$t[lr]=$t[Bt]=2,$t[st]=$t[Tt]=$t[_t]=$t[vr]=4;function sr(T,F){return T===Bt||T===lr||T===Wt?2:T===vr?4:$t[T]*F}function tn(T){return!(T&T-1)&&!!T}function tt(T,F,W){var ue,be=F.width,se=F.height,de=F.channels;s(be>0&&be<=W.maxTextureSize&&se>0&&se<=W.maxTextureSize,"invalid texture shape"),(T.wrapS!==V||T.wrapT!==V)&&s(tn(be)&&tn(se),"incompatible wrap mode for texture, both width and height must be power of 2"),F.mipmask===1?be!==1&&se!==1&&s(T.minFilter!==ce&&T.minFilter!==ie&&T.minFilter!==le&&T.minFilter!==Ie,"min filter requires mipmap"):(s(tn(be)&&tn(se),"texture must be a square power of 2 to support mipmapping"),s(F.mipmask===(be<<1)-1,"missing or incomplete mipmap data")),F.type===_t&&(W.extensions.indexOf("oes_texture_float_linear")<0&&s(T.minFilter===he&&T.magFilter===he,"filter not supported, must enable oes_texture_float_linear"),s(!T.genMipmaps,"mipmap generation not supported with float textures"));var Ce=F.images;for(ue=0;ue<16;++ue)if(Ce[ue]){var Ne=be>>ue,Pe=se>>ue;s(F.mipmask&1<0&&be<=ue.maxTextureSize&&se>0&&se<=ue.maxTextureSize,"invalid texture shape"),s(be===se,"cube map must be square"),s(F.wrapS===V&&F.wrapT===V,"wrap mode not supported by cube map");for(var Ce=0;Ce>Oe,Te=se>>Oe;s(Ne.mipmask&1<1&&F===W&&(F==='"'||F==="'"))return['"'+Ze(T.substr(1,T.length-2))+'"'];var ue=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(T);if(ue)return Je(T.substr(0,ue.index)).concat(Je(ue[1])).concat(Je(T.substr(ue.index+ue[0].length)));var be=T.split(".");if(be.length===1)return['"'+Ze(T)+'"'];for(var se=[],de=0;deDt(W,F+"["+ue+"]")));if(T instanceof $e)return T;N(!1,"invalid option type in uniform "+F)}var fr={DynamicVariable:$e,define:Lt,isDynamic:ur,unbox:Dt,accessor:ht},or={next:typeof requestAnimationFrame=="function"?function(T){return requestAnimationFrame(T)}:function(T){return setTimeout(T,16)},cancel:typeof cancelAnimationFrame=="function"?function(T){return cancelAnimationFrame(T)}:clearTimeout},gr=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function hr(){var T={"":0},F=[""];return{id:function(W){var ue=T[W];return ue||(ue=T[W]=F.length,F.push(W),ue)},str:function(W){return F[W]}}}function hn(T,F,W){var ue=document.createElement("canvas");n(ue.style,{border:0,margin:0,padding:0,top:0,left:0}),T.appendChild(ue),T===document.body&&(ue.style.position="absolute",n(T.style,{margin:0,padding:0}));function be(){var Ce=window.innerWidth,Ne=window.innerHeight;if(T!==document.body){var Pe=T.getBoundingClientRect();Ce=Pe.right-Pe.left,Ne=Pe.bottom-Pe.top}ue.width=W*Ce,ue.height=W*Ne,n(ue.style,{width:Ce+"px",height:Ne+"px"})}var se;T!==document.body&&typeof ResizeObserver=="function"?(se=new ResizeObserver(function(){setTimeout(be)}),se.observe(T)):window.addEventListener("resize",be,!1);function de(){se?se.disconnect():window.removeEventListener("resize",be),T.removeChild(ue)}return be(),{canvas:ue,onDestroy:de}}function nr(T,F){function W(ue){try{return T.getContext(ue,F)}catch{return null}}return W("webgl")||W("experimental-webgl")||W("webgl-experimental")}function Fr(T){return typeof T.nodeName=="string"&&typeof T.appendChild=="function"&&typeof T.getBoundingClientRect=="function"}function oa(T){return typeof T.drawArrays=="function"||typeof T.drawElements=="function"}function Ur(T){return typeof T=="string"?T.split():(N(Array.isArray(T),"invalid extension array"),T)}function Mi(T){return typeof T=="string"?(N(typeof document<"u","not supported outside of DOM"),document.querySelector(T)):T}function xu(T){var F=T||{},W,ue,be,se,de={},Ce=[],Ne=[],Pe=typeof window>"u"?1:window.devicePixelRatio,Oe=!1,Be=function(Ge){Ge&&N.raise(Ge)},Xe=function(){};if(typeof F=="string"?(N(typeof document<"u","selector queries only supported in DOM enviroments"),W=document.querySelector(F),N(W,"invalid query string for element")):typeof F=="object"?Fr(F)?W=F:oa(F)?(se=F,be=se.canvas):(N.constructor(F),"gl"in F?se=F.gl:"canvas"in F?be=Mi(F.canvas):"container"in F&&(ue=Mi(F.container)),"attributes"in F&&(de=F.attributes,N.type(de,"object","invalid context attributes")),"extensions"in F&&(Ce=Ur(F.extensions)),"optionalExtensions"in F&&(Ne=Ur(F.optionalExtensions)),"onDone"in F&&(N.type(F.onDone,"function","invalid or missing onDone callback"),Be=F.onDone),"profile"in F&&(Oe=!!F.profile),"pixelRatio"in F&&(Pe=+F.pixelRatio,N(Pe>0,"invalid pixel ratio"))):N.raise("invalid arguments to regl"),W&&(W.nodeName.toLowerCase()==="canvas"?be=W:ue=W),!se){if(!be){N(typeof document<"u","must manually specify webgl context outside of DOM environments");var Te=hn(ue||document.body,Be,Pe);if(!Te)return null;be=Te.canvas,Xe=Te.onDestroy}de.premultipliedAlpha===void 0&&(de.premultipliedAlpha=!0),se=nr(be,de)}return se?{gl:se,canvas:be,container:ue,extensions:Ce,optionalExtensions:Ne,pixelRatio:Pe,profile:Oe,onDone:Be,onDestroy:Xe}:(Xe(),Be("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Eu(T,F){var W={};function ue(de){N.type(de,"string","extension name must be string");var Ce=de.toLowerCase(),Ne;try{Ne=W[Ce]=T.getExtension(Ce)}catch{}return!!Ne}for(var be=0;be65535)<<4,T>>>=F,W=(T>255)<<3,T>>>=W,F|=W,W=(T>15)<<2,T>>>=W,F|=W,W=(T>3)<<1,T>>>=W,F|=W,F|T>>1}function dr(){var T=rn(8,function(){return[]});function F(se){var de=ua(se),Ce=T[St(de)>>2];return Ce.length>0?Ce.pop():new ArrayBuffer(de)}function W(se){T[St(se.byteLength)>>2].push(se)}function ue(se,de){var Ce=null;switch(se){case ti:Ce=new Int8Array(F(de),0,de);break;case uo:Ce=new Uint8Array(F(de),0,de);break;case _u:Ce=new Int16Array(F(2*de),0,de);break;case Su:Ce=new Uint16Array(F(2*de),0,de);break;case Mu:Ce=new Int32Array(F(4*de),0,de);break;case sa:Ce=new Uint32Array(F(4*de),0,de);break;case Br:Ce=new Float32Array(F(4*de),0,de);break;default:return null}return Ce.length!==de?Ce.subarray(0,de):Ce}function be(se){W(se.buffer)}return{alloc:F,free:W,allocType:ue,freeType:be}}var gt=dr();gt.zero=dr();var Sr=3408,dn=3410,fo=3411,lo=3412,ri=3413,co=3414,ho=3415,vo=33901,RO=33902,FO=3379,BO=3386,GO=34921,zO=36347,jO=36348,UO=35661,$O=35660,XO=34930,WO=36349,VO=34076,YO=34024,qO=7936,HO=7937,ZO=7938,KO=35724,QO=34047,JO=36063,eL=34852,Cl=3553,p1=34067,tL=34069,rL=33984,Au=6408,dv=5126,g1=5121,vv=36160,nL=36053,aL=36064,iL=16384,oL=function(T,F){var W=1;F.ext_texture_filter_anisotropic&&(W=T.getParameter(QO));var ue=1,be=1;F.webgl_draw_buffers&&(ue=T.getParameter(eL),be=T.getParameter(JO));var se=!!F.oes_texture_float;if(se){var de=T.createTexture();T.bindTexture(Cl,de),T.texImage2D(Cl,0,Au,1,1,0,Au,dv,null);var Ce=T.createFramebuffer();if(T.bindFramebuffer(vv,Ce),T.framebufferTexture2D(vv,aL,Cl,de,0),T.bindTexture(Cl,null),T.checkFramebufferStatus(vv)!==nL)se=!1;else{T.viewport(0,0,1,1),T.clearColor(1,0,0,1),T.clear(iL);var Ne=gt.allocType(dv,4);T.readPixels(0,0,1,1,Au,dv,Ne),T.getError()?se=!1:(T.deleteFramebuffer(Ce),T.deleteTexture(de),se=Ne[0]===1),gt.freeType(Ne)}}var Pe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Oe=!0;if(!Pe){var Be=T.createTexture(),Xe=gt.allocType(g1,36);T.activeTexture(rL),T.bindTexture(p1,Be),T.texImage2D(tL,0,Au,3,3,0,Au,g1,Xe),gt.freeType(Xe),T.bindTexture(p1,null),T.deleteTexture(Be),Oe=!T.getError()}return{colorBits:[T.getParameter(dn),T.getParameter(fo),T.getParameter(lo),T.getParameter(ri)],depthBits:T.getParameter(co),stencilBits:T.getParameter(ho),subpixelBits:T.getParameter(Sr),extensions:Object.keys(F).filter(function(Te){return!!F[Te]}),maxAnisotropic:W,maxDrawbuffers:ue,maxColorAttachments:be,pointSizeDims:T.getParameter(vo),lineWidthDims:T.getParameter(RO),maxViewportDims:T.getParameter(BO),maxCombinedTextureUnits:T.getParameter(UO),maxCubeMapSize:T.getParameter(VO),maxRenderbufferSize:T.getParameter(YO),maxTextureUnits:T.getParameter(XO),maxTextureSize:T.getParameter(FO),maxAttributes:T.getParameter(GO),maxVertexUniforms:T.getParameter(zO),maxVertexTextureUnits:T.getParameter($O),maxVaryingVectors:T.getParameter(jO),maxFragmentUniforms:T.getParameter(WO),glsl:T.getParameter(KO),renderer:T.getParameter(HO),vendor:T.getParameter(qO),version:T.getParameter(ZO),readFloat:se,npotTextureCube:Oe}};function fa(T){return!!T&&typeof T=="object"&&Array.isArray(T.shape)&&Array.isArray(T.stride)&&typeof T.offset=="number"&&T.shape.length===T.stride.length&&(Array.isArray(T.data)||r(T.data))}var Pn=function(T){return Object.keys(T).map(function(F){return T[F]})},Tl={shape:lL,flatten:fL};function sL(T,F,W){for(var ue=0;ue0){var ze;if(Array.isArray(ve[0])){Ae=b1(ve);for(var Me=1,je=1;je0)if(typeof Me[0]=="number"){var We=gt.allocType(Ee.dtype,Me.length);x1(We,Me),Ae(We,ct),gt.freeType(We)}else if(Array.isArray(Me[0])||r(Me[0])){Mt=b1(Me);var Re=gv(Me,Mt,Ee.dtype);Ae(Re,ct),gt.freeType(Re)}else N.raise("invalid buffer data")}else if(fa(Me)){Mt=Me.shape;var xe=Me.stride,xt=0,It=0,nt=0,Rt=0;Mt.length===1?(xt=Mt[0],It=1,nt=xe[0],Rt=0):Mt.length===2?(xt=Mt[0],It=Mt[1],nt=xe[0],Rt=xe[1]):N.raise("invalid shape");var At=Array.isArray(Me.data)?Ee.dtype:kl(Me.data),Pt=gt.allocType(At,xt*It);E1(Pt,Me.data,xt,It,nt,Rt,Me.offset),Ae(Pt,ct),gt.freeType(Pt)}else N.raise("invalid data for buffer subdata");return et}return De||et(re),et._reglType="buffer",et._buffer=Ee,et.subdata=ze,W.profile&&(et.stats=Ee.stats),et.destroy=function(){Xe(Ee)},et}function Ge(){Pn(se).forEach(function(re){re.buffer=T.createBuffer(),T.bindBuffer(re.type,re.buffer),T.bufferData(re.type,re.persistentData||re.byteLength,re.usage)})}return W.profile&&(F.getTotalBufferSize=function(){var re=0;return Object.keys(se).forEach(function(ve){re+=se[ve].stats.size}),re}),{create:Te,createStream:Ne,destroyStream:Pe,clear:function(){Pn(se).forEach(Xe),Ce.forEach(Xe)},getBuffer:function(re){return re&&re._buffer instanceof de?re._buffer:null},restore:Ge,_initBuffer:Be}}var _L=0,SL=0,ML=1,AL=1,CL=4,TL=4,ns={points:_L,point:SL,lines:ML,line:AL,triangles:CL,triangle:TL,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},IL=0,kL=1,Cu=4,NL=5120,as=5121,_1=5122,is=5123,S1=5124,go=5125,bv=34963,OL=35040,LL=35044;function DL(T,F,W,ue){var be={},se=0,de={uint8:as,uint16:is};F.oes_element_index_uint&&(de.uint32=go);function Ce(Ge){this.id=se++,be[this.id]=this,this.buffer=Ge,this.primType=Cu,this.vertCount=0,this.type=0}Ce.prototype.bind=function(){this.buffer.bind()};var Ne=[];function Pe(Ge){var re=Ne.pop();return re||(re=new Ce(W.create(null,bv,!0,!1)._buffer)),Be(re,Ge,OL,-1,-1,0,0),re}function Oe(Ge){Ne.push(Ge)}function Be(Ge,re,ve,De,He,Ee,et){Ge.buffer.bind();var Ae;if(re){var ze=et;!et&&(!r(re)||fa(re)&&!r(re.data))&&(ze=F.oes_element_index_uint?go:is),W._initBuffer(Ge.buffer,re,ve,ze,3)}else T.bufferData(bv,Ee,ve),Ge.buffer.dtype=Ae||as,Ge.buffer.usage=ve,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ee;if(Ae=et,!et){switch(Ge.buffer.dtype){case as:case NL:Ae=as;break;case is:case _1:Ae=is;break;case go:case S1:Ae=go;break;default:N.raise("unsupported type for element array")}Ge.buffer.dtype=Ae}Ge.type=Ae,N(Ae!==go||!!F.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Me=He;Me<0&&(Me=Ge.buffer.byteLength,Ae===is?Me>>=1:Ae===go&&(Me>>=2)),Ge.vertCount=Me;var je=De;if(De<0){je=Cu;var ct=Ge.buffer.dimension;ct===1&&(je=IL),ct===2&&(je=kL),ct===3&&(je=Cu)}Ge.primType=je}function Xe(Ge){ue.elementsCount--,N(Ge.buffer!==null,"must not double destroy elements"),delete be[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function Te(Ge,re){var ve=W.create(null,bv,!0),De=new Ce(ve._buffer);ue.elementsCount++;function He(Ee){if(!Ee)ve(),De.primType=Cu,De.vertCount=0,De.type=as;else if(typeof Ee=="number")ve(Ee),De.primType=Cu,De.vertCount=Ee|0,De.type=as;else{var et=null,Ae=LL,ze=-1,Me=-1,je=0,ct=0;Array.isArray(Ee)||r(Ee)||fa(Ee)?et=Ee:(N.type(Ee,"object","invalid arguments for elements"),"data"in Ee&&(et=Ee.data,N(Array.isArray(et)||r(et)||fa(et),"invalid data for element buffer")),"usage"in Ee&&(N.parameter(Ee.usage,Il,"invalid element buffer usage"),Ae=Il[Ee.usage]),"primitive"in Ee&&(N.parameter(Ee.primitive,ns,"invalid element buffer primitive"),ze=ns[Ee.primitive]),"count"in Ee&&(N(typeof Ee.count=="number"&&Ee.count>=0,"invalid vertex count for elements"),Me=Ee.count|0),"type"in Ee&&(N.parameter(Ee.type,de,"invalid buffer type"),ct=de[Ee.type]),"length"in Ee?je=Ee.length|0:(je=Me,ct===is||ct===_1?je*=2:(ct===go||ct===S1)&&(je*=4))),Be(De,et,Ae,ze,Me,je,ct)}return He}return He(Ge),He._reglType="elements",He._elements=De,He.subdata=function(Ee,et){return ve.subdata(Ee,et),He},He.destroy=function(){Xe(De)},He}return{create:Te,createStream:Pe,destroyStream:Oe,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ce?Ge._elements:null},clear:function(){Pn(be).forEach(Xe)}}}var M1=new Float32Array(1),PL=new Uint32Array(M1.buffer),RL=5123;function A1(T){for(var F=gt.allocType(RL,T.length),W=0;W>>31<<15,se=(ue<<1>>>24)-127,de=ue>>13&1023;if(se<-24)F[W]=be;else if(se<-14){var Ce=-14-se;F[W]=be+(de+1024>>Ce)}else se>15?F[W]=be+31744:F[W]=be+(se+15<<10)+de}return F}function Mr(T){return Array.isArray(T)||r(T)}var C1=function(T){return!(T&T-1)&&!!T},FL=34467,Ca=3553,wv=34067,Nl=34069,yo=6408,xv=6406,Ol=6407,Tu=6409,Ll=6410,T1=32854,Ev=32855,I1=36194,BL=32819,GL=32820,zL=33635,jL=34042,_v=6402,Dl=34041,Sv=35904,Mv=35906,os=36193,Av=33776,Cv=33777,Tv=33778,Iv=33779,k1=35986,N1=35987,O1=34798,L1=35840,D1=35841,P1=35842,R1=35843,F1=36196,ss=5121,kv=5123,Nv=5125,Iu=5126,UL=10242,$L=10243,XL=10497,Ov=33071,WL=33648,VL=10240,YL=10241,Lv=9728,qL=9729,Dv=9984,B1=9985,G1=9986,Pv=9987,HL=33170,Pl=4352,ZL=4353,KL=4354,QL=34046,JL=3317,eD=37440,tD=37441,rD=37443,z1=37444,ku=33984,nD=[Dv,G1,B1,Pv],Rl=[0,Tu,Ll,Ol,yo],Yn={};Yn[Tu]=Yn[xv]=Yn[_v]=1,Yn[Dl]=Yn[Ll]=2,Yn[Ol]=Yn[Sv]=3,Yn[yo]=Yn[Mv]=4;function us(T){return"[object "+T+"]"}var j1=us("HTMLCanvasElement"),U1=us("OffscreenCanvas"),$1=us("CanvasRenderingContext2D"),X1=us("ImageBitmap"),W1=us("HTMLImageElement"),V1=us("HTMLVideoElement"),aD=Object.keys(pv).concat([j1,U1,$1,X1,W1,V1]),fs=[];fs[ss]=1,fs[Iu]=4,fs[os]=2,fs[kv]=2,fs[Nv]=4;var nn=[];nn[T1]=2,nn[Ev]=2,nn[I1]=2,nn[Dl]=4,nn[Av]=.5,nn[Cv]=.5,nn[Tv]=1,nn[Iv]=1,nn[k1]=.5,nn[N1]=1,nn[O1]=1,nn[L1]=.5,nn[D1]=.25,nn[P1]=.5,nn[R1]=.25,nn[F1]=.5;function Y1(T){return Array.isArray(T)&&(T.length===0||typeof T[0]=="number")}function q1(T){if(!Array.isArray(T))return!1;var F=T.length;return!(F===0||!Mr(T[0]))}function mo(T){return Object.prototype.toString.call(T)}function H1(T){return mo(T)===j1}function Z1(T){return mo(T)===U1}function iD(T){return mo(T)===$1}function oD(T){return mo(T)===X1}function sD(T){return mo(T)===W1}function uD(T){return mo(T)===V1}function Rv(T){if(!T)return!1;var F=mo(T);return aD.indexOf(F)>=0?!0:Y1(T)||q1(T)||fa(T)}function K1(T){return pv[Object.prototype.toString.call(T)]|0}function fD(T,F){var W=F.length;switch(T.type){case ss:case kv:case Nv:case Iu:var ue=gt.allocType(T.type,W);ue.set(F),T.data=ue;break;case os:T.data=A1(F);break;default:N.raise("unsupported texture type, must specify a typed array")}}function Q1(T,F){return gt.allocType(T.type===os?Iu:T.type,F)}function J1(T,F){T.type===os?(T.data=A1(F),gt.freeType(F)):T.data=F}function lD(T,F,W,ue,be,se){for(var de=T.width,Ce=T.height,Ne=T.channels,Pe=de*Ce*Ne,Oe=Q1(T,Pe),Be=0,Xe=0;Xe=1;)Ce+=de*Ne*Ne,Ne/=2;return Ce}else return de*W*ue}function cD(T,F,W,ue,be,se,de){var Ce={"don't care":Pl,"dont care":Pl,nice:KL,fast:ZL},Ne={repeat:XL,clamp:Ov,mirror:WL},Pe={nearest:Lv,linear:qL},Oe=n({mipmap:Pv,"nearest mipmap nearest":Dv,"linear mipmap nearest":B1,"nearest mipmap linear":G1,"linear mipmap linear":Pv},Pe),Be={none:0,browser:z1},Xe={uint8:ss,rgba4:BL,rgb565:zL,"rgb5 a1":GL},Te={alpha:xv,luminance:Tu,"luminance alpha":Ll,rgb:Ol,rgba:yo,rgba4:T1,"rgb5 a1":Ev,rgb565:I1},Ge={};F.ext_srgb&&(Te.srgb=Sv,Te.srgba=Mv),F.oes_texture_float&&(Xe.float32=Xe.float=Iu),F.oes_texture_half_float&&(Xe.float16=Xe["half float"]=os),F.webgl_depth_texture&&(n(Te,{depth:_v,"depth stencil":Dl}),n(Xe,{uint16:kv,uint32:Nv,"depth stencil":jL})),F.webgl_compressed_texture_s3tc&&n(Ge,{"rgb s3tc dxt1":Av,"rgba s3tc dxt1":Cv,"rgba s3tc dxt3":Tv,"rgba s3tc dxt5":Iv}),F.webgl_compressed_texture_atc&&n(Ge,{"rgb atc":k1,"rgba atc explicit alpha":N1,"rgba atc interpolated alpha":O1}),F.webgl_compressed_texture_pvrtc&&n(Ge,{"rgb pvrtc 4bppv1":L1,"rgb pvrtc 2bppv1":D1,"rgba pvrtc 4bppv1":P1,"rgba pvrtc 2bppv1":R1}),F.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=F1);var re=Array.prototype.slice.call(T.getParameter(FL));Object.keys(Ge).forEach(function($){var fe=Ge[$];re.indexOf(fe)>=0&&(Te[$]=fe)});var ve=Object.keys(Te);W.textureFormats=ve;var De=[];Object.keys(Te).forEach(function($){var fe=Te[$];De[fe]=$});var He=[];Object.keys(Xe).forEach(function($){var fe=Xe[$];He[fe]=$});var Ee=[];Object.keys(Pe).forEach(function($){var fe=Pe[$];Ee[fe]=$});var et=[];Object.keys(Oe).forEach(function($){var fe=Oe[$];et[fe]=$});var Ae=[];Object.keys(Ne).forEach(function($){var fe=Ne[$];Ae[fe]=$});var ze=ve.reduce(function($,fe){var oe=Te[fe];return oe===Tu||oe===xv||oe===Tu||oe===Ll||oe===_v||oe===Dl||F.ext_srgb&&(oe===Sv||oe===Mv)?$[oe]=oe:oe===Ev||fe.indexOf("rgba")>=0?$[oe]=yo:$[oe]=Ol,$},{});function Me(){this.internalformat=yo,this.format=yo,this.type=ss,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=z1,this.width=0,this.height=0,this.channels=0}function je($,fe){$.internalformat=fe.internalformat,$.format=fe.format,$.type=fe.type,$.compressed=fe.compressed,$.premultiplyAlpha=fe.premultiplyAlpha,$.flipY=fe.flipY,$.unpackAlignment=fe.unpackAlignment,$.colorSpace=fe.colorSpace,$.width=fe.width,$.height=fe.height,$.channels=fe.channels}function ct($,fe){if(!(typeof fe!="object"||!fe)){if("premultiplyAlpha"in fe&&(N.type(fe.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),$.premultiplyAlpha=fe.premultiplyAlpha),"flipY"in fe&&(N.type(fe.flipY,"boolean","invalid texture flip"),$.flipY=fe.flipY),"alignment"in fe&&(N.oneOf(fe.alignment,[1,2,4,8],"invalid texture unpack alignment"),$.unpackAlignment=fe.alignment),"colorSpace"in fe&&(N.parameter(fe.colorSpace,Be,"invalid colorSpace"),$.colorSpace=Be[fe.colorSpace]),"type"in fe){var oe=fe.type;N(F.oes_texture_float||!(oe==="float"||oe==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),N(F.oes_texture_half_float||!(oe==="half float"||oe==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),N(F.webgl_depth_texture||!(oe==="uint16"||oe==="uint32"||oe==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(oe,Xe,"invalid texture type"),$.type=Xe[oe]}var rt=$.width,Ft=$.height,j=$.channels,D=!1;"shape"in fe?(N(Array.isArray(fe.shape)&&fe.shape.length>=2,"shape must be an array"),rt=fe.shape[0],Ft=fe.shape[1],fe.shape.length===3&&(j=fe.shape[2],N(j>0&&j<=4,"invalid number of channels"),D=!0),N(rt>=0&&rt<=W.maxTextureSize,"invalid width"),N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")):("radius"in fe&&(rt=Ft=fe.radius,N(rt>=0&&rt<=W.maxTextureSize,"invalid radius")),"width"in fe&&(rt=fe.width,N(rt>=0&&rt<=W.maxTextureSize,"invalid width")),"height"in fe&&(Ft=fe.height,N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")),"channels"in fe&&(j=fe.channels,N(j>0&&j<=4,"invalid number of channels"),D=!0)),$.width=rt|0,$.height=Ft|0,$.channels=j|0;var q=!1;if("format"in fe){var ee=fe.format;N(F.webgl_depth_texture||!(ee==="depth"||ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(ee,Te,"invalid texture format");var ne=$.internalformat=Te[ee];$.format=ze[ne],ee in Xe&&("type"in fe||($.type=Xe[ee])),ee in Ge&&($.compressed=!0),q=!0}!D&&q?$.channels=Yn[$.format]:D&&!q?$.channels!==Rl[$.format]&&($.format=$.internalformat=Rl[$.channels]):q&&D&&N($.channels===Yn[$.format],"number of channels inconsistent with specified format")}}function Mt($){T.pixelStorei(eD,$.flipY),T.pixelStorei(tD,$.premultiplyAlpha),T.pixelStorei(rD,$.colorSpace),T.pixelStorei(JL,$.unpackAlignment)}function We(){Me.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Re($,fe){var oe=null;if(Rv(fe)?oe=fe:fe&&(N.type(fe,"object","invalid pixel data type"),ct($,fe),"x"in fe&&($.xOffset=fe.x|0),"y"in fe&&($.yOffset=fe.y|0),Rv(fe.data)&&(oe=fe.data)),N(!$.compressed||oe instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),fe.copy){N(!oe,"can not specify copy and data field for the same texture");var rt=be.viewportWidth,Ft=be.viewportHeight;$.width=$.width||rt-$.xOffset,$.height=$.height||Ft-$.yOffset,$.needsCopy=!0,N($.xOffset>=0&&$.xOffset=0&&$.yOffset0&&$.width<=rt&&$.height>0&&$.height<=Ft,"copy texture read out of bounds")}else if(!oe)$.width=$.width||1,$.height=$.height||1,$.channels=$.channels||4;else if(r(oe))$.channels=$.channels||4,$.data=oe,!("type"in fe)&&$.type===ss&&($.type=K1(oe));else if(Y1(oe))$.channels=$.channels||4,fD($,oe),$.alignment=1,$.needsFree=!0;else if(fa(oe)){var j=oe.data;!Array.isArray(j)&&$.type===ss&&($.type=K1(j));var D=oe.shape,q=oe.stride,ee,ne,K,H,Q,U;D.length===3?(K=D[2],U=q[2]):(N(D.length===2,"invalid ndarray pixel data, must be 2 or 3D"),K=1,U=1),ee=D[0],ne=D[1],H=q[0],Q=q[1],$.alignment=1,$.width=ee,$.height=ne,$.channels=K,$.format=$.internalformat=Rl[K],$.needsFree=!0,lD($,j,H,Q,U,oe.offset)}else if(H1(oe)||Z1(oe)||iD(oe))H1(oe)||Z1(oe)?$.element=oe:$.element=oe.canvas,$.width=$.element.width,$.height=$.element.height,$.channels=4;else if(oD(oe))$.element=oe,$.width=oe.width,$.height=oe.height,$.channels=4;else if(sD(oe))$.element=oe,$.width=oe.naturalWidth,$.height=oe.naturalHeight,$.channels=4;else if(uD(oe))$.element=oe,$.width=oe.videoWidth,$.height=oe.videoHeight,$.channels=4;else if(q1(oe)){var Y=$.width||oe[0].length,G=$.height||oe.length,J=$.channels;Mr(oe[0][0])?J=J||oe[0][0].length:J=J||1;for(var ae=Tl.shape(oe),ye=1,we=0;we=0,"oes_texture_float extension not enabled"):$.type===os&&N(W.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xe($,fe,oe){var rt=$.element,Ft=$.data,j=$.internalformat,D=$.format,q=$.type,ee=$.width,ne=$.height;Mt($),rt?T.texImage2D(fe,oe,D,D,q,rt):$.compressed?T.compressedTexImage2D(fe,oe,j,ee,ne,0,Ft):$.needsCopy?(ue(),T.copyTexImage2D(fe,oe,D,$.xOffset,$.yOffset,ee,ne,0)):T.texImage2D(fe,oe,D,ee,ne,0,D,q,Ft||null)}function xt($,fe,oe,rt,Ft){var j=$.element,D=$.data,q=$.internalformat,ee=$.format,ne=$.type,K=$.width,H=$.height;Mt($),j?T.texSubImage2D(fe,Ft,oe,rt,ee,ne,j):$.compressed?T.compressedTexSubImage2D(fe,Ft,oe,rt,q,K,H,D):$.needsCopy?(ue(),T.copyTexSubImage2D(fe,Ft,oe,rt,$.xOffset,$.yOffset,K,H)):T.texSubImage2D(fe,Ft,oe,rt,K,H,ee,ne,D)}var It=[];function nt(){return It.pop()||new We}function Rt($){$.needsFree&>.freeType($.data),We.call($),It.push($)}function At(){Me.call(this),this.genMipmaps=!1,this.mipmapHint=Pl,this.mipmask=0,this.images=Array(16)}function Pt($,fe,oe){var rt=$.images[0]=nt();$.mipmask=1,rt.width=$.width=fe,rt.height=$.height=oe,rt.channels=$.channels=4}function Qt($,fe){var oe=null;if(Rv(fe))oe=$.images[0]=nt(),je(oe,$),Re(oe,fe),$.mipmask=1;else if(ct($,fe),Array.isArray(fe.mipmap))for(var rt=fe.mipmap,Ft=0;Ft>=Ft,oe.height>>=Ft,Re(oe,rt[Ft]),$.mipmask|=1<=0&&!("faces"in fe)&&($.genMipmaps=!0)}if("mag"in fe){var rt=fe.mag;N.parameter(rt,Pe),$.magFilter=Pe[rt]}var Ft=$.wrapS,j=$.wrapT;if("wrap"in fe){var D=fe.wrap;typeof D=="string"?(N.parameter(D,Ne),Ft=j=Ne[D]):Array.isArray(D)&&(N.parameter(D[0],Ne),N.parameter(D[1],Ne),Ft=Ne[D[0]],j=Ne[D[1]])}else{if("wrapS"in fe){var q=fe.wrapS;N.parameter(q,Ne),Ft=Ne[q]}if("wrapT"in fe){var ee=fe.wrapT;N.parameter(ee,Ne),j=Ne[ee]}}if($.wrapS=Ft,$.wrapT=j,"anisotropic"in fe){var ne=fe.anisotropic;N(typeof ne=="number"&&ne>=1&&ne<=W.maxAnisotropic,"aniso samples must be between 1 and "),$.anisotropic=fe.anisotropic}if("mipmap"in fe){var K=!1;switch(typeof fe.mipmap){case"string":N.parameter(fe.mipmap,Ce,"invalid mipmap hint"),$.mipmapHint=Ce[fe.mipmap],$.genMipmaps=!0,K=!0;break;case"boolean":K=$.genMipmaps=fe.mipmap;break;case"object":N(Array.isArray(fe.mipmap),"invalid mipmap type"),$.genMipmaps=!1,K=!0;break;default:N.raise("invalid mipmap type")}K&&!("min"in fe)&&($.minFilter=Dv)}}function zr($,fe){T.texParameteri(fe,YL,$.minFilter),T.texParameteri(fe,VL,$.magFilter),T.texParameteri(fe,UL,$.wrapS),T.texParameteri(fe,$L,$.wrapT),F.ext_texture_filter_anisotropic&&T.texParameteri(fe,QL,$.anisotropic),$.genMipmaps&&(T.hint(HL,$.mipmapHint),T.generateMipmap(fe))}var jr=0,Yr={},an=W.maxTextureUnits,Ar=Array(an).map(function(){return null});function kt($){Me.call(this),this.mipmask=0,this.internalformat=yo,this.id=jr++,this.refCount=1,this.target=$,this.texture=T.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new pr,de.profile&&(this.stats={size:0})}function on($){T.activeTexture(ku),T.bindTexture($.target,$.texture)}function ir(){var $=Ar[0];$?T.bindTexture($.target,$.texture):T.bindTexture(Ca,null)}function vt($){var fe=$.texture;N(fe,"must not double destroy texture");var oe=$.unit,rt=$.target;oe>=0&&(T.activeTexture(ku+oe),T.bindTexture(rt,null),Ar[oe]=null),T.deleteTexture(fe),$.texture=null,$.params=null,$.pixels=null,$.refCount=0,delete Yr[$.id],se.textureCount--}n(kt.prototype,{bind:function(){var $=this;$.bindCount+=1;var fe=$.unit;if(fe<0){for(var oe=0;oe0)continue;rt.unit=-1}Ar[oe]=$,fe=oe;break}fe>=an&&N.raise("insufficient number of texture units"),de.profile&&se.maxTextureUnits>Q)-K,U.height=U.height||(oe.height>>Q)-H,N(oe.type===U.type&&oe.format===U.format&&oe.internalformat===U.internalformat,"incompatible format for texture.subimage"),N(K>=0&&H>=0&&K+U.width<=oe.width&&H+U.height<=oe.height,"texture.subimage write out of bounds"),N(oe.mipmask&1<>K;++K){var H=ee>>K,Q=ne>>K;if(!H||!Q)break;T.texImage2D(Ca,K,oe.format,H,Q,0,oe.format,oe.type,null)}return ir(),de.profile&&(oe.stats.size=Fl(oe.internalformat,oe.type,ee,ne,!1,!1)),rt}return rt($,fe),rt.subimage=Ft,rt.resize=j,rt._reglType="texture2d",rt._texture=oe,de.profile&&(rt.stats=oe.stats),rt.destroy=function(){oe.decRef()},rt}function Vt($,fe,oe,rt,Ft,j){var D=new kt(wv);Yr[D.id]=D,se.cubeCount++;var q=new Array(6);function ee(H,Q,U,Y,G,J){var ae,ye=D.texInfo;for(pr.call(ye),ae=0;ae<6;++ae)q[ae]=zt();if(typeof H=="number"||!H){var we=H|0||1;for(ae=0;ae<6;++ae)Pt(q[ae],we,we)}else if(typeof H=="object")if(Q)Qt(q[0],H),Qt(q[1],Q),Qt(q[2],U),Qt(q[3],Y),Qt(q[4],G),Qt(q[5],J);else if(Or(ye,H),ct(D,H),"faces"in H){var pe=H.faces;for(N(Array.isArray(pe)&&pe.length===6,"cube faces must be a length 6 array"),ae=0;ae<6;++ae)N(typeof pe[ae]=="object"&&!!pe[ae],"invalid input for cube map face"),je(q[ae],D),Qt(q[ae],pe[ae])}else for(ae=0;ae<6;++ae)Qt(q[ae],H);else N.raise("invalid arguments to cube map");for(je(D,q[0]),W.npotTextureCube||N(C1(D.width)&&C1(D.height),"your browser does not support non power or two texture dimensions"),ye.genMipmaps?D.mipmask=(q[0].width<<1)-1:D.mipmask=q[0].mipmask,N.textureCube(D,ye,q,W),D.internalformat=q[0].internalformat,ee.width=q[0].width,ee.height=q[0].height,on(D),ae=0;ae<6;++ae)Nr(q[ae],Nl+ae);for(zr(ye,wv),ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,ye.genMipmaps,!0)),ee.format=De[D.internalformat],ee.type=He[D.type],ee.mag=Ee[ye.magFilter],ee.min=et[ye.minFilter],ee.wrapS=Ae[ye.wrapS],ee.wrapT=Ae[ye.wrapT],ae=0;ae<6;++ae)Gr(q[ae]);return ee}function ne(H,Q,U,Y,G){N(!!Q,"must specify image data"),N(typeof H=="number"&&H===(H|0)&&H>=0&&H<6,"invalid face");var J=U|0,ae=Y|0,ye=G|0,we=nt();return je(we,D),we.width=0,we.height=0,Re(we,Q),we.width=we.width||(D.width>>ye)-J,we.height=we.height||(D.height>>ye)-ae,N(D.type===we.type&&D.format===we.format&&D.internalformat===we.internalformat,"incompatible format for texture.subimage"),N(J>=0&&ae>=0&&J+we.width<=D.width&&ae+we.height<=D.height,"texture.subimage write out of bounds"),N(D.mipmask&1<>Y;++Y)T.texImage2D(Nl+U,Y,D.format,Q>>Y,Q>>Y,0,D.format,D.type,null);return ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,!1,!0)),ee}}return ee($,fe,oe,rt,Ft,j),ee.subimage=ne,ee.resize=K,ee._reglType="textureCube",ee._texture=D,de.profile&&(ee.stats=D.stats),ee.destroy=function(){D.decRef()},ee}function Cr(){for(var $=0;$>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);else for(var Ft=0;Ft<6;++Ft)T.texImage2D(Nl+Ft,rt,oe.internalformat,oe.width>>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);zr(oe.texInfo,oe.target)})}function Mo(){for(var $=0;$=2,"invalid renderbuffer shape"),et=je[0]|0,Ae=je[1]|0}else"radius"in Me&&(et=Ae=Me.radius|0),"width"in Me&&(et=Me.width|0),"height"in Me&&(Ae=Me.height|0);"format"in Me&&(N.parameter(Me.format,se,"invalid renderbuffer format"),ze=se[Me.format])}else typeof He=="number"?(et=He|0,typeof Ee=="number"?Ae=Ee|0:Ae=et):He?N.raise("invalid arguments to renderbuffer constructor"):et=Ae=1;if(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),!(et===re.width&&Ae===re.height&&ze===re.format))return ve.width=re.width=et,ve.height=re.height=Ae,re.format=ze,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,ze,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height)),ve.format=de[re.format],ve}function De(He,Ee){var et=He|0,Ae=Ee|0||et;return et===re.width&&Ae===re.height||(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),ve.width=re.width=et,ve.height=re.height=Ae,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,re.format,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height))),ve}return ve(Te,Ge),ve.resize=De,ve._reglType="renderbuffer",ve._renderbuffer=re,be.profile&&(ve.stats=re.stats),ve.destroy=function(){re.decRef()},ve}be.profile&&(ue.getTotalRenderbufferSize=function(){var Te=0;return Object.keys(Ne).forEach(function(Ge){Te+=Ne[Ge].stats.size}),Te});function Xe(){Pn(Ne).forEach(function(Te){Te.renderbuffer=T.createRenderbuffer(),T.bindRenderbuffer(Ci,Te.renderbuffer),T.renderbufferStorage(Ci,Te.format,Te.width,Te.height)}),T.bindRenderbuffer(Ci,null)}return{create:Be,clear:function(){Pn(Ne).forEach(Oe)},restore:Xe}},ni=36160,Fv=36161,bo=3553,Gl=34069,lb=36064,cb=36096,hb=36128,db=33306,vb=36053,dD=36054,vD=36055,pD=36057,gD=36061,yD=36193,mD=5121,bD=5126,pb=6407,gb=6408,wD=6402,xD=[pb,gb],Bv=[];Bv[gb]=4,Bv[pb]=3;var zl=[];zl[mD]=1,zl[bD]=4,zl[yD]=2;var ED=32854,_D=32855,SD=36194,MD=33189,AD=36168,yb=34041,CD=35907,TD=34836,ID=34842,kD=34843,ND=[ED,_D,SD,CD,ID,kD,TD],ls={};ls[vb]="complete",ls[dD]="incomplete attachment",ls[pD]="incomplete dimensions",ls[vD]="incomplete, missing attachment",ls[gD]="unsupported";function OD(T,F,W,ue,be,se){var de={cur:null,next:null,dirty:!1,setFBO:null},Ce=["rgba"],Ne=["rgba4","rgb565","rgb5 a1"];F.ext_srgb&&Ne.push("srgba"),F.ext_color_buffer_half_float&&Ne.push("rgba16f","rgb16f"),F.webgl_color_buffer_float&&Ne.push("rgba32f");var Pe=["uint8"];F.oes_texture_half_float&&Pe.push("half float","float16"),F.oes_texture_float&&Pe.push("float","float32");function Oe(We,Re,xe){this.target=We,this.texture=Re,this.renderbuffer=xe;var xt=0,It=0;Re?(xt=Re.width,It=Re.height):xe&&(xt=xe.width,It=xe.height),this.width=xt,this.height=It}function Be(We){We&&(We.texture&&We.texture._texture.decRef(),We.renderbuffer&&We.renderbuffer._renderbuffer.decRef())}function Xe(We,Re,xe){if(We)if(We.texture){var xt=We.texture._texture,It=Math.max(1,xt.width),nt=Math.max(1,xt.height);N(It===Re&&nt===xe,"inconsistent width/height for supplied texture"),xt.refCount+=1}else{var Rt=We.renderbuffer._renderbuffer;N(Rt.width===Re&&Rt.height===xe,"inconsistent width/height for renderbuffer"),Rt.refCount+=1}}function Te(We,Re){Re&&(Re.texture?T.framebufferTexture2D(ni,We,Re.target,Re.texture._texture.texture,0):T.framebufferRenderbuffer(ni,We,Fv,Re.renderbuffer._renderbuffer.renderbuffer))}function Ge(We){var Re=bo,xe=null,xt=null,It=We;typeof We=="object"&&(It=We.data,"target"in We&&(Re=We.target|0)),N.type(It,"function","invalid attachment data");var nt=It._reglType;return nt==="texture2d"?(xe=It,N(Re===bo)):nt==="textureCube"?(xe=It,N(Re>=Gl&&Re=2,"invalid shape for framebuffer"),Pt=on[0],Qt=on[1]}else"radius"in kt&&(Pt=Qt=kt.radius),"width"in kt&&(Pt=kt.width),"height"in kt&&(Qt=kt.height);("color"in kt||"colors"in kt)&&(zt=kt.color||kt.colors,Array.isArray(zt)&&N(zt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),zt||("colorCount"in kt&&(zr=kt.colorCount|0,N(zr>0,"invalid color buffer count")),"colorTexture"in kt&&(Gr=!!kt.colorTexture,pr="rgba4"),"colorType"in kt&&(Or=kt.colorType,Gr?(N(F.oes_texture_float||!(Or==="float"||Or==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),N(F.oes_texture_half_float||!(Or==="half float"||Or==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Or==="half float"||Or==="float16"?(N(F.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),pr="rgba16f"):(Or==="float"||Or==="float32")&&(N(F.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),pr="rgba32f"),N.oneOf(Or,Pe,"invalid color type")),"colorFormat"in kt&&(pr=kt.colorFormat,Ce.indexOf(pr)>=0?Gr=!0:Ne.indexOf(pr)>=0?Gr=!1:Gr?N.oneOf(kt.colorFormat,Ce,"invalid color format for texture"):N.oneOf(kt.colorFormat,Ne,"invalid color format for renderbuffer"))),("depthTexture"in kt||"depthStencilTexture"in kt)&&(Ar=!!(kt.depthTexture||kt.depthStencilTexture),N(!Ar||F.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in kt&&(typeof kt.depth=="boolean"?Nr=kt.depth:(jr=kt.depth,$r=!1)),"stencil"in kt&&(typeof kt.stencil=="boolean"?$r=kt.stencil:(Yr=kt.stencil,Nr=!1)),"depthStencil"in kt&&(typeof kt.depthStencil=="boolean"?Nr=$r=kt.depthStencil:(an=kt.depthStencil,Nr=!1,$r=!1))}var ir=null,vt=null,Gt=null,Vt=null;if(Array.isArray(zt))ir=zt.map(Ge);else if(zt)ir=[Ge(zt)];else for(ir=new Array(zr),At=0;At=0||ir[At].renderbuffer&&ND.indexOf(ir[At].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+At+" is invalid"),ir[At]&&ir[At].texture){var Ia=Bv[ir[At].texture._texture.format]*zl[ir[At].texture._texture.type];Cr===null?Cr=Ia:N(Cr===Ia,"all color attachments much have the same number of bits per pixel.")}return Xe(vt,Pt,Qt),N(!vt||vt.texture&&vt.texture._texture.format===wD||vt.renderbuffer&&vt.renderbuffer._renderbuffer.format===MD,"invalid depth attachment for framebuffer object"),Xe(Gt,Pt,Qt),N(!Gt||Gt.renderbuffer&&Gt.renderbuffer._renderbuffer.format===AD,"invalid stencil attachment for framebuffer object"),Xe(Vt,Pt,Qt),N(!Vt||Vt.texture&&Vt.texture._texture.format===yb||Vt.renderbuffer&&Vt.renderbuffer._renderbuffer.format===yb,"invalid depth-stencil attachment for framebuffer object"),Ae(xe),xe.width=Pt,xe.height=Qt,xe.colorAttachments=ir,xe.depthAttachment=vt,xe.stencilAttachment=Gt,xe.depthStencilAttachment=Vt,xt.color=ir.map(ve),xt.depth=ve(vt),xt.stencil=ve(Gt),xt.depthStencil=ve(Vt),xt.width=xe.width,xt.height=xe.height,Me(xe),xt}function It(nt,Rt){N(de.next!==xe,"can not resize a framebuffer which is currently in use");var At=Math.max(nt|0,1),Pt=Math.max(Rt|0||At,1);if(At===xe.width&&Pt===xe.height)return xt;for(var Qt=xe.colorAttachments,Nr=0;Nr=2,"invalid shape for framebuffer"),N(Gr[0]===Gr[1],"cube framebuffer must be square"),At=Gr[0]}else"radius"in zt&&(At=zt.radius|0),"width"in zt?(At=zt.width|0,"height"in zt&&N(zt.height===At,"must be square")):"height"in zt&&(At=zt.height|0);("color"in zt||"colors"in zt)&&(Pt=zt.color||zt.colors,Array.isArray(Pt)&&N(Pt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),Pt||("colorCount"in zt&&($r=zt.colorCount|0,N($r>0,"invalid color buffer count")),"colorType"in zt&&(N.oneOf(zt.colorType,Pe,"invalid color type"),Nr=zt.colorType),"colorFormat"in zt&&(Qt=zt.colorFormat,N.oneOf(zt.colorFormat,Ce,"invalid color format for texture"))),"depth"in zt&&(Rt.depth=zt.depth),"stencil"in zt&&(Rt.stencil=zt.stencil),"depthStencil"in zt&&(Rt.depthStencil=zt.depthStencil)}var pr;if(Pt)if(Array.isArray(Pt))for(pr=[],nt=0;nt0&&(Rt.depth=Re[0].depth,Rt.stencil=Re[0].stencil,Rt.depthStencil=Re[0].depthStencil),Re[nt]?Re[nt](Rt):Re[nt]=je(Rt)}return n(xe,{width:At,height:At,color:pr})}function xt(It){var nt,Rt=It|0;if(N(Rt>0&&Rt<=W.maxCubeMapSize,"invalid radius for cube fbo"),Rt===xe.width)return xe;var At=xe.color;for(nt=0;nt0,"must specify at least one attribute");var ct={},Mt=ze.attributes;Mt.length=je.length;for(var We=0;We=xt.byteLength?It.subdata(xt):(It.destroy(),ze.buffers[We]=null)),ze.buffers[We]||(It=ze.buffers[We]=be.create(Re,mb,!1,!0)),xe.buffer=be.getBuffer(It),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1,ct[We]=1}else be.getBuffer(Re)?(xe.buffer=be.getBuffer(Re),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1):be.getBuffer(Re.buffer)?(xe.buffer=be.getBuffer(Re.buffer),xe.size=(+Re.size||xe.buffer.dimension)|0,xe.normalized=!!Re.normalized||!1,"type"in Re?(N.parameter(Re.type,po,"invalid buffer type"),xe.type=po[Re.type]):xe.type=xe.buffer.dtype,xe.offset=(Re.offset||0)|0,xe.stride=(Re.stride||0)|0,xe.divisor=(Re.divisor||0)|0,xe.state=1,N(xe.size>=1&&xe.size<=4,"size must be between 1 and 4"),N(xe.offset>=0,"invalid offset"),N(xe.stride>=0&&xe.stride<=255,"stride must be between 0 and 255"),N(xe.divisor>=0,"divisor must be positive"),N(!xe.divisor||!!F.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Re?(N(We>0,"first attribute must not be a constant"),xe.x=+Re.x||0,xe.y=+Re.y||0,xe.z=+Re.z||0,xe.w=+Re.w||0,xe.state=2):N(!1,"invalid attribute spec for location "+We)}for(var nt=0;nt1)for(var Mt=0;Mtre&&(re=ve.stats.uniformsCount)}),re},W.getMaxAttributesCount=function(){var re=0;return Oe.forEach(function(ve){ve.stats.attributesCount>re&&(re=ve.stats.attributesCount)}),re});function Ge(){be={},se={};for(var re=0;re=0,"missing vertex shader",De),N.command(ve>=0,"missing fragment shader",De);var Ee=Pe[ve];Ee||(Ee=Pe[ve]={});var et=Ee[re];if(et&&(et.refCount++,!He))return et;var Ae=new Xe(ve,re);return W.shaderCount++,Te(Ae,De,He),et||(Ee[re]=Ae),Oe.push(Ae),n(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){T.deleteProgram(Ae.program);var ze=Oe.indexOf(Ae);Oe.splice(ze,1),W.shaderCount--}Ee[Ae.vertId].refCount<=0&&(T.deleteShader(se[Ae.vertId]),delete se[Ae.vertId],delete Pe[Ae.fragId][Ae.vertId]),Object.keys(Pe[Ae.fragId]).length||(T.deleteShader(be[Ae.fragId]),delete be[Ae.fragId],delete Pe[Ae.fragId])}})},restore:Ge,shader:Ne,frag:-1,vert:-1}}var GD=6408,Nu=5121,zD=3333,jl=5126;function jD(T,F,W,ue,be,se,de){function Ce(Oe){var Be;F.next===null?(N(be.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Be=Nu):(N(F.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Be=F.next.colorAttachments[0].texture._texture.type,se.oes_texture_float?(N(Be===Nu||Be===jl,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Be===jl&&N(de.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):N(Be===Nu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Xe=0,Te=0,Ge=ue.framebufferWidth,re=ue.framebufferHeight,ve=null;r(Oe)?ve=Oe:Oe&&(N.type(Oe,"object","invalid arguments to regl.read()"),Xe=Oe.x|0,Te=Oe.y|0,N(Xe>=0&&Xe=0&&Te0&&Ge+Xe<=ue.framebufferWidth,"invalid width for read pixels"),N(re>0&&re+Te<=ue.framebufferHeight,"invalid height for read pixels"),W();var De=Ge*re*4;return ve||(Be===Nu?ve=new Uint8Array(De):Be===jl&&(ve=ve||new Float32Array(De))),N.isTypedArray(ve,"data buffer for regl.read() must be a typedarray"),N(ve.byteLength>=De,"data buffer for regl.read() too small"),T.pixelStorei(zD,4),T.readPixels(Xe,Te,Ge,re,GD,Be,ve),ve}function Ne(Oe){var Be;return F.setFBO({framebuffer:Oe.framebuffer},function(){Be=Ce(Oe)}),Be}function Pe(Oe){return!Oe||!("framebuffer"in Oe)?Ce(Oe):Ne(Oe)}return Pe}function cs(T){return Array.prototype.slice.call(T)}function hs(T){return cs(T).join("")}function UD(){var T=0,F=[],W=[];function ue(Be){for(var Xe=0;Xe0&&(Be.push(re,"="),Be.push.apply(Be,cs(arguments)),Be.push(";")),re}return n(Xe,{def:Ge,toString:function(){return hs([Te.length>0?"var "+Te.join(",")+";":"",hs(Be)])}})}function se(){var Be=be(),Xe=be(),Te=Be.toString,Ge=Xe.toString;function re(ve,De){Xe(ve,De,"=",Be.def(ve,De),";")}return n(function(){Be.apply(Be,cs(arguments))},{def:Be.def,entry:Be,exit:Xe,save:re,set:function(ve,De,He){re(ve,De),Be(ve,De,"=",He,";")},toString:function(){return Te()+Ge()}})}function de(){var Be=hs(arguments),Xe=se(),Te=se(),Ge=Xe.toString,re=Te.toString;return n(Xe,{then:function(){return Xe.apply(Xe,cs(arguments)),this},else:function(){return Te.apply(Te,cs(arguments)),this},toString:function(){var ve=re();return ve&&(ve="else{"+ve+"}"),hs(["if(",Be,"){",Ge(),"}",ve])}})}var Ce=be(),Ne={};function Pe(Be,Xe){var Te=[];function Ge(){var Ee="a"+Te.length;return Te.push(Ee),Ee}Xe=Xe||0;for(var re=0;re":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Hb={frag:YD,vert:qD},op={cw:$b,ccw:ip};function tc(T){return Array.isArray(T)||r(T)||fa(T)}function Zb(T){return T.sort(function(F,W){return F===ai?-1:W===ai?1:F=1,ue>=2,F)}else if(W===Ul){var be=T.data;return new En(be.thisDep,be.contextDep,be.propDep,F)}else{if(W===xb)return new En(!1,!1,!1,F);if(W===Eb){for(var se=!1,de=!1,Ce=!1,Ne=0;Ne=1&&(de=!0),Oe>=2&&(Ce=!0)}else Pe.type===Ul&&(se=se||Pe.data.thisDep,de=de||Pe.data.contextDep,Ce=Ce||Pe.data.propDep)}return new En(se,de,Ce,F)}else return new En(W===Xv,W===$v,W===Uv,F)}}var Kb=new En(!1,!1,!1,function(){});function lP(T,F,W,ue,be,se,de,Ce,Ne,Pe,Oe,Be,Xe,Te,Ge){var re=Pe.Record,ve={add:32774,subtract:32778,"reverse subtract":32779};W.ext_blend_minmax&&(ve.min=iP,ve.max=oP);var De=W.angle_instanced_arrays,He=W.webgl_draw_buffers,Ee={dirty:!0,profile:Ge.profile},et={},Ae=[],ze={},Me={};function je(j){return j.replace(".","_")}function ct(j,D,q){var ee=je(j);Ae.push(j),et[ee]=Ee[ee]=!!q,ze[ee]=D}function Mt(j,D,q){var ee=je(j);Ae.push(j),Array.isArray(q)?(Ee[ee]=q.slice(),et[ee]=q.slice()):Ee[ee]=et[ee]=q,Me[ee]=D}ct(_b,QD),ct(Sb,KD),Mt(Mb,"blendColor",[0,0,0,0]),Mt(Wv,"blendEquationSeparate",[Vb,Vb]),Mt(Vv,"blendFuncSeparate",[Wb,Xb,Wb,Xb]),ct(Ab,eP,!0),Mt(Cb,"depthFunc",uP),Mt(Tb,"depthRange",[0,1]),Mt(Ib,"depthMask",!0),Mt(Yv,Yv,[!0,!0,!0,!0]),ct(kb,ZD),Mt(Nb,"cullFace",So),Mt(qv,qv,ip),Mt(Hv,Hv,1),ct(Ob,rP),Mt(Zv,"polygonOffset",[0,0]),ct(Lb,nP),ct(Db,aP),Mt(Kv,"sampleCoverage",[1,!1]),ct(Pb,JD),Mt(Rb,"stencilMask",-1),Mt(Qv,"stencilFunc",[sP,0,-1]),Mt(Jv,"stencilOpSeparate",[Uu,Ti,Ti,Ti]),Mt(Ou,"stencilOpSeparate",[So,Ti,Ti,Ti]),ct(Fb,tP),Mt($l,"scissor",[0,0,T.drawingBufferWidth,T.drawingBufferHeight]),Mt(ai,ai,[0,0,T.drawingBufferWidth,T.drawingBufferHeight]);var We={gl:T,context:Xe,strings:F,next:et,current:Ee,draw:Be,elements:se,buffer:be,shader:Oe,attributes:Pe.state,vao:Pe,uniforms:Ne,framebuffer:Ce,extensions:W,timer:Te,isBufferArgs:tc},Re={primTypes:ns,compareFuncs:ms,blendFuncs:Ta,blendEquations:ve,stencilOps:Ii,glTypes:po,orientationType:op};N.optional(function(){We.isArrayLike=Mr}),He&&(Re.backBuffer=[So],Re.drawBuffer=rn(ue.maxDrawbuffers,function(j){return j===0?[0]:rn(j,function(D){return fP+D})}));var xe=0;function xt(){var j=UD(),D=j.link,q=j.global;j.id=xe++,j.batchId="0";var ee=D(We),ne=j.shared={props:"a0"};Object.keys(We).forEach(function(Y){ne[Y]=q.def(ee,".",Y)}),N.optional(function(){j.CHECK=D(N),j.commandStr=N.guessCommand(),j.command=D(j.commandStr),j.assert=function(Y,G,J){Y("if(!(",G,"))",this.CHECK,".commandRaise(",D(J),",",this.command,");")},Re.invalidBlendCombinations=qb});var K=j.next={},H=j.current={};Object.keys(Me).forEach(function(Y){Array.isArray(Ee[Y])&&(K[Y]=q.def(ne.next,".",Y),H[Y]=q.def(ne.current,".",Y))});var Q=j.constants={};Object.keys(Re).forEach(function(Y){Q[Y]=q.def(JSON.stringify(Re[Y]))}),j.invoke=function(Y,G){switch(G.type){case jv:var J=["this",ne.context,ne.props,j.batchId];return Y.def(D(G.data),".call(",J.slice(0,Math.max(G.data.length+1,4)),")");case Uv:return Y.def(ne.props,G.data);case $v:return Y.def(ne.context,G.data);case Xv:return Y.def("this",G.data);case Ul:return G.data.append(j,Y),G.data.ref;case xb:return G.data.toString();case Eb:return G.data.map(function(ae){return j.invoke(Y,ae)})}},j.attribCache={};var U={};return j.scopeAttrib=function(Y){var G=F.id(Y);if(G in U)return U[G];var J=Pe.scope[G];J||(J=Pe.scope[G]=new re);var ae=U[G]=D(J);return ae},j}function It(j){var D=j.static,q=j.dynamic,ee;if(Lu in D){var ne=!!D[Lu];ee=kr(function(H,Q){return ne}),ee.enable=ne}else if(Lu in q){var K=q[Lu];ee=Cn(K,function(H,Q){return H.invoke(Q,K)})}return ee}function nt(j,D){var q=j.static,ee=j.dynamic;if(wo in q){var ne=q[wo];return ne?(ne=Ce.getFramebuffer(ne),N.command(ne,"invalid framebuffer object"),kr(function(H,Q){var U=H.link(ne),Y=H.shared;Q.set(Y.framebuffer,".next",U);var G=Y.context;return Q.set(G,"."+ps,U+".width"),Q.set(G,"."+gs,U+".height"),U})):kr(function(H,Q){var U=H.shared;Q.set(U.framebuffer,".next","null");var Y=U.context;return Q.set(Y,"."+ps,Y+"."+Gb),Q.set(Y,"."+gs,Y+"."+zb),"null"})}else if(wo in ee){var K=ee[wo];return Cn(K,function(H,Q){var U=H.invoke(Q,K),Y=H.shared,G=Y.framebuffer,J=Q.def(G,".getFramebuffer(",U,")");N.optional(function(){H.assert(Q,"!"+U+"||"+J,"invalid framebuffer object")}),Q.set(G,".next",J);var ae=Y.context;return Q.set(ae,"."+ps,J+"?"+J+".width:"+ae+"."+Gb),Q.set(ae,"."+gs,J+"?"+J+".height:"+ae+"."+zb),J})}else return null}function Rt(j,D,q){var ee=j.static,ne=j.dynamic;function K(U){if(U in ee){var Y=ee[U];N.commandType(Y,"object","invalid "+U,q.commandStr);var G=!0,J=Y.x|0,ae=Y.y|0,ye,we;return"width"in Y?(ye=Y.width|0,N.command(ye>=0,"invalid "+U,q.commandStr)):G=!1,"height"in Y?(we=Y.height|0,N.command(we>=0,"invalid "+U,q.commandStr)):G=!1,new En(!G&&D&&D.thisDep,!G&&D&&D.contextDep,!G&&D&&D.propDep,function(ut,Nt){var at=ut.shared.context,yt=ye;"width"in Y||(yt=Nt.def(at,".",ps,"-",J));var Ct=we;return"height"in Y||(Ct=Nt.def(at,".",gs,"-",ae)),[J,ae,yt,Ct]})}else if(U in ne){var pe=ne[U],Le=Cn(pe,function(ut,Nt){var at=ut.invoke(Nt,pe);N.optional(function(){ut.assert(Nt,at+"&&typeof "+at+'==="object"',"invalid "+U)});var yt=ut.shared.context,Ct=Nt.def(at,".x|0"),Jt=Nt.def(at,".y|0"),xr=Nt.def('"width" in ',at,"?",at,".width|0:","(",yt,".",ps,"-",Ct,")"),_n=Nt.def('"height" in ',at,"?",at,".height|0:","(",yt,".",gs,"-",Jt,")");return N.optional(function(){ut.assert(Nt,xr+">=0&&"+_n+">=0","invalid "+U)}),[Ct,Jt,xr,_n]});return D&&(Le.thisDep=Le.thisDep||D.thisDep,Le.contextDep=Le.contextDep||D.contextDep,Le.propDep=Le.propDep||D.propDep),Le}else return D?new En(D.thisDep,D.contextDep,D.propDep,function(ut,Nt){var at=ut.shared.context;return[0,0,Nt.def(at,".",ps),Nt.def(at,".",gs)]}):null}var H=K(ai);if(H){var Q=H;H=new En(H.thisDep,H.contextDep,H.propDep,function(U,Y){var G=Q.append(U,Y),J=U.shared.context;return Y.set(J,"."+$D,G[2]),Y.set(J,"."+XD,G[3]),G})}return{viewport:H,scissor_box:K($l)}}function At(j,D){var q=j.static,ee=typeof q[Pu]=="string"&&typeof q[Du]=="string";if(ee){if(Object.keys(D.dynamic).length>0)return null;var ne=D.static,K=Object.keys(ne);if(K.length>0&&typeof ne[K[0]]=="number"){for(var H=[],Q=0;Q=0,"invalid "+G,D.commandStr),kr(function(we,pe){return J&&(we.OFFSET=ae),ae})}else if(G in ee){var ye=ee[G];return Cn(ye,function(we,pe){var Le=we.invoke(pe,ye);return J&&(we.OFFSET=Le,N.optional(function(){we.assert(pe,Le+">=0","invalid "+G)})),Le})}else if(J&&K)return kr(function(we,pe){return we.OFFSET="0",0});return null}var U=Q(Xl,!0);function Y(){if(_o in q){var G=q[_o]|0;return N.command(typeof G=="number"&&G>=0,"invalid vertex count",D.commandStr),kr(function(){return G})}else if(_o in ee){var J=ee[_o];return Cn(J,function(we,pe){var Le=we.invoke(pe,J);return N.optional(function(){we.assert(pe,"typeof "+Le+'==="number"&&'+Le+">=0&&"+Le+"===("+Le+"|0)","invalid vertex count")}),Le})}else if(K)if(ki(K)){if(K)return U?new En(U.thisDep,U.contextDep,U.propDep,function(we,pe){var Le=pe.def(we.ELEMENTS,".vertCount-",we.OFFSET);return N.optional(function(){we.assert(pe,Le+">=0","invalid vertex offset/element buffer too small")}),Le}):kr(function(we,pe){return pe.def(we.ELEMENTS,".vertCount")});var ae=kr(function(){return-1});return N.optional(function(){ae.MISSING=!0}),ae}else{var ye=new En(K.thisDep||U.thisDep,K.contextDep||U.contextDep,K.propDep||U.propDep,function(we,pe){var Le=we.ELEMENTS;return we.OFFSET?pe.def(Le,"?",Le,".vertCount-",we.OFFSET,":-1"):pe.def(Le,"?",Le,".vertCount:-1")});return N.optional(function(){ye.DYNAMIC=!0}),ye}return null}return{elements:K,primitive:H(),count:Y(),instances:Q(Wl,!1),offset:U}}function Nr(j,D){var q=j.static,ee=j.dynamic,ne={};return Ae.forEach(function(K){var H=je(K);function Q(U,Y){if(K in q){var G=U(q[K]);ne[H]=kr(function(){return G})}else if(K in ee){var J=ee[K];ne[H]=Cn(J,function(ae,ye){return Y(ae,ye,ae.invoke(ye,J))})}}switch(K){case kb:case Sb:case _b:case Pb:case Ab:case Fb:case Ob:case Lb:case Db:case Ib:return Q(function(U){return N.commandType(U,"boolean",K,D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="boolean"',"invalid flag "+K,U.commandStr)}),G});case Cb:return Q(function(U){return N.commandParameter(U,ms,"invalid "+K,D.commandStr),ms[U]},function(U,Y,G){var J=U.constants.compareFuncs;return N.optional(function(){U.assert(Y,G+" in "+J,"invalid "+K+", must be one of "+Object.keys(ms))}),Y.def(J,"[",G,"]")});case Tb:return Q(function(U){return N.command(Mr(U)&&U.length===2&&typeof U[0]=="number"&&typeof U[1]=="number"&&U[0]<=U[1],"depth range is 2d array",D.commandStr),U},function(U,Y,G){N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===2&&typeof "+G+'[0]==="number"&&typeof '+G+'[1]==="number"&&'+G+"[0]<="+G+"[1]","depth range must be a 2d array")});var J=Y.def("+",G,"[0]"),ae=Y.def("+",G,"[1]");return[J,ae]});case Vv:return Q(function(U){N.commandType(U,"object","blend.func",D.commandStr);var Y="srcRGB"in U?U.srcRGB:U.src,G="srcAlpha"in U?U.srcAlpha:U.src,J="dstRGB"in U?U.dstRGB:U.dst,ae="dstAlpha"in U?U.dstAlpha:U.dst;return N.commandParameter(Y,Ta,H+".srcRGB",D.commandStr),N.commandParameter(G,Ta,H+".srcAlpha",D.commandStr),N.commandParameter(J,Ta,H+".dstRGB",D.commandStr),N.commandParameter(ae,Ta,H+".dstAlpha",D.commandStr),N.command(qb.indexOf(Y+", "+J)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Y+", "+J+")",D.commandStr),[Ta[Y],Ta[J],Ta[G],Ta[ae]]},function(U,Y,G){var J=U.constants.blendFuncs;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid blend func, must be an object")});function ae(at,yt){var Ct=Y.def('"',at,yt,'" in ',G,"?",G,".",at,yt,":",G,".",at);return N.optional(function(){U.assert(Y,Ct+" in "+J,"invalid "+K+"."+at+yt+", must be one of "+Object.keys(Ta))}),Ct}var ye=ae("src","RGB"),we=ae("dst","RGB");N.optional(function(){var at=U.constants.invalidBlendCombinations;U.assert(Y,at+".indexOf("+ye+'+", "+'+we+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var pe=Y.def(J,"[",ye,"]"),Le=Y.def(J,"[",ae("src","Alpha"),"]"),ut=Y.def(J,"[",we,"]"),Nt=Y.def(J,"[",ae("dst","Alpha"),"]");return[pe,ut,Le,Nt]});case Wv:return Q(function(U){if(typeof U=="string")return N.commandParameter(U,ve,"invalid "+K,D.commandStr),[ve[U],ve[U]];if(typeof U=="object")return N.commandParameter(U.rgb,ve,K+".rgb",D.commandStr),N.commandParameter(U.alpha,ve,K+".alpha",D.commandStr),[ve[U.rgb],ve[U.alpha]];N.commandRaise("invalid blend.equation",D.commandStr)},function(U,Y,G){var J=U.constants.blendEquations,ae=Y.def(),ye=Y.def(),we=U.cond("typeof ",G,'==="string"');return N.optional(function(){function pe(Le,ut,Nt){U.assert(Le,Nt+" in "+J,"invalid "+ut+", must be one of "+Object.keys(ve))}pe(we.then,K,G),U.assert(we.else,G+"&&typeof "+G+'==="object"',"invalid "+K),pe(we.else,K+".rgb",G+".rgb"),pe(we.else,K+".alpha",G+".alpha")}),we.then(ae,"=",ye,"=",J,"[",G,"];"),we.else(ae,"=",J,"[",G,".rgb];",ye,"=",J,"[",G,".alpha];"),Y(we),[ae,ye]});case Mb:return Q(function(U){return N.command(Mr(U)&&U.length===4,"blend.color must be a 4d array",D.commandStr),rn(4,function(Y){return+U[Y]})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","blend.color must be a 4d array")}),rn(4,function(J){return Y.def("+",G,"[",J,"]")})});case Rb:return Q(function(U){return N.commandType(U,"number",H,D.commandStr),U|0},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"',"invalid stencil.mask")}),Y.def(G,"|0")});case Qv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.cmp||"keep",G=U.ref||0,J="mask"in U?U.mask:-1;return N.commandParameter(Y,ms,K+".cmp",D.commandStr),N.commandType(G,"number",K+".ref",D.commandStr),N.commandType(J,"number",K+".mask",D.commandStr),[ms[Y],G,J]},function(U,Y,G){var J=U.constants.compareFuncs;N.optional(function(){function pe(){U.assert(Y,Array.prototype.join.call(arguments,""),"invalid stencil.func")}pe(G+"&&typeof ",G,'==="object"'),pe('!("cmp" in ',G,")||(",G,".cmp in ",J,")")});var ae=Y.def('"cmp" in ',G,"?",J,"[",G,".cmp]",":",Ti),ye=Y.def(G,".ref|0"),we=Y.def('"mask" in ',G,"?",G,".mask|0:-1");return[ae,ye,we]});case Jv:case Ou:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.fail||"keep",G=U.zfail||"keep",J=U.zpass||"keep";return N.commandParameter(Y,Ii,K+".fail",D.commandStr),N.commandParameter(G,Ii,K+".zfail",D.commandStr),N.commandParameter(J,Ii,K+".zpass",D.commandStr),[K===Ou?So:Uu,Ii[Y],Ii[G],Ii[J]]},function(U,Y,G){var J=U.constants.stencilOps;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});function ae(ye){return N.optional(function(){U.assert(Y,'!("'+ye+'" in '+G+")||("+G+"."+ye+" in "+J+")","invalid "+K+"."+ye+", must be one of "+Object.keys(Ii))}),Y.def('"',ye,'" in ',G,"?",J,"[",G,".",ye,"]:",Ti)}return[K===Ou?So:Uu,ae("fail"),ae("zfail"),ae("zpass")]});case Zv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.factor|0,G=U.units|0;return N.commandType(Y,"number",H+".factor",D.commandStr),N.commandType(G,"number",H+".units",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});var J=Y.def(G,".factor|0"),ae=Y.def(G,".units|0");return[J,ae]});case Nb:return Q(function(U){var Y=0;return U==="front"?Y=Uu:U==="back"&&(Y=So),N.command(!!Y,H,D.commandStr),Y},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="front"||'+G+'==="back"',"invalid cull.face")}),Y.def(G,'==="front"?',Uu,":",So)});case Hv:return Q(function(U){return N.command(typeof U=="number"&&U>=ue.lineWidthDims[0]&&U<=ue.lineWidthDims[1],"invalid line width, must be a positive number between "+ue.lineWidthDims[0]+" and "+ue.lineWidthDims[1],D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"&&'+G+">="+ue.lineWidthDims[0]+"&&"+G+"<="+ue.lineWidthDims[1],"invalid line width")}),G});case qv:return Q(function(U){return N.commandParameter(U,op,H,D.commandStr),op[U]},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="cw"||'+G+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Y.def(G+'==="cw"?'+$b+":"+ip)});case Yv:return Q(function(U){return N.command(Mr(U)&&U.length===4,"color.mask must be length 4 array",D.commandStr),U.map(function(Y){return!!Y})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","invalid color.mask")}),rn(4,function(J){return"!!"+G+"["+J+"]"})});case Kv:return Q(function(U){N.command(typeof U=="object"&&U,H,D.commandStr);var Y="value"in U?U.value:1,G=!!U.invert;return N.command(typeof Y=="number"&&Y>=0&&Y<=1,"sample.coverage.value must be a number between 0 and 1",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid sample.coverage")});var J=Y.def('"value" in ',G,"?+",G,".value:1"),ae=Y.def("!!",G,".invert");return[J,ae]})}}),ne}function $r(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q;if(typeof H=="number"||typeof H=="boolean")Q=kr(function(){return H});else if(typeof H=="function"){var U=H._reglType;U==="texture2d"||U==="textureCube"?Q=kr(function(Y){return Y.link(H)}):U==="framebuffer"||U==="framebufferCube"?(N.command(H.color.length>0,'missing color attachment for framebuffer sent to uniform "'+K+'"',D.commandStr),Q=kr(function(Y){return Y.link(H.color[0])})):N.commandRaise('invalid data for uniform "'+K+'"',D.commandStr)}else Mr(H)?Q=kr(function(Y){var G=Y.global.def("[",rn(H.length,function(J){return N.command(typeof H[J]=="number"||typeof H[J]=="boolean","invalid uniform "+K,Y.commandStr),H[J]}),"]");return G}):N.commandRaise('invalid or missing data for uniform "'+K+'"',D.commandStr);Q.value=H,ne[K]=Q}),Object.keys(ee).forEach(function(K){var H=ee[K];ne[K]=Cn(H,function(Q,U){return Q.invoke(U,H)})}),ne}function zt(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q=F.id(K),U=new re;if(tc(H))U.state=vs,U.buffer=be.getBuffer(be.create(H,ys,!1,!0)),U.type=0;else{var Y=be.getBuffer(H);if(Y)U.state=vs,U.buffer=Y,U.type=0;else if(N.command(typeof H=="object"&&H,"invalid data for attribute "+K,D.commandStr),"constant"in H){var G=H.constant;U.buffer="null",U.state=zv,typeof G=="number"?U.x=G:(N.command(Mr(G)&&G.length>0&&G.length<=4,"invalid constant for attribute "+K,D.commandStr),ds.forEach(function(ut,Nt){Nt=0,'invalid offset for attribute "'+K+'"',D.commandStr);var ae=H.stride|0;N.command(ae>=0&&ae<256,'invalid stride for attribute "'+K+'", must be integer betweeen [0, 255]',D.commandStr);var ye=H.size|0;N.command(!("size"in H)||ye>0&&ye<=4,'invalid size for attribute "'+K+'", must be 1,2,3,4',D.commandStr);var we=!!H.normalized,pe=0;"type"in H&&(N.commandParameter(H.type,po,"invalid type for attribute "+K,D.commandStr),pe=po[H.type]);var Le=H.divisor|0;"divisor"in H&&(N.command(Le===0||De,'cannot specify divisor for attribute "'+K+'", instancing not supported',D.commandStr),N.command(Le>=0,'invalid divisor for attribute "'+K+'"',D.commandStr)),N.optional(function(){var ut=D.commandStr,Nt=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(H).forEach(function(at){N.command(Nt.indexOf(at)>=0,'unknown parameter "'+at+'" for attribute pointer "'+K+'" (valid parameters are '+Nt+")",ut)})}),U.buffer=Y,U.state=vs,U.size=ye,U.normalized=we,U.type=pe||Y.dtype,U.offset=J,U.stride=ae,U.divisor=Le}}ne[K]=kr(function(ut,Nt){var at=ut.attribCache;if(Q in at)return at[Q];var yt={isStream:!1};return Object.keys(U).forEach(function(Ct){yt[Ct]=U[Ct]}),U.buffer&&(yt.buffer=ut.link(U.buffer),yt.type=yt.type||yt.buffer+".dtype"),at[Q]=yt,yt})}),Object.keys(ee).forEach(function(K){var H=ee[K];function Q(U,Y){var G=U.invoke(Y,H),J=U.shared,ae=U.constants,ye=J.isBufferArgs,we=J.buffer;N.optional(function(){U.assert(Y,G+"&&(typeof "+G+'==="object"||typeof '+G+'==="function")&&('+ye+"("+G+")||"+we+".getBuffer("+G+")||"+we+".getBuffer("+G+".buffer)||"+ye+"("+G+'.buffer)||("constant" in '+G+"&&(typeof "+G+'.constant==="number"||'+J.isArrayLike+"("+G+".constant))))",'invalid dynamic attribute "'+K+'"')});var pe={isStream:Y.def(!1)},Le=new re;Le.state=vs,Object.keys(Le).forEach(function(yt){pe[yt]=Y.def(""+Le[yt])});var ut=pe.buffer,Nt=pe.type;Y("if(",ye,"(",G,")){",pe.isStream,"=true;",ut,"=",we,".createStream(",ys,",",G,");",Nt,"=",ut,".dtype;","}else{",ut,"=",we,".getBuffer(",G,");","if(",ut,"){",Nt,"=",ut,".dtype;",'}else if("constant" in ',G,"){",pe.state,"=",zv,";","if(typeof "+G+'.constant === "number"){',pe[ds[0]],"=",G,".constant;",ds.slice(1).map(function(yt){return pe[yt]}).join("="),"=0;","}else{",ds.map(function(yt,Ct){return pe[yt]+"="+G+".constant.length>"+Ct+"?"+G+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",ye,"(",G,".buffer)){",ut,"=",we,".createStream(",ys,",",G,".buffer);","}else{",ut,"=",we,".getBuffer(",G,".buffer);","}",Nt,'="type" in ',G,"?",ae.glTypes,"[",G,".type]:",ut,".dtype;",pe.normalized,"=!!",G,".normalized;");function at(yt){Y(pe[yt],"=",G,".",yt,"|0;")}return at("size"),at("offset"),at("stride"),at("divisor"),Y("}}"),Y.exit("if(",pe.isStream,"){",we,".destroyStream(",ut,");","}"),pe}ne[K]=Cn(H,Q)}),ne}function Gr(j,D){var q=j.static,ee=j.dynamic;if(Ru in q){var ne=q[Ru];return ne!==null&&Pe.getVAO(ne)===null&&(ne=Pe.createVAO(ne)),kr(function(H){return H.link(Pe.getVAO(ne))})}else if(Ru in ee){var K=ee[Ru];return Cn(K,function(H,Q){var U=H.invoke(Q,K);return Q.def(H.shared.vao+".getVAO("+U+")")})}return null}function pr(j){var D=j.static,q=j.dynamic,ee={};return Object.keys(D).forEach(function(ne){var K=D[ne];ee[ne]=kr(function(H,Q){return typeof K=="number"||typeof K=="boolean"?""+K:H.link(K)})}),Object.keys(q).forEach(function(ne){var K=q[ne];ee[ne]=Cn(K,function(H,Q){return H.invoke(Q,K)})}),ee}function Or(j,D,q,ee,ne){var K=j.static,H=j.dynamic;N.optional(function(){var at=[wo,Du,Pu,xo,Eo,Xl,_o,Wl,Lu,Ru].concat(Ae);function yt(Ct){Object.keys(Ct).forEach(function(Jt){N.command(at.indexOf(Jt)>=0,'unknown parameter "'+Jt+'"',ne.commandStr)})}yt(K),yt(H)});var Q=At(j,D),U=nt(j),Y=Rt(j,U,ne),G=Qt(j,ne),J=Nr(j,ne),ae=Pt(j,ne,Q);function ye(at){var yt=Y[at];yt&&(J[at]=yt)}ye(ai),ye(je($l));var we=Object.keys(J).length>0,pe={framebuffer:U,draw:G,shader:ae,state:J,dirty:we,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pe.profile=It(j),pe.uniforms=$r(q,ne),pe.drawVAO=pe.scopeVAO=Gr(j),!pe.drawVAO&&ae.program&&!Q&&W.angle_instanced_arrays){var Le=!0,ut=ae.program.attributes.map(function(at){var yt=D.static[at];return Le=Le&&!!yt,yt});if(Le&&ut.length>0){var Nt=Pe.getVAO(Pe.createVAO(ut));pe.drawVAO=new En(null,null,null,function(at,yt){return at.link(Nt)}),pe.useVAO=!0}}return Q?pe.useVAO=!0:pe.attributes=zt(D,ne),pe.context=pr(ee),pe}function zr(j,D,q){var ee=j.shared,ne=ee.context,K=j.scope();Object.keys(q).forEach(function(H){D.save(ne,"."+H);var Q=q[H],U=Q.append(j,D);Array.isArray(U)?K(ne,".",H,"=[",U.join(),"];"):K(ne,".",H,"=",U,";")}),D(K)}function jr(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.framebuffer,Q;He&&(Q=D.def(ne.extensions,".webgl_draw_buffers"));var U=j.constants,Y=U.drawBuffer,G=U.backBuffer,J;q?J=q.append(j,D):J=D.def(H,".next"),ee||D("if(",J,"!==",H,".cur){"),D("if(",J,"){",K,".bindFramebuffer(",Yb,",",J,".framebuffer);"),He&&D(Q,".drawBuffersWEBGL(",Y,"[",J,".colorAttachments.length]);"),D("}else{",K,".bindFramebuffer(",Yb,",null);"),He&&D(Q,".drawBuffersWEBGL(",G,");"),D("}",H,".cur=",J,";"),ee||D("}")}function Yr(j,D,q){var ee=j.shared,ne=ee.gl,K=j.current,H=j.next,Q=ee.current,U=ee.next,Y=j.cond(Q,".dirty");Ae.forEach(function(G){var J=je(G);if(!(J in q.state)){var ae,ye;if(J in H){ae=H[J],ye=K[J];var we=rn(Ee[J].length,function(Le){return Y.def(ae,"[",Le,"]")});Y(j.cond(we.map(function(Le,ut){return Le+"!=="+ye+"["+ut+"]"}).join("||")).then(ne,".",Me[J],"(",we,");",we.map(function(Le,ut){return ye+"["+ut+"]="+Le}).join(";"),";"))}else{ae=Y.def(U,".",J);var pe=j.cond(ae,"!==",Q,".",J);Y(pe),J in ze?pe(j.cond(ae).then(ne,".enable(",ze[J],");").else(ne,".disable(",ze[J],");"),Q,".",J,"=",ae,";"):pe(ne,".",Me[J],"(",ae,");",Q,".",J,"=",ae,";")}}}),Object.keys(q.state).length===0&&Y(Q,".dirty=false;"),D(Y)}function an(j,D,q,ee){var ne=j.shared,K=j.current,H=ne.current,Q=ne.gl;Zb(Object.keys(q)).forEach(function(U){var Y=q[U];if(!(ee&&!ee(Y))){var G=Y.append(j,D);if(ze[U]){var J=ze[U];ki(Y)?G?D(Q,".enable(",J,");"):D(Q,".disable(",J,");"):D(j.cond(G).then(Q,".enable(",J,");").else(Q,".disable(",J,");")),D(H,".",U,"=",G,";")}else if(Mr(G)){var ae=K[U];D(Q,".",Me[U],"(",G,");",G.map(function(ye,we){return ae+"["+we+"]="+ye}).join(";"),";")}else D(Q,".",Me[U],"(",G,");",H,".",U,"=",G,";")}})}function Ar(j,D){De&&(j.instancing=D.def(j.shared.extensions,".angle_instanced_arrays"))}function kt(j,D,q,ee,ne){var K=j.shared,H=j.stats,Q=K.current,U=K.timer,Y=q.profile;function G(){return typeof performance>"u"?"Date.now()":"performance.now()"}var J,ae;function ye(at){J=D.def(),at(J,"=",G(),";"),typeof ne=="string"?at(H,".count+=",ne,";"):at(H,".count++;"),Te&&(ee?(ae=D.def(),at(ae,"=",U,".getNumPendingQueries();")):at(U,".beginQuery(",H,");"))}function we(at){at(H,".cpuTime+=",G(),"-",J,";"),Te&&(ee?at(U,".pushScopeStats(",ae,",",U,".getNumPendingQueries(),",H,");"):at(U,".endQuery();"))}function pe(at){var yt=D.def(Q,".profile");D(Q,".profile=",at,";"),D.exit(Q,".profile=",yt,";")}var Le;if(Y){if(ki(Y)){Y.enable?(ye(D),we(D.exit),pe("true")):pe("false");return}Le=Y.append(j,D),pe(Le)}else Le=D.def(Q,".profile");var ut=j.block();ye(ut),D("if(",Le,"){",ut,"}");var Nt=j.block();we(Nt),D.exit("if(",Le,"){",Nt,"}")}function on(j,D,q,ee,ne){var K=j.shared;function H(U){switch(U){case Vl:case Hl:case Ql:return 2;case Yl:case Zl:case Jl:return 3;case ql:case Kl:case ec:return 4;default:return 1}}function Q(U,Y,G){var J=K.gl,ae=D.def(U,".location"),ye=D.def(K.attributes,"[",ae,"]"),we=G.state,pe=G.buffer,Le=[G.x,G.y,G.z,G.w],ut=["buffer","normalized","offset","stride"];function Nt(){D("if(!",ye,".buffer){",J,".enableVertexAttribArray(",ae,");}");var yt=G.type,Ct;if(G.size?Ct=D.def(G.size,"||",Y):Ct=Y,D("if(",ye,".type!==",yt,"||",ye,".size!==",Ct,"||",ut.map(function(xr){return ye+"."+xr+"!=="+G[xr]}).join("||"),"){",J,".bindBuffer(",ys,",",pe,".buffer);",J,".vertexAttribPointer(",[ae,Ct,yt,G.normalized,G.stride,G.offset],");",ye,".type=",yt,";",ye,".size=",Ct,";",ut.map(function(xr){return ye+"."+xr+"="+G[xr]+";"}).join(""),"}"),De){var Jt=G.divisor;D("if(",ye,".divisor!==",Jt,"){",j.instancing,".vertexAttribDivisorANGLE(",[ae,Jt],");",ye,".divisor=",Jt,";}")}}function at(){D("if(",ye,".buffer){",J,".disableVertexAttribArray(",ae,");",ye,".buffer=null;","}if(",ds.map(function(yt,Ct){return ye+"."+yt+"!=="+Le[Ct]}).join("||"),"){",J,".vertexAttrib4f(",ae,",",Le,");",ds.map(function(yt,Ct){return ye+"."+yt+"="+Le[Ct]+";"}).join(""),"}")}we===vs?Nt():we===zv?at():(D("if(",we,"===",vs,"){"),Nt(),D("}else{"),at(),D("}"))}ee.forEach(function(U){var Y=U.name,G=q.attributes[Y],J;if(G){if(!ne(G))return;J=G.append(j,D)}else{if(!ne(Kb))return;var ae=j.scopeAttrib(Y);N.optional(function(){j.assert(D,ae+".state","missing attribute "+Y)}),J={},Object.keys(new re).forEach(function(ye){J[ye]=D.def(ae,".",ye)})}Q(j.link(U),H(U.info.type),J)})}function ir(j,D,q,ee,ne){for(var K=j.shared,H=K.gl,Q,U=0;U1?D(rn(yt,function(_n){return Array.isArray(pe)?pe[_n]:pe+"["+_n+"]"})):(N(!Array.isArray(pe),"uniform value must not be an array"),D(pe));D(");")}}function vt(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.draw,Q=ee.draw;function U(){var Ct=Q.elements,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr)):Jt=xr.def(H,".",xo),Jt&&xr("if("+Jt+")"+K+".bindBuffer("+VD+","+Jt+".buffer.buffer);"),Jt}function Y(){var Ct=Q.count,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr),N.optional(function(){Ct.MISSING&&j.assert(D,"false","missing vertex count"),Ct.DYNAMIC&&j.assert(xr,Jt+">=0","missing vertex count")})):(Jt=xr.def(H,".",_o),N.optional(function(){j.assert(xr,Jt+">=0","missing vertex count")})),Jt}var G=U();function J(Ct){var Jt=Q[Ct];return Jt?Jt.contextDep&&ee.contextDynamic||Jt.propDep?Jt.append(j,q):Jt.append(j,D):D.def(H,".",Ct)}var ae=J(Eo),ye=J(Xl),we=Y();if(typeof we=="number"){if(we===0)return}else q("if(",we,"){"),q.exit("}");var pe,Le;De&&(pe=J(Wl),Le=j.instancing);var ut=G+".type",Nt=Q.elements&&ki(Q.elements);function at(){function Ct(){q(Le,".drawElementsInstancedANGLE(",[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)",pe],");")}function Jt(){q(Le,".drawArraysInstancedANGLE(",[ae,ye,we,pe],");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}function yt(){function Ct(){q(K+".drawElements("+[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)"]+");")}function Jt(){q(K+".drawArrays("+[ae,ye,we]+");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}De&&(typeof pe!="number"||pe>=0)?typeof pe=="string"?(q("if(",pe,">0){"),at(),q("}else if(",pe,"<0){"),yt(),q("}")):at():yt()}function Gt(j,D,q,ee,ne){var K=xt(),H=K.proc("body",ne);return N.optional(function(){K.commandStr=D.commandStr,K.command=K.link(D.commandStr)}),De&&(K.instancing=H.def(K.shared.extensions,".angle_instanced_arrays")),j(K,H,q,ee),K.compile().body}function Vt(j,D,q,ee){Ar(j,D),q.useVAO?q.drawVAO?D(j.shared.vao,".setVAO(",q.drawVAO.append(j,D),");"):D(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(D(j.shared.vao,".setVAO(null);"),on(j,D,q,ee.attributes,function(){return!0})),ir(j,D,q,ee.uniforms,function(){return!0}),vt(j,D,D,q)}function Cr(j,D){var q=j.proc("draw",1);Ar(j,q),zr(j,q,D.context),jr(j,q,D.framebuffer),Yr(j,q,D),an(j,q,D.state),kt(j,q,D,!1,!0);var ee=D.shader.progVar.append(j,q);if(q(j.shared.gl,".useProgram(",ee,".program);"),D.shader.program)Vt(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var ne=j.global.def("{}"),K=q.def(ee,".id"),H=q.def(ne,"[",K,"]");q(j.cond(H).then(H,".call(this,a0);").else(H,"=",ne,"[",K,"]=",j.link(function(Q){return Gt(Vt,j,D,Q,1)}),"(",ee,");",H,".call(this,a0);"))}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function Ia(j,D,q,ee){j.batchId="a1",Ar(j,D);function ne(){return!0}on(j,D,q,ee.attributes,ne),ir(j,D,q,ee.uniforms,ne),vt(j,D,D,q)}function Mo(j,D,q,ee){Ar(j,D);var ne=q.contextDep,K=D.def(),H="a0",Q="a1",U=D.def();j.shared.props=U,j.batchId=K;var Y=j.scope(),G=j.scope();D(Y.entry,"for(",K,"=0;",K,"<",Q,";++",K,"){",U,"=",H,"[",K,"];",G,"}",Y.exit);function J(ut){return ut.contextDep&&ne||ut.propDep}function ae(ut){return!J(ut)}if(q.needsContext&&zr(j,G,q.context),q.needsFramebuffer&&jr(j,G,q.framebuffer),an(j,G,q.state,J),q.profile&&J(q.profile)&&kt(j,G,q,!1,!0),ee)q.useVAO?q.drawVAO?J(q.drawVAO)?G(j.shared.vao,".setVAO(",q.drawVAO.append(j,G),");"):Y(j.shared.vao,".setVAO(",q.drawVAO.append(j,Y),");"):Y(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(Y(j.shared.vao,".setVAO(null);"),on(j,Y,q,ee.attributes,ae),on(j,G,q,ee.attributes,J)),ir(j,Y,q,ee.uniforms,ae),ir(j,G,q,ee.uniforms,J),vt(j,Y,G,q);else{var ye=j.global.def("{}"),we=q.shader.progVar.append(j,G),pe=G.def(we,".id"),Le=G.def(ye,"[",pe,"]");G(j.shared.gl,".useProgram(",we,".program);","if(!",Le,"){",Le,"=",ye,"[",pe,"]=",j.link(function(ut){return Gt(Ia,j,q,ut,2)}),"(",we,");}",Le,".call(this,a0[",K,"],",K,");")}}function $(j,D){var q=j.proc("batch",2);j.batchId="0",Ar(j,q);var ee=!1,ne=!0;Object.keys(D.context).forEach(function(ye){ee=ee||D.context[ye].propDep}),ee||(zr(j,q,D.context),ne=!1);var K=D.framebuffer,H=!1;K?(K.propDep?ee=H=!0:K.contextDep&&ee&&(H=!0),H||jr(j,q,K)):jr(j,q,null),D.state.viewport&&D.state.viewport.propDep&&(ee=!0);function Q(ye){return ye.contextDep&&ee||ye.propDep}Yr(j,q,D),an(j,q,D.state,function(ye){return!Q(ye)}),(!D.profile||!Q(D.profile))&&kt(j,q,D,!1,"a1"),D.contextDep=ee,D.needsContext=ne,D.needsFramebuffer=H;var U=D.shader.progVar;if(U.contextDep&&ee||U.propDep)Mo(j,q,D,null);else{var Y=U.append(j,q);if(q(j.shared.gl,".useProgram(",Y,".program);"),D.shader.program)Mo(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var G=j.global.def("{}"),J=q.def(Y,".id"),ae=q.def(G,"[",J,"]");q(j.cond(ae).then(ae,".call(this,a0,a1);").else(ae,"=",G,"[",J,"]=",j.link(function(ye){return Gt(Mo,j,D,ye,2)}),"(",Y,");",ae,".call(this,a0,a1);"))}}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function fe(j,D){var q=j.proc("scope",3);j.batchId="a2";var ee=j.shared,ne=ee.current;zr(j,q,D.context),D.framebuffer&&D.framebuffer.append(j,q),Zb(Object.keys(D.state)).forEach(function(H){var Q=D.state[H],U=Q.append(j,q);Mr(U)?U.forEach(function(Y,G){q.set(j.next[H],"["+G+"]",Y)}):q.set(ee.next,"."+H,U)}),kt(j,q,D,!0,!0),[xo,Xl,_o,Wl,Eo].forEach(function(H){var Q=D.draw[H];Q&&q.set(ee.draw,"."+H,""+Q.append(j,q))}),Object.keys(D.uniforms).forEach(function(H){var Q=D.uniforms[H].append(j,q);Array.isArray(Q)&&(Q="["+Q.join()+"]"),q.set(ee.uniforms,"["+F.id(H)+"]",Q)}),Object.keys(D.attributes).forEach(function(H){var Q=D.attributes[H].append(j,q),U=j.scopeAttrib(H);Object.keys(new re).forEach(function(Y){q.set(U,"."+Y,Q[Y])})}),D.scopeVAO&&q.set(ee.vao,".targetVAO",D.scopeVAO.append(j,q));function K(H){var Q=D.shader[H];Q&&q.set(ee.shader,"."+H,Q.append(j,q))}K(Du),K(Pu),Object.keys(D.state).length>0&&(q(ne,".dirty=true;"),q.exit(ne,".dirty=true;")),q("a1(",j.shared.context,",a0,",j.batchId,");")}function oe(j){if(!(typeof j!="object"||Mr(j))){for(var D=Object.keys(j),q=0;q=0;--vt){var Gt=xe[vt];Gt&&Gt(Te,null,0)}W.flush(),Pe&&Pe.update()}function Pt(){!Rt&&xe.length>0&&(Rt=or.next(At))}function Qt(){Rt&&(or.cancel(At),Rt=null)}function Nr(vt){vt.preventDefault(),be=!0,Qt(),xt.forEach(function(Gt){Gt()})}function $r(vt){W.getError(),be=!1,se.restore(),Ae.restore(),De.restore(),ze.restore(),Me.restore(),je.restore(),He.restore(),Pe&&Pe.restore(),ct.procs.refresh(),Pt(),It.forEach(function(Gt){Gt()})}Re&&(Re.addEventListener(Jb,Nr,!1),Re.addEventListener(ew,$r,!1));function zt(){xe.length=0,Qt(),Re&&(Re.removeEventListener(Jb,Nr),Re.removeEventListener(ew,$r)),Ae.clear(),je.clear(),Me.clear(),ze.clear(),et.clear(),De.clear(),He.clear(),Pe&&Pe.clear(),nt.forEach(function(vt){vt()})}function Gr(vt){N(!!vt,"invalid args to regl({...})"),N.type(vt,"object","invalid args to regl({...})");function Gt(ne){var K=n({},ne);delete K.uniforms,delete K.attributes,delete K.context,delete K.vao,"stencil"in K&&K.stencil.op&&(K.stencil.opBack=K.stencil.opFront=K.stencil.op,delete K.stencil.op);function H(Q){if(Q in K){var U=K[Q];delete K[Q],Object.keys(U).forEach(function(Y){K[Q+"."+Y]=U[Y]})}}return H("blend"),H("depth"),H("cull"),H("stencil"),H("polygonOffset"),H("scissor"),H("sample"),"vao"in ne&&(K.vao=ne.vao),K}function Vt(ne,K){var H={},Q={};return Object.keys(ne).forEach(function(U){var Y=ne[U];if(fr.isDynamic(Y)){Q[U]=fr.unbox(Y,U);return}else if(K&&Array.isArray(Y)){for(var G=0;G0)return Ft.call(this,q(ne|0),ne|0)}else if(Array.isArray(ne)){if(ne.length)return Ft.call(this,ne,ne.length)}else return rt.call(this,ne)}return n(ee,{stats:fe,destroy:function(){oe.destroy()}})}var pr=je.setFBO=Gr({framebuffer:fr.define.call(null,tw,"framebuffer")});function Or(vt,Gt){var Vt=0;ct.procs.poll();var Cr=Gt.color;Cr&&(W.clearColor(+Cr[0]||0,+Cr[1]||0,+Cr[2]||0,+Cr[3]||0),Vt|=pP),"depth"in Gt&&(W.clearDepth(+Gt.depth),Vt|=gP),"stencil"in Gt&&(W.clearStencil(Gt.stencil|0),Vt|=yP),N(!!Vt,"called regl.clear with no buffer specified"),W.clear(Vt)}function zr(vt){if(N(typeof vt=="object"&&vt,"regl.clear() takes an object as input"),"framebuffer"in vt)if(vt.framebuffer&&vt.framebuffer_reglType==="framebufferCube")for(var Gt=0;Gt<6;++Gt)pr(n({framebuffer:vt.framebuffer.faces[Gt]},vt),Or);else pr(vt,Or);else Or(null,vt)}function jr(vt){N.type(vt,"function","regl.frame() callback must be a function"),xe.push(vt);function Gt(){var Vt=rw(xe,vt);N(Vt>=0,"cannot cancel a frame twice");function Cr(){var Ia=rw(xe,Cr);xe[Ia]=xe[xe.length-1],xe.length-=1,xe.length<=0&&Qt()}xe[Vt]=Cr}return Pt(),{cancel:Gt}}function Yr(){var vt=We.viewport,Gt=We.scissor_box;vt[0]=vt[1]=Gt[0]=Gt[1]=0,Te.viewportWidth=Te.framebufferWidth=Te.drawingBufferWidth=vt[2]=Gt[2]=W.drawingBufferWidth,Te.viewportHeight=Te.framebufferHeight=Te.drawingBufferHeight=vt[3]=Gt[3]=W.drawingBufferHeight}function an(){Te.tick+=1,Te.time=kt(),Yr(),ct.procs.poll()}function Ar(){ze.refresh(),Yr(),ct.procs.refresh(),Pe&&Pe.update()}function kt(){return(gr()-Oe)/1e3}Ar();function on(vt,Gt){N.type(Gt,"function","listener callback must be a function");var Vt;switch(vt){case"frame":return jr(Gt);case"lost":Vt=xt;break;case"restore":Vt=It;break;case"destroy":Vt=nt;break;default:N.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vt.push(Gt),{cancel:function(){for(var Cr=0;Cr=0},read:Mt,destroy:zt,_gl:W,_refresh:Ar,poll:function(){an(),Pe&&Pe.update()},now:kt,stats:Ce});return F.onDone(null,ir),ir}return xP})})(tO);var Vie=tO.exports;const Yie=bi(Vie);var qie=function(){function t(e,r){Ma(this,t),this.attribute=void 0,this.buffer=void 0;var n=r.buffer,a=r.offset,i=r.stride,o=r.normalized,s=r.size,u=r.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:a||0,stride:i||0,normalized:o||!1,divisor:u||0},s&&(this.attribute.size=s)}return Aa(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(r){this.buffer.subData(r)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),si,tf,ui,Kn,rf,Di,nf,zc,Oa,To,vn,La,Da,jc,Hie=(si={},Ke(si,ke.POINTS,"points"),Ke(si,ke.LINES,"lines"),Ke(si,ke.LINE_LOOP,"line loop"),Ke(si,ke.LINE_STRIP,"line strip"),Ke(si,ke.TRIANGLES,"triangles"),Ke(si,ke.TRIANGLE_FAN,"triangle fan"),Ke(si,ke.TRIANGLE_STRIP,"triangle strip"),si),rO=(tf={},Ke(tf,ke.STATIC_DRAW,"static"),Ke(tf,ke.DYNAMIC_DRAW,"dynamic"),Ke(tf,ke.STREAM_DRAW,"stream"),tf),r1=(ui={},Ke(ui,ke.BYTE,"int8"),Ke(ui,ke.UNSIGNED_INT,"int16"),Ke(ui,ke.INT,"int32"),Ke(ui,ke.UNSIGNED_BYTE,"uint8"),Ke(ui,ke.UNSIGNED_SHORT,"uint16"),Ke(ui,ke.UNSIGNED_INT,"uint32"),Ke(ui,ke.FLOAT,"float"),ui),Zie=(Kn={},Ke(Kn,ke.ALPHA,"alpha"),Ke(Kn,ke.LUMINANCE,"luminance"),Ke(Kn,ke.LUMINANCE_ALPHA,"luminance alpha"),Ke(Kn,ke.RGB,"rgb"),Ke(Kn,ke.RGBA,"rgba"),Ke(Kn,ke.RGBA4,"rgba4"),Ke(Kn,ke.RGB5_A1,"rgb5 a1"),Ke(Kn,ke.RGB565,"rgb565"),Ke(Kn,ke.DEPTH_COMPONENT,"depth"),Ke(Kn,ke.DEPTH_STENCIL,"depth stencil"),Kn),Kie=(rf={},Ke(rf,ke.DONT_CARE,"dont care"),Ke(rf,ke.NICEST,"nice"),Ke(rf,ke.FASTEST,"fast"),rf),x2=(Di={},Ke(Di,ke.NEAREST,"nearest"),Ke(Di,ke.LINEAR,"linear"),Ke(Di,ke.LINEAR_MIPMAP_LINEAR,"mipmap"),Ke(Di,ke.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Ke(Di,ke.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Ke(Di,ke.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),Di),E2=(nf={},Ke(nf,ke.REPEAT,"repeat"),Ke(nf,ke.CLAMP_TO_EDGE,"clamp"),Ke(nf,ke.MIRRORED_REPEAT,"mirror"),nf),Qie=(zc={},Ke(zc,ke.NONE,"none"),Ke(zc,ke.BROWSER_DEFAULT_WEBGL,"browser"),zc),Jie=(Oa={},Ke(Oa,ke.NEVER,"never"),Ke(Oa,ke.ALWAYS,"always"),Ke(Oa,ke.LESS,"less"),Ke(Oa,ke.LEQUAL,"lequal"),Ke(Oa,ke.GREATER,"greater"),Ke(Oa,ke.GEQUAL,"gequal"),Ke(Oa,ke.EQUAL,"equal"),Ke(Oa,ke.NOTEQUAL,"notequal"),Oa),_2=(To={},Ke(To,ke.FUNC_ADD,"add"),Ke(To,ke.MIN_EXT,"min"),Ke(To,ke.MAX_EXT,"max"),Ke(To,ke.FUNC_SUBTRACT,"subtract"),Ke(To,ke.FUNC_REVERSE_SUBTRACT,"reverse subtract"),To),Uc=(vn={},Ke(vn,ke.ZERO,"zero"),Ke(vn,ke.ONE,"one"),Ke(vn,ke.SRC_COLOR,"src color"),Ke(vn,ke.ONE_MINUS_SRC_COLOR,"one minus src color"),Ke(vn,ke.SRC_ALPHA,"src alpha"),Ke(vn,ke.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Ke(vn,ke.DST_COLOR,"dst color"),Ke(vn,ke.ONE_MINUS_DST_COLOR,"one minus dst color"),Ke(vn,ke.DST_ALPHA,"dst alpha"),Ke(vn,ke.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Ke(vn,ke.CONSTANT_COLOR,"constant color"),Ke(vn,ke.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Ke(vn,ke.CONSTANT_ALPHA,"constant alpha"),Ke(vn,ke.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Ke(vn,ke.SRC_ALPHA_SATURATE,"src alpha saturate"),vn),eoe=(La={},Ke(La,ke.NEVER,"never"),Ke(La,ke.ALWAYS,"always"),Ke(La,ke.LESS,"less"),Ke(La,ke.LEQUAL,"lequal"),Ke(La,ke.GREATER,"greater"),Ke(La,ke.GEQUAL,"gequal"),Ke(La,ke.EQUAL,"equal"),Ke(La,ke.NOTEQUAL,"notequal"),La),As=(Da={},Ke(Da,ke.ZERO,"zero"),Ke(Da,ke.KEEP,"keep"),Ke(Da,ke.REPLACE,"replace"),Ke(Da,ke.INVERT,"invert"),Ke(Da,ke.INCR,"increment"),Ke(Da,ke.DECR,"decrement"),Ke(Da,ke.INCR_WRAP,"increment wrap"),Ke(Da,ke.DECR_WRAP,"decrement wrap"),Da),toe=(jc={},Ke(jc,ke.FRONT,"front"),Ke(jc,ke.BACK,"back"),jc),roe=function(){function t(e,r){Ma(this,t),this.buffer=void 0;var n=r.data,a=r.usage,i=r.type;this.buffer=e.buffer({data:n,usage:rO[a||ke.STATIC_DRAW],type:r1[i||ke.UNSIGNED_BYTE]})}return Aa(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(r){var n=r.data,a=r.offset;this.buffer.subdata(n,a)}}]),t}();function jg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r16)throw new Error("invalid data type ".concat(c));a[l]=function(){return f.data}}});var i=this.getOuputDataTexture(),o=i.textureWidth,s=i.texelCount;a.u_OutputTextureSize=[o,o],a.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:a,vert:uoe,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return Aa(t,[{key:"run",value:function(){var r=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){r.computeCommand()})}},{key:"readData",value:function(){var e=Xi(mn.mark(function n(){var a=this,i,o,s,u,f,l,c,h;return mn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){i=a.reGl.read()}),!i){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,u=o.elementsPerTexel,f=o.typedArrayConstructor,l=f===void 0?Float32Array:f,c=[],u!==4)for(h=0;h0&&arguments[0]!==void 0?arguments[0]:{},n=new t;return n.setConfig(r),n.setEngine(new koe),n}}]),t}();const Ooe=Object.freeze(Object.defineProperty({__proto__:null,Kernel:eO,World:Noe},Symbol.toStringTag,{value:"Module"})),aO=Ka(Ooe);var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.arrayToTextureData=jn.attributesToTextureData=jn.buildTextureDataWithTwoEdgeAttr=jn.buildTextureData=jn.proccessToFunc=void 0;var Loe=Ir(),hd=Gd,Doe=function(t,e){var r;return t?(0,Loe.isNumber)(t)?r=function(){return t}:r=t:r=function(){return e||1},r};jn.proccessToFunc=Doe;var Poe=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`;Xa.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Xa.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`;Xa.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var Goe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$c=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},Xc=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置 + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4, + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // 每个节点属性占两个数组中各一格 + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`;Wa.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wa.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`;Wa.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var $oe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),h0=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},d0=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]z.size[1]?z.size[0]:z.size[1];return X/2}if((0,Ut.isObject)(z.size)){var X=z.size.width>z.size.height?z.size.width:z.size.height;return X/2}return z.size/2}return 10};else if((0,Ut.isFunction)(g))m=function(z){return g(z)};else if((0,Ut.isArray)(g)){var w=g[0]>g[1]?g[0]:g[1],x=w/2;m=function(z){return x}}else{var E=g/2;m=function(z){return E}}this.nodeSize=m;var _=r.comboSpacing,S;(0,Ut.isNumber)(_)?S=function(){return _}:(0,Ut.isFunction)(_)?S=_:S=function(){return 0},this.comboSpacing=S;var A=r.comboPadding,M;(0,Ut.isNumber)(A)?M=function(){return A}:(0,Ut.isArray)(A)?M=function(){return Math.max.apply(null,A)}:(0,Ut.isFunction)(A)?M=A:M=function(){return 0},this.comboPadding=M;var C=this.linkDistance,I;C||(C=10),(0,Ut.isNumber)(C)?I=function(z){return C}:I=C,this.linkDistance=I;var k=this.edgeStrength,O;k||(k=1),(0,Ut.isNumber)(k)?O=function(z){return k}:O=k,this.edgeStrength=O;var B=this.nodeStrength,L;B||(B=30),(0,Ut.isNumber)(B)?L=function(z){return B}:L=B,this.nodeStrength=L},e.prototype.initPos=function(r){var n=this,a=n.nodes;a.forEach(function(i,o){var s=i.comboId,u=r[s];s&&u?(i.x=u.cx+100/(o+1),i.y=u.cy+100/(o+1)):(i.x=100/(o+1),i.y=100/(o+1))})},e.prototype.getComboMap=function(){var r=this,n=r.nodeMap,a=r.comboTrees,i=r.oriComboMap,o={};return(a||[]).forEach(function(s){var u=[];(0,Ut.traverseTreeUp)(s,function(f){if(f.itemType==="node"||!i[f.id])return!0;if(o[f.id]===void 0){var l={id:f.id,name:f.id,cx:0,cy:0,count:0,depth:r.oriComboMap[f.id].depth||0,children:[]};o[f.id]=l}var c=f.children;c&&c.forEach(function(v){if(!o[v.id]&&!n[v.id])return!0;u.push(v)});var h=o[f.id];if(h.cx=0,h.cy=0,u.length===0){h.empty=!0;var d=i[f.id];h.cx=d.x,h.cy=d.y}return u.forEach(function(v){if(h.count++,v.itemType!=="node"){var p=o[v.id];(0,Ut.isNumber)(p.cx)&&(h.cx+=p.cx),(0,Ut.isNumber)(p.cy)&&(h.cy+=p.cy);return}var g=n[v.id];g&&((0,Ut.isNumber)(g.x)&&(h.cx+=g.x),(0,Ut.isNumber)(g.y)&&(h.cy+=g.y))}),h.cx/=h.count||1,h.cy/=h.count||1,h.children=u,!0})}),o},e.prototype.applyComboCenterForce=function(r){var n=this,a=n.gravity,i=n.comboGravity||a,o=this.alpha,s=n.comboTrees,u=n.indexMap,f=n.nodeMap,l=n.comboMap;(s||[]).forEach(function(c){(0,Ut.traverseTreeUp)(c,function(h){if(h.itemType==="node")return!0;var d=l[h.id];if(!d)return!0;var v=l[h.id],p=(v.depth+1)/10*.5,g=v.cx,y=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(m){if(m.itemType!=="node"){var b=l[m.id];b&&(0,Ut.isNumber)(b.cx)&&(v.cx+=b.cx),b&&(0,Ut.isNumber)(b.cy)&&(v.cy+=b.cy);return}var w=f[m.id],x=w.x-g||.005,E=w.y-y||.005,_=Math.sqrt(x*x+E*E),S=u[w.id],A=i*o/_*p;r[S].x-=x*A,r[S].y-=E*A,(0,Ut.isNumber)(w.x)&&(v.cx+=w.x),(0,Ut.isNumber)(w.y)&&(v.cy+=w.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(r){var n=this,a=n.comboMap,i=n.nodes,o={};i.forEach(function(u,f){i.forEach(function(l,c){if(!(fb&&(h.minX=b),h.minY>w&&(h.minY=w),h.maxX1&&l.forEach(function(c,h){if(c.itemType==="node")return!1;var d=n[c.id];d&&l.forEach(function(v,p){if(h<=p||v.itemType==="node")return!1;var g=n[v.id];if(!g)return!1;var y=d.cx-g.cx||.005,m=d.cy-g.cy||.005,b=y*y+m*m,w=d.r||1,x=g.r||1,E=w+x,_=x*x,S=w*w;if(bo)){var M=n["".concat(p.id,"-").concat(x.id)],C=M.vx,I=M.vy,k=Math.log(Math.abs(x.depth-p.depth)/10)+1||1;k=k<1?1:k,x.comboId!==p.comboId&&(k+=1);var O=k?Math.pow(d,k):1,B=s(x)*u/S*O;if(r[g].x+=C*B,r[g].y+=I*B,g=0;O--)k(O);return{nodes:c,edges:h,combos:d,comboEdges:v}},u.prototype.getInnerGraphs=function(f){var l=this,c=l.comboTrees,h=l.nodeSize,d=l.edges,v=l.comboPadding,p=l.spacing,g={},y=this.innerLayout||new i.ConcentricLayout({type:"concentric",sortBy:"id"});return y.center=[0,0],y.preventOverlap=!0,y.nodeSpacing=p,(c||[]).forEach(function(m){(0,a.traverseTreeUp)(m,function(b){var w,x=(v==null?void 0:v(b))||10;if((0,a.isArray)(x)&&(x=Math.max.apply(Math,x)),!((w=b.children)===null||w===void 0)&&w.length){var _=b.children.map(function(R){if(R.itemType==="combo")return g[R.id];var V=f[R.id]||{};return e(e({},V),R)}),S=_.map(function(R){return R.id}),A={nodes:_,edges:d.filter(function(R){return S.includes(R.source)&&S.includes(R.target)})},M=1/0;_.forEach(function(R){var V;R.size||(R.size=((V=g[R.id])===null||V===void 0?void 0:V.size)||(h==null?void 0:h(R))||[30,30]),(0,a.isNumber)(R.size)&&(R.size=[R.size,R.size]),M>R.size[0]&&(M=R.size[0]),M>R.size[1]&&(M=R.size[1])}),y.layout(A);var C=(0,a.getLayoutBBox)(_),I=C.minX,k=C.minY,O=C.maxX,B=C.maxY,L={x:(O+I)/2,y:(B+k)/2};A.nodes.forEach(function(R){R.x-=L.x,R.y-=L.y});var z=Math.max(O-I,M)+x*2,X=Math.max(B-k,M)+x*2;g[b.id]={id:b.id,nodes:_,size:[z,X]}}else if(b.itemType==="combo"){var E=x?[x*2,x*2]:[30,30];g[b.id]={id:b.id,nodes:[],size:E}}return!0})}),g},u.prototype.initVals=function(){var f=this,l=f.nodeSize,c=f.spacing,h,d;if((0,a.isNumber)(c)?d=function(){return c}:(0,a.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!l)h=function(b){var w=d(b);if(b.size){if((0,a.isArray)(b.size)){var x=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(x+w)/2}if((0,a.isObject)(b.size)){var x=b.size.width>b.size.height?b.size.width:b.size.height;return(x+w)/2}return(b.size+w)/2}return 10+w/2};else if((0,a.isFunction)(l))h=function(b){var w=l(b),x=d(b);if((0,a.isArray)(b.size)){var E=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(E+x)/2}return((w||10)+x)/2};else if((0,a.isArray)(l)){var v=l[0]>l[1]?l[0]:l[1],p=v/2;h=function(b){return p+d(b)/2}}else{var g=l/2;h=function(b){return g+d(b)/2}}this.nodeSize=h;var y=f.comboPadding,m;(0,a.isNumber)(y)?m=function(){return y}:(0,a.isArray)(y)?m=function(){return Math.max.apply(null,y)}:(0,a.isFunction)(y)?m=y:m=function(){return 0},this.comboPadding=m},u.prototype.getType=function(){return"comboCombined"},u}(n.Base);return af.ComboCombinedLayout=o,af}var Ml={},n1={};Object.defineProperty(n1,"__esModule",{value:!0});var Koe=function(){function t(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return t.prototype.distanceTo=function(e){var r=this.rx-e.rx,n=this.ry-e.ry;return Math.hypot(r,n)},t.prototype.setPos=function(e,r){this.rx=e,this.ry=r},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(e){var r=e.rx-this.rx,n=e.ry-this.ry,a=Math.hypot(r,n);a=a<1e-4?1e-4:a;var i=this.g*(this.degree+1)*(e.degree+1)/a;this.fx+=i*r/a,this.fy+=i*n/a},t.prototype.in=function(e){return e.contains(this.rx,this.ry)},t.prototype.add=function(e){var r=this.mass+e.mass,n=(this.rx*this.mass+e.rx*e.mass)/r,a=(this.ry*this.mass+e.ry*e.mass)/r,i=this.degree+e.degree,o={rx:n,ry:a,mass:r,degree:i};return new t(o)},t}();n1.default=Koe;var a1={};Object.defineProperty(a1,"__esModule",{value:!0});var Qoe=function(){function t(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(e,r){var n=this.length/2;return e<=this.xmid+n&&e>=this.xmid-n&&r<=this.ymid+n&&r>=this.ymid-n},t.prototype.NW=function(){var e=this.xmid-this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.NE=function(){var e=this.xmid+this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SW=function(){var e=this.xmid-this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SE=function(){var e=this.xmid+this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t}();a1.default=Qoe;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});var Joe=function(){function t(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return t.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},t.prototype._putBody=function(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},t.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},t.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var r=this.quad?this.quad.getLength():0,n=this.body.distanceTo(e);r/n250&&(r.barnesHut=!0),r.prune===void 0&&u>100&&(r.prune=!0),this.maxIteration===0&&!r.prune?(o=250,u<=200&&u>100?o=1e3:u>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&i&&(o=100,u<=200&&u>100?o=500:u>200&&(o=950),this.maxIteration=o),r.kr||(r.kr=50,u>100&&u<=500?r.kr=20:u>500&&(r.kr=1)),r.kg||(r.kg=20,u>100&&u<=500?r.kg=10:u>500&&(r.kg=1)),this.nodes=r.updateNodesByForces(s),a()},e.prototype.updateNodesByForces=function(r){for(var n=this,a=n.edges,i=n.maxIteration,o=n.nodes,s=a.filter(function(_){var S=(0,ci.getEdgeTerminal)(_,"source"),A=(0,ci.getEdgeTerminal)(_,"target");return S!==A}),u=o.length,f=s.length,l=[],c={},h={},d=[],v=0;v0;){for(var x=0;xy||!c)?m=this.getOptRepGraForces(m,w,o):m=this.getRepGraForces(g,y,m,p,s,o);var _=this.updatePos(m,b,v,o);f=_.nodes,v=_.sg,g--,u.tick&&u.tick()}return f},e.prototype.getAttrForces=function(r,n,a,i,o,s,u,f){for(var l=this,c=l.nodes,h=l.preventOverlap,d=l.dissuadeHubs,v=l.mode,p=l.prune,g=0;g0&&(_=E,S=E),f[2*i[y.id]]+=_*x[0],f[2*i[b.id]]-=S*x[0],f[2*i[y.id]+1]+=_*x[1],f[2*i[b.id]+1]-=S*x[1]}}return f},e.prototype.getRepGraForces=function(r,n,a,i,o,s){for(var u=this,f=u.nodes,l=u.preventOverlap,c=u.kr,h=u.kg,d=u.center,v=u.prune,p=f.length,g=0;g0&&(w=c*(s[g]+1)*(s[y]+1)/b),a[2*g]-=w*m[0],a[2*y]+=w*m[0],a[2*g+1]-=w*m[1],a[2*y+1]+=w*m[1]}var x=[f[g].x-d[0],f[g].y-d[1]],E=Math.hypot(x[0],x[1]);x[0]=x[0]/E,x[1]=x[1]/E;var _=h*(s[g]+1);a[2*g]-=_*x[0],a[2*g+1]-=_*x[1]}return a},e.prototype.getOptRepGraForces=function(r,n,a){for(var i=this,o=i.nodes,s=i.kg,u=i.center,f=i.prune,l=o.length,c=9e10,h=-9e10,d=9e10,v=-9e10,p=0;p=h&&(h=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(h-c,v-d),y={xmid:(h+c)/2,ymid:(v+d)/2,length:g,massCenter:u,mass:l},m=new nse.default(y),b=new ase.default(m),p=0;p1.5*E?1.5*E:a);for(var y=0;yA?A:_;var M=_*r[2*y],C=_*r[2*y+1];s[y].x+=M,s[y].y+=C}return{nodes:s,sg:a}},e}(tse.Base);Ml.ForceAtlas2Layout=ise;var Al={},s1={},u1={},f1={},js=me&&me.__assign||function(){return js=Object.assign||function(t){for(var e,r=1,n=arguments.length;re;n--)for(var a=0;a=e&&(this.additionColumn[a]+=r);for(var n=0;ne;n--)this.cells[a][n+r]=js(js({},this.cells[a][n]),{dx:a,dy:n+r,x:a*this.CELL_W,y:(n+r)*this.CELL_H}),this.cells[a][n]={dx:a,dy:n,x:a*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n=e&&(this.additionRow[n]+=r);for(var a=0;ai){for(var d=Math.ceil((f.size[0]+a)/i)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][h].node)v--;else break}s.insertColumn(c,v)}if(f.size[1]+a>o){for(var d=Math.ceil((f.size[1]+a)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][h+p+1].node)v--;else break}s.insertRow(h,v)}}for(var u=0;uv0?(m=a-l,y=s-i,b=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)),w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):0y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):g<-v0?(m=a-l,y=-(f-n),m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):(m=u-o,Math.abs(p)>(i-n)/2?y=n-f:y=p,m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y&&g!==0?(y/Math.sin(g)).toFixed(2):m.toFixed(2)));var x=parseFloat(g.toFixed(2)),E=r;return r&&(E=lsei?e:t,s=a>i?t:e,u=o.x-o.size[0]/2,f=o.y-o.size[1]/2,l=o.x+o.size[0]/2,c=o.y+o.size[1]/2,h=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,y=o.y,m=s.x,b=s.y,w=l>=h&&v>=u&&c>=d&&p>=f,x=0,E=0;if(w){E=Math.sqrt(Math.pow(m-g,2)+Math.pow(b-y,2));var _=u>h?u:h,S=f>d?f:d,A=loO||n.y>sO)&&(e+=1e12);for(var a=r+1;a150,d=c<30||c>150,v=l>70&&l<110,p=c>70&&c<110;if(h&&!d||l*c<0){s=!1;break}else if(v&&!p||l*c<0){s=!1;break}else if((f.x-t.x)*(f.x-e.x)<0){s=!1;break}else if((f.y-t.y)*(f.y-e.y)<0){s=!1;break}}return s}function yse(t,e){for(var r=!1,n=1,a=hse*n,i=dse*n,o=[a,-a,0,0],s=[0,0,i,-i],u=0;uD2?(l=d,r=!0):(f.x-=o[c],f.y-=s[c])}}return p0>D2&&(p0*=vse),r?lO(t):0}function P2(t,e){var r=0;(t.x<0||t.y<0||t.x+t.size[0]+20>oO||t.y+t.size[1]+20>sO)&&(r+=1e12);for(var n=0;n0&&(s++,!(s>=o));){var u=yse(t,e);u!==0&&(i=u),a=i-r,r=i,a===0?--n:n=20}return t.forEach(function(f){f.x=f.x-f.size[0]/2,f.y=f.y-f.size[1]/2}),{nodes:t,edges:e}}l1.default=mse;var $g=me&&me.__assign||function(){return $g=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1){var g=$g({},v);delete g.size,o.push(g)}});var s=[];n.forEach(function(v){var p=o.find(function(y){return y.id===v.source}),g=o.find(function(y){return y.id===v.target});p&&g&&s.push(v)});var u=new Sse.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),f=u.layout({nodes:o,edges:s}).nodes;r.forEach(function(v){var p=(f||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||a/2,v.y=(p==null?void 0:p.y)||i/2});var l=JSON.parse(JSON.stringify(r)),c=JSON.parse(JSON.stringify(n)),h=Is.forceSimulation().nodes(l).force("link",Is.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",Is.forceManyBody()).force("center",Is.forceCenter(a/2,i/2)).force("x",Is.forceX(a/2)).force("y",Is.forceY(i/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){h.on("end",function(){r.forEach(function(x){var E=l.find(function(_){return _.id===x.id});E&&(x.x=E.x,x.y=E.y)});var p=Math.min.apply(Math,r.map(function(x){return x.x})),g=Math.max.apply(Math,r.map(function(x){return x.x})),y=Math.min.apply(Math,r.map(function(x){return x.y})),m=Math.max.apply(Math,r.map(function(x){return x.y})),b=a/(g-p),w=i/(m-y);r.forEach(function(x){x.x!==void 0&&b<1&&(x.x=(x.x-p)*b),x.y!==void 0&&w<1&&(x.y=(x.y-y)*w)}),r.forEach(function(x){x.sizeTemp=x.size,x.size=[10,10]}),(0,_se.default)(r,n),r.forEach(function(x){x.size=x.sizeTemp||[],delete x.sizeTemp}),(0,Ese.default)({nodes:r,edges:n},e),v()})});return d}s1.default=Mse;var Ase=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cse=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Al,"__esModule",{value:!0});Al.ERLayout=void 0;var Tse=Rr,Ise=Cse(s1),kse=function(t){Ase(e,t);function e(r){var n=t.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},r&&n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges;return n==null||n.forEach(function(i){i.size||(i.size=[50,50])}),(0,Ise.default)({nodes:n,edges:a},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){r.onLayoutEnd&&r.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(Tse.Base);Al.ERLayout=kse;var Io={},R2;function Nse(){if(R2)return Io;R2=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Layouts=Io.Layout=void 0;var t=gi,e=sl,r=ul,n=ll,a=fl,i=rm,o=cl,s=yu,u=Km,f=bl,l=wl,c=xl,h=El,d=_l,v=Sl,p=iO(),g=Ml,y=Al,m=vl,b=Ir(),w=function(){function x(E){var _=(0,t.getLayoutByName)(E.type);this.layoutInstance=new _(E)}return x.prototype.layout=function(E){return this.layoutInstance.layout(E)},x.prototype.updateCfg=function(E){this.layoutInstance.updateCfg(E)},x.prototype.init=function(E){this.correctLayers(E.nodes),this.layoutInstance.init(E)},x.prototype.correctLayers=function(E){if(E!=null&&E.length){var _=1/0,S=[];if(E.forEach(function(M){(0,b.isString)(M.layer)&&(M.layer=parseInt(M.layer,10)),!(M.layer===void 0||isNaN(M.layer))&&(S.push(M),M.layer<_&&(_=M.layer))}),_<=0){var A=Math.abs(_)+1;S.forEach(function(M){return M.layer+=A})}}},x.prototype.execute=function(){this.layoutInstance.execute()},x.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},x.prototype.destroy=function(){return this.layoutInstance.destroy()},x}();return Io.Layout=w,Io.Layouts={force:i.ForceLayout,fruchterman:c.FruchtermanLayout,forceAtlas2:g.ForceAtlas2Layout,gForce:a.GForceLayout,force2:n.Force2Layout,dagre:s.DagreLayout,dagreCompound:m.DagreCompoundLayout,circular:o.CircularLayout,radial:u.RadialLayout,concentric:f.ConcentricLayout,grid:e.GridLayout,mds:l.MDSLayout,comboForce:v.ComboForceLayout,comboCombined:p.ComboCombinedLayout,random:r.RandomLayout,"gForce-gpu":d.GForceGPULayout,"fruchterman-gpu":h.FruchtermanGPULayout,er:y.ERLayout},Io}var hO={};Object.defineProperty(hO,"__esModule",{value:!0});var F2;function dO(){return F2||(F2=1,function(t){var e=me&&me.__createBinding||(Object.create?function(E,_,S,A){A===void 0&&(A=S);var M=Object.getOwnPropertyDescriptor(_,S);(!M||("get"in M?!_.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(E,A,M)}:function(E,_,S,A){A===void 0&&(A=S),E[A]=_[S]}),r=me&&me.__exportStar||function(E,_){for(var S in E)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&e(_,E,S)};Object.defineProperty(t,"__esModule",{value:!0}),t.ERLayout=t.ForceAtlas2Layout=t.ComboCombinedLayout=t.ComboForceLayout=t.GForceGPULayout=t.FruchtermanGPULayout=t.FruchtermanLayout=t.MDSLayout=t.ConcentricLayout=t.RadialLayout=t.DagreCompoundLayout=t.DagreLayout=t.CircularLayout=t.ForceLayout=t.Force2Layout=t.GForceLayout=t.RandomLayout=t.GridLayout=t.Layouts=t.Layout=void 0;var n=sl;Object.defineProperty(t,"GridLayout",{enumerable:!0,get:function(){return n.GridLayout}});var a=ul;Object.defineProperty(t,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var i=fl;Object.defineProperty(t,"GForceLayout",{enumerable:!0,get:function(){return i.GForceLayout}});var o=ll;Object.defineProperty(t,"Force2Layout",{enumerable:!0,get:function(){return o.Force2Layout}});var s=rm;Object.defineProperty(t,"ForceLayout",{enumerable:!0,get:function(){return s.ForceLayout}});var u=cl;Object.defineProperty(t,"CircularLayout",{enumerable:!0,get:function(){return u.CircularLayout}});var f=yu;Object.defineProperty(t,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var l=vl;Object.defineProperty(t,"DagreCompoundLayout",{enumerable:!0,get:function(){return l.DagreCompoundLayout}});var c=Km;Object.defineProperty(t,"RadialLayout",{enumerable:!0,get:function(){return c.RadialLayout}});var h=bl;Object.defineProperty(t,"ConcentricLayout",{enumerable:!0,get:function(){return h.ConcentricLayout}});var d=wl;Object.defineProperty(t,"MDSLayout",{enumerable:!0,get:function(){return d.MDSLayout}});var v=xl;Object.defineProperty(t,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var p=El;Object.defineProperty(t,"FruchtermanGPULayout",{enumerable:!0,get:function(){return p.FruchtermanGPULayout}});var g=_l;Object.defineProperty(t,"GForceGPULayout",{enumerable:!0,get:function(){return g.GForceGPULayout}});var y=Sl;Object.defineProperty(t,"ComboForceLayout",{enumerable:!0,get:function(){return y.ComboForceLayout}});var m=iO();Object.defineProperty(t,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var b=Ml;Object.defineProperty(t,"ForceAtlas2Layout",{enumerable:!0,get:function(){return b.ForceAtlas2Layout}});var w=Al;Object.defineProperty(t,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var x=Nse();Object.defineProperty(t,"Layout",{enumerable:!0,get:function(){return x.Layout}}),Object.defineProperty(t,"Layouts",{enumerable:!0,get:function(){return x.Layouts}}),r(hO,t)}(Fp)),Fp}(function(t){var e=me&&me.__createBinding||(Object.create?function(a,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(a,s,u)}:function(a,i,o,s){s===void 0&&(s=o),a[s]=i[o]}),r=me&&me.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&e(i,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.getLayoutByName=t.unRegisterLayout=t.registerLayout=void 0;var n=gi;Object.defineProperty(t,"registerLayout",{enumerable:!0,get:function(){return n.registerLayout}}),Object.defineProperty(t,"unRegisterLayout",{enumerable:!0,get:function(){return n.unRegisterLayout}}),Object.defineProperty(t,"getLayoutByName",{enumerable:!0,get:function(){return n.getLayoutByName}}),r(dO(),t)})(Kt);function Ose(t,e,r,n){return n===void 0&&(n="height"),r==="center"?(t[n]+e[n])/2:t.height}var oo={assign:Object.assign,getHeight:Ose},vO=oo,c1=18,Lse=c1*2,B2=c1,Dse={getId:function(e){return e.id||e.name},getPreH:function(e){return e.preH||0},getPreV:function(e){return e.preV||0},getHGap:function(e){return e.hgap||B2},getVGap:function(e){return e.vgap||B2},getChildren:function(e){return e.children},getHeight:function(e){return e.height||Lse},getWidth:function(e){var r=e.label||" ";return e.width||r.split("").length*c1}};function dd(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof dd)return t;r.data=t;var n=e.getHGap(t),a=e.getVGap(t);return r.preH=e.getPreH(t),r.preV=e.getPreV(t),r.width=e.getWidth(t),r.height=e.getHeight(t),r.width+=r.preH,r.height+=r.preV,r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(n,a),r}vO.assign(dd.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){var n=this;n.hgap+=e,n.vgap+=r,n.width+=2*e,n.height+=2*r},eachNode:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=a.children.concat(n)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=n.concat(a.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(n){n.x+=e,n.y+=r,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.x=n.x-(n.x-r.left)*2-n.width}),e.translate(r.width,0)},bottom2top:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.y=n.y-(n.y-r.top)*2-n.height}),e.translate(0,r.height)}});function Pse(t,e,r){e===void 0&&(e={}),e=vO.assign({},Dse,e);var n=new dd(t,e),a=[n],i;if(!r&&!t.collapsed){for(;i=a.shift();)if(!i.data.collapsed){var o=e.getChildren(i.data),s=o?o.length:0;if(i.children=new Array(s),o&&s)for(var u=0;uw.low&&(w=w.nxt);var A=E+x.prelim+x.w-(S+_.prelim);A>0&&(S+=A,o(m,b,w.index,A));var M=f(x),C=f(_);M<=C&&(x=u(x),x!==null&&(E+=x.mod)),M>=C&&(_=s(_),_!==null&&(S+=_.mod))}!x&&_?l(m,b,_,S):x&&!_&&c(m,b,x,E)}function o(m,b,w,x){m.c[b].mod+=x,m.c[b].msel+=x,m.c[b].mser+=x,v(m,b,w,x)}function s(m){return m.cs===0?m.tl:m.c[0]}function u(m){return m.cs===0?m.tr:m.c[m.cs-1]}function f(m){return m.y+m.h}function l(m,b,w,x){var E=m.c[0].el;E.tl=w;var _=x-w.mod-m.c[0].msel;E.mod+=_,E.prelim-=_,m.c[0].el=m.c[b].el,m.c[0].msel=m.c[b].msel}function c(m,b,w,x){var E=m.c[b].er;E.tr=w;var _=x-w.mod-m.c[b].mser;E.mod+=_,E.prelim-=_,m.c[b].er=m.c[b-1].er,m.c[b].mser=m.c[b-1].mser}function h(m){m.prelim=(m.c[0].prelim+m.c[0].mod+m.c[m.cs-1].mod+m.c[m.cs-1].prelim+m.c[m.cs-1].w)/2-m.w/2}function d(m,b){b+=m.mod,m.x=m.prelim+b,p(m);for(var w=0;w=w.low;)w=w.nxt;return{low:m,index:b,nxt:w}}bO(t,r);var y=mf.fromNode(t,r);return n(y),d(y,0),mO(y,t,r),Bse(t,r),t},G2=pO,wO=function(t,e){for(var r=G2(t.data,e,!0),n=G2(t.data,e,!0),a=t.children.length,i=Math.round(a/2),o=e.getSide||function(l,c){return c-1},$se=Fi[0],h1=function(t,e,r){var n=e.direction||$se;if(e.isHorizontal=Use(n),Fi.indexOf(n)===-1)throw new TypeError("Invalid direction: "+n);if(n===Fi[0])r(t,e);else if(n===Fi[1])r(t,e),t.right2left();else if(n===Fi[2])r(t,e);else if(n===Fi[3])r(t,e),t.bottom2top();else if(n===Fi[4]||n===Fi[5]){var a=zse(t,e),i=a.left,o=a.right;r(i,e),r(o,e),e.isHorizontal?i.right2left():i.bottom2top(),o.translate(i.x-o.x,i.y-o.y),t.x=i.x,t.y=o.y;var s=t.getBoundingBox();e.isHorizontal?s.top<0&&t.translate(0,-s.top):s.left<0&&t.translate(-s.left,0)}var u=e.fixedRoot;return u===void 0&&(u=!0),u&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),Xse(t,e),t};function Xse(t,e){if(e.radial){var r=e.isHorizontal?["x","y"]:["y","x"],n=r[0],a=r[1],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(l){s++;var c=l.x,h=l.y;i.x=Math.min(i.x,c),i.y=Math.min(i.y,h),o.x=Math.max(o.x,c),o.y=Math.max(o.y,h)});var u=o[a]-i[a];if(u===0)return;var f=Math.PI*2/s;t.DFTraverse(function(l){var c=(l[a]-i[a])/u*(Math.PI*2-f)+f,h=l[n]-t[n];l.x=Math.cos(c)*h,l.y=Math.sin(c)*h})}}function Wse(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xg(t,e)}function Xg(t,e){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xg(t,e)}var Vse=hv,Yse=Gse,qse=h1,Hse=oo,Zse=function(t){function e(){return t.apply(this,arguments)||this}Wse(e,t);var r=e.prototype;return r.execute=function(){var a=this;return qse(a.rootNode,a.options,Yse)},e}(Vse),Kse={};function Qse(t,e){return e=Hse.assign({},Kse,e),new Zse(t,e).execute()}var Jse=Qse,eue=oo;function tue(t,e){e===void 0&&(e=[]);var r=this;r.x=r.y=0,r.leftChild=r.rightChild=null,r.height=0,r.children=e}var rue={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function xO(t,e,r){r?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach(function(n,a){xO(n,e.children[a],r)})}var nue=function(t,e){e===void 0&&(e={}),e=eue.assign({},rue,e);var r=0;function n(u){if(!u)return null;u.width=0,u.depth&&u.depth>r&&(r=u.depth);var f=u.children,l=f.length,c=new tue(u.height,[]);return f.forEach(function(h,d){var v=n(h);c.children.push(v),d===0&&(c.leftChild=v),d===l-1&&(c.rightChild=v)}),c.originNode=u,c.isLeaf=u.isLeaf(),c}function a(u){if(u.isLeaf||u.children.length===0)u.drawingDepth=r;else{var f=u.children.map(function(c){return a(c)}),l=Math.min.apply(null,f);u.drawingDepth=l-1}return u.drawingDepth}var i;function o(u){u.x=u.drawingDepth*e.rankSep,u.isLeaf?(u.y=0,i&&(u.y=i.y+i.height+e.nodeSep,u.originNode.parent!==i.originNode.parent&&(u.y+=e.subTreeSep)),i=u):(u.children.forEach(function(f){o(f)}),u.y=(u.leftChild.y+u.rightChild.y)/2)}var s=n(t);return a(s),o(s),xO(s,t,e.isHorizontal),t};function aue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wg(t,e)}function Wg(t,e){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Wg(t,e)}var iue=hv,oue=nue,sue=h1,uue=oo,fue=function(t){function e(){return t.apply(this,arguments)||this}aue(e,t);var r=e.prototype;return r.execute=function(){var a=this;return a.rootNode.width=0,sue(a.rootNode,a.options,oue)},e}(iue),lue={};function cue(t,e){return e=uue.assign({},lue,e),new fue(t,e).execute()}var hue=cue,z2=oo;function due(t,e,r,n,a){var i=(typeof r=="function"?r(t):r)*t.depth;if(!n)try{if(t.id===t.parent.children[0].id){t.x+=i,t.y=e?e.y:0;return}}catch{}if(t.x+=i,e){if(t.y=e.y+z2.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var o=e.parent,s=o.y+z2.getHeight(o,t,a);t.y=s>t.y?s:t.y}}else t.y=0}var vue=function(t,e,r,n){var a=null;t.eachNode(function(i){due(i,a,e,r,n),a=i})};function pue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Vg(t,e)}function Vg(t,e){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vg(t,e)}var gue=hv,Vc=vue,yue=wO,mue=oo,bf=["LR","RL","H"],bue=bf[0],wue=function(t){function e(){return t.apply(this,arguments)||this}pue(e,t);var r=e.prototype;return r.execute=function(){var a=this,i=a.options,o=a.rootNode;i.isHorizontal=!0;var s=i.indent,u=s===void 0?20:s,f=i.dropCap,l=f===void 0?!0:f,c=i.direction,h=c===void 0?bue:c,d=i.align;if(h&&bf.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===bf[0])Vc(o,u,l,d);else if(h===bf[1])Vc(o,u,l,d),o.right2left();else if(h===bf[2]){var v=yue(o,i),p=v.left,g=v.right;Vc(p,u,l,d),p.right2left(),Vc(g,u,l,d);var y=p.getBoundingBox();g.translate(y.width,0),o.x=g.x-o.width/2}return o},e}(gue),xue={};function Eue(t,e){return e=mue.assign({},xue,e),new wue(t,e).execute()}var _ue=Eue,Sue=oo;function EO(t,e){var r=0;return t.children.length?t.children.forEach(function(n){r+=EO(n,e)}):r=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,r)+2*t._subTreeSep,t.totalHeight}function _O(t){var e=t.children,r=e.length;if(r){e.forEach(function(u){_O(u)});var n=e[0],a=e[r-1],i=a.y-n.y+a.height,o=0;if(e.forEach(function(u){o+=u.totalHeight}),i>t.height)t.y=n.y+i/2-t.height/2;else if(e.length!==1||t.height>o){var s=t.y+(t.height-i)/2-n.y;e.forEach(function(u){u.translate(0,s)})}else t.y=(n.y+n.height/2+a.y+a.height/2)/2-t.height/2}}var Mue={getSubTreeSep:function(){return 0}},Aue=function(t,e){e===void 0&&(e={}),e=Sue.assign({},Mue,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(r){r.x=r.parent.x+r.parent.width}),t.parent=null,EO(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(r){var n=r.children,a=n.length;if(a){var i=n[0];if(i.startY=r.startY+r._subTreeSep,a===1)i.y=r.y+r.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var o=1;o=0&&(s="x",o="y");var u=0;U2(e,function(c){return u++,c.x>i.x&&(i.x=c.x),c.xi.y&&(i.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var r=document.createElement("div");return r.id="webgl-error-message",r.style.fontFamily="monospace",r.style.fontSize="13px",r.style.fontWeight="normal",r.style.textAlign="center",r.style.background="#fff",r.style.color="#000",r.style.padding="1.5em",r.style.width="400px",r.style.margin="5em auto 0",this.webgl||(r.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` +`)),r},addGetWebGLMessage:function(r){r=r||{};var n=r.parent!==void 0?r.parent:document.body,a=r.id!==void 0?r.id:"oldie",i=d1().getWebGLErrorMessage();i.id=a,n.appendChild(i)}}};const Vue=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:d1},Symbol.toStringTag,{value:"Module"}));var SO=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const Yue=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:SO},Symbol.toStringTag,{value:"Module"}));var so=P(P(P(P(P({},Za),yX),Wue),Vue),Yue);so.radialLayout;Kt.registerLayout("grid",Kt.GridLayout);Kt.registerLayout("random",Kt.RandomLayout);Kt.registerLayout("force",Kt.ForceLayout);Kt.registerLayout("circular",Kt.CircularLayout);Kt.registerLayout("dagre",Kt.DagreLayout);Kt.registerLayout("dagreCompound",Kt.DagreCompoundLayout);Kt.registerLayout("radial",Kt.RadialLayout);Kt.registerLayout("concentric",Kt.ConcentricLayout);Kt.registerLayout("mds",Kt.MDSLayout);Kt.registerLayout("fruchterman",Kt.FruchtermanLayout);Kt.registerLayout("fruchterman-gpu",Kt.FruchtermanGPULayout);Kt.registerLayout("gForce",Kt.GForceLayout);Kt.registerLayout("force2",Kt.Force2Layout);Kt.registerLayout("gForce-gpu",Kt.GForceGPULayout);Kt.registerLayout("comboForce",Kt.ComboForceLayout);Kt.registerLayout("comboCombined",Kt.ComboCombinedLayout);Kt.registerLayout("forceAtlas2",Kt.ForceAtlas2Layout);var que=function(){function t(e,r){var n=e.toString(),a=new Blob(["importScripts('".concat(r,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(a))}return t}(),Hue=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function r(){var a={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function i(s){var u=s.data.type;return u===a.RUN||u===a.GPURUN}function o(s){var u=this,f=s.data.type;switch(f){case a.RUN:{var l=s.data,c=l.nodes,h=l.edges,d=l.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}var y;v.onLayoutEnd=function(){u.postMessage({type:a.END,nodes:c}),y==null||y.destroy()},y=new g(v),y.init({nodes:c,edges:h}),y.execute();break}case a.GPURUN:{var m=s.data,b=m.nodes,h=m.edges,w=m.layoutCfg,v=w===void 0?{}:w,x=m.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:a.ERROR,message:"layout ".concat(p," does not support GPU")});break}var E=new g(v);E.init({nodes:b,edges:h}),E.executeWithWorker(x,this);break}}}onmessage=function(u){i(u)&&o(u)}}var n=new que(r,e);return n},ks={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function qg(t){"@babel/helpers - typeof";return qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qg(t)}var $2=function(e){return setTimeout(e,16)},X2=function(e){return clearTimeout(e)},Yc={requestAnimationFrame:function(e){var r=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||$2;return r(e)},cancelAnimationFrame:function(e){var r=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||X2;return r(e)}},Zue=["fruchterman","gForce"],Kue=["force","grid","circular"],Que=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.graph=r,n.layoutCfg=r.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Hue(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var r=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,r.requestId&&(Yc.cancelAnimationFrame(r.requestId),r.requestId=null),r.requestId2&&(Yc.cancelAnimationFrame(r.requestId2),r.requestId2=null))},e.prototype.execLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,p,h,d,v,p,g;return Gn(this,function(y){switch(y.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];u=r.type,r.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},u&&this.isGPU&&(MO(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Za.isForce(u)?(f=r.onTick,l=r.animate,c=l===void 0&&(u==="force"||u==="force2"),p=function(){f&&f(),(l||c)&&s.refreshPositions()},r.tick=p):(u==="comboForce"||u==="comboCombined")&&(r.comboTrees=s.get("comboTrees")),h=!1;try{d=new Kt.Layouts[u](r),this.layoutMethods[n]&&this.layoutMethods[n].destroy(),this.layoutMethods[n]=d}catch{console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),o()}return h=d.enableTick,h&&(v=r.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,r),tfe(g,n),d.init(g),s.emit("beforesublayout",{type:u}),[4,d.execute()];case 1:return y.sent(),d.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this.graph,u=n==null?void 0:n.type,n.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},Za.isForce(u)&&(f=n.onTick,l=n.animate,c=l===void 0&&(u==="force"||u==="force2"),h=function(){f==null||f(),(l||c)&&s.refreshPositions()},n.tick=h),d=this.filterLayoutData(this.data,n),r.init(d),r.updateCfg(n),s.emit("beforesublayout",{type:u}),[4,r.execute()];case 1:return v.sent(),r.isCustomLayout&&n.onLayoutEnd&&n.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(r){var n=this,a,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,u=o.hiddenNodes;if(!s)return!1;var f=i.get("width"),l=i.get("height"),c={};Object.assign(c,{width:f,height:l,center:[f/2,l/2]},this.layoutCfg),this.layoutCfg=c;var h=c.type,d=!1;(a=this.layoutMethods)===null||a===void 0||a.forEach(function(x){var E;return d=!!(!((E=x.nodes)===null||E===void 0)&&E.length)||d});var v=this.destoryLayoutMethods();i.emit("beforelayout");var p=Promise.resolve();d&&h&&(v==null?void 0:v.length)===1&&v[0]===h?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,u);g.then(),this.isGPU=W2(c,h);var y=c.onLayoutEnd,m=c.layoutEndFormatted,b=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return y&&y(s),this.refreshLayout(),b&&c.pipes?[4,this.adjustPipesBox(this.data,b)]:[3,2];case 1:x.sent(),this.refreshLayout(),x.label=2;case 2:return i.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,r))return!0;var w=!1;return c.type?(w=!0,p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,x.sent()]}})})})):c.pipes&&(w=!0,c.pipes.forEach(function(x,E){p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(_){switch(_.label){case 0:return[4,this.execLayoutMethod(x,E)];case 1:return[2,_.sent()]}})})})})),w?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),r&&r()}).catch(function(x){console.warn("graph layout failed,",x)}):(i.refreshPositions(),r==null||r()),!1}},e.prototype.tweakInit=function(){var r=this,n=r.data,a=r.graph,i=n.nodes,o=n.edges;if(i!=null&&i.length){var s={};i.forEach(function(l){var c=l.x,h=l.y;!isNaN(c)&&!isNaN(h)&&(s[l.id]={x:c,y:h},l.mass=l.mass||2)}),o.forEach(function(l){var c=l.source,h=l.target,d=s[c],v=s[h];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[h]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var u=a.get("width"),f=a.get("height");i.forEach(function(l){var c=s[l.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};l.x=c.x,l.y=c.y})}},e.prototype.initWithPreset=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this,u=s.layoutCfg,f=s.data,l=u.preset,!(l!=null&&l.type)||!Kt.Layouts[l==null?void 0:l.type]?(n==null||n(),i(),[2,!1]):(c=W2(l,l.type),h=c?"".concat(l.type,"-gpu"):l.type,d=new Kt.Layouts[h](l),delete u.preset,d.init(f),[4,d.execute()]);case 1:return v.sent(),r==null||r(),i(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(r,n){var a=this,i=this,o=i.layoutCfg,s=i.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,s.emit("beforelayout");var l=Promise.resolve(),c=!1;if(o.type)c=!0,l=l.then(function(){return a.runWebworker(u,r,o)});else if(o.pipes){c=!0;for(var h=function(y){l=l.then(function(){return a.runWebworker(u,r,y)})},d=0,v=o.pipes;d'),l=a?a.backgroundColor:void 0,c=a?a.padding:void 0;c?Ot(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var h=o+c[0]+c[2],d=s+c[1]+c[3],v={container:f,height:h,width:d,quickHit:!0},p=u==="svg"?new Tp(v):new qu(v),g=this.get("group"),y=g.clone(),m=rr(y.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var b=(i.maxX+i.minX)/2,w=(i.maxY+i.minY)/2;m=V2(m,[["t",-b,-w],["t",s/2+c[3],o/2+c[0]]]),y.resetMatrix(),y.setMatrix(m),p.add(y);var x=p.get("el"),E="";n||(n="image/png"),setTimeout(function(){if(u==="svg"){var _=x.cloneNode(!0),S=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),A=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",S);A.replaceChild(_,A.documentElement);var M=new XMLSerializer().serializeToString(A);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(M))}else{var C=void 0,I=x.getContext("2d"),k=void 0;if(l){var O=typeof window<"u"?window.devicePixelRatio:1;try{C=I.getImageData(0,0,d*O,h*O),k=I.globalCompositeOperation,I.globalCompositeOperation="destination-over",I.fillStyle=l,I.fillRect(0,0,d,h)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}E=x.toDataURL(n),l&&(I.clearRect(0,0,d,h),I.putImageData(C,0,0),I.globalCompositeOperation=k)}r&&r(E)},16)},e.prototype.downloadFullImage=function(r,n,a){var i=this,o=this.get("group").getCanvasBBox(),s=o.height,u=o.width,f=this.get("renderer"),l=cg('
'),c=document.querySelector(".g6-graph-watermarker"),h=a?a.backgroundColor:void 0,d=a?a.padding:void 0;d?Ot(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=u+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},y=g.width,m=g.height;v=Math.ceil(v/m)*m,p=Math.ceil(p/y)*y}var b={container:l,height:v,width:p},w=f==="svg"?new Tp(b):new qu(b),x=this.get("group"),E=wX(x),_=rr(E.getMatrix());_||(_=[1,0,0,0,1,0,0,0,1]);var S=(o.maxX+o.minX)/2,A=(o.maxY+o.minY)/2;_=V2(_,[["t",-S,-A],["t",u/2+d[3],s/2+d[0]]]),E.resetMatrix(),E.setMatrix(_),w.add(E);var M=w.get("el");n||(n="image/png"),this.asyncToDataUrl(n,h,function(C){var I=document.createElement("a"),k=(r||"graph")+(f==="svg"?".svg":".".concat(n.split("/")[1]));i.dataURLToImage(C,f,I,k);var O=document.createEvent("MouseEvents");O.initEvent("click",!1,!1),I.dispatchEvent(O)},p,v,M)},e.prototype.downloadImage=function(r,n,a){var i=this,o=this;o.stopAnimate();var s=o.get("canvas"),u=s.getRenderer();n||(n="image/png");var f=(r||"graph")+(u==="svg"?".svg":".".concat(n.split("/")[1])),l=document.createElement("a");o.asyncToDataUrl(n,a,function(c){i.dataURLToImage(c,u,l,f);var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),l.dispatchEvent(h)})},e.prototype.dataURLToImage=function(r,n,a,i){if(!r||r==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&n!=="svg"){var o=r.split(","),s="";if(o&&o.length>0){var u=o[0].match(/:(.*?);/);u&&u.length>=2&&(s=u[1])}for(var f=atob(o[1]),l=f.length,c=new Uint8Array(l);l--;)c[l]=f.charCodeAt(l);var h=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,i):a.addEventListener("click",function(){a.download=i,a.href=window.URL.createObjectURL(h)})}else a.addEventListener("click",function(){a.download=i,a.href=r})},e.prototype.addPlugin=function(r){var n=this;r.destroyed||(n.get("plugins").push(r),r.initPlugin(n))},e.prototype.removePlugin=function(r){var n=this.get("plugins"),a=n.indexOf(r);a>=0&&(r.destroyPlugin(),n.splice(a,1))},e.prototype.setImageWaterMarker=function(r,n){r===void 0&&(r=Mf.waterMarkerImage);var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.imageWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.image;if(!r){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.x,y=l.y;v.rotate(-p*Math.PI/180);var m=new Image;m.crossOrigin="anonymous",m.src=r,m.onload=function(){if(v.drawImage(m,g,y,l.width,l.height),v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var b=document.querySelector(".g6-graph-watermarker");b||(b=document.createElement("div"),b.className="g6-graph-watermarker"),b.className="g6-graph-watermarker",i.destroyed||(b.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),a.appendChild(b))}}},e.prototype.setTextWaterMarker=function(r,n){var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.textWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.text;if(!(r!=null&&r.length)){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.fill,y=l.fontFamily,m=l.fontSize,b=l.baseline,w=l.x,x=l.y,E=l.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(m,"px ").concat(y),v.fillStyle=g,v.textBaseline=b;for(var _=Ye(r)?[r]:r,S=_.length-1;S>=0;S--)v.fillText(_[S],w,x+S*E);if(v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||(A=document.createElement("div"),A.className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),a.appendChild(A)}},e.prototype.destroy=function(){var r,n,a,i;_e(this.get("plugins"),function(l){l.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var f=s.length-1;f>=0;f--){var l=s[f].getModel();e.indexOfChild(r.children||[],l.id)===-1&&(i.innerRemoveChild(l.id,{x:r.x,y:r.y},a),s.splice(f,1))}}var c,h;o.get("originAttrs")&&(c=o.get("originAttrs").x,h=o.get("originAttrs").y);var d=o.getModel();a&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,r.data)),(c!==r.x||h!==r.y)&&o.updatePosition({x:r.x,y:r.y})},e.prototype.innerRemoveChild=function(r,n,a){var i=this,o=i.findById(r);if(o)if(_e(o.get("children"),function(u){i.innerRemoveChild(u.getModel().id,n,a)}),a){var s=o.getModel();o.set("to",n),o.set("originAttrs",{x:s.x,y:s.y}),i.get("removeList").push(o)}else i.removeItem(o,!1)},e.prototype.changeData=function(r,n){n===void 0&&(n=!0);var a=this;this.getNodes().map(function(i){return a.clearItemStates(i)}),this.getEdges().map(function(i){return a.clearItemStates(i)}),n&&this.get("enabledStack")&&this.pushStack("changedata",{before:a.get("originData"),after:r||a.get("data")}),r?(a.data(r),a.render(!1)):a.layout(this.get("fitView"))},e.prototype.changeLayout=function(r){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var n=this;n.updateLayout(r)},e.prototype.updateLayout=function(r,n,a,i){i===void 0&&(i=!0);var o=this;if(!r){console.warn("layout cannot be null");return}if(i&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:r}),o.set("layout",r),o.set("layoutMethod",o.getLayout()),o.layout(),n){var s=a;s||(n==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*u[0]+u[6],s.y=s.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY,v={x:(l+c)/2,y:(h+d)/2};n==="begin"&&(v.x=l,v.y=h),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(r){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var n=this;n.layout(r)},e.prototype.layout=function(r){var n=this,a=this,i=a.get("data"),o=a.get("layoutMethod"),s=a.get("layout"),u=i;if(s!=null&&s.excludeInvisibles){i=rr(a.get("data"));var f={};y0(i,function(h){var d=h.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=n.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(f[h.id]=f[h.id]||[],f[h.id].push({idx:v,child:d.splice(v,1)[0]}))}}),u=o?o(i,a.get("layout")):i,y0(u,function(h){var d=f[h.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,y=p.child;h.children.splice(g,0,y)}})}else u=o?o(i,a.get("layout")):i;var l=a.get("animate");if(a.emit("beforerefreshlayout",{data:i,layoutData:u}),a.emit("beforelayout"),a.innerUpdateChild(u,void 0,l),r){var c=a.get("viewController");c.fitView()}l?a.layoutAnimate(u):(a.refresh(),a.paint()),a.emit("afterrefreshlayout",{data:i,layoutData:u}),a.emit("afterlayout")},e.prototype.addChild=function(r,n,a){a===void 0&&(a=!0);var i=this;i.emit("beforeaddchild",{model:r,parent:n}),Ye(n)||(n=n.get("id"));var o=i.findDataById(n);if(o){o.children||(o.children=[]),o.children.push(r);var s=i.findById(n);s.refresh(),i.changeData(void 0,a)}},e.prototype.updateChildren=function(r,n,a){a===void 0&&(a=!0);var i=this,o=i.findById(n);if(!n||!o){console.warn("Update children failed! There is no node with id '".concat(n,"'"));return}var s=i.findDataById(n);s.children=r,o.refresh(),i.changeData(void 0,a)},e.prototype.updateChild=function(r,n,a){a===void 0&&(a=!0);var i=this;if(!n||!i.findById(n)){i.changeData(r,a);return}var o=i.findDataById(n),s=i.findById(r.id);if(o.children||(o.children=[]),!s)o.children.push(r);else{var u=e.indexOfChild(o.children,r.id);u>-1&&(o.children[u]=r)}var f=i.findById(n);f==null||f.refresh(),i.changeData(void 0,a)},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r),o;if(i?o=i==null?void 0:i.get("parent"):o=a.getNodes().find(function(c){var h=c.getModel().children||[];return!!h.find(function(d){return d.id===r})}),o&&!o.destroyed){var s=o.get("id"),u=a.findDataById(s),f=u&&u.children||[],l=e.indexOfChild(f,r);f.splice(l,1),o.refresh()}a.changeData(void 0,n)},e.prototype.findDataById=function(r,n){var a=this;if(n||(n=a.get("data")),r===n.id)return n;var i=null;return _e(n.children||[],function(o){if(o.id===r)return i=o,!1;if(i=a.findDataById(r,o),i)return!1}),i},e.prototype.layoutAnimate=function(r,n){var a=this,i=this.get("animateCfg");a.emit("beforeanimate",{data:r}),a.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){y0(r,function(s){var u=a.findById(s.id);if(u){var f=u.get("originAttrs"),l=u.get("model");if(f||(f={x:l.x,y:l.y},u.set("originAttrs",f)),n){var c=n(u,o,f,r);u.set("model",Object.assign(l,c))}else l.x=f.x+(s.x-f.x)*o,l.y=f.y+(s.y-f.y)*o}return!0}),_e(a.get("removeList"),function(s){var u=s.getModel(),f=s.get("originAttrs"),l=s.get("to");u.x=f.x+(l.x-f.x)*o,u.y=f.y+(l.y-f.y)*o}),a.refreshPositions()},{duration:i.duration,easing:i.ease,callback:function(){_e(a.getNodes(),function(s){s.set("originAttrs",null)}),_e(a.get("removeList"),function(s){a.removeItem(s,!1)}),a.set("removeList",[]),i.callback&&i.callback(),a.emit("afteranimate",{data:r})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(r){r===void 0&&(r=!0);var n=this,a=n.get("data");if(!a||!gn(a)||!Object.keys(a).length)throw new Error("data must be defined first");n.clear(),r&&this.get("enabledStack")&&this.clearStack(),n.emit("beforerender"),n.layout(this.get("fitView")),n.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(r){t.prototype.data.call(this,r),this.set("originData",nfe(r))},e})(AO);ro("circle",{options:{size:Qe.defaultNode.size,style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=_r({},a,e.icon),s="".concat(this.type,"-keyShape"),u=r.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});r.shapeMap[s]=u;var f=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");h?r.shapeMap[d]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):r.shapeMap[d]=r.addShape("image",{attrs:P({x:-f/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,r),u},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints;if(n){var a=n||{},i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2;if(o){var v="link-point-left";r.shapeMap[v]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";r.shapeMap[p]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(i){var g="link-point-top";r.shapeMap[g]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-d,r:f/2||l||5}),className:g,name:g,isAnchorPoint:!0})}if(u){var y="link-point-bottom";r.shapeMap[y]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:d,r:f/2||l||5}),className:y,name:y,isAnchorPoint:!0})}}},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=_r({},r,n),i=this.getSize(e),o=i[0]/2,s=P({x:0,y:0,r:o},a);return s},update:function(e,r,n){var a=r.getContainer(),i=this.getSize(e),o=P({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(i[0])&&(o.r=i[0]/2),this.updateShape(e,r,o,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("rect",{options:{size:[100,30],style:{radius:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:P({},Qe.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return r.shapeMap["".concat(this.type,"-keyShape")]=a,this.drawLinkPoints(e,r),a},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s=r.get("keyShape");e.size||(o[0]=s.attr("width")||i.width,o[1]=s.attr("height")||i.height);var u={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},f=Et({},i,s.attr(),u);f=Et(f,e.style),this.updateShape(e,r,f,!1,n),this.updateLinkPoints(e,a)}},"single-node");ro("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});r.shapeMap["ellipse-keyShape"]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2,v=h[1]/2;o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=i[0]/2,s=i[1]/2,u=P({x:0,y:0,rx:o,ry:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("diamond",{options:{size:[80,80],style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var r=this.getSize(e),n=r[0],a=r[1],i=[["M",0,-a/2],["L",n/2,0],["L",0,a/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("triangle",{options:{size:40,direction:"up",style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.icon,i=a===void 0?{}:a,o=n.direction,s=this.getShapeStyle(e),u=e.direction||o,f=r.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=i.width,c=i.height,h=i.show,d=i.offset,v=i.text;if(h)if(v)r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,g=-c/2;(u==="up"||u==="down")&&(g+=d),(u==="left"||u==="right")&&(p+=d),r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,r),f},drawLinkPoints:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.linkPoints,i=a===void 0?{}:a,o=n.direction,s=e.direction||o,u=i.top,f=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,v=Kr(i,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(f){var y=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?y=[-b,m]:s==="down"?y=[-b,-m]:s==="left"&&(y=[-b,b-m]),y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},v),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var w=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?w=[b,m]:s==="down"?w=[b,-m]:s==="right"&&(w=[b,b-m]),w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},v),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var x=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?x=[b-m,-m]:s==="left"?x=[b,-m]:s==="right"&&(x=[-b,-m]),x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},v),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var E=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="down"?E=[-b+m,m]:s==="left"?E=[b,m]:s==="right"&&(E=[-b,m]),E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},v),{x:E[0],y:E[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var r=(this.mergeStyle||this.getOptions(e)).direction,n=e.direction||r,a=this.getSize(e),i=a[0],o=i*Math.sin(1/3*Math.PI),s=i*Math.sin(1/3*Math.PI),u=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return n==="down"?u=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:n==="left"?u=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:n==="right"&&(u=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),u},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}),a=n.linkPoints,i=n.direction,o=e.direction||i,s=r.shapeMap["link-point-left"]||r.find(function(L){return L.get("className")==="link-point-left"}),u=r.shapeMap["link-point-right"]||r.find(function(L){return L.get("className")==="link-point-right"}),f=r.shapeMap["link-point-top"]||r.find(function(L){return L.get("className")==="link-point-top"}),l=r.shapeMap["link-point-bottom"]||r.find(function(L){return L.get("className")==="link-point-bottom"}),c=a,h=s||u||f||l;h&&(c=h.attr());var d=Et({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,y=d.size/2;y||(y=d.r);var m=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},b=m.left,w=m.right,x=m.top,E=m.bottom,_=this.getSize(e),S=_[0],A={r:y,fill:v,stroke:p,lineWidth:g},M=null,C=S*Math.sin(1/3*Math.PI),I=S*Math.sin(1/3*Math.PI);o==="up"?M=[-I,C]:o==="down"?M=[-I,-C]:o==="left"&&(M=[-I,I-C]),M&&(s?!b&&b!==void 0?(s.remove(),delete r.shapeMap["link-point-left"]):s.attr(P(P({},A),{x:M[0],y:M[1]})):b&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;o==="up"?k=[I,C]:o==="down"?k=[I,-C]:o==="right"&&(k=[I,I-C]),k&&(u?!w&&w!==void 0?(u.remove(),delete r.shapeMap["link-point-right"]):u.attr(P(P({},A),{x:k[0],y:k[1]})):w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;o==="up"?O=[I-C,-C]:o==="left"?O=[I,-C]:o==="right"&&(O=[-I,-C]),O&&(f?!x&&x!==void 0?(f.remove(),delete r.shapeMap["link-point-top"]):f.attr(P(P({},A),{x:O[0],y:O[1]})):x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},A),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var B=null;o==="down"?B=[-I+C,C]:o==="left"?B=[I,C]:o==="right"&&(B=[-I,C]),B&&(l?!E&&E!==void 0?(l.remove(),delete r.shapeMap["link-point-bottom"]):l.attr(P(P({},A),{x:B[0],y:B[1]})):E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},A),{x:B[0],y:B[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");ro("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Qe.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Qe.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Qe.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).preRect,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=this.getSize(e),s=o[0],u=o[1],f=r.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=a.show,c=Kr(a,["show"]);return l&&(r.shapeMap["pre-rect"]=r.addShape("rect",{attrs:P({x:-s/2,y:-u/2,height:u},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,r),this.drawStateIcon(e,r),this.drawLinkPoints(e,r),f},drawLogoIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).logoIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-logo-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):r.shapeMap["rect-logo-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||-o/2+s+c,y:l||-u/2,width:s,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).stateIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-state-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):r.shapeMap["rect-state-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||o/2-s+c,y:l||-u/2,width:s,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,r){var n=this.getOptions(e),a=n.labelCfg,i=a===void 0?{}:a,o=n.logoIcon,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=null,d=s.show,v=s.width,p=-c/2+i.offset;d&&(p=-c/2+v+i.offset);var g=i.style,y=f.style,m=f.paddingTop;return Ye(e.description)?(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h,r.shapeMap["rect-description"]=r.addShape("text",{attrs:P(P({},y),{x:p,y:17+(m||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h),h},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.style,i=a===void 0?{}:a,o=n.labelCfg,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=l[1],d=r.get("keyShape");d.attr(P(P({},i),{x:-c/2,y:-h/2,width:c,height:h}));var v=r.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(qe){return qe.get("className")==="rect-logo-icon"}),g=p?p.attr():{},y=Et({},g,e.logoIcon),m=y.width;m===void 0&&(m=this.options.logoIcon.width);var b=e.logoIcon?e.logoIcon.show:void 0,w=s.offset,x=-c/2+m+w;!b&&b!==void 0&&(x=-c/2+w);var E=v.shapeMap["node-label"]||v.find(function(qe){return qe.get("className")==="node-label"}),_=v.shapeMap["rect-description"]||v.find(function(qe){return qe.get("className")==="rect-description"});if(e.label)if(!E)v.shapeMap["node-label"]=v.addShape("text",{attrs:P(P({},s.style),{x,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var S=e.labelCfg?e.labelCfg.style:{},A=Et({},E.attr(),S);e.label&&(A.text=e.label),A.x=x,Ye(e.description)&&(A.y=-5),_&&(_.resetMatrix(),_.attr({x})),E.resetMatrix(),E.attr(A)}if(Ye(e.description)){var M=f.paddingTop;if(!_)v.shapeMap["rect-description"]=v.addShape("text",{attrs:P(P({},f.style),{x,y:17+(M||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var S=e.descriptionCfg?e.descriptionCfg.style:{},C=Et({},_.attr(),S);Ye(e.description)&&(C.text=e.description),C.x=x,_.resetMatrix(),_.attr(P(P({},C),{y:17+(M||0)}))}}var I=v.shapeMap["pre-rect"]||v.find(function(qe){return qe.get("className")==="pre-rect"});if(I&&!I.destroyed){var k=Et({},I.attr(),e.preRect);I.attr(P(P({},k),{x:-c/2,y:-h/2,height:h}))}if(p&&!p.destroyed)if(!b&&b!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var O=y.width,B=y.height,L=y.x,z=y.y,X=y.offset,R=Kr(y,["width","height","x","y","offset"]);p.attr(P(P({},R),{x:L||-c/2+O+X,y:z||-B/2,width:O,height:B}))}else b&&this.drawLogoIcon(e,v);var V=v.shapeMap["rect-state-icon"]||v.find(function(qe){return qe.get("className")==="rect-state-icon"}),he=V?V.attr():{},ce=Et({},he,e.stateIcon);if(V){!ce.show&&ce.show!==void 0&&(V.remove(),delete v.shapeMap["rect-state-icon"]);var le=ce.width,B=ce.height,L=ce.x,z=ce.y,ie=ce.offset,Ie=Kr(ce,["width","height","x","y","offset"]);V.attr(P(P({},Ie),{x:L||c/2-le+ie,y:z||-B/2,width:le,height:B}))}else ce.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,r){return r==="move"?e:_r({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");ro("star",{options:{size:60,style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.leftBottom,f=a.rightBottom,l=a.size,c=a.r,h=Kr(a,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(u){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var r=this.getSize(e),n=r[0],a=n*3/8,i=e.innerR||a;return Za.getStarPath(n,i)},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-left-bottom"}),u=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-right-bottom"}),f=n,l=a||i||o||s||u;l&&(f=l.attr());var c=Et({},f,e.linkPoints),h=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=g.left,m=g.right,b=g.top,w=g.leftBottom,x=g.rightBottom,E=this.getSize(e),_=E[0],S={r:p,fill:h,stroke:d,lineWidth:v},A=Math.cos((18+72*0)/180*Math.PI)*_,M=Math.sin((18+72*0)/180*Math.PI)*_;i?!m&&m!==void 0?(i.remove(),delete r.shapeMap["link-point-right"]):i.attr(P(P({},S),{x:A,y:-M})):m&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos((18+72*1)/180*Math.PI)*_,M=Math.sin((18+72*1)/180*Math.PI)*_,o?!b&&b!==void 0?(o.remove(),delete r.shapeMap["link-point-top"]):o.attr(P(P({},S),{x:A,y:-M})):b&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos((18+72*2)/180*Math.PI)*_,M=Math.sin((18+72*2)/180*Math.PI)*_,a?!y&&y!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},S),{x:A,y:-M})):y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos((18+72*3)/180*Math.PI)*_,M=Math.sin((18+72*3)/180*Math.PI)*_,s?!w&&w!==void 0?(s.remove(),delete r.shapeMap["link-point-left-bottom"]):s.attr(P(P({},S),{x:A,y:-M})):w&&(r.shapeMap["link-point-left-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos((18+72*4)/180*Math.PI)*_,M=Math.sin((18+72*4)/180*Math.PI)*_,u?!x&&x!==void 0?(u.remove(),delete r.shapeMap["link-point-right-bottom"]):u.attr(P(P({},S),{x:A,y:-M})):x&&(r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Y2=Za.defaultSubjectColors,If="fan-shape-",TO=function(e,r){var n=0,a=[];return Object.keys(e).forEach(function(i){var o=+e[i];isNaN(o)||(a.push({key:i,value:o,color:r[i]}),n+=o)}),{totalValue:n,configs:a}},IO=function(e){var r=e.attr("r"),n=.6*r,a=(r+n)/2,i=r-n;return{lineWidth:i,arcR:a}},Zg=function(e,r){var n=r.arcR,a=r.arcBegin,i=r.beginAngle,o=r.config,s=r.fanIndex,u=r.lineWidth,f=r.totalValue,l=r.drawWhole,c=l===void 0?!1:l,h=r.updateShape,d=h===void 0?void 0:h,v=o.value/f;if(v<.001)return{beginAngle:i,arcBegin:a,shape:void 0,shouldEnd:!1};var p,g,y;if(c||v>.999)p=[n,1e-4],y=1;else{var m=v*Math.PI*2;g=i+m,p=[n*Math.cos(g),-n*Math.sin(g)],y=m>Math.PI?1:0}var b={path:[["M",a[0],a[1]],["A",n,n,0,y,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||Y2[s%Y2.length],lineWidth:u};return d?d.attr(b):e.shapeMap["".concat(If).concat(s)]=e.addShape("path",{attrs:b,name:"".concat(If).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(If).concat(s)],shouldEnd:c||v>.999}},ife=function(e,r,n){var a=e.donutAttrs,i=a===void 0?{}:a,o=e.donutColorMap,s=o===void 0?{}:o,u=Object.keys(i).length;if(i&&u>1){var f=TO(i,s),l=f.configs,c=f.totalValue;if(c){var h=IO(n),d=h.lineWidth,v=h.arcR,p=[v,0],g=0;if(u===1){Zg(r,{arcR:v,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var y=0;y=0;i--){var o=e[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,r.push(o))}return r},kO=function(e){return v1(e)},vd=function(e,r){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-r,minY:e.minY-r,maxX:e.maxX+r,maxY:e.maxY+r,height:e.height+2*r,width:e.width+2*r}:e},ufe=function(e,r){var n=Math.abs(e.x-r.centerX),a=Math.abs(e.y-r.centerY);return n===0&&a===0?0:n/r.width>a/r.height},Kg=function(e,r,n){var a=ufe(r,e);if(a===0){var i=e.centerX,o=e.centerY;return n.yr.x?i=e.maxX:n.xe.centerX?e.maxX:e.minX,y:r.y}:{x:r.x,y:r.y>e.centerY?e.maxY:e.minY}},q2=function(e,r){var n=Math.min(e.minX,r.minX),a=Math.min(e.minY,r.minY),i=Math.max(e.maxX,r.maxX),o=Math.max(e.maxY,r.maxY);return{centerX:(n+i)/2,centerY:(a+o)/2,minX:n,minY:a,maxX:i,maxY:o,height:o-a,width:i-n}},Qg=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},Hc=function(e,r){var n=e.x,a=e.y;return nr.maxX||ar.maxY},ffe=function(e,r){return re.maxX?[]:[{x:r,y:e.minY},{x:r,y:e.maxY}]},lfe=function(e,r){return re.maxY?[]:[{x:e.minX,y:r},{x:e.maxX,y:r}]},cfe=function(e,r){return ffe(e,r.x).concat(lfe(e,r.y))},Kf=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},hfe=function(e,r){var n=-2,a=0;return r.forEach(function(i){i&&(e.x===i.x&&(a+=n),e.y===i.y&&(a+=n))}),a},H2=function(e,r,n,a,i){return Kf(e,r)+Kf(e,n)+hfe(e,[r,n,a,i])},NO=function(e,r,n,a,i){i===void 0&&(i=0),e.unshift(r[a]),n[a]&&n[a]!==a&&i<=100&&NO(e,r,n,n[a],i+1)},Zc=function(e,r,n,a){var i=n.x-e.x,o=n.y-e.y,s=a.x-e.x,u=a.y-e.y,f=n.x-r.x,l=n.y-r.y,c=a.x-r.x,h=a.y-r.y,d=i*u-o*s,v=f*h-l*c,p=i*l-o*f,g=s*h-u*c;return d*v<=0&&p*g<=0},Jg=function(e,r,n){if(n.width||n.height){var a=Qg(n),i=a[0],o=a[1],s=a[2],u=a[3];return Zc(e,r,i,o)||Zc(e,r,i,u)||Zc(e,r,o,s)||Zc(e,r,s,u)}return!1},dfe=function(e,r,n,a){var i=[];return e.forEach(function(o){if(o!==r&&(o.x===r.x||o.y===r.y)){if(Jg(o,r,n)||Jg(o,r,a))return;i.push(o)}}),v1(i)},OO=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(e,r){for(var n=[0,r-1];n[1]-n[0]>1;){var a=Math.floor((n[0]+n[1])/2);if(this.arr[a].value>e.value)n[1]=a;else if(this.arr[a].value=0;r--)this.map[this.arr[r].id]?e=this.arr[r].id:this.arr.splice(r,1);return e},t.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},t.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},t}(),vfe=function(e,r,n,a,i,o,s){var u,f=[],l=(u={},u[r.id]=r,u),c={},h={},d={};h[r.id]=0,d[r.id]=H2(r,n,r);var v=new OO;v.add({id:r.id,value:d[r.id]});var p={};e.forEach(function(x){p[x.id]=x});for(var g;Object.keys(l).length;){var y=v.minId(!1);if(y)g=l[y];else break;if(g===n){var m=[];return NO(m,p,c,n.id),m}delete l[g.id],v.remove(g.id),f.push(g);var b=dfe(e,g,a,i),w=function(E){E.forEach(function(_){if(f.indexOf(_)===-1){var S=_.id;l[S]||(l[S]=_);var A=d[g.id]+Kf(g,_);if(h[S]&&A>=h[S]){v.add({id:S,value:d[S]});return}c[S]=g.id,h[S]=A,d[S]=h[S]+H2(_,n,r,o,s),v.add({id:S,value:d[S]})}})};w(b)}return[r,n]},pfe=function(e,r,n){return!(e.x===r.x&&r.x===n.x||e.y===r.y&&r.y===n.y)},gfe=function(e,r,n,a){var i=Kf(e,r),o=Kf(n,r);i=0;o--){var s=e[o];if(s.x===n.x?a.push(s):(a=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),a.length>2){var u=e.indexOf(a[1]);u>-1&&e.splice(u,1);continue}if(i.length>2){var u=e.indexOf(i[1]);u>-1&&e.splice(u,1)}}return e},mfe=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},bfe=function(e,r,n,a,i){return kO(LO(e,r,n,a,i.offset))},wfe={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:mfe,fallbackRoute:bfe},vi=function(e,r){var n=Math.round(Math.abs(e/r)),a=e<0?-1:1;return n<0?0:a*n},xfe=function(e,r,n){var a={};return e.forEach(function(i){if(i)for(var o=vd(i.getBBox(),n),s=vi(o.minX,r);s<=vi(o.maxX,r);s+=1)for(var u=vi(o.minY,r);u<=vi(o.maxY,r);u+=1)a["".concat(s,"|||").concat(u)]=!0}),a},m0=function(e,r){var n=r.x-e.x,a=r.y-e.y;return n||a?Math.atan2(a,n):0},K2=function(e,r){var n=Math.abs(e-r);return n>Math.PI?2*Math.PI-n:n},Q2=function(e,r,n){for(var a=1/0,i=0,o=r.length;if.minX&&r.xf.minY&&r.y0&&E>0;){var B=b.minId((E+1)%30===0);if(B)_=v[B];else break;if(O["".concat(_.x,"|||").concat(_.y)])return Efe(_,g,l,r,e,c,u);delete v[_.id],b.remove(_.id),p[_.id]=!0;for(var w=0;wo.maxAllowedDirectionChange)&&!f[L])){v[L]||(v[L]=A);var z=s[I];M=o.distFunc(_,A)+(isNaN(z)?u:z),C=y[_.id]+M;var X=y[L];X&&C>=X||(g[L]=_,y[L]=C,m[L]=C+Q2(A,d,o.distFunc),b.add({id:L,value:m[L]}))}}E-=1}return o.fallbackRoute(e,r,n,a,o)};B8("polyline",{options:{color:Qe.defaultEdge.color,size:Qe.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Qe.defaultEdge.style.stroke,lineAppendWidth:Qe.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Qe.edgeLabel.style.fill,fontSize:Qe.edgeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:P({},Qe.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e);n.radius===0&&delete n.radius;var a=r.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return r.shapeMap["edge-shape"]=a,a},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style);e=this.getPathPoints(e),this.radius=a.radius,this.offset=a.offset;var i=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),u=[i];s&&(u=u.concat(s)),u.push(o);var f=e.sourceNode,l=e.targetNode,c=a.radius,h=this.options.routeCfg,d=Et({},h,e.routeCfg);d.offset=a.offset;var v=this.getPath(u,f,l,c,d,!s);(bt(v)&&v.length<=1||Ye(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=Et({},Qe.defaultEdge.style,a,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,r){var n=r.getContainer();if(r.isVisible()){var a={stroke:e.color},i=n.shapeMap["edge-shape"]||n.find(function(w){return w.get("className")==="edge-shape"})||r.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,u=e.endPoint,f=this.getControlPoints(e),l=[s];f&&(l=l.concat(f)),l.push(u);var c=i.attr(),h=Et({},a,c,e.style),d=e.sourceNode,v=e.targetNode,p=h.radius,g=this.options.routeCfg,y=Et({},g,e.routeCfg);y.offset=h.offset;var m=this.getPath(l,d,v,p,y,!f);(bt(m)&&m.length<=1||Ye(m)&&m.indexOf("L")===-1)&&(m="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(m="M0 0, L0 0"),c.endArrow&&h.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&h.startArrow===!1&&(e.style.startArrow={path:""});var b=Et(a,i.attr(),{lineWidth:o,path:m},e.style);i&&i.attr(b)}},getPath:function(e,r,n,a,i,o){var s=i.offset,u=i.obstacles,f=i.simple;if(!s||e.length>2||o===!1){if(a)return Z2(e,a);var l=[];return _e(e,function(v,p){p===0?l.push(["M",v.x,v.y]):l.push(["L",v.x,v.y])}),l}f!==!1&&!(u!=null&&u.length)&&(f=!0);var c=f?LO(e[e.length-1],e[0],n,r,s):_fe(e[0],e[e.length-1],r,n,i);if(!c||!c.length)return"M0 0, L0 0";if(a){var h=Z2(c,a);return h}c=yfe(c);var d=Za.pointsToPolygon(c);return d}},"single-edge");var eS=so.cloneEvent,tS=so.isNaN,rS=Math.abs,Sfe=10,Mfe=["shift","ctrl","alt","control"];const Afe={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var r=this.origin,n=+e.clientX,a=+e.clientY;if(!(tS(n)||tS(a))){var i=n-r.x,o=a-r.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(i=0),this.origin={x:n,y:a};var s=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l=s*l,c=u*c),(f.minX<=s+l&&f.minX+i>s+l||f.maxX+l>=0&&f.maxX+l+i<0)&&(i=0),(f.minY<=u+c&&f.minY+o>u+c||f.maxY+c>=0&&f.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(e){var r=this,n=e.originalEvent.touches,a=n[0],i=n[1];a&&i||(e.preventDefault(),this.mousedown=!0,r.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){this.mousedown&&(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this,n=e.originalEvent;if(!(n&&e.name!=="touchstart"&&n.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&this.shouldBegin(e,this)&&!r.keydown&&this.allowDrag(e)){if(r.origin={x:e.clientX,y:e.clientY},r.dragging=!1,this.enableOptimize){for(var a=this.graph,i=a.getEdges(),o=0,s=i.length;ou)for(var d=a.getNodes(),v=0,p=d.length;v-1?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var r,n,a=e.target,i=a&&a.isCanvas&&a.isCanvas();if(Qf(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(gn(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,u=o.edge,f=o.combo,l=(n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r);if(!s&&l==="node"||!u&&l==="edge"||!f&&l==="combo")return!1}return!0}},Cfe={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var r=e.getType();return r==="combo"},onTouchStart:function(e){if(e.item){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,r.onDragStart(e)}},onTouchMove:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i){r.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var r,n;if(((n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r))!=="node"){this.onDragEnd();return}this.mousedown&&(this.dragstart?this.onDrag(P(P({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(P(P({},e),this.mousedown),this)){var n=this.mousedown,a=n.item,i=n.target;if(!(!a||a.destroyed||a.hasLocked())){var o=a.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(a),i){var s=i.get("isAnchorPoint");if(s)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),l=a.get("id"),c=f.filter(function(d){var v=d.get("id");return l===v});if(c.length===0?this.targets.push(a):f.length>1?f.forEach(function(d){var v=d.hasLocked();v||r.targets.push(d)}):this.targets.push(a),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,y=v.id;h.push({x:p,y:g,id:y})}),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){p.isVisible()&&(r.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var r=this;if(!(!this.mousedown||!this.origin)&&this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(a){r.update(a,e);var i=a.getModel().comboId;i&&(n[i]=r.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var r=this,n;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(n=this.cachedCaptureItems)===null||n===void 0||n.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(u){r.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var a=this.graph;if(a.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){i.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),u=s.x,f=s.y,l=s.id;i.after.nodes.push({x:u,y:f,id:l})}),a.pushStack("update",rr(i))}a.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var r=e.item;if(this.currentShouldEnd=this.shouldEnd(e,r,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(r))){var n=this.graph;if(this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1),this.targetCombo=r,this.onlyChangeComboSize)n.updateCombos();else{var a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.comboId!==a.id&&n.updateComboTree(i,a.id)}),n.updateCombo(r)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var r=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(n){var a=n.getModel();a.comboId&&r.updateComboTree(n)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var r=this,n=e.item,a=r.graph,i=n.getModel().comboId,o=i?a.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var s=a.findById(i);r.comboActiveState&&a.setItemState(s,r.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();i!==f.comboId&&a.updateComboTree(u,i)}),a.updateCombo(s)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&a.updateComboTree(u)});a.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!0)}},onDragLeave:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1)}},updatePositions:function(e,r){var n=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):r||this.targets.map(function(a){return n.update(a,e)}):this.targets.map(function(a){return n.update(a,e,r)}))},update:function(e,r,n){var a=this.origin,i=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var s=r.x-a.x+this.point[o].x,u=r.y-a.y+this.point[o].y;n&&(s+=a.x-r.x,u+=a.y-r.y);var f={x:s,y:u};this.get("updateEdge")?this.graph.updateItem(e,f,!1):e.updatePosition(f)},debounceUpdate:oy(function(t){var e=t.targets,r=t.graph,n=t.point,a=t.origin,i=t.evt,o=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map(function(f){var l=f.get("model"),c=f.get("id");n[c]||(n[c]={x:l.x||0,y:l.y||0});var h=i.x-a.x+n[c].x,d=i.y-a.y+n[c].y,v={x:h,y:d};o?r.updateItem(f,v,!1):f.updatePosition(v)}),s&&u(r,e)},50,!0),updateDelegate:function(e){var r=this.graph;if(this.delegateRect){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:h,y:d})}else{var n=r.get("group"),a=_r({},Mf.delegateStyle,this.delegateStyle),i=this.calculationGroupPosition(e),o=i.x,s=i.y,u=i.width,f=i.height,l=i.minX,c=i.minY;this.originPoint={x:o,y:s,width:u,height:f,minX:l,minY:c},this.delegateRect=n.addShape("rect",{attrs:P({width:u,height:f,x:o,y:s},a),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var r=this.targets;r.length===0&&r.push(e.item);for(var n=1/0,a=-1/0,i=1/0,o=-1/0,s=0;sa&&(a=h),d>o&&(o=d)}var v=Math.floor(n),p=Math.floor(i),g=Math.ceil(a)-Math.floor(n),y=Math.ceil(o)-Math.floor(i);return{x:v,y:p,width:g,height:y,minX:n,minY:i}},updateParentCombos:function(e,r){var n=e||this.graph,a=r||this.targets,i={};a==null||a.forEach(function(o){var s=o.getModel().comboId;s&&(i[s]=n.findById(s))}),Object.values(i).forEach(function(o){o&&n.updateCombo(o)})}};var Kc=null;const Tfe={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.setAllItemStates(e)},clearOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var r=this,n=this.shouldClearStatusOnSecond;n&&(Kc=null),this.timer=setTimeout(function(){r.throttleClearActiveState(e,r)},50)},throttleSetAllItemStates:Ch(function(t,e){var r=t.item,n=e.graph;if(!(!n||n.destroyed)&&(e.item=r,!!e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var a=e.shouldClearStatusOnSecond,i=r.getModel().id;if(Kc===i&&a){e.throttleClearActiveState(t,e),Kc=null;return}for(var o=e.activeState,s=e.inactiveState,u=n.getNodes(),f=n.getCombos(),l=n.getEdges(),c=n.get("vedges"),h=u.length,d=f.length,v=l.length,p=c.length,g=e.inactiveItems||{},y=e.activeItems||{},m=0;m-1||(this.trigger=iS,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var r=e.item,n=this.brush,a=this.selectOnCombo,i=(r==null?void 0:r.getType())==="combo";i&&!a||!i&&r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||this.updateBrush(e))},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,r=e.graph,n=e.selectedState,a=r.findAllByState("node",n),i=r.findAllByState("edge",n),o=r.findAllByState("combo",n);a.forEach(function(s){return r.setItemState(s,n,!1)}),i.forEach(function(s){return r.setItemState(s,n,!1)}),o.forEach(function(s){return r.setItemState(s,n,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,r,n,a,i){var o=e.getBBox();return o.centerX>=r&&o.centerX<=n&&o.centerY>=a&&o.centerY<=i},getSelectedNodes:function(e){var r=this,n=this,a=n.graph,i=n.originPoint,o=n.shouldUpdate,s=n.isBBoxCenterInRect,u=this.selectedState,f={x:e.x,y:e.y},l=a.getPointByCanvas(i.x,i.y),c=Qc(f.x,l.x),h=nS(f.x,l.x),d=Qc(f.y,l.y),v=nS(f.y,l.y),p=[],g=[];a.getNodes().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){p.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}});var y=[];this.includeEdges&&p.forEach(function(b){var w=b.getOutEdges();w.forEach(function(x){if(x.isVisible()){var E=x.getModel(),_=E.source,S=E.target;g.includes(_)&&g.includes(S)&&o(x,"select",r)&&(y.push(x),a.setItemState(x,r.selectedState,!0))}})});var m=[];this.includeCombos&&a.getCombos().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){m.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}}),this.selectedEdges=y,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,y,m),a.emit("nodeselectchange",{selectedItems:{nodes:p,edges:y,combos:m},select:!0})},createBrush:function(){var e=this,r=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=r,this.delegate=r,r},updateBrush:function(e){var r=this.originPoint;this.brush.attr({width:aS(e.canvasX-r.x),height:aS(e.canvasY-r.y),x:Qc(e.canvasX,r.x),y:Qc(e.canvasY,r.y)})},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var oS="shift",Nfe=["shift","ctrl","alt","control"];const Ofe={getDefaultCfg:function(){return{multiple:!0,trigger:oS,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return Nfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=oS,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var r=this,n=e.item;if(!(!n||n.destroyed)){var a=n.getType(),i=r.graph,o=r.keydown,s=r.multiple,u=r.shouldUpdate,f=r.shouldBegin;if(f(e,r)){if(!o||!s){var l=i.findAllByState("node",r.selectedState).concat(i.findAllByState("edge",r.selectedState)).concat(i.findAllByState("combo",r.selectedState));_e(l,function(p){p!==n&&i.setItemState(p,r.selectedState,!1)})}var c=function(){switch(a){case"node":return r.selectNode;case"edge":return r.selectEdge;case"combo":return r.selectCombo;default:return!1}}();if(!c){var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:h,edges:d,combos:v},select:!1});return}if(n.hasState(r.selectedState)){u(e,r)&&i.setItemState(n,r.selectedState,!1);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!1})}else{u(e,r)&&i.setItemState(n,r.selectedState,!0);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var r=this,n=this,a=n.graph,i=n.shouldBegin;if(i(e,this)){var o=a.findAllByState("node",this.selectedState);_e(o,function(f){a.setItemState(f,r.selectedState,!1)});var s=a.findAllByState("edge",this.selectedState);_e(s,function(f){a.setItemState(f,r.selectedState,!1)});var u=a.findAllByState("combo",this.selectedState);_e(u,function(f){a.setItemState(f,r.selectedState,!1)}),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||n.toLowerCase()==="control"?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var Lfe=eo,Jc=.05;const Dfe={getDefaultCfg:function(){return this.isFireFox=SO()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var r=e.originalEvent.touches,n=r[0],a=r[1];e.preventDefault(),a&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,a&&(this.endPoint={pageX:a.pageX,pageY:a.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(this.moveable){e.preventDefault();var r=e.originalEvent.touches,n=r[0],a=r[1];if(a){this.endPoint||(this.endPoint={pageX:a.pageX,pageY:a.pageY});var i=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=i({x:n.pageX,y:n.pageY},{x:a.pageX,y:a.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>f||s0||e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u):e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u),c=f*l;var h=this.get("minZoom")||a.get("minZoom"),d=this.get("maxZoom")||a.get("maxZoom");c>d?c=d:ca/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),v="".concat(c,"px");Hu(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var r=e.get("el");r.style.position="relative";var n=cg('
'));return r.parentNode.appendChild(n),Hu(n,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Pfe=P({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(r){return r.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO),Rfe=P({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(r){return"source: ".concat(r.source," target: ").concat(r.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO);var sS="click",Ffe=["click","dblclick"];const Bfe={getDefaultCfg:function(){return{trigger:sS,onChange:function(){}}},getEvents:function(){var e,r;return Ffe.includes(this.trigger)?r=this.trigger:(r=sS,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["node:".concat(r)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var r=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){r.toggle(e),clearTimeout(r.timer),r.timer=0},200)}else this.toggle(e)},toggle:function(e){var r=e.item;if(r){var n=this.graph.findDataById(r.get("id"));if(n){var a=n.children;if(!(!a||a.length===0)){var i=!n.collapsed;this.shouldBegin(e,i,this)&&(n.collapsed=i,r.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:e.item,collapsed:i}),this.shouldUpdate(e,i,this)&&(this.onChange(r,i,this),this.graph.layout()))}}}}};var Gfe=so.calculationItemsBBox,PO=function(e,r){if(r(e)!==!1&&e){var n=e.get("combos");if(n.length===0)return!1;_e(n,function(a){PO(a,r)})}};const zfe={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var r=e.item;if(!r||r.destroyed||!this.shouldUpdate(e,this))return!1;var n=r.getType();return n==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var r=this,n=this.graph,a=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!a.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=a.get("id"),s=i.filter(function(f){var l=f.get("id");return o===l});s.length===0?this.targets.push(a):this.targets=i.filter(function(f){return!f.hasLocked()});var u=[];this.targets.forEach(function(f){var l=f.getModel(),c=l.x,h=l.y,d=l.id;u.push({x:c,y:h,id:d})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var l=f.getModel();if(l.parentId){var c=n.findById(l.parentId);c&&n.setItemState(c,r.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],PO(a,function(f){if(f.destroyed)return!1;var l=f.getModel();return r.currentItemChildCombos.push(l.id),!0})}},onDrag:function(e){var r=this;if(this.origin&&this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var n=this.graph,a=e.item,i=a.getModel(),o=n.getCombos(),s=a.getBBox(),u=s.centerX,f=s.centerY,l=s.width,c=o.filter(function(h){var d=h.getModel();return i.parentId,d.id!==i.id&&!r.currentItemChildCombos.includes(d.id)});c.map(function(h){var d=h.getBBox(),v=d.centerX,p=d.centerY,g=d.width,y=u-v,m=f-p,b=2*Math.sqrt(y*y+m*m);l+g-b>.8*l?n.setItemState(h,r.activeState,!0):n.setItemState(h,r.activeState,!1)})}_e(this.targets,function(h){r.updateCombo(h,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,r){var n=this;(this.enableDelegate||r)&&_e(this.targets,function(a){n.updateCombo(a,e,r)})},onDrop:function(e){var r=this,n=e.item;if(this.currentShouldEnd=this.shouldEnd(e,n,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!n||!this.targets||n.destroyed)){var a=this.graph,i=n.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==i.id?(r.activeState&&a.setItemState(n,r.activeState,!1),r.onlyChangeComboSize?a.updateCombo(o):a.updateComboTree(o,i.id,!1)):a.updateCombo(n)}),this.end(n,e),this.endComparison=!0}},onNodeDrop:function(e){var r=this;if(!(!this.targets||this.targets.length===0)){var n=this.graph,a=e.item,i=a.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(i){if(this.activeState){var u=n.findById(i);n.setItemState(u,this.activeState,!1)}this.targets.map(function(f){r.onlyChangeComboSize?n.updateCombo(f):i!==f.getID()&&(s=n.findById(i),i!==f.getModel().parentId&&n.updateComboTree(f,i,!1))})}else this.targets.map(function(f){if(r.onlyChangeComboSize)n.updateCombo(f);else{var l=f.getModel();l.comboId&&n.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!0)}},onDragLeave:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var r=e.item;this.currentShouldEnd&&this.updatePositions(e);var n=this.getParentCombo(r.getModel().parentId),a=this.graph;n&&this.activeState&&a.setItemState(n,this.activeState,!1),this.end(void 0,e)}},end:function(e,r){var n=this;if(this.origin){var a=this.graph;if(this.delegateShape){var i=a.get("delegateGroup");i.clear(),this.delegateShape=null}if(e&&this.activeState&&a.setItemState(e,this.activeState,!1),!e){var o=a.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!n.onlyChangeComboSize)a.updateComboTree(u,void 0,o);else{a.updateCombo(u);var f=u.getModel(),l=f.x,c=f.y,h=f.id;s.after.combos.push({x:l,y:c,id:h}),a.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,r,n){var a=this;if(n===void 0&&(n={}),r(e,n)!==!1&&e){var i=e.get("combos");_e(i,function(s){a.traverse(s,r,n)});var o=e.get("nodes");_e(o,function(s){a.traverse(s,r,n)})}},updateCombo:function(e,r,n){this.updateSingleItem(e,r,n);var a={};this.traverse(e,function(i,o){return i.destroyed?!1:(i.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},a),Object.values(a).forEach(function(i){return i.refresh()})},updateSingleItem:function(e,r,n){var a=this.origin,i=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var u=r.x-a.x+this.point[s].x,f=r.y-a.y+this.point[s].y;n&&(u+=a.x-r.x,f+=a.y-r.y),i.updateItem(e,{x:u,y:f},!1)},getParentCombo:function(e){var r=this.graph;if(e){var n=r.findById(e);if(n)return n}},updateDelegate:function(e){var r=this.graph;if(this.delegateShape){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:h,y:d})}else{var n=r.get("delegateGroup"),a=null;this.targets.length>1?a=Gfe(this.targets):a=this.targets[0].getBBox();var i=a.x,o=a.y,s=a.width,u=a.height,f=a.minX,l=a.minY;this.originPoint={x:i,y:o,width:s,height:u,minX:f,minY:l};var c=P(P({},Mf.delegateStyle),this.delegateStyle);this.delegateShape=n.addShape("rect",{attrs:P({width:a.width,height:a.height,x:a.x,y:a.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,r=e.graph,n=e.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().parentId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}};var uS="dblclick",jfe=["click","dblclick"];const Ufe={getDefaultCfg:function(){return{trigger:uS,relayout:!0}},getEvents:function(){var e,r;return jfe.includes(this.trigger)?r=this.trigger:(r=uS,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["combo:".concat(r)]="onComboClick",e},onComboClick:function(e){var r=e.item,n=this,a=n.graph,i=n.relayout;if(!(!r||r.destroyed||r.getType()!=="combo")){var o=r.getModel(),s=o.id;s&&(a.collapseExpandCombo(s),i&&a.get("layout")?a.layout():a.refreshPositions())}}};var $fe=so.isPolygonsIntersect,Xfe=so.pathToPoints,fS="shift",Wfe=["drag","shift","ctrl","alt","control"],Vfe=function(e,r){var n,a=e.getKeyShape();if(e.get("type")==="path")n=Xfe(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return $fe(r,n)};const Yfe={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:fS,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Wfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fS,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var r=this.lasso,n=e.item;n||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),r||(r=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),r.show())},onDragMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e)))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,r=[];return e.length&&(e.forEach(function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r.push(["L",e[0].x,e[0].y])),r},clearStates:function(e){e===void 0&&(e="canvas:click");var r=this,n=r.graph,a=r.selectedState,i=r.shouldDeselect,o=n.findAllByState("node",a),s=n.findAllByState("edge",a);(!i||i({action:e,nodes:o,edges:s}))&&(o.forEach(function(u){return n.setItemState(u,a,!1)}),s.forEach(function(u){return n.setItemState(u,a,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,r=this,n=r.graph,a=r.shouldUpdate,i=this.points.map(function(l){return[n.getCanvasByPoint(l.x,l.y).x,n.getCanvasByPoint(l.x,l.y).y]}),o=this.selectedState,s=[],u=[];n.getNodes().forEach(function(l){if(l.isVisible()&&Vfe(l,i)&&a(l,"select",e)){s.push(l);var c=l.getModel();u.push(c.id),n.setItemState(l,o,!0)}});var f=[];this.includeEdges&&s.forEach(function(l){var c=l.getOutEdges();c.forEach(function(h){if(h.isVisible()){var d=h.getModel(),v=d.source,p=d.target;u.includes(v)&&u.includes(p)&&a(h,"select",e)&&(f.push(h),n.setItemState(h,e.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=s,this.onSelect&&this.onSelect(s,f),n.emit("nodeselectchange",{selectedItems:{nodes:s,edges:f},select:!0})},createLasso:function(){var e=this,r=e.graph.get("delegateGroup").addShape("path",{attrs:P({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=r,this.delegate=r,this.points=[],r},updateLasso:function(e){var r=this;this.lasso.attr({path:r.getLassoPath()})},onKeyDown:function(e){var r=e.key;r&&(r.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var lS="click",qfe=["click","drag"],cS=void 0,Hfe=["shift","ctrl","control","alt","meta",void 0];const Zfe={getDefaultCfg:function(){return{trigger:lS,key:cS,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;qfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=lS,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&Hfe.indexOf(e.key.toLowerCase())===-1&&(e.trigger=cS,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined"));var r;return e.trigger==="drag"?r={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(r={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(r.keydown="onKeyDown",r.keyup="onKeyUp"),r},onDragEnd:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item;(!n||n.getID()===r.source||n.getType()!=="node")&&r.cancelCreating({item:r.edge,x:e.x,y:e.y})}},onClick:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item,a=r.graph,i=n.getModel(),o=r.getEdgeConfig;if(r.addingEdge&&r.edge){if(!r.shouldEnd(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:r.source,target:i.id},r):s=r.edgeConfig;var u=P({target:i.id},s);if(r.source===i.id&&(u.type="loop"),a.emit("beforecreateedge",{}),a.updateItem(r.edge,u,!1),a.get("enabledStack")){var f=P(P({},r.edge.getModel()),{itemType:"edge"}),l={};l.edges=[f],a.pushStack("add",{before:{},after:l})}a.emit("aftercreateedge",{edge:r.edge}),r.edge.getKeyShape().set("capture",!0),r.edge=null,r.addingEdge=!1}else{if(!r.shouldBegin(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:i.id,target:i.id},r):s=r.edgeConfig,r.edge=a.addItem("edge",P({source:i.id,target:i.id},s),!1),r.source=i.id,r.addingEdge=!0,r.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var r=this;if(!(r.key&&!r.keydown)){r.edge&&r.edge.destroyed&&r.cancelCreating({item:r.edge});var n={x:e.x,y:e.y};if(!r.graph.findById(r.source)){r.addingEdge=!1;return}r.addingEdge&&r.edge&&r.graph.updateItem(r.edge,{target:n},!1)}},cancelCreating:function(e){var r,n,a=this;if(!(a.key&&!a.keydown)){var i=a.graph,o=e.item;if(a.addingEdge&&(a.edge===o||!((n=(r=e.target)===null||r===void 0?void 0:r.isCanvas)===null||n===void 0)&&n.call(r))){a.edge&&!a.edge.destroyed&&i.removeItem(a.edge,!1),a.edge=null,a.addingEdge=!1;return}}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===r.key.toLowerCase()?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var hS="ctrl",Kfe=["shift","ctrl","alt","control"],Qfe="1";const Jfe={getDefaultCfg:function(){return{trigger:hS,combinedKey:Qfe,functionName:"fitView",functionParams:[]}},getEvents:function(){return Kfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=hS,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();this.triggerKeydown||(a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(a===o||a==="control"&&o==="ctrl"||a==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var ele=["shift","ctrl","alt","control","meta"];const tle={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||ele.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var r=this;if(this.allowDrag(e)){var n=this.graph,a=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];a.includes("control")&&a.push("ctrl");var i=a.some(function(V){return e["".concat(V,"Key")]});if(i){var o=n.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),u=n.getZoom();e.wheelDelta>0?u=u+u*.05:u=u-u*.05,n.zoomTo(u,{x:s.x,y:s.y})}else{var f=e.deltaX||e.movementX,l=e.deltaY||e.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=-e.wheelDelta*125/3);var c=this.graph.get("width"),h=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=h*p);var g=d.minX,y=d.maxX,m=d.minY,b=d.maxY;f>0?y<-v?f=0:y-f<-v&&(f=y+v):f<0&&(g>c+v?f=0:g-f>c+v&&(f=g-(c+v))),l>0?b<-p?l=0:b-l<-p&&(l=b+p):l<0&&(m>h+p?l=0:m-l>h+p&&(l=m-(h+p))),this.get("direction")==="x"?l=0:this.get("direction")==="y"&&(f=0),n.translate(-f,-l)}e.preventDefault();var w=this.get("enableOptimize");if(w){var x=this.get("optimizeZoom"),E=this.get("optimized"),_=n.getNodes(),S=n.getEdges(),A=_.length,M=S.length;if(!E){for(var C=0;C{const v=d.getModel();r.updateItem(d,{style:{fill:i(),stroke:l(v.os),lineWidth:2,radius:8,shadowColor:a()?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:o(),fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:v.online?"#22c55e":"#ef4444",stroke:i(),lineWidth:2}}})}),r.getEdges().forEach(d=>{const v=d.getModel(),g=String(v.id).startsWith("rel-")?"#f97316":"#3b82f6";r.updateItem(d,{labelCfg:{style:{fill:g,fontSize:11,fontWeight:500,background:{fill:i(),padding:[2,4],radius:4}}}})}),r.paint())}EP(async()=>{const[h,d,v]=await Promise.all([_P(),SP(),MP()]),p=h.data,g=d.data,y=v.data,m={};p.forEach(A=>m[A.id]=A);const b=a(),w=i(),x=o(),E=p.map(A=>({id:String(A.id),label:A.hostname,online:A.is_online,os:A.os_type,style:{fill:w,stroke:l(A.os_type),lineWidth:2,radius:8,shadowColor:b?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:x,fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:A.is_online?"#22c55e":"#ef4444",stroke:w,lineWidth:2}}})),_=[];y.forEach(A=>{!m[A.source_machine_id]||!m[A.target_machine_id]||_.push({id:`rel-${A.id}`,source:String(A.source_machine_id),target:String(A.target_machine_id),label:c(A),style:{stroke:"#f97316",lineDash:[4,2],lineWidth:1.5,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#f97316"}},labelCfg:{style:{fill:"#f97316",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})}),g.forEach(A=>{A.target_machine_id&&m[A.target_machine_id]&&_.push({id:`svc-${A.id}`,source:String(A.machine_id),target:String(A.target_machine_id),label:A.name,style:{stroke:"#3b82f6",lineWidth:2,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#3b82f6"}},labelCfg:{style:{fill:"#3b82f6",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})});const S=document.getElementById("topo");S.style.background=s(),r=new AO({container:"topo",width:S.clientWidth,height:S.clientHeight,layout:{type:"force",preventOverlap:!0,linkDistance:140,nodeStrength:-80,edgeStrength:.2},defaultNode:{type:"rect",size:[110,40]},defaultEdge:{type:"line",style:{endArrow:!0}},modes:{default:["drag-node","drag-canvas","zoom-canvas"]},fitView:!0,fitViewPadding:20}),r.data({nodes:E,edges:_}),r.render(),r.on("node:click",A=>{const M=A.item.getModel().id;f(M)}),window.addEventListener("resize",()=>{const A=document.getElementById("topo");A&&r&&(r.changeSize(A.clientWidth,A.clientHeight),r.fitView())}),n=new MutationObserver(()=>{u()}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),AP(()=>{n&&n.disconnect(),r&&(r.destroy(),r=null)});function f(h){if(!r)return;const d=r.getEdges();d.forEach(v=>{const p=v.getModel();p.source===h||p.target===h?(r.setItemState(v,"active",!0),v.update({style:{opacity:1}})):(r.setItemState(v,"inactive",!0),v.update({style:{opacity:.15}}))}),setTimeout(()=>{d.forEach(v=>{r.clearItemStates(v),v.update({style:{opacity:1}})})},2e3)}function l(h){switch(h){case"Linux":return"#3b82f6";case"Windows":return"#06b6d4";case"macOS":return"#a855f7";default:return"#9ca3af"}}function c(h){const v={port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[h.relation_type]||h.relation_type;return h.source_port?`${v} (${h.source_port})`:v}return(h,d)=>{const v=DP("el-button");return iw(),CP("div",nle,[rc("div",ale,[d[2]||(d[2]=rc("div",null,[rc("div",{class:"page-title"},"拓扑图"),rc("div",{class:"page-subtitle"},"展示机器之间的服务指向和关联关系")],-1)),ow(e)?(iw(),TP(v,{key:0,type:"primary",icon:ow(kP),onClick:d[0]||(d[0]=p=>h.$router.push("/machines"))},{default:IP(()=>[...d[1]||(d[1]=[PP("添加机器",-1)])]),_:1},8,["icon"])):NP("",!0)]),d[3]||(d[3]=OP('
在线
离线
服务指向
关联关系
',1))])}}},ule=RP(ile,[["__scopeId","data-v-1d46321d"]]);export{ule as default}; diff --git a/web/dist/assets/Topology-CVKO0hET.js b/web/dist/assets/Topology-CVKO0hET.js deleted file mode 100644 index 7eb375d..0000000 --- a/web/dist/assets/Topology-CVKO0hET.js +++ /dev/null @@ -1,467 +0,0 @@ -import{ae as Ka,af as bi,ag as me,k as sP,K as uP,ah as fP,$ as lP,J as cP,o as Hb,c as hP,a as Zl,e as Zb,m as dP,w as vP,L as pP,n as gP,ai as yP,F as mP,d as bP,h as wP}from"./index-Chagxl0Z.js";import{_ as xP}from"./_plugin-vue_export-helper-DlAUqK2U.js";function EP(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const Xg=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ea},get Circle(){return a9},get Ellipse(){return i9},get Image(){return o9},get Line(){return s9},get Marker(){return f9},get Path(){return jy},get Polygon(){return g9},get Polyline(){return y9},get Rect(){return w9},get Text(){return x9}},Symbol.toStringTag,{value:"Module"})),Wg=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return M9},get Dom(){return A9},get Ellipse(){return C9},get Image(){return T9},get Line(){return I9},get Marker(){return k9},get Path(){return N9},get Polygon(){return O9},get Polyline(){return L9},get Rect(){return P9},get Text(){return G9}},Symbol.toStringTag,{value:"Module"}));var l0=function(r,e){return l0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},l0(r,e)};function jt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");l0(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var P=function(){return P=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;s--)(o=r[s])&&(i=(a<3?o(i):a>3?o(e,t,i):o(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i}function nS(r,e){return function(t,n){e(t,n,r)}}function aS(r,e,t,n,a,i){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",f=!e&&r?n.static?r:r.prototype:null,l=e||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),c,h=!1,d=t.length-1;d>=0;d--){var v={};for(var p in n)v[p]=p==="access"?{}:n[p];for(var p in n.access)v.access[p]=n.access[p];v.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(y||null))};var g=(0,t[d])(s==="accessor"?{get:l.get,set:l.set}:l[u],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(l.get=c),(c=o(g.set))&&(l.set=c),(c=o(g.init))&&a.unshift(c)}else(c=o(g))&&(s==="field"?a.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),h=!0}function iS(r,e,t){for(var n=arguments.length>2,a=0;a0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vg(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function lS(){for(var r=[],e=0;e1||u(d,p)})},v&&(a[d]=v(a[d])))}function u(d,v){try{f(n[d](v))}catch(p){h(i[0][3],p)}}function f(d){d.value instanceof qs?Promise.resolve(d.value.v).then(l,c):h(i[0][2],d)}function l(d){u("next",d)}function c(d){u("throw",d)}function h(d,v){d(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function hS(r){var e,t;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=r[a]?function(o){return(t=!t)?{value:qs(r[a](o)),done:!1}:i?i(o):o}:i}}function dS(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof yh=="function"?yh(r):r[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=r[i]&&function(o){return new Promise(function(s,u){o=r[i](o),a(s,u,o.done,o.value)})}}function a(i,o,s,u){Promise.resolve(u).then(function(f){i({value:f,done:s})},o)}}function vS(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}var _P=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e},c0=function(r){return c0=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},c0(r)};function pS(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t=c0(r),n=0;n-1:!1},_S=function(r,e){if(!On(r))return r;for(var t=[],n=0;n-1;)DP.call(r,i,1);return r},FP=Array.prototype.splice,TS=function(e,t){if(!On(e))return[];for(var n=e?t.length:0,a=n-1;n--;){var i=void 0,o=t[n];(n===a||o!==i)&&(i=o,FP.call(e,o,1))}return e},IS=function(r,e,t){if(!bt(r)&&!ln(r))return r;var n=t;return _e(r,function(a,i){n=e(n,a,i)}),n},BP=function(r,e){var t=[];if(!On(r))return t;for(var n=-1,a=[],i=r.length;++ni[s])return 1;if(a[s]t?t:r},eR=function(r,e){var t=e.toString(),n=t.indexOf(".");if(n===-1)return Math.round(r);var a=t.substr(n+1).length;return a>20&&(a=20),parseFloat(r.toFixed(a))},Ot=function(r){return xa(r,"Number")},tR=function(r){return Ot(r)&&r%1!==0},rR=function(r){return Ot(r)&&r%2===0},nR=Number.isInteger?Number.isInteger:function(r){return Ot(r)&&r%1===0},aR=function(r){return Ot(r)&&r<0},iR=1e-5;function NS(r,e,t){return t===void 0&&(t=iR),Math.abs(r-e)0};const uR=function(r,e){if(bt(r)){for(var t,n=-1/0,a=0;an&&(t=i,n=o)}return t}},fR=function(r,e){if(bt(r)){for(var t,n=1/0,a=0;ae?(n&&(clearTimeout(n),n=null),s=l,o=r.apply(a,i),n||(a=i=null)):!n&&t.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},GS=function(r){return On(r)?Array.prototype.slice.call(r):[]};var Kl={};const Ji=function(r){return r=r||"g",Kl[r]?Kl[r]+=1:Kl[r]=1,r+Kl[r]},nf=function(){},$R=function(r){return r};function XR(r){return Zt(r)?0:On(r)?r.length:Object.keys(r).length}var Ql;const af=RS(function(r,e){e===void 0&&(e={});var t=e.fontSize,n=e.fontFamily,a=e.fontWeight,i=e.fontStyle,o=e.fontVariant;return Ql||(Ql=document.createElement("canvas").getContext("2d")),Ql.font=[i,o,a,t+"px",n].join(" "),Ql.measureText(Ye(r)?r:"").width},function(r,e){return e===void 0&&(e={}),Yg([r],qg(e)).join("")}),WR=function(r,e,t,n){n===void 0&&(n="...");var a=16,i=af(n,t),o=Ye(r)?r:hu(r),s=e,u=[],f,l;if(af(r,t)<=e)return r;for(;f=o.substr(0,a),l=af(f,t),!(l+i>s&&l>s);)if(u.push(f),s-=l,o=o.substr(a),!o)return u.join("");for(;f=o.substr(0,1),l=af(f,t),!(l+i>s);)if(u.push(f),s-=l,o=o.substr(1),!o)return u.join("");return""+u.join("")+n};var VR=function(){function r(){this.map={}}return r.prototype.has=function(e){return this.map[e]!==void 0},r.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},r.prototype.set=function(e,t){this.map[e]=t},r.prototype.clear=function(){this.map={}},r.prototype.delete=function(e){delete this.map[e]},r.prototype.size=function(){return Object.keys(this.map).length},r}();const YR=Object.freeze(Object.defineProperty({__proto__:null,Cache:VR,assign:Et,augment:IR,clamp:JP,clearAnimationFrame:PS,clone:rr,contains:mh,debounce:Hg,deepMix:_r,difference:CP,each:_e,endsWith:WP,every:VP,extend:NR,filter:_S,find:IP,findIndex:kP,firstValue:NP,fixedBase:eR,flatten:OP,flattenDeep:AS,forIn:_e,get:BS,getEllipsisText:WR,getRange:LP,getType:OS,getWrapBehavior:ZP,group:HP,groupBy:wh,groupToMap:kS,has:Qb,hasKey:Qb,hasValue:vR,head:UP,identity:$R,includes:mh,indexOf:OR,isArguments:wR,isArray:bt,isArrayLike:On,isBoolean:Vf,isDate:xR,isDecimal:tR,isElement:TR,isEmpty:DR,isEqual:jo,isEqualWith:PR,isError:ER,isEven:rR,isFinite:_R,isFunction:Tr,isInteger:nR,isMatch:MS,isNegative:aR,isNil:Zt,isNull:SR,isNumber:Ot,isNumberEqual:NS,isObject:gn,isObjectLike:bh,isOdd:oR,isPlainObject:ln,isPositive:sR,isPrototype:LS,isRegExp:AR,isString:Ye,isType:xa,isUndefined:CR,keys:SS,last:$P,lowerCase:pR,lowerFirst:gR,map:RR,mapValues:BR,max:qa,maxBy:uR,measureTextWidth:af,memoize:RS,min:Ha,minBy:fR,mix:Et,mod:ud,noop:nf,number2color:KP,omit:UR,parseRadius:QP,pick:jR,pull:RP,pullAt:TS,reduce:IS,remove:BP,requestAnimationFrame:DS,set:GR,size:XR,some:YP,sortBy:GP,startsWith:XP,substitute:yR,throttle:xh,toArray:GS,toDegree:cR,toInteger:hR,toRadian:fd,toString:hu,union:zP,uniq:Mf,uniqueId:Ji,upperCase:mR,upperFirst:Hs,values:qg,valuesOfKey:jP,wrapBehavior:Fs},Symbol.toStringTag,{value:"Module"})),qR={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var t=this,n=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),_e(n,function(a,i){e.on(i,a)}),document.addEventListener("visibilitychange",function(){t.keydown=!1})},unbind:function(e){var t=this.events,n=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),_e(t,function(a,i){e.off(i,a)}),e.get("canvas").set("draggable",n)},get:function(e){return this[e]},set:function(e,t){return this[e]=t,this}};var Zg=function(){function r(){}return r.registerBehavior=function(e,t){if(!t)throw new Error("please specify handler for this behavior: ".concat(e));var n=rr(qR);Object.assign(n,t);var a=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var u=this.getEvents();this.events=null;var f={};u&&(_e(u,function(l,c){f[c]=Fs(s,l)}),this.events=f)};a.prototype=n,r.types[e]=a},r.hasBehavior=function(e){return!!r.types[e]},r.getBehavior=function(e){return r.types[e]},r.types={},r}(),HR="*",zS=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},r.prototype.once=function(e,t){return this.on(e,t,!0)},r.prototype.emit=function(e){for(var t=this,n=[],a=1;a=0?Math.round(r):r%.5===0?Math.floor(r):Math.round(r)}function ZR(r){qt=r}var KR=Math.PI/180,QR=180/Math.PI;function JR(r){return r*KR}function e3(r){return r*QR}function t3(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;return Math.abs(r-e)<=t*Math.max(1,Math.abs(r),Math.abs(e))}const r3=Object.freeze(Object.defineProperty({__proto__:null,ANGLE_ORDER:jS,get ARRAY_TYPE(){return qt},EPSILON:pt,RANDOM:ya,equals:t3,round:Ba,setMatrixArrayType:ZR,toDegree:e3,toRadian:JR},Symbol.toStringTag,{value:"Module"}));function n3(){var r=new qt(4);return qt!=Float32Array&&(r[1]=0,r[2]=0),r[0]=1,r[3]=1,r}function a3(r){var e=new qt(4);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e}function i3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}function o3(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r}function s3(r,e,t,n){var a=new qt(4);return a[0]=r,a[1]=e,a[2]=t,a[3]=n,a}function u3(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function f3(r,e){if(r===e){var t=e[1];r[1]=e[2],r[2]=t}else r[0]=e[0],r[1]=e[2],r[2]=e[1],r[3]=e[3];return r}function l3(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t*i-a*n;return o?(o=1/o,r[0]=i*o,r[1]=-n*o,r[2]=-a*o,r[3]=t*o,r):null}function c3(r,e){var t=e[0];return r[0]=e[3],r[1]=-e[1],r[2]=-e[2],r[3]=t,r}function h3(r){return r[0]*r[3]-r[2]*r[1]}function US(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*s+i*u,r[1]=a*s+o*u,r[2]=n*f+i*l,r[3]=a*f+o*l,r}function d3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+i*s,r[1]=a*u+o*s,r[2]=n*-s+i*u,r[3]=a*-s+o*u,r}function v3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1];return r[0]=n*s,r[1]=a*s,r[2]=i*u,r[3]=o*u,r}function p3(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=-t,r[3]=n,r}function g3(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=e[1],r}function y3(r){return"mat2("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}function m3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3])}function b3(r,e,t,n){return r[2]=n[2]/n[0],t[0]=n[0],t[1]=n[1],t[3]=n[3]-r[2]*t[1],[r,e,t]}function w3(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r}function $S(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r}function x3(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]}function E3(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(t-o)<=pt*Math.max(1,Math.abs(t),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}function _3(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}function S3(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r}var M3=US,A3=$S;const C3=Object.freeze(Object.defineProperty({__proto__:null,LDU:b3,add:w3,adjoint:c3,clone:a3,copy:i3,create:n3,determinant:h3,equals:E3,exactEquals:x3,frob:m3,fromRotation:p3,fromScaling:g3,fromValues:s3,identity:o3,invert:l3,mul:M3,multiply:US,multiplyScalar:_3,multiplyScalarAndAdd:S3,rotate:d3,scale:v3,set:u3,str:y3,sub:A3,subtract:$S,transpose:f3},Symbol.toStringTag,{value:"Module"}));function T3(){var r=new qt(6);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[4]=0,r[5]=0),r[0]=1,r[3]=1,r}function I3(r){var e=new qt(6);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e}function k3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function N3(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function O3(r,e,t,n,a,i){var o=new qt(6);return o[0]=r,o[1]=e,o[2]=t,o[3]=n,o[4]=a,o[5]=i,o}function L3(r,e,t,n,a,i,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r}function D3(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=t*i-n*a;return u?(u=1/u,r[0]=i*u,r[1]=-n*u,r[2]=-a*u,r[3]=t*u,r[4]=(a*s-i*o)*u,r[5]=(n*o-t*s)*u,r):null}function P3(r){return r[0]*r[3]-r[1]*r[2]}function XS(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1],c=t[2],h=t[3],d=t[4],v=t[5];return r[0]=n*f+i*l,r[1]=a*f+o*l,r[2]=n*c+i*h,r[3]=a*c+o*h,r[4]=n*d+i*v+s,r[5]=a*d+o*v+u,r}function R3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=Math.sin(t),l=Math.cos(t);return r[0]=n*l+i*f,r[1]=a*l+o*f,r[2]=n*-f+i*l,r[3]=a*-f+o*l,r[4]=s,r[5]=u,r}function F3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1];return r[0]=n*f,r[1]=a*f,r[2]=i*l,r[3]=o*l,r[4]=s,r[5]=u,r}function B3(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=t[0],l=t[1];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=n*f+i*l+s,r[5]=a*f+o*l+u,r}function G3(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=-t,r[3]=n,r[4]=0,r[5]=0,r}function z3(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=e[1],r[4]=0,r[5]=0,r}function j3(r,e){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=e[0],r[5]=e[1],r}function U3(r){return"mat2d("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+")"}function $3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+1)}function X3(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r}function WS(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r}function W3(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r}function V3(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r}function Y3(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]}function q3(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=e[0],f=e[1],l=e[2],c=e[3],h=e[4],d=e[5];return Math.abs(t-u)<=pt*Math.max(1,Math.abs(t),Math.abs(u))&&Math.abs(n-f)<=pt*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-l)<=pt*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-c)<=pt*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=pt*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-d)<=pt*Math.max(1,Math.abs(s),Math.abs(d))}var H3=XS,Z3=WS;const K3=Object.freeze(Object.defineProperty({__proto__:null,add:X3,clone:I3,copy:k3,create:T3,determinant:P3,equals:q3,exactEquals:Y3,frob:$3,fromRotation:G3,fromScaling:z3,fromTranslation:j3,fromValues:O3,identity:N3,invert:D3,mul:H3,multiply:XS,multiplyScalar:W3,multiplyScalarAndAdd:V3,rotate:R3,scale:F3,set:L3,str:U3,sub:Z3,subtract:WS,translate:B3},Symbol.toStringTag,{value:"Module"}));function VS(){var r=new qt(9);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Q3(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[4],r[4]=e[5],r[5]=e[6],r[6]=e[8],r[7]=e[9],r[8]=e[10],r}function J3(r){var e=new qt(9);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e}function e5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function t5(r,e,t,n,a,i,o,s,u){var f=new qt(9);return f[0]=r,f[1]=e,f[2]=t,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=u,f}function r5(r,e,t,n,a,i,o,s,u,f){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r[8]=f,r}function n5(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=1,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function a5(r,e){if(r===e){var t=e[1],n=e[2],a=e[5];r[1]=e[3],r[2]=e[6],r[3]=t,r[5]=e[7],r[6]=n,r[7]=a}else r[0]=e[0],r[1]=e[3],r[2]=e[6],r[3]=e[1],r[4]=e[4],r[5]=e[7],r[6]=e[2],r[7]=e[5],r[8]=e[8];return r}function YS(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=l*o-s*f,h=-l*i+s*u,d=f*i-o*u,v=t*c+n*h+a*d;return v?(v=1/v,r[0]=c*v,r[1]=(-l*n+a*f)*v,r[2]=(s*n-a*o)*v,r[3]=h*v,r[4]=(l*t-a*u)*v,r[5]=(-s*t+a*i)*v,r[6]=d*v,r[7]=(-f*t+n*u)*v,r[8]=(o*t-n*i)*v,r):null}function i5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8];return r[0]=o*l-s*f,r[1]=a*f-n*l,r[2]=n*s-a*o,r[3]=s*u-i*l,r[4]=t*l-a*u,r[5]=a*i-t*s,r[6]=i*f-o*u,r[7]=n*u-t*f,r[8]=t*o-n*i,r}function o5(r){var e=r[0],t=r[1],n=r[2],a=r[3],i=r[4],o=r[5],s=r[6],u=r[7],f=r[8];return e*(f*i-o*u)+t*(-f*a+o*s)+n*(u*a-i*s)}function Qa(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=t[0],d=t[1],v=t[2],p=t[3],g=t[4],y=t[5],m=t[6],b=t[7],w=t[8];return r[0]=h*n+d*o+v*f,r[1]=h*a+d*s+v*l,r[2]=h*i+d*u+v*c,r[3]=p*n+g*o+y*f,r[4]=p*a+g*s+y*l,r[5]=p*i+g*u+y*c,r[6]=m*n+b*o+w*f,r[7]=m*a+b*s+w*l,r[8]=m*i+b*u+w*c,r}function s5(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=t[0],d=t[1];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=u,r[6]=h*n+d*o+f,r[7]=h*a+d*s+l,r[8]=h*i+d*u+c,r}function u5(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=Math.sin(t),d=Math.cos(t);return r[0]=d*n+h*o,r[1]=d*a+h*s,r[2]=d*i+h*u,r[3]=d*o-h*n,r[4]=d*s-h*a,r[5]=d*u-h*i,r[6]=f,r[7]=l,r[8]=c,r}function f5(r,e,t){var n=t[0],a=t[1];return r[0]=n*e[0],r[1]=n*e[1],r[2]=n*e[2],r[3]=a*e[3],r[4]=a*e[4],r[5]=a*e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r}function Kg(r,e){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=1,r[5]=0,r[6]=e[0],r[7]=e[1],r[8]=1,r}function Qg(r,e){var t=Math.sin(e),n=Math.cos(e);return r[0]=n,r[1]=t,r[2]=0,r[3]=-t,r[4]=n,r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function Jg(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=e[1],r[5]=0,r[6]=0,r[7]=0,r[8]=1,r}function l5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=0,r[3]=e[2],r[4]=e[3],r[5]=0,r[6]=e[4],r[7]=e[5],r[8]=1,r}function c5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t+t,s=n+n,u=a+a,f=t*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return r[0]=1-c-v,r[3]=l-y,r[6]=h+g,r[1]=l+y,r[4]=1-f-v,r[7]=d-p,r[2]=h-g,r[5]=d+p,r[8]=1-f-c,r}function h5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,r[0]=(s*k-u*I+f*C)*O,r[1]=(u*M-o*k-f*A)*O,r[2]=(o*I-s*M+f*S)*O,r[3]=(a*I-n*k-i*C)*O,r[4]=(t*k-a*M+i*A)*O,r[5]=(n*M-t*I-i*S)*O,r[6]=(p*_-g*E+y*x)*O,r[7]=(g*w-v*_-y*b)*O,r[8]=(v*E-p*w+y*m)*O,r):null}function d5(r,e,t){return r[0]=2/e,r[1]=0,r[2]=0,r[3]=0,r[4]=-2/t,r[5]=0,r[6]=-1,r[7]=1,r[8]=1,r}function v5(r){return"mat3("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+", "+r[8]+")"}function p5(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+r[6]*r[6]+r[7]*r[7]+r[8]*r[8])}function g5(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r[6]=e[6]+t[6],r[7]=e[7]+t[7],r[8]=e[8]+t[8],r}function qS(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r[6]=e[6]-t[6],r[7]=e[7]-t[7],r[8]=e[8]-t[8],r}function y5(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r[6]=e[6]*t,r[7]=e[7]*t,r[8]=e[8]*t,r}function m5(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r[6]=e[6]+t[6]*n,r[7]=e[7]+t[7]*n,r[8]=e[8]+t[8]*n,r}function b5(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]}function w5(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=r[8],c=e[0],h=e[1],d=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(t-c)<=pt*Math.max(1,Math.abs(t),Math.abs(c))&&Math.abs(n-h)<=pt*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-d)<=pt*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-v)<=pt*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=pt*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=pt*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=pt*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(f-m)<=pt*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(l-b)<=pt*Math.max(1,Math.abs(l),Math.abs(b))}var x5=Qa,E5=qS;const HS=Object.freeze(Object.defineProperty({__proto__:null,add:g5,adjoint:i5,clone:J3,copy:e5,create:VS,determinant:o5,equals:w5,exactEquals:b5,frob:p5,fromMat2d:l5,fromMat4:Q3,fromQuat:c5,fromRotation:Qg,fromScaling:Jg,fromTranslation:Kg,fromValues:t5,identity:n5,invert:YS,mul:x5,multiply:Qa,multiplyScalar:y5,multiplyScalarAndAdd:m5,normalFromMat4:h5,projection:d5,rotate:u5,scale:f5,set:r5,str:v5,sub:E5,subtract:qS,translate:s5,transpose:a5},Symbol.toStringTag,{value:"Module"}));function _5(){var r=new qt(16);return qt!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r}function S5(r){var e=new qt(16);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}function M5(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function A5(r,e,t,n,a,i,o,s,u,f,l,c,h,d,v,p){var g=new qt(16);return g[0]=r,g[1]=e,g[2]=t,g[3]=n,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=u,g[9]=f,g[10]=l,g[11]=c,g[12]=h,g[13]=d,g[14]=v,g[15]=p,g}function C5(r,e,t,n,a,i,o,s,u,f,l,c,h,d,v,p,g){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r[8]=f,r[9]=l,r[10]=c,r[11]=h,r[12]=d,r[13]=v,r[14]=p,r[15]=g,r}function ZS(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function T5(r,e){if(r===e){var t=e[1],n=e[2],a=e[3],i=e[6],o=e[7],s=e[11];r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=t,r[6]=e[9],r[7]=e[13],r[8]=n,r[9]=i,r[11]=e[14],r[12]=a,r[13]=o,r[14]=s}else r[0]=e[0],r[1]=e[4],r[2]=e[8],r[3]=e[12],r[4]=e[1],r[5]=e[5],r[6]=e[9],r[7]=e[13],r[8]=e[2],r[9]=e[6],r[10]=e[10],r[11]=e[14],r[12]=e[3],r[13]=e[7],r[14]=e[11],r[15]=e[15];return r}function I5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,r[0]=(s*k-u*I+f*C)*O,r[1]=(a*I-n*k-i*C)*O,r[2]=(p*_-g*E+y*x)*O,r[3]=(h*E-c*_-d*x)*O,r[4]=(u*M-o*k-f*A)*O,r[5]=(t*k-a*M+i*A)*O,r[6]=(g*w-v*_-y*b)*O,r[7]=(l*_-h*w+d*b)*O,r[8]=(o*I-s*M+f*S)*O,r[9]=(n*M-t*I-i*S)*O,r[10]=(v*E-p*w+y*m)*O,r[11]=(c*w-l*E-d*m)*O,r[12]=(s*A-o*C-u*S)*O,r[13]=(t*C-n*A+a*S)*O,r[14]=(p*b-v*x-g*m)*O,r[15]=(l*x-c*b+h*m)*O,r):null}function k5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=t*s-n*o,b=t*u-a*o,w=t*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g;return r[0]=s*k-u*I+f*C,r[1]=a*I-n*k-i*C,r[2]=p*_-g*E+y*x,r[3]=h*E-c*_-d*x,r[4]=u*M-o*k-f*A,r[5]=t*k-a*M+i*A,r[6]=g*w-v*_-y*b,r[7]=l*_-h*w+d*b,r[8]=o*I-s*M+f*S,r[9]=n*M-t*I-i*S,r[10]=v*E-p*w+y*m,r[11]=c*w-l*E-d*m,r[12]=s*A-o*C-u*S,r[13]=t*C-n*A+a*S,r[14]=p*b-v*x-g*m,r[15]=l*x-c*b+h*m,r}function N5(r){var e=r[0],t=r[1],n=r[2],a=r[3],i=r[4],o=r[5],s=r[6],u=r[7],f=r[8],l=r[9],c=r[10],h=r[11],d=r[12],v=r[13],p=r[14],g=r[15],y=e*o-t*i,m=e*s-n*i,b=t*s-n*o,w=f*v-l*d,x=f*p-c*d,E=l*p-c*v,_=e*E-t*x+n*w,S=i*E-o*x+s*w,A=f*b-l*m+c*y,M=d*b-v*m+p*y;return u*_-a*S+g*A-h*M}function KS(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=e[9],d=e[10],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],b=t[0],w=t[1],x=t[2],E=t[3];return r[0]=b*n+w*s+x*c+E*p,r[1]=b*a+w*u+x*h+E*g,r[2]=b*i+w*f+x*d+E*y,r[3]=b*o+w*l+x*v+E*m,b=t[4],w=t[5],x=t[6],E=t[7],r[4]=b*n+w*s+x*c+E*p,r[5]=b*a+w*u+x*h+E*g,r[6]=b*i+w*f+x*d+E*y,r[7]=b*o+w*l+x*v+E*m,b=t[8],w=t[9],x=t[10],E=t[11],r[8]=b*n+w*s+x*c+E*p,r[9]=b*a+w*u+x*h+E*g,r[10]=b*i+w*f+x*d+E*y,r[11]=b*o+w*l+x*v+E*m,b=t[12],w=t[13],x=t[14],E=t[15],r[12]=b*n+w*s+x*c+E*p,r[13]=b*a+w*u+x*h+E*g,r[14]=b*i+w*f+x*d+E*y,r[15]=b*o+w*l+x*v+E*m,r}function O5(r,e,t){var n=t[0],a=t[1],i=t[2],o,s,u,f,l,c,h,d,v,p,g,y;return e===r?(r[12]=e[0]*n+e[4]*a+e[8]*i+e[12],r[13]=e[1]*n+e[5]*a+e[9]*i+e[13],r[14]=e[2]*n+e[6]*a+e[10]*i+e[14],r[15]=e[3]*n+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],u=e[2],f=e[3],l=e[4],c=e[5],h=e[6],d=e[7],v=e[8],p=e[9],g=e[10],y=e[11],r[0]=o,r[1]=s,r[2]=u,r[3]=f,r[4]=l,r[5]=c,r[6]=h,r[7]=d,r[8]=v,r[9]=p,r[10]=g,r[11]=y,r[12]=o*n+l*a+v*i+e[12],r[13]=s*n+c*a+p*i+e[13],r[14]=u*n+h*a+g*i+e[14],r[15]=f*n+d*a+y*i+e[15]),r}function L5(r,e,t){var n=t[0],a=t[1],i=t[2];return r[0]=e[0]*n,r[1]=e[1]*n,r[2]=e[2]*n,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*i,r[9]=e[9]*i,r[10]=e[10]*i,r[11]=e[11]*i,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function D5(r,e,t,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),u,f,l,c,h,d,v,p,g,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;return s0?(t[0]=(s*o+l*n+u*i-f*a)*2/c,t[1]=(u*o+l*a+f*n-s*i)*2/c,t[2]=(f*o+l*i+s*a-u*n)*2/c):(t[0]=(s*o+l*n+u*i-f*a)*2,t[1]=(u*o+l*a+f*n-s*i)*2,t[2]=(f*o+l*i+s*a-u*n)*2),QS(r,e,t),r}function JS(r,e){return r[0]=e[12],r[1]=e[13],r[2]=e[14],r}function eM(r,e){var t=e[0],n=e[1],a=e[2],i=e[4],o=e[5],s=e[6],u=e[8],f=e[9],l=e[10];return r[0]=Math.sqrt(t*t+n*n+a*a),r[1]=Math.sqrt(i*i+o*o+s*s),r[2]=Math.sqrt(u*u+f*f+l*l),r}function tM(r,e){var t=new qt(3);eM(t,e);var n=1/t[0],a=1/t[1],i=1/t[2],o=e[0]*n,s=e[1]*a,u=e[2]*i,f=e[4]*n,l=e[5]*a,c=e[6]*i,h=e[8]*n,d=e[9]*a,v=e[10]*i,p=o+l+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,r[3]=.25*g,r[0]=(c-d)/g,r[1]=(h-u)/g,r[2]=(s-f)/g):o>l&&o>v?(g=Math.sqrt(1+o-l-v)*2,r[3]=(c-d)/g,r[0]=.25*g,r[1]=(s+f)/g,r[2]=(h+u)/g):l>v?(g=Math.sqrt(1+l-o-v)*2,r[3]=(h-u)/g,r[0]=(s+f)/g,r[1]=.25*g,r[2]=(c+d)/g):(g=Math.sqrt(1+v-o-l)*2,r[3]=(s-f)/g,r[0]=(h+u)/g,r[1]=(c+d)/g,r[2]=.25*g),r}function W5(r,e,t,n){e[0]=n[12],e[1]=n[13],e[2]=n[14];var a=n[0],i=n[1],o=n[2],s=n[4],u=n[5],f=n[6],l=n[8],c=n[9],h=n[10];t[0]=Math.sqrt(a*a+i*i+o*o),t[1]=Math.sqrt(s*s+u*u+f*f),t[2]=Math.sqrt(l*l+c*c+h*h);var d=1/t[0],v=1/t[1],p=1/t[2],g=a*d,y=i*v,m=o*p,b=s*d,w=u*v,x=f*p,E=l*d,_=c*v,S=h*p,A=g+w+S,M=0;return A>0?(M=Math.sqrt(A+1)*2,r[3]=.25*M,r[0]=(x-_)/M,r[1]=(E-m)/M,r[2]=(y-b)/M):g>w&&g>S?(M=Math.sqrt(1+g-w-S)*2,r[3]=(x-_)/M,r[0]=.25*M,r[1]=(y+b)/M,r[2]=(E+m)/M):w>S?(M=Math.sqrt(1+w-g-S)*2,r[3]=(E-m)/M,r[0]=(y+b)/M,r[1]=.25*M,r[2]=(x+_)/M):(M=Math.sqrt(1+S-g-w)*2,r[3]=(y-b)/M,r[0]=(E+m)/M,r[1]=(x+_)/M,r[2]=.25*M),r}function V5(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=a+a,f=i+i,l=o+o,c=a*u,h=a*f,d=a*l,v=i*f,p=i*l,g=o*l,y=s*u,m=s*f,b=s*l,w=n[0],x=n[1],E=n[2];return r[0]=(1-(v+g))*w,r[1]=(h+b)*w,r[2]=(d-m)*w,r[3]=0,r[4]=(h-b)*x,r[5]=(1-(c+g))*x,r[6]=(p+y)*x,r[7]=0,r[8]=(d+m)*E,r[9]=(p-y)*E,r[10]=(1-(c+v))*E,r[11]=0,r[12]=t[0],r[13]=t[1],r[14]=t[2],r[15]=1,r}function Y5(r,e,t,n,a){var i=e[0],o=e[1],s=e[2],u=e[3],f=i+i,l=o+o,c=s+s,h=i*f,d=i*l,v=i*c,p=o*l,g=o*c,y=s*c,m=u*f,b=u*l,w=u*c,x=n[0],E=n[1],_=n[2],S=a[0],A=a[1],M=a[2],C=(1-(p+y))*x,I=(d+w)*x,k=(v-b)*x,O=(d-w)*E,B=(1-(h+y))*E,L=(g+m)*E,z=(v+b)*_,X=(g-m)*_,R=(1-(h+p))*_;return r[0]=C,r[1]=I,r[2]=k,r[3]=0,r[4]=O,r[5]=B,r[6]=L,r[7]=0,r[8]=z,r[9]=X,r[10]=R,r[11]=0,r[12]=t[0]+S-(C*S+O*A+z*M),r[13]=t[1]+A-(I*S+B*A+X*M),r[14]=t[2]+M-(k*S+L*A+R*M),r[15]=1,r}function q5(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t+t,s=n+n,u=a+a,f=t*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return r[0]=1-c-v,r[1]=l+y,r[2]=h-g,r[3]=0,r[4]=l-y,r[5]=1-f-v,r[6]=d+p,r[7]=0,r[8]=h+g,r[9]=d-p,r[10]=1-f-c,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function H5(r,e,t,n,a,i,o){var s=1/(t-e),u=1/(a-n),f=1/(i-o);return r[0]=i*2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i*2*u,r[6]=0,r[7]=0,r[8]=(t+e)*s,r[9]=(a+n)*u,r[10]=(o+i)*f,r[11]=-1,r[12]=0,r[13]=0,r[14]=o*i*2*f,r[15]=0,r}function rM(r,e,t,n,a){var i=1/Math.tan(e/2);if(r[0]=i/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,a!=null&&a!==1/0){var o=1/(n-a);r[10]=(a+n)*o,r[14]=2*a*n*o}else r[10]=-1,r[14]=-2*n;return r}var Z5=rM;function K5(r,e,t,n,a){var i=1/Math.tan(e/2);if(r[0]=i/t,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=i,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,a!=null&&a!==1/0){var o=1/(n-a);r[10]=a*o,r[14]=a*n*o}else r[10]=-1,r[14]=-n;return r}function Q5(r,e,t,n){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(a+i);return r[0]=u,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=f,r[6]=0,r[7]=0,r[8]=-((o-s)*u*.5),r[9]=(a-i)*f*.5,r[10]=n/(t-n),r[11]=-1,r[12]=0,r[13]=0,r[14]=n*t/(t-n),r[15]=0,r}function nM(r,e,t,n,a,i,o){var s=1/(e-t),u=1/(n-a),f=1/(i-o);return r[0]=-2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*u,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*f,r[11]=0,r[12]=(e+t)*s,r[13]=(a+n)*u,r[14]=(o+i)*f,r[15]=1,r}var J5=nM;function eF(r,e,t,n,a,i,o){var s=1/(e-t),u=1/(n-a),f=1/(i-o);return r[0]=-2*s,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*u,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=f,r[11]=0,r[12]=(e+t)*s,r[13]=(a+n)*u,r[14]=i*f,r[15]=1,r}function tF(r,e,t,n){var a,i,o,s,u,f,l,c,h,d,v=e[0],p=e[1],g=e[2],y=n[0],m=n[1],b=n[2],w=t[0],x=t[1],E=t[2];return Math.abs(v-w)0&&(d=1/Math.sqrt(d),l*=d,c*=d,h*=d);var v=u*h-f*c,p=f*l-s*h,g=s*c-u*l;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),r[0]=v,r[1]=p,r[2]=g,r[3]=0,r[4]=c*g-h*p,r[5]=h*v-l*g,r[6]=l*p-c*v,r[7]=0,r[8]=l,r[9]=c,r[10]=h,r[11]=0,r[12]=a,r[13]=i,r[14]=o,r[15]=1,r}function nF(r){return"mat4("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+", "+r[8]+", "+r[9]+", "+r[10]+", "+r[11]+", "+r[12]+", "+r[13]+", "+r[14]+", "+r[15]+")"}function aF(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]+r[3]*r[3]+r[4]*r[4]+r[5]*r[5]+r[6]*r[6]+r[7]*r[7]+r[8]*r[8]+r[9]*r[9]+r[10]*r[10]+r[11]*r[11]+r[12]*r[12]+r[13]*r[13]+r[14]*r[14]+r[15]*r[15])}function iF(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r[4]=e[4]+t[4],r[5]=e[5]+t[5],r[6]=e[6]+t[6],r[7]=e[7]+t[7],r[8]=e[8]+t[8],r[9]=e[9]+t[9],r[10]=e[10]+t[10],r[11]=e[11]+t[11],r[12]=e[12]+t[12],r[13]=e[13]+t[13],r[14]=e[14]+t[14],r[15]=e[15]+t[15],r}function aM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r[4]=e[4]-t[4],r[5]=e[5]-t[5],r[6]=e[6]-t[6],r[7]=e[7]-t[7],r[8]=e[8]-t[8],r[9]=e[9]-t[9],r[10]=e[10]-t[10],r[11]=e[11]-t[11],r[12]=e[12]-t[12],r[13]=e[13]-t[13],r[14]=e[14]-t[14],r[15]=e[15]-t[15],r}function oF(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r[4]=e[4]*t,r[5]=e[5]*t,r[6]=e[6]*t,r[7]=e[7]*t,r[8]=e[8]*t,r[9]=e[9]*t,r[10]=e[10]*t,r[11]=e[11]*t,r[12]=e[12]*t,r[13]=e[13]*t,r[14]=e[14]*t,r[15]=e[15]*t,r}function sF(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r[3]=e[3]+t[3]*n,r[4]=e[4]+t[4]*n,r[5]=e[5]+t[5]*n,r[6]=e[6]+t[6]*n,r[7]=e[7]+t[7]*n,r[8]=e[8]+t[8]*n,r[9]=e[9]+t[9]*n,r[10]=e[10]+t[10]*n,r[11]=e[11]+t[11]*n,r[12]=e[12]+t[12]*n,r[13]=e[13]+t[13]*n,r[14]=e[14]+t[14]*n,r[15]=e[15]+t[15]*n,r}function uF(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]&&r[8]===e[8]&&r[9]===e[9]&&r[10]===e[10]&&r[11]===e[11]&&r[12]===e[12]&&r[13]===e[13]&&r[14]===e[14]&&r[15]===e[15]}function fF(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=r[8],c=r[9],h=r[10],d=r[11],v=r[12],p=r[13],g=r[14],y=r[15],m=e[0],b=e[1],w=e[2],x=e[3],E=e[4],_=e[5],S=e[6],A=e[7],M=e[8],C=e[9],I=e[10],k=e[11],O=e[12],B=e[13],L=e[14],z=e[15];return Math.abs(t-m)<=pt*Math.max(1,Math.abs(t),Math.abs(m))&&Math.abs(n-b)<=pt*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-w)<=pt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-x)<=pt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-E)<=pt*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-_)<=pt*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-S)<=pt*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-A)<=pt*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(l-M)<=pt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-C)<=pt*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-I)<=pt*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-k)<=pt*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(v-O)<=pt*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=pt*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-L)<=pt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-z)<=pt*Math.max(1,Math.abs(y),Math.abs(z))}var lF=KS,cF=aM;const hF=Object.freeze(Object.defineProperty({__proto__:null,add:iF,adjoint:k5,clone:S5,copy:M5,create:_5,decompose:W5,determinant:N5,equals:fF,exactEquals:uF,frob:aF,fromQuat:q5,fromQuat2:X5,fromRotation:z5,fromRotationTranslation:QS,fromRotationTranslationScale:V5,fromRotationTranslationScaleOrigin:Y5,fromScaling:G5,fromTranslation:B5,fromValues:A5,fromXRotation:j5,fromYRotation:U5,fromZRotation:$5,frustum:H5,getRotation:tM,getScaling:eM,getTranslation:JS,identity:ZS,invert:I5,lookAt:tF,mul:lF,multiply:KS,multiplyScalar:oF,multiplyScalarAndAdd:sF,ortho:J5,orthoNO:nM,orthoZO:eF,perspective:Z5,perspectiveFromFieldOfView:Q5,perspectiveNO:rM,perspectiveZO:K5,rotate:D5,rotateX:P5,rotateY:R5,rotateZ:F5,scale:L5,set:C5,str:nF,sub:cF,subtract:aM,targetTo:rF,translate:O5,transpose:T5},Symbol.toStringTag,{value:"Module"}));function ey(){var r=new qt(3);return qt!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function dF(r){var e=new qt(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function iM(r){var e=r[0],t=r[1],n=r[2];return Math.sqrt(e*e+t*t+n*n)}function h0(r,e,t){var n=new qt(3);return n[0]=r,n[1]=e,n[2]=t,n}function vF(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r}function pF(r,e,t,n){return r[0]=e,r[1]=t,r[2]=n,r}function gF(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r}function oM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r}function sM(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r[2]=e[2]*t[2],r}function uM(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r[2]=e[2]/t[2],r}function yF(r,e){return r[0]=Math.ceil(e[0]),r[1]=Math.ceil(e[1]),r[2]=Math.ceil(e[2]),r}function mF(r,e){return r[0]=Math.floor(e[0]),r[1]=Math.floor(e[1]),r[2]=Math.floor(e[2]),r}function bF(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r}function wF(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r[2]=Math.max(e[2],t[2]),r}function xF(r,e){return r[0]=Ba(e[0]),r[1]=Ba(e[1]),r[2]=Ba(e[2]),r}function EF(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r}function _F(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r[2]=e[2]+t[2]*n,r}function fM(r,e){var t=e[0]-r[0],n=e[1]-r[1],a=e[2]-r[2];return Math.sqrt(t*t+n*n+a*a)}function lM(r,e){var t=e[0]-r[0],n=e[1]-r[1],a=e[2]-r[2];return t*t+n*n+a*a}function cM(r){var e=r[0],t=r[1],n=r[2];return e*e+t*t+n*n}function SF(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r}function MF(r,e){return r[0]=1/e[0],r[1]=1/e[1],r[2]=1/e[2],r}function hM(r,e){var t=e[0],n=e[1],a=e[2],i=t*t+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function ld(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function qc(r,e,t){var n=e[0],a=e[1],i=e[2],o=t[0],s=t[1],u=t[2];return r[0]=a*u-i*s,r[1]=i*o-n*u,r[2]=n*s-a*o,r}function AF(r,e,t,n){var a=e[0],i=e[1],o=e[2];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r[2]=o+n*(t[2]-o),r}function CF(r,e,t,n){var a=Math.acos(Math.min(Math.max(ld(e,t),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return r[0]=o*e[0]+s*t[0],r[1]=o*e[1]+s*t[1],r[2]=o*e[2]+s*t[2],r}function TF(r,e,t,n,a,i){var o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,f=o*(i-1),l=o*(3-2*i);return r[0]=e[0]*s+t[0]*u+n[0]*f+a[0]*l,r[1]=e[1]*s+t[1]*u+n[1]*f+a[1]*l,r[2]=e[2]*s+t[2]*u+n[2]*f+a[2]*l,r}function IF(r,e,t,n,a,i){var o=1-i,s=o*o,u=i*i,f=s*o,l=3*i*s,c=3*u*o,h=u*i;return r[0]=e[0]*f+t[0]*l+n[0]*c+a[0]*h,r[1]=e[1]*f+t[1]*l+n[1]*c+a[1]*h,r[2]=e[2]*f+t[2]*l+n[2]*c+a[2]*h,r}function kF(r,e){e=e===void 0?1:e;var t=ya()*2*Math.PI,n=ya()*2-1,a=Math.sqrt(1-n*n)*e;return r[0]=Math.cos(t)*a,r[1]=Math.sin(t)*a,r[2]=n*e,r}function NF(r,e,t){var n=e[0],a=e[1],i=e[2],o=t[3]*n+t[7]*a+t[11]*i+t[15];return o=o||1,r[0]=(t[0]*n+t[4]*a+t[8]*i+t[12])/o,r[1]=(t[1]*n+t[5]*a+t[9]*i+t[13])/o,r[2]=(t[2]*n+t[6]*a+t[10]*i+t[14])/o,r}function cd(r,e,t){var n=e[0],a=e[1],i=e[2];return r[0]=n*t[0]+a*t[3]+i*t[6],r[1]=n*t[1]+a*t[4]+i*t[7],r[2]=n*t[2]+a*t[5]+i*t[8],r}function OF(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,r[0]=s+o*l+a*h-i*c,r[1]=u+o*c+i*l-n*h,r[2]=f+o*h+n*c-a*l,r}function LF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function DF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function PF(r,e,t,n){var a=[],i=[];return a[0]=e[0]-t[0],a[1]=e[1]-t[1],a[2]=e[2]-t[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],r[0]=i[0]+t[0],r[1]=i[1]+t[1],r[2]=i[2]+t[2],r}function RF(r,e){var t=r[0],n=r[1],a=r[2],i=e[0],o=e[1],s=e[2],u=Math.sqrt((t*t+n*n+a*a)*(i*i+o*o+s*s)),f=u&&ld(r,e)/u;return Math.acos(Math.min(Math.max(f,-1),1))}function FF(r){return r[0]=0,r[1]=0,r[2]=0,r}function BF(r){return"vec3("+r[0]+", "+r[1]+", "+r[2]+")"}function GF(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]}function zF(r,e){var t=r[0],n=r[1],a=r[2],i=e[0],o=e[1],s=e[2];return Math.abs(t-i)<=pt*Math.max(1,Math.abs(t),Math.abs(i))&&Math.abs(n-o)<=pt*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=pt*Math.max(1,Math.abs(a),Math.abs(s))}var jF=oM,UF=sM,$F=uM,XF=fM,WF=lM,dM=iM,VF=cM,YF=function(){var r=ey();return function(e,t,n,a,i,o){var s,u;for(t||(t=3),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;s0&&(o=1/Math.sqrt(o)),r[0]=t*o,r[1]=n*o,r[2]=a*o,r[3]=i*o,r}function ny(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]+r[3]*e[3]}function nB(r,e,t,n){var a=t[0]*n[1]-t[1]*n[0],i=t[0]*n[2]-t[2]*n[0],o=t[0]*n[3]-t[3]*n[0],s=t[1]*n[2]-t[2]*n[1],u=t[1]*n[3]-t[3]*n[1],f=t[2]*n[3]-t[3]*n[2],l=e[0],c=e[1],h=e[2],d=e[3];return r[0]=c*f-h*u+d*s,r[1]=-(l*f)+h*o-d*i,r[2]=l*u-c*o+d*a,r[3]=-(l*s)+c*i-h*a,r}function CM(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r[2]=o+n*(t[2]-o),r[3]=s+n*(t[3]-s),r}function aB(r,e){e=e===void 0?1:e;var t,n,a,i,o,s,u;u=ya(),t=u*2-1,n=(4*ya()-2)*Math.sqrt(u*-u+u),o=t*t+n*n,u=ya(),a=u*2-1,i=(4*ya()-2)*Math.sqrt(u*-u+u),s=a*a+i*i;var f=Math.sqrt((1-o)/s);return r[0]=e*t,r[1]=e*n,r[2]=e*a*f,r[3]=e*i*f,r}function iB(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3];return r[0]=t[0]*n+t[4]*a+t[8]*i+t[12]*o,r[1]=t[1]*n+t[5]*a+t[9]*i+t[13]*o,r[2]=t[2]*n+t[6]*a+t[10]*i+t[14]*o,r[3]=t[3]*n+t[7]*a+t[11]*i+t[15]*o,r}function oB(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,r[0]=s+o*l+a*h-i*c,r[1]=u+o*c+i*l-n*h,r[2]=f+o*h+n*c-a*l,r[3]=e[3],r}function sB(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}function uB(r){return"vec4("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}function TM(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]}function fB(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(t-o)<=pt*Math.max(1,Math.abs(t),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}var lB=wM,cB=xM,hB=EM,dB=SM,vB=MM,pB=ty,gB=ry,yB=function(){var r=vM();return function(e,t,n,a,i,o){var s,u;for(t||(t=4),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;spt?(r[0]=e[0]/n,r[1]=e[1]/n,r[2]=e[2]/n):(r[0]=1,r[1]=0,r[2]=0),t}function xB(r,e){var t=iy(r,e);return Math.acos(2*t*t-1)}function kM(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*l+o*s+a*f-i*u,r[1]=a*l+o*u+i*s-n*f,r[2]=i*l+o*f+n*u-a*s,r[3]=o*l-n*s-a*u-i*f,r}function NM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+o*s,r[1]=a*u+i*s,r[2]=i*u-a*s,r[3]=o*u-n*s,r}function OM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u-i*s,r[1]=a*u+o*s,r[2]=i*u+n*s,r[3]=o*u-a*s,r}function LM(r,e,t){t*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(t),u=Math.cos(t);return r[0]=n*u+a*s,r[1]=a*u-n*s,r[2]=i*u+o*s,r[3]=o*u-i*s,r}function EB(r,e){var t=e[0],n=e[1],a=e[2];return r[0]=t,r[1]=n,r[2]=a,r[3]=Math.sqrt(Math.abs(1-t*t-n*n-a*a)),r}function DM(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(t*t+n*n+a*a),s=Math.exp(i),u=o>0?s*Math.sin(o)/o:0;return r[0]=t*u,r[1]=n*u,r[2]=a*u,r[3]=s*Math.cos(o),r}function PM(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(t*t+n*n+a*a),s=o>0?Math.atan2(o,i)/o:0;return r[0]=t*s,r[1]=n*s,r[2]=a*s,r[3]=.5*Math.log(t*t+n*n+a*a+i*i),r}function _B(r,e,t){return PM(r,e),FM(r,r,t),DM(r,r),r}function Hc(r,e,t,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=t[0],f=t[1],l=t[2],c=t[3],h,d,v,p,g;return d=a*u+i*f+o*l+s*c,d<0&&(d=-d,u=-u,f=-f,l=-l,c=-c),1-d>pt?(h=Math.acos(d),v=Math.sin(h),p=Math.sin((1-n)*h)/v,g=Math.sin(n*h)/v):(p=1-n,g=n),r[0]=p*a+g*u,r[1]=p*i+g*f,r[2]=p*o+g*l,r[3]=p*s+g*c,r}function SB(r){var e=ya(),t=ya(),n=ya(),a=Math.sqrt(1-e),i=Math.sqrt(e);return r[0]=a*Math.sin(2*Math.PI*t),r[1]=a*Math.cos(2*Math.PI*t),r[2]=i*Math.sin(2*Math.PI*n),r[3]=i*Math.cos(2*Math.PI*n),r}function MB(r,e){var t=e[0],n=e[1],a=e[2],i=e[3],o=t*t+n*n+a*a+i*i,s=o?1/o:0;return r[0]=-t*s,r[1]=-n*s,r[2]=-a*s,r[3]=i*s,r}function AB(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r}function RM(r,e){var t=e[0]+e[4]+e[8],n;if(t>0)n=Math.sqrt(t+1),r[3]=.5*n,n=.5/n,r[0]=(e[5]-e[7])*n,r[1]=(e[6]-e[2])*n,r[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),r[a]=.5*n,n=.5/n,r[3]=(e[i*3+o]-e[o*3+i])*n,r[i]=(e[i*3+a]+e[a*3+i])*n,r[o]=(e[o*3+a]+e[a*3+o])*n}return r}function CB(r,e,t,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:jS,i=Math.PI/360;e*=i,n*=i,t*=i;var o=Math.sin(e),s=Math.cos(e),u=Math.sin(t),f=Math.cos(t),l=Math.sin(n),c=Math.cos(n);switch(a){case"xyz":r[0]=o*f*c+s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c-o*u*l;break;case"xzy":r[0]=o*f*c-s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c+o*u*l;break;case"yxz":r[0]=o*f*c+s*u*l,r[1]=s*u*c-o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c+o*u*l;break;case"yzx":r[0]=o*f*c+s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c-o*u*l;break;case"zxy":r[0]=o*f*c-s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l+o*u*c,r[3]=s*f*c-o*u*l;break;case"zyx":r[0]=o*f*c-s*u*l,r[1]=s*u*c+o*f*l,r[2]=s*f*l-o*u*c,r[3]=s*f*c+o*u*l;break;default:throw new Error("Unknown angle order "+a)}return r}function TB(r){return"quat("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+")"}var IB=pM,kB=gM,ay=yM,NB=mM,OB=bM,LB=kM,FM=_M,iy=ny,DB=CM,oy=ty,PB=oy,sy=ry,RB=sy,uy=AM,FB=TM;function BB(r,e){return Math.abs(ny(r,e))>=1-pt}var GB=function(){var r=ey(),e=h0(1,0,0),t=h0(0,1,0);return function(n,a,i){var o=ld(a,i);return o<-.999999?(qc(r,e,a),dM(r)<1e-6&&qc(r,t,a),hM(r,r),IM(n,r,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(qc(r,a,i),n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=1+o,uy(n,n))}}(),zB=function(){var r=Eh(),e=Eh();return function(t,n,a,i,o,s){return Hc(r,n,o,s),Hc(e,a,i,s),Hc(t,r,e,2*s*(1-s)),t}}(),jB=function(){var r=VS();return function(e,t,n,a){return r[0]=n[0],r[3]=n[1],r[6]=n[2],r[1]=a[0],r[4]=a[1],r[7]=a[2],r[2]=-t[0],r[5]=-t[1],r[8]=-t[2],uy(e,RM(e,r))}}();const UB=Object.freeze(Object.defineProperty({__proto__:null,add:OB,calculateW:EB,clone:IB,conjugate:AB,copy:ay,create:Eh,dot:iy,equals:BB,exactEquals:FB,exp:DM,fromEuler:CB,fromMat3:RM,fromValues:kB,getAngle:xB,getAxisAngle:wB,identity:bB,invert:MB,len:PB,length:oy,lerp:DB,ln:PM,mul:LB,multiply:kM,normalize:uy,pow:_B,random:SB,rotateX:NM,rotateY:OM,rotateZ:LM,rotationTo:GB,scale:FM,set:NB,setAxes:jB,setAxisAngle:IM,slerp:Hc,sqlerp:zB,sqrLen:RB,squaredLength:sy,str:TB},Symbol.toStringTag,{value:"Module"}));function $B(){var r=new qt(8);return qt!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[4]=0,r[5]=0,r[6]=0,r[7]=0),r[3]=1,r}function XB(r){var e=new qt(8);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e}function WB(r,e,t,n,a,i,o,s){var u=new qt(8);return u[0]=r,u[1]=e,u[2]=t,u[3]=n,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u}function VB(r,e,t,n,a,i,o){var s=new qt(8);s[0]=r,s[1]=e,s[2]=t,s[3]=n;var u=a*.5,f=i*.5,l=o*.5;return s[4]=u*n+f*t-l*e,s[5]=f*n+l*r-u*t,s[6]=l*n+u*e-f*r,s[7]=-u*r-f*e-l*t,s}function BM(r,e,t){var n=t[0]*.5,a=t[1]*.5,i=t[2]*.5,o=e[0],s=e[1],u=e[2],f=e[3];return r[0]=o,r[1]=s,r[2]=u,r[3]=f,r[4]=n*f+a*u-i*s,r[5]=a*f+i*o-n*u,r[6]=i*f+n*s-a*o,r[7]=-n*o-a*s-i*u,r}function YB(r,e){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r[4]=e[0]*.5,r[5]=e[1]*.5,r[6]=e[2]*.5,r[7]=0,r}function qB(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=0,r[5]=0,r[6]=0,r[7]=0,r}function HB(r,e){var t=Eh();tM(t,e);var n=new qt(3);return JS(n,e),BM(r,t,n),r}function GM(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r}function ZB(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r[6]=0,r[7]=0,r}function KB(r,e,t,n,a,i,o,s,u){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r[4]=i,r[5]=o,r[6]=s,r[7]=u,r}var QB=ay;function JB(r,e){return r[0]=e[4],r[1]=e[5],r[2]=e[6],r[3]=e[7],r}var eG=ay;function tG(r,e){return r[4]=e[0],r[5]=e[1],r[6]=e[2],r[7]=e[3],r}function rG(r,e){var t=e[4],n=e[5],a=e[6],i=e[7],o=-e[0],s=-e[1],u=-e[2],f=e[3];return r[0]=(t*f+i*o+n*u-a*s)*2,r[1]=(n*f+i*s+a*o-t*u)*2,r[2]=(a*f+i*u+t*s-n*o)*2,r}function nG(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0]*.5,u=t[1]*.5,f=t[2]*.5,l=e[4],c=e[5],h=e[6],d=e[7];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=o*s+a*f-i*u+l,r[5]=o*u+i*s-n*f+c,r[6]=o*f+n*u-a*s+h,r[7]=-n*s-a*u-i*f+d,r}function aG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return NM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function iG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return OM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function oG(r,e,t){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return LM(r,e,t),n=r[0],a=r[1],i=r[2],o=r[3],r[4]=c*o+v*n+h*i-d*a,r[5]=h*o+v*a+d*n-c*i,r[6]=d*o+v*i+c*a-h*n,r[7]=v*o-c*n-h*a-d*i,r}function sG(r,e,t){var n=t[0],a=t[1],i=t[2],o=t[3],s=e[0],u=e[1],f=e[2],l=e[3];return r[0]=s*o+l*n+u*i-f*a,r[1]=u*o+l*a+f*n-s*i,r[2]=f*o+l*i+s*a-u*n,r[3]=l*o-s*n-u*a-f*i,s=e[4],u=e[5],f=e[6],l=e[7],r[4]=s*o+l*n+u*i-f*a,r[5]=u*o+l*a+f*n-s*i,r[6]=f*o+l*i+s*a-u*n,r[7]=l*o-s*n-u*a-f*i,r}function uG(r,e,t){var n=e[0],a=e[1],i=e[2],o=e[3],s=t[0],u=t[1],f=t[2],l=t[3];return r[0]=n*l+o*s+a*f-i*u,r[1]=a*l+o*u+i*s-n*f,r[2]=i*l+o*f+n*u-a*s,r[3]=o*l-n*s-a*u-i*f,s=t[4],u=t[5],f=t[6],l=t[7],r[4]=n*l+o*s+a*f-i*u,r[5]=a*l+o*u+i*s-n*f,r[6]=i*l+o*f+n*u-a*s,r[7]=o*l-n*s-a*u-i*f,r}function fG(r,e,t,n){if(Math.abs(n)0){t=Math.sqrt(t);var n=e[0]/t,a=e[1]/t,i=e[2]/t,o=e[3]/t,s=e[4],u=e[5],f=e[6],l=e[7],c=n*s+a*u+i*f+o*l;r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=(s-n*c)/t,r[5]=(u-a*c)/t,r[6]=(f-i*c)/t,r[7]=(l-o*c)/t}return r}function bG(r){return"quat2("+r[0]+", "+r[1]+", "+r[2]+", "+r[3]+", "+r[4]+", "+r[5]+", "+r[6]+", "+r[7]+")"}function wG(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]&&r[3]===e[3]&&r[4]===e[4]&&r[5]===e[5]&&r[6]===e[6]&&r[7]===e[7]}function xG(r,e){var t=r[0],n=r[1],a=r[2],i=r[3],o=r[4],s=r[5],u=r[6],f=r[7],l=e[0],c=e[1],h=e[2],d=e[3],v=e[4],p=e[5],g=e[6],y=e[7];return Math.abs(t-l)<=pt*Math.max(1,Math.abs(t),Math.abs(l))&&Math.abs(n-c)<=pt*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-h)<=pt*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-d)<=pt*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-v)<=pt*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=pt*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-g)<=pt*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-y)<=pt*Math.max(1,Math.abs(f),Math.abs(y))}const EG=Object.freeze(Object.defineProperty({__proto__:null,add:lG,clone:XB,conjugate:pG,copy:GM,create:$B,dot:jM,equals:xG,exactEquals:wG,fromMat4:HB,fromRotation:qB,fromRotationTranslation:BM,fromRotationTranslationValues:VB,fromTranslation:YB,fromValues:WB,getDual:JB,getReal:QB,getTranslation:rG,identity:ZB,invert:vG,len:gG,length:UM,lerp:dG,mul:cG,multiply:zM,normalize:mG,rotateAroundAxis:fG,rotateByQuatAppend:sG,rotateByQuatPrepend:uG,rotateX:aG,rotateY:iG,rotateZ:oG,scale:hG,set:KB,setDual:tG,setReal:eG,sqrLen:yG,squaredLength:hd,str:bG,translate:nG},Symbol.toStringTag,{value:"Module"}));function $M(){var r=new qt(2);return qt!=Float32Array&&(r[0]=0,r[1]=0),r}function _G(r){var e=new qt(2);return e[0]=r[0],e[1]=r[1],e}function SG(r,e){var t=new qt(2);return t[0]=r,t[1]=e,t}function MG(r,e){return r[0]=e[0],r[1]=e[1],r}function AG(r,e,t){return r[0]=e,r[1]=t,r}function fn(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function XM(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function WM(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function VM(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function CG(r,e){return r[0]=Math.ceil(e[0]),r[1]=Math.ceil(e[1]),r}function TG(r,e){return r[0]=Math.floor(e[0]),r[1]=Math.floor(e[1]),r}function Pi(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ri(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}function IG(r,e){return r[0]=Ba(e[0]),r[1]=Ba(e[1]),r}function wn(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function kG(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function _h(r,e){var t=e[0]-r[0],n=e[1]-r[1];return Math.sqrt(t*t+n*n)}function YM(r,e){var t=e[0]-r[0],n=e[1]-r[1];return t*t+n*n}function qM(r){var e=r[0],t=r[1];return Math.sqrt(e*e+t*t)}function HM(r){var e=r[0],t=r[1];return e*e+t*t}function NG(r,e){return r[0]=-e[0],r[1]=-e[1],r}function OG(r,e){return r[0]=1/e[0],r[1]=1/e[1],r}function Wi(r,e){var t=e[0],n=e[1],a=t*t+n*n;return a>0&&(a=1/Math.sqrt(a)),r[0]=e[0]*a,r[1]=e[1]*a,r}function fy(r,e){return r[0]*e[0]+r[1]*e[1]}function LG(r,e,t){var n=e[0]*t[1]-e[1]*t[0];return r[0]=r[1]=0,r[2]=n,r}function DG(r,e,t,n){var a=e[0],i=e[1];return r[0]=a+n*(t[0]-a),r[1]=i+n*(t[1]-i),r}function PG(r,e){e=e===void 0?1:e;var t=ya()*2*Math.PI;return r[0]=Math.cos(t)*e,r[1]=Math.sin(t)*e,r}function RG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a,r[1]=t[1]*n+t[3]*a,r}function FG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function BG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[3]*a+t[6],r[1]=t[1]*n+t[4]*a+t[7],r}function GG(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[4]*a+t[12],r[1]=t[1]*n+t[5]*a+t[13],r}function zG(r,e,t,n){var a=e[0]-t[0],i=e[1]-t[1],o=Math.sin(n),s=Math.cos(n);return r[0]=a*s-i*o+t[0],r[1]=a*o+i*s+t[1],r}function ZM(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.abs(Math.atan2(n*a-t*i,t*a+n*i))}function jG(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.atan2(t*i-n*a,t*a+n*i)}function UG(r){return r[0]=0,r[1]=0,r}function $G(r){return"vec2("+r[0]+", "+r[1]+")"}function ly(r,e){return r[0]===e[0]&&r[1]===e[1]}function XG(r,e){var t=r[0],n=r[1],a=e[0],i=e[1];return Math.abs(t-a)<=pt*Math.max(1,Math.abs(t),Math.abs(a))&&Math.abs(n-i)<=pt*Math.max(1,Math.abs(n),Math.abs(i))}var WG=qM,Zc=XM,VG=WM,YG=VM,qG=_h,HG=YM,ZG=HM,KG=function(){var r=$M();return function(e,t,n,a,i,o){var s,u;for(t||(t=2),n||(n=0),a?u=Math.min(a*t+n,e.length):u=e.length,s=n;s0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o},eA=function(e){for(var t=e.nodes,n=t===void 0?[]:t,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=Un(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=Un(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),t&&n?(M=!1,C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!0)):t&&!n&&C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(t&&n===!1&&t.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=eA({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(t&&n&&t.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s},aA=function(e,t,n,a){return a===void 0&&(a=!0),t?py(e,n,a):vy(e,n,a)},l4=function(e,t,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?Un(v,s,"target"):Un(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c},Cf=function(e,t){for(var n=Uo(e,t),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},uA=function(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=QM();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=Uo(e,t),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=rr(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=ep(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=ep(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},fA=function(e,t,n,a,i,o,s,u){return t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e-4),i===void 0&&(i=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),u===void 0&&(u=1),my(e,t,n,a,!0,i,o,s,u)},lA=function(e,t){var n;t===void 0&&(t=1);for(var a=rr(e),i=a.nodes,o=i===void 0?[]:i,s=a.edges,u=s===void 0?[]:s,f=function(){var h=yi({nodes:o,edges:u}),d=Object.keys(h);d.sort(function(g,y){var m,b;return((m=h[g])===null||m===void 0?void 0:m.degree)-((b=h[y])===null||b===void 0?void 0:b.degree)});var v=d[0];if(!o.length||((n=h[v])===null||n===void 0?void 0:n.degree)>=t)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),u=u.filter(function(g){return!(g.source===v||g.target===v)})};;){var l=f();if(l==="break")break}return{nodes:o,edges:u}},rw=function(e,t,n){var a=[];switch(e){case pa.EuclideanDistance:a=t[n];break;default:a=[];break}return a},cA=function(e,t,n,a,i,o){t===void 0&&(t=3),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=["id"]),o===void 0&&(o=pa.EuclideanDistance);var s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(o===pa.EuclideanDistance&&!u.every(function(he){return he.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===pa.EuclideanDistance&&(h=gy(u,n),d=yy(h,a,i)),!d.length)return c;for(var v=Mf(d.map(function(he){return he.join("")})),p=Math.min(t,u.length,v.length),g=0;gx&&!y.find(function(it){return jo(it,rw(o,d,u[le].originIndex))})&&(x=Ve,E=le)}},S=0;S=0;O--)b[Number(u[g].clusterId)][O].id===u[g].id&&b[Number(u[g].clusterId)].splice(O,1);u[g].clusterId=String(M),b[M].push(u[g])}}for(var B=!1,g=0;g=1e3)break}var R=[],V={};return l.forEach(function(he){var ce,le,ie=he.source,Ie=he.target,qe=(ce=u.find(function(st){return st.id===ie}))===null||ce===void 0?void 0:ce.clusterId,Ve=(le=u.find(function(st){return st.id===Ie}))===null||le===void 0?void 0:le.clusterId,it="".concat(qe,"---").concat(Ve);if(V[it])V[it].count++;else{var dt={source:qe,target:Ve,count:1};V[it]=dt,R.push(dt)}}),{clusters:b,clusterEdges:R}},by=function(e,t){var n=new ta(t),a=n.norm2(),i=new ta(e),o=i.norm2(),s=n.dot(i),u=a*o,f=u?s/u:0;return f},hA=function(e,t,n,a,i){e===void 0&&(e=[]),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=[]);var o=rr(e.filter(function(h){return h.id!==t.id})),s=e.findIndex(function(h){return h.id===t.id}),u=gy(e,n),f=yy(u,a,i),l=f[s],c=[];return o.forEach(function(h,d){if(h.id!==t.id){var v=f[d],p=by(v,l);c.push(p),h.cosineSimilarity=p}}),o.sort(function(h,d){return d.cosineSimilarity-h.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},h4=function(){function r(e){this.count=e.length,this.parent={};for(var t=0,n=e;t0&&(this.list[0]=t,this.moveDown(0)),e},r.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},r.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var n=this.list[t];this.list[t]=this.list[e],this.list[e]=n,e=t,t=this.getParent(e)}},r.prototype.moveDown=function(e){var t,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(t=[this.list[n],this.list[e]],this.list[e]=t[0],this.list[n]=t[1],this.moveDown(n))},r}(),p4=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return t?g.weight-y.weight:0},c=new v4(l);for(Kc(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),Kc(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),Kc(v,s).forEach(function(p){c.insert(p)})))}return n},nw=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});t&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new h4(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},dA=function(e,t,n){var a={prim:p4,kruskal:nw};return n?a[n](e,t):nw(e,t)},vA=function(e,t,n){typeof t!="number"&&(t=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>t;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(t.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new ko(p,m,Ga,_.edgeLabel,Ga));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new Jl(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new Jl(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=t.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=t.maxNodeNum)){var y=t.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=t.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(t.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*t)););if(g<2*t&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*t)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[t]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},bA=function(e,t,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=Cf(e,n),c=Cf(t,n),h=lw(e.nodes,l,n),d=lw(t.nodes,c,n),v=uw(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=uw(t.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;fw(e.edges,s,p);var w=fw(t.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,Xn(Xn([],x,!1),[2],!1))),a||(a=i);var E=sw(e,l,o,a),_=sw(t,c,o,a),S=Math.min(100,f*(f-1)/2),A=E4(a,f,S,E,l),M=Qc(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=x4(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=Jc(Se,tt,o,s);X[te][N]=Fe})});var R=_4(X,z,L),V=R.structure,he=R.structureCountMap,ce=t.nodes[0],le=[],ie=(u=t.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;t.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=Qc(Se,_,t,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=Jc(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=Qc(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=Jc(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=mA(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:S4(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=Af(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,bu=ge[Ur.id].inDegree,wu=ge[Ur.id].outDegree,rn=Ur[o],ti=cw(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,xu=ti.minPatternNodeLabelInDegree,Eu=ti.minPatternNodeLabelOutDegree,_u=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},Bs=function(){function r(e){e===void 0&&(e=10),this.linkedList=new KM,this.maxStep=e}return Object.defineProperty(r.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),r.prototype.isEmpty=function(){return!this.linkedList.head},r.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},r.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},r.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},r.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},r.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},r.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},r}(),wA=dy;const M4={getAdjMatrix:Uo,breadthFirstSearch:JM,connectedComponent:cy,getDegree:yi,getInDegree:tA,getOutDegree:rA,detectCycle:dy,detectDirectedCycle:wA,detectAllCycles:aA,detectAllDirectedCycle:py,detectAllUndirectedCycle:vy,depthFirstSearch:hy,dijkstra:Af,findAllPath:sA,findShortestPath:oA,floydWarshall:Cf,labelPropagation:uA,louvain:my,iLouvain:fA,kCore:lA,kMeans:cA,cosineSimilarity:by,nodesCosineSimilarity:hA,minimumSpanningTree:dA,pageRank:vA,getNeighbors:Un,Stack:Bs,GADDI:bA},A4=Object.freeze(Object.defineProperty({__proto__:null,GADDI:bA,Stack:Bs,breadthFirstSearch:JM,connectedComponent:cy,cosineSimilarity:by,default:M4,depthFirstSearch:hy,detectAllCycles:aA,detectAllDirectedCycle:py,detectAllUndirectedCycle:vy,detectCycle:dy,detectDirectedCycle:wA,dijkstra:Af,findAllPath:sA,findShortestPath:oA,floydWarshall:Cf,getAdjMatrix:Uo,getDegree:yi,getInDegree:tA,getNeighbors:Un,getOutDegree:rA,iLouvain:fA,kCore:lA,kMeans:cA,labelPropagation:uA,louvain:my,minimumSpanningTree:dA,nodesCosineSimilarity:hA,pageRank:vA},Symbol.toStringTag,{value:"Module"}));var Mh=eo,C4=function(e){return function(t,n){return t[e]-n[e]}},hw=function(e,t,n){return e>=t&&e<=n},dd=function(e,t,n,a){var i=1e-4,o={x:n.x-e.x,y:n.y-e.y},s={x:t.x-e.x,y:t.y-e.y},u={x:a.x-n.x,y:a.y-n.y},f=s.x*u.y-s.y*u.x,l=f*f,c=1/f,h=s.x*s.x+s.y*s.y,d=u.x*u.x+u.y*u.y;if(l>i*h*d){var v=(o.x*u.y-o.y*u.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!hw(v,0,1)||!hw(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},xA=function(e,t){var n=e.x,a=e.y,i=e.width,o=e.height,s=n+i/2,u=a+o/2,f=[],l={x:s,y:u};f.push({x:n,y:a}),f.push({x:n+i,y:a}),f.push({x:n+i,y:a+o}),f.push({x:n,y:a+o}),f.push({x:n,y:a});for(var c=null,h=1;ht[a][o]+t[o][i]&&(t[a][i]=t[a][o]+t[o][i]);return t},k4=function(e,t){var n=e.nodes,a=e.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(s,u){o[s.id]=u;var f=[];i.push(f)}),a&&a.forEach(function(s){var u=s.source,f=s.target,l=o[u],c=o[f];i[l][c]=1,t||(i[c][l]=1)}),i},MA=function(e,t){e.translate(t.x,t.y)},v0=function(e,t,n,a){a===void 0&&(a={duration:500});var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=t.x-o.minX,u=t.y-o.minY;if(n){var f=s*i[0],l=u*i[4],c=0,h=0,d=0,v=0;e.animate(function(g){return d=f*g,v=l*g,i=Mh(i,[["t",d-c,v-h]]),c=d,h=v,{matrix:i}},a)}else{var p=Mh(i,[["t",s,u]]);e.setMatrix(p)}},N4=function(e,t){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=t;bt(t)||(a=[t,t]),bt(t)&&t.length===1&&(a=[t[0],t[0]]),n=Mh(n,[["s",a[0],a[1]]]),e.setMatrix(n)},O4=function(e,t){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=Mh(n,[["r",t]]),e.setMatrix(n)},L4=function(e,t,n){for(var a=[],i=0;i0!=s(l[1]-n)>0&&s(t-(n-f[1])*(f[0]-l[0])/(f[1]-l[1])-f[0])<0&&(a=!a)}return a},AA=function(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1){var m=h[0],b=h[v-1];d.push({from:{x:b[0],y:b[1]},to:{x:m[0],y:m[1]}})}return d};if(e.length<2||t.length<2)return!1;var i=n(e),o=n(t);if(!AA(i,o))return!1;var s=!1;if(_e(t,function(c){if(Tf(e,c[0],c[1]))return s=!0,!1}),s||(_e(e,function(c){if(Tf(t,c[0],c[1]))return s=!0,!1}),s))return!0;var u=a(e),f=a(t),l=!1;return _e(f,function(c){if(P4(u,c))return l=!0,!1}),l},$o=function(){function r(e,t,n,a){this.x1=e,this.y1=t,this.x2=n,this.y2=a}return r.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),t=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2),i={x:e,y:t,minX:e,minY:t,maxX:n,maxY:a,width:n-e,height:a-t};return i},r}(),wy=function(e,t){var n={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return n[t]},R4=function(e,t){var n=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),a=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),i=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(i){var o=n/i,s=a/i;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},TA=function(e,t){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=0,o=[],s=0;s<4;s++){var u=wy(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3];o[s]=dd({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},{x:f,y:l},{x:c,y:h}),o[s]&&(i+=1)}return[o,i]},xy=function(e,t){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var u=wy(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3],d=R4(t,new $o(f,l,c,h));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,i=d0){for(var a=0,i=e;at.x+t.width,i=e.y>t.y+t.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var Pa=Math.PI,y0=Math.sin,m0=Math.cos,sn=y0(Pa/8),un=m0(Pa/8),Th=function(e,t){var n=e.getBBox(),a={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(t){var o=t.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),a=js(a,o),i=js(i,o)}var s=a.x,u=a.y,f=i.x,l=i.y;return{x:s,y:u,minX:s,minY:u,maxX:f,maxY:l,width:f-s,height:l-u}},OA=function(e){var t=e.sourceNode||e.targetNode,n=t.get("group"),a=n.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getKeyShape(),o=i.getBBox(),s=e.loopCfg||{},u=s.dist||Math.max(o.width,o.height)*2,f=s.position||ft.defaultLoopPosition,l=[(o.minX+o.maxX)/2+a[6],(o.minY+o.maxY)/2+a[7]],c=[e.startPoint.x,e.startPoint.y],h=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,y=p*sn,m=p*un,b=g*sn,w=g*un,x=i.get("type"),E=Math.min(d/2,v/2),_=Math.min(d,v),S=s!=null&&s.pointPadding?Math.min(_,s==null?void 0:s.pointPadding):E;if(c[0]===h[0]&&c[1]===h[1]){switch(f){case"top":x==="circle"?(c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]):(c=[l[0]-S,l[1]-d],h=[l[0]+S,l[1]-d]);break;case"top-right":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]-m],h=[l[0]+w,l[1]-b]):(c=[l[0]+v-S,l[1]-d],h=[l[0]+v,l[1]-d+S]);break;case"right":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]-y],h=[l[0]+w,l[1]+b]):(c=[l[0]+v,l[1]-S],h=[l[0]+v,l[1]+S]);break;case"bottom-right":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]+y],h=[l[0]+b,l[1]+w]):(c=[l[0]+v,l[1]+d-S],h=[l[0]+v-S,l[1]+d]);break;case"bottom":p=d,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]+m],h=[l[0]-b,l[1]+w]):(c=[l[0]-S,l[1]+d],h=[l[0]+S,l[1]+d]);break;case"bottom-left":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]+m],h=[l[0]-w,l[1]+b]):(c=[l[0]-v,l[1]+d-S],h=[l[0]-v+S,l[1]+d]);break;case"left":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]+y],h=[l[0]-w,l[1]-b]):(c=[l[0]-v,l[1]-S],h=[l[0]-v,l[1]+S]);break;case"top-left":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]-y],h=[l[0]-b,l[1]-w]):(c=[l[0]-v+S,l[1]-d],h=[l[0]-v,l[1]-d+S]);break;default:p=v,g=v,y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]}if(s.clockwise===!1){var A=[c[0],c[1]];c=[h[0],h[1]],h=[A[0],A[1]]}}var M=[c[0]-l[0],c[1]-l[1]],C=(p+u)/p,I=(g+u)/g;s.clockwise===!1&&(C=(g+u)/g,I=(p+u)/p);var k=wn([0,0],M,C),O=[l[0]+k[0],l[1]+k[1]],B=[h[0]-l[0],h[1]-l[1]],L=wn([0,0],B,I),z=[l[0]+L[0],l[1]+L[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:h[0],y:h[1]},e.controlPoints=[{x:O[0],y:O[1]},{x:z[0],y:z[1]}],e},LA=function(e,t,n,a,i){var o=1e-4,s=[],u=e==null?void 0:e.getPoint(t);if(!u)return{x:0,y:0,angle:0};if(t1-o)s=e.getEndTangent();else{var f=e==null?void 0:e.getPoint(t+o);s.push([u.x,u.y]),s.push([f.x,f.y])}var l=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(l<0&&(l+=Pa*2),n&&(u.x+=m0(l)*n,u.y+=y0(l)*n),a){var c=l-Pa/2;l>1/2*Pa&&l<3*1/2*Pa&&(c-=Pa),u.x+=m0(c)*a,u.y+=y0(c)*a}var h={x:u.x,y:u.y,angle:l};return i?(l>.5*Pa&&l<1.5*Pa&&(l-=Pa),P({rotate:l},h)):h},W4=function r(e,t,n,a){if(a(e,t,n)===!1)return!1;if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!r(e.children[i],e,i,a))return!1}return!0},V4=function r(e,t,n,a){if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!r(e.children[i],e,i,a))return}return a(e,t,n)!==!1},bn=function(e,t){typeof t=="function"&&W4(e,null,-1,t)},Ra=function(e,t){typeof t=="function"&&V4(e,null,-1,t)},DA=function(e,t){return t*(X4[e]||1)},PA=function(e,t){var n=0,a=new RegExp("[一-龥]+");return e.split("").forEach(function(i){a.test(i)?n+=t:n+=DA(i,t)}),[n,t]},RA=function(e,t){return typeof t!="number"||t<=0||t>=e.length?e:e.substring(0,t)+"..."},b0=function(e,t){var n=[],a={},i={};e.forEach(function(u){i[u.id]=u}),e.forEach(function(u,f){var l=rr(u);l.itemType="combo",l.children=void 0,l.parentId===l.id?(console.warn("The parentId for combo ".concat(l.id," can not be the same as the combo's id")),delete l.parentId):l.parentId&&!i[l.parentId]&&(console.warn("The parent combo for combo ".concat(l.id," does not exist!")),delete l.parentId);var c=a[l.id];if(c){if(l.children=c.children,a[l.id]=l,c=l,!c.parentId){n.push(c);return}var h=a[c.parentId];if(h)h.children?h.children.push(l):h.children=[l];else{var d={id:c.parentId,children:[c]};a[c.parentId]=d,a[l.id]=l}return}if(Ye(u.parentId)){var v=a[u.parentId];if(v)v.children?v.children.push(l):v.children=[l],a[l.id]=l;else{var p={id:u.parentId,children:[l]};a[p.id]=p,a[l.id]=l}}else n.push(l),a[l.id]=l});var o={};(t||[]).forEach(function(u){o[u.id]=u;var f=a[u.comboId];if(f){var l={id:u.id,comboId:u.comboId};f.children?f.children.push(l):f.children=[l],l.itemType="node",a[u.id]=l}});var s=0;return n.forEach(function(u){u.depth=s+10,bn(u,function(f){var l,c=a[f.id].itemType;c==="node"?l=a[f.comboId]:l=a[f.parentId],l&&c==="node"?f.depth=s+1:f.depth=s+10,s-1&&i.splice(l,1),u||(o={id:t,itemType:"node",comboId:n},s[t]={children:void 0}),t){var c=!1;if(n){var h=0;(e||[]).forEach(function(v){c||bn(v,function(p){return n===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],h=p.depth,o.itemType==="node"?o.depth=h+2:o.depth=h+1,!1):!0})})}else(!n||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;bn(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},eh=function(e,t,n){var a={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var i=n==null?void 0:n.getModel(),o=i||{},s=o.x,u=o.y,f=o.fixSize,l=o.collapsed,c=o.fixCollapseSize,h=l?c:f,d=bt(h)?h:[h,h],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:u-g[1],maxX:s+g[0],maxY:u+g[1],x:s,y:u,width:v,height:p}}return e.forEach(function(y){var m=t.findById(y.id);if(!(!m||!m.isVisible())){m.set("bboxCanvasCache",void 0);var b=m.getCanvasBBox();b.x&&a.minX>b.minX&&(a.minX=b.minX),b.y&&a.minY>b.minY&&(a.minY=b.minY),b.x&&a.maxX2&&(t.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([a,o[0]]),s==="r")t.push([a].concat(o));else for(;o.length>=e[s]&&(t.push([a].concat(o.splice(0,e[s]))),!!e[s]););return r}),t},x0=function(r,e){for(var t=[],n=0,a=r.length;a-2*!e>n;n+=2){var i=[{x:+r[n-2],y:+r[n-1]},{x:+r[n],y:+r[n+1]},{x:+r[n+2],y:+r[n+3]},{x:+r[n+4],y:+r[n+5]}];e?n?a-4===n?i[3]={x:+r[0],y:+r[1]}:a-2===n&&(i[2]={x:+r[0],y:+r[1]},i[3]={x:+r[2],y:+r[3]}):i[0]={x:+r[a-2],y:+r[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+r[n],y:+r[n+1]}),t.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return t},rc=function(r,e,t,n,a){var i=[];if(a===null&&n===null&&(n=t),r=+r,e=+e,t=+t,n=+n,a!==null){var o=Math.PI/180,s=r+t*Math.cos(-n*o),u=r+t*Math.cos(-a*o),f=e+t*Math.sin(-n*o),l=e+t*Math.sin(-a*o);i=[["M",s,f],["A",t,t,0,+(a-n>180),0,u,l]]}else i=[["M",r,e],["m",0,-n],["a",t,n,0,1,1,0,2*n],["a",t,n,0,1,1,0,-2*n],["z"]];return i},E0=function(r){if(r=Gs(r),!r||!r.length)return[["M",0,0]];var e=[],t=0,n=0,a=0,i=0,o=0,s,u;r[0][0]==="M"&&(t=+r[0][1],n=+r[0][2],a=t,i=n,o++,e[0]=["M",t,n]);for(var f=r.length===3&&r[0][0]==="M"&&r[1][0].toUpperCase()==="R"&&r[2][0].toUpperCase()==="Z",l=void 0,c=void 0,h=o,d=r.length;h1&&(x=Math.sqrt(x),t=x*t,n=x*n);var E=t*t,_=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*b*b)/(E*w*w+_*b*b)));g=S*t*w/n+(r+s)/2,y=S*-n*b/t+(e+u)/2,v=Math.asin(((e-y)/n).toFixed(9)),p=Math.asin(((u-y)/n).toFixed(9)),v=rp&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var A=p-v;if(Math.abs(A)>l){var M=p,C=s,I=u;p=v+l*(o&&p>v?1:-1),s=g+t*Math.cos(p),u=y+n*Math.sin(p),h=FA(s,u,t,n,a,0,o,C,I,[p,M,g,y])}A=p-v;var k=Math.cos(v),O=Math.sin(v),B=Math.cos(p),L=Math.sin(p),z=Math.tan(A/4),X=4/3*t*z,R=4/3*n*z,V=[r,e],he=[r+X*O,e-R*k],ce=[s+X*L,u-R*B],le=[s,u];if(he[0]=2*V[0]-he[0],he[1]=2*V[1]-he[1],f)return[he,ce,le].concat(h);h=[he,ce,le].concat(h).join().split(",");for(var ie=[],Ie=0,qe=h.length;Ie7){b[w].shift();for(var x=b[w];x.length;)o[w]="A",n&&(s[w]="A"),b.splice(w++,0,["C"].concat(x.splice(0,6)));b.splice(w,1),l=Math.max(t.length,n&&n.length||0)}},d=function(b,w,x,E,_){b&&w&&b[_][0]==="M"&&w[_][0]!=="M"&&(w.splice(_,0,["M",E.x,E.y]),x.bx=0,x.by=0,x.x=b[_][1],x.y=b[_][2],l=Math.max(t.length,n&&n.length||0))};l=Math.max(t.length,n&&n.length||0);for(var v=0;v1?1:u<0?0:u;for(var f=u/2,l=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&u.push(d);continue}var p=c*c-4*h*l,g=Math.sqrt(p);if(!(p<0)){var y=(-c+g)/(2*l);y>0&&y<1&&u.push(y);var m=(-c-g)/(2*l);m>0&&m<1&&u.push(m)}}for(var b=u.length,w=b,x;b--;)d=u[b],x=1-d,f[0][b]=x*x*x*r+3*x*x*d*t+3*x*d*d*a+d*d*d*o,f[1][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*i+d*d*d*s;return f[0][w]=r,f[1][w]=e,f[0][w+1]=o,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},tz=function(r,e,t,n,a,i,o,s){if(!(Math.max(r,t)Math.max(a,o)||Math.max(e,n)Math.max(i,s))){var u=(r*n-e*t)*(a-o)-(r-t)*(a*s-i*o),f=(r*n-e*t)*(i-s)-(e-n)*(a*s-i*o),l=(r-t)*(i-s)-(e-n)*(a-o);if(l){var c=u/l,h=f/l,d=+c.toFixed(2),v=+h.toFixed(2);if(!(d<+Math.min(r,t).toFixed(2)||d>+Math.max(r,t).toFixed(2)||d<+Math.min(a,o).toFixed(2)||d>+Math.max(a,o).toFixed(2)||v<+Math.min(e,n).toFixed(2)||v>+Math.max(e,n).toFixed(2)||v<+Math.min(i,s).toFixed(2)||v>+Math.max(i,s).toFixed(2)))return{x:c,y:h}}}},Oi=function(r,e,t){return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},GA=function(r,e,t,n,a){if(a)return[["M",+r+ +a,e],["l",t-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-t,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",r,e],["l",t,0],["l",0,n],["l",-t,0],["z"]];return i.parsePathArray=BA,i},S0=function(r,e,t,n){return r===null&&(r=e=t=n=0),e===null&&(e=r.y,t=r.width,n=r.height,r=r.x),{x:r,y:e,width:t,w:t,height:n,h:n,x2:r+t,y2:e+n,cx:r+t/2,cy:e+n/2,r1:Math.min(t,n)/2,r2:Math.max(t,n)/2,r0:Math.sqrt(t*t+n*n)/2,path:GA(r,e,t,n),vb:[r,e,t,n].join(" ")}},rz=function(r,e){return r=S0(r),e=S0(e),Oi(e,r.x,r.y)||Oi(e,r.x2,r.y)||Oi(e,r.x,r.y2)||Oi(e,r.x2,r.y2)||Oi(r,e.x,e.y)||Oi(r,e.x2,e.y)||Oi(r,e.x,e.y2)||Oi(r,e.x2,e.y2)||(r.xe.x||e.xr.x)&&(r.ye.y||e.yr.y)},xw=function(r,e,t,n,a,i,o,s){bt(r)||(r=[r,e,t,n,a,i,o,s]);var u=ez.apply(null,r);return S0(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Ew=function(r,e,t,n,a,i,o,s,u){var f=1-u,l=Math.pow(f,3),c=Math.pow(f,2),h=u*u,d=h*u,v=l*r+c*3*u*t+f*3*u*u*a+d*o,p=l*e+c*3*u*n+f*3*u*u*i+d*s,g=r+2*u*(t-r)+h*(a-2*t+r),y=e+2*u*(n-e)+h*(i-2*n+e),m=t+2*u*(a-t)+h*(o-2*a+t),b=n+2*u*(i-n)+h*(s-2*i+n),w=f*r+u*t,x=f*e+u*n,E=f*a+u*o,_=f*i+u*s,S=90-Math.atan2(g-m,y-b)*180/Math.PI;return{x:v,y:p,m:{x:g,y},n:{x:m,y:b},start:{x:w,y:x},end:{x:E,y:_},alpha:S}},nz=function(r,e,t){var n=xw(r),a=xw(e);if(!rz(n,a))return[];for(var i=ww.apply(0,r),o=ww.apply(0,e),s=~~(i/8),u=~~(o/8),f=[],l=[],c={},h=[],d=0;d=0&&_<=1&&S>=0&&S<=1&&h.push({x:E.x,y:E.y,t1:_,t2:S})}}return h},az=function(r,e,t){r=_0(r),e=_0(e);for(var n,a,i,o,s,u,f,l,c,h,d=t?0:[],v=0,p=r.length;v=3&&(c.length===3&&h.push("Q"),h=h.concat(c[1])),c.length===2&&h.push("L"),h=h.concat(c[c.length-1]),h});return l}var uz=function(r,e,t){if(t===1)return[[].concat(r)];var n=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")n=n.concat(sz(r,e,t));else{var a=[].concat(r);a[0]==="M"&&(a[0]="L");for(var i=0;i<=t-1;i++)n.push(a)}return n},fz=function(r,e){if(r.length===1)return r;var t=r.length-1,n=e.length-1,a=t/n,i=[];if(r.length===1&&r[0][0]==="M"){for(var o=0;o=0;u--)o=i[u].index,i[u].type==="add"?r.splice(o,0,[].concat(r[o])):r.splice(o,1)}n=r.length;var c=a-n;if(n0)t=rp(t,r[n-1],1);else{r[n]=e[n];break}r[n]=["Q"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;case"T":r[n]=["T"].concat(t[0]);break;case"C":if(t.length<3)if(n>0)t=rp(t,r[n-1],2);else{r[n]=e[n];break}r[n]=["C"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(t.length<2)if(n>0)t=rp(t,r[n-1],1);else{r[n]=e[n];break}r[n]=["S"].concat(t.reduce(function(a,i){return a.concat(i)},[]));break;default:r[n]=e[n]}return r};const dz=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:x0,fillPath:fz,fillPathByDiff:zA,formatPath:M0,intersection:iz,parsePathArray:BA,parsePathString:Gs,pathToAbsolute:E0,pathToCurve:_0,rectPath:GA},Symbol.toStringTag,{value:"Module"}));var UA=function(){function r(e,t){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=t,this.timeStamp=t.timeStamp}return r.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},r.prototype.save=function(){},r.prototype.restore=function(){},r}();function $A(r,e){var t=r.indexOf(e);t!==-1&&r.splice(t,1)}var _w=typeof window<"u"&&typeof window.document<"u";function XA(r,e){if(r.isCanvas())return!0;for(var t=e.getParent(),n=!1;t;){if(t===r){n=!0;break}t=t.getParent()}return n}function A0(r){return r.cfg.visible&&r.cfg.capture}var vz=function(r){jt(e,r);function e(t){var n=r.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=Et(a,t),n}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,n){this.cfg[t]=n},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(zS),Sw=function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new bz:typeof navigator<"u"?Sz(navigator.userAgent):Az()}function _z(r){return r!==""&&Ez.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function Sz(r){var e=_z(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new mz;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.lengtho.delay&&_e(e.toAttrs,function(s,u){i.call(o.toAttrs,u)&&(delete o.toAttrs[u],delete o.fromAttrs[u])})}),r}var YA=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;n.attrs={};var a=n.getDefaultAttrs();return Et(a,t.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,n=[],a=0;a0?i=Pz(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var n=this;t===void 0&&(t=!0);var a=this.get("animations");_e(a,function(i){t&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),n=this.get("animations"),a=t.getTime();return _e(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),n=t.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return _e(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},e.prototype.emitDelegation=function(t,n){var a=this,i=n.propagationPath;this.getEvents();var o;t==="mouseenter"?o=n.fromShape:t==="mouseleave"&&(o=n.toShape);for(var s=function(c){var h=i[c],d=h.get("name");if(d){if((h.isGroup()||h.isCanvas&&h.isCanvas())&&o&&XA(h,o))return"break";bt(d)?_e(d,function(v){a.emitDelegateEvent(h,v,n)}):u.emitDelegateEvent(h,d,n)}},u=this,f=0;f0)});o.length>0?_e(o,function(u){var f=u.getBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(t=0,n=0,a=0,i=0);var s={x:t,y:a,minX:t,minY:a,maxX:n,maxY:i,width:n-t,height:i-a};return s},e.prototype.getCanvasBBox=function(){var t=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});o.length>0?_e(o,function(u){var f=u.getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(t=0,n=0,a=0,i=0);var s={x:t,y:a,minX:t,minY:a,maxX:n,maxY:i,width:n-t,height:i-a};return s},e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.children=[],t},e.prototype.onAttrChange=function(t,n,a){if(r.prototype.onAttrChange.call(this,t,n,a),t==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(t){var n=this.getTotalMatrix();r.prototype.applyMatrix.call(this,t);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},e.prototype._applyChildrenMarix=function(t){var n=this.getChildren();_e(n,function(a){a.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],n=0;n=0;s--){var u=t[s];if(A0(u)&&(u.isGroup()?o=u.getShape(n,a,i):u.isHit(n,a)&&(o=u)),o)break}return o},e.prototype.add=function(t){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=t.getParent();o&&Rz(o,t),t.set("parent",this),n&&qA(t,n),i&&HA(t,i),a.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var n=this.getTotalMatrix();n&&t.applyMatrix(n)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var t=this.getChildren();_e(t,function(n,a){return n[C0]=a,n}),t.sort(Fz(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),n=t.length-1;n>=0;n--)t[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),r.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var n=this.getChildren();return n[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var n=this.getChildren();return n.indexOf(t)>-1},e.prototype.removeChild=function(t,n){n===void 0&&(n=!0),this.contain(t)&&t.remove(n)},e.prototype.findAll=function(t){var n=[],a=this.getChildren();return _e(a,function(i){t(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(t)))}),n},e.prototype.find=function(t){var n=null,a=this.getChildren();return _e(a,function(i){if(t(i)?n=i:i.isGroup()&&(n=i.find(t)),n)return!1}),n},e.prototype.findById=function(t){return this.find(function(n){return n.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(n){return n.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(n){return n.get("name")===t})},e}(YA),Zs=0,of=0,Uu=0,KA=1e3,Ih,sf,kh=0,Xo=0,vd=0,kf=typeof performance=="object"&&performance.now?performance:Date,QA=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function JA(){return Xo||(QA(Bz),Xo=kf.now()+vd)}function Bz(){Xo=0}function T0(){this._call=this._time=this._next=null}T0.prototype=_y.prototype={constructor:T0,restart:function(r,e,t){if(typeof r!="function")throw new TypeError("callback is not a function");t=(t==null?JA():+t)+(e==null?0:+e),!this._next&&sf!==this&&(sf?sf._next=this:Ih=this,sf=this),this._call=r,this._time=t,I0()},stop:function(){this._call&&(this._call=null,this._time=1/0,I0())}};function _y(r,e,t){var n=new T0;return n.restart(r,e,t),n}function Gz(){JA(),++Zs;for(var r=Ih,e;r;)(e=Xo-r._time)>=0&&r._call.call(null,e),r=r._next;--Zs}function Iw(){Xo=(kh=kf.now())+vd,Zs=of=0;try{Gz()}finally{Zs=0,jz(),Xo=0}}function zz(){var r=kf.now(),e=r-kh;e>KA&&(vd-=e,kh=r)}function jz(){for(var r,e=Ih,t,n=1/0;e;)e._call?(n>e._time&&(n=e._time),r=e,e=e._next):(t=e._next,e._next=null,e=r?r._next=t:Ih=t);sf=r,I0(n)}function I0(r){if(!Zs){of&&(of=clearTimeout(of));var e=r-Xo;e>24?(r<1/0&&(of=setTimeout(Iw,r-kf.now()-vd)),Uu&&(Uu=clearInterval(Uu))):(Uu||(kh=kf.now(),Uu=setInterval(zz,KA)),Zs=1,QA(Iw))}}function Sy(r,e,t){r.prototype=e.prototype=t,t.constructor=r}function eC(r,e){var t=Object.create(r.prototype);for(var n in e)t[n]=e[n];return t}function Yf(){}var Nf=.7,Nh=1/Nf,Us="\\s*([+-]?\\d+)\\s*",Of="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uz=/^#([0-9a-f]{3,8})$/,$z=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Xz=new RegExp(`^rgb\\(${Va},${Va},${Va}\\)$`),Wz=new RegExp(`^rgba\\(${Us},${Us},${Us},${Of}\\)$`),Vz=new RegExp(`^rgba\\(${Va},${Va},${Va},${Of}\\)$`),Yz=new RegExp(`^hsl\\(${Of},${Va},${Va}\\)$`),qz=new RegExp(`^hsla\\(${Of},${Va},${Va},${Of}\\)$`),kw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sy(Yf,Lf,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Nw,formatHex:Nw,formatHex8:Hz,formatHsl:Zz,formatRgb:Ow,toString:Ow});function Nw(){return this.rgb().formatHex()}function Hz(){return this.rgb().formatHex8()}function Zz(){return tC(this).formatHsl()}function Ow(){return this.rgb().formatRgb()}function Lf(r){var e,t;return r=(r+"").trim().toLowerCase(),(e=Uz.exec(r))?(t=e[1].length,e=parseInt(e[1],16),t===6?Lw(e):t===3?new Nn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?ac(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?ac(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=$z.exec(r))?new Nn(e[1],e[2],e[3],1):(e=Xz.exec(r))?new Nn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Wz.exec(r))?ac(e[1],e[2],e[3],e[4]):(e=Vz.exec(r))?ac(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Yz.exec(r))?Rw(e[1],e[2]/100,e[3]/100,1):(e=qz.exec(r))?Rw(e[1],e[2]/100,e[3]/100,e[4]):kw.hasOwnProperty(r)?Lw(kw[r]):r==="transparent"?new Nn(NaN,NaN,NaN,0):null}function Lw(r){return new Nn(r>>16&255,r>>8&255,r&255,1)}function ac(r,e,t,n){return n<=0&&(r=e=t=NaN),new Nn(r,e,t,n)}function Kz(r){return r instanceof Yf||(r=Lf(r)),r?(r=r.rgb(),new Nn(r.r,r.g,r.b,r.opacity)):new Nn}function k0(r,e,t,n){return arguments.length===1?Kz(r):new Nn(r,e,t,n??1)}function Nn(r,e,t,n){this.r=+r,this.g=+e,this.b=+t,this.opacity=+n}Sy(Nn,k0,eC(Yf,{brighter(r){return r=r==null?Nh:Math.pow(Nh,r),new Nn(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Nf:Math.pow(Nf,r),new Nn(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Nn(Bo(this.r),Bo(this.g),Bo(this.b),Oh(this.opacity))},displayable(){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:Dw,formatHex:Dw,formatHex8:Qz,formatRgb:Pw,toString:Pw}));function Dw(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function Qz(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pw(){const r=Oh(this.opacity);return`${r===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${r===1?")":`, ${r})`}`}function Oh(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Bo(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Po(r){return r=Bo(r),(r<16?"0":"")+r.toString(16)}function Rw(r,e,t,n){return n<=0?r=e=t=NaN:t<=0||t>=1?r=e=NaN:e<=0&&(r=NaN),new ga(r,e,t,n)}function tC(r){if(r instanceof ga)return new ga(r.h,r.s,r.l,r.opacity);if(r instanceof Yf||(r=Lf(r)),!r)return new ga;if(r instanceof ga)return r;r=r.rgb();var e=r.r/255,t=r.g/255,n=r.b/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=NaN,s=i-a,u=(i+a)/2;return s?(e===i?o=(t-n)/s+(t0&&u<1?0:o,new ga(o,s,u,r.opacity)}function Jz(r,e,t,n){return arguments.length===1?tC(r):new ga(r,e,t,n??1)}function ga(r,e,t,n){this.h=+r,this.s=+e,this.l=+t,this.opacity=+n}Sy(ga,Jz,eC(Yf,{brighter(r){return r=r==null?Nh:Math.pow(Nh,r),new ga(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Nf:Math.pow(Nf,r),new ga(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,e=isNaN(r)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,a=2*t-n;return new Nn(ap(r>=240?r-240:r+120,a,n),ap(r,a,n),ap(r<120?r+240:r-120,a,n),this.opacity)},clamp(){return new ga(Fw(this.h),ic(this.s),ic(this.l),Oh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const r=Oh(this.opacity);return`${r===1?"hsl(":"hsla("}${Fw(this.h)}, ${ic(this.s)*100}%, ${ic(this.l)*100}%${r===1?")":`, ${r})`}`}}));function Fw(r){return r=(r||0)%360,r<0?r+360:r}function ic(r){return Math.max(0,Math.min(1,r||0))}function ap(r,e,t){return(r<60?e+(t-e)*r/60:r<180?t:r<240?e+(t-e)*(240-r)/60:e)*255}const My=r=>()=>r;function e6(r,e){return function(t){return r+t*e}}function t6(r,e,t){return r=Math.pow(r,t),e=Math.pow(e,t)-r,t=1/t,function(n){return Math.pow(r+n*e,t)}}function r6(r){return(r=+r)==1?rC:function(e,t){return t-e?t6(e,t,r):My(isNaN(e)?t:e)}}function rC(r,e){var t=e-r;return t?e6(r,t):My(isNaN(r)?e:r)}const Bw=function r(e){var t=r6(e);function n(a,i){var o=t((a=k0(a)).r,(i=k0(i)).r),s=t(a.g,i.g),u=t(a.b,i.b),f=rC(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=f(l),a+""}}return n.gamma=r,n}(1);function nC(r,e){e||(e=[]);var t=r?Math.min(e.length,r.length):0,n=e.slice(),a;return function(i){for(a=0;at&&(i=e.slice(t,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:N0(n,a)})),t=ip.lastIndex;return tf.length?(u=Gs(i[s]),f=Gs(a[s]),f=zA(f,u),f=M0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u):e.pathFormatted||(u=Gs(i[s]),f=Gs(a[s]),f=M0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u,e.pathFormatted=!0),n[s]=[];for(var l=0;l0){for(var s=e.animators.length-1;s>=0;s--){if(n=e.animators[s],n.destroyed){e.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var u=a.length-1;u>=0;u--)i=a[u],t=U6(n,i,o),t&&(a.splice(u,1),t=!1,i.callback&&i.callback())}a.length===0&&e.removeAnimator(s)}var f=e.canvas.get("autoDraw");f||e.canvas.draw()}})},r.prototype.addAnimator=function(e){this.animators.push(e)},r.prototype.removeAnimator=function(e){this.animators.splice(e,1)},r.prototype.isAnimating=function(){return!!this.animators.length},r.prototype.stop=function(){this.timer&&this.timer.stop()},r.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(t){t.stopAnimate(e)}),this.animators=[],this.canvas.draw()},r.prototype.getTime=function(){return this.current},r}(),X6=40,qw=0,Hw=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Zw(r,e,t){t.name=e,t.target=r,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}function W6(r,e,t){if(t.bubbles){var n=void 0,a=!1;if(e==="mouseenter"?(n=t.fromShape,a=!0):e==="mouseleave"&&(a=!0,n=t.toShape),r.isCanvas()&&a)return;if(n&&XA(r,n)){t.bubbles=!1;return}t.name=e,t.currentTarget=r,t.delegateTarget=r,r.emit(e,t)}}var V6=function(){function r(e){var t=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;t._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=t.canvas,i=a.get("el");if(i!==n.target&&(t.dragging||t.currentShape)){var o=t._getPointInfo(n);t.dragging&&t._emitEvent("drag",n,o,t.draggingShape)}},this._onDocumentMouseUp=function(n){var a=t.canvas,i=a.get("el");if(i!==n.target&&t.dragging){var o=t._getPointInfo(n);t.draggingShape&&t._emitEvent("drop",n,o,null),t._emitEvent("dragend",n,o,t.draggingShape),t._afterDrag(t.draggingShape,o,n)}},this.canvas=e.canvas}return r.prototype.init=function(){this._bindEvents()},r.prototype._bindEvents=function(){var e=this,t=this.canvas.get("el");_e(Hw,function(n){t.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._clearEvents=function(){var e=this,t=this.canvas.get("el");_e(Hw,function(n){t.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},r.prototype._getEventObj=function(e,t,n,a,i,o){var s=new UA(e,t);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},r.prototype._getShape=function(e,t){return this.canvas.getShape(e.x,e.y,t)},r.prototype._getPointInfo=function(e){var t=this.canvas,n=t.getClientByEvent(e),a=t.getPointByEvent(e);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},r.prototype._triggerEvent=function(e,t){var n=this._getPointInfo(t),a=this._getShape(n,t),i=this["_on"+e],o=!1;if(i)i.call(this,n,a,t);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,t,n,null,null,a),a&&this._emitEvent(e,t,n,a,null,a),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",t,n,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,t,n,s,s,null),this._emitEvent(e,t,n,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",t,n,null)):this._emitEvent(e,t,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var u=this.canvas,f=u.get("el");f.style.cursor=a.attr("cursor")||u.get("cursor")}},r.prototype._onmousedown=function(e,t,n){n.button===qw&&(this.mousedownShape=t,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,t,null,null)},r.prototype._emitMouseoverEvents=function(e,t,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",e,t,n,n,a),this._emitEvent("mouseleave",e,t,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",e,t,a,n,a),this._emitEvent("mouseenter",e,t,a,n,a)))},r.prototype._emitDragoverEvents=function(e,t,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",e,t,n,n,a),this._emitEvent("dragenter",e,t,a,n,a)),i||this._emitEvent("dragover",e,t,a)):n&&this._emitEvent("dragleave",e,t,n,n,a),i&&this._emitEvent("dragover",e,t,a)},r.prototype._afterDrag=function(e,t,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(t,n);a!==e&&this._emitMouseoverEvents(n,t,e,a),this.currentShape=a},r.prototype._onmouseup=function(e,t,n){if(n.button===qw){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,e,t),this._emitEvent("dragend",n,e,a),this._afterDrag(a,e,n)):(this._emitEvent("mouseup",n,e,t),t===this.mousedownShape&&this._emitEvent("click",n,e,t),this.mousedownShape=null,this.mousedownPoint=null)}},r.prototype._ondragover=function(e,t,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,e,a,t,!0)},r.prototype._onmousemove=function(e,t,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,i,t,!1),this._emitEvent("drag",n,e,o);else{var s=this.mousedownPoint;if(s){var u=this.mousedownShape,f=n.timeStamp,l=f-this.mousedownTimeStamp,c=s.clientX-e.clientX,h=s.clientY-e.clientY,d=c*c+h*h;l>120||d>X6?u&&u.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!u&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t)):(this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t))}else this._emitMouseoverEvents(n,e,i,t),this._emitEvent("mousemove",n,e,t)}},r.prototype._emitEvent=function(e,t,n,a,i,o){var s=this._getEventObj(e,t,n,a,i,o);if(a){s.shape=a,Zw(a,e,s);for(var u=a.getParent();u;)u.emitDelegation(e,s),s.propagationStopped||W6(u,e,s),s.propagationPath.push(u),u=u.getParent()}else{var f=this.canvas;Zw(f,e,s)}},r.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},r}(),Kw="px",Qw=WA(),Y6=Qw&&Qw.name==="firefox",uC=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},e.prototype.initContainer=function(){var t=this.get("container");Ye(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var n=this.get("container");n.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new V6({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new $6(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,n){var a=this.get("el");_w&&(a.style.width=t+Kw,a.style.height=n+Kw)},e.prototype.changeSize=function(t,n){this.setDOMSize(t,n),this.set("width",t),this.set("height",n),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var n=this.get("el");_w&&n&&(n.style.cursor=t)},e.prototype.getPointByEvent=function(t){var n=this.get("supportCSSTransform");if(n){if(Y6&&!Zt(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Zt(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var a=this.getClientByEvent(t),i=a.x,o=a.y;return this.getPointByClient(i,o)},e.prototype.getClientByEvent=function(t){var n=t;return t.touches&&(t.type==="touchend"?n=t.changedTouches[0]:n=t.touches[0]),{x:n.clientX,y:n.clientY}},e.prototype.getPointByClient=function(t,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:t-i.left,y:n-i.top}},e.prototype.getClientByPoint=function(t,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:t+i.left,y:n+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),r.prototype.destroy.call(this))},e}(ZA),fC=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var t=r.prototype.clone.call(this),n=this.getChildren(),a=0;a=t&&a.minY<=n&&a.maxY>=n},e.prototype.afterAttrsChange=function(t){r.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(t){r.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),n=this.getTotalMatrix(),a=t.minX,i=t.minY,o=t.maxX,s=t.maxY;if(n){var u=Do(n,[t.minX,t.minY]),f=Do(n,[t.maxX,t.minY]),l=Do(n,[t.minX,t.maxY]),c=Do(n,[t.maxX,t.maxY]);a=Math.min(u[0],f[0],l[0],c[0]),o=Math.max(u[0],f[0],l[0],c[0]),i=Math.min(u[1],f[1],l[1],c[1]),s=Math.max(u[1],f[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,v=d===void 0?0:d,p=h.shadowOffsetX,g=p===void 0?0:p,y=h.shadowOffsetY,m=y===void 0?0:y,b=a-v+g,w=o+v+g,x=i-v+m,E=s+v+m;a=Math.min(a,b),o=Math.max(o,w),i=Math.min(i,x),s=Math.max(s,E)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,n){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[t,n,1];o=this.invertFromMatrix(o);var s=o[0],u=o[1],f=this._isInBBox(s,u);return this.isOnlyHitBox()?f:!!(f&&!this.isClipped(s,u)&&(this.isInShape(s,u)||a&&a.isHit(s,u)||i&&i.isHit(s,u)))},e}(YA),cC=new Map;function Ja(r,e){cC.set(r,e)}function hC(r){return cC.get(r)}function dC(r){var e=r.attr(),t=e.x,n=e.y,a=e.width,i=e.height;return{x:t,y:n,width:a,height:i}}function vC(r){var e=r.attr(),t=e.x,n=e.y,a=e.r;return{x:t-a,y:n-a,width:a*2,height:a*2}}function xn(r,e,t,n){var a=r-t,i=e-n;return Math.sqrt(a*a+i*i)}function rh(r,e){return Math.abs(r-e)<.001}function du(r,e){var t=Ha(r),n=Ha(e),a=qa(r),i=qa(e);return{x:t,y:n,width:a-t,height:i-n}}function pd(r){return(r+Math.PI*2)%(Math.PI*2)}const cn={box:function(r,e,t,n){return du([r,t],[e,n])},length:function(r,e,t,n){return xn(r,e,t,n)},pointAt:function(r,e,t,n,a){return{x:(1-a)*r+a*t,y:(1-a)*e+a*n}},pointDistance:function(r,e,t,n,a,i){var o=(t-r)*(a-r)+(n-e)*(i-e);if(o<0)return xn(r,e,a,i);var s=(t-r)*(t-r)+(n-e)*(n-e);return o>s?xn(t,n,a,i):this.pointToLine(r,e,t,n,a,i)},pointToLine:function(r,e,t,n,a,i){var o=[t-r,n-e];if(ly(o,[0,0]))return Math.sqrt((a-r)*(a-r)+(i-e)*(i-e));var s=[-o[1],o[0]];Wi(s,s);var u=[a-r,i-e];return Math.abs(fy(u,s))},tangentAngle:function(r,e,t,n){return Math.atan2(n-e,t-r)}};var q6=1e-4;function pC(r,e,t,n,a,i){var o,s=1/0,u=[t,n],f=20;i&&i>200&&(f=i/10);for(var l=1/f,c=l/10,h=0;h<=f;h++){var d=h*l,v=[a.apply(null,r.concat([d])),a.apply(null,e.concat([d]))],p=xn(u[0],u[1],v[0],v[1]);p=0&&p=0?[a]:[]}function ex(r,e,t,n){return 2*(1-n)*(e-r)+2*n*(t-e)}function gC(r,e,t,n,a,i,o){var s=Bi(r,t,a,o),u=Bi(e,n,i,o),f=cn.pointAt(r,e,t,n,o),l=cn.pointAt(t,n,a,i,o);return[[r,e,f.x,f.y,s,u],[s,u,l.x,l.y,a,i]]}function D0(r,e,t,n,a,i,o){if(o===0)return(xn(r,e,t,n)+xn(t,n,a,i)+xn(r,e,a,i))/2;var s=gC(r,e,t,n,a,i,.5),u=s[0],f=s[1];return u.push(o-1),f.push(o-1),D0.apply(null,u)+D0.apply(null,f)}const yC={box:function(r,e,t,n,a,i){var o=Jw(r,t,a)[0],s=Jw(e,n,i)[0],u=[r,a],f=[e,i];return o!==void 0&&u.push(Bi(r,t,a,o)),s!==void 0&&f.push(Bi(e,n,i,s)),du(u,f)},length:function(r,e,t,n,a,i){return D0(r,e,t,n,a,i,3)},nearestPoint:function(r,e,t,n,a,i,o,s){return pC([r,t,a],[e,n,i],o,s,Bi)},pointDistance:function(r,e,t,n,a,i,o,s){var u=this.nearestPoint(r,e,t,n,a,i,o,s);return xn(u.x,u.y,o,s)},interpolationAt:Bi,pointAt:function(r,e,t,n,a,i,o){return{x:Bi(r,t,a,o),y:Bi(e,n,i,o)}},divide:function(r,e,t,n,a,i,o){return gC(r,e,t,n,a,i,o)},tangentAngle:function(r,e,t,n,a,i,o){var s=ex(r,t,a,o),u=ex(e,n,i,o),f=Math.atan2(u,s);return pd(f)}};function Gi(r,e,t,n,a){var i=1-a;return i*i*i*r+3*e*a*i*i+3*t*a*a*i+n*a*a*a}function tx(r,e,t,n,a){var i=1-a;return 3*(i*i*(e-r)+2*i*a*(t-e)+a*a*(n-t))}function op(r,e,t,n){var a=-3*r+9*e-9*t+3*n,i=6*r-12*e+6*t,o=3*e-3*r,s=[],u,f,l;if(rh(a,0))rh(i,0)||(u=-o/i,u>=0&&u<=1&&s.push(u));else{var c=i*i-4*a*o;rh(c,0)?s.push(-i/(2*a)):c>0&&(l=Math.sqrt(c),u=(-i+l)/(2*a),f=(-i-l)/(2*a),u>=0&&u<=1&&s.push(u),f>=0&&f<=1&&s.push(f))}return s}function mC(r,e,t,n,a,i,o,s,u){var f=Gi(r,t,a,o,u),l=Gi(e,n,i,s,u),c=cn.pointAt(r,e,t,n,u),h=cn.pointAt(t,n,a,i,u),d=cn.pointAt(a,i,o,s,u),v=cn.pointAt(c.x,c.y,h.x,h.y,u),p=cn.pointAt(h.x,h.y,d.x,d.y,u);return[[r,e,c.x,c.y,v.x,v.y,f,l],[f,l,p.x,p.y,d.x,d.y,o,s]]}function P0(r,e,t,n,a,i,o,s,u){if(u===0)return H6([r,t,a,o],[e,n,i,s]);var f=mC(r,e,t,n,a,i,o,s,.5),l=f[0],c=f[1];return l.push(u-1),c.push(u-1),P0.apply(null,l)+P0.apply(null,c)}const gf={extrema:op,box:function(r,e,t,n,a,i,o,s){for(var u=[r,o],f=[e,s],l=op(r,t,a,o),c=op(e,n,i,s),h=0;h0?t:t*-1}const Z6={box:function(r,e,t,n){return{x:r-t,y:e-n,width:t*2,height:n*2}},length:function(r,e,t,n){return Math.PI*(3*(t+n)-Math.sqrt((3*t+n)*(t+3*n)))},nearestPoint:function(r,e,t,n,a,i){var o=t,s=n;if(o===0||s===0)return{x:r,y:e};for(var u=a-r,f=i-e,l=Math.abs(u),c=Math.abs(f),h=o*o,d=s*s,v=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(v),g=s*Math.sin(v);var m=(h-d)*Math.pow(Math.cos(v),3)/o,b=(d-h)*Math.pow(Math.sin(v),3)/s,w=p-m,x=g-b,E=l-m,_=c-b,S=Math.hypot(x,w),A=Math.hypot(_,E),M=S*Math.asin((w*_-x*E)/(S*A)),C=M/Math.sqrt(h+d-p*p-g*g);v+=C,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:r+rx(p,u),y:e+rx(g,f)}},pointDistance:function(r,e,t,n,a,i){var o=this.nearestPoint(r,e,t,n,a,i);return xn(o.x,o.y,a,i)},pointAt:function(r,e,t,n,a){var i=2*Math.PI*a;return{x:r+t*Math.cos(i),y:e+n*Math.sin(i)}},tangentAngle:function(r,e,t,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-t*Math.sin(i));return pd(o)}};function K6(r,e,t,n,a,i,o,s){return-1*t*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function Q6(r,e,t,n,a,i,o,s){return-1*t*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function J6(r,e,t){return Math.atan(-e/r*Math.tan(t))}function ej(r,e,t){return Math.atan(e/(r*Math.tan(t)))}function nx(r,e,t,n,a,i){return t*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+r}function ax(r,e,t,n,a,i){return t*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+e}function tj(r,e,t,n){var a=Math.atan2(n*r,t*e);return(a+Math.PI*2)%(Math.PI*2)}function ix(r,e,t){return{x:r*Math.cos(t),y:e*Math.sin(t)}}function ox(r,e,t){var n=Math.cos(t),a=Math.sin(t);return[r*n-e*a,r*a+e*n]}const rj={box:function(r,e,t,n,a,i,o){for(var s=J6(t,n,a),u=1/0,f=-1/0,l=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var h=s+c;if&&(f=d)}for(var v=ej(t,n,a),p=1/0,g=-1/0,y=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var m=v+c;ig&&(g=b)}return{x:u,y:p,width:f-u,height:g-p}},length:function(r,e,t,n,a,i,o){},nearestPoint:function(r,e,t,n,a,i,o,s,u){var f=ox(s-r,u-e,-a),l=f[0],c=f[1],h=Z6.nearestPoint(0,0,t,n,l,c),d=tj(t,n,h.x,h.y);do&&(h=ix(t,n,o));var v=ox(h.x,h.y,a);return{x:v[0]+r,y:v[1]+e}},pointDistance:function(r,e,t,n,a,i,o,s,u){var f=this.nearestPoint(r,e,t,n,s,u);return xn(f.x,f.y,s,u)},pointAt:function(r,e,t,n,a,i,o,s){var u=(o-i)*s+i;return{x:nx(r,e,t,n,a,u),y:ax(r,e,t,n,a,u)}},tangentAngle:function(r,e,t,n,a,i,o,s){var u=(o-i)*s+i,f=K6(r,e,t,n,a,i,o,u),l=Q6(r,e,t,n,a,i,o,u);return pd(Math.atan2(l,f))}};function bC(r){for(var e=0,t=[],n=0;n1||e<0||r.length<2)return null;var t=bC(r),n=t.segments,a=t.totalLength;if(a===0)return{x:r[0][0],y:r[0][1]};for(var i=0,o=null,s=0;s=i&&e<=i+c){var h=(e-i)/c;o=cn.pointAt(f[0],f[1],l[0],l[1],h);break}i+=c}return o}function ij(r,e){if(e>1||e<0||r.length<2)return 0;for(var t=bC(r),n=t.segments,a=t.totalLength,i=0,o=0,s=0;s=i&&e<=i+c){o=Math.atan2(l[1]-f[1],l[0]-f[0]);break}i+=c}return o}function oj(r,e,t){for(var n=1/0,a=0;a1){var a=fj(e,t);return e*n+a*(n-1)}return e}function fj(r,e){return e?e-r:r*.14}function lj(r,e){var t=xC(),n=0;if(Zt(r)||r==="")return n;if(t.save(),t.font=e,Ye(r)&&r.includes(` -`)){var a=r.split(` -`);_e(a,function(i){var o=t.measureText(i).width;n1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}_e(t,function(i,o){isNaN(i)||(t[o]=+i)}),e[n]=t}),e}function pj(r,e,t,n){var a=[],i=!!n,o,s,u,f,l,c,h;if(i){u=n[0],f=n[1];for(var d=0,v=r.length;d2&&(t.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([a,o[0]]),s==="r")t.push([a].concat(o));else for(;o.length>=e[s]&&(t.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),t}var bj=/[a-z]/;function ux(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function SC(r){var e=R0(r);if(!e||!e.length)return[["M",0,0]];for(var t=!1,n=0;n=0){t=!0;break}}if(!t)return e;var i=[],o=0,s=0,u=0,f=0,l=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],u=o,f=s,l++,i[0]=["M",o,s]);for(var n=l,h=e.length;n1&&(t*=Math.sqrt(d),n*=Math.sqrt(d));var v=t*t*(h*h)+n*n*(c*c),p=v?Math.sqrt((t*t*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*t*h/n:0,y=t?p*-n*c/t:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/t,(h-y)/n],x=[(-1*c-g)/t,(-1*h-y)/n],E=fx([1,0],w),_=fx(w,x);return F0(w,x)<=-1&&(_=Math.PI),F0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:B0(r,[f,l])?0:t,ry:B0(r,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}function lx(r,e){return[e[0]+(e[0]-r[0]),e[1]+(e[1]-r[1])]}function MC(r){r=vj(r);for(var e=[],t=null,n=null,a=null,i=0,o=r.length,s=0;sMath.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var c={xExtra:Math.cos(u/2-f)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(l-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0};return c}function Ej(r){var e=r.attr(),t=e.path,n=e.stroke,a=n?e.lineWidth:0,i=r.get("segments")||MC(t),o=xj(i,a),s=o.x,u=o.y,f=o.width,l=o.height,c={minX:s,minY:u,maxX:s+f,maxY:u+l};return c=ky(r,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function _j(r){var e=r.attr(),t=e.x1,n=e.y1,a=e.x2,i=e.y2,o=Math.min(t,a),s=Math.max(t,a),u=Math.min(n,i),f=Math.max(n,i),l={minX:o,maxX:s,minY:u,maxY:f};return l=ky(r,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}function Sj(r){var e=r.attr(),t=e.x,n=e.y,a=e.rx,i=e.ry;return{x:t-a,y:n-i,width:a*2,height:i*2}}Ja("rect",dC);Ja("image",dC);Ja("circle",vC);Ja("marker",vC);Ja("polyline",sj);Ja("polygon",uj);Ja("text",cj);Ja("path",Ej);Ja("line",_j);Ja("ellipse",Sj);var Mj=function(r){jt(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.item=n.item,a.canvasX=n.canvasX,a.canvasY=n.canvasY,a.wheelDelta=n.wheelDelta,a.detail=n.detail,a}return e}(UA),G0=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},Ny=function(e){if(bt(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(Ot(e))return[e,e,e,e];if(Ye(e)){var t=parseInt(e,10);return[t,t,t,t]}return[0,0,0,0]},Aj=function(e){var t=new Mj(e.type,e);return t.clientX=e.clientX,t.clientY=e.clientY,t.x=e.x,t.y=e.y,t.target=e.target,t.currentTarget=e.currentTarget,t.bubbles=!0,t.item=e.item,t},Cj=function(e){if(!e)return!1;for(var t=9,n=[1,0,0,0,1,0,0,0,1],a=0;an&&(n=c),h>i&&(i=h)}var d=Math.floor(t),v=Math.floor(a),p=Math.ceil(n)-Math.floor(t),g=Math.ceil(i)-Math.floor(a);return{x:d,y:v,width:p,height:g,minX:t,minY:a,maxX:n,maxY:i}},Tj=function(e,t,n,a,i){t===void 0&&(t=15),n===void 0&&(n="quadratic"),a===void 0&&(a=void 0),i===void 0&&(i=void 0);for(var o=e.length,s=t*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},l=[],c={},h=0;h=0;return t?a?Math.PI*2-n:n:a?n:Math.PI*2-n}to.angleTo=Lj;function Dj(r,e,t){return t?(r[0]=e[1],r[1]=-1*e[0]):(r[0]=-1*e[1],r[1]=e[0]),r}to.vertical=Dj;var Pj=function(){function r(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return r.prototype.getViewCenter=function(){var e=this.getFormatPadding(),t=this.graph,n=this.graph.get("width"),a=t.get("height");return{x:(n-e[1]-e[3])/2+e[3],y:(a-e[0]-e[2])/2+e[0]}},r.prototype.fitCenter=function(e,t){var n=this.graph,a=n.get("group"),i,o=n.getNodes();if(o.length>n.get("optimizeThreshold")){var s=1/0,u=1/0,f=-1/0,l=-1/0;o.forEach(function(w){var x=w.getModel(),E=x.x,_=x.y;s>E&&(s=E),u>_&&(u=_),fg&&(y=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var m=cx(d,[["t",-i.x,-i.y],["s",y,y],["t",i.x,i.y]]),b=If({animateCfg:n,callback:function(){e.setMatrix(m),f.emit("viewportchange",{action:"translate",matrix:d}),f.emit("viewportchange",{action:"zoom",matrix:m})}});e.stopAnimate(),e.setMatrix(t),e.animate(function(w){return{matrix:g0(t,m,w)}},b)}},r.prototype.fitView=function(e,t){var n=this.graph,a=this.getFormatPadding(),i=n.get("width"),o=n.get("height"),s=n.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var f,l=n.getNodes();if(l.length>n.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,v=-1/0;l.forEach(function(E){var _=E.getModel(),S=_.x,A=_.y;c>S&&(c=S),h>A&&(h=A),dm&&(b=m),e)this.animatedFitView(s,u,t,f,p,g,b,!0);else{var w=p.x-g.x,x=p.y-g.y;if(Fa(w)||Fa(x))return;n.translate(w,x),n.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b)}}},r.prototype.fitViewByRules=function(e,t,n){var a=e.onlyOutOfViewPort,i=a===void 0?!1:a,o=e.direction,s=o===void 0?"both":o,u=e.ratioRule,f=u===void 0?"min":u,l=this.graph,c=this.getFormatPadding(),h=l.get("width"),d=l.get("height"),v=l.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,y=l.getNodes();if(y.length>l.get("optimizeThreshold")){var m=1/0,b=1/0,w=-1/0,x=-1/0;y.forEach(function(O){var B=O.getModel(),L=B.x,z=B.y;m>L&&(m=L),b>z&&(b=z),wc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),y={x:c.x+c.width/2,y:c.y+c.height/2},m=(s-o[1]-o[3])/c.width,b=(u-o[0]-o[2])/c.height,w=m;m>b&&(w=b),n?this.animatedFitView(f,l,a,c,g,y,w,t):(i.translate(g.x-y.x,g.y-y.y),t&&!i.zoom(w,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",w))}}},r.prototype.changeSize=function(e,t){var n=this.graph;if(!Ot(e)||!Ot(t))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:e,height:t});var a=n.get("canvas");a.changeSize(e,t);var i=n.get("plugins");i.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},r.prototype.destroy=function(){this.graph=null,this.destroyed=!1},r}();function z0(r){"@babel/helpers - typeof";return z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z0(r)}function hx(r){if(typeof r!="string")return r;var e=function(_){if(typeof _!="string")return _;try{return JSON.parse(_.trim())}catch{return _.trim()}},t=e(r);if(typeof t!="string")return t;for(var n=function(_){return _[_.length-1]},a=r.trim(),i=[],o=[],s=function(){for(var _=[],S=0;S=0&&(i.height=o),s>=0&&(i.width=s),a.marginTop&&(i.y+=a.marginTop),a.marginLeft&&(i.x+=a.marginLeft),i}function OC(r,e){var t;e===void 0&&(e={x:0,y:0});var n=P({x:0,y:0,width:0,height:0},e);if(!((t=r.children)===null||t===void 0)&&t.length){var a=r.attrs,i=a===void 0?{}:a,o=i.marginTop,s=P({},e);o&&(s.y+=o);for(var u=0;un.width&&(n.width=l.width+l.x),l.height+l.y>n.height&&(n.height=l.height+l.y)}}}return r.bbox=Bj(r,e,n),r.attrs=P(P({},r.attrs),r.bbox),r}function LC(r,e){var t,n,a,i,o=(r||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&r&&(r.attrs.key=s),!r&&e)return{action:"delete",val:e,type:o,key:s};if(r&&!e)return{action:"add",val:r,type:o};if(!r&&!e)return{action:"same",type:o};var u=[];if(((t=r.children)===null||t===void 0?void 0:t.length)>0||((n=e.children)===null||n===void 0?void 0:n.length)>0)for(var f=Math.max((a=r.children)===null||a===void 0?void 0:a.length,(i=e.children)===null||i===void 0?void 0:i.length),l=e.children||[],c=r.children||[],h=0;h"u"?a=G0(i):typeof a!="string"&&(a=String(a)),this.get("model").id=a,this.set("id",a);var o=e.group;o&&(o.set("item",this),o.set("id",a)),this.init(),this.draw();var s=n.shape||n.type||(i==="edge"?"line":"circle"),u=this.get("shapeFactory");if(u&&u[s]){var f=u[s].options;if(f&&f.stateStyles){var l=this.get("styles")||n.stateStyles;l=_r({},f.stateStyles,l),this.set("styles",l)}}}return r.prototype.calculateBBox=function(){var e=this.get("keyShape"),t=this.get("group"),n=Th(e,t);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},r.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),t=this.get("group"),n=Th(e,t);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},r.prototype.drawInner=function(){var e=this,t=e.get("shapeFactory"),n=e.get("group"),a=e.get("model");n.clear();var i=a.visible;if(i!==void 0&&!i&&e.changeVisibility(i),!!t){e.updatePosition(a);var o=e.getShapeCfg(a),s=o.type,u=t.draw(s,o,n);u&&(e.set("keyShape",u),u.set("isKeyShape",!0),u.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(t,s)}},r.prototype.setOriginStyle=function(){var e=this.get("group"),t=e.get("children"),n=this.getKeyShape(),a=this,i=n.get("name");if(this.get("originStyle")){var d=this.get("originStyle");i&&!d[i]&&(d[i]={});for(var v=this.getCurrentStatesStyle(),p=function(y){var m=t[y],b=m.get("name"),w=m.attr();if(b&&b!==i){var x=v[b];d[b]||(d[b]={}),x?Object.keys(w).forEach(function(S){var A=w[S];A!==x[S]&&(d[b][S]=A)}):d[b]=m.get("type")!=="image"?rr(w):a.getShapeStyleByName(b)}else{var E=m.attr(),_={};Object.keys(v).forEach(function(S){var A=v[S];(S===i||!ln(A))&&(_[S]=A)}),Object.keys(E).forEach(function(S){var A=E[S];_[S]!==A&&(i?d[i][S]=A:d[S]=A)})}},s=0;s-1)return;n.push(i)}else u>-1&&n.splice(u,1)}else if(Ye(t)){var f=n.filter(function(h){return h.includes(o)});f.length>0&&this.clearStates(f),s=s.filter(function(h){return!h.includes(o)}),s.push(i),this.set("states",s)}if(a){var l=this.get("model"),c=l.type;a.setState(c,e,t,this)}},r.prototype.clearStates=function(e){var t=this,n=t.getStates(),a=t.get("shapeFactory"),i=t.get("model"),o=i.type;e||(e=n),Ye(e)&&(e=[e]);var s=n.filter(function(u){return e.indexOf(u)===-1});t.set("states",s),e.forEach(function(u){a.setState(o,u,!1,t)})},r.prototype.setOptimize=function(e){this.optimize=e},r.prototype.getContainer=function(){return this.get("group")},r.prototype.getKeyShape=function(){return this.get("keyShape")},r.prototype.getModel=function(){return this.get("model")},r.prototype.getType=function(){return this.get("type")},r.prototype.getID=function(){return this.get("id")},r.prototype.isItem=function(){return!0},r.prototype.getStates=function(){return this.get("states")},r.prototype.hasState=function(e){var t=this.getStates();return t.indexOf(e)>=0},r.prototype.refresh=function(e){var t=this.get("model");this.updatePosition(t),this.updateShape(e),this.afterUpdate(),this.clearCache()},r.prototype.getUpdateType=function(e){},r.prototype.update=function(e,t){t===void 0&&(t=void 0);var n=this.get("model");if(t==="move")this.updatePosition(e);else{var a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o={x:n.x,y:n.y};e.x=isNaN(+e.x)?n.x:+e.x,e.y=isNaN(+e.y)?n.y:+e.y;var s=this.get("styles");if(e.stateStyles){var u=e.stateStyles;Et(s,u),delete e.stateStyles}Object.assign(n,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(t)}this.afterUpdate(),this.clearCache()},r.prototype.updateShape=function(e){var t=this.get("shapeFactory"),n=this.get("model"),a=n.type;if(t.shouldUpdate(a)&&a===this.get("currentShape")){var i=this.getShapeCfg(n,e);t.baseUpdate(a,i,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(t,a)},r.prototype.updatePosition=function(e){var t=this.get("model"),n=isNaN(+e.x)?+t.x:+e.x,a=isNaN(+e.y)?+t.y:+e.y,i=this.get("group");if(isNaN(n)||isNaN(a))return!1;t.x=n,t.y=a;var o=i.getMatrix();return o&&o[6]===n&&o[7]===a?!1:(i.resetMatrix(),MA(i,{x:n,y:a}),this.clearCache(),!0)},r.prototype.getBBox=function(){var e=this.get(lp);return e||(e=this.calculateBBox(),this.set(lp,e)),e},r.prototype.getCanvasBBox=function(){var e=this.get(cp);return e||(e=this.calculateCanvasBBox(),this.set(cp,e)),e},r.prototype.toFront=function(){var e=this.get("group");e.toFront()},r.prototype.toBack=function(){var e=this.get("group");e.toBack()},r.prototype.show=function(){this.changeVisibility(!0)},r.prototype.hide=function(){this.changeVisibility(!1)},r.prototype.changeVisibility=function(e){var t=this.get("group");e?t.show():t.hide(),this.set("visible",e)},r.prototype.isVisible=function(){return this.get("visible")},r.prototype.enableCapture=function(e){var t=this.get("group");t&&t.set("capture",e)},r.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),t=this.get("group");e&&t.stopAnimate(),t.shapeMap={},this.clearCache(),t.remove(),this._cfg=null,this.destroyed=!0}},r}(),fc={source:"start",target:"end"},ka="Node",ms="Point",zj="Anchor",jj=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,n){var a=fc[t]+ms,i=t+ka,o=this.get(i);o&&!o.destroyed&&o.removeEdge(this),ln(n)?(this.set(a,n),this.set(i,null)):n&&(n.addEdge(this),this.set(i,n),this.set(a,null))},e.prototype.getLinkPoint=function(t,n,a){var i=fc[t]+ms,o=t+ka,s=this.get(i);if(!s){var u=this.get(o),f=t+zj,l=this.getPrePoint(t,a),c=n[f];Zt(c)||(s=u.getLinkPointByAnchor(c)),s=s||u.getLinkPoint(l),Zt(s.index)||this.set("".concat(t,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(t,n){if(n&&n.length){var a=t==="source"?0:n.length-1;return n[a]}var i=t==="source"?"target":"source";return this.getEndPoint(i)},e.prototype.getEndPoint=function(t){var n=t+ka,a=fc[t]+ms,i=this.get(n);return i&&!i.destroyed?i.get("model"):this.get(a)},e.prototype.getControlPointsByCenter=function(t){var n=this.getEndPoint("source"),a=this.getEndPoint("target"),i=this.get("shapeFactory"),o=t.type;return i.getControlPoints(o,{startPoint:n,endPoint:a})},e.prototype.getEndCenter=function(t){var n=t+ka,a=fc[t]+ms,i=this.get(n);if(i){var o=i.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(a)},e.prototype.init=function(){r.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(t,n){var a=this,i=a.get("linkCenter"),o=n!=null&&n.includes("move")?t:r.prototype.getShapeCfg.call(this,t);if(i)o.startPoint=a.getEndCenter("source"),o.endPoint=a.getEndCenter("target");else{var s=o.controlPoints||a.getControlPointsByCenter(o);o.startPoint=a.getLinkPoint("source",t,s),o.endPoint=a.getLinkPoint("target",t,s)}return o.sourceNode=a.get("sourceNode"),o.targetNode=a.get("targetNode"),o},e.prototype.getModel=function(){var t=this.get("model"),n=this.get("source".concat(ka)),a=this.get("target".concat(ka));return n?delete t["source".concat(ka)]:t.source=this.get("start".concat(ms)),a?delete t["target".concat(ka)]:t.target=this.get("end".concat(ms)),!Ye(t.source)&&!ln(t.source)&&(t.source=t.source.getID()),!Ye(t.target)&&!ln(t.target)&&(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(t,n){n===void 0&&(n=void 0);var a=this.get("model"),i=a.visible,o=t.visible;i!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),u=this.get("target");if(!(!s||s.destroyed||!u||u.destroyed)){var f=this.get("styles");if(t.stateStyles){var l=t.stateStyles;Et(f,l),delete t.stateStyles}Object.assign(a,t),this.updateShape(n),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var t=this.get("source".concat(ka)),n=this.get("target".concat(ka));t&&!t.destroyed&&t.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),r.prototype.destroy.call(this)},e}(DC),hp="anchorPointsCache",Uj="bboxCache",PC=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(t,n){for(var a=0,i=t[0],o=Ah(t[0],n),s=0;s-1&&n.splice(a,1)},e.prototype.clearCache=function(){this.set(Uj,null),this.set(hp,null)},e.prototype.getUpdateType=function(t){var n,a,i,o,s;if(t){var u=!Zt(t.x),f=!Zt(t.y),l=Object.keys(t);if(l.length===1&&(u||f)||l.length===2&&u&&f)return"move";if(Ot(t.x)||Ot(t.y)||t.type||t.anchorPoints||t.size||t!=null&&t.style&&(!((n=t==null?void 0:t.style)===null||n===void 0)&&n.r||!((a=t==null?void 0:t.style)===null||a===void 0)&&a.width||!((i=t==null?void 0:t.style)===null||i===void 0)&&i.height||!((o=t==null?void 0:t.style)===null||o===void 0)&&o.rx||!((s=t==null?void 0:t.style)===null||s===void 0)&&s.ry))return"bbox|label";var c=l.includes("label")||l.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(t,n){var a=this;if(this.optimize){r.prototype.setState.call(this,t,n);return}this.runWithBBoxAffected(function(){return r.prototype.setState.call(a,t,n)})},e.prototype.clearStates=function(t){var n=this;if(this.optimize){r.prototype.clearStates.call(this,t);return}this.runWithBBoxAffected(function(){return r.prototype.clearStates.call(n,t)})},e.prototype.runWithBBoxAffected=function(t){var n=["r","width","height","rx","ry","lineWidth"],a=this.getKeyShape().attr(),i={};Object.keys(this.getKeyShape().attr()).forEach(function(f){n.includes(f)&&(i[f]=a[f])}),t();for(var o=this.getKeyShape().attr(),s=0;s-1?(n.splice(a,1),!0):!1}},e.prototype.removeNode=function(t){if(t){var n=this.getNodes(),a=n.indexOf(t);return a>-1?(n.splice(a,1),!0):!1}},e.prototype.getUpdateType=function(t){},e.prototype.getBBox=function(){this.set(gx,null);var t=this.calculateCanvasBBox();return t},e.prototype.clearCache=function(){this.set(px,null),this.set(gx,null),this.set(yx,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),n=this.get("group");t&&n.stopAnimate(),n.shapeMap={},this.clearCache(),this.set(lc,null),this.set("bbox",null),n.remove(),this._cfg=null,this.destroyed=!0}},e}(PC),cc="node",hc="edge",mx="vedge",$u="combo",Xj="default",bx="Mapper",ii="stateStyles",Wj=function(){function r(e){var t=this;this.edgeToBeUpdateMap={},this.throttleRefresh=xh(function(n){var a=t.graph;if(!(!a||a.get("destroyed"))){var i=t.edgeToBeUpdateMap;if(i){var o=Object.values(i);o.length&&(o.forEach(function(s){var u=s.edge;if(!(!u||u.destroyed)){var f=u.getSource(),l=u.getTarget();!f||f.destroyed||!l||l.destroyed||u.refresh(s.updateType)}}),t.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return r.prototype.addItem=function(e,t){var n=this.graph,a=e===mx?hc:e,i=n.get("".concat(a,"Group"))||n.get("group"),o=Hs(a),s=null,u=n.get(a+Hs(ii))||{},f=n.get(Xj+o);t[ii]&&(u=t[ii]),f&&_e(f,function(E,_){gn(E)&&!bt(E)?t[_]=_r({},E,t[_]):bt(E)?t[_]=t[_]||rr(f[_]):t[_]=t[_]||f[_]});var l=n.get(a+bx);if(l){var c=l(t);c[ii]&&(u=c[ii],delete c[ii]),_e(c,function(E,_){gn(E)&&!bt(E)?t[_]=_r({},t[_],E):t[_]=c[_]||t[_]})}if(n.emit("beforeadditem",{type:e,model:t}),e===hc||e===mx){var h=void 0,d=void 0;if(h=t.source,d=t.target,h&&Ye(h)&&(h=n.findById(h)),d&&Ye(d)&&(d=n.findById(d)),!h||!d){console.warn("The source or target node of edge ".concat(t.id," does not exist!"));return}h.getType&&h.getType()==="combo"&&(t.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(t.isComboEdge=!0),s=new jj({model:t,source:h,target:d,styles:u,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(e===cc)s=new PC({model:t,styles:u,group:i.addGroup()});else if(e===$u){var v=t.children,p=eh(v,n),g=void 0,y=void 0;if(isNaN(p.x)?isNaN(t.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(t.y)&&(y=Math.random()*100):y=p.y,isNaN(t.x)||isNaN(t.y))t.x=g,t.y=y;else{var m=t.x-g,b=t.y-y;this.updateComboSucceeds(t.id,m,b,v)}var w=i.addGroup();w.setZIndex(t.depth),s=new $j({model:t,styles:u,animate:n.get("animate"),bbox:t.collapsed?eh([],n):p,group:w}),!t.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var x=s.getModel();(v||[]).forEach(function(E){var _=n.findById(E.id);s.addChild(_),E.depth=x.depth+2})}if(s)return s.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(e,"s")).push(s),n.get("itemMap")[s.get("id")]=s,n.emit("afteradditem",{item:s,model:t}),s},r.prototype.updateItem=function(e,t){var n=this,a,i,o=this.graph;if(Ye(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var u=o.get(s+bx),f=e.getModel(),l=f.x,c=f.y,h=e.getUpdateType(t);if(u){var d=_r({},f,t),v=u(d),p=_r({},f,v,t);v[ii]&&(e.set("styles",p[ii]),delete p[ii]),_e(p,function(M,C){t[C]=M})}else _e(t,function(M,C){f[C]&&gn(M)&&!bt(M)&&(t[C]=P(P({},f[C]),t[C]))});if(o.emit("beforeupdateitem",{item:e,cfg:t}),s===hc){if(t.source){var g=t.source;Ye(g)&&(g=o.findById(g)),e.setSource(g)}if(t.target){var y=t.target;Ye(y)&&(y=o.findById(y)),e.setTarget(y)}e.update(t)}else if(s===cc){e.update(t,h);var m=e.getEdges();h==="move"?_e(m,function(M){n.edgeToBeUpdateMap[M.getID()]={edge:M,updateType:h},n.throttleRefresh()}):h!=null&&h.includes("bbox")&&_e(m,function(M){M.refresh(h)})}else if(s===$u){if(e.update(t,h),!isNaN(t.x)||!isNaN(t.y)){var b=t.x-l||0,w=t.y-c||0;this.updateComboSucceeds(f.id,b,w)}var x=e.getEdges(),E=(h==null?void 0:h.includes("bbox"))||h==="move";if(E&&s===$u){var _=e.get("shapeFactory"),S=f.type||"circle",A=f.animate===void 0||t.animate===void 0?(i=(a=_[S])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:f.animate||t.animate;A?setTimeout(function(){if(!(!e||e.destroyed)){var M=e.getKeyShape();!M||M.destroyed||_e(x,function(C){C&&!C.destroyed&&C.refresh()})}},201):_e(x,function(M){M.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:t})}},r.prototype.updateCombo=function(e,t,n){var a=this,i,o,s=this.graph;if(Ye(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var u=e.getModel(),f=eh(t,s,e),l=f.x,c=f.y;e.set("bbox",f);var h=l,d=c;n?(h=isNaN(u.x)?l:u.x,d=isNaN(u.y)?c:u.y):(h=isNaN(l)?u.x:l,d=isNaN(c)?u.y:c),e.update({x:h,y:d});var v=e.get("shapeFactory"),p=u.type||"circle",g=u.animate===void 0?(o=(i=v[p])===null||i===void 0?void 0:i.options)===null||o===void 0?void 0:o.animate:u.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var y=e.getKeyShape();!y||y.destroyed||(e.getShapeCfg(u),a.updateComboEdges(e))}},201):this.updateComboEdges(e)}},r.prototype.updateComboEdges=function(e){for(var t,n,a=e.getEdges()||[],i=0;i-1&&o.splice(s,1),i===hc){var u=n.get("v".concat(i,"s")),f=u.indexOf(e);f>-1&&u.splice(f,1)}var l=e.get("id"),c=n.get("itemMap");delete c[l];var h=n.get("comboTrees"),d=e.get("id");if(i===cc){var v=e.getModel().comboId;if(h&&v){var p=h,g=!1;h.forEach(function(E){g||bn(E,function(_){if(_.id===d&&p){var S=p.indexOf(_);return p.splice(S,1),g=!0,!1}return p=_.children,!0})})}for(var y=e.getEdges(),m=y.length-1;m>=0;m--)n.removeItem(y[m],!1);v&&n.updateCombo(v)}else if(i===$u){var b=e.getModel().parentId,w,x=!1;(h||[]).forEach(function(_){x||bn(_,function(S){return S.id===d?(w=S,x=!0,!1):!0})}),w.removed=!0,w&&w.children&&w.children.forEach(function(_){t.removeItem(_.id)});for(var y=e.getEdges(),m=y.length;m>=0;m--)n.removeItem(y[m],!1);b&&n.updateCombo(b)}e.destroy(),n.emit("afterremoveitem",{item:a,type:i})}},r.prototype.setItemState=function(e,t,n){var a=this.graph,i=t;Ye(n)&&(i="".concat(t,":").concat(n)),!(e.hasState(i)===n&&n||Ye(n)&&e.hasState(i))&&(a.emit("beforeitemstatechange",{item:e,state:i,enabled:n}),e.setState(t,n),a.autoPaint(),a.emit("afteritemstatechange",{item:e,state:i,enabled:n}))},r.prototype.priorityState=function(e,t){var n=this.graph,a=e;Ye(e)&&(a=n.findById(e)),this.setItemState(a,t,!1),this.setItemState(a,t,!0)},r.prototype.clearItemStates=function(e,t){var n=this.graph;Ye(e)&&(e=n.findById(e)),n.emit("beforeitemstatesclear",{item:e,states:t}),e.clearStates(t),n.emit("afteritemstatesclear",{item:e,states:t})},r.prototype.refreshItem=function(e){var t=this.graph;Ye(e)&&(e=t.findById(e)),t.emit("beforeitemrefresh",{item:e}),e.refresh(),t.emit("afteritemrefresh",{item:e})},r.prototype.addCombos=function(e,t){var n=this,a=this.graph;(e||[]).forEach(function(o){Ra(o,function(s){var u;return t.forEach(function(f){f.id===s.id&&(f.children=s.children,f.depth=s.depth,u=f)}),u&&n.addItem("combo",u),!0})});var i=a.get("comboGroup");i&&i.sort()},r.prototype.changeItemVisibility=function(e,t){var n=this,a=this.graph;if(Ye(e)&&(e=a.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(a.emit("beforeitemvisibilitychange",{item:e,visible:t}),e.changeVisibility(t),e.getType&&e.getType()===cc){var i=e.getEdges();_e(i,function(l){t&&!(l.get("source").isVisible()&&l.get("target").isVisible())||n.changeItemVisibility(l,t)})}else if(e.getType&&e.getType()===$u){var o=a.get("comboTrees"),s=e.get("id"),u=[],f=!1;(o||[]).forEach(function(c){f||!c.children||c.children.length===0||bn(c,function(h){return h.id===s?(u=h.children,f=!0,!1):!0})}),u&&(!t||t&&!e.getModel().collapsed)&&u.forEach(function(c){var h=a.findById(c.id);n.changeItemVisibility(h,t)});var i=e.getEdges();_e(i,function(c){t&&!(c.get("source").isVisible()&&c.get("target").isVisible())||n.changeItemVisibility(c,t)})}return a.emit("afteritemvisibilitychange",{item:e,visible:t}),e},r.prototype.destroy=function(){this.graph=null,this.destroyed=!0},r}(),Vj=function(){function r(e){this.graph=e,this.destroyed=!1}return r.prototype.updateState=function(e,t,n){var a=this.graph.get("states"),i=t;Ye(n)&&(i="".concat(t,":").concat(n)),a[i]||(a[i]=[]),n?a[i].push(e):a[i]=a[i].filter(function(o){return o!==e}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:a})},r.prototype.updateStates=function(e,t,n){var a=this.graph.get("states"),i=Ye(t)?[t]:t;i.forEach(function(o){var s=o;a[s]||(a[s]=[]),Ye(n)&&(s="".concat(o,":").concat(n)),n?a[s].push(e):a[s]=a[s].filter(function(u){return u!==e})}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:t})},r.prototype.destroy=function(){this.graph=null,this.destroyed=!0},r}(),Yj=function(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,a){if(n.charAt(0)==="\\")return n.slice(1);var i=t[a];return i===0&&(i="0"),i||""})},RC=function(e){var t=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var n=0,a=e;n0?o-1:t-1,u=Wi([0,0],fn([0,0],i[s].v,wn([0,0],i[o].v,-1)));i[o].p=fn([0,0],i[o].p,wn([0,0],u,e))}return i.map(function(f){var l=f.p;return{x:l[0],y:l[1]}})}var Hj=function(e,t){for(var n=[],a=0;a<5;a++){var i=Math.cos((18+72*a)/180*Math.PI)*e,o=Math.sin((18+72*a)/180*Math.PI)*e,s=Math.cos((54+72*a)/180*Math.PI)*t,u=Math.sin((54+72*a)/180*Math.PI)*t;a===0?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",s,-u])}return n.push(["Z"]),n};const Zj=Object.freeze(Object.defineProperty({__proto__:null,getClosedSpline:U0,getControlPoint:Dh,getSpline:RC,getStarPath:Hj,paddedHull:FC,pathToPoints:j0,pointsToPolygon:qj,roundedHull:$0},Symbol.toStringTag,{value:"Module"}));var _x=function(e,t,n){return(e.y-n.y)*(t.x-n.x)-(e.x-n.x)*(t.y-n.y)},Sx=function(e){var t=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});t.sort(function(c,h){return c.x===h.x?c.y-h.y:c.x-h.x});for(var n={},a=t.length-1;a>=0;a--){var i=t[a],o=i.x,s=i.y;n["".concat(o,"-").concat(s)]&&t.splice(a,1),n["".concat(o,"-").concat(s)]=!0}if(t.length===1)return t;for(var u=[],a=0;a=2&&_x(u[u.length-2],u[u.length-1],t[a])<=0;)u.pop();u.push(t[a])}for(var f=[],a=t.length-1;a>=0;a--){for(;f.length>=2&&_x(f[f.length-2],f[f.length-1],t[a])<=0;)f.pop();f.push(t[a])}f.pop(),u.pop();var l=u.concat(f);return l},Kj={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Qj(r,e,t){var n=!1,a=function(u,f){return e.cells[u+f*e.width]},i=function(u,f){var l=0;return a(u-1,f-1)>=t&&(l+=1),a(u,f-1)>t&&(l+=2),a(u-1,f)>t&&(l+=4),a(u,f)>t&&(l+=8),l},o=function(u,f){for(var l=u,c=f,h,d,v=0;v-1){if(!(r[0].x!==l||r[0].y!==c))return!0}else r.push({x:l,y:c});var p=i(l,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:l++;break;case 12:case 14:case 4:l--;break;case 6:h===0&&(d===-1?l-=1:l+=1);break;case 1:case 13:case 5:c--;break;case 9:h===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;st&&i(s,u)!==15&&(n=o(s,u));return n}}var Jj=function(e,t,n){var a=Math.ceil(e/n),i=Math.ceil(t/n),o=new Float32Array(Math.max(0,a*i)).fill(0);return{cells:o,width:a,height:i}},eU=function(e,t,n){var a=null,i=Number.POSITIVE_INFINITY;return t.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},u={x:o.getModel().x,y:o.getModel().y},f=Ch(s,u),l=new $o(s.x,s.y,u.x,u.y),c=n.reduce(function(h,d){return xy(d,l)>0?h+1:h},0);f*Math.pow(c+1,2)=0&&o=1;)x/=1.5,E=Mx(v,x,g,w),_=f(E,o)||f(E,i),S=l(E,t);E&&!_&&(!w||!S)&&(o.push(new $o(d.x1,d.y1,E.x,E.y)),o.push(new $o(E.x,E.y,d.x2,d.y2)),s=!0)};m(!0),s||m(!1)}}s||i.push(d),u+=1};!s&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};function rU(r,e,t,n,a){var i=eU(r,t,e);if(i===null)return[];var o=function(c){for(var h=[];c.length>0;){var d=c.pop();if(c.length===0){h.push(d);break}var v=c.pop(),p=new $o(d.x1,d.y1,v.x2,v.y2),g=BC(e,p);g?(h.push(d),c.push(v)):c.push(p)}return h},s=new $o(r.getModel().x,r.getModel().y,i.getModel().x,i.getModel().y),u=tU(s,e,n,a),f=o(u);return f}var nU=function(e,t,n){var a=Object.assign(Kj,n),i=IA(e.map(function(m){return{x:m.getModel().x,y:m.getModel().y}}));e=e.sort(function(m,b){return Ch({x:m.getModel().x,y:m.getModel().y},i)-Ch({x:b.getModel().x,y:b.getModel().y},i)});var o=[],s=[];e.forEach(function(m){var b=rU(m,t,o,a.maxRoutingIterations,a.morphBuffer);b.forEach(function(w){s.push(w)}),o.push(m)});for(var u=aU(e,s,a.nodeR0),f=Jj(u.width,u.height,a.pixelGroupSize),l=[],c=[],h=0;h1)for(v=Math.floor(d.length/a.skip);v<3&&a.skip>1;)a.skip-=1,v=Math.floor(d.length/a.skip);for(var p=0,g=0;g0)a.nonMemberInfluenceFactor*=.8;else break}return c};function aU(r,e,t){var n={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},a=[];r.forEach(function(u){a.push(u.getBBox())}),e.forEach(function(u){a.push(u.getBBox())});for(var i=0,o=a;in.maxX?s.maxX:n.maxX)+t,n.maxY=(s.maxY>n.maxY?s.maxY:n.maxY)+t}return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.x=n.minX,n.y=n.minY,n}function iU(r,e,t,n,a,i){function o(d,v){var p=Math.floor((d-v)/i.pixelGroupSize);return p<0?0:p}function s(d,v){return d*i.pixelGroupSize+v}var u=(i.nodeR0-i.nodeR1)*(i.nodeR0-i.nodeR1),f=(i.edgeR0-i.edgeR1)*(i.edgeR0-i.edgeR1),l=function(v,p){var g=Math.min(o(v.minX,p+n.minX),a.width),y=Math.min(o(v.minY,p+n.minY),a.height),m=Math.min(o(v.maxX,-p+n.minX),a.width),b=Math.min(o(v.maxY,-p+n.minY),a.height);return[g,y,m,b]},c=function(v,p){for(var g=v.getBBox(),y=l(g,i.nodeR1),m=y[0],b=y[1],w=y[2],x=y[3],E=b;Eu.y?n?f.topLeft:f.bottomRight:n?f.topRight:f.bottomLeft:o.ys.x?n?f.topLeft:f.bottomRight:n?f.bottomLeft:f.topRight:i.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},r.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},r.prototype.calcPath=function(e,t){var n,a,i;switch(this.type){case"round-convex":n=Sx(e),i=$0(n.map(function(o){return[o.x,o.y]}),this.padding),a=R0(i);break;case"smooth-convex":n=Sx(e),n.length===2?(i=$0(n.map(function(o){return[o.x,o.y]}),this.padding),a=R0(i)):n.length>2&&(i=FC(n.map(function(o){return[o.x,o.y]}),this.padding),a=U0(i));break;case"bubble":n=nU(e,t,this.cfg.bubbleCfg),a=n.length>=2&&U0(n);break}return a},r.prototype.render=function(){this.group.addShape("path",{attrs:P({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},r.prototype.addMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.members.push(e);var t=this.nonMembers.indexOf(e);return t>-1&&this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},r.prototype.addNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var t=this.members.indexOf(e);return t>-1&&this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0}},r.prototype.removeMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var t=this.members.indexOf(e);return t>-1?(this.members.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},r.prototype.removeNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var t=this.nonMembers.indexOf(e);return t>-1?(this.nonMembers.splice(t,1),this.updateData(this.members,this.nonMembers),!0):!1}},r.prototype.updateData=function(e,t){var n=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(a){return Ye(a)?n.graph.findById(a):a})),t&&(this.nonMembers=t.map(function(a){return Ye(a)?n.graph.findById(a):a})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},r.prototype.updateStyle=function(e){var t=this.group.findById(this.id);t.attr(P({},e))},r.prototype.updateCfg=function(e){var t=this;this.cfg=_r(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(n){return Ye(n)?t.graph.findById(n):n})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(n){return Ye(n)?t.graph.findById(n):n})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},r.prototype.contain=function(e){var t=this,n;Ye(e)?n=this.graph.findById(e):n=e;var a,i=n.getKeyShape();if(n.get("type")==="path")a=j0(i.attr("path"));else{var o=i.getCanvasBBox();a=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return a=a.map(function(s){var u=t.graph.getPointByCanvas(s[0],s[1]);return[u.x,u.y]}),CA(a,j0(this.path))},r.prototype.destroy=function(){this.group.remove(),this.cfg=null},r}(),Xu=eo,sU="node",uU=function(r){jt(e,r);function e(t){var n=r.call(this)||this;return n.sortCombos=Hg(function(){var a=n.get("comboSorted");if(!(!n||n.destroyed||a)){n.set("comboSorted",!0);var i=[],o={},s=n.get("comboTrees");(s||[]).forEach(function(f){bn(f,function(l){return i[l.depth]?i[l.depth].push(l.id):i[l.depth]=[l.id],o[l.id]=l.depth,!0})});var u=n.getEdges().concat(n.get("vedges"));(u||[]).forEach(function(f){var l=f.getModel(),c=o[l.source]||0,h=o[l.target]||0,d=Math.max(c,h);i[d]?i[d].push(l.id):i[d]=[l.id]}),i.forEach(function(f){if(!(!f||!f.length))for(var l=f.length-1;l>=0;l--){var c=n.findById(f[l]);c&&c.toFront()}})}},500,!1),n.cfg=_r(n.getDefaultCfg(),t),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Bs(n.cfg.maxStep),n.redoStack=new Bs(n.cfg.maxStep)),n}return e.prototype.init=function(){this.initCanvas();var t=new Pj(this),n=new Z4(this),a=new Wj(this),i=new Vj(this);this.set({viewController:t,modeController:n,itemController:a,stateController:i}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas");if(t){var n=t.get("el"),a=(n||{}).id,i=a===void 0?"g6":a,o=t.addGroup({id:"".concat(i,"-root"),className:ft.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(i,"-edge"),className:ft.edgeContainerClassName}),u=o.addGroup({id:"".concat(i,"-node"),className:ft.nodeContainerClassName}),f=o.addGroup({id:"".concat(i,"-combo"),className:ft.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:s,comboGroup:f})}var l=o.addGroup({id:"".concat(i,"-delegate"),className:ft.delegateContainerClassName});this.set({delegateGroup:l}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(t,n){return ln(t)?this.cfg=P(P({},this.cfg),t):this.cfg[t]=n,t==="enabledStack"&&n&&!this.undoStack&&!this.redoStack&&(this.undoStack=new Bs(this.cfg.maxStep),this.redoStack=new Bs(this.cfg.maxStep)),this},e.prototype.get=function(t){var n;return(n=this.cfg)===null||n===void 0?void 0:n[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,n){Ye(t)&&(t=this.findById(t));var a=this.get("itemController");n||(n=t.get("states")),a.clearItemStates(t,n);var i=this.get("stateController");i.updateStates(t,n,!1)},e.prototype.node=function(t){typeof t=="function"&&this.set("nodeMapper",t)},e.prototype.edge=function(t){typeof t=="function"&&this.set("edgeMapper",t)},e.prototype.combo=function(t){typeof t=="function"&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,n){var a,i=this.get("".concat(t,"s"));return _e(i,function(o,s){if(n(o,s))return a=o,a}),a},e.prototype.findAll=function(t,n){var a=[];return _e(this.get("".concat(t,"s")),function(i,o){n(i,o)&&a.push(i)}),a},e.prototype.findAllByState=function(t,n,a){return a?this.findAll(t,function(i){return i.hasState(n)&&a(i)}):this.findAll(t,function(i){return i.hasState(n)})},e.prototype.translate=function(t,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),a){var f=If({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});v0(s,{x:s.getCanvasBBox().x+t,y:s.getCanvasBBox().y+n},a,f||{duration:500,easing:"easeCubic"})}else u=Xu(u,[["t",t,n]]),s.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},e.prototype.moveTo=function(t,n,a,i){var o=this.get("group");v0(o,{x:t,y:n},a,i||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(t,n,a,i){t&&this.set("fitViewPadding",t);var o=this.get("viewController");n?o.fitViewByRules(n,a,i):o.fitView(a,i),this.autoPaint()},e.prototype.fitCenter=function(t,n){var a=this.get("viewController");a.fitCenter(t,n),this.autoPaint()},e.prototype.addBehaviors=function(t,n){var a=this.get("modeController");return a.manipulateBehaviors(t,n,!0),this},e.prototype.removeBehaviors=function(t,n){var a=this.get("modeController");return a.manipulateBehaviors(t,n,!1),this},e.prototype.updateBehavior=function(t,n,a){var i=this.get("modeController");return i.updateBehavior(t,n,a),this},e.prototype.zoom=function(t,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),l=this.get("maxZoom"),c=this.getZoom()||1,h=c*t,d=t,v=!1;if(f&&hl&&(d=l/c,v=!0),n?u=Xu(u,[["t",-n.x,-n.y],["s",d,d],["t",n.x,n.y]]):u=Xu(u,[["s",d,d]]),a){var p=rr(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],y=g*d,m=If({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(b){if(b===1)p=u;else{var w=Ey(g,y,b)/p[0];n?p=Xu(p,[["t",-n.x,-n.y],["s",w,w],["t",n.x,n.y]]):p=Xu(p,[["s",w,w]])}return{matrix:p}},m)}else s.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!v},e.prototype.zoomTo=function(t,n,a,i){var o=t/this.getZoom();return this.zoom(o,n,a,i)},e.prototype.focusItem=function(t,n,a){var i=this.get("viewController"),o=!1;n?o=!0:n===void 0&&(o=this.get("animate"));var s={};a?s=a:a===void 0&&(s=this.get("animateCfg")),i.focus(t,o,s),this.autoPaint()},e.prototype.focusItems=function(t,n,a,i){var o=this.get("viewController");o.focusItems(t,n,a,i)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,n){var a=this.get("viewController");return a.getPointByClient(t,n)},e.prototype.getClientByPoint=function(t,n){var a=this.get("viewController");return a.getClientByPoint(t,n)},e.prototype.getPointByCanvas=function(t,n){var a=this.get("viewController");return a.getPointByCanvas(t,n)},e.prototype.getCanvasByPoint=function(t,n){var a=this.get("viewController");return a.getCanvasByPoint(t,n)},e.prototype.getGraphCenterPoint=function(){var t=this.get("group").getCanvasBBox();return{x:(t.minX+t.maxX)/2,y:(t.minY+t.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(t,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(t,!0);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!1}],f.nodes=[{id:o,visible:!0}];break;case"edge":u.nodes=[{id:o,visible:!1}],f.edges=[{id:o,visible:!0}];break;case"combo":u.nodes=[{id:o,visible:!1}],f.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.hideItem=function(t,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(t,!1);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!0}],f.nodes=[{id:o,visible:!1}];break;case"edge":u.nodes=[{id:o,visible:!0}],f.edges=[{id:o,visible:!1}];break;case"combo":u.nodes=[{id:o,visible:!0}],f.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.refreshItem=function(t){var n=this.get("itemController");n.refreshItem(t)},e.prototype.setAutoPaint=function(t){var n=this;n.set("autoPaint",t);var a=n.get("canvas");a.set("autoDraw",t)},e.prototype.remove=function(t,n){n===void 0&&(n=!0),this.removeItem(t,n)},e.prototype.removeItem=function(t,n){n===void 0&&(n=!0);var a=t;if(Ye(t)&&(a=this.findById(t)),!a&&Ye(t))console.warn("The item ".concat(t," to be removed does not exist!"));else if(a){var i="";if(a.getType&&(i=a.getType()),n&&this.get("enabledStack")){var o=P(P({},a.getModel()),{itemType:i}),s={};switch(i){case"node":{s.nodes=[o],s.edges=[];for(var u=a.getEdges(),f=u.length-1;f>=0;f--)s.edges.push(P(P({},u[f].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(i==="node"){var l=a.getModel();l.comboId&&this.updateComboTree(a,void 0,!1)}var c=this.get("itemController");if(c.removeItem(a),i==="combo"){var h=w0(this.get("comboTrees"));this.set("comboTrees",h)}}},e.prototype.innerAddItem=function(t,n,a){if(!H4(t,n))return!1;if(n.id&&this.findById(n.id)){console.warn("This item exists already. Be sure the id %c".concat(n.id,"%c is unique."),"font-size: 20px; color: red;","");return}var i,o=this.get("comboTrees")||[];if(t==="combo"){var s=this.get("itemMap"),u=!1;if(o.forEach(function(v){u||Ra(v,function(p){if(n.parentId===p.id){u=!0;var g=P({id:n.id,depth:p.depth+2},n);p.children?p.children.push(g):p.children=[g],n.depth=g.depth,i=a.addItem(t,n)}var y=s[p.id];return u&&y&&y.getType&&y.getType()==="combo"&&a.updateCombo(y,p.children),!0})}),!u){var f=P({id:n.id,depth:0},n);n.depth=f.depth,o.push(f),i=a.addItem(t,n)}this.set("comboTrees",o),n.collapsed&&(this.collapseCombo(i,!1),this.updateCombo(i))}else if(t==="node"&&Ye(n.comboId)&&o){var l=this.findById(n.comboId);l&&l.getType&&l.getType()!=="combo"&&console.warn("'".concat(n.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),i=a.addItem(t,n);var c=this.get("itemMap"),h=!1,d=!1;o.forEach(function(v){d||h||Ra(v,function(p){if(p.id===n.id)return d=!0,!1;if(n.comboId===p.id&&!d){h=!0;var g=rr(n);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return h&&c[p.id].getType&&c[p.id].getType()==="combo"&&a.updateCombo(c[p.id],p.children),!0})})}else i=a.addItem(t,n);if(t==="node"&&n.comboId||t==="combo"&&n.parentId){var l=this.findById(n.comboId||n.parentId);l&&l.getType&&l.getType()==="combo"&&l.addChild(i)}return i},e.prototype.addItem=function(t,n,a,i){a===void 0&&(a=!0),i===void 0&&(i=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!i);var s=this.get("itemController"),u=this.innerAddItem(t,n,s);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),a&&this.get("enabledStack")){var l=P(P({},u.getModel()),{itemType:t}),c={};switch(t){case"node":c.nodes=[l];break;case"edge":c.edges=[l];break;case"combo":c.combos=[l];break}this.pushStack("add",{before:{},after:c})}return u},e.prototype.addItems=function(t,n,a){t===void 0&&(t=[]),n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);for(var o=this.get("itemController"),s=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),n&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},u=0;u=0;g--)v[g].destroyed&&v.splice(g,1);h&&(o.addCombos(h),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),_e(l,function(w,x){w.getType&&(w.getType()==="node"||w.getType()==="combo")||c.edges.indexOf(w)<0&&(delete l[x],o.remove(w,!1))}),(this.get("comboTrees")||[]).forEach(function(w){Ra(w,function(x){var E=a.findById(x.id);return E.getType()==="combo"&&x.collapsed&&a.collapseCombo(x.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,m=y===void 0?!0:y,b=this.get("layoutController");return m&&b&&(b.changeData(function(){setTimeout(function(){var w;(w=o.getCombos())===null||w===void 0||w.forEach(function(x){x.set("animate",!0)})},0)}),o.get("animate")&&!b.getLayoutType()?(o.positionsAnimate(),(i=o.getCombos())===null||i===void 0||i.forEach(function(w){return w.set("animate",!0)})):o.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(t){var n=this,a=n.get("comboTrees"),i=this.get("itemController");i.addCombos(a,t)},e.prototype.createCombo=function(t,n,a){var i=this;a===void 0&&(a=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",u;if(t){if(Ye(t))s=t,u={id:t};else{if(s=t.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=t}var f=a&&this.get("enabledStack"),l={nodes:[],combos:[]};f&&n.forEach(function(y){var m=i.findById(y),b=m.getType();if(!(b!=="node"&&b!=="combo")){var w=m.getModel();l["".concat(b,"s")].push({id:y,parentId:b==="node"?w.comboId:w.parentId})}});var c=this.get("comboTrees"),h=new Set(n),d=new Map;c&&(c.forEach(function(y){Ra(y,function(m,b,w){if(h.has(m.id)){if(b){var x=i.findById(b.id),E=i.findById(m.id);b.children.splice(w,1),x.removeChild(E),o.updateCombo(x,b.children)}m.itemType==="combo"&&d.set(m.id,m)}return!0})}),c=c.filter(function(y){return!h.has(y.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=n.map(function(y){var m=i.findById(y),b=m.getModel(),w="";m.getType&&(w=m.getType());var x=d.get(y)||{id:m.getID(),itemType:w};return w==="combo"?(x.parentId=s,b.parentId=s):w==="node"&&(x.comboId=s,b.comboId=s),f&&v["".concat(w,"s")].push({id:b.id,parentId:s}),x});u.children=p,this.addItem("combo",u,!1),this.set("comboSorted",!1),c&&(c.forEach(function(y){bn(y,function(m){return m.id===s?(m.itemType="combo",m.children=p,!1):!0})}),this.sortCombos()),f&&(v.combos.push(u),this.pushStack("createCombo",{before:l,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(t,n){var a=this,i,o;n===void 0&&(n=!0);var s=this,u=t;if(Ye(t)&&(u=this.findById(t)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),l=u.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var h=this.get("itemMap"),d=u.get("id"),v,p=[],g=this.get("combos"),y=this.findById(l),m=n&&this.get("enabledStack"),b={};if(m&&(b=rr(f),b.children=[]),c.forEach(function(_){v||Ra(_,function(S){var A;if(S.id===d){v=S;var M=u.getEdges().map(function(k){return k.getID()});M.forEach(function(k){a.removeItem(k,!1)});var C=g.indexOf(u);g.splice(C,1),delete h[d];var I=rr(u.getModel());u.destroy(),a.emit("afterremoveitem",{item:I,type:"combo"})}if(l&&v&&S.id===l){y.removeCombo(u),p=S.children;var C=p.indexOf(v);return C!==-1&&p.splice(C,1),(A=v.children)===null||A===void 0||A.forEach(function(O){var B=a.findById(O.id),L=B.getModel();B.getType&&B.getType()==="combo"?(O.parentId=l,delete O.comboId,L.parentId=l,delete L.comboId):B.getType&&B.getType()==="node"&&(O.comboId=l,L.comboId=l),y.addChild(B),p.push(O)}),a.updateCombo(y),!1}return!0})}),!l&&v){var w=c.indexOf(v);c.splice(w,1),(i=v.children)===null||i===void 0||i.forEach(function(_){_.parentId=void 0;var S=a.findById(_.id).getModel();delete S.parentId,delete S.comboId,_.itemType!=="node"&&c.push(_)})}if(m){var x={nodes:[],combos:[]},E={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(_){var S=a.findById(_.id),A=S.getType();A!=="node"&&A!=="combo"||(x["".concat(A,"s")].push({id:_.id,parentId:d}),E["".concat(A,"s")].push({id:_.id,parentId:l}))}),x.combos.push(b),this.pushStack("uncombo",{before:x,after:E})}},e.prototype.updateCombos=function(t){var n=this;t===void 0&&(t=!1);var a=this,i=this.get("comboTrees"),o=a.get("itemController"),s=a.get("itemMap");(i||[]).forEach(function(u){Ra(u,function(f){var l;if(!f)return!0;var c=s[f.id];if(((l=c==null?void 0:c.getType)===null||l===void 0?void 0:l.call(c))==="combo"){var h=Xn([],c.getStates(),!0);_e(h,function(d){return n.setItemState(c,d,!1)}),o.updateCombo(c,f.children,t),_e(h,function(d){return n.setItemState(c,d,!0)})}return!0})}),a.sortCombos()},e.prototype.updateCombo=function(t){var n=this,a=this,i=t,o;if(Ye(t)&&(i=this.findById(t)),!i||i.getType&&i.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=i.get("id");var s=this.get("comboTrees"),u=a.get("itemController"),f=a.get("itemMap");(s||[]).forEach(function(l){Ra(l,function(c){if(!c)return!0;var h=f[c.id];if(o===c.id&&h&&h.getType&&h.getType()==="combo"){var d=Xn([],h.getStates(),!0);_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!1)}),u.updateCombo(h,c.children),_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(t,n,a){a===void 0&&(a=!0);var i=this;this.set("comboSorted",!1);var o;Ye(t)?o=i.findById(t):o=t;var s=o.getModel(),u=s.comboId||s.parentId,f="";if(o.getType&&(f=o.getType()),n&&f==="combo"){var l=this.get("comboTrees"),c=!0,h;if((l||[]).forEach(function(m){h||bn(m,function(b){if(!h)return b.id===o.getID()&&(h=b),!0})}),bn(h,function(m){return m.id===n?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(a&&this.get("enabledStack")){var d={},v={};f==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:n}]):f==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:n}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(f==="combo"?s.parentId=n:f==="node"&&(s.comboId=n),n){var g=this.findById(n);g&&g.addChild(o)}if(u){var g=this.findById(u);g&&g.removeChild(o)}var y=w0(this.get("comboTrees"),s.id,n);this.set("comboTrees",y),this.updateCombos()},e.prototype.save=function(){var t=[],n=[],a=[];return _e(this.get("nodes"),function(i){t.push(i.getModel())}),_e(this.get("edges"),function(i){n.push(i.getModel())}),_e(this.get("combos"),function(i){a.push(i.getModel())}),{nodes:t,edges:n,combos:a}},e.prototype.changeSize=function(t,n){var a=this.get("viewController");return a.changeSize(t,n),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var n=t.get("nodes"),a=t.get("edges"),i=t.get("edges");_e(n,function(o){o.refresh()}),_e(a,function(o){o.refresh()}),_e(i,function(o){o.refresh()})}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(Ye(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo does not exist!");return}return t.getChildren()},e.prototype.positionsAnimate=function(t){var n=this;n.emit("beforeanimate");var a=n.get("animateCfg"),i=a.onFrame,o=t?n.getNodes().concat(n.getCombos()):n.getNodes(),s=o.map(function(f){var l=f.getModel();return{id:l.id,x:l.x,y:l.y}});n.stopAnimate();var u=n.get("canvas");n.animating=!0,setTimeout(function(){u.animate(function(f){_e(s,function(l){var c=n.findById(l.id);if(!(!c||c.destroyed)){var h=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(h==null&&(v&&(h={x:v[6],y:v[7]}),c.set("originAttrs",h||0)),i){var p=i(c,f,l,h||{x:0,y:0});c.set("model",Object.assign(d,p))}else h?(d.x=h.x+(l.x-h.x)*f,d.y=h.y+(l.y-h.y)*f):(d.x=l.x,d.y=l.y)}}),n.refreshPositions(t)},{duration:a.duration,easing:a.easing,callback:function(){_e(o,function(l){l.set("originAttrs",null)}),a.callback&&a.callback(),n.emit("afteranimate"),n.animating=!1}})},0)},e.prototype.refreshPositions=function(t){var n=this;n.emit("beforegraphrefreshposition");var a=n.get("nodes"),i=n.get("edges"),o=n.get("vedges"),s=n.get("combos"),u,f={},l=function(h){_e(h,function(d){u=d.getModel();var v=d.get("originAttrs");if(!(v&&u.x===v.x&&u.y===v.y)){var p=d.updatePosition({x:u.x,y:u.y});f[u.id]=p,u.comboId&&(f[u.comboId]=f[u.comboId]||p),u.parentId&&(f[u.parentId]=f[u.parentId]||p)}})};l(s),l(a),s&&s.length!==0&&(t&&l(s),n.updateCombos()),_e(i,function(c){var h=c.getSource().getModel(),d=c.getTarget();if(!ln(d)){var v=d.getModel();(f[h.id]||f[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),_e(o,function(c){c.refresh()}),n.emit("aftergraphrefreshposition"),n.autoPaint()},e.prototype.stopAnimate=function(){var t=this.get("canvas"),n=t.cfg.timeline;n&&n.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){var t=this.get("modeController");return t.getMode()},e.prototype.setMode=function(t){var n=this.get("modeController");return n.setMode(t),this},e.prototype.clear=function(t){var n;return t===void 0&&(t=!1),(n=this.get("canvas"))===null||n===void 0||n.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),t||this.emit("afterrender"),this},e.prototype.updateLayout=function(t,n,a,i){var o=this;t===void 0&&(t={}),i===void 0&&(i=!0);var s=this.get("layoutController");if(Ye(t)&&(t={type:t}),n){var u=a;u||(n==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(t.type)||!t.type&&f.includes(s==null?void 0:s.layoutType)?t.center=[u.x,u.y]:this.once("afterlayout",function(h){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*d[0]+d[6],u.y=u.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,y=v.minY,m=v.maxY,b={x:(p+g)/2,y:(y+m)/2};n==="begin"&&(b.x=p,b.y=y),o.translate(u.x-b.x,u.y-b.y)})}var l=P({},this.get("layout")),c={};Object.assign(c,l,t),t.pipes&&!t.type?delete c.type:!t.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===l.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),i&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:c}))},e.prototype.destroyLayout=function(){var t=this.get("layoutController");t==null||t.destroyLayout()},e.prototype.layout=function(){var t,n=this.get("layoutController"),a=this.get("layout");if(!(!a||!n)){if(a.workerEnabled){n.layout();return}!((t=n.layoutMethods)===null||t===void 0)&&t.length?n.relayout(!0):n.layout()}},e.prototype.collapseCombo=function(t,n){var a=this;if(n===void 0&&(n=!0),!this.destroyed){if(Ye(t)&&(t=this.findById(t)),!t){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:t});var i=t.getModel(),o=this.get("itemController");o.collapseCombo(t,n),i.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){var d=h.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(h.isVisible()&&!v)){var y=h.getSource(),m=h.getTarget(),b=null,w;if(y.getModel().id===i.id||u.includes(y)&&!u.includes(m)?(b=m,w=!1):(m.getModel().id===i.id||!u.includes(y)&&u.includes(m))&&(b=y,w=!0),b){if(v){a.removeItem(h,!1);return}for(var x=b.getModel();!b.isVisible();){var E=x.parentId,_=x.comboId,S=E||_;if(b=a.findById(S),!b||!S)return;x=b.getModel()}var A=x.id,M=w?{source:A,target:i.id,size:g,isVEdge:!0}:{source:i.id,target:A,size:g,isVEdge:!0},C="".concat(M.source,"-").concat(M.target);if(c[C]){c[C].size+=g;return}c[C]=M}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}},e.prototype.expandCombo=function(t,n){var a=this;if(n===void 0&&(n=!0),Ye(t)&&(t=this.findById(t)),!t||t.getType&&t.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var i=t.getModel(),o=this.get("itemController");o.expandCombo(t,n),i.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){if(!(h.isVisible()&&!h.getModel().isVEdge)){var d=h.getSource(),v=h.getTarget(),p=d.get("id"),g=v.get("id"),y=null,m;if(p===i.id||u.includes(d)&&!u.includes(v)?(y=v,m=!1):g===i.id||!u.includes(d)&&u.includes(v)?(y=d,m=!0):u.includes(d)&&u.includes(v)&&d.isVisible()&&v.isVisible()&&h.show(),y){var b=h.getModel(),w=b.isVEdge,x=b.size,E=x===void 0?1:x;if(w){a.removeItem(h,!1);return}for(var _=y.getModel();!y.isVisible();){var S=_.parentId,A=_.comboId,M=S||A;if(y=a.findById(M),!y||!M)return;_=y.getModel()}for(var C=_.id,I=m?v:d,k=I.getModel();!I.isVisible();){var O=k.parentId,B=k.comboId,L=O||B;if(I=a.findById(L),!I||!L)return;if(k.comboId===i.id||k.parentId===i.id)break;k=I.getModel()}var z=k.id;if(C){var X=m?{source:C,target:z,isVEdge:!0,size:E}:{source:z,target:C,isVEdge:!0,size:E},R="".concat(X.source,"-").concat(X.target);if(c[R]){c[R].size+=E;return}c[R]=X}}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})},e.prototype.collapseExpandCombo=function(t,n){if(n===void 0&&(n=!0),Ye(t)&&(t=this.findById(t)),!(!t||t.getType&&t.getType()!=="combo")){for(var a=t.getModel(),i=this.findById(a.parentId);i;){var o=i.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),i=void 0;return}i=this.findById(o.parentId)}var s=a.collapsed;s?this.expandCombo(t,n):this.collapseCombo(t,n),this.updateCombo(t)}},e.prototype.getNeighbors=function(t,n){var a=t;return Ye(t)&&(a=this.findById(t)),a.getNeighbors(n)},e.prototype.getNodeDegree=function(t,n,a){n===void 0&&(n=void 0),a===void 0&&(a=!1);var i=t;Ye(t)&&(i=this.findById(t));var o=this.get("degrees");(!o||a)&&(o=yi(this.save()),this.set("degrees",o));var s=o[i.getID()],u=0;if(!s)return 0;switch(n){case"in":u=s.inDegree;break;case"out":u=s.outDegree;break;case"all":u=s;break;default:u=s.degree;break}return u},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(t,n,a){if(t===void 0&&(t="update"),a===void 0&&(a="undo"),!this.get("enabledStack")){console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !");return}var i=n?rr(n):{before:{},after:rr(this.save())};a==="redo"?this.redoStack.push({action:t,data:i}):this.undoStack.push({action:t,data:i}),this.emit("stackchange",{action:t,stackType:a,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix");return(!a||!t)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),a},e.prototype.getShortestPathMatrix=function(t,n){t===void 0&&(t=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return(!a||!t)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),(!i||!t)&&(i=Cf(this.save(),n),this.set("shortestPathMatrix",i)),i},e.prototype.on=function(t,n,a){return r.prototype.on.call(this,t,n,a)},e.prototype.destroy=function(){var t,n,a,i,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(t=this.get("itemController"))===null||t===void 0||t.destroy(),(n=this.get("modeController"))===null||n===void 0||n.destroy(),(a=this.get("viewController"))===null||a===void 0||a.destroy(),(i=this.get("stateController"))===null||i===void 0||i.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(t){if(!t.members||t.members.length<1){console.warn("Create hull failed! The members is empty.");return}var n=this.get("hullGroup"),a=this.get("hullMap");if(a||(a={},this.set("hullMap",a)),(!n||n.get("destroyed"))&&(n=this.get("group").addGroup({id:"hullGroup"}),n.toBack(),this.set("hullGroup",n)),a[t.id])return console.warn("Existed hull id."),a[t.id];var i=n.addGroup({id:"".concat(t.id,"-container")}),o=new oU(this,P(P({},t),{group:i})),s=o.id;return a[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var n,a;Ye(t)?a=this.getHullById(t):a=t,(n=this.get("hullMap"))===null||n===void 0||delete n[a.id],a.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();!t||!Object.keys(t).length||(Object.keys(t).forEach(function(n){var a=t[n];a.destroy()}),this.set("hullMap",{}))},e}(zS);function X0(r){"@babel/helpers - typeof";return X0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X0(r)}var bs=eo,Ax="-shape",dp="-label",dc=["startArrow","endArrow"],Cx={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},fU={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},vc={edge:fU,node:Cx,combo:Cx},W0="-label-bg",Oy={options:{labelCfg:{style:{fontFamily:ft.windowFontFamily}},descriptionCfg:{style:{fontFamily:ft.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,t){return t==="move"||t!=null&&t.includes("bbox")?e:_r({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,t){t.shapeMap={},this.mergeStyle=this.getOptions(e);var n=this.drawShape(e,t);if(n.set("className",this.itemType+Ax),t.shapeMap[this.itemType+Ax]=n,e.label){var a=this.drawLabel(e,t);a.set("className",this.itemType+dp),t.shapeMap[this.itemType+dp]=a}return n},afterDraw:function(e,t,n){},drawShape:function(e,t){return null},drawLabel:function(e,t){var n=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,a=n||{},i=this.getLabelStyle(e,a,t),o=i.rotate;delete i.rotate;var s=t.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var u=s.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":f=bs(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break;case"lefttop":f=bs(f,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":f=bs(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);break;default:f=bs(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break}else f=bs(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);s.setMatrix(f)}if(i.background){var l=this.drawLabelBg(e,t,s),c=this.itemType+W0;l.set("classname",c),t.shapeMap[c]=l,s.toFront()}return s},drawLabelBg:function(e,t,n){var a=this.options.labelCfg,i=Et({},a,e.labelCfg),o=this.getLabelBgStyleByPosition(n,i),s=t.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return t.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,t,n){return{text:e.label}},getLabelBgStyleByPosition:function(e,t){return{}},getLabelStyle:function(e,t,n){var a=this.getLabelStyleByPosition(e,t,n),i="".concat(this.itemType,"Label"),o=ft[i]?ft[i].style:null;return P(P(P({},o),a),t.style)},getShapeStyle:function(e){return e.style},update:function(e,t,n){this.updateShapeStyle(e,t,n),this.updateLabel(e,t,n)},updateShapeStyle:function(e,t,n){var a,i=t.getContainer(),o=t.getKeyShape(),s=Et({},o.attr(),e.style),u=function(c){var h,d=s[c];if(ln(d)){var v=((a=i.shapeMap)===null||a===void 0?void 0:a[c])||i.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((h={},h[c]=d,h))};for(var f in s)u(f)},updateLabel:function(e,t,n){var a,i,o=t.getContainer(),s=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,u=s===void 0?{}:s,f=this.itemType+dp,l=o.shapeMap[f]||o.find(function(w){return w.get("className")===f}),c=this.itemType+W0,h=o.shapeMap[c]||o.find(function(w){return w.get("className")===c});if(l&&e.label===void 0&&(o.removeChild(l),delete o.shapeMap[f],h&&(o.removeChild(h),delete o.shapeMap[c])),e.label||e.label==="")if(l){(!n||n==="bbox|label"||this.itemType==="edge"&&n!=="style")&&(u=_r(u,e.labelCfg));var v=this.getLabelStyleByPosition(e,u,o),p=(a=e.labelCfg)===null||a===void 0?void 0:a.style,g=P(P({},v),p),y=g.rotate;if(delete g.rotate,!isNaN(y)&&y!==""){var m=[1,0,0,0,1,0,0,0,1];m=bs(m,[["t",-g.x,-g.y],["r",y],["t",g.x,g.y]]),g.matrix=m,l.attr(g)}else((i=l.getMatrix())===null||i===void 0?void 0:i[4])!==1&&l.resetMatrix(),l.attr(g);if(!h)g.background&&(h=this.drawLabelBg(e,o,l),h.set("classname",c),o.shapeMap[c]=h,l.toFront());else if(g.background){var b=this.getLabelBgStyleByPosition(l,u);h.attr(b)}else o.removeChild(h)}else{var d=this.drawLabel(e,o);d.set("className",f),o.shapeMap[f]=d}},afterUpdate:function(e,t){},setState:function(e,t,n){var a,i,o,s=n.get("keyShape");if(!(!s||s.destroyed)){var u=n.getType(),f=Vf(t)?e:"".concat(e,":").concat(t),l=this.getStateStyle(f,n),c=n.getStateStyle(f);if(!(!c&&!l)){var h=Et({},c||l),d=n.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(v.r=1,v.width=1,v.height=1),t){var p=function(L){var z,X=h[L];if(ln(X)&&!dc.includes(L)){var R=((o=d.shapeMap)===null||o===void 0?void 0:o[L])||d.find(function(V){return V.get("name")===L});R==null||R.attr(X)}else s.attr((z={},z[L]=X,z))};for(var g in h)p(g)}else{var y=th(n.getCurrentStatesStyle()),m=n.getModel(),b=Et({},m.style,th(n.getOriginStyle())),w=s.get("name"),x=s.attr(),E={};Object.keys(x).forEach(function(B){if(B!=="img"){var L=x[B];L&&X0(L)==="object"?E[B]=rr(L):E[B]=L}});var _={},S=function(L){var z=h[L];if(ln(z)&&!dc.includes(L)){var X=d.shapeMap[L]||d.find(function(he){return he.get("name")===L});if(X){var R=th(X.attr());_e(z,function(he,ce){if(L===w&&E[ce]&&!v[ce]){delete E[ce];var le=b[L][ce]||vc[u][ce];s.attr(ce,le)}else if(R[ce]||R[ce]===0){delete R[ce];var ie=b[L][ce]||vc[u][ce];X.attr(ce,ie)}}),_[L]=R}}else if(E[L]&&!v[L]){delete E[L];var V=b[L]||(b[w]?b[w][L]:void 0)||vc[u][L];s.attr(L,V)}};for(var A in h)S(A);w?_[w]=E:Et(_,E);for(var g in y)if(!v[g]){var M=y[g];(!ln(M)||dc.includes(g))&&(w?(Et(b[w],(i={},i[g]=M,i)),delete b[g]):Et(b,(a={},a[g]=M,a)),delete y[g])}var C={};_r(C,b,_,y);var I=!1,k=function(L){var z,X,R=C[L];if(ln(R)&&!dc.includes(L)){var V=d.shapeMap[L]||d.find(function(ce){return ce.get("name")===L});V&&((V.get("type")==="text"||V.get("labelRelated"))&&(delete R.x,delete R.y,delete R.matrix),L===w&&(u==="combo"&&(delete R.r,delete R.width,delete R.height),I=!0),V.attr(R))}else if(!I){var he=R||vc[u][L];u==="combo"?w||s.attr((z={},z[L]=he,z)):s.attr((X={},X[L]=he,X))}};for(var O in C)k(O)}}}},getStateStyle:function(e,t){var n=t.getModel(),a=t.getType(),i=this.getOptions(n),o=i.stateStyles,s=i.style,u=s===void 0?{}:s,f=n.stateStyles?n.stateStyles[e]:o&&o[e];return a==="combo"?rr(f):Et({},u,f)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var t,n,a=(e==null?void 0:e.anchorPoints)||((t=this.getCustomConfig(e))===null||t===void 0?void 0:t.anchorPoints)||((n=this.options)===null||n===void 0?void 0:n.anchorPoints);return a}},lU={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ft.nodeLabel.offset,getSize:function(e){var t,n=((t=this.mergeStyle)===null||t===void 0?void 0:t.size)||e.size||this.getOptions({}).size||ft.defaultNode.size;return bt(n)&&n.length===1&&(n=[n[0],n[0]]),bt(n)||(n=[n,n]),n},getLabelStyleByPosition:function(e,t){var n=t.maxLength,a=e.label;n&&(a=RA(a,n));var i=t.position||this.labelPosition;if(i==="center")return{x:0,y:0,text:a,textBaseline:"middle",textAlign:"center"};var o=t.offset;Zt(o)&&(o=this.offset);var s=this.getSize(e),u;switch(i){case"top":u={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=a,u},getLabelBgStyleByPosition:function(e,t){var n;if(!e)return{};var a=(n=t.style)===null||n===void 0?void 0:n.background;if(!a)return{};var i=e.getBBox(),o=Ny(a.padding),s=i.width+o[1]+o[3],u=i.height+o[0]+o[2];return P(P({x:i.minX-o[3],y:i.minY-o[0]},a),{width:s,height:u})},drawShape:function(e,t){var n=this.shapeType,a=this.getShapeStyle(e),i=t.addShape(n,{attrs:a,draggable:!0,name:"node-shape"});return t.shapeMap["node-shape"]=i,i},updateLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=t.shapeMap["link-point-left"]||t.find(function(C){return C.get("className")==="link-point-left"}),i=t.shapeMap["link-point-right"]||t.find(function(C){return C.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(C){return C.get("className")==="link-point-top"}),s=t.shapeMap["link-point-bottom"]||t.find(function(C){return C.get("className")==="link-point-bottom"}),u;a&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),s&&!u&&(u=s.attr()),u||(u=n);var f=Et({},u,e.linkPoints),l=f.fill,c=f.stroke,h=f.lineWidth,d=f.size/2;d||(d=f.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,y=v.top,m=v.bottom,b=this.getSize(e),w=b[0],x=b[1],E={r:d,fill:l,stroke:c,lineWidth:h};if(a)!p&&p!==void 0?(a.remove(),delete t.shapeMap["link-point-left"]):a.attr(P(P({},E),{x:-w/2,y:0}));else if(p){var _="link-point-left";t.shapeMap[_]=t.addShape("circle",{attrs:P(P({},E),{x:-w/2,y:0}),className:_,name:_,isAnchorPoint:!0})}if(i)!g&&g!==void 0&&(i.remove(),delete t.shapeMap["link-point-right"]),i.attr(P(P({},E),{x:w/2,y:0}));else if(g){var S="link-point-right";t.shapeMap[S]=t.addShape("circle",{attrs:P(P({},E),{x:w/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)!y&&y!==void 0&&(o.remove(),delete t.shapeMap["link-point-top"]),o.attr(P(P({},E),{x:0,y:-x/2}));else if(y){var A="link-point-top";t.shapeMap[A]=t.addShape("circle",{attrs:P(P({},E),{x:0,y:-x/2}),className:A,name:A,isAnchorPoint:!0})}if(s)!m&&m!==void 0?(s.remove(),delete t.shapeMap["link-point-bottom"]):s.attr(P(P({},E),{x:0,y:x/2}));else if(m){var M="link-point-bottom";t.shapeMap[M]=t.addShape("circle",{attrs:P(P({},E),{x:0,y:x/2}),className:M,name:M,isAnchorPoint:!0})}},updateShape:function(e,t,n,a,i){var o=t.get("keyShape");o.attr(P({},n)),this.updateLabel(e,t,i),a&&this.updateIcon(e,t)},updateIcon:function(e,t){var n=this,a=t.getContainer(),i=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,u=o.text,f=a.shapeMap["".concat(this.type,"-icon")]||a.find(function(y){return y.get("name")==="".concat(n.type,"-icon")});if(f)if(s||s===void 0){var l=Et({},f.attr(),i),c=l.width,h=c===void 0?20:c,d=l.height,v=d===void 0?20:d;(l.fontFamily==="iconfont"||l.hasOwnProperty("text"))&&(h=0,v=0),f.attr(P(P({},l),{x:-h/2,y:-v/2}))}else f.remove(),delete a.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(u)a.shapeMap[p]=a.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{var h=i.width,v=i.height;a.shapeMap[p]=a.addShape("image",{attrs:P(P({},i),{x:-h/2,y:-v/2}),className:p,name:p})}var g=a.shapeMap["node-label"]||a.find(function(y){return y.get("name")==="node-label"});g&&g.toFront()}}},cU=P(P({},Oy),lU);mr.registerNode("single-node",cU);var pc="edge-shape";function hU(r){var e=r;return r==="start"?e="end":r==="end"&&(e="start"),e}var dU={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ft.defaultEdge.size,style:{x:0,y:0,stroke:ft.defaultEdge.style.stroke,lineAppendWidth:ft.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ft.edgeLabel.style.fill,fontSize:ft.edgeLabel.style.fontSize,fontFamily:ft.windowFontFamily}},stateStyles:P({},ft.edgeStateStyles)},getPath:function(e){var t=[];return _e(e,function(n,a){a===0?t.push(["M",n.x,n.y]):t.push(["L",n.x,n.y])}),t},getShapeStyle:function(e){var t=this.options.style,n={stroke:e.color},a=Et({},t,n,e.style),i=e.size||ft.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,u=this.getControlPoints(e),f=[o];u&&(f=f.concat(u)),f.push(s);var l=this.getPath(f),c=Et({},ft.defaultEdge.style,{stroke:ft.defaultEdge.color,lineWidth:i,path:l},a);return c},updateShapeStyle:function(e,t,n){var a,i=t.getContainer(),o=((a=t.getKeyShape)===null||a===void 0?void 0:a.call(t))||i.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var u=e.startPoint,f=e.endPoint,l=this.getControlPoints(e),c=[u];l&&(c=c.concat(l)),c.push(f);var h=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};l||(g={source:v,target:p,offset:d.offset,radius:d.radius});var y=this.getPath(c,g),m={};n==="move"?m={path:y}:(h.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),h.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),m=P({},e.style),m.lineWidth===void 0&&(m.lineWidth=(Ot(s)?s:s==null?void 0:s[0])||h.lineWidth),m.path===void 0&&(m.path=y),m.stroke===void 0&&(m.stroke=h.stroke||e.color)),o&&o.attr(m)},getLabelStyleByPosition:function(e,t,n){var a=t.position||this.labelPosition,i={},o=n==null?void 0:n.shapeMap[pc],s;a==="start"?s=0:a==="end"?s=1:s=.5;var u=t.refX||this.refX,f=t.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return i.x=e.startPoint.x+u,i.y=e.startPoint.y+f,i.text=e.label,i;var l;Zt(t.autoRotate)?l=this.labelAutoRotate:l=t.autoRotate;var c=LA(o,s,u,f,l);return i.x=c.x,i.y=c.y,i.rotate=c.rotate,i.textAlign=this._getTextAlign(a,c.angle),i.text=e.label,i},getLabelBgStyleByPosition:function(e,t){if(!e)return{};var n=e.getBBox(),a=t.style&&t.style.background;if(!a)return{};var i=a.padding,o=n.width+i[1]+i[3],s=n.height+i[0]+i[2],u=P(P({},a),{width:o,height:s,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return Zt(t.autoRotate)?f=this.labelAutoRotate:f=t.autoRotate,f&&(u.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(e,t){var n="center";return t?(t=t%(Math.PI*2),e!=="center"&&(t>=0&&t<=Math.PI/2||t>=3/2*Math.PI&&t<2*Math.PI?n=e:n=hU(e)),n):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,t){var n=this.getShapeStyle(e),a=t.addShape("path",{className:pc,name:pc,attrs:n});return t.shapeMap[pc]=a,a},drawLabel:function(e,t){var n=this.options.labelCfg,a=_r({},n,e.labelCfg),i=this.getLabelStyle(e,a,t),o=i.rotate;delete i.rotate;var s=t.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(t.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),i.background){var u=this.drawLabelBg(e,t,s,i,o),f=this.itemType+W0;u.set("classname",f),t.shapeMap[f]=u,s.toFront()}return s},drawLabelBg:function(e,t,n,a,i){var o=this.options.labelCfg,s=_r({},o,e.labelCfg),u=this.getLabelBgStyleByPosition(n,s),f=t.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return t.shapeMap["text-bg-shape"]=f,f}},vU=P(P({},Oy),dU);mr.registerEdge("single-edge",vU);mr.registerEdge("line",{getControlPoints:function(){}},"single-edge");mr.registerEdge("spline",{getPath:function(e){var t=RC(e);return t}},"single-edge");mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var t=e.startPoint,n=e.endPoint,a={x:(t.x+n.x)/2,y:(t.y+n.y)/2},i,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],i=d0(t,o,n),t.x<=n.x&&t.y>n.y?this.clockwise=i.x>o.x?0:1:t.x<=n.x&&t.yo.x?1:0:t.x>n.x&&t.y<=n.y?this.clockwise=i.y0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o};Zi.detectConnectedComponents=UC;var $C=function(e){for(var t=e.nodes,n=t===void 0?[]:t,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=(0,jC.getNeighbors)(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=(0,VC.getNeighbors)(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),t&&n?(M=!1,C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!0)):t&&!n&&C.findIndex(function(B){return t.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(t&&n===!1&&t.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=(0,WC.detectStrongConnectComponents)({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(t&&n&&t.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s};za.detectAllDirectedCycle=HC;var n8=function(e,t,n,a){return a===void 0&&(a=!0),t?HC(e,n,a):qC(e,n,a)};za.detectAllCycles=n8;var a8=r8;za.default=a8;var vu={};const ZC=Ka(AP),qf=Ka(YR);Object.defineProperty(vu,"__esModule",{value:!0});vu.default=void 0;var Tx=ZC,i8=qf,Ix=Wr,o8=function(e,t,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?(0,gc.getNeighbors)(v,s,"target"):(0,gc.getNeighbors)(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c};Js.findAllPath=h8;var Hf={};Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var d8=v8(Zo);function v8(r){return r&&r.__esModule?r:{default:r}}var p8=function(e,t){for(var n=(0,d8.default)(e,t),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},g8=p8;Hf.default=g8;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});xd.default=void 0;var y8=b8(Zo),m8=Wr;function b8(r){return r&&r.__esModule?r:{default:r}}var w8=function(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=(0,m8.uniqueId)();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=(0,y8.default)(e,t),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=(0,N8.clone)(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=vp(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=vp(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},R8=P8;Ed.default=R8;var _d={},Sd={};Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=void 0;var F8=function(){function r(e){this.count=e.length,this.parent={};for(var t=0,n=e;t0&&(this.list[0]=t,this.moveDown(0)),e},r.prototype.insert=function(e){if(e!==null){this.list.push(e);var t=this.list.length-1;return this.moveUp(t),!0}return!1},r.prototype.moveUp=function(e){for(var t=this.getParent(e);e&&e>0&&this.compareFn(this.list[t],this.list[e])>0;){var n=this.list[t];this.list[t]=this.list[e],this.list[e]=n,e=t,t=this.getParent(e)}},r.prototype.moveDown=function(e){var t,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(t=[this.list[n],this.list[e]],this.list[e]=t[0],this.list[n]=t[1],this.moveDown(n))},r}(),j8=z8;Md.default=j8;Object.defineProperty(_d,"__esModule",{value:!0});_d.default=void 0;var U8=nT(Sd),$8=nT(Md),pp=Wr;function nT(r){return r&&r.__esModule?r:{default:r}}var X8=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return t?g.weight-y.weight:0},c=new $8.default(l);for((0,pp.getEdgesByNodeId)(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),(0,pp.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),(0,pp.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return n},Px=function(e,t){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});t&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new U8.default(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},W8=function(e,t,n){var a={prim:X8,kruskal:Px};return n?a[n](e,t):Px(e,t)},V8=W8;_d.default=V8;var Ad={};Object.defineProperty(Ad,"__esModule",{value:!0});Ad.default=void 0;var Y8=H8(pi),q8=Wr;function H8(r){return r&&r.__esModule?r:{default:r}}var Z8=function(e,t,n){typeof t!="number"&&(t=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>t;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(t.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new No(p,m,In.VACANT_NODE_LABEL,_.edgeLabel,In.VACANT_NODE_LABEL));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new yc(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new yc(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=t.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(t.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:t.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=t.maxNodeNum)){var y=t.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=t.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(t.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:t.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*t)););if(g<2*t&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*t)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[t]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},h$=function(e,t,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=(0,Gx.default)(e,n),c=(0,Gx.default)(t,n),h=Xx(e.nodes,l,n),d=Xx(t.nodes,c,n),v=Ux(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=Ux(t.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;$x(e.edges,s,p);var w=$x(t.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,(0,Bx.__spreadArray)((0,Bx.__spreadArray)([],x,!1),[2],!1))),a||(a=i);var E=jx(e,l,o,a),_=jx(t,c,o,a),S=Math.min(100,f*(f-1)/2),A=f$(a,f,S,E,l),M=nh(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=(0,s$.default)(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=ah(Se,tt,o,s);X[te][N]=Fe})});var R=l$(X,z,L),V=R.structure,he=R.structureCountMap,ce=t.nodes[0],le=[],ie=(u=t.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;t.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=nh(Se,_,t,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=ah(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=nh(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=ah(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=uT(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:c$(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=(0,zx.default)(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,bu=ge[Ur.id].inDegree,wu=ge[Ur.id].outDegree,rn=Ur[o],ti=Wx(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,xu=ti.minPatternNodeLabelInDegree,Eu=ti.minPatternNodeLabelOutDegree,_u=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},d$=h$;Cd.default=d$;(function(r){function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(w)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(r,"breadthFirstSearch",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"dijkstra",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(r,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(r,"floydWarshall",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"getAdjMatrix",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(r,"getDegree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"getInDegree",{enumerable:!0,get:function(){return i.getInDegree}}),Object.defineProperty(r,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(r,"getOutDegree",{enumerable:!0,get:function(){return i.getOutDegree}}),Object.defineProperty(r,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"louvain",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(r,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(r,"pageRank",{enumerable:!0,get:function(){return v.default}});var t=b(Zo),n=b(md),a=b(Zi),i=m(pi),o=b(za),s=b(wd),u=b(vu),f=Js,l=b(Hf),c=b(xd),h=b(Ed),d=b(_d),v=b(Ad),p=b(Cd),g=Wr;function y(w){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(y=function(S){return S?E:x})(w)}function m(w,x){if(w&&w.__esModule)return w;if(w===null||e(w)!=="object"&&typeof w!="function")return{default:w};var E=y(x);if(E&&E.has(w))return E.get(w);var _={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(A!=="default"&&Object.prototype.hasOwnProperty.call(w,A)){var M=S?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(_,A,M):_[A]=w[A]}return _.default=w,E&&E.set(w,_),_}function b(w){return w&&w.__esModule?w:{default:w}}})(zC);function Z0(r){"@babel/helpers - typeof";return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z0(r)}Object.defineProperty(yd,"__esModule",{value:!0});yd.default=void 0;var gp=v$(zC),Vx=Hi;function fT(r){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fT=function(a){return a?t:e})(r)}function v$(r,e){if(r&&r.__esModule)return r;if(r===null||Z0(r)!=="object"&&typeof r!="function")return{default:r};var t=fT(e);if(t&&t.has(r))return t.get(r);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if(i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)){var o=a?Object.getOwnPropertyDescriptor(r,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=r[i]}return n.default=r,t&&t.set(r,n),n}var yp=typeof self<"u"?self:{};yp.onmessage=function(r){var e=r.data,t=e._algorithmType,n=e.data;if(t){if(typeof gp[t]=="function"){var a=gp[t].apply(gp,n);yp.postMessage({_algorithmType:Vx.MESSAGE.SUCCESS,data:a});return}yp.postMessage({_algorithmType:Vx.MESSAGE.FAILURE})}};var p$=null;yd.default=p$;Object.defineProperty(gd,"__esModule",{value:!0});gd.default=void 0;var g$=Hi,y$=m$(yd);function m$(r){return r&&r.__esModule?r:{default:r}}var b$=function(e){return function(){for(var t=[],n=0;n=r&&a<=r+t&&i>=e&&i<=e+n}function Ff(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(t*=Math.sqrt(d),n*=Math.sqrt(d));var v=t*t*(h*h)+n*n*(c*c),p=v?Math.sqrt((t*t*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*t*h/n:0,y=t?p*-n*c/t:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/t,(h-y)/n],x=[(-1*c-g)/t,(-1*h-y)/n],E=qx([1,0],w),_=qx(w,x);return K0(w,x)<=-1&&(_=Math.PI),K0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:Yx(r,[f,l])?0:t,ry:Yx(r,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}var Ph=Math.sin,Rh=Math.cos,Fy=Math.atan2,bc=Math.PI;function dT(r,e,t,n,a,i,o){var s=e.stroke,u=e.lineWidth,f=t-a,l=n-i,c=Fy(l,f),h=new jy({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Rh(bc/6)+","+10*Ph(bc/6)+" L0,0 L"+10*Rh(bc/6)+",-"+10*Ph(bc/6),stroke:s,lineWidth:u}});h.translate(a,i),h.rotateAtPoint(a,i,c),r.set(o?"startArrowShape":"endArrowShape",h)}function vT(r,e,t,n,a,i,o){var s=e.startArrow,u=e.endArrow,f=e.stroke,l=e.lineWidth,c=o?s:u,h=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=Kr(c,["d","fill","stroke","lineWidth"]),y=t-a,m=n-i,b=Fy(m,y);h&&(a=a-Rh(b)*h,i=i-Ph(b)*h);var w=new jy({type:"path",canvas:r.get("canvas"),isArrowShape:!0,attrs:P(P({},g),{stroke:v||f,lineWidth:p||l,fill:d})});w.translate(a,i),w.rotateAtPoint(a,i,b),r.set(o?"startArrowShape":"endArrowShape",w)}function Go(r,e,t,n,a){var i=Fy(n-e,t-r);return{dx:Rh(i)*a,dy:Ph(i)*a}}function By(r,e,t,n,a,i){typeof e.startArrow=="object"?vT(r,e,t,n,a,i,!0):e.startArrow?dT(r,e,t,n,a,i,!0):r.set("startArrowShape",null)}function Gy(r,e,t,n,a,i){typeof e.endArrow=="object"?vT(r,e,t,n,a,i,!1):e.endArrow?dT(r,e,t,n,a,i,!1):r.set("startArrowShape",null)}var Zx={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function tu(r,e){var t=e.attr();for(var n in t){var a=t[n],i=Zx[n]?Zx[n]:n;i==="matrix"&&a?r.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&r.setLineDash?bt(a)&&r.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=K$(r,e,a):i==="globalAlpha"&&(a=a*r.globalAlpha),r[i]=a)}}function Q0(r,e,t){for(var n=0;nx?w:x,C=w>x?1:w/x,I=w>x?x/w:1;e.translate(m,b),e.rotate(S),e.scale(C,I),e.arc(0,0,M,E,_,1-A),e.scale(1/C,1/I),e.rotate(-S),e.translate(-m,-b)}break}case"Z":e.closePath();break}if(h==="Z")s=u;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function yT(r,e){var t=r.get("canvas");t&&(e==="remove"&&(r._cacheCanvasBBox=r.get("cacheCanvasBBox")),r.get("hasChanged")||(r.set("hasChanged",!0),r.cfg.parent&&r.cfg.parent.get("hasChanged")||(t.refreshElement(r,e,t),t.get("autoDraw")&&t.draw())))}function t9(r){var e;if(r.destroyed)e=r._cacheCanvasBBox;else{var t=r.get("cacheCanvasBBox"),n=t&&!!(t.width&&t.height),a=r.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?e=X$(t,a):n?e=t:i&&(e=a)}return e}function r9(r){if(!r.length)return null;var e=[],t=[],n=[],a=[];return _e(r,function(i){var o=t9(i);o&&(e.push(o.minX),t.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ha(e),minY:Ha(t),maxX:qa(n),maxY:qa(a)}}function n9(r,e){return!r||!e||!Ff(r,e)?null:{minX:Math.max(r.minX,e.minX),minY:Math.max(r.minY,e.minY),maxX:Math.min(r.maxX,e.maxX),maxY:Math.min(r.maxY,e.maxY)}}var mT=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(t){yT(this,t)},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,n){n&&(t.save(),tu(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,n=[],a=[];_e(t,function(h){var d=h.cfg.cacheCanvasBBox;d&&h.cfg.isInView&&(n.push(d.minX,d.maxX),a.push(d.minY,d.maxY))});var i=null;if(n.length){var o=Ha(n),s=qa(n),u=Ha(a),f=qa(a);i={minX:o,minY:u,x:o,y:u,maxX:s,maxY:f,width:s-o,height:f-u};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",Ff(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(t.save(),tu(t,this),this._applyClip(t,this.getClip()),Q0(t,a,n),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(fC),Ea=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return mT},e.prototype.onCanvasChange=function(t){yT(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),n=this.getHitLineWidth(),a=hC(t),i=a(this),o=n/2,s=i.x-o,u=i.y-o,f=i.x+i.width+o,l=i.y+i.height+o;return{x:s,minX:s,y:u,minY:u,width:i.width+n,height:i.height+n,maxX:f,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,n){n&&(t.save(),tu(t,n),n.createPath(t),t.restore(),t.clip(),n._afterDraw())},e.prototype.draw=function(t,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Ff(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),tu(t,this),this._applyClip(t,a),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var n=this.getCanvasBBox(),a=Ff(n,t);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!Zt(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=i):this.fill(t)),this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(t.globalAlpha=o),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(t,n,a,i,o)},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(lC),a9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.r,c=o/2,h=lT(u,f,t,n);return i&&a?h<=l+c:i?h<=l:a?h>=l-c&&h<=l+c:!1},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.r;t.beginPath(),t.arc(a,i,o,0,Math.PI*2,!1),t.closePath()},e}(Ea);function wc(r,e,t,n){return r/(t*t)+e/(n*n)}var i9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=o/2,f=s.x,l=s.y,c=s.rx,h=s.ry,d=(t-f)*(t-f),v=(n-l)*(n-l);return i&&a?wc(d,v,c+u,h+u)<=1:i?wc(d,v,c,h)<=1:a?wc(d,v,c-u,h-u)>=1&&wc(d,v,c+u,h+u)<=1:!1},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(t.beginPath(),t.ellipse)t.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var u=o>s?o:s,f=o>s?1:o/s,l=o>s?s/o:1;t.save(),t.translate(a,i),t.scale(f,l),t.arc(0,0,u,0,Math.PI*2),t.restore(),t.closePath()}},e}(Ea);function Kx(r){return r instanceof HTMLElement&&Ye(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS"}var o9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var n=this,a=this.attrs;if(Ye(t)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(a.width||(a.width=t.width),a.height||(a.height=t.height)):Kx(t)&&(a.width||(a.width=Number(t.getAttribute("width"))),a.height||(a.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),t==="img"&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.sx,f=n.sy,l=n.swidth,c=n.sheight,h=n.img;(h instanceof Image||Kx(h))&&(!Zt(u)&&!Zt(f)&&!Zt(l)&&!Zt(c)?t.drawImage(h,u,f,l,c,a,i,o,s):t.drawImage(h,a,i,o,s))},e}(Ea);function ji(r,e,t,n,a,i,o){var s=Math.min(r,t),u=Math.max(r,t),f=Math.min(e,n),l=Math.max(e,n),c=a/2;return i>=s-c&&i<=u+c&&o>=f-c&&o<=l+c?cn.pointToLine(r,e,t,n,i,o)<=a/2:!1}var s9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.startArrow,u=t.endArrow;s&&By(this,t,i,o,n,a),u&&Gy(this,t,n,a,i,o)},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),u=s.x1,f=s.y1,l=s.x2,c=s.y2;return ji(u,f,l,c,o,t,n)},e.prototype.createPath=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.startArrow,f=n.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};u&&u.d&&(l=Go(a,i,o,s,n.startArrow.d)),f&&f.d&&(c=Go(a,i,o,s,n.endArrow.d)),t.beginPath(),t.moveTo(a+l.dx,i+l.dy),t.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(t){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(t),a&&a.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,t)},e}(Ea),u9={circle:function(r,e,t){return[["M",r-t,e],["A",t,t,0,1,0,r+t,e],["A",t,t,0,1,0,r-t,e]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+n],["L",r,e-n],["L",r+t,e+n],["Z"]]},"triangle-down":function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-n],["L",r+t,e-n],["L",r,e+n],["Z"]]}},f9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Zt(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t=this.attr(),n=t.x,a=t.y,i=t.symbol||"circle",o=this._getR(t),s,u;if(Tr(i))s=i,u=s(n,a,o),u=SC(u);else{if(s=e.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;u=s(n,a,o)}return u},e.prototype.createPath=function(t){var n=this._getPath(),a=this.get("paramsCache");gT(this,t,{path:n},a)},e.Symbols=u9,e}(Ea);function bT(r,e,t){var n=xC();return r.createPath(n),n.isPointInPath(e,t)}var l9=1e-6;function mp(r){return Math.abs(r)0!=mp(s[1]-t)>0&&mp(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function uf(r,e,t,n,a,i,o,s){var u=(Math.atan2(s-e,o-r)+Math.PI*2)%(Math.PI*2);if(ua)return!1;var f={x:r+t*Math.cos(u),y:e+t*Math.sin(u)};return lT(f.x,f.y,o,s)<=i/2}var h9=eo;function d9(r){for(var e=!1,t=r.length,n=0;nb?m:b,A=m>b?1:m/b,M=m>b?b/m:1,C=h9(null,[["t",-g,-y],["r",-E],["s",1/A,1/M]]);cd(_,_,C),i=uf(0,0,S,w,x,e,_[0],_[1]);break}if(i)break}}return i}function p9(r){for(var e=r.length,t=[],n=[],a=[],i=0;i0&&n.push(a),{polygons:t,polylines:n}}const xc=P({hasArc:d9,extractPolygons:p9,isPointInStroke:v9},dz);function Qx(r,e,t){for(var n=!1,a=0;a=l[0]&&t<=l[1]&&(a=(t-l[0])/(l[1]-l[0]),i=c)});var s=o[i];if(Zt(s)||Zt(i))return null;var u=s.length,f=o[i+1];return gf.pointAt(s[u-2],s[u-1],f[1],f[2],f[3],f[4],f[5],f[6],a)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",xc.pathToCurve(t))},e.prototype._setTcache=function(){var t=0,n=0,a=[],i,o,s,u,f=this.get("curve");if(f){if(_e(f,function(l,c){s=f[c+1],u=l.length,s&&(t+=gf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}_e(f,function(l,c){s=f[c+1],u=l.length,s&&(i=[],i[0]=n/t,o=gf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/t,a.push(i))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var t=this.getSegments(),n;if(t.length>1){var a=t[0].currentPoint,i=t[1].currentPoint,o=t[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},e.prototype.getEndTangent=function(){var t=this.getSegments(),n=t.length,a;if(n>1){var i=t[n-2].currentPoint,o=t[n-1].currentPoint,s=t[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},e}(Ea);function xT(r,e,t,n,a){var i=r.length;if(i<2)return!1;for(var o=0;o=s[0]&&t<=s[1]&&(i=(t-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(t,function(u,f){t[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],t[f+1][0],t[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},e.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,a=[];return a.push([t[n-1][0],t[n-1][1]]),a.push([t[n][0],t[n][1]]),a},e}(Ea);function m9(r,e,t,n,a,i,o){var s=a/2;return Ro(r-s,e-s,t,a,i,o)||Ro(r+t-s,e-s,a,n,i,o)||Ro(r+s,e+n-s,t,a,i,o)||Ro(r-s,e+s,a,n,i,o)}function b9(r,e,t,n,a,i,o,s){return ji(r+a,e,r+t-a,e,i,o,s)||ji(r+t,e+a,r+t,e+n-a,i,o,s)||ji(r+t-a,e+n,r+a,e+n,i,o,s)||ji(r,e+n-a,r,e+a,i,o,s)||uf(r+t-a,e+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||uf(r+t-a,e+n-a,a,0,.5*Math.PI,i,o,s)||uf(r+a,e+n-a,a,.5*Math.PI,Math.PI,i,o,s)||uf(r+a,e+a,a,Math.PI,1.5*Math.PI,i,o,s)}var w9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.width,c=s.height,h=s.radius;if(h){var v=!1;return a&&(v=b9(u,f,l,c,h,o,t,n)),!v&&i&&(v=bT(this,t,n)),v}else{var d=o/2;if(i&&a)return Ro(u-d,f-d,l+d,c+d,t,n);if(i)return Ro(u,f,l,c,t,n);if(a)return m9(u,f,l,c,o,t,n)}},e.prototype.createPath=function(t){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t.beginPath(),u===0)t.rect(a,i,o,s);else{var f=Q$(u),l=f[0],c=f[1],h=f[2],d=f[3];t.moveTo(a+l,i),t.lineTo(a+o-c,i),c!==0&&t.arc(a+o-c,i+c,c,-Math.PI/2,0),t.lineTo(a+o,i+s-h),h!==0&&t.arc(a+o-h,i+s-h,h,0,Math.PI/2),t.lineTo(a+d,i+s),d!==0&&t.arc(a+d,i+s-d,d,Math.PI/2,Math.PI),t.lineTo(a,i+l),l!==0&&t.arc(a+l,i+l,l,Math.PI,Math.PI*1.5),t.closePath()}},e}(Ea),x9=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=_C(t)},e.prototype._setText=function(t){var n=null;Ye(t)&&t.indexOf(` -`)!==-1&&(n=t.split(` -`)),this.set("textArr",n)},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,n=t.lineHeight,a=t.fontSize*1;return n?n-a:a*.14},e.prototype._drawTextArr=function(t,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,u=i.y,f=i.fontSize*1,l=this._getSpaceingY(),c=EC(i.text,i.fontSize,i.lineHeight),h;_e(n,function(d,v){h=u+v*(l+f)-c+f,o==="middle"&&(h+=c-f-(c-f)/2),o==="top"&&(h+=c-f),Zt(d)||(a?t.fillText(d,s,h):t.strokeText(d,s,h))})},e.prototype._drawText=function(t,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(t,s,n);else{var u=a.text;Zt(u)||(n?t.fillText(u,i,o):t.strokeText(u,i,o))}},e.prototype.strokeAndFill=function(t){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(!Zt(s)&&s!==1?(t.globalAlpha=s,this.fill(t),t.globalAlpha=i):this.fill(t)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(Ea);function E9(r,e){if(e){var t=VA(e);return Do(t,r)}return r}function ET(r,e,t){var n=r.getTotalMatrix();if(n){var a=E9([e,t,1],n),i=a[0],o=a[1];return[i,o]}return[e,t]}function Jx(r,e,t){if(r.isCanvas&&r.isCanvas())return!0;if(!A0(r)||r.cfg.isInView===!1)return!1;if(r.cfg.clipShape){var n=ET(r,e,t),a=n[0],i=n[1];if(r.isClipped(a,i))return!1}var o=r.cfg.cacheCanvasBBox||r.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&t>=o.minY&&t<=o.maxY}function _T(r,e,t){if(!Jx(r,e,t))return null;for(var n=null,a=r.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=_T(s,e,t);else if(Jx(s,e,t)){var u=s,f=ET(s,e,t),l=f[0],c=f[1];u.isInShape(l,c)&&(n=s)}if(n)break}return n}var Vu=function(r){jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},e.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return Xg},e.prototype.getGroupBase=function(){return mT},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||$$();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),n=t.getContext("2d");return this.set("context",n),t},e.prototype.setDOMSize=function(t,n){r.prototype.setDOMSize.call(this,t,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*t,i.height=o*n,o>1&&a.scale(o,o)},e.prototype.clear=function(){r.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),n=this.get("el");t.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(t,n){var a;return this.get("quickHit")?a=_T(this,t,n):a=r.prototype.getShape.call(this,t,n,null),a},e.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),n=this.getViewRange(),a;if(t.length&&t[0]===this)a=n;else if(a=r9(t),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=n9(a,n))}return a},e.prototype.refreshElement=function(t){var n=this.get("refreshElements");n.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(PS(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),n=this.get("el"),a=this.getChildren();t.clearRect(0,0,n.width,n.height),tu(t,this),Q0(t,a),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),tu(t,this),J$(this,a,i),Q0(t,a,i),t.restore()):n.length&&pT(n),_e(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=DS(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(uC),eg={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ar={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ra(r){return document.createElementNS("http://www.w3.org/2000/svg",r)}function ST(r){var e=eg[r.type],t=r.getParent();if(!e)throw new Error("the type "+r.type+" is not supported by svg");var n=ra(e);if(r.get("id")&&(n.id=r.get("id")),r.set("el",n),r.set("attrs",{}),t){var a=t.get("el");a||(a=t.createDom(),t.set("el",a)),a.appendChild(n)}return n}function MT(r,e){var t=r.get("el"),n=GS(t.children).sort(e),a=document.createDocumentFragment();n.forEach(function(i){a.appendChild(i)}),t.appendChild(a)}function _9(r,e){var t=r.parentNode,n=Array.from(t.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),a=n[e],i=n.indexOf(r);if(a){if(i>e)t.insertBefore(r,a);else if(i0&&(n?"stroke"in a?this._setColor(t,"stroke",s):"strokeStyle"in a&&this._setColor(t,"stroke",u):this._setColor(t,"stroke",s||u),l&&h.setAttribute(ar.strokeOpacity,l),c&&h.setAttribute(ar.lineWidth,c))},e.prototype._setColor=function(t,n,a){var i=this.get("el");if(!a){i.setAttribute(ar[n],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=t.find("gradient",a);o||(o=t.addGradient(a)),i.setAttribute(ar[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=t.find("pattern",a);o||(o=t.addPattern(a)),i.setAttribute(ar[n],"url(#"+o+")")}else i.setAttribute(ar[n],a)},e.prototype.shadow=function(t,n){var a=this.attr(),i=n||a,o=i.shadowOffsetX,s=i.shadowOffsetY,u=i.shadowBlur,f=i.shadowColor;(o||s||u||f)&&S9(this,t)},e.prototype.transform=function(t){var n=this.attr(),a=(t||n).matrix;a&&Qf(this)},e.prototype.isInShape=function(t,n){return this.isPointInPath(t,n)},e.prototype.isPointInPath=function(t,n){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),s=t+o.left,u=n+o.top,f=document.elementFromPoint(s,u);return!!(f&&f.isEqualNode(a))},e.prototype.getHitLineWidth=function(){var t=this.attrs,n=t.lineWidth,a=t.lineAppendWidth;return this.isStroke()?n+a:0},e}(lC),M9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,r:0})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),A9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");if(_e(n||a,function(f,l){ar[l]&&i.setAttribute(ar[l],f)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var s=i.childNodes,u=s.length-1;u>=0;u--)i.removeChild(s[u]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},e}(aa),C9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),T9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){u==="img"?a._setImage(i.img):ar[u]&&o.setAttribute(ar[u],s)})},e.prototype.setAttr=function(t,n){this.attrs[t]=n,t==="img"&&this._setImage(n)},e.prototype._setImage=function(t){var n=this.attr(),a=this.get("el");if(Ye(t))a.setAttribute("href",t);else if(t instanceof window.Image)n.width||(a.setAttribute("width",t.width),this.attr("width",t.width)),n.height||(a.setAttribute("height",t.height),this.attr("height",t.height)),a.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Ye(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),n.width||(a.setAttribute("width",""+t.width),this.attr("width",t.width)),n.height||(a.setAttribute("height",""+t.height),this.attr("height",t.height)),a.setAttribute("href",i.toDataURL())}},e}(aa),I9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var u=gn(o)?t.addArrow(a,ar[s]):t.getDefaultArrow(a,ar[s]);i.setAttribute(ar[s],"url(#"+u+")")}else i.removeAttribute(ar[s]);else ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr(),n=t.x1,a=t.y1,i=t.x2,o=t.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(t){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,t)},e}(aa),Ec={circle:function(r,e,t){return[["M",r,e],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(r,e,t){return[["M",r-t,e-t],["L",r+t,e-t],["L",r+t,e+t],["L",r-t,e+t],["Z"]]},diamond:function(r,e,t){return[["M",r-t,e],["L",r,e-t],["L",r+t,e],["L",r,e+t],["Z"]]},triangle:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e+n],["L",r,e-n],["L",r+t,e+n],["z"]]},triangleDown:function(r,e,t){var n=t*Math.sin(.3333333333333333*Math.PI);return[["M",r-t,e-n],["L",r+t,e-n],["L",r,e+n],["Z"]]}};const eE={get:function(r){return Ec[r]},register:function(r,e){Ec[r]=e},remove:function(r){delete Ec[r]},getAll:function(){return Ec}};var k9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return bt(t)?t.map(function(n){return n.join(" ")}).join(""):t},e.prototype._getPath=function(){var t=this.attr(),n=t.x,a=t.y,i=t.r||t.radius,o=t.symbol||"circle",s;return Tr(o)?s=o:s=eE.get(o),s?s(n,a,i):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=eE,e}(aa),N9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){if(u==="path"&&bt(s))o.setAttribute("d",a._formatPath(s));else if(u==="startArrow"||u==="endArrow")if(s){var f=gn(s)?t.addArrow(i,ar[u]):t.getDefaultArrow(i,ar[u]);o.setAttribute(ar[u],"url(#"+f+")")}else o.removeAttribute(ar[u]);else ar[u]&&o.setAttribute(ar[u],s)})},e.prototype._formatPath=function(t){var n=t.map(function(a){return a.join(" ")}).join("");return~n.indexOf("NaN")?"":n},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var n=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=n?n.getPointAtLength(t*a):null;return i?{x:i.x,y:i.y}:null},e}(aa),O9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),L9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(t,n,a){r.prototype.onAttrChange.call(this,t,n,a),["points"].indexOf(t)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var t=this.attr().points,n=this.get("totalLength");return Zt(n)?(this.set("totalLength",wC.length(t)),this.get("totalLength")):n},e.prototype.getPoint=function(t){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return _e(a,function(s,u){t>=s[0]&&t<=s[1]&&(i=(t-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(t,function(u,f){t[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],t[f+1][0],t[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,n=[];return n.push([t[1][0],t[1][1]]),n.push([t[0][0],t[0][1]]),n},e.prototype.getEndTangent=function(){var t=this.attr().points,n=t.length-1,a=[];return a.push([t[n-1][0],t[n-1][1]]),a.push([t[n][0],t[n][1]]),a},e}(aa);function D9(r){var e=0,t=0,n=0,a=0;return bt(r)?r.length===1?e=t=n=a=r[0]:r.length===2?(e=n=r[0],t=a=r[1]):r.length===3?(e=r[0],t=a=r[1],n=r[2]):(e=r[0],t=r[1],n=r[2],a=r[3]):e=t=n=a=r,{r1:e,r2:t,r3:n,r4:a}}var P9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];_e(n||i,function(f,l){u.indexOf(l)!==-1&&!s?(o.setAttribute("d",a._assembleRect(i)),s=!0):u.indexOf(l)===-1&&ar[l]&&o.setAttribute(ar[l],f)})},e.prototype._assembleRect=function(t){var n=t.x,a=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+n+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=D9(s);bt(s)?s.length===1?u.r1=u.r2=u.r3=u.r4=s[0]:s.length===2?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):s.length===3?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var f=[["M "+(n+u.r1)+","+a],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return f.join(" ")},e}(aa),tE=.3,R9={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},F9={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},B9={left:"left",start:"left",center:"middle",right:"end",end:"end"},G9=function(r){jt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return e.prototype.getDefaultAttrs=function(){var t=r.prototype.getDefaultAttrs.call(this);return P(P({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,n){var a=this,i=this.attr(),o=this.get("el");this._setFont(),_e(n||i,function(s,u){u==="text"?a._setText(""+s):u==="matrix"&&s?Qf(a):ar[u]&&o.setAttribute(ar[u],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),n=this.attr(),a=n.textBaseline,i=n.textAlign,o=WA();o&&o.name==="firefox"?t.setAttribute("dominant-baseline",F9[a]||"alphabetic"):t.setAttribute("alignment-baseline",R9[a]||"baseline"),t.setAttribute("text-anchor",B9[i]||"left")},e.prototype._setText=function(t){var n=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,s=o===void 0?"bottom":o;if(!t)n.innerHTML="";else if(~t.indexOf(` -`)){var u=t.split(` -`),f=u.length-1,l="";_e(u,function(c,h){h===0?s==="alphabetic"?l+=''+c+"":s==="top"?l+=''+c+"":s==="middle"?l+=''+c+"":s==="bottom"?l+=''+c+"":s==="hanging"&&(l+=''+c+""):l+=''+c+""}),n.innerHTML=l}else n.innerHTML=t},e}(aa),z9=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,j9=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,U9=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function IT(r){var e=r.match(U9);if(!e)return"";var t="";return e.sort(function(n,a){return n=n.split(":"),a=a.split(":"),Number(n[0])-Number(a[0])}),_e(e,function(n){n=n.split(":"),t+=''}),t}function $9(r,e){var t=z9.exec(r),n=ud(fd(parseFloat(t[1])),Math.PI*2),a=t[2],i,o;n>=0&&n<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n`;t.innerHTML=n},r}(),rE=function(){function r(e,t){this.cfg={};var n=ra("marker"),a=Ji("marker_");n.setAttribute("id",a);var i=ra("path");i.setAttribute("stroke",e.stroke||"none"),i.setAttribute("fill",e.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=a;var o=e[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(t,i):(this.cfg=o,this._setMarker(e.lineWidth,i)),this}return r.prototype.match=function(){return!1},r.prototype._setDefaultPath=function(e,t){var n=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},r.prototype._setMarker=function(e,t){var n=this.el,a=this.cfg.path,i=this.cfg.d;bt(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),t.setAttribute("d",a),n.appendChild(t),i&&n.setAttribute("refX",""+i/e)},r.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},r}(),H9=function(){function r(e){this.type="clip",this.cfg={};var t=ra("clipPath");this.el=t,this.id=Ji("clip_"),t.id=this.id;var n=e.cfg.el;return t.appendChild(n),this.cfg=e,this}return r.prototype.match=function(){return!1},r.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},r}(),Z9=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,K9=function(){function r(e){this.cfg={};var t=ra("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var n=ra("image");t.appendChild(n);var a=Ji("pattern_");t.id=a,this.el=t,this.id=a,this.cfg=e;var i=Z9.exec(e),o=i[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function u(){t.setAttribute("width",""+s.width),t.setAttribute("height",""+s.height)}return s.complete?u():(s.onload=u,s.src=s.src),this}return r.prototype.match=function(e,t){return this.cfg===t},r}(),Q9=function(){function r(e){var t=ra("defs"),n=Ji("defs_");t.id=n,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return r.prototype.find=function(e,t){for(var n=this.children,a=null,i=0;i]*>/,tg={tr:document.createElement("tbody"),tbody:ff,thead:ff,tfoot:ff,td:wp,th:wp,"*":document.createElement("div")}}function rg(r){ff||J9();var e=kT.test(r)&&RegExp.$1;(!e||!(e in tg))&&(e="*");var t=tg[e];r=typeof r=="string"?r.replace(/(^\s*)|(\s*$)/g,""):r,t.innerHTML=""+r;var n=t.childNodes[0];return n&&t.contains(n)&&t.removeChild(n),n}function Yu(r,e){if(r)for(var t in e)e.hasOwnProperty(t)&&(r.style[t]=e[t]);return r}var NT={exports:{}},OT={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]},LT={exports:{}},eX=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")},tX=eX,rX=Array.prototype.concat,nX=Array.prototype.slice,nE=LT.exports=function(e){for(var t=[],n=0,a=e.length;n=4&&r[3]!==1&&(e=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+e+")"};$n.to.keyword=function(r){return PT[r.slice(0,3)]};function Vi(r,e,t){return Math.min(Math.max(e,r),t)}function Sc(r){var e=Math.round(r).toString(16).toUpperCase();return e.length<2?"0"+e:e}var iX=NT.exports,RT={exports:{}},zo=OT,FT={};for(var Ep in zo)zo.hasOwnProperty(Ep)&&(FT[zo[Ep]]=Ep);var mt=RT.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Tn in mt)if(mt.hasOwnProperty(Tn)){if(!("channels"in mt[Tn]))throw new Error("missing channels property: "+Tn);if(!("labels"in mt[Tn]))throw new Error("missing channel labels property: "+Tn);if(mt[Tn].labels.length!==mt[Tn].channels)throw new Error("channel and label counts mismatch: "+Tn);var oX=mt[Tn].channels,sX=mt[Tn].labels;delete mt[Tn].channels,delete mt[Tn].labels,Object.defineProperty(mt[Tn],"channels",{value:oX}),Object.defineProperty(mt[Tn],"labels",{value:sX})}mt.rgb.hsl=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.min(e,t,n),i=Math.max(e,t,n),o=i-a,s,u,f;return i===a?s=0:e===i?s=(t-n)/o:t===i?s=2+(n-e)/o:n===i&&(s=4+(e-t)/o),s=Math.min(s*60,360),s<0&&(s+=360),f=(a+i)/2,i===a?u=0:f<=.5?u=o/(i+a):u=o/(2-i-a),[s,u*100,f*100]};mt.rgb.hsv=function(r){var e,t,n,a,i,o=r[0]/255,s=r[1]/255,u=r[2]/255,f=Math.max(o,s,u),l=f-Math.min(o,s,u),c=function(h){return(f-h)/6/l+1/2};return l===0?a=i=0:(i=l/f,e=c(o),t=c(s),n=c(u),o===f?a=n-t:s===f?a=1/3+e-n:u===f&&(a=2/3+t-e),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,f*100]};mt.rgb.hwb=function(r){var e=r[0],t=r[1],n=r[2],a=mt.rgb.hsl(r)[0],i=1/255*Math.min(e,Math.min(t,n));return n=1-1/255*Math.max(e,Math.max(t,n)),[a,i*100,n*100]};mt.rgb.cmyk=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a,i,o,s;return s=Math.min(1-e,1-t,1-n),a=(1-e-s)/(1-s)||0,i=(1-t-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[a*100,i*100,o*100,s*100]};function uX(r,e){return Math.pow(r[0]-e[0],2)+Math.pow(r[1]-e[1],2)+Math.pow(r[2]-e[2],2)}mt.rgb.keyword=function(r){var e=FT[r];if(e)return e;var t=1/0,n;for(var a in zo)if(zo.hasOwnProperty(a)){var i=zo[a],o=uX(r,i);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=e*.4124+t*.3576+n*.1805,i=e*.2126+t*.7152+n*.0722,o=e*.0193+t*.1192+n*.9505;return[a*100,i*100,o*100]};mt.rgb.lab=function(r){var e=mt.rgb.xyz(r),t=e[0],n=e[1],a=e[2],i,o,s;return t/=95.047,n/=100,a/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,o=500*(t-n),s=200*(n-a),[i,o,s]};mt.hsl.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,a,i,o,s,u;if(t===0)return u=n*255,[u,u,u];n<.5?i=n*(1+t):i=n+t-n*t,a=2*n-i,s=[0,0,0];for(var f=0;f<3;f++)o=e+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(i-a)*6*o:2*o<1?u=i:3*o<2?u=a+(i-a)*(2/3-o)*6:u=a,s[f]=u*255;return s};mt.hsl.hsv=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,a=t,i=Math.max(n,.01),o,s;return n*=2,t*=n<=1?n:2-n,a*=i<=1?i:2-i,s=(n+t)/2,o=n===0?2*a/(i+a):2*t/(n+t),[e,o*100,s*100]};mt.hsv.rgb=function(r){var e=r[0]/60,t=r[1]/100,n=r[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-t),s=255*n*(1-t*i),u=255*n*(1-t*(1-i));switch(n*=255,a){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};mt.hsv.hsl=function(r){var e=r[0],t=r[1]/100,n=r[2]/100,a=Math.max(n,.01),i,o,s;return s=(2-t)*n,i=(2-t)*a,o=t*a,o/=i<=1?i:2-i,o=o||0,s/=2,[e,o*100,s*100]};mt.hwb.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100,a=t+n,i,o,s,u;a>1&&(t/=a,n/=a),i=Math.floor(6*e),o=1-n,s=6*e-i,i&1&&(s=1-s),u=t+s*(o-t);var f,l,c;switch(i){default:case 6:case 0:f=o,l=u,c=t;break;case 1:f=u,l=o,c=t;break;case 2:f=t,l=o,c=u;break;case 3:f=t,l=u,c=o;break;case 4:f=u,l=t,c=o;break;case 5:f=o,l=t,c=u;break}return[f*255,l*255,c*255]};mt.cmyk.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,a=r[3]/100,i,o,s;return i=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,t*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),[i*255,o*255,s*255]};mt.xyz.rgb=function(r){var e=r[0]/100,t=r[1]/100,n=r[2]/100,a,i,o;return a=e*3.2406+t*-1.5372+n*-.4986,i=e*-.9689+t*1.8758+n*.0415,o=e*.0557+t*-.204+n*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};mt.xyz.lab=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return e/=95.047,t/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=116*t-16,i=500*(e-t),o=200*(t-n),[a,i,o]};mt.lab.xyz=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;i=(e+16)/116,a=t/500+i,o=i-n/200;var s=Math.pow(i,3),u=Math.pow(a,3),f=Math.pow(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};mt.lab.lch=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return a=Math.atan2(n,t),i=a*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(t*t+n*n),[e,o,i]};mt.lch.lab=function(r){var e=r[0],t=r[1],n=r[2],a,i,o;return o=n/360*2*Math.PI,a=t*Math.cos(o),i=t*Math.sin(o),[e,a,i]};mt.rgb.ansi16=function(r){var e=r[0],t=r[1],n=r[2],a=1 in arguments?arguments[1]:mt.rgb.hsv(r)[2];if(a=Math.round(a/50),a===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(t/255)<<1|Math.round(e/255));return a===2&&(i+=60),i};mt.hsv.ansi16=function(r){return mt.rgb.ansi16(mt.hsv.rgb(r),r[2])};mt.rgb.ansi256=function(r){var e=r[0],t=r[1],n=r[2];if(e===t&&t===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5);return a};mt.ansi16.rgb=function(r){var e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var t=(~~(r>50)+1)*.5,n=(e&1)*t*255,a=(e>>1&1)*t*255,i=(e>>2&1)*t*255;return[n,a,i]};mt.ansi256.rgb=function(r){if(r>=232){var e=(r-232)*10+8;return[e,e,e]}r-=16;var t,n=Math.floor(r/36)/5*255,a=Math.floor((t=r%36)/6)/5*255,i=t%6/5*255;return[n,a,i]};mt.rgb.hex=function(r){var e=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255),t=e.toString(16).toUpperCase();return"000000".substring(t.length)+t};mt.hex.rgb=function(r){var e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var t=e[0];e[0].length===3&&(t=t.split("").map(function(s){return s+s}).join(""));var n=parseInt(t,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};mt.rgb.hcg=function(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,a=Math.max(Math.max(e,t),n),i=Math.min(Math.min(e,t),n),o=a-i,s,u;return o<1?s=i/(1-o):s=0,o<=0?u=0:a===e?u=(t-n)/o%6:a===t?u=2+(n-e)/o:u=4+(e-t)/o+4,u/=6,u%=1,[u*360,o*100,s*100]};mt.hsl.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1,a=0;return t<.5?n=2*e*t:n=2*e*(1-t),n<1&&(a=(t-.5*n)/(1-n)),[r[0],n*100,a*100]};mt.hsv.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=e*t,a=0;return n<1&&(a=(t-n)/(1-n)),[r[0],n*100,a*100]};mt.hcg.rgb=function(r){var e=r[0]/360,t=r[1]/100,n=r[2]/100;if(t===0)return[n*255,n*255,n*255];var a=[0,0,0],i=e%1*6,o=i%1,s=1-o,u=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return u=(1-t)*n,[(t*a[0]+u)*255,(t*a[1]+u)*255,(t*a[2]+u)*255]};mt.hcg.hsv=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e),a=0;return n>0&&(a=e/n),[r[0],a*100,n*100]};mt.hcg.hsl=function(r){var e=r[1]/100,t=r[2]/100,n=t*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[r[0],a*100,n*100]};mt.hcg.hwb=function(r){var e=r[1]/100,t=r[2]/100,n=e+t*(1-e);return[r[0],(n-e)*100,(1-n)*100]};mt.hwb.hcg=function(r){var e=r[1]/100,t=r[2]/100,n=1-t,a=n-e,i=0;return a<1&&(i=(n-a)/(1-a)),[r[0],a*100,i*100]};mt.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};mt.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};mt.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};mt.gray.hsl=mt.gray.hsv=function(r){return[0,0,r[0]]};mt.gray.hwb=function(r){return[0,100,r[0]]};mt.gray.cmyk=function(r){return[0,0,0,r[0]]};mt.gray.lab=function(r){return[r[0],0,0]};mt.gray.hex=function(r){var e=Math.round(r[0]/100*255)&255,t=(e<<16)+(e<<8)+e,n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};mt.rgb.gray=function(r){var e=(r[0]+r[1]+r[2])/3;return[e/255*100]};var BT=RT.exports,Fh=BT;function fX(){for(var r={},e=Object.keys(Fh),t=e.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function yX(r){var e=function(t){if(t==null)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=r(t);if(typeof n=="object")for(var a=n.length,i=0;i>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(r);"alpha"in r&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);var s=o.sort().join("");if(!(s in ag))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=ag[s];var u=zn[this.model].labels,f=[];for(t=0;tt?(e+.05)/(t+.05):(t+.05)/(e+.05)},level:function(r){var e=this.contrast(r);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var r=this.rgb().color,e=(r[0]*299+r[1]*587+r[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),e=0;e<3;e++)r.color[e]=255-r.color[e];return r},lighten:function(r){var e=this.hsl();return e.color[2]+=e.color[2]*r,e},darken:function(r){var e=this.hsl();return e.color[2]-=e.color[2]*r,e},saturate:function(r){var e=this.hsl();return e.color[1]+=e.color[1]*r,e},desaturate:function(r){var e=this.hsl();return e.color[1]-=e.color[1]*r,e},whiten:function(r){var e=this.hwb();return e.color[1]+=e.color[1]*r,e},blacken:function(r){var e=this.hwb();return e.color[2]+=e.color[2]*r,e},grayscale:function(){var r=this.rgb().color,e=r[0]*.3+r[1]*.59+r[2]*.11;return pn.rgb(e,e,e)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var e=this.hsl(),t=e.color[0];return t=(t+r)%360,t=t<0?360+t:t,e.color[0]=t,e},mix:function(r,e){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);var t=r.rgb(),n=this.rgb(),a=e===void 0?.5:e,i=2*a-1,o=t.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,u=1-s;return pn.rgb(s*t.red()+u*n.red(),s*t.green()+u*n.green(),s*t.blue()+u*n.blue(),t.alpha()*a+n.alpha()*(1-a))}};Object.keys(zn).forEach(function(r){if(GT.indexOf(r)===-1){var e=zn[r].channels;pn.prototype[r]=function(){if(this.model===r)return new pn(this);if(arguments.length)return new pn(arguments,r);var t=typeof arguments[e]=="number"?e:this.valpha;return new pn(xX(zn[this.model][r].raw(this.color)).concat(t),r)},pn[r]=function(t){return typeof t=="number"&&(t=ig(Uy.call(arguments),e)),new pn(t,r)}}});function bX(r,e){return Number(r.toFixed(e))}function wX(r){return function(e){return bX(e,r)}}function Lr(r,e,t){return r=Array.isArray(r)?r:[r],r.forEach(function(n){(Bh[n]||(Bh[n]=[]))[e]=t}),r=r[0],function(n){var a;return arguments.length?(t&&(n=t(n)),a=this[r](),a.color[e]=n,a):(a=this[r]().color[e],t&&(a=t(a)),a)}}function qr(r){return function(e){return Math.max(0,Math.min(r,e))}}function xX(r){return Array.isArray(r)?r:[r]}function ig(r,e){for(var t=0;t=0,i=!t&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(LX,arguments)},brighten:function(){return this._applyModification(DX,arguments)},darken:function(){return this._applyModification(PX,arguments)},desaturate:function(){return this._applyModification(kX,arguments)},saturate:function(){return this._applyModification(NX,arguments)},greyscale:function(){return this._applyModification(OX,arguments)},spin:function(){return this._applyModification(RX,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(GX,arguments)},complement:function(){return this._applyCombination(FX,arguments)},monochromatic:function(){return this._applyCombination(zX,arguments)},splitcomplement:function(){return this._applyCombination(BX,arguments)},triad:function(){return this._applyCombination(uE,[3])},tetrad:function(){return this._applyCombination(uE,[4])}};wt.fromRatio=function(r,e){if(Gh(r)=="object"){var t={};for(var n in r)r.hasOwnProperty(n)&&(n==="a"?t[n]=r[n]:t[n]=cf(r[n]));r=t}return wt(r,e)};function MX(r){var e={r:0,g:0,b:0},t=1,n=null,a=null,i=null,o=!1,s=!1;return typeof r=="string"&&(r=WX(r)),Gh(r)=="object"&&(oi(r.r)&&oi(r.g)&&oi(r.b)?(e=AX(r.r,r.g,r.b),o=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):oi(r.h)&&oi(r.s)&&oi(r.v)?(n=cf(r.s),a=cf(r.v),e=TX(r.h,n,a),o=!0,s="hsv"):oi(r.h)&&oi(r.s)&&oi(r.l)&&(n=cf(r.s),i=cf(r.l),e=CX(r.h,n,i),o=!0,s="hsl"),r.hasOwnProperty("a")&&(t=r.a)),t=zT(t),{ok:o,format:r.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}function AX(r,e,t){return{r:Er(r,255)*255,g:Er(e,255)*255,b:Er(t,255)*255}}function aE(r,e,t){r=Er(r,255),e=Er(e,255),t=Er(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case r:i=(e-t)/u+(e1&&(c-=1),c<1/6?f+(l-f)*6*c:c<1/2?l:c<2/3?f+(l-f)*(2/3-c)*6:f}if(e===0)n=a=i=t;else{var s=t<.5?t*(1+e):t+e-t*e,u=2*t-s;n=o(u,s,r+1/3),a=o(u,s,r),i=o(u,s,r-1/3)}return{r:n*255,g:a*255,b:i*255}}function iE(r,e,t){r=Er(r,255),e=Er(e,255),t=Er(t,255);var n=Math.max(r,e,t),a=Math.min(r,e,t),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case r:i=(e-t)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(wt(n));return i}function zX(r,e){e=e||6;for(var t=wt(r).toHsv(),n=t.h,a=t.s,i=t.v,o=[],s=1/e;e--;)o.push(wt({h:n,s:a,v:i})),i=(i+s)%1;return o}wt.mix=function(r,e,t){t=t===0?0:t||50;var n=wt(r).toRgb(),a=wt(e).toRgb(),i=t/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return wt(o)};wt.readability=function(r,e){var t=wt(r),n=wt(e);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)};wt.isReadable=function(r,e,t){var n=wt.readability(r,e),a,i;switch(i=!1,a=VX(t),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};wt.mostReadable=function(r,e,t){var n=null,a=0,i,o,s,u;t=t||{},o=t.includeFallbackColors,s=t.level,u=t.size;for(var f=0;fa&&(a=i,n=wt(e[f]));return wt.isReadable(r,n,{level:s,size:u})||!o?n:(t.includeFallbackColors=!1,wt.mostReadable(r,["#fff","#000"],t))};var og=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},jX=wt.hexNames=UX(og);function UX(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}function zT(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Er(r,e){$X(r)&&(r="100%");var t=XX(r);return r=Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),Math.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function Id(r){return Math.min(1,Math.max(0,r))}function Fn(r){return parseInt(r,16)}function $X(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1}function XX(r){return typeof r=="string"&&r.indexOf("%")!=-1}function ma(r){return r.length==1?"0"+r:""+r}function cf(r){return r<=1&&(r=r*100+"%"),r}function jT(r){return Math.round(parseFloat(r)*255).toString(16)}function fE(r){return Fn(r)/255}var ha=function(){var r="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",t="(?:"+e+")|(?:"+r+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",a="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oi(r){return!!ha.CSS_UNIT.exec(r)}function WX(r){r=r.replace(_X,"").replace(SX,"").toLowerCase();var e=!1;if(og[r])r=og[r],e=!0;else if(r=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=ha.rgb.exec(r))?{r:t[1],g:t[2],b:t[3]}:(t=ha.rgba.exec(r))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ha.hsl.exec(r))?{h:t[1],s:t[2],l:t[3]}:(t=ha.hsla.exec(r))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ha.hsv.exec(r))?{h:t[1],s:t[2],v:t[3]}:(t=ha.hsva.exec(r))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ha.hex8.exec(r))?{r:Fn(t[1]),g:Fn(t[2]),b:Fn(t[3]),a:fE(t[4]),format:e?"name":"hex8"}:(t=ha.hex6.exec(r))?{r:Fn(t[1]),g:Fn(t[2]),b:Fn(t[3]),format:e?"name":"hex"}:(t=ha.hex4.exec(r))?{r:Fn(t[1]+""+t[1]),g:Fn(t[2]+""+t[2]),b:Fn(t[3]+""+t[3]),a:fE(t[4]+""+t[4]),format:e?"name":"hex8"}:(t=ha.hex3.exec(r))?{r:Fn(t[1]+""+t[1]),g:Fn(t[2]+""+t[2]),b:Fn(t[3]+""+t[3]),format:e?"name":"hex"}:!1}function VX(r){var e,t;return r=r||{level:"AA",size:"small"},e=(r.level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:e,size:t}}var Mc=2,lE=.16,YX=.05,qX=.05,HX=.15,UT=5,$T=4,ZX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function cE(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-Mc*e:Math.round(r.h)+Mc*e:n=t?Math.round(r.h)+Mc*e:Math.round(r.h)-Mc*e,n<0?n+=360:n>=360&&(n-=360),n}function hE(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-lE*e:e===$T?n=r.s+lE:n=r.s+YX*e,n>1&&(n=1),t&&e===UT&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function dE(r,e,t){var n;return t?n=r.v+qX*e:n=r.v-HX*e,n>1&&(n=1),Number(n.toFixed(2))}function zh(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=wt(r),a=UT;a>0;a-=1){var i=n.toHsv(),o=wt({h:cE(i,a,!0),s:hE(i,a,!0),v:dE(i,a,!0)}).toHexString();t.push(o)}t.push(n.toHexString());for(var s=1;s<=$T;s+=1){var u=n.toHsv(),f=wt({h:cE(u,s),s:hE(u,s),v:dE(u,s)}).toHexString();t.push(f)}return e.theme==="dark"?ZX.map(function(l){var c=l.index,h=l.opacity,d=wt.mix(e.backgroundColor||"#141414",t[c],h*100).toHexString();return d}):t}var _p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Sp={},Mp={};Object.keys(_p).forEach(function(r){Sp[r]=zh(_p[r]),Sp[r].primary=Sp[r][5],Mp[r]=zh(_p[r],{theme:"dark",backgroundColor:"#141414"}),Mp[r].primary=Mp[r][5]});var Zr=function(e,t,n){var a=bf(e),i=bf(t);return bf([(1-n)*a.red()+n*i.red(),(1-n)*a.green()+n*i.green(),(1-n)*a.blue()+n*i.blue()]).rgb()},KX=function(e,t,n){t===void 0&&(t="#fff");var a=Zr(t,e,.05).rgb().toString(),i=Zr(t,e,.1).rgb().toString(),o=Zr(t,e,.2).rgb().toString(),s=Zr(t,e,.4).rgb().toString(),u=Zr(t,n,.02).rgb().toString(),f=Zr(t,n,.05).rgb().toString(),l=Zr(t,n,.1).rgb().toString(),c=Zr(t,n,.2).rgb().toString(),h=Zr(t,n,.3).rgb().toString(),d=zh(e,{theme:"default",backgroundColor:t}),v=bf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:t,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:h,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:u,comboActiveStroke:e,comboActiveFill:a,comboInactiveStroke:h,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:f}},QX=function(e,t,n){t===void 0&&(t="#fff");var a=Zr(t,e,.2).rgb().toString(),i=Zr(t,e,.3).rgb().toString(),o=Zr(t,e,.6).rgb().toString(),s=Zr(t,e,.8).rgb().toString(),u=Zr(t,n,.2).rgb().toString(),f=Zr(t,n,.25).rgb().toString(),l=Zr(t,n,.3).rgb().toString(),c=Zr(t,n,.4).rgb().toString(),h=Zr(t,n,.5).rgb().toString(),d=zh(e,{theme:"dark",backgroundColor:t}),v=bf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:a,highlightStroke:e,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:n,edgeActiveStroke:e,edgeInactiveStroke:n,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:f,comboActiveStroke:e,comboActiveFill:u,comboInactiveStroke:c,comboInactiveFill:f,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:f,comboDisableStroke:c,comboDisableFill:u}},$y=function(e,t,n,a){return t===void 0&&(t="#fff"),n===void 0&&(n="default"),n==="default"?KX(e,t,"rgb(150, 150, 150)"):QX(e,t,"#777")},JX=function(e,t,n,a){t===void 0&&(t="#fff"),n===void 0&&(n="default");var i=[];return e.forEach(function(o){i.push($y(o,t,n))}),i};const e7=Object.freeze(Object.defineProperty({__proto__:null,getColorSetsBySubjectColors:JX,getColorsWithSubjectColor:$y,mixColor:Zr},Symbol.toStringTag,{value:"Module"}));var t7="rgb(95, 149, 255)",r7="rgb(255, 255, 255)",Ht=$y(t7,r7);const wf={defaultNode:{style:{stroke:Ht.mainStroke,fill:Ht.mainFill},color:Ht.mainStroke,linkPoints:{fill:Ht.activeFill,stroke:Ht.activeStroke}},nodeStateStyles:{active:{fill:Ht.activeFill,stroke:Ht.activeStroke,shadowColor:Ht.mainStroke},selected:{fill:Ht.selectedFill,stroke:Ht.selectedStroke,shadowColor:Ht.selectedStroke},highlight:{fill:Ht.highlightFill,stroke:Ht.highlightStroke},inactive:{fill:Ht.inactiveFill,stroke:Ht.inactiveStroke},disable:{fill:Ht.disableFill,stroke:Ht.disableStroke}},defaultEdge:{style:{stroke:Ht.edgeMainStroke},color:Ht.edgeMainStroke},edgeStateStyles:{active:{stroke:Ht.edgeActiveStroke},selected:{stroke:Ht.edgeSelectedStroke,shadowColor:Ht.edgeSelectedStroke},highlight:{stroke:Ht.edgeHighlightStroke},inactive:{stroke:Ht.edgeInactiveStroke},disable:{stroke:Ht.edgeDisableStroke}},defaultCombo:{style:{fill:Ht.comboMainFill,stroke:Ht.comboMainStroke},color:Ht.comboMainStroke},comboStateStyles:{active:{stroke:Ht.comboActiveStroke,fill:Ht.comboActiveFill},selected:{stroke:Ht.comboSelectedStroke,fill:Ht.comboSelectedFill,shadowColor:Ht.comboSelectedStroke},highlight:{stroke:Ht.comboHighlightStroke,fill:Ht.comboHighlightFill},inactive:{stroke:Ht.comboInactiveStroke,fill:Ht.comboInactiveFill},disable:{stroke:Ht.comboDisableStroke,fill:Ht.comboDisableFill}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var n7=function(e){var t=e.clone();return XT(e,t),t},XT=function(e,t){var n;e.isGroup()&&t.isGroup()&&((n=e.get("children"))===null||n===void 0||n.forEach(function(s,u){var f=t.get("children")[u];XT(s,f)}));var a=e.get("type"),i=t.get("type");if(!(a!=="image"||i!=="image")){var o=e.get("clipShape");o&&t.setClip({type:o.get("type"),attrs:o.attr()})}},a7=Za.cloneEvent,i7=Za.isViewportChanged,o7=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=t,n.destroyed=!1,n.initEvents(),n}return e.prototype.initEvents=function(){var t=this,n=t.graph,a=t.extendEvents,i=a===void 0?[]:a,o=n.get("canvas"),s=o.get("el"),u=Fs(this,"onCanvasEvents"),f=Fs(this,"onExtendEvents"),l=Fs(this,"onWheelEvent");o.off("*").on("*",u),this.canvasHandler=u,i.push(_c(s,"wheel",l)),typeof window<"u"&&(i.push(_c(window,"keydown",f)),i.push(_c(window,"keyup",f)),i.push(_c(window,"focus",f))),this.resetHandler&&n.off("afterchangedata",this.resetHandler),this.resetHandler=Fs(this,"resetStatus"),n.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this,a=this.graph,i=a.get("canvas"),o=t.target,s=t.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},t,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},t,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return;break}t.canvasX=t.x,t.canvasY=t.y;var u={x:t.canvasX,y:t.canvasY},f=a.get("group"),l=f.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),i7(l)&&(u=a.getPointByClient(t.clientX,t.clientY)),t.x=u.x,t.y=u.y,t.currentTarget=a,o===i){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(t,"canvas"),t.target=i,t.item=null,a.emit(s,t),a.emit("canvas:".concat(s),t);return}var c=e.getItemRoot(o);if(!c){a.emit(s,t);return}var h=c.get("item");if(!h.destroyed){var d=h.getType();if(t.target=o,t.item=h,t.canvasX===t.x&&t.canvasY===t.y){var v=a.getCanvasByPoint(t.x,t.y);t.canvasX=v.x,t.canvasY=v.y}t.name&&!t.name.includes(":")?(a.emit("".concat(d,":").concat(s),t),a.emit(s,t)):t.name&&a.emit(t.name,t),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(t,d)}},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){Zt(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,n){var a=this,i=a.graph,o=a.preItem,s=i.get("canvas"),u=t.target===s?null:t.item;t=a7(t),o&&o!==u&&!o.destroyed&&(t.item=o,this.emitCustomEvent(o.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",t)),u&&o!==u&&(t.item=u,this.emitCustomEvent(n,"mouseenter",t),this.dragging&&this.emitCustomEvent(n,"dragenter",t)),this.preItem=u},e.prototype.emitCustomEvent=function(t,n,a){a.type=n,this.graph.emit("".concat(t,":").concat(n),a)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var t=this,n=t.graph,a=t.canvasHandler,i=t.extendEvents,o=n.get("canvas");o.off("*",a),_e(i,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(EU),Kt={},gi={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Base=void 0;var s7=function(){function r(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return r.prototype.layout=function(e){return this.init(e),this.execute(!0)},r.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},r.prototype.execute=function(e){},r.prototype.executeWithWorker=function(){},r.prototype.getDefaultCfg=function(){return{}},r.prototype.updateCfg=function(e){e&&Object.assign(this,e)},r.prototype.getType=function(){return"base"},r.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},r}();Rr.Base=s7;var Ap={},ru={};Object.defineProperty(ru,"__esModule",{value:!0});ru.camelize=ru.isString=void 0;var u7=function(r){return typeof r=="string"};ru.isString=u7;var f7=function(r){var e=Object.create(null);return function(t){var n=e[t];return n||(e[t]=r(t))}},l7=/-(\w)/g;ru.camelize=f7(function(r){return r.replace(l7,function(e,t){return t?t.toUpperCase():""})});var el={};Object.defineProperty(el,"__esModule",{value:!0});el.isArray=void 0;el.isArray=Array.isArray;var kd={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.toNumber=r.isNaN=r.isNumber=void 0;var e=function(a){return typeof a=="number"};r.isNumber=e;var t=function(a){return Number.isNaN(Number(a))};r.isNaN=t;var n=function(a){var i=parseFloat(a);return(0,r.isNaN)(i)?a:i};r.toNumber=n})(kd);var Nd={},Xy={};(function(r){var e=me&&me.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;ob[x][_]+b[_][E]&&(b[x][E]=b[x][_]+b[_][E]);return b};r.floydWarshall=s;var u=function(m,b){var w=m.nodes,x=m.edges,E=[],_={};if(!w)throw new Error("invalid nodes data!");return w&&w.forEach(function(S,A){_[S.id]=A;var M=[];E.push(M)}),x==null||x.forEach(function(S){var A=(0,r.getEdgeTerminal)(S,"source"),M=(0,r.getEdgeTerminal)(S,"target"),C=_[A],I=_[M];C===void 0||I===void 0||(E[C][I]=1,b||(E[I][C]=1))}),E};r.getAdjMatrix=u;var f=function(m,b){var w=[];return m.forEach(function(x){var E=[];x.forEach(function(_){E.push(_*b)}),w.push(E)}),w};r.scaleMatrix=f;var l=function(m,b){if(m&&m.children){for(var w=m.children.length-1;w>=0;w--)if(!l(m.children[w],b))return}return!!b(m)},c=function(m,b){typeof b=="function"&&l(m,b)};r.traverseTreeUp=c;var h=function(m){var b=1/0,w=1/0,x=-1/0,E=-1/0;return m.forEach(function(_){var S=_.size;(0,e.isArray)(S)?S.length===1&&(S=[S[0],S[0]]):(0,t.isNumber)(S)?S=[S,S]:(S===void 0||isNaN(S))&&(S=[30,30]);var A=[S[0]/2,S[1]/2],M=_.x-A[0],C=_.x+A[0],I=_.y-A[1],k=_.y+A[1];b>M&&(b=M),w>I&&(w=I),xf.size[1]?f.size[0]:f.size[1]:(0,e.isObject)(f.size)?f.size.width>f.size.height?f.size.width:f.size.height:f.size:o}:(0,r.isFunction)(s)?s:(0,t.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(u){var f=Math.max.apply(Math,s);return isNaN(f)?o:f}return s}:(0,e.isObject)(s)?function(){if(u){var f=Math.max(s.width,s.height);return isNaN(f)?o:f}return[s.width,s.height]}:function(){return o}};r.getFuncByUnknownType=i}(Cp)),Cp}var pE;function Ir(){return pE||(pE=1,function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(ru,r),t(el,r),t(kd,r),t(Nd,r),t(Xy,r),t(c7(),r)}(Ap)),Ap}var h7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.getLayoutByName=gi.unRegisterLayout=gi.registerLayout=void 0;var d7=Rr,v7=Ir(),Ui=new Map,p7=function(r,e){if(Ui.get(r)&&console.warn("The layout with the name ".concat(r," exists already, it will be overridden")),(0,v7.isObject)(e)){var t=function(n){h7(a,n);function a(i){var o=this,s;o=n.call(this)||this;var u=o,f={},l=Object.assign({},u.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(f,l,e,i),Object.keys(f).forEach(function(c){var h=f[c];u[c]=h}),o}return a}(d7.Base);Ui.set(r,t)}else Ui.set(r,e);return Ui.get(r)};gi.registerLayout=p7;var g7=function(r){Ui.has(r)&&Ui.delete(r)};gi.unRegisterLayout=g7;var y7=function(r){return Ui.has(r)?Ui.get(r):null};gi.getLayoutByName=y7;var Tp={},tl={},m7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tl,"__esModule",{value:!0});tl.GridLayout=void 0;var ws=Ir(),b7=Rr,w7=function(r){m7(e,r);function e(t){var n=r.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,n=t.nodes,a=t.edges,i=t.begin,o=n.length;if(o===0)return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a};if(o===1)return n[0].x=i[0],n[0].y=i[1],t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a};var s=t.sortBy,u=t.width,f=t.height,l=t.condense,c=t.preventOverlapPadding,h=t.preventOverlap,d=t.nodeSpacing,v=t.nodeSize,p=[];n.forEach(function(I){p.push(I)});var g={};if(p.forEach(function(I,k){g[I.id]=k}),(s==="degree"||!(0,ws.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,ws.isNaN)(n[0].degree))){var y=(0,ws.getDegree)(p.length,g,a);p.forEach(function(I,k){I.degree=y[k].all})}p.sort(function(I,k){return k[s]-I[s]}),!u&&typeof window<"u"&&(u=window.innerWidth),!f&&typeof window<"u"&&(f=window.innerHeight);var m=t.rows,b=t.cols!=null?t.cols:t.columns;if(t.cells=o,m!=null&&b!=null?(t.rows=m,t.cols=b):m!=null&&b==null?(t.rows=m,t.cols=Math.ceil(t.cells/t.rows)):m==null&&b!=null?(t.cols=b,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.rows=Math.max(t.rows,1),t.cols=Math.max(t.cols,1),t.cols*t.rows>t.cells){var w=t.small(),x=t.large();(w-1)*x>=t.cells?t.small(w-1):(x-1)*w>=t.cells&&t.large(x-1)}else for(;t.cols*t.rows=t.cells?t.large(x+1):t.small(w+1)}if(t.cellWidth=u/t.cols,t.cellHeight=f/t.rows,l&&(t.cellWidth=0,t.cellHeight=0),h||d){var E=(0,ws.getFuncByUnknownType)(10,d),_=(0,ws.getFuncByUnknownType)(30,v,!1);p.forEach(function(I){(!I.x||!I.y)&&(I.x=0,I.y=0);var k=_(I)||30,O,B;(0,ws.isArray)(k)?(O=k[0],B=k[1]):(O=k,B=k);var L=E!==void 0?E(I):c,z=O+L,X=B+L;t.cellWidth=Math.max(t.cellWidth,z),t.cellHeight=Math.max(t.cellHeight,X)})}t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var S=0;S=n&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var n=this,a=n.begin,i=n.cellWidth,o=n.cellHeight,s,u,f=n.id2manPos[t.id];if(f)s=f.col*i+i/2+a[0],u=f.row*o+o/2+a[1];else{for(;n.used(n.row,n.col);)n.moveToNextCell();s=n.col*i+i/2+a[0],u=n.row*o+o/2+a[1],n.use(n.row,n.col),n.moveToNextCell()}t.x=s,t.y=u},e.prototype.getType=function(){return"grid"},e}(b7.Base);tl.GridLayout=w7;var rl={},x7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rl,"__esModule",{value:!0});rl.RandomLayout=void 0;var E7=Rr,_7=function(r){x7(e,r);function e(t){var n=r.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,n=t.nodes,a=.9,i=t.center;return!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),n&&n.forEach(function(o){o.x=(Math.random()-.5)*a*t.width+i[0],o.y=(Math.random()-.5)*a*t.height+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(E7.Base);rl.RandomLayout=_7;var nl={},S7=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nl,"__esModule",{value:!0});nl.GForceLayout=void 0;var M7=Rr,yn=Ir(),Ip=function(r,e){var t;return r?(0,yn.isNumber)(r)?t=function(n){return r}:t=r:t=function(n){return e},t},A7=function(r){S7(e,r);function e(t){var n=r.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t,n,a=this,i=a.nodes;if(a.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(a.timeInterval),!i||i.length===0){(t=a.onLayoutEnd)===null||t===void 0||t.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var o=a.center;if(i.length===1){i[0].x=o[0],i[0].y=o[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var s={},u={};i.forEach(function(v,p){(0,yn.isNumber)(v.x)||(v.x=Math.random()*a.width),(0,yn.isNumber)(v.y)||(v.y=Math.random()*a.height),s[v.id]=v,u[v.id]=p}),a.nodeMap=s,a.nodeIdxMap=u,a.linkDistance=Ip(a.linkDistance,1),a.nodeStrength=Ip(a.nodeStrength,1),a.edgeStrength=Ip(a.edgeStrength,1);var f=a.nodeSize,l;if(a.preventOverlap){var c=a.nodeSpacing,h;(0,yn.isNumber)(c)?h=function(){return c}:(0,yn.isFunction)(c)?h=c:h=function(){return 0},f?(0,yn.isArray)(f)?l=function(v){return Math.max(f[0],f[1])+h(v)}:l=function(v){return f+h(v)}:l=function(v){return v.size?(0,yn.isArray)(v.size)?Math.max(v.size[0],v.size[1])+h(v):(0,yn.isObject)(v.size)?Math.max(v.size.width,v.size.height)+h(v):v.size+h(v):10+h(v)}}a.nodeSize=l;var d=a.edges;a.degrees=(0,yn.getDegree)(i.length,a.nodeIdxMap,d),a.getMass||(a.getMass=function(v){var p=v.mass||a.degrees[a.nodeIdxMap[v.id]].all||1;return p}),a.run()},e.prototype.run=function(){var t,n=this,a=n.maxIteration,i=n.nodes,o=n.workerEnabled,s=n.minMovement,u=n.animate;if(i)if(o||!u){for(var f=0;f"u")return;var c=0;this.timeInterval=window.setInterval(function(){var h,d;if(i){var v=n.runOneStep(c)||[];n.reachMoveThreshold(i,v,s)&&((h=n.onLayoutEnd)===null||h===void 0||h.call(n),window.clearInterval(n.timeInterval)),c++,c>=a&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(t,n,a){var i=0;return t.forEach(function(o,s){var u=o.x-n[s].x,f=o.y-n[s].y;i+=Math.sqrt(u*u+f*f)}),i/=t.length,i=y)){var m=d.x-g.x,b=d.y-g.y;m===0&&b===0&&(m=Math.random()*.01,b=Math.random()*.01);var w=m*m+b*b,x=Math.sqrt(w),E=(x+.1)*s,_=m/x,S=b/x,A=(c(d)+c(g))*.5*o/(E*E),M=i?i(g):1;if(t[2*v]+=_*A,t[2*v+1]+=S*A,t[2*y]-=_*A,t[2*y+1]-=S*A,u&&(h(d)+h(g))/2>x){var C=l*(c(d)+c(g))*.5/w;t[2*v]+=_*C/p,t[2*v+1]+=S*C/p,t[2*y]-=_*C/M,t[2*y+1]-=S*C/M}}})})},e.prototype.calAttractive=function(t,n){var a=this,i=a.nodeMap,o=a.nodeIdxMap,s=a.linkDistance,u=a.edgeStrength,f=a.nodeSize,l=a.getMass;n.forEach(function(c,h){var d=(0,yn.getEdgeTerminal)(c,"source"),v=(0,yn.getEdgeTerminal)(c,"target"),p=i[d],g=i[v],y=g.x-p.x,m=g.y-p.y;y===0&&m===0&&(y=Math.random()*.01,m=Math.random()*.01);var b=Math.sqrt(y*y+m*m),w=y/b,x=m/b,E=s(c,p,g)||1+(f(p)+f(g)||0)/2,_=E-b,S=_*u(c),A=o[d],M=o[v],C=l?l(p):1,I=l?l(g):1;t[2*A]-=w*S/C,t[2*A+1]-=x*S/C,t[2*M]+=w*S/I,t[2*M+1]+=x*S/I})},e.prototype.calGravity=function(t,n){for(var a=this,i=a.center,o=a.gravity,s=a.degrees,u=n.length,f=0;fo.maxSpeed){var d=o.maxSpeed/h;l=d*l,c=d*c}n[2*f]=l,n[2*f+1]=c})},e.prototype.updatePosition=function(t,n,a){a.forEach(function(i,o){if((0,yn.isNumber)(i.fx)&&(0,yn.isNumber)(i.fy)){i.x=i.fx,i.y=i.fy;return}var s=t[2*o]*n,u=t[2*o+1]*n;i.x+=s,i.y+=u})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(M7.Base);nl.GForceLayout=A7;var al={},Od={};function C7(r){const e=+this._x.call(null,r),t=+this._y.call(null,r);return WT(this.cover(e,t),e,t,r)}function WT(r,e,t,n){if(isNaN(e)||isNaN(t))return r;var a,i=r._root,o={data:n},s=r._x0,u=r._y0,f=r._x1,l=r._y1,c,h,d,v,p,g,y,m;if(!i)return r._root=o,r;for(;i.length;)if((p=e>=(c=(s+f)/2))?s=c:f=c,(g=t>=(h=(u+l)/2))?u=h:l=h,a=i,!(i=i[y=g<<1|p]))return a[y]=o,r;if(d=+r._x.call(null,i.data),v=+r._y.call(null,i.data),e===d&&t===v)return o.next=i,a?a[y]=o:r._root=o,r;do a=a?a[y]=new Array(4):r._root=new Array(4),(p=e>=(c=(s+f)/2))?s=c:f=c,(g=t>=(h=(u+l)/2))?u=h:l=h;while((y=g<<1|p)===(m=(v>=h)<<1|d>=c));return a[m]=i,a[y]=o,r}function T7(r){var e,t,n=r.length,a,i,o=new Array(n),s=new Array(n),u=1/0,f=1/0,l=-1/0,c=-1/0;for(t=0;tl&&(l=a),ic&&(c=i));if(u>l||f>c)return this;for(this.cover(u,f).cover(l,c),t=0;tr||r>=a||n>e||e>=i;)switch(f=(el||(s=v.y0)>c||(u=v.x1)=y)<<1|r>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-p],h[h.length-1-p]=v)}else{var m=r-+this._x.call(null,d.data),b=e-+this._y.call(null,d.data),w=m*m+b*b;if(w=(h=(o+u)/2))?o=h:u=h,(p=c>=(d=(s+f)/2))?s=d:f=d,e=t,!(t=t[g=p<<1|v]))return this;if(!t.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(n=e,y=g)}for(;t.data!==r;)if(a=t,!(t=t.next))return this;return(i=t.next)&&delete t.next,a?(i?a.next=i:delete a.next,this):e?(i?e[g]=i:delete e[g],(t=e[0]||e[1]||e[2]||e[3])&&t===(e[3]||e[2]||e[1]||e[0])&&!t.length&&(n?n[y]=t:this._root=t),this):(this._root=i,this)}function D7(r){for(var e=0,t=r.length;e1&&(S=(0,Hr.getAvgNodePosition)(M))}else S=void 0;return{x:S==null?void 0:S.x,y:S==null?void 0:S.y}}}}if(a){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(b,w){return b[i]}))).filter(function(b){return b!==void 0}),v={};d.forEach(function(b){var w=o.filter(function(x){return x[i]===b}).map(function(x){return s[x.id]});v[b]=(0,Hr.getAvgNodePosition)(w)}),l={single:function(b){return f(b)},leaf:function(b){return f(b)},others:function(b){return f(b)},center:function(b,w,x){var E=v[b[i]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}this.centripetalOptions=da(da({},this.centripetalOptions),l);var p=this.centripetalOptions,g=p.leaf,y=p.single,m=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),y&&typeof y!="function"&&(this.centripetalOptions.single=function(){return y}),m&&typeof m!="function"&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(t){t&&Object.assign(this,t)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var t=this;t.stop();var n=t.nodes,a=t.edges,i=t.defSpringLen;if(t.judgingDistance=0,!n||n.length===0){t.onLayoutEnd([]);return}!t.width&&typeof window<"u"&&(t.width=window.innerWidth),!t.height&&typeof window<"u"&&(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var o=t.center;if(n.length===1){n[0].x=o[0],n[0].y=o[1],t.onLayoutEnd([da({},n[0])]);return}t.degreesMap=(0,Hr.getDegreeMap)(n,a),t.propsGetMass?t.getMass=t.propsGetMass:t.getMass=function(d){var v=1;(0,Hr.isNumber)(d.mass)&&(v=d.mass);var p=t.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=t.nodeSize,u;if(t.preventOverlap){var f=t.nodeSpacing,l;(0,Hr.isNumber)(f)?l=function(){return f}:(0,Hr.isFunction)(f)?l=f:l=function(){return 0},s?(0,Hr.isArray)(s)?u=function(d){return Math.max(s[0],s[1])+l(d)}:u=function(d){return s+l(d)}:u=function(d){return d.size?(0,Hr.isArray)(d.size)?Math.max(d.size[0],d.size[1])+l(d):(0,Hr.isObject)(d.size)?Math.max(d.size.width,d.size.height)+l(d):d.size+l(d):10+l(d)}}t.nodeSize=u,t.linkDistance=kp(t.linkDistance,1),t.nodeStrength=kp(t.nodeStrength,1),t.edgeStrength=kp(t.edgeStrength,1);var c={},h={};n.forEach(function(d,v){(0,Hr.isNumber)(d.x)||(d.x=Math.random()*t.width),(0,Hr.isNumber)(d.y)||(d.y=Math.random()*t.height);var p=t.degreesMap[d.id];c[d.id]=da(da({},d),{data:da(da({},d.data),{size:t.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:t.getMass(d),nodeStrength:t.nodeStrength(d,a)}}})}),h[d.id]=v}),t.nodeMap=c,t.nodeIdxMap=h,t.edgeInfos=[],a==null||a.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):t.edgeInfos.push({edgeStrength:t.edgeStrength(d),linkDistance:i?i(da(da({},d),{source:v,target:p}),v,p):t.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),t.onLayoutEnd=t.onLayoutEnd||function(){},t.run()},e.prototype.run=function(){var t=this,n=t.maxIteration,a=t.nodes,i=t.edges,o=t.workerEnabled,s=t.minMovement,u=t.animate,f=t.nodeMap,l=t.height;if(t.currentMinY=0,t.currentMaxY=l,!!a){var c=[];if(a.forEach(function(y,m){c[2*m]=0,c[2*m+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var h={};i.forEach(function(y){var m=y.source,b=y.target;h[m]=h[m]||[],h[m].push(y),h[b]=h[b]||[],h[b].push(y)}),this.relatedEdges=h}var d=n,v=!u;if(o||v){for(var p=0;(t.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){a&&(t.runOneStep(g,c),g++,(g>=d||t.judgingDistanceu){var v=u/d;c=v*c,h=v*h}n[2*l]=c,n[2*l+1]=h})},e.prototype.updatePosition=function(t,n){var a=this,i=a.nodes,o=a.distanceThresholdMode,s=a.nodeMap;if(!(i!=null&&i.length)){this.judgingDistance=0;return}var u=0;o==="max"?a.judgingDistance=-1/0:o==="min"&&(a.judgingDistance=1/0);var f=1/0,l=-1/0;i.forEach(function(c,h){var d=s[c.id];if((0,Hr.isNumber)(c.fx)&&(0,Hr.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=t[2*h]*n,p=t[2*h+1]*n;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yl&&(l=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":a.judgingDistanceg&&(a.judgingDistance=g);break;default:u=u+g;break}}),this.currentMinY=f,this.currentMaxY=l,(!o||o==="mean")&&(a.judgingDistance=u/i.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var t=this,n=t.nodeClusterBy,a=t.nodes,i=t.edges,o=t.nodeMap,s=t.degreesMap;if(a!=null&&a.length){var u={};return a.forEach(function(f,l){var c=s[f.id].all;c===1&&(u[f.id]=(0,Hr.getCoreNodeAndRelativeLeafNodes)("leaf",f,i,n,s,o))}),u}},e}(Q7.Base);al.Force2Layout=eW;var Vy={},Dd={};function tW(r,e){var t,n=1;r==null&&(r=0),e==null&&(e=0);function a(){var i,o=t.length,s,u=0,f=0;for(i=0;ih.index){var C=d-S.x-S.vx,I=v-S.y-S.vy,k=C*C+I*I;kd+M||Ev+M||_f.r&&(f.r=f[l].r)}function u(){if(e){var f,l=e.length,c;for(t=new Array(l),f=0;f[e(x,E,o),x])),w;for(g=0,s=new Array(y);g{}};function VT(){for(var r=0,e=arguments.length,t={},n;r=0&&(n=t.slice(a+1),t=t.slice(0,a)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ih.prototype=VT.prototype={constructor:ih,on:function(r,e){var t=this._,n=uW(r+"",t),a,i=-1,o=n.length;if(arguments.length<2){for(;++i0)for(var t=new Array(a),n=0,a,i;n(r=(lW*r+cW)%wE)/wE}function dW(r){return r.x}function vW(r){return r.y}var pW=10,gW=Math.PI*(3-Math.sqrt(5));function yW(r){var e,t=1,n=.001,a=1-Math.pow(n,1/300),i=0,o=.6,s=new Map,u=_y(c),f=VT("tick","end"),l=hW();r==null&&(r=[]);function c(){h(),f.call("tick",e),t1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,y){var m=0,b=r.length,w,x,E,_,S;for(y==null?y=1/0:y*=y,m=0;m1?(f.on(p,g),e):f.on(p)}}}function mW(){var r,e,t,n,a=Qr(-30),i,o=1,s=1/0,u=.81;function f(d){var v,p=r.length,g=Ld(r,dW,vW).visitAfter(c);for(n=d,v=0;v=s)return;(d.data!==e||d.next)&&(y===0&&(y=$i(t),w+=y*y),m===0&&(m=$i(t),w+=m*m),w-1||(o[u]=i[u])}),o}),n.ticking=!1},e.prototype.execute=function(t){var n=this,a=n.nodes,i=n.edges;if(!n.ticking){var o=n.forceSimulation,s=n.alphaMin,u=n.alphaDecay,f=n.alpha;if(o){if(t){if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(a),n.clusterForce.links(i)),o.nodes(a),i&&n.edgeForce)n.edgeForce.links(i);else if(i&&!n.edgeForce){var h=Es.forceLink().id(function(g){return g.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}}n.preventOverlap&&n.overlapProcess(o),o.alpha(f).restart(),this.ticking=!0}else try{var l=Es.forceManyBody();if(n.nodeStrength&&l.strength(n.nodeStrength),o=Es.forceSimulation().nodes(a),n.clustering){var c=(0,OW.default)();c.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),i&&c.links(i),a&&c.nodes(a),c.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=c,o.force("group",c)}if(o.force("center",Es.forceCenter(n.center[0],n.center[1])).force("charge",l).alpha(f).alphaDecay(u).alphaMin(s),n.preventOverlap&&n.overlapProcess(o),i){var h=Es.forceLink().id(function(p){return p.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!FW()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!n.workerEnabled)o.on("tick",function(){n.tick()}).on("end",function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()}),n.ticking=!0;else{o.stop();for(var d=RW(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:a,currentTick:v,totalTicks:d,type:DW.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}n.forceSimulation=o,n.ticking=!0}catch(p){n.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(t){var n=this,a=n.nodeSize,i=n.nodeSpacing,o,s,u=n.collideStrength;if((0,Ao.isNumber)(i)?s=function(){return i}:(0,Ao.isFunction)(i)?s=i:s=function(){return 0},!a)o=function(h){if(h.size){if((0,Ao.isArray)(h.size)){var d=h.size[0]>h.size[1]?h.size[0]:h.size[1];return d/2+s(h)}if((0,Ao.isObject)(h.size)){var d=h.size.width>h.size.height?h.size.width:h.size.height;return d/2+s(h)}return h.size/2+s(h)}return 10+s(h)};else if((0,Ao.isFunction)(a))o=function(h){var d=a(h);return d+s(h)};else if((0,Ao.isArray)(a)){var f=a[0]>a[1]?a[0]:a[1],l=f/2;o=function(h){return l+s(h)}}else if((0,Ao.isNumber)(a)){var c=a/2;o=function(h){return c+s(h)}}else o=function(){return 10};t.force("collisionForce",Es.forceCollide(o).strength(u))},e.prototype.updateCfg=function(t){var n=this;n.ticking&&(n.forceSimulation.stop(),n.ticking=!1),n.forceSimulation=null,Object.assign(n,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(LW.Base);Dd.ForceLayout=PW;function RW(r){var e=r.alphaMin(),t=r.alphaTarget(),n=r.alpha(),a=Math.log((e-t)/(n-t))/Math.log(1-r.alphaDecay()),i=Math.ceil(a);return i}function FW(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(Dd,r)})(Vy);var il={},BW=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(il,"__esModule",{value:!0});il.CircularLayout=void 0;var GW=Rr,$a=Ir();function zW(r,e,t,n){r.forEach(function(a,i){r[i].children=[],r[i].parent=[]}),n?e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=t[i]);var u=0;o&&(u=t[o]);var f=r[s].children,l=r[u].parent;f.push(r[u].id),l.push(r[s].id)}):e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=t[i]);var u=0;o&&(u=t[o]);var f=r[s].children,l=r[u].children;f.push(r[u].id),l.push(r[s].id)})}function jW(r,e,t){for(var n=t.length,a=0;an?1:0}var $W=function(r){BW(e,r);function e(t){var n=r.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t,n=this,a=n.nodes,i=n.edges,o=a.length;if(o===0){n.onLayoutEnd&&n.onLayoutEnd();return}!n.width&&typeof window<"u"&&(n.width=window.innerWidth),!n.height&&typeof window<"u"&&(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(o===1){a[0].x=s[0],a[0].y=s[1],n.onLayoutEnd&&n.onLayoutEnd();return}var u=n.radius,f=n.startRadius,l=n.endRadius,c=n.divisions,h=n.startAngle,d=n.endAngle,v=n.angleRatio,p=n.ordering,g=n.clockwise,y=n.nodeSpacing,m=n.nodeSize,b=(d-h)/o,w={};a.forEach(function(L,z){w[L.id]=z}),n.nodeMap=w;var x=(0,$a.getDegree)(a.length,w,i);if(n.degrees=x,y){var E=(0,$a.getFuncByUnknownType)(10,y),_=(0,$a.getFuncByUnknownType)(10,m),S=-1/0;a.forEach(function(L){var z=_(L);Sn.width?n.width/2:n.height/2:!f&&l?f=l:f&&!l&&(l=f);var M=b*v,C=[];p==="topology"?C=n.topologyOrdering():p==="topology-directed"?C=n.topologyOrdering(!0):p==="degree"?C=n.degreeOrdering():C=a;for(var I=Math.ceil(o/c),k=0;k0?r.set(e,t):r.delete(e))}function YT(r,e,t,n){var a=String(e),i=String(t);if(!r&&a>i){var o=a;a=i,i=o}return a+$s.EDGE_KEY_DELIM+i+$s.EDGE_KEY_DELIM+(n===void 0?$s.DEFAULT_EDGE_NAME:n)}function SE(r,e,t,n){var a=String(e),i=String(t),o={v:e,w:t};if(!r&&a>i){var s=o.v;o.v=o.w,o.w=s}return n!==void 0&&(o.name=n),o}function Np(r,e){return YT(r,e.v,e.w,e.name)}function ME(r){return typeof r=="function"}var VW=function(e){return e.nodes().map(function(t){var n=e.node(t),a=e.parent(t),i={id:t,value:n,parent:a};return i.value===void 0&&delete i.value,i.parent===void 0&&delete i.parent,i})},YW=function(e){return e.edges().map(function(t){var n=e.edge(t),a={v:t.v,w:t.w,value:n,name:t.name};return a.name===void 0&&delete a.name,a.value===void 0&&delete a.value,a})},qW=function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:VW(e),edges:YW(e),value:e.graph()};return t.value===void 0&&delete t.value,t},HW=function(e){var t=new Ko(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(function(n){t.setNode(n.id,n.value),n.parent&&t.setParent(n.id,n.parent)}),e.edges.forEach(function(n){t.setEdge(n.v,n.w,n.value,n.name)}),t};function AE(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function CE(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};KW(this,r),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=$s.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(a){return e.label=a,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(a){return ME(a)?e.defaultNodeLabelFn=a:e.defaultNodeLabelFn=function(){return a},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(a){return e.nodesLabelMap.get(a)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.inEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.sinks=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.outEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.setNodes=function(a,i){return a.map(function(o){return e.setNode(o,i)}),e},this.hasNode=function(a){return e.nodesLabelMap.has(a)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(a){if(e.isCompound()){var i,o=(i=e.parentMap)===null||i===void 0?void 0:i.get(a);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(a){var i=e.parentMap.get(a);e.childrenMap.get(i).delete(a)},this.setParent=function(a,i){var o,s;e.checkCompound();for(var u=i===void 0?e.GRAPH_NODE:i,f=e.parent(u);f;){if(a===f)throw new Error("Setting "+i+" as parent of "+a+" would create a cycle");f=e.parent(f)}i&&e.setNode(i),e.setNode(a),e.removeFromParentsChildList(a),(o=e.parentMap)===null||o===void 0||o.set(a,u);var l=e.childrenMap.get(u);return l.set(a,!0),(s=e.childrenMap)===null||s===void 0||s.set(u,l),e},this.children=function(a){var i=a===void 0?e.GRAPH_NODE:a;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(i);return s?Array.from(s.keys()):void 0}if(i===e.GRAPH_NODE)return e.nodes();if(a&&e.hasNode(a))return[]},this.predecessors=function(a){var i=e.predecessorsMap.get(a);return i?Array.from(i.keys()):void 0},this.successors=function(a){var i=e.successorsMap.get(a);return i?Array.from(i.keys()):void 0},this.neighbors=function(a){var i;if(e.hasNode(a))return Array.from(new Set((i=e.predecessors(a))===null||i===void 0?void 0:i.concat(e.successors(a))))},this.isLeaf=function(a){var i;if(e.isDirected()){var o;return!(!((o=e.successors(a))===null||o===void 0)&&o.length)}return!(!((i=e.neighbors(a))===null||i===void 0)&&i.length)},this.filterNodes=function(a){var i=e.directed,o=e.multigraph,s=e.compound,u=new r({directed:i,multigraph:o,compound:s});if(u.setGraph(e.graph()),e.nodes().forEach(function(l){a(l)&&u.setNode(l,e.node(l))}),e.edges().forEach(function(l){u.hasNode(l.v)&&u.hasNode(l.w)&&u.setEdgeObj(l,e.edge(l))}),s){var f=function(c){for(var h=e.parent(c);h!==void 0&&!u.hasNode(h);)h=e.parent(h);return h};u.nodes().forEach(function(l){u.setParent(l,f(l))})}return u},this.setDefaultEdgeLabel=function(a){return ME(a)?e.defaultEdgeLabelFn=a:e.defaultEdgeLabelFn=function(){return a},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(a,i){return e.setEdge(a.v,a.w,i,a.name)},this.setPath=function(a,i){return a.reduce(function(o,s){return e.setEdge(o,s,i),s}),e},this.edgeFromArgs=function(a,i,o){return e.edge({v:a,w:i,name:o})},this.edge=function(a){return e.edgesLabelsMap.get(Np(e.isDirected(),a))},this.hasEdge=function(a,i,o){return e.edgesLabelsMap.has(Np(e.isDirected(),{v:a,w:i,name:o}))},this.removeEdgeObj=function(a){var i=a.v,o=a.w,s=a.name;return e.removeEdge(i,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(a,i){var o=e.inEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.v===i})},this.outEdges=function(a,i){var o=e.outEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.w===i})},this.nodeEdges=function(a,i){var o;if(e.hasNode(a))return(o=e.inEdges(a,i))===null||o===void 0?void 0:o.concat(e.outEdges(a,i))},this.toJSON=function(){return qW(e)},this.nodeInDegree=function(a){var i=e.inEdgesMap.get(a);return i?i.size:0},this.nodeOutDegree=function(a){var i=e.outEdgesMap.get(a);return i?i.size:0},this.nodeDegree=function(a){return e.nodeInDegree(a)+e.nodeOutDegree(a)},this.source=function(a){return a.v},this.target=function(a){return a.w};var n=CE(CE({},eV),t);this.compound=n.compound,this.directed=n.directed,this.multigraph=n.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return JW(r,[{key:"setNode",value:function(t,n){var a=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,u=this.childrenMap,f=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(a.has(t))return n!==void 0&&a.set(t,n),this;if(a.set(t,n||i(t)),o()){var d;s==null||s.set(t,this.GRAPH_NODE),u==null||u.set(t,new Map),u!=null&&u.has(this.GRAPH_NODE)||u==null||u.set(this.GRAPH_NODE,new Map),u==null||(d=u.get(this.GRAPH_NODE))===null||d===void 0||d.set(t,!0)}return[f,l,c,h].forEach(function(v){return v.set(t,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(t){var n=this;if(this.hasNode(t)){var a=function(g){n.removeEdge(g.v,g.w,g.name)},i=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,u=this.successorsMap,f=this.nodesLabelMap;if(this.isCompound()){var l,c,h;this.removeFromParentsChildList(t),(l=this.parentMap)===null||l===void 0||l.delete(t),(c=this.children(t))===null||c===void 0||c.forEach(function(p){return n.setParent(p)}),(h=this.childrenMap)===null||h===void 0||h.delete(t)}var d=i.get(t),v=o.get(t);Array.from(d.values()).forEach(function(p){return a(p)}),Array.from(v.values()).forEach(function(p){return a(p)}),f.delete(t),i.delete(t),o.delete(t),s.delete(t),u.delete(t),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(t,n,a,i){var o,s,u=SE(this.isDirected(),t,n,i),f=Np(this.isDirected(),u),l=u.v,c=u.w;if(this.edgesLabelsMap.has(f))return this.edgesLabelsMap.set(f,a),this;if(i!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(f,a||this.defaultEdgeLabelFn(l,c,i)),Object.freeze(u),this.edgesMap.set(f,u);var h=this.predecessorsMap.get(c),d=this.successorsMap.get(l);return EE(h,l),EE(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(f,u),(s=this.outEdgesMap.get(l))===null||s===void 0||s.set(f,u),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(t,n,a){var i=YT(this.isDirected(),t,n,a),o=this.edgesMap.get(i);if(o){var s=SE(this.isDirected(),t,n,a),u=s.v,f=s.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var l=this.predecessorsMap.get(f),c=this.successorsMap.get(u);_E(l,u),_E(c,f),this.inEdgesMap.get(f).delete(i),this.outEdgesMap.get(u).delete(i),this.edgeCountNum-=1}return this}}]),r}();Ko.fromJSON=HW;function sg(r){"@babel/helpers - typeof";return sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sg(r)}function tV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function rV(r,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function di(r){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},di(r)}var lV=function(r){iV(t,r);var e=oV(t);function t(){var n;tV(this,t);for(var a=arguments.length,i=new Array(a),o=0;o-1&&this.eventPool[a].splice(o,1)}}},{key:"emitEvent",value:function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s>1,((s=n[i])===null||s===void 0?void 0:s.priority)e.arr[a].priority)throw new Error("New priority is greater than current priority.Key: ".concat(t," Old: + ").concat(e.arr[a].priority," New: ").concat(n));e.arr[a].priority=n,e.innerDecrease(a)}}),dV=function(e,t){var n=new Ko,a=new Map,i=new qT,o;function s(l){var c=l.v===o?l.w:l.v,h=i.priority(c);if(h!==void 0){var d=t(l);d0;){var f;if(o=i.removeMin(),a.has(o))n.setEdge(o,a.get(o));else{if(u)throw new Error("Input graph is not connected: "+e.graph());u=!0}(f=e.nodeEdges(o))===null||f===void 0||f.forEach(s)}return n},vV=function(e){var t=new Set,n=[],a=e.nodes();return a.forEach(function(i){for(var o=[],s=[i];s.length>0;){var u=s.pop();if(!t.has(u)){var f,l;t.add(u),o.push(u),(f=e.successors(u))===null||f===void 0||f.forEach(function(c){return s.push(c)}),(l=e.predecessors(u))===null||l===void 0||l.forEach(function(c){return s.push(c)})}}o.length&&n.push(o)}),n},pV=function r(e,t,n,a,i,o){a.includes(t)||(a.push(t),n||o.push(t),i(t).forEach(function(s){return r(e,s,n,a,i,o)}),n&&o.push(t))},em=function(e,t,n){var a=Array.isArray(t)?t:[t],i=function(f){return e.isDirected()?e.successors(f):e.neighbors(f)},o=[],s=[];return a.forEach(function(u){if(e.hasNode(u))pV(e,u,n==="post",s,i,o);else throw new Error("Graph does not have node: "+u)}),o};function gV(r,e){return wV(r)||bV(r,e)||mV(r,e)||yV()}function yV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mV(r,e){if(r){if(typeof r=="string")return TE(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return TE(r,e)}}function TE(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t0&&(s=o.removeMin(),u=i.get(s),!(u&&u.distance===Number.POSITIVE_INFINITY));)a(s).forEach(f);var l={};return Array.from(i.entries()).forEach(function(c){var h=gV(c,2),d=h[0],v=h[1];return l[String(d)]=v,l}),l},_V=function(e,t,n){var a={};return e.nodes().forEach(function(i){return a[String(i)]=HT(e,i,t,n),a}),a},ZT=function(e){var t=0,n=[],a=new Map,i=[];function o(s){var u,f={onStack:!0,lowlink:t,index:t};if(a.set(s,f),t+=1,n.push(s),(u=e.successors(s))===null||u===void 0||u.forEach(function(d){var v;if(a.has(d)){if(!((v=a.get(d))===null||v===void 0)&&v.onStack){var g=a.get(d);f.lowlink=Math.min(f.lowlink,g.index)}}else{o(d);var p=a.get(d);f.lowlink=Math.min(f.lowlink,p.lowlink)}}),f.lowlink===f.index){var l=[],c;do{c=n.pop();var h=a.get(c);h.onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return e.nodes().forEach(function(s){a.has(s)||o(s)}),i},SV=function(e){return ZT(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})};function fg(r){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fg(r)}function MV(r,e,t){return Object.defineProperty(r,"prototype",{writable:!1}),r}function AV(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function CV(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Gf(r,e)}function TV(r){var e=KT();return function(){var n=zf(r),a;if(e){var i=zf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return IV(this,a)}}function IV(r,e){if(e&&(fg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kV(r)}function kV(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function lg(r){var e=typeof Map=="function"?new Map:void 0;return lg=function(n){if(n===null||!NV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return oh(n,arguments,zf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Gf(a,n)},lg(r)}function oh(r,e,t){return KT()?oh=Reflect.construct:oh=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),f=new u;return o&&Gf(f,o.prototype),f},oh.apply(null,arguments)}function KT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function NV(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Gf(r,e){return Gf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Gf(r,e)}function zf(r){return zf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},zf(r)}var cg=function(r){CV(t,r);var e=TV(t);function t(){return AV(this,t),e.apply(this,arguments)}return MV(t)}(lg(Error));function QT(r){var e=new Set,t=new Set,n=[];function a(i){if(t.has(i))throw new cg;if(!e.has(i)){var o;t.add(i),e.add(i),(o=r.predecessors(i))===null||o===void 0||o.forEach(a),t.delete(i),n.push(i)}}if(r.sinks().forEach(a),e.size!==r.nodeCount())throw new cg;return n}var OV=function(e){try{QT(e)}catch(t){if(t instanceof cg)return!1;throw t}return!0},LV=function(e,t){return em(e,t,"post")},DV=function(e,t){return em(e,t,"pre")},PV=function(){return 1};function RV(r,e,t){return FV(r,e||PV,t||function(n){return r.outEdges(n)})}function FV(r,e,t){var n={},a=r.nodes();return a.forEach(function(i){var o=String(i);n[o]={},n[o][o]={distance:0},a.forEach(function(s){i!==s&&(n[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),t(i).forEach(function(s){var u=s.v===i?s.w:s.v,f=e(s);n[o][String(u)]={distance:f,predecessor:i}})}),a.forEach(function(i){var o=String(i),s=n[o];a.forEach(function(u){var f=String(u),l=n[f];a.forEach(function(c){var h=String(c),d=l[o],v=s[h],p=l[h],g=d.distance+v.distance;gr.length)&&(e=r.length);for(var t=0,n=new Array(e);t0;--s)if(o=e[s].dequeue(),o){n=n.concat(Op(r,e,t,o,!0));break}}}return n},Op=function(r,e,t,n,a){var i,o,s=[];return(i=r.inEdges(n.v))===null||i===void 0||i.forEach(function(u){var f=r.edge(u),l=r.node(u.v);a&&s.push({v:u.v,w:u.w,in:0,out:0}),l.out===void 0&&(l.out=0),l.out-=f,hg(e,t,l)}),(o=r.outEdges(n.v))===null||o===void 0||o.forEach(function(u){var f=r.edge(u),l=u.w,c=r.node(l);c.in===void 0&&(c.in=0),c.in-=f,hg(e,t,c)}),r.removeNode(n.v),a?s:void 0},lY=function(r,e){var t=new oY,n=0,a=0;r.nodes().forEach(function(f){t.setNode(f,{v:f,in:0,out:0})}),r.edges().forEach(function(f){var l=t.edge(f)||0,c=(e==null?void 0:e(f))||1,h=l+c;t.setEdge(f.v,f.w,h),a=Math.max(a,t.node(f.v).out+=c),n=Math.max(n,t.node(f.w).in+=c)});for(var i=[],o=a+n+3,s=0;sMath.abs(S)*C?(A<0&&(C=-C),I=C*S/A,k=C):(S<0&&(M=-M),I=M,k=M*A/S),{x:E+I,y:_+k}};r.intersectRect=l;var c=function(w){for(var x=[],E=(0,r.maxRank)(w)+1,_=0;_x)&&(x=S)}),x||(x=0),x};r.maxRank=p;var g=function(w,x){var E={lhs:[],rhs:[]};return w==null||w.forEach(function(_){x(_)?E.lhs.push(_):E.rhs.push(_)}),E};r.partition=g;var y=function(w,x){var E=Date.now();try{return x()}finally{console.log("".concat(w," time: ").concat(Date.now()-E,"ms"))}};r.time=y;var m=function(w,x){return x()};r.notime=m;var b=function(w,x){return w.reduce(function(E,_){var S=x(E),A=x(_);return S>A?_:E})};r.minBy=b})(Vn);Object.defineProperty(rm,"__esModule",{value:!0});var bY=Vn,wY=function(r){r.graph().dummyChains=[],r.edges().forEach(function(e){return xY(r,e)})},xY=function(r,e){var t=e.v,n=r.node(t).rank,a=e.w,i=r.node(a).rank,o=e.name,s=r.edge(e),u=s.labelRank;if(i!==n+1){r.removeEdgeObj(e);var f=r.graph(),l,c,h;for(h=0,++n;nA.lim&&(M=A,C=!0);var I=w.edges().filter(function(k){return C===m(b,b.node(k.v),M)&&C!==m(b,b.node(k.w),M)});return(0,n.minBy)(I,function(k){return(0,t.slack)(w,k)})};r.enterEdge=v;var p=function(b,w,x,E){var _=x.v,S=x.w;b.removeEdge(_,S),b.setEdge(E.v,E.w,{}),(0,r.initLowLimValues)(b),(0,r.initCutValues)(b,w),g(b,w)};r.exchangeEdges=p;var g=function(b,w){var x=b.nodes().find(function(_){var S;return!(!((S=w.node(_))===null||S===void 0)&&S.parent)}),E=i(b,x);E=E==null?void 0:E.slice(1),E==null||E.forEach(function(_){var S=b.node(_).parent,A=w.edgeFromArgs(_,S),M=!1;A||(A=w.edgeFromArgs(S,_),M=!0),w.node(_).rank=w.node(S).rank+(M?A.minlen:-A.minlen)})},y=function(b,w,x){return b.hasEdge(w,x)},m=function(b,w,x){return x.low<=w.lim&&w.lim<=x.lim};r.default=s})(hI);var AY=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nm,"__esModule",{value:!0});var dI=ba,CY=Ki,TY=AY(hI),IY=function(r){switch(r.graph().ranker){case"network-simplex":NY(r);break;case"tight-tree":kE(r);break;case"longest-path":kY(r);break;default:kE(r)}},kY=dI.longestPath,kE=function(r){(0,dI.longestPathWithLayer)(r),(0,CY.feasibleTreeWithLayer)(r)},NY=function(r){(0,TY.default)(r)};nm.default=IY;var am={};Object.defineProperty(am,"__esModule",{value:!0});var OY=function(r){var e,t={},n=0,a=function(i){var o,s=n;(o=r.children(i))===null||o===void 0||o.forEach(a),t[i]={low:s,lim:n++}};return(e=r.children())===null||e===void 0||e.forEach(a),t},LY=function(r,e,t,n){var a=[],i=[],o=Math.min(e[t].low,e[n].low),s=Math.max(e[t].lim,e[n].lim),u,f;u=t;do u=r.parent(u),a.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=n;u&&u!==f;)i.push(u),u=r.parent(u);return{lca:f,path:a.concat(i.reverse())}},DY=function(r){var e,t=OY(r);(e=r.graph().dummyChains)===null||e===void 0||e.forEach(function(n){var a,i,o=n,s=r.node(o),u=s.edgeObj;if(u)for(var f=LY(r,t,u.v,u.w),l=f.path,c=f.lca,h=0,d=l[h],v=!0;o!==u.w;){if(s=r.node(o),v){for(;d!==c&&((a=r.node(d))===null||a===void 0?void 0:a.maxRank)-1:!1},mI=function(r,e){if(!Ln(r))return r;for(var t=[],n=0;n-1;)QY.call(r,i,1);return r},tq=Array.prototype.splice,MI=function(e,t){if(!Ln(e))return[];for(var n=e?t.length:0,a=n-1;n--;){var i=void 0,o=t[n];(n===a||o!==i)&&(i=o,tq.call(e,o,1))}return e},AI=function(r,e,t){if(!Vr(r)&&!au(r))return r;var n=t;return nu(r,function(a,i){n=e(n,a,i)}),n},rq=function(r,e){var t=[];if(!Ln(r))return t;for(var n=-1,a=[],i=r.length;++ni[s])return 1;if(a[s]t?t:r},bq=function(r,e){var t=e.toString(),n=t.indexOf(".");if(n===-1)return Math.round(r);var a=t.substr(n+1).length;return a>20&&(a=20),parseFloat(r.toFixed(a))};function xi(r){return typeof r=="number"}function wq(r){return xi(r)&&r%1!==0}function xq(r){return xi(r)&&r%2===0}function Eq(r){return xi(r)&&r%1===0}function _q(r){return xi(r)&&r<0}var Sq=1e-5;function Mq(r,e,t){return t===void 0&&(t=Sq),r===e||Math.abs(r-e)0};const Tq=function(r,e){if(Vr(r)){for(var t,n=-1/0,a=0;an&&(t=i,n=o)}return t}},Iq=function(r,e){if(Vr(r)){for(var t,n=1/0,a=0;aa&&(n=t,o(1),++e),t[s]=u}function o(s){e=0,t=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return t[s]!==void 0||n[s]!==void 0},get:function(s){var u=t[s];if(u!==void 0)return u;if((u=n[s])!==void 0)return i(s,u),u},set:function(s,u){t[s]!==void 0?t[s]=u:i(s,u)}}}var Fp=new Map;function LI(r,e,t){t===void 0&&(t=128);var n=function(){for(var a=[],i=0;ie?(n&&(clearTimeout(n),n=null),s=l,o=r.apply(a,i),n||(a=i=null)):!n&&t.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},xH=function(r){return Ln(r)?Array.prototype.slice.call(r):[]};var Cc={};const EH=function(r){return r=r||"g",Cc[r]?Cc[r]+=1:Cc[r]=1,r+Cc[r]},_H=function(){},SH=function(r){return r};function MH(r){return no(r)?0:Ln(r)?r.length:Object.keys(r).length}var AH=function(){function r(){this.map={}}return r.prototype.has=function(e){return this.map[e]!==void 0},r.prototype.get=function(e,t){var n=this.map[e];return n===void 0?t:n},r.prototype.set=function(e,t){this.map[e]=t},r.prototype.clear=function(){this.map={}},r.prototype.delete=function(e){delete this.map[e]},r.prototype.size=function(){return Object.keys(this.map).length},r}(),CH=/rgba?\(([\s.,0-9]+)\)/;function TH(){var r=document.getElementById("antv-web-colour-picker");return r||(r=document.createElement("i"),r.id="antv-web-colour-picker",r.title="Web Colour Picker",r.style.display="none",document.body.appendChild(r),r)}function IH(r){if(r[0]==="#"&&r.length===7)return r;var e=TH();e.style.color=r;var t=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),n=CH.exec(t),a=n[1].split(/\s*,\s*/).map(function(i){return Number(i)});return t=yI(a),t}var PI=LI(IH,function(r){return r},256);function Bp(r,e,t,n){return r[n]+(e[n]-r[n])*t}function kH(r,e){var t=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=r.length-1,a=Math.floor(n*t),i=n*t-a,o=r[a],s=a===n?o:r[a+1];return yI([Bp(o,s,i,0),Bp(o,s,i,1),Bp(o,s,i,2)])}function NH(r){var e=typeof r=="string"?r.split("-"):r,t=e.map(function(n){return gI(n.indexOf("#")===-1?PI(n):n)});return function(n){return kH(t,n)}}var OH=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,LH=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,DH=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function PH(r){return/^[r,R,L,l]{1}[\s]*\(/.test(r)}function RH(r){if(PH(r)){var e,t=void 0;if(r[0]==="l"){var n=OH.exec(r),a=+n[1]+90;t=n[2],e="linear-gradient(".concat(a,"deg, ")}else if(r[0]==="r"){e="radial-gradient(";var n=LH.exec(r);t=n[4]}var i=t.match(DH);return i.forEach(function(o,s){var u=o.split(":");e+="".concat(u[1]," ").concat(Number(u[0])*100,"%"),s!==i.length-1&&(e+=", ")}),e+=")",e}return r}function FH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Kg(n,t),Qa(r,n,e)}function BH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Qg(n,t),Qa(r,n,e)}function GH(r,e,t){var n=[0,0,0,0,0,0,0,0,0];return Jg(n,t),Qa(r,n,e)}function zH(r,e,t){return Qa(r,t,e)}function jH(r,e){for(var t=r?[].concat(r):[1,0,0,0,1,0,0,0,1],n=0,a=e.length;n=0;return t?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function $H(r,e,t){return t?(r[0]=e[1],r[1]=-1*e[0]):(r[0]=-1*e[1],r[1]=e[0]),r}function XH(r,e){if(e==="off")return[].concat(r);var t=typeof e=="number"&&e>=1?Math.pow(10,e):1;return r.map(function(n){var a=n.slice(1).map(Number).map(function(i){return e?Math.round(i*t)/t:Math.round(i)});return[n[0]].concat(a)})}function WH(r,e){return e===void 0&&(e="off"),XH(r,e).map(function(t){return t[0]+t.slice(1).join(" ")}).join("")}var FI={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function VH(r,e,t){if(r[t].length>7){r[t].shift();for(var n=r[t],a=t;n.length;)e[t]="A",r.splice(a+=1,0,["C"].concat(n.splice(0,6)));r.splice(t,1)}}var xf={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function BI(r){return Array.isArray(r)&&r.every(function(e){var t=e[0].toLowerCase();return xf[t]===e.length-1&&"achlmqstvz".includes(t)})}function GI(r){return BI(r)&&r.every(function(e){var t=e[0];return t===t.toUpperCase()})}function zI(r){return GI(r)&&r.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}function PE(r){for(var e=r.pathValue[r.segmentStart],t=e.toLowerCase(),n=r.data;n.length>=xf[t]&&(t==="m"&&n.length>2?(r.segments.push([e].concat(n.splice(0,2))),t="l",e=e==="m"?"l":"L"):r.segments.push([e].concat(n.splice(0,xf[t]))),!!xf[t]););}function YH(r){var e=r.index,t=r.pathValue,n=t.charCodeAt(e);if(n===48){r.param=0,r.index+=1;return}if(n===49){r.param=1,r.index+=1;return}r.err='[path-util]: invalid Arc flag "'.concat(t[e],'", expecting 0 or 1 at index ').concat(e)}function qH(r){return r>=48&&r<=57||r===43||r===45||r===46}function _s(r){return r>=48&&r<=57}function HH(r){var e=r.max,t=r.pathValue,n=r.index,a=n,i=!1,o=!1,s=!1,u=!1,f;if(a>=e){r.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(f=t.charCodeAt(a),(f===43||f===45)&&(a+=1,f=t.charCodeAt(a)),!_s(f)&&f!==46){r.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(t[a],'" is not a number');return}if(f!==46){if(i=f===48,a+=1,f=t.charCodeAt(a),i&&a=5760&&e.includes(r)}function sh(r){for(var e=r.pathValue,t=r.max;r.index0;o-=1){if(QH(a)&&(o===3||o===4)?YH(r):HH(r),r.err.length)return;r.data.push(r.param),sh(r),r.index=r.max||!qH(t.charCodeAt(r.index)))break}PE(r)}var eZ=function(){function r(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return r}();function Bd(r){if(BI(r))return[].concat(r);var e=new eZ(r);for(sh(e);e.index1&&(M=Math.sqrt(M),h*=M,d*=M);var C=h*h,I=d*d,k=(i===o?-1:1)*Math.sqrt(Math.abs((C*I-C*A*A-I*S*S)/(C*A*A+I*S*S)));E=k*h*A/d+(l+v)/2,_=k*-d*S/h+(c+p)/2,w=Math.asin(((c-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=Math.asin(((p-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),w=lx&&(w-=Math.PI*2),!o&&x>w&&(x-=Math.PI*2)}var O=x-w;if(Math.abs(O)>g){var B=x,L=v,z=p;x=w+g*(o&&x>w?1:-1),v=E+h*Math.cos(x),p=_+d*Math.sin(x),m=lm(v,p,h,d,a,0,o,L,z,[x,B,E,_])}O=x-w;var X=Math.cos(w),R=Math.sin(w),V=Math.cos(x),he=Math.sin(x),ce=Math.tan(O/4),le=4/3*h*ce,ie=4/3*d*ce,Ie=[l,c],qe=[l+le*R,c-ie*X],Ve=[v+le*he,p-ie*V],it=[v,p];if(qe[0]=2*Ie[0]-qe[0],qe[1]=2*Ie[1]-qe[1],f)return qe.concat(Ve,it,m);m=qe.concat(Ve,it,m);for(var dt=[],st=0,Tt=m.length;st=i)o={x:t,y:n};else{var s=zi([r,e],[t,n],a/i),u=s[0],f=s[1];o={x:u,y:f}}return{length:i,point:o,min:{x:Math.min(r,t),y:Math.min(e,n)},max:{x:Math.max(r,t),y:Math.max(e,n)}}}function FE(r,e){var t=r.x,n=r.y,a=e.x,i=e.y,o=t*a+n*i,s=Math.sqrt((Math.pow(t,2)+Math.pow(n,2))*(Math.pow(a,2)+Math.pow(i,2))),u=t*i-n*a<0?-1:1,f=u*Math.acos(o/s);return f}function uZ(r,e,t,n,a,i,o,s,u,f){var l=Math.abs,c=Math.sin,h=Math.cos,d=Math.sqrt,v=Math.PI,p=l(t),g=l(n),y=(a%360+360)%360,m=y*(v/180);if(r===s&&e===u)return{x:r,y:e};if(p===0||g===0)return pg(r,e,s,u,f).point;var b=(r-s)/2,w=(e-u)/2,x={x:h(m)*b+c(m)*w,y:-c(m)*b+h(m)*w},E=Math.pow(x.x,2)/Math.pow(p,2)+Math.pow(x.y,2)/Math.pow(g,2);E>1&&(p*=d(E),g*=d(E));var _=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2),S=Math.pow(p,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2),A=_/S;A=A<0?0:A;var M=(i!==o?1:-1)*d(A),C={x:M*(p*x.y/g),y:M*(-(g*x.x)/p)},I={x:h(m)*C.x-c(m)*C.y+(r+s)/2,y:c(m)*C.x+h(m)*C.y+(e+u)/2},k={x:(x.x-C.x)/p,y:(x.y-C.y)/g},O=FE({x:1,y:0},k),B={x:(-x.x-C.x)/p,y:(-x.y-C.y)/g},L=FE(k,B);!o&&L>0?L-=2*v:o&&L<0&&(L+=2*v),L%=2*v;var z=O+L*f,X=p*h(z),R=g*c(z),V={x:h(m)*X-c(m)*R+I.x,y:c(m)*X+h(m)*R+I.y};return V}function fZ(r,e,t,n,a,i,o,s,u,f,l){var c,h=l.bbox,d=h===void 0?!0:h,v=l.length,p=v===void 0?!0:v,g=l.sampleSize,y=g===void 0?30:g,m=typeof f=="number",b=r,w=e,x=0,E=[b,w,x],_=[b,w],S=0,A={x:0,y:0},M=[{x:b,y:w}];m&&f<=0&&(A={x:b,y:w});for(var C=0;C<=y;C+=1){if(S=C/y,c=uZ(r,e,t,n,a,i,o,s,u,S),b=c.x,w=c.y,d&&M.push({x:b,y:w}),p&&(x+=yu(_,[b,w])),_=[b,w],m&&x>=f&&f>E[2]){var I=(x-f)/(x-E[2]);A={x:_[0]*(1-I)+E[0]*I,y:_[1]*(1-I)+E[1]*I}}E=[b,w,x]}return m&&f>=x&&(A={x:s,y:u}),{length:x,point:A,min:{x:Math.min.apply(null,M.map(function(k){return k.x})),y:Math.min.apply(null,M.map(function(k){return k.y}))},max:{x:Math.max.apply(null,M.map(function(k){return k.x})),y:Math.max.apply(null,M.map(function(k){return k.y}))}}}function lZ(r,e,t,n,a,i,o,s,u){var f=1-u;return{x:Math.pow(f,3)*r+3*Math.pow(f,2)*u*t+3*f*Math.pow(u,2)*a+Math.pow(u,3)*o,y:Math.pow(f,3)*e+3*Math.pow(f,2)*u*n+3*f*Math.pow(u,2)*i+Math.pow(u,3)*s}}function $I(r,e,t,n,a,i,o,s,u,f){var l,c=f.bbox,h=c===void 0?!0:c,d=f.length,v=d===void 0?!0:d,p=f.sampleSize,g=p===void 0?10:p,y=typeof u=="number",m=r,b=e,w=0,x=[m,b,w],E=[m,b],_=0,S={x:0,y:0},A=[{x:m,y:b}];y&&u<=0&&(S={x:m,y:b});for(var M=0;M<=g;M+=1){if(_=M/g,l=lZ(r,e,t,n,a,i,o,s,_),m=l.x,b=l.y,h&&A.push({x:m,y:b}),v&&(w+=yu(E,[m,b])),E=[m,b],y&&w>=u&&u>x[2]){var C=(w-u)/(w-x[2]);S={x:E[0]*(1-C)+x[0]*C,y:E[1]*(1-C)+x[1]*C}}x=[m,b,w]}return y&&u>=w&&(S={x:o,y:s}),{length:w,point:S,min:{x:Math.min.apply(null,A.map(function(I){return I.x})),y:Math.min.apply(null,A.map(function(I){return I.y}))},max:{x:Math.max.apply(null,A.map(function(I){return I.x})),y:Math.max.apply(null,A.map(function(I){return I.y}))}}}function cZ(r,e,t,n,a,i,o){var s=1-o;return{x:Math.pow(s,2)*r+2*s*o*t+Math.pow(o,2)*a,y:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i}}function hZ(r,e,t,n,a,i,o,s){var u,f=s.bbox,l=f===void 0?!0:f,c=s.length,h=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=r,y=e,m=0,b=[g,y,m],w=[g,y],x=0,E={x:0,y:0},_=[{x:g,y}];p&&o<=0&&(E={x:g,y});for(var S=0;S<=v;S+=1){if(x=S/v,u=cZ(r,e,t,n,a,i,x),g=u.x,y=u.y,l&&_.push({x:g,y}),h&&(m+=yu(w,[g,y])),w=[g,y],p&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);E={x:w[0]*(1-A)+b[0]*A,y:w[1]*(1-A)+b[1]*A}}b=[g,y,m]}return p&&o>=m&&(E={x:a,y:i}),{length:m,point:E,min:{x:Math.min.apply(null,_.map(function(M){return M.x})),y:Math.min.apply(null,_.map(function(M){return M.y}))},max:{x:Math.max.apply(null,_.map(function(M){return M.x})),y:Math.max.apply(null,_.map(function(M){return M.y}))}}}function zd(r,e,t){for(var n,a,i,o,s,u,f=Gd(r),l=typeof e=="number",c,h=[],d,v=0,p=0,g=0,y=0,m,b=[],w=[],x=0,E={x:0,y:0},_=E,S=E,A=E,M=0,C=0,I=f.length;C=e&&(A=S),w.push(_),b.push(E),M+=x,u=d!=="Z"?m.slice(-2):[g,y],v=u[0],p=u[1];return l&&e>=M&&(A={x:v,y:p}),{length:M,point:A,min:{x:Math.min.apply(null,b.map(function(k){return k.x})),y:Math.min.apply(null,b.map(function(k){return k.y}))},max:{x:Math.max.apply(null,w.map(function(k){return k.x})),y:Math.max.apply(null,w.map(function(k){return k.y}))}}}function dZ(r,e){if(!r)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=zd(r,void 0,P(P({},e),{length:!1})),n=t.min,a=n.x,i=n.y,o=t.max,s=o.x,u=o.y,f=s-a,l=u-i;return{width:f,height:l,x:a,y:i,x2:s,y2:u,cx:a+f/2,cy:i+l/2,cz:Math.max(f,l)+Math.min(f,l)/2}}function Ef(r,e){return zd(r,void 0,P(P({},e),{bbox:!1,length:!0})).length}function vZ(r,e){if(!r)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var t=zd(r,void 0,P(P({},e),{bbox:!0,length:!0})),n=t.length,a=t.min,i=a.x,o=a.y,s=t.max,u=s.x,f=s.y,l=u-i,c=f-o;return{length:n,width:l,height:c,x:i,y:o,x2:u,y2:f,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function pZ(r){var e=r.length,t=e-1;return r.map(function(n,a){return r.map(function(i,o){var s=a+o,u;return o===0||r[s]&&r[s][0]==="M"?(u=r[s],["M"].concat(u.slice(-2))):(s>=e&&(s-=t),r[s])})})}function gZ(r,e){var t=r.length-1,n=[],a=0,i=0,o=pZ(r);return o.forEach(function(s,u){r.slice(1).forEach(function(f,l){i+=yu(r[(u+l)%t].slice(-2),e[l%t].slice(-2))}),n[u]=i,i=0}),a=n.indexOf(Math.min.apply(null,n)),o[a]}function yZ(r,e,t,n,a,i,o,s){return 3*((s-e)*(t+a)-(o-r)*(n+i)+n*(r-a)-t*(e-i)+s*(a+r/3)-o*(i+e/3))/20}function XI(r){var e=0,t=0,n=0;return UI(r).map(function(a){var i;switch(a[0]){case"M":return e=a[1],t=a[2],0;default:var o=a.slice(1),s=o[0],u=o[1],f=o[2],l=o[3],c=o[4],h=o[5];return n=yZ(e,t,s,u,f,l,c,h),i=a.slice(-2),e=i[0],t=i[1],n}}).reduce(function(a,i){return a+i},0)}function mZ(r){return XI(r)>=0}function uh(r,e,t){return zd(r,e,P(P({},t),{bbox:!1,length:!0})).point}function bZ(r,e){var t=Bd(r);if(typeof t=="string")throw TypeError(t);var n=t.slice(),a=Ef(n),i=n.length-1,o=0,s=0,u=t[0],f=u.slice(-2),l=f[0],c=f[1],h={x:l,y:c};if(i<=0||!e||!Number.isFinite(e))return{segment:u,index:0,length:s,point:h,lengthAtSegment:o};if(e>=a)return n=t.slice(0,-1),o=Ef(n),s=a-o,{segment:t[i],index:i,length:s,lengthAtSegment:o};for(var d=[];i>0;)u=n[i],n=n.slice(0,-1),o=Ef(n),s=a-o,a=o,d.push({segment:u,index:i,length:s,lengthAtSegment:o}),i-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function wZ(r,e){for(var t=Bd(r),n=Gd(t),a=Ef(t),i=function(x){var E=x.x-e.x,_=x.y-e.y;return E*E+_*_},o=8,s,u=0,f,l=0,c=1/0,h=0;h<=a;h+=o)s=uh(n,h),u=i(s),u.5;)p=l-o,d=uh(n,p),y=i(d),g=l+o,v=uh(n,g),m=i(v),p>=0&&yEZ)return console.warn("Maximum recursion depth reached in equalizeSegments"),[r,e];var a=BE(r),i=BE(e),o=a.length,s=i.length,u=a.filter(function(y){return y.l}).length,f=i.filter(function(y){return y.l}).length,l=a.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/u||0,c=i.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/f||0,h=t||Math.max(o,s),d=[l,c],v=[h-o,h-s],p=0,g=[a,i].map(function(y,m){return y.l===h?y.map(function(b){return b.s}):y.map(function(b,w){return p=w&&v[m]&&b.l>=d[m],v[m]-=p?1:0,p?b.ss:[b.s]}).flat()});return g[0].length===g[1].length?g:WI(g[0],g[1],h,n+1)}var SZ=1e-6;function Gp(r){return Math.abs(r)0!=Gp(s[1]-t)>0&&Gp(e-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var GE=function(r,e,t){return r>=e&&r<=t};function AZ(r,e,t,n){var a=.001,i={x:t.x-r.x,y:t.y-r.y},o={x:e.x-r.x,y:e.y-r.y},s={x:n.x-t.x,y:n.y-t.y},u=o.x*s.y-o.y*s.x,f=u*u,l=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,h=null;if(f>a*l*c){var d=(i.x*s.y-i.y*s.x)/u,v=(i.x*o.y-i.y*o.x)/u;GE(d,0,1)&&GE(v,0,1)&&(h={x:r.x+d*o.x,y:r.y+d*o.y})}return h}function zE(r){for(var e=[],t=r.length,n=0;n1){var o=r[0],s=r[t-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function CZ(r,e){var t=!1;return r.forEach(function(n){if(AZ(n.from,n.to,e.from,e.to))return t=!0,!1}),t}function jE(r){var e=r.map(function(n){return n[0]}),t=r.map(function(n){return n[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function TZ(r,e){return!(e.minX>r.maxX||e.maxXr.maxY||e.maxY0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=l.weight;f+=l.weight*h}}),f},FZ=function(r,e){for(var t=0,n=1;n<(e==null?void 0:e.length);n+=1)t+=RZ(r,e[n-1],e[n]);return t};cm.default=FZ;var hm={};Object.defineProperty(hm,"__esModule",{value:!0});var BZ=wi,GZ=function(r,e,t){var n=zZ(r),a=new BZ.Graph({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return r.node(i)});return r.nodes().forEach(function(i){var o,s=r.node(i),u=r.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||n),(o=r[t](i))===null||o===void 0||o.forEach(function(f){var l=f.v===i?f.w:f.v,c=a.edgeFromArgs(l,i),h=c!==void 0?c.weight:0;a.setEdge(l,i,{weight:r.edge(f).weight+h})}),s.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a},zZ=function(r){for(var e;r.hasNode(e="_root".concat(Math.random())););return e};hm.default=GZ;var dm={};Object.defineProperty(dm,"__esModule",{value:!0});var jZ=function(r,e,t){var n={},a;t==null||t.forEach(function(i){for(var o=r.parent(i),s,u;o;){if(s=r.parent(o),s?(u=n[s],n[s]=o):(u=a,a=o),u&&u!==o){e.setEdge(u,o);return}o=s}})};dm.default=jZ;var vm={},pm={};Object.defineProperty(pm,"__esModule",{value:!0});var UZ=function(r,e){return e.map(function(t){var n=r.inEdges(t);if(!(n!=null&&n.length))return{v:t};{var a={sum:0,weight:0};return n==null||n.forEach(function(i){var o=r.edge(i),s=r.node(i.v);a.sum+=o.weight*s.order,a.weight+=o.weight}),{v:t,barycenter:a.sum/a.weight,weight:a.weight}}})};pm.default=UZ;var gm={};Object.defineProperty(gm,"__esModule",{value:!0});var $Z=function(r,e){var t,n,a,i={};r==null||r.forEach(function(s,u){i[s.v]={i:u,indegree:0,in:[],out:[],vs:[s.v]};var f=i[s.v];s.barycenter!==void 0&&(f.barycenter=s.barycenter,f.weight=s.weight)}),(t=e.edges())===null||t===void 0||t.forEach(function(s){var u=i[s.v],f=i[s.w];u!==void 0&&f!==void 0&&(f.indegree++,u.out.push(i[s.w]))});var o=(a=(n=Object.values(i)).filter)===null||a===void 0?void 0:a.call(n,function(s){return!s.indegree});return XZ(o)},XZ=function(r){for(var e,t,n=[],a=function(f){return function(l){l.merged||(l.barycenter===void 0||f.barycenter===void 0||l.barycenter>=f.barycenter)&&WZ(f,l)}},i=function(f){return function(l){l.in.push(f),--l.indegree===0&&r.push(l)}},o=function(){var f=r.pop();n.push(f),(e=f.in.reverse())===null||e===void 0||e.forEach(function(l){return a(f)(l)}),(t=f.out)===null||t===void 0||t.forEach(function(l){return i(f)(l)})};r!=null&&r.length;)o();var s=n.filter(function(f){return!f.merged}),u=["vs","i","barycenter","weight"];return s.map(function(f){var l={};return u==null||u.forEach(function(c){f[c]!==void 0&&(l[c]=f[c])}),l})},WZ=function(r,e){var t,n=0,a=0;r.weight&&(n+=r.barycenter*r.weight,a+=r.weight),e.weight&&(n+=e.barycenter*e.weight,a+=e.weight),r.vs=(t=e.vs)===null||t===void 0?void 0:t.concat(r.vs),r.barycenter=n/a,r.weight=a,r.i=Math.min(e.i,r.i),e.merged=!0};gm.default=$Z;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});var VZ=Vn,YZ=function(r,e,t,n){var a=(0,VZ.partition)(r,function(h){var d=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return n?!d&&h.hasOwnProperty("barycenter"):d||h.hasOwnProperty("barycenter")}),i=a.lhs,o=a.rhs.sort(function(h,d){return-h.i- -d.i}),s=[],u=0,f=0,l=0;i==null||i.sort(qZ(!!e,!!t)),l=UE(s,o,l),i==null||i.forEach(function(h){var d;l+=(d=h.vs)===null||d===void 0?void 0:d.length,s.push(h.vs),u+=h.barycenter*h.weight,f+=h.weight,l=UE(s,o,l)});var c={vs:s.flat()};return f&&(c.barycenter=u/f,c.weight=f),c},UE=function(r,e,t){for(var n=t,a;e.length&&(a=e[e.length-1]).i<=n;)e.pop(),r==null||r.push(a.vs),n++;return n},qZ=function(r,e){return function(t,n){if(t.fixorder!==void 0&&n.fixorder!==void 0)return t.fixorder-n.fixorder;if(t.barycentern.barycenter)return 1;if(e&&t.order!==void 0&&n.order!==void 0){if(t.ordern.order)return 1}return r?n.i-t.i:t.i-n.i}};ym.default=YZ;var mm=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vm,"__esModule",{value:!0});var HZ=mm(pm),ZZ=mm(gm),KZ=mm(ym),YI=function(r,e,t,n,a,i){var o,s,u,f,l=r.children(e),c=r.node(e),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};h&&(l=l==null?void 0:l.filter(function(w){return w!==h&&w!==d}));var p=(0,HZ.default)(r,l||[]);p==null||p.forEach(function(w){var x;if(!((x=r.children(w.v))===null||x===void 0)&&x.length){var E=YI(r,w.v,t,n,i);v[w.v]=E,E.hasOwnProperty("barycenter")&&JZ(w,E)}});var g=(0,ZZ.default)(p,t);QZ(g,v),(o=g.filter(function(w){return w.vs.length>0}))===null||o===void 0||o.forEach(function(w){var x=r.node(w.vs[0]);x&&(w.fixorder=x.fixorder,w.order=x.order)});var y=(0,KZ.default)(g,n,a,i);if(h&&(y.vs=[h,y.vs,d].flat(),!((s=r.predecessors(h))===null||s===void 0)&&s.length)){var m=r.node(((u=r.predecessors(h))===null||u===void 0?void 0:u[0])||""),b=r.node(((f=r.predecessors(d))===null||f===void 0?void 0:f[0])||"");y.hasOwnProperty("barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+b.order)/(y.weight+2),y.weight+=2}return y},QZ=function(r,e){r==null||r.forEach(function(t){var n,a=(n=t.vs)===null||n===void 0?void 0:n.map(function(i){return e[i]?e[i].vs:i});t.vs=a.flat()})},JZ=function(r,e){r.barycenter!==void 0?(r.barycenter=(r.barycenter*r.weight+e.barycenter*e.weight)/(r.weight+e.weight),r.weight+=e.weight):(r.barycenter=e.barycenter,r.weight=e.weight)};vm.default=YI;var sl=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(um,"__esModule",{value:!0});var $E=sl(fm),XE=sl(cm),eK=sl(hm),tK=sl(dm),rK=sl(vm),WE=Ir(),nK=wi,zp=Vn,aK=function(r,e){for(var t=(0,zp.maxRank)(r),n=[],a=[],i=1;i-1;i--)a.push(i);var o=VE(r,n,"inEdges"),s=VE(r,a,"outEdges"),u=(0,$E.default)(r);jp(r,u);for(var f=Number.POSITIVE_INFINITY,l,i=0,c=0;c<4;++i,++c){YE(i%2?o:s,i%4>=2,!1,e),u=(0,zp.buildLayerMatrix)(r);var h=(0,XE.default)(r,u);h=2,!0,e),u=(0,zp.buildLayerMatrix)(r);var h=(0,XE.default)(r,u);hB)&&(0,r.addConflict)(E,V,X)}))}function S(C){return JSON.stringify(C.slice(1))}function A(C,I){var k=S(C);I.get(k)||(_.apply(void 0,C),I.set(k,!0))}var M=function(C,I){var k=-1,O,B=0,L=new Map;return I==null||I.forEach(function(z,X){var R;if(((R=w.node(z))===null||R===void 0?void 0:R.dummy)==="border"){var V=w.predecessors(z)||[];V.length&&(O=w.node(V[0]).order,A([I,B,X,k,O],L),B=X,k=O)}A([I,B,I.length,O,C.length],L)}),I};return x!=null&&x.length&&x.reduce(M),E};r.findType2Conflicts=s;var u=function(w,x){var E,_;if(!((E=w.node(x))===null||E===void 0)&&E.dummy)return(_=w.predecessors(x))===null||_===void 0?void 0:_.find(function(S){return w.node(S).dummy})};r.findOtherInnerSegmentNode=u;var f=function(w,x,E){var _=x,S=E;if(_>S){var A=_;_=S,S=A}var M=w[_];M||(w[_]=M={}),M[S]=!0};r.addConflict=f;var l=function(w,x,E){var _=x,S=E;if(_>S){var A=x;_=S,S=A}return!!w[_]};r.hasConflict=l;var c=function(w,x,E,_){var S={},A={},M={};return x==null||x.forEach(function(C){C==null||C.forEach(function(I,k){S[I]=I,A[I]=I,M[I]=k})}),x==null||x.forEach(function(C){var I=-1;C==null||C.forEach(function(k){var O=_(k);if(O.length){O=O.sort(function(R,V){return M[R]-M[V]});for(var B=(O.length-1)/2,L=Math.floor(B),z=Math.ceil(B);L<=z;++L){var X=O[L];A[k]===k&&IN.x&&(B=N.x),L>N.y&&(L=N.y)}),b.edges().forEach(function(te){var N,Se=b.edge(te);(N=Se.points)===null||N===void 0||N.forEach(function(Fe){B>Fe.x&&(B=Fe.x),L>Fe.y&&(L=Fe.y)})}),O[0]=h[0]-B,O[1]=h[1]-L}var z=l==="LR"||l==="RL";if(d){var X=this,R=X.focusNode,V=X.ranksep,he=X.getRadialPos,ce=(0,Rn.isString)(R)?R:R==null?void 0:R.id,le=ce?(o=b.node(ce))===null||o===void 0?void 0:o._rank:0,ie=[],Ie=z?"y":"x",qe=z?"height":"width",Ve=1/0,it=-1/0;b.nodes().forEach(function(te){var N=b.node(te);if(s.nodeMap[te]){var Se=A(s.nodeMap[te]);if(le===0)ie[N._rank]||(ie[N._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),ie[N._rank].nodes.push(te),ie[N._rank].totalWidth+=Se*2+N[qe],ie[N._rank].maxSizeit&&(it=$e)}});var dt=V||50,st={},Tt=(it-Ve)/.9,_t=[(Ve+it-Tt)*.5,(Ve+it+Tt)*.5],lr=function(te,N,Se,Fe){Se===void 0&&(Se=-1/0),Fe===void 0&&(Fe=[0,1]);var ge=Se;return te.forEach(function(Ue){var $e=b.node(Ue);st[Ue]=N;var Ze=he($e[Ie],_t,Tt,N,Fe),Je=Ze.x,ht=Ze.y;if(s.nodeMap[Ue]){s.nodeMap[Ue].x=Je+O[0],s.nodeMap[Ue].y=ht+O[1],s.nodeMap[Ue]._order=$e._order;var Lt=S(s.nodeMap[Ue]);ge=ge})}:function(te,N,Se){var Fe=Math.max(N.x,Se.x),ge=Math.min(N.x,Se.x);return te.filter(function(Ue){return Ue.x<=Fe&&Ue.x>=ge})};b.edges().forEach(function(te){var N,Se=b.edge(te),Fe=m.findIndex(function($e){var Ze=(0,Rn.getEdgeTerminal)($e,"source"),Je=(0,Rn.getEdgeTerminal)($e,"target");return Ze===te.v&&Je===te.w});if(!(Fe<=-1)&&s.edgeLabelSpace&&s.controlPoints&&m[Fe].type!=="loop"){(N=Se==null?void 0:Se.points)===null||N===void 0||N.forEach(function($e){$e.x+=O[0],$e.y+=O[1]});var ge=s.nodeMap[te.v],Ue=s.nodeMap[te.w];m[Fe].controlPoints=VK(Se==null?void 0:Se.points,ge,Ue,sr,z,tn,tt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,edges:m}}},e.prototype.getRadialPos=function(t,n,a,i,o){o===void 0&&(o=[0,1]);var s=(t-n[0])/a;s=s*(o[1]-o[0])+o[0];var u=s*2*Math.PI;return{x:Math.cos(u)*i,y:Math.sin(u)*i}},e.prototype.getType=function(){return"dagre"},e}(XK.Base);pu.DagreLayout=WK;var VK=function(r,e,t,n,a,i,o){var s=(r==null?void 0:r.slice(1,r.length-1))||[];if(e&&t){var u=e.x,f=e.y,l=t.x,c=t.y;if(a&&(u=e.y,f=e.x,l=t.y,c=t.x),c!==f&&u!==l){var h=n.indexOf(f),d=n[h+1];if(d){var v=s[0],p=a?{x:(f+d)/2,y:(v==null?void 0:v.y)||l}:{x:(v==null?void 0:v.x)||l,y:(f+d)/2};(!v||i(v,p))&&s.unshift(p)}var g=n.indexOf(c),y=Math.abs(g-h);if(y===1)s=o(s,e,t),s.length||s.push(a?{x:(f+c)/2,y:u}:{x:u,y:(f+c)/2});else if(y>1){var m=n[g-1];if(m){var b=s[s.length-1],w=a?{x:(c+m)/2,y:(b==null?void 0:b.y)||l}:{x:(b==null?void 0:b.x)||u,y:(c+m)/2};(!b||i(b,w))&&s.push(w)}}}}return s},ul={};const Vh={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function yg(r={},e=Vh){var t,n,a,i;const o=JSON.parse(JSON.stringify(e)),s=((t=r==null?void 0:r.graph)===null||t===void 0?void 0:t.meta)||{},u=((n=r==null?void 0:r.subScene)===null||n===void 0?void 0:n.meta)||{},f=((a=r==null?void 0:r.nodeSize)===null||a===void 0?void 0:a.meta)||{},l=((i=r==null?void 0:r.nodeSize)===null||i===void 0?void 0:i.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,u)},nodeSize:{meta:Object.assign(o.nodeSize.meta,f),node:Object.assign(o.nodeSize.node,l),bridge:c}}}function HI(r){return`◬${r}◬`}const iu=HI("ROOT"),ZI=HI("BRIDGE_GRAPH");var kn,Vo,ou,mg;(function(r){r[r.META=0]="META",r[r.NODE=1]="NODE",r[r.BRIDGE=2]="BRIDGE"})(kn||(kn={})),function(r){r[r.INCLUDE=0]="INCLUDE",r[r.EXCLUDE=1]="EXCLUDE",r[r.UNSPECIFIED=2]="UNSPECIFIED"}(Vo||(Vo={})),function(r){r[r.META=0]="META",r[r.CORE=1]="CORE",r[r.BRIDGE=2]="BRIDGE"}(ou||(ou={})),function(r){r[r.META=0]="META",r[r.OP=1]="OP",r[r.SERIES=2]="SERIES"}(mg||(mg={}));var Ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Em(r,e){return r(e={exports:{}},e.exports),e.exports}var YK=function(){this.__data__=[],this.size=0},mu=function(r,e){return r===e||r!=r&&e!=e},jd=function(r,e){for(var t=r.length;t--;)if(mu(r[t][0],e))return t;return-1},qK=Array.prototype.splice,HK=function(r){var e=this.__data__,t=jd(e,r);return!(t<0)&&(t==e.length-1?e.pop():qK.call(e,t,1),--this.size,!0)},ZK=function(r){var e=this.__data__,t=jd(e,r);return t<0?void 0:e[t][1]},KK=function(r){return jd(this.__data__,r)>-1},QK=function(r,e){var t=this.__data__,n=jd(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this};function Ns(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r-1&&r%1==0&&r<=9007199254740991},br={};br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object Boolean]"]=br["[object DataView]"]=br["[object Date]"]=br["[object Error]"]=br["[object Function]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object WeakMap]"]=!1;var GQ=function(r){return wa(r)&&Sm(r.length)&&!!br[ao(r)]},qd=function(r){return function(e){return r(e)}},uu=Em(function(r,e){var t=e&&!e.nodeType&&e,n=t&&r&&!r.nodeType&&r,a=n&&n.exports===t&&KI.process,i=function(){try{var o=n&&n.require&&n.require("util").types;return o||a&&a.binding&&a.binding("util")}catch{}}();r.exports=i}),o_=uu&&uu.isTypedArray,cl=o_?qd(o_):GQ,zQ=Object.prototype.hasOwnProperty,ek=function(r,e){var t=Pr(r),n=!t&&su(r),a=!t&&!n&&Yo(r),i=!t&&!n&&!a&&cl(r),o=t||n||a||i,s=o?DQ(r.length,String):[],u=s.length;for(var f in r)!e&&!zQ.call(r,f)||o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Yd(f,u))||s.push(f);return s},jQ=Object.prototype,Hd=function(r){var e=r&&r.constructor;return r===(typeof e=="function"&&e.prototype||jQ)},tk=function(r,e){return function(t){return r(e(t))}},UQ=tk(Object.keys,Object),$Q=Object.prototype.hasOwnProperty,Mm=function(r){if(!Hd(r))return UQ(r);var e=[];for(var t in Object(r))$Q.call(r,t)&&t!="constructor"&&e.push(t);return e},Ei=function(r){return r!=null&&Sm(r.length)&&!fl(r)},io=function(r){return Ei(r)?ek(r):Mm(r)},XQ=function(r,e){return r&&ll(e,io(e),r)},WQ=function(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e},VQ=Object.prototype.hasOwnProperty,YQ=function(r){if(!Dn(r))return WQ(r);var e=Hd(r),t=[];for(var n in r)(n!="constructor"||!e&&VQ.call(r,n))&&t.push(n);return t},es=function(r){return Ei(r)?ek(r,!0):YQ(r)},qQ=function(r,e){return r&&ll(e,es(e),r)},rk=Em(function(r,e){var t=e&&!e.nodeType&&e,n=t&&r&&!r.nodeType&&r,a=n&&n.exports===t?_a.Buffer:void 0,i=a?a.allocUnsafe:void 0;r.exports=function(o,s){if(s)return o.slice();var u=o.length,f=i?i(u):new o.constructor(u);return o.copy(f),f}}),nk=function(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++ts))return!1;var f=i.get(r),l=i.get(e);if(f&&l)return f==e&&l==r;var c=-1,h=!0,d=2&t?new pk:void 0;for(i.set(r,e),i.set(e,r);++c0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}(iee),ev=function(r,e){return Pk(Dk(r,e,ts),r+"")},Rk=function(r,e,t,n){for(var a=r.length,i=t+-1;++i-1},cee=function(){},hee=Vs&&1/Om(new Vs([,-0]))[1]==1/0?function(r){return new Vs(r)}:cee,dee=function(r,e,t){var n=-1,a=lee,i=r.length,o=!0,s=[],u=s;if(i>=200){var f=hee(r);if(f)return Om(f);o=!1,a=gk,u=new pk}else u=s;e:for(;++ni){var o=a;a=i,i=o}return a+""+i+""+(ot.isUndefined(n)?"\0":n)}function gee(r,e,t,n){var a=""+e,i=""+t;if(!r&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return n&&(s.name=n),s}function qp(r,e){return hf(r,e.v,e.w,e.name)}tr.prototype._nodeCount=0,tr.prototype._edgeCount=0,tr.prototype.isDirected=function(){return this._isDirected},tr.prototype.isMultigraph=function(){return this._isMultigraph},tr.prototype.isCompound=function(){return this._isCompound},tr.prototype.setGraph=function(r){return this._label=r,this},tr.prototype.graph=function(){return this._label},tr.prototype.setDefaultNodeLabel=function(r){return ot.isFunction(r)||(r=ot.constant(r)),this._defaultNodeLabelFn=r,this},tr.prototype.nodeCount=function(){return this._nodeCount},tr.prototype.nodes=function(){return ot.keys(this._nodes)},tr.prototype.sources=function(){var r=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(r._in[e])})},tr.prototype.sinks=function(){var r=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(r._out[e])})},tr.prototype.setNodes=function(r,e){var t=arguments,n=this;return ot.each(r,function(a){t.length>1?n.setNode(a,e):n.setNode(a)}),this},tr.prototype.setNode=function(r,e){return ot.has(this._nodes,r)?(arguments.length>1&&(this._nodes[r]=e),this):(this._nodes[r]=arguments.length>1?e:this._defaultNodeLabelFn(r),this._isCompound&&(this._parent[r]="\0",this._children[r]={},this._children["\0"][r]=!0),this._in[r]={},this._preds[r]={},this._out[r]={},this._sucs[r]={},++this._nodeCount,this)},tr.prototype.node=function(r){return this._nodes[r]},tr.prototype.hasNode=function(r){return ot.has(this._nodes,r)},tr.prototype.removeNode=function(r){var e=this;if(ot.has(this._nodes,r)){var t=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[r],this._isCompound&&(this._removeFromParentsChildList(r),delete this._parent[r],ot.each(this.children(r),function(n){e.setParent(n)}),delete this._children[r]),ot.each(ot.keys(this._in[r]),t),delete this._in[r],delete this._preds[r],ot.each(ot.keys(this._out[r]),t),delete this._out[r],delete this._sucs[r],--this._nodeCount}return this},tr.prototype.setParent=function(r,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ot.isUndefined(e))e="\0";else{for(var t=e+="";!ot.isUndefined(t);t=this.parent(t))if(t===r)throw new Error("Setting "+e+" as parent of "+r+" would create a cycle");this.setNode(e)}return this.setNode(r),this._removeFromParentsChildList(r),this._parent[r]=e,this._children[e][r]=!0,this},tr.prototype._removeFromParentsChildList=function(r){delete this._children[this._parent[r]][r]},tr.prototype.parent=function(r){if(this._isCompound){var e=this._parent[r];if(e!=="\0")return e}},tr.prototype.children=function(r){if(ot.isUndefined(r)&&(r="\0"),this._isCompound){var e=this._children[r];if(e)return ot.keys(e)}else{if(r==="\0")return this.nodes();if(this.hasNode(r))return[]}},tr.prototype.predecessors=function(r){var e=this._preds[r];if(e)return ot.keys(e)},tr.prototype.successors=function(r){var e=this._sucs[r];if(e)return ot.keys(e)},tr.prototype.neighbors=function(r){var e=this.predecessors(r);if(e)return ot.union(e,this.successors(r))},tr.prototype.isLeaf=function(r){return(this.isDirected()?this.successors(r):this.neighbors(r)).length===0},tr.prototype.filterNodes=function(r){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var t=this;ot.each(this._nodes,function(i,o){r(o)&&e.setNode(o,i)}),ot.each(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,t.edge(i))});var n={};function a(i){var o=t.parent(i);return o===void 0||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:a(o)}return this._isCompound&&ot.each(e.nodes(),function(i){e.setParent(i,a(i))}),e},tr.prototype.setDefaultEdgeLabel=function(r){return ot.isFunction(r)||(r=ot.constant(r)),this._defaultEdgeLabelFn=r,this},tr.prototype.edgeCount=function(){return this._edgeCount},tr.prototype.edges=function(){return ot.values(this._edgeObjs)},tr.prototype.setPath=function(r,e){var t=this,n=arguments;return ot.reduce(r,function(a,i){return n.length>1?t.setEdge(a,i,e):t.setEdge(a,i),i}),this},tr.prototype.setEdge=function(){var r,e,t,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(r=i.v,e=i.w,t=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(r=i,e=arguments[1],t=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),r=""+r,e=""+e,ot.isUndefined(t)||(t=""+t);var o=hf(this._isDirected,r,e,t);if(ot.has(this._edgeLabels,o))return a&&(this._edgeLabels[o]=n),this;if(!ot.isUndefined(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(r),this.setNode(e),this._edgeLabels[o]=a?n:this._defaultEdgeLabelFn(r,e,t);var s=gee(this._isDirected,r,e,t);return r=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,x_(this._preds[e],r),x_(this._sucs[r],e),this._in[e][o]=s,this._out[r][o]=s,this._edgeCount++,this},tr.prototype.edge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t);return this._edgeLabels[n]},tr.prototype.hasEdge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t);return ot.has(this._edgeLabels,n)},tr.prototype.removeEdge=function(r,e,t){var n=arguments.length===1?qp(this._isDirected,arguments[0]):hf(this._isDirected,r,e,t),a=this._edgeObjs[n];return a&&(r=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],E_(this._preds[e],r),E_(this._sucs[r],e),delete this._in[e][n],delete this._out[r][n],this._edgeCount--),this},tr.prototype.inEdges=function(r,e){var t=this._in[r];if(t){var n=ot.values(t);return e?ot.filter(n,function(a){return a.v===e}):n}},tr.prototype.outEdges=function(r,e){var t=this._out[r];if(t){var n=ot.values(t);return e?ot.filter(n,function(a){return a.w===e}):n}},tr.prototype.nodeEdges=function(r,e){var t=this.inEdges(r,e);if(t)return t.concat(this.outEdges(r,e))};var __={Graph:Rm,version:"2.1.8"},yee={write:function(r){var e={options:{directed:r.isDirected(),multigraph:r.isMultigraph(),compound:r.isCompound()},nodes:mee(r),edges:bee(r)};return ot.isUndefined(r.graph())||(e.value=ot.clone(r.graph())),e},read:function(r){var e=new Rm(r.options).setGraph(r.value);return ot.each(r.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),ot.each(r.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}};function mee(r){return ot.map(r.nodes(),function(e){var t=r.node(e),n=r.parent(e),a={v:e};return ot.isUndefined(t)||(a.value=t),ot.isUndefined(n)||(a.parent=n),a})}function bee(r){return ot.map(r.edges(),function(e){var t=r.edge(e),n={v:e.v,w:e.w};return ot.isUndefined(e.name)||(n.name=e.name),ot.isUndefined(t)||(n.value=t),n})}var wee=function(r){var e,t={},n=[];function a(i){ot.has(t,i)||(t[i]=!0,e.push(i),ot.each(r.successors(i),a),ot.each(r.predecessors(i),a))}return ot.each(r.nodes(),function(i){e=[],a(i),e.length&&n.push(e)}),n},Gk=Qn;function Qn(){this._arr=[],this._keyIndices={}}Qn.prototype.size=function(){return this._arr.length},Qn.prototype.keys=function(){return this._arr.map(function(r){return r.key})},Qn.prototype.has=function(r){return ot.has(this._keyIndices,r)},Qn.prototype.priority=function(r){var e=this._keyIndices[r];if(e!==void 0)return this._arr[e].priority},Qn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Qn.prototype.add=function(r,e){var t=this._keyIndices;if(r=String(r),!ot.has(t,r)){var n=this._arr,a=n.length;return t[r]=a,n.push({key:r,priority:e}),this._decrease(a),!0}return!1},Qn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},Qn.prototype.decrease=function(r,e){var t=this._keyIndices[r];if(e>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[t].priority+" New: "+e);this._arr[t].priority=e,this._decrease(t)},Qn.prototype._heapify=function(r){var e=this._arr,t=2*r,n=t+1,a=r;t>1].priority0&&(u=c.removeMin(),(f=l[u]).distance!==Number.POSITIVE_INFINITY);)s(u).forEach(h);return l}(r,String(e),t||xee,n||function(a){return r.outEdges(a)})},xee=ot.constant(1),Eee=function(r,e,t){return ot.transform(r.nodes(),function(n,a){n[a]=zk(r,a,e,t)},{})},jk=function(r){var e=0,t=[],n={},a=[];function i(o){var s=n[o]={onStack:!0,lowlink:e,index:e++};if(t.push(o),r.successors(o).forEach(function(l){ot.has(n,l)?n[l].onStack&&(s.lowlink=Math.min(s.lowlink,n[l].index)):(i(l),s.lowlink=Math.min(s.lowlink,n[l].lowlink))}),s.lowlink===s.index){var u,f=[];do u=t.pop(),n[u].onStack=!1,f.push(u);while(o!==u);a.push(f)}}return r.nodes().forEach(function(o){ot.has(n,o)||i(o)}),a},_ee=function(r){return ot.filter(jk(r),function(e){return e.length>1||e.length===1&&r.hasEdge(e[0],e[0])})},See=function(r,e,t){return function(n,a,i){var o={},s=n.nodes();return s.forEach(function(u){o[u]={},o[u][u]={distance:0},s.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),i(u).forEach(function(f){var l=f.v===u?f.w:f.v,c=a(f);o[u][l]={distance:c,predecessor:u}})}),s.forEach(function(u){var f=o[u];s.forEach(function(l){var c=o[l];s.forEach(function(h){var d=c[u],v=f[h],p=c[h],g=d.distance+v.distance;g0;){if(t=i.removeMin(),ot.has(a,t))n.setEdge(t,a[t]);else{if(s)throw new Error("Input graph is not connected: "+r);s=!0}r.nodeEdges(t).forEach(o)}return n},tarjan:jk,topsort:Hp},version:__.version};try{Kh=Aee}catch{}Kh||(Kh=window.graphlib);var Sa=Kh,Cee=function(r){return ck(r,5)},$f=function(r,e,t){if(!Dn(t))return!1;var n=typeof e;return!!(n=="number"?Ei(t)&&Yd(e,t.length):n=="string"&&e in t)&&mu(t[e],r)},Xk=Object.prototype,Tee=Xk.hasOwnProperty,Iee=ev(function(r,e){r=Object(r);var t=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&$f(e[0],e[1],a)&&(n=1);++t-1?a[i?e[o]:o]:void 0}},Nee=/^\s+|\s+$/g,Oee=/^[-+]0x[0-9a-f]+$/i,Lee=/^0b[01]+$/i,Dee=/^0o[0-7]+$/i,Pee=parseInt,Ree=function(r){if(typeof r=="number")return r;if(Ho(r))return NaN;if(Dn(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Dn(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=r.replace(Nee,"");var t=Lee.test(r);return t||Dee.test(r)?Pee(r.slice(2),t?2:8):Oee.test(r)?NaN:+r},lh=function(r){return r?(r=Ree(r))===1/0||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},Fee=function(r){var e=lh(r),t=e%1;return e==e?t?e-t:e:0},Bee=Math.max,Gee=kee(function(r,e,t){var n=r==null?0:r.length;if(!n)return-1;var a=t==null?0:Fee(t);return a<0&&(a=Bee(n+a,0)),Rk(r,_i(e),a)}),Wk=function(r){return r!=null&&r.length?Pm(r):[]},zee=function(r,e){return r==null?r:km(r,hk(e),es)},jee=function(r){var e=r==null?0:r.length;return e?r[e-1]:void 0},Uee=function(r,e){var t={};return e=_i(e),Nm(r,function(n,a,i){Wd(t,a,e(n,a,i))}),t},Fm=function(r,e,t){for(var n=-1,a=r.length;++ne},Xee=function(r){return r&&r.length?Fm(r,ts,$ee):void 0},Mg=function(r,e,t){(t!==void 0&&!mu(r[e],t)||t===void 0&&!(e in r))&&Wd(r,e,t)},Wee=Function.prototype,Vee=Object.prototype,Vk=Wee.toString,Yee=Vee.hasOwnProperty,qee=Vk.call(Object),Hee=function(r){if(!wa(r)||ao(r)!="[object Object]")return!1;var e=Zd(r);if(e===null)return!0;var t=Yee.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Vk.call(t)==qee},M_=function(r,e){if((e!=="constructor"||typeof r[e]!="function")&&e!="__proto__")return r[e]},Zee=function(r){return ll(r,es(r))},Kee=function(r,e,t,n,a,i,o){var s=M_(r,t),u=M_(e,t),f=o.get(u);if(f)Mg(r,t,f);else{var l=void 0,c=l===void 0;if(c){var h=Pr(u),d=!h&&Yo(u),v=!h&&!d&&cl(u);l=u,h||d||v?Pr(s)?l=s:Fk(s)?l=nk(s):d?(c=!1,l=rk(u,!0)):v?(c=!1,l=uk(u,!0)):l=[]:Hee(u)||su(u)?(l=s,su(s)?l=Zee(s):Dn(s)&&!fl(s)||(l=lk(u))):c=!1}c&&(o.set(u,l),a(l,u,n,i,o),o.delete(u)),Mg(r,t,l)}},Qee=function r(e,t,n,a,i){e!==t&&km(t,function(o,s){if(i||(i=new Ws),Dn(o))Kee(e,t,s,n,r,a,i);else{var u=void 0;u===void 0&&(u=o),Mg(e,s,u)}},es)},Jee=function(r){return ev(function(e,t){var n=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(a--,i):void 0,o&&$f(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ne||i&&o&&u&&!s&&!f||n&&o&&u||!t&&u||!a)return 1;if(!n&&!i&&!f&&r=s?u:u*(t[n]=="desc"?-1:1)}return r.index-e.index},vte=function(r,e,t){e=e.length?Ys(e,function(i){return Pr(i)?function(o){return Jd(o,i.length===1?i[0]:i)}:i}):[ts];var n=-1;e=Ys(e,qd(_i));var a=Tk(r,function(i,o,s){return{criteria:Ys(e,function(u){return u(i)}),index:++n,value:i}});return cte(a,function(i,o){return dte(i,o,t)})},pte=ev(function(r,e){if(r==null)return[];var t=e.length;return t>1&&$f(r,e[0],e[1])?e=[]:t>2&&$f(e[0],e[1],e[2])&&(e=[e[0]]),vte(r,Pm(e),[])}),gte=0,yte=function(r){var e=++gte;return xk(r)+e},mte=function(r,e,t){for(var n=-1,a=r.length,i=e.length,o={};++n0;--c)if(s=i[c].dequeue()){u=u.concat(Zp(a,i,o,s,!0));break}}}return u}(t.graph,t.buckets,t.zeroIdx);return Z.flatten(Z.map(n,function(a){return r.outEdges(a.v,a.w)}),!0)},Ste=Z.constant(1);function Zp(r,e,t,n,a){var i=a?[]:void 0;return Z.forEach(r.inEdges(n.v),function(o){var s=r.edge(o),u=r.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=s,Ag(e,t,u)}),Z.forEach(r.outEdges(n.v),function(o){var s=r.edge(o),u=o.w,f=r.node(u);f.in-=s,Ag(e,t,f)}),r.removeNode(n.v),i}function Ag(r,e,t){t.out?t.in?r[t.out-t.in+e].enqueue(t):r[r.length-1].enqueue(t):r[0].enqueue(t)}var C_={run:function(r){var e=r.graph().acyclicer==="greedy"?_te(r,function(t){return function(n){return t.edge(n).weight}}(r)):function(t){var n=[],a={},i={};function o(s){Z.has(i,s)||(i[s]=!0,a[s]=!0,Z.forEach(t.outEdges(s),function(u){Z.has(a,u.w)?n.push(u):o(u.w)}),delete a[s])}return Z.forEach(t.nodes(),o),n}(r);Z.forEach(e,function(t){var n=r.edge(t);r.removeEdge(t),n.forwardName=t.name,n.reversed=!0,r.setEdge(t.w,t.v,n,Z.uniqueId("rev"))})},undo:function(r){Z.forEach(r.edges(),function(e){var t=r.edge(e);if(t.reversed){r.removeEdge(e);var n=t.forwardName;delete t.reversed,delete t.forwardName,r.setEdge(e.w,e.v,t,n)}})}},T_=Sa.Graph,Mn={addDummyNode:I_,simplify:function(r){var e=new T_().setGraph(r.graph());return Z.forEach(r.nodes(),function(t){e.setNode(t,r.node(t))}),Z.forEach(r.edges(),function(t){var n=e.edge(t.v,t.w)||{weight:0,minlen:1},a=r.edge(t);e.setEdge(t.v,t.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e},asNonCompoundGraph:function(r){var e=new T_({multigraph:r.isMultigraph()}).setGraph(r.graph());return Z.forEach(r.nodes(),function(t){r.children(t).length||e.setNode(t,r.node(t))}),Z.forEach(r.edges(),function(t){e.setEdge(t,r.edge(t))}),e},successorWeights:function(r){var e=Z.map(r.nodes(),function(t){var n={};return Z.forEach(r.outEdges(t),function(a){n[a.w]=(n[a.w]||0)+r.edge(a).weight}),n});return Z.zipObject(r.nodes(),e)},predecessorWeights:function(r){var e=Z.map(r.nodes(),function(t){var n={};return Z.forEach(r.inEdges(t),function(a){n[a.v]=(n[a.v]||0)+r.edge(a).weight}),n});return Z.zipObject(r.nodes(),e)},intersectRect:function(r,e){var t,n,a=r.x,i=r.y,o=e.x-a,s=e.y-i,u=r.width/2,f=r.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*f?(s<0&&(f=-f),t=f*o/s,n=f):(o<0&&(u=-u),t=u,n=u*s/o),{x:a+t,y:i+n}},buildLayerMatrix:function(r){var e=Z.map(Z.range(k_(r)+1),function(){return[]});return Z.forEach(r.nodes(),function(t){var n=r.node(t),a=n.rank;Z.isUndefined(a)||(e[a][n.order]=t)}),e},normalizeRanks:function(r){var e=Z.min(Z.map(r.nodes(),function(t){return r.node(t).rank}));Z.forEach(r.nodes(),function(t){var n=r.node(t);Z.has(n,"rank")&&(n.rank-=e)})},removeEmptyRanks:function(r){var e=Z.min(Z.map(r.nodes(),function(i){return r.node(i).rank})),t=[];Z.forEach(r.nodes(),function(i){var o=r.node(i).rank-e;t[o]||(t[o]=[]),t[o].push(i)});var n=0,a=r.graph().nodeRankFactor;Z.forEach(t,function(i,o){Z.isUndefined(i)&&o%a!=0?--n:n&&Z.forEach(i,function(s){r.node(s).rank+=n})})},addBorderNode:function(r,e,t,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=t,a.order=n),I_(r,"border",a,e)},maxRank:k_,partition:function(r,e){var t={lhs:[],rhs:[]};return Z.forEach(r,function(n){e(n)?t.lhs.push(n):t.rhs.push(n)}),t},time:function(r,e){var t=Z.now();try{return e()}finally{console.log(r+" time: "+(Z.now()-t)+"ms")}},notime:function(r,e){return e()}};function I_(r,e,t,n){var a;do a=Z.uniqueId(n);while(r.hasNode(a));return t.dummy=e,r.setNode(a,t),a}function k_(r){return Z.max(Z.map(r.nodes(),function(e){var t=r.node(e).rank;if(!Z.isUndefined(t))return t}))}var N_={run:function(r){r.graph().dummyChains=[],Z.forEach(r.edges(),function(e){(function(t,n){var a,i,o,s=n.v,u=t.node(s).rank,f=n.w,l=t.node(f).rank,c=n.name,h=t.edge(n),d=h.labelRank;if(l!==u+1){for(t.removeEdge(n),o=0,++u;uo.lim&&(s=o,u=!0);var f=Z.filter(e.edges(),function(l){return u===O_(r,r.node(l.v),s)&&u!==O_(r,r.node(l.w),s)});return Z.minBy(f,function(l){return Ite(e,l)})}function tN(r,e,t,n){var a=t.v,i=t.w;r.removeEdge(a,i),r.setEdge(n.v,n.w,{}),Gm(r),Bm(r,e),function(o,s){var u=Z.find(o.nodes(),function(l){return!s.node(l).parent}),f=Nte(o,u);f=f.slice(1),Z.forEach(f,function(l){var c=o.node(l).parent,h=s.edge(l,c),d=!1;h||(h=s.edge(c,l),d=!0),s.node(l).rank=s.node(c).rank+(d?h.minlen:-h.minlen)})}(r,e)}function O_(r,e,t){return t.low<=e.lim&&e.lim<=t.lim}Lo.initLowLimValues=Gm,Lo.initCutValues=Bm,Lo.calcCutValue=Kk,Lo.leaveEdge=Jk,Lo.enterEdge=eN,Lo.exchangeEdges=tN;var rN=qk,Pte=function(r){switch(r.graph().ranker){case"network-simplex":L_(r);break;case"tight-tree":(function(e){rN(e),Zk(e)})(r);break;case"longest-path":Rte(r);break;default:L_(r)}},Rte=rN;function L_(r){Dte(r)}var Fte=function(r){var e=function(t){var n={},a=0;function i(o){var s=a;Z.forEach(t.children(o),i),n[o]={low:s,lim:a++}}return Z.forEach(t.children(),i),n}(r);Z.forEach(r.graph().dummyChains,function(t){for(var n=r.node(t),a=n.edgeObj,i=function(c,h,d,v){var p,g,y=[],m=[],b=Math.min(h[d].low,h[v].low),w=Math.max(h[d].lim,h[v].lim);p=d;do p=c.parent(p),y.push(p);while(p&&(h[p].low>b||w>h[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)m.push(p);return{path:y.concat(m.reverse()),lca:g}}(r,e,a.v,a.w),o=i.path,s=i.lca,u=0,f=o[u],l=!0;t!==a.w;){if(n=r.node(t),l){for(;(f=o[u])!==s&&r.node(f).maxRank0;)l%2&&(c+=s[l+1]),s[l=l-1>>1]+=f.weight;u+=f.weight*c})),u}var Ute=function(r,e){return Z.map(e,function(t){var n=r.inEdges(t);if(n.length){var a=Z.reduce(n,function(i,o){var s=r.edge(o),u=r.node(o.v);return{sum:i.sum+s.weight*u.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:t,barycenter:a.sum/a.weight,weight:a.weight}}return{v:t}})},$te=function(r,e){var t={};return Z.forEach(r,function(n,a){var i=t[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};Z.isUndefined(n.barycenter)||(i.barycenter=n.barycenter,i.weight=n.weight)}),Z.forEach(e.edges(),function(n){var a=t[n.v],i=t[n.w];Z.isUndefined(a)||Z.isUndefined(i)||(i.indegree++,a.out.push(t[n.w]))}),function(n){var a=[];function i(u){return function(f){f.merged||(Z.isUndefined(f.barycenter)||Z.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&function(l,c){var h=0,d=0;l.weight&&(h+=l.barycenter*l.weight,d+=l.weight),c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),l.vs=c.vs.concat(l.vs),l.barycenter=h/d,l.weight=d,l.i=Math.min(c.i,l.i),c.merged=!0}(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree==0&&n.push(f)}}for(;n.length;){var s=n.pop();a.push(s),Z.forEach(s.in.reverse(),i(s)),Z.forEach(s.out,o(s))}return Z.map(Z.filter(a,function(u){return!u.merged}),function(u){return Z.pick(u,["vs","i","barycenter","weight"])})}(Z.filter(t,function(n){return!n.indegree}))},Xte=function(r,e){var t=Mn.partition(r,function(c){return Z.has(c,"barycenter")}),n=t.lhs,a=Z.sortBy(t.rhs,function(c){return-c.i}),i=[],o=0,s=0,u=0;n.sort((f=!!e,function(c,h){return c.barycenterh.barycenter?1:f?h.i-c.i:c.i-h.i})),u=G_(i,a,u),Z.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,u=G_(i,a,u)});var f,l={vs:Z.flatten(i,!0)};return s&&(l.barycenter=o/s,l.weight=s),l};function G_(r,e,t){for(var n;e.length&&(n=Z.last(e)).i<=t;)e.pop(),r.push(n.vs),t++;return t}var Wte=function r(e,t,n,a){var i=e.children(t),o=e.node(t),s=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};s&&(i=Z.filter(i,function(p){return p!==s&&p!==u}));var l=Ute(e,i);Z.forEach(l,function(p){if(e.children(p.v).length){var g=r(e,p.v,n,a);f[p.v]=g,Z.has(g,"barycenter")&&(y=p,m=g,Z.isUndefined(y.barycenter)?(y.barycenter=m.barycenter,y.weight=m.weight):(y.barycenter=(y.barycenter*y.weight+m.barycenter*m.weight)/(y.weight+m.weight),y.weight+=m.weight))}var y,m});var c=$te(l,n);(function(p,g){Z.forEach(p,function(y){y.vs=Z.flatten(y.vs.map(function(m){return g[m]?g[m].vs:m}),!0)})})(c,f);var h=Xte(c,a);if(s&&(h.vs=Z.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(u)[0]);Z.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+v.order)/(h.weight+2),h.weight+=2}return h},Vte=Sa.Graph,Yte=function(r,e,t){var n=function(i){for(var o;i.hasNode(o=Z.uniqueId("_root")););return o}(r),a=new Vte({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return r.node(i)});return Z.forEach(r.nodes(),function(i){var o=r.node(i),s=r.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(a.setNode(i),a.setParent(i,s||n),Z.forEach(r[t](i),function(u){var f=u.v===i?u.w:u.v,l=a.edge(f,i),c=Z.isUndefined(l)?0:l.weight;a.setEdge(f,i,{weight:r.edge(u).weight+c})}),Z.has(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),a},qte=function(r,e,t){var n,a={};Z.forEach(t,function(i){for(var o,s,u=r.parent(i);u;){if((o=r.parent(u))?(s=a[o],a[o]=u):(s=n,n=u),s&&s!==u)return void e.setEdge(s,u);u=o}})},Hte=Sa.Graph,Zte=function(r){var e=Mn.maxRank(r),t=z_(r,Z.range(1,e+1),"inEdges"),n=z_(r,Z.range(e-1,-1,-1),"outEdges"),a=Gte(r);j_(r,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){Kte(s%2?t:n,s%4>=2),a=Mn.buildLayerMatrix(r);var f=zte(r,a);fu)&&aN(t,c,f)})})}return Z.reduce(e,function(a,i){var o,s=-1,u=0;return Z.forEach(i,function(f,l){if(r.node(f).dummy==="border"){var c=r.predecessors(f);c.length&&(o=r.node(c[0]).order,n(i,u,l,s,o),u=l,s=o)}n(i,u,i.length,o,a.length)}),i}),t}function aN(r,e,t){if(e>t){var n=e;e=t,t=n}var a=r[e];a||(r[e]=a={}),a[t]=!0}function rre(r,e,t){if(e>t){var n=e;e=t,t=n}return Z.has(r[e],t)}function nre(r,e,t,n){var a={},i={},o={};return Z.forEach(e,function(s){Z.forEach(s,function(u,f){a[u]=u,i[u]=u,o[u]=f})}),Z.forEach(e,function(s){var u=-1;Z.forEach(s,function(f){var l=n(f);if(l.length)for(var c=((l=Z.sortBy(l,function(p){return o[p]})).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var v=l[h];i[f]===f&&unew Sre(t)).forEach(t=>{e.nodes[t.name]=t,t.inputs.forEach(n=>{(function(a,i,o){o.name!==i.name&&a.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:i.name}))})(e,t,n)})}),e}class Cre{constructor(e,t={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Vo.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=kn.META,this.path=[],this.name=e,this.metaGraph=zm(e,ou.META,t)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,t=[],n=[this];for(;n.length;){let a=n.shift();a.isGroupNode?(e=a.metaGraph,e.nodes().forEach(i=>n.push(e.node(i)))):t.push(a.name)}return t}}class Tre{constructor(e,t){this.v=e,this.w=t,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,t){this.baseEdgeList.push(e)}}function oN(r,e={}){return new Cre(r,e)}function sN(r,e){return new Tre(r,e)}function zm(r,e,t){const n=t||{},a=new Ere.Graph(n);return a.setGraph({name:r,rankdir:n.rankdir,type:e,align:n.align}),a}class Ire{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=oN(iu,this.graphOptions),this.index[iu]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,t){this.index[e]=t}getBridgeGraph(e){const t=this.index[e];if(!t)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in t))return null;const n=t;if(n.bridgeGraph)return n.bridgeGraph;const a=zm(ZI,ou.BRIDGE,this.graphOptions);if(n.bridgeGraph=a,!t.parentNode||!("metaGraph"in t.parentNode))return a;const i=t.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const u=s.w===e;o.edge(s).baseEdgeList.forEach(f=>{const[l,c]=u?[f.w,s.v]:[f.v,s.w],h=this.getChildName(e,l),d={v:u?c:h,w:u?h:c};let v=a.edge(d);v||(v=sN(d.v,d.w),v.inbound=u,a.setEdge(d.v,d.w,v)),v.addBaseEdge(f,this)})})}),a}getChildName(e,t){let n=this.index[t];for(;n;){if(n.parentNode&&n.parentNode.name===e)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+t)}getPredecessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!0)}getSuccessors(e){const t=this.index[e];if(!t)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(t,!1)}getOneWayEdges(e,t){const n=[];if(!e.parentNode||!e.parentNode.isGroupNode)return n;const a=e.parentNode,i=a.metaGraph,o=this.getBridgeGraph(a.name);return U_(i,e,t,n),U_(o,e,t,n),n}}function kre(r,e){const{rankDirection:t,align:n}=e,a=new Ire({rankdir:t,align:n});return function(i,o){Object.keys(o.nodes).forEach(s=>{const u=o.nodes[s],f=u.path;let l=i.root;l.depth=Math.max(f.length,l.depth);for(let c=0;c{let d=0;for(;c;)h[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{u=[],f=[];let h=l(o.nodes[c.v],u),d=l(o.nodes[c.w],f);for(;u[h]===f[d];)if(h--,d--,h<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[u[h+1]],p=u[h],g=f[d];let y=v.metaGraph.edge(p,g);y||(y=sN(p,g),v.metaGraph.setEdge(p,g,y)),y.addBaseEdge(c,i)})}(a,r),a}function U_(r,e,t,n){(t?r.inEdges(e.name):r.outEdges(e.name)).forEach(a=>{const i=r.edge(a);n.push(i)})}class Nre{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new X_(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const t=this.index[e];if(t.node.type!==kn.META)return;const n=t,a=n.node.metaGraph,i=n.coreGraph;a.nodes().forEach(l=>{const c=this.getOrCreateRenderNodeByName(l);i.setNode(l,c)}),a.edges().forEach(l=>{const c=a.edge(l),h=new $_(c);i.setEdge(l.v,l.w,h)});const o=n.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),u=(l,...c)=>c.concat([l?"IN":"OUT"]).join("~~"),f=this.hierarchy.getBridgeGraph(e);f.edges().forEach(l=>{const c=f.edge(l),h=!!a.node(l.w),[d,v]=h?[l.w,l.v]:[l.v,l.w],p=x=>{const E=h?{v:x,w:e}:{v:e,w:x};return s.coreGraph.edge(E)};let g=p(v);g||(g=p(u(h,v,o.name)));const y=u(h,e),m=u(h,v,e);let b=i.node(m);if(!b){let x=i.node(y);if(!x){const _={name:y,type:kn.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Vo.UNSPECIFIED,inbound:h,attr:{}};x=new hh(_),this.index[y]=x,i.setNode(y,x)}const E={name:m,type:kn.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Vo.UNSPECIFIED,inbound:h,attr:{}};b=new hh(E),this.index[m]=b,i.setNode(m,b),i.setParent(m,y),x.node.cardinality++}const w=new $_(c);w.adjoiningMetaEdge=g,h?i.setEdge(m,d,w):i.setEdge(d,m,w)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const t=this.getNodeByName(e);return t?(this.index[e]=t.isGroupNode?new X_(t,this.hierarchy.graphOptions):new hh(t),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class hh{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class $_{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class X_ extends hh{constructor(e,t){super(e);const n=e.metaGraph.graph();t.compound=!0,this.coreGraph=zm(n.name,ou.CORE,t)}}function uN(r,e){r.node.isGroupNode&&function(t,n){const a=yg(n);t.coreGraph.nodes().map(i=>t.coreGraph.node(i)).forEach(i=>{var o,s,u,f,l,c;const{height:h,width:d}=i;switch(i.node.type){case kn.NODE:Object.assign(i,a.nodeSize.node),i.height=h||a.nodeSize.node.height,i.width=d||a.nodeSize.node.width;break;case kn.BRIDGE:Object.assign(i,a.nodeSize.bridge);break;case kn.META:i.expanded?uN(i,n):(Object.assign(i,a.nodeSize.meta),i.height=a.nodeSize.meta.height,i.width=a.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}if(!i.expanded){const v=i.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const y=`${p.displayName}`.length,m=3;p.width=Math.max(p.coreBox.width,y*m)}})(i,n&&(i.node.type===0&&!!(!((s=(o=n==null?void 0:n.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||i.node.type===1&&(!!(!((f=(u=n==null?void 0:n.nodeSize)===null||u===void 0?void 0:u.node)===null||f===void 0)&&f.width)||!!v.width)||i.node.type===2&&!!(!((c=(l=n==null?void 0:n.nodeSize)===null||l===void 0?void 0:l.bridge)===null||c===void 0)&&c.width)))}})}(r,e),r.node.type===kn.META&&function(t,n){const a=yg(n),i=a.subScene.meta;Object.assign(t,i);const{nodeSep:o,rankSep:s,edgeSep:u,align:f}=a.graph.meta,l={nodesep:o,ranksep:s,edgesep:u,align:f};Object.assign(t.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:y,align:m}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:y,align:m});const b=[];if(d.nodes().forEach(S=>{d.node(S).node.type!==kn.BRIDGE&&b.push(S)}),!b.length)return{width:0,height:0};_re(d);let w=1/0,x=1/0,E=-1/0,_=-1/0;return b.forEach(S=>{const A=d.node(S),M=.5*A.width,C=A.x-M,I=A.x+M;w=CE?I:E;const k=.5*A.height,O=A.y-k,B=A.y+k;x=O_?B:_}),d.edges().forEach(S=>{const A=d.edge(S),M=d.node(A.metaEdge.v),C=d.node(A.metaEdge.w);if(A.points.length===3&&function(O){let B=W_(O[0],O[1]);for(let L=1;L1)return!1;B=z}return!0}(A.points)){if(M!=null){const O=M.expanded?M.x:Cg(M);A.points[0].x=O}if(C!=null){const O=C.expanded?C.x:Cg(C);A.points[2].x=O}A.points=[A.points[0],A.points[1]]}const I=A.points[A.points.length-2];C!=null&&(A.points[A.points.length-1]=V_(I,C));const k=A.points[1];M!=null&&(A.points[0]=V_(k,M)),A.points.forEach(O=>{w=O.xE?O.x:E,x=O.y_?O.y:_})}),d.nodes().forEach(S=>{const A=d.node(S);A.x-=w,A.y-=x}),d.edges().forEach(S=>{d.edge(S).points.forEach(A=>{A.x-=w,A.y-=x})}),{width:E-w,height:_-x}}(t.coreGraph,l));let c=0;t.coreGraph.nodeCount()>0&&c++;const h=c<=1?0:c;t.coreBox.width+=h+h,t.coreBox.height=i.labelHeight+t.coreBox.height,t.width=t.coreBox.width+i.paddingLeft+i.paddingRight,t.height=t.paddingTop+t.coreBox.height+t.paddingBottom}(r,e)}function W_(r,e){const t=e.x-r.x,n=e.y-r.y;return 180*Math.atan(n/t)/Math.PI}function Cg(r){return r.expanded?r.x:r.x-r.width/2+0+r.coreBox.width/2}function V_(r,e){const t=e.expanded?e.x:Cg(e),n=e.y,a=r.x-t,i=r.y-n;let o,s,u=e.expanded?e.width:e.coreBox.width,f=e.expanded?e.height:e.coreBox.height;return Math.abs(i)*u/2>Math.abs(a)*f/2?(i<0&&(f=-f),o=i===0?0:f/2*a/i,s=f/2):(a<0&&(u=-u),o=u/2,s=a===0?0:u/2*i/a),{x:t+o,y:n+s}}function Ore(r,e,t){var n,a,i,o;const s=r.nodes.filter((c,h,d)=>d.findIndex(v=>v.id===c.id)!==h).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const u=function(c){const h={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(m,b=[])=>{if(p.has(m))return p.get(m);for(let w=0;wc.edges.filter(b=>b.w===m).map(b=>({name:b.v}));return c.nodes.forEach(m=>{const b=m.id,w=[...g(b),b];let x=y(b);h.nodes.push({name:b,path:w,inputs:x,width:m.width,height:m.height,attr:Object.assign({},m)})}),h}(r),f=function(c,h){const d=(p,g)=>{for(let y of g.values())if(y.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const y=new Map(Object.keys(p).map(b=>[b,p[b]])),m={};for(let[b,w]of y)d(b,y)?m[b]=w:g=g.concat(b,w);return v(m,g)};return v(c).filter(p=>h.includes(p))}(r.compound||{},(e==null?void 0:e.expanded)||[]),l=function(c,h){return function(d){return new Nre(d)}(kre(Are(c),h))}(u,{rankDirection:((a=(n=t==null?void 0:t.graph)===null||n===void 0?void 0:n.meta)===null||a===void 0?void 0:a.rankDir)||(e==null?void 0:e.rankDirection)||Vh.graph.meta.rankDir,align:((o=(i=t==null?void 0:t.graph)===null||i===void 0?void 0:i.meta)===null||o===void 0?void 0:o.align)||Vh.graph.meta.align});return function(c,h){h.forEach(d=>{const v=c.getRenderInfoNodes().find(y=>y.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(l,f),uN(l.root,t),fN(l.root)}function Lre(r,e=!1){const t=JSON.parse(JSON.stringify(r)),n={nodes:[t],edges:[...t.edges]};return t.nodes.forEach(function a(i){(i.type===0||i.type===1)&&n.nodes.push(i),i.type===0&&(n.edges=n.edges.concat(i.edges)),Array.isArray(i.nodes)&&i.nodes.forEach(a)}),e&&n.nodes.forEach(a=>{const i=n.nodes.find(o=>o.id===a.parentNodeName);if(i){const o=i.x-i.width/2+i.paddingLeft,s=i.y-i.height/2+i.labelHeight+i.paddingTop;i.id!==iu&&(a.x+=o,a.y+=s),a.type===0&&a.edges.forEach(u=>{u.points.forEach(f=>{f.x+=a.x-a.width/2+a.paddingLeft,f.y+=a.y-a.height/2+a.labelHeight+a.paddingTop})})}}),n}function Dre(r,e,t,n){var a,i;let o=[];const s=((a=t.find(c=>c.id===r))===null||a===void 0?void 0:a.path)||[],u=((i=t.find(c=>c.id===e))===null||i===void 0?void 0:i.path)||[],f=[iu,...s].slice(0,s.length).reverse(),l=[iu,...u].slice(0,u.length);return f.forEach(c=>{const h=t.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||r)&&v.w===((n==null?void 0:n.w)||e))))}),l.filter(c=>!f.includes(c)).forEach(c=>{const h=t.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||r)&&v.w===((n==null?void 0:n.w)||e))))}),o}function fN(r){const e=r.coreGraph.nodes().map(n=>r.coreGraph.node(n));return Object.assign(Object.assign({},Y_(r)),{expanded:r.expanded,nodes:r.expanded?(t=e,t.map(n=>n.node.type===kn.META?fN(n):Y_(n))):[],edges:r.expanded?Pre(r):[]});var t}function Y_(r){return{id:r.node.name,name:r.node.name,type:r.node.type,cardinality:r.node.cardinality,attr:r.attr,parentNodeName:r.node.parentNode?r.node.parentNode.name:null,coreBox:Object.assign({},r.coreBox),x:r.x,y:r.y,width:r.width,height:r.height,radius:r.radius,labelHeight:r.labelHeight,labelOffset:r.labelOffset,outboxWidth:r.outboxWidth,paddingLeft:r.paddingLeft,paddingTop:r.paddingTop,paddingRight:r.paddingRight,paddingBottom:r.paddingBottom,path:r.node.path}}function Pre(r){return r.coreGraph.edges().map(e=>({renderInfoEdge:r.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:t})=>{const n=function(a,i){const o=i.points.map(s=>Object.assign({},s));if(i.adjoiningMetaEdge){const s=i.adjoiningMetaEdge.points,u=i.metaEdge.inbound,f=u?s[s.length-1]:s[0],l=o[u?0:o.length-1],c=a.x-a.width/2,h=a.y-a.height/2,d=f.x-c,v=f.y-h,p=-a.paddingLeft,g=-(a.paddingTop+a.labelHeight);l.x=d+p,l.y=v+g}return o}(r,t);return{adjoiningEdge:t.adjoiningMetaEdge?{w:t.adjoiningMetaEdge.metaEdge.w,v:t.adjoiningMetaEdge.metaEdge.v}:null,inbound:t.metaEdge.inbound,w:e.w,v:e.v,points:n,weight:t.weight,baseEdgeList:t.metaEdge.baseEdgeList,parentNodeName:r.node.name}})}const Rre=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:ZI,get GraphType(){return ou},get HierarchyNodeType(){return mg},get InclusionType(){return Vo},LAYOUT_CONFIG:Vh,get NodeType(){return kn},ROOT_NAME:iu,buildGraph:Ore,flatGraph:Lre,getEdges:Dre,mergeConfig:yg},Symbol.toStringTag,{value:"Module"})),Fre=Ka(Rre);var Bre=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),va=me&&me.__assign||function(){return va=Object.assign||function(r){for(var e,t=1,n=arguments.length;tf.x&&(s=f.x),u>f.y&&(u=f.y)}),n.forEach(function(f){f.points.forEach(function(l){s>l.x&&(s=l.x),u>l.y&&(u=l.y)})}),o[0]=i[0]-s,o[1]=i[1]-u}return o},e.prototype.updateNodePosition=function(t,n){var a=this,i=a.combos,o=a.nodes,s=a.edges,u=a.anchorPoint,f=a.graphSettings,l=this.getBegin(t,n);t.forEach(function(c){var h,d=c.x,v=c.y,p=c.id,g=c.type,y=c.coreBox;if(g===Hn.HierarchyNodeType.META&&p!==Hn.ROOT_NAME){var m=i.findIndex(function(_){return _.id===p}),b=(h=f==null?void 0:f.subScene)===null||h===void 0?void 0:h.meta;i[m].offsetX=d+l[0],i[m].offsetY=v+l[1],i[m].fixSize=[y.width,y.height],i[m].fixCollapseSize=[y.width,y.height],c.expanded?i[m].padding=[b==null?void 0:b.paddingTop,b==null?void 0:b.paddingRight,b==null?void 0:b.paddingBottom,b==null?void 0:b.paddingLeft]:i[m].padding=[0,0,0,0]}else if(g===Hn.HierarchyNodeType.OP){var m=o.findIndex(function(S){return S.id===p});if(o[m].x=d+l[0],o[m].y=v+l[1],u){var w=[],x=n.filter(function(S){return S.v===p}),E=n.filter(function(S){return S.w===p});x.length>0&&x.forEach(function(S){var A=S.points[0],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.sourceAnchor=w.length-1)})}),E.length>0&&E.forEach(function(S){var A=S.points[S.points.length-1],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.targetAnchor=w.length-1)})}),o[m].anchorPoints=w.length>0?w:o[m].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(t,n){var a=this,i=a.combos,o=a.edges,s=a.controlPoints,u=this.getBegin(t,n);s&&(i.forEach(function(f){f.inEdges=[],f.outEdges=[]}),o.forEach(function(f){var l,c,h,d,v=t.find(function(_){return _.id===f.source}),p=t.find(function(_){return _.id===f.target}),g=[],y=[];if(v&&p)y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t);else if(!v||!p){var m=a.getNodePath(f.source),b=a.getNodePath(f.target),w=m.reverse().slice(v?0:1).find(function(_){return t.find(function(S){return S.id===_})}),x=b.reverse().slice(p?0:1).find(function(_){return t.find(function(S){return S.id===_})});v=t.find(function(_){return _.id===w}),p=t.find(function(_){return _.id===x}),y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,t,{v:f.source,w:f.target})}if(g=y.reduce(function(_,S){return Ss(Ss([],_,!0),S.points.map(function(A){return va(va({},A),{x:A.x+u[0],y:A.y+u[1]})}),!0)},[]),g=g.slice(1,-1),f.controlPoints=g,(p==null?void 0:p.type)===Hn.NodeType.META){var E=i.findIndex(function(_){return _.id===(p==null?void 0:p.id)});if(!i[E]||!((l=i[E].inEdges)===null||l===void 0)&&l.some(function(_){return _.source===v.id&&_.target===p.id}))return;(c=i[E].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Hn.NodeType.META){var E=i.findIndex(function(S){return S.id===(v==null?void 0:v.id)});if(!i[E]||!((h=i[E].outEdges)===null||h===void 0)&&h.some(function(S){return S.source===v.id&&S.target===p.id}))return;(d=i[E].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(t){return t.every(function(n){return n.layoutOrder!==void 0})||t.forEach(function(n,a){n.layoutOrder=a}),t.sort(function(n,a){return n.layoutOrder-a.layoutOrder})},e}(Gre.Base);ul.DagreCompoundLayout=zre;var jm={},tv={},Um={};const jre=Object.prototype.toString;function ed(r){const e=jre.call(r);return e.endsWith("Array]")&&!e.includes("Big")}function Ure(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ed(r))throw new TypeError("input must be an array");if(r.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,n=t===void 0?0:t,a=e.toIndex,i=a===void 0?r.length:a;if(n<0||n>=r.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>r.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=r[n],s=n+1;so&&(o=r[s]);return o}function $re(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ed(r))throw new TypeError("input must be an array");if(r.length===0)throw new TypeError("input must not be empty");var t=e.fromIndex,n=t===void 0?0:t,a=e.toIndex,i=a===void 0?r.length:a;if(n<0||n>=r.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>r.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=r[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(ed(r)){if(r.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var t;if(e.output!==void 0){if(!ed(e.output))throw new TypeError("output option must be an array if specified");t=e.output}else t=new Array(r.length);var n=$re(r),a=Ure(r);if(n===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=e.min,o=i===void 0?e.autoMinMax?n:0:i,s=e.max,u=s===void 0?e.autoMinMax?a:1:s;if(o>=u)throw new RangeError("min option must be smaller than max option");for(var f=(u-o)/(a-n),l=0;l>n);return this},r.prototype.signPropagatingRightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>n.get(a,i));return this},r.signPropagatingRightShift=function(n,a){return new e(n).signPropagatingRightShift(a)},r.prototype.rightShift=function(n){return typeof n=="number"?this.rightShiftS(n):this.rightShiftM(n)},r.prototype.rightShiftS=function(n){for(let a=0;a>>n);return this},r.prototype.rightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>>n.get(a,i));return this},r.rightShift=function(n,a){return new e(n).rightShift(a)},r.prototype.zeroFillRightShift=r.prototype.rightShift,r.prototype.zeroFillRightShiftS=r.prototype.rightShiftS,r.prototype.zeroFillRightShiftM=r.prototype.rightShiftM,r.zeroFillRightShift=r.rightShift,r.prototype.not=function(){for(let n=0;nn)throw new RangeError("Row index out of range")}function ea(r,e,t){let n=t?r.columns:r.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function Ps(r,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==r.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function Rs(r,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==r.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function hN(r,e,t){return{row:dN(r,e),column:vN(r,t)}}function dN(r,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(n=>n<0||n>=r.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function vN(r,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(n=>n<0||n>=r.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Tg(r,e,t,n,a){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(Oc("startRow",e),Oc("endRow",t),Oc("startColumn",n),Oc("endColumn",a),e>t||n>a||e<0||e>=r.rows||t<0||t>=r.rows||n<0||n>=r.columns||a<0||a>=r.columns)throw new RangeError("Submatrix indices are out of range")}function rv(r,e=0){let t=[];for(let n=0;n=i)throw new RangeError("min must be smaller than max");let s=i-a,u=new lt(e,t);for(let f=0;fn?(i=!0,n=t):(a=!1,i=!0);e++}return a}isReducedEchelonForm(){let e=0,t=0,n=-1,a=!0,i=!1;for(;en?(i=!0,n=t):(a=!1,i=!0);for(let o=t+1;oe.get(a,n)&&(a=i);if(e.get(a,n)===0)n++;else{e.swapRows(t,a);let i=e.get(t,n);for(let o=n;o=0;)if(e.maxRow(a)===0)a--;else{let i=0,o=!1;for(;ie&&(e=this.get(t,n));return e}maxIndex(){let e=this.get(0,0),t=[0,0];for(let n=0;ne&&(e=this.get(n,a),t[0]=n,t[1]=a);return t}min(){let e=this.get(0,0);for(let t=0;tt&&(t=this.get(e,n));return t}maxRowIndex(e){Jn(this,e);let t=this.get(e,0),n=[e,0];for(let a=1;at&&(t=this.get(e,a),n[1]=a);return n}minRow(e){Jn(this,e);let t=this.get(e,0);for(let n=1;nt&&(t=this.get(n,e));return t}maxColumnIndex(e){ea(this,e);let t=this.get(0,e),n=[0,e];for(let a=1;at&&(t=this.get(a,e),n[0]=a);return n}minColumn(e){ea(this,e);let t=this.get(0,e);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;i=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;in||t<0||t>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let a=new lt(e.length,n-t+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${e[i]}`);a.set(i,o-t,this.get(e[i],o))}return a}subMatrixColumn(e,t,n){if(t===void 0&&(t=0),n===void 0&&(n=this.rows-1),t>n||t<0||t>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let a=new lt(n-t+1,e.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${e[i]}`);a.set(o-t,i,this.get(o,e[i]))}return a}setSubMatrix(e,t,n){e=lt.checkMatrix(e);let a=t+e.rows-1,i=n+e.columns-1;Tg(this,t,a,n,i);for(let o=0;o0)if(this.data=[],Number.isInteger(t)&&t>0)for(let n=0;n"u"&&(t=e,e=this.columns),ea(this,e,!0),t=Rs(this,t);for(let n=0;nMath.abs(v[l])&&(l=s);if(l!==u){for(f=0;f=0;f--){for(u=0;uo?a.set(i,o,e.get(i,o)):i===o?a.set(i,o,1):a.set(i,o,0);return a}get upperTriangularMatrix(){let e=this.LU,t=e.rows,n=e.columns,a=new lt(t,n);for(let i=0;iMath.abs(e)?(t=e/r,Math.abs(r)*Math.sqrt(1+t*t)):e!==0?(t=r/e,Math.abs(e)*Math.sqrt(1+t*t)):0}class Ig{constructor(e){e=Wn.checkMatrix(e);let t=e.clone(),n=e.rows,a=e.columns,i=new Float64Array(a),o,s,u,f;for(u=0;u=0;f--){for(u=0;u=0;s--){for(i=0;i=0;M--)if(v[M]!==0){for(let C=M+1;C=0;M--){if(M0;){let M,C;for(M=_-2;M>=-1&&M!==-1;M--){const I=Number.MIN_VALUE+A*Math.abs(v[M]+Math.abs(v[M+1]));if(Math.abs(y[M])<=I||Number.isNaN(y[M])){y[M]=0;break}}if(M===_-2)C=4;else{let I;for(I=_-1;I>=M&&I!==M;I--){let k=(I!==_?Math.abs(y[I]):0)+(I!==M+1?Math.abs(y[I-1]):0);if(Math.abs(v[I])<=A*k){v[I]=0;break}}I===M?C=3:I===_-1?C=1:(C=2,M=I)}switch(M++,C){case 1:{let I=y[_-2];y[_-2]=0;for(let k=_-2;k>=M;k--){let O=hi(v[k],I),B=v[k]/O,L=I/O;if(v[k]=O,k!==M&&(I=-L*y[k-1],y[k-1]=B*y[k-1]),f)for(let z=0;z=v[M+1]);){let I=v[M];if(v[M]=v[M+1],v[M+1]=I,f&&Mt&&i.set(l,c,e.get(l,c)/this.s[c]);let o=this.U,s=o.rows,u=o.columns,f=new lt(n,s);for(let l=0;le&&t++;return t}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return lt.diag(this.s)}}function xne(r,e=!1){return r=Wn.checkMatrix(r),e?new fu(r).inverse():gN(r,lt.eye(r.rows))}function gN(r,e,t=!1){return r=Wn.checkMatrix(r),e=Wn.checkMatrix(e),t?new fu(r).solve(e):r.isSquare()?new td(r).solve(e):new Ig(r).solve(e)}function vh(r){if(r=lt.checkMatrix(r),r.isSquare()){let e,t,n,a;if(r.columns===2)return e=r.get(0,0),t=r.get(0,1),n=r.get(1,0),a=r.get(1,1),e*a-t*n;if(r.columns===3){let i,o,s;return i=new dh(r,[1,2],[1,2]),o=new dh(r,[1,2],[0,2]),s=new dh(r,[1,2],[0,1]),e=r.get(0,0),t=r.get(0,1),n=r.get(0,2),e*vh(i)-t*vh(o)+n*vh(s)}else return new td(r).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Ene(r,e){let t=[];for(let n=0;na)return new Array(e.rows+1).fill(0);{let i=e.addRow(t,[0]);for(let o=0;oe?i[o]=1/i[o]:i[o]=0;return a.mmul(lt.diag(i).mmul(n.transpose()))}function Ane(r,e=r,t={}){r=new lt(r);let n=!1;if(typeof e=="object"&&!lt.isMatrix(e)&&!Array.isArray(e)?(t=e,e=r,n=!0):e=new lt(e),r.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:a=!0}=t;a&&(r=r.center("column"),n||(e=e.center("column")));const i=r.transpose().mmul(e);for(let o=0;o0?a.set(i,i+1,t[i]):t[i]<0&&a.set(i,i-1,t[i])}return a}}function Tne(r,e,t,n){let a,i,o,s,u,f,l,c;for(u=0;u0;s--){for(c=0,o=0,f=0;f0&&(i=-i),e[s]=c*i,o=o-a*i,t[s-1]=a-i,u=0;uf)do{for(a=t[f],c=(t[f+1]-a)/(2*e[f]),h=hi(c,1),c<0&&(h=-h),t[f]=e[f]/(c+h),t[f+1]=e[f]*(c+h),d=t[f+1],i=a-t[f],o=f+2;o=f;o--)for(g=p,p=v,b=m,a=v*e[o],i=v*c,h=hi(c,e[o]),e[o+1]=m*h,m=e[o]/h,v=c/h,c=v*t[o]-m*a,t[o+1]=i+m*(v*a+m*t[o]),u=0;uE*x);t[f]=t[f]+w,e[f]=0}for(o=0;o=c;f--)t[f]=e.get(f,c-1)/h,u+=t[f]*t[f];for(s=Math.sqrt(u),t[c]>0&&(s=-s),u=u-t[c]*s,t[c]=t[c]-s,l=c;l=c;f--)o+=t[f]*e.get(f,l);for(o=o/u,f=c;f<=i;f++)e.set(f,l,e.get(f,l)-o*t[f])}for(f=0;f<=i;f++){for(o=0,l=i;l>=c;l--)o+=t[l]*e.get(f,l);for(o=o/u,l=c;l<=i;l++)e.set(f,l,e.get(f,l)-o*t[l])}t[c]=h*t[c],e.set(c,c-1,h*s)}}for(f=0;f=a+1;c--)if(e.get(c,c-1)!==0){for(f=c+1;f<=i;f++)t[f]=e.get(f,c-1);for(l=c;l<=i;l++){for(s=0,f=c;f<=i;f++)s+=t[f]*n.get(f,l);for(s=s/t[c]/e.get(c,c-1),f=c;f<=i;f++)n.set(f,l,n.get(f,l)+s*t[f])}}}function Nne(r,e,t,n,a){let i=r-1,o=0,s=r-1,u=Number.EPSILON,f=0,l=0,c=0,h=0,d=0,v=0,p=0,g=0,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;for(y=0;ys)&&(t[y]=a.get(y,y),e[y]=0),m=Math.max(y-1,0);m=o;){for(w=i;w>o&&(v=Math.abs(a.get(w-1,w-1))+Math.abs(a.get(w,w)),v===0&&(v=l),!(Math.abs(a.get(w,w-1))=0){for(p=c>=0?c+p:c-p,t[i-1]=S+p,t[i]=t[i-1],p!==0&&(t[i]=S-_/p),e[i-1]=0,e[i]=0,S=a.get(i,i-1),v=Math.abs(S)+Math.abs(p),c=S/v,h=p/v,d=Math.sqrt(c*c+h*h),c=c/d,h=h/d,m=i-1;m0)){for(v=Math.sqrt(v),A=w&&(p=a.get(x,x),d=S-p,v=A-p,c=(d*v-_)/a.get(x+1,x)+a.get(x,x+1),h=a.get(x+1,x+1)-p-d-v,d=a.get(x+2,x+1),v=Math.abs(c)+Math.abs(h)+Math.abs(d),c=c/v,h=h/v,d=d/v,!(x===w||Math.abs(a.get(x,x-1))*(Math.abs(h)+Math.abs(d))x+2&&a.set(y,y-3,0);for(b=x;b<=i-1&&(O=b!==i-1,b!==x&&(c=a.get(b,b-1),h=a.get(b+1,b-1),d=O?a.get(b+2,b-1):0,S=Math.abs(c)+Math.abs(h)+Math.abs(d),S!==0&&(c=c/S,h=h/S,d=d/S)),S!==0);b++)if(v=Math.sqrt(c*c+h*h+d*d),c<0&&(v=-v),v!==0){for(b!==x?a.set(b,b-1,-v*S):w!==x&&a.set(b,b-1,-a.get(b,b-1)),c=c+v,S=c/v,A=h/v,p=d/v,h=h/c,d=d/c,m=b;m=0;i--)if(c=t[i],h=e[i],h===0)for(w=i,a.set(i,i,1),y=i-1;y>=0;y--){for(_=a.get(y,y)-c,d=0,m=w;m<=i;m++)d=d+a.get(y,m)*a.get(m,i);if(e[y]<0)p=_,v=d;else if(w=y,e[y]===0?a.set(y,i,_!==0?-d/_:-d/(u*l)):(S=a.get(y,y+1),A=a.get(y+1,y),h=(t[y]-c)*(t[y]-c)+e[y]*e[y],E=(S*v-p*d)/h,a.set(y,i,E),a.set(y+1,i,Math.abs(S)>Math.abs(p)?(-d-_*E)/S:(-v-A*E)/p)),E=Math.abs(a.get(y,i)),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i,a.get(m,i)/E)}else if(h<0)for(w=i-1,Math.abs(a.get(i,i-1))>Math.abs(a.get(i-1,i))?(a.set(i-1,i-1,h/a.get(i,i-1)),a.set(i-1,i,-(a.get(i,i)-c)/a.get(i,i-1))):(B=Lc(0,-a.get(i-1,i),a.get(i-1,i-1)-c,h),a.set(i-1,i-1,B[0]),a.set(i-1,i,B[1])),a.set(i,i-1,0),a.set(i,i,1),y=i-2;y>=0;y--){for(M=0,C=0,m=w;m<=i;m++)M=M+a.get(y,m)*a.get(m,i-1),C=C+a.get(y,m)*a.get(m,i);if(_=a.get(y,y)-c,e[y]<0)p=_,d=M,v=C;else if(w=y,e[y]===0?(B=Lc(-M,-C,_,h),a.set(y,i-1,B[0]),a.set(y,i,B[1])):(S=a.get(y,y+1),A=a.get(y+1,y),I=(t[y]-c)*(t[y]-c)+e[y]*e[y]-h*h,k=(t[y]-c)*2*h,I===0&&k===0&&(I=u*l*(Math.abs(_)+Math.abs(h)+Math.abs(S)+Math.abs(A)+Math.abs(p))),B=Lc(S*d-p*M+h*C,S*v-p*C-h*M,I,k),a.set(y,i-1,B[0]),a.set(y,i,B[1]),Math.abs(S)>Math.abs(p)+Math.abs(h)?(a.set(y+1,i-1,(-M-_*a.get(y,i-1)+h*a.get(y,i))/S),a.set(y+1,i,(-C-_*a.get(y,i)-h*a.get(y,i-1))/S)):(B=Lc(-d-A*a.get(y,i-1),-v-A*a.get(y,i),p,h),a.set(y+1,i-1,B[0]),a.set(y+1,i,B[1]))),E=Math.max(Math.abs(a.get(y,i-1)),Math.abs(a.get(y,i))),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i-1,a.get(m,i-1)/E),a.set(m,i,a.get(m,i)/E)}for(y=0;ys)for(m=y;m=o;m--)for(y=o;y<=s;y++){for(p=0,b=o;b<=Math.min(m,s);b++)p=p+n.get(y,b)*a.get(b,m);n.set(y,m,p)}}}function Lc(r,e,t,n){let a,i;return Math.abs(t)>Math.abs(n)?(a=n/t,i=t+a*n,[(r+a*e)/i,(e-a*r)/i]):(a=t/n,i=n+a*t,[(a*r+e)/i,(a*e-r)/i])}class K_{constructor(e){if(e=Wn.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let t=e,n=t.rows,a=new lt(n,n),i=!0,o,s,u;for(s=0;s0,a.set(s,s,Math.sqrt(Math.max(f,0))),u=s+1;u=0;u--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),f=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(u=f.clone().sub(h).pow(2).sum()),h=f.clone(),n?(l=n.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),l=l.div(l.norm()),s=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):s=f;if(n){let d=e.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0));d=d.div(d.norm());let v=e.clone().sub(f.clone().mmul(d.transpose())),p=s.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),g=n.clone().sub(f.clone().mulS(p.get(0,0)).mmul(l.transpose()));this.t=f,this.p=d.transpose(),this.w=c.transpose(),this.q=l,this.u=s,this.s=f.transpose().mmul(f),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=f.transpose().mmul(f).sqrt(),a?this.t=f.clone().div(this.s.get(0,0)):this.t=f,this.xResidual=e.sub(f.mmul(c.transpose()))}}const One=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Xt,CHO:K_,CholeskyDecomposition:K_,EVD:Z_,EigenvalueDecomposition:Z_,LU:td,LuDecomposition:td,Matrix:lt,MatrixColumnSelectionView:dne,MatrixColumnView:hne,MatrixFlipColumnView:vne,MatrixFlipRowView:pne,MatrixRowSelectionView:yne,MatrixRowView:gne,MatrixSelectionView:dh,MatrixSubView:mne,MatrixTransposeView:bne,NIPALS:Q_,Nipals:Q_,QR:Ig,QrDecomposition:Ig,SVD:fu,SingularValueDecomposition:fu,WrapperMatrix1D:pN,WrapperMatrix2D:Wn,correlation:Cne,covariance:Ane,default:lt,determinant:vh,inverse:xne,linearDependencies:Sne,pseudoInverse:Mne,solve:gN,wrap:wne},Symbol.toStringTag,{value:"Module"})),yN=Ka(One);Object.defineProperty(Um,"__esModule",{value:!0});var Hu=yN,Lne=function(){function r(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return r.prototype.layout=function(){var e=this,t=e.dimension,n=e.distances,a=e.linkDistance;try{var i=Hu.Matrix.mul(Hu.Matrix.pow(n,2),-.5),o=i.mean("row"),s=i.mean("column"),u=i.mean();i.add(u).subRowVector(o).subColumnVector(s);var f=new Hu.SingularValueDecomposition(i),l=Hu.Matrix.sqrt(f.diagonalMatrix).diagonal();return f.leftSingularVectors.toJSON().map(function(p){return Hu.Matrix.mul([p],[l]).toJSON()[0].splice(0,t)})}catch{for(var c=[],h=0;hl?1:-1;c=.01*v,h=.01*v}if(dMath.PI/2&&(y-=Math.PI/2,v*=-1,p*=-1);var m=Math.cos(y)*g;f.x=v*m,f.y=p*m});var u=e.radii;t.forEach(function(f,l){if(l!==o){var c=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(c>0&&l!==o){var h=Math.min(s*(a/Dne),c);if(f[0]+=n[l].x/c*h,f[1]+=n[l].y/c*h,i){var d=f[0]-t[o][0],v=f[1]-t[o][1],p=Math.sqrt(d*d+v*v);d=d/p*u[l],v=v/p*u[l],f[0]=t[o][0]+d,f[1]=t[o][1]+v}}}})},r}();$m.default=Pne;var Rne=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mN=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(tv,"__esModule",{value:!0});tv.RadialLayout=void 0;var Zn=Ir(),Fne=Rr,Bne=mN(Um),Gne=mN($m);function zne(r){for(var e=r.length,t=r[0].length,n=[],a=0;ai[0]?i[0]:p-i[0],m=g-i[1]>i[1]?i[1]:g-i[1];y===0&&(y=p/2),m===0&&(m=g/2);var b=m>y?y:m,w=Math.max.apply(Math,v),x=[];v.forEach(function(X,R){t.unitRadius||(t.unitRadius=b/w),x[R]=X*t.unitRadius}),t.radii=x;var E=t.eIdealDisMatrix();t.eIdealDistances=E;var _=zne(E);t.weights=_;var S=new Bne.default({linkDistance:o,distances:E}),A=S.layout();A.forEach(function(X){(0,Zn.isNaN)(X[0])&&(X[0]=Math.random()*o),(0,Zn.isNaN)(X[1])&&(X[1]=Math.random()*o)}),t.positions=A,A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),A.forEach(function(X){X[0]-=A[l][0],X[1]-=A[l][1]}),t.run();var M=t.preventOverlap,C=t.nodeSize,I,k=t.strictRadial;if(M){var O=t.nodeSpacing,B;(0,Zn.isNumber)(O)?B=function(){return O}:(0,Zn.isFunction)(O)?B=O:B=function(){return 0},C?(0,Zn.isArray)(C)?I=function(X){var R=C[0]>C[1]?C[0]:C[1];return R+B(X)}:I=function(X){return C+B(X)}:I=function(X){if(X.size){if((0,Zn.isArray)(X.size)){var R=X.size[0]>X.size[1]?X.size[0]:X.size[1];return R+B(X)}if((0,Zn.isObject)(X.size)){var R=X.size.width>X.size.height?X.size.width:X.size.height;return R+B(X)}return X.size+B(X)}return 10+B(X)};var L={nodes:n,nodeSizeFunc:I,adjMatrix:c,positions:A,radii:x,height:g,width:p,strictRadial:k,focusID:l,iterations:t.maxPreventOverlapIteration||200,k:A.length/4.5},z=new Gne.default(L);A=z.layout()}return A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:n,edges:a}},e.prototype.run=function(){for(var t=this,n=t.maxIteration,a=t.positions||[],i=t.weights||[],o=t.eIdealDistances||[],s=t.radii||[],u=0;u<=n;u++){var f=u/n;t.oneIteration(f,a,s,o,i)}},e.prototype.oneIteration=function(t,n,a,i,o){var s=this,u=1-t,f=s.focusIndex;n.forEach(function(l,c){var h=J_(l,[0,0]),d=h===0?0:1/h;if(c!==f){var v=0,p=0,g=0;n.forEach(function(m,b){if(c!==b){var w=J_(l,m),x=w===0?0:1/w,E=i[b][c];g+=o[c][b],v+=o[c][b]*(m[0]+E*(l[0]-m[0])*x),p+=o[c][b]*(m[1]+E*(l[1]-m[1])*x)}});var y=a[c]===0?0:1/a[c];g*=u,g+=t*y*y,v*=u,v+=t*y*l[0]*d,l[0]=v/g,p*=u,p+=t*y*l[1]*d,l[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var t=this,n=t.nodes;if(!n)return[];var a=t.distances,i=t.linkDistance,o=t.radii||[],s=t.unitRadius||50,u=[];return a&&a.forEach(function(f,l){var c=[];f.forEach(function(h,d){if(l===d)c.push(0);else if(o[l]===o[d])if(t.sortBy==="data")c.push(h*(Math.abs(l-d)*t.sortStrength)/(o[l]/s));else if(t.sortBy){var v=n[l][t.sortBy]||0,p=n[d][t.sortBy]||0;(0,Zn.isString)(v)&&(v=v.charCodeAt(0)),(0,Zn.isString)(p)&&(p=p.charCodeAt(0)),c.push(h*(Math.abs(v-p)*t.sortStrength)/(o[l]/s))}else c.push(h*i/(o[l]/s));else{var g=(i+s)/2;c.push(h*g)}}),u.push(c)}),u},e.prototype.handleInfinity=function(t,n,a){for(var i=t.length,o=0;oa?t[n][i]:a);return a},e.prototype.getType=function(){return"radial"},e}(Fne.Base);tv.RadialLayout=Une;(function(r){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),t=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(tv,r)})(jm);var dl={},$ne=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dl,"__esModule",{value:!0});dl.ConcentricLayout=void 0;var Na=Ir(),Xne=Rr,Wne=function(r){$ne(e,r);function e(t){var n=r.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=3/2*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t,n,a=this,i=a.nodes,o=a.edges,s=i.length;if(s===0){(t=a.onLayoutEnd)===null||t===void 0||t.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var u=a.center;if(s===1){i[0].x=u[0],i[0].y=u[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var f=a.nodeSize,l=a.nodeSpacing,c=[],h,d=0;(0,Na.isArray)(f)?h=Math.max(f[0],f[1]):h=f,(0,Na.isArray)(l)?d=Math.max(l[0],l[1]):(0,Na.isNumber)(l)&&(d=l),i.forEach(function(k){c.push(k);var O=h;(0,Na.isArray)(k.size)?O=Math.max(k.size[0],k.size[1]):(0,Na.isNumber)(k.size)?O=k.size:(0,Na.isObject)(k.size)&&(O=Math.max(k.size.width,k.size.height)),h=Math.max(h,O),(0,Na.isFunction)(l)&&(d=Math.max(l(k),d))}),a.clockwise=a.counterclockwise!==void 0?!a.counterclockwise:a.clockwise;var v={},p={};if(c.forEach(function(k,O){v[k.id]=k,p[k.id]=O}),(a.sortBy==="degree"||!(0,Na.isString)(a.sortBy)||c[0][a.sortBy]===void 0)&&(a.sortBy="degree",!(0,Na.isNumber)(i[0].degree))){var g=(0,Na.getDegree)(i.length,p,o);c.forEach(function(k,O){k.degree=g[O].all})}c.sort(function(k,O){return O[a.sortBy]-k[a.sortBy]}),a.maxValueNode=c[0],a.maxLevelDiff=a.maxLevelDiff||a.maxValueNode[a.sortBy]/4;var y=[[]],m=y[0];c.forEach(function(k){if(m.length>0){var O=Math.abs(m[0][a.sortBy]-k[a.sortBy]);a.maxLevelDiff&&O>=a.maxLevelDiff&&(m=[],y.push(m))}m.push(k)});var b=h+(d||a.minNodeSpacing);if(!a.preventOverlap){var w=y.length>0&&y[0].length>1,x=Math.min(a.width,a.height)/2-b,E=x/(y.length+(w?1:0));b=Math.min(b,E)}var _=0;if(y.forEach(function(k){var O=a.sweep;O===void 0&&(O=2*Math.PI-2*Math.PI/k.length);var B=k.dTheta=O/Math.max(1,k.length-1);if(k.length>1&&a.preventOverlap){var L=Math.cos(B)-Math.cos(0),z=Math.sin(B)-Math.sin(0),X=Math.sqrt(b*b/(L*L+z*z));_=Math.max(X,_)}k.r=_,_+=b}),a.equidistant){for(var S=0,A=0,M=0;M"u")return;var h=0;this.timeInterval=window.setInterval(function(){var d;n.runOneStep(l),h++,h>=o&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))},0)}return{nodes:a,edges:i}}},e.prototype.runOneStep=function(t){var n,a=this,i=a.nodes;if(i){var o=a.edges,s=a.center,u=a.gravity,f=a.speed,l=a.clustering,c=a.height*a.width,h=Math.sqrt(c)/10,d=c/(i.length+1),v=Math.sqrt(d),p=[];if(i.forEach(function(m,b){p[b]={x:0,y:0}}),a.applyCalculate(i,o,p,v,d),l){for(var g in t)t[g].cx=0,t[g].cy=0,t[g].count=0;i.forEach(function(m){var b=t[m.cluster];(0,Dr.isNumber)(m.x)&&(b.cx+=m.x),(0,Dr.isNumber)(m.y)&&(b.cy+=m.y),b.count++});for(var g in t)t[g].cx/=t[g].count,t[g].cy/=t[g].count;var y=a.clusterGravity||u;i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=t[m.cluster],x=Math.sqrt((m.x-w.cx)*(m.x-w.cx)+(m.y-w.cy)*(m.y-w.cy)),E=v*y;p[b].x-=E*(m.x-w.cx)/x,p[b].y-=E*(m.y-w.cy)/x}})}i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=.01*v*u;p[b].x-=w*(m.x-s[0]),p[b].y-=w*(m.y-s[1])}}),i.forEach(function(m,b){if((0,Dr.isNumber)(m.fx)&&(0,Dr.isNumber)(m.fy)){m.x=m.fx,m.y=m.fy;return}if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=Math.sqrt(p[b].x*p[b].x+p[b].y*p[b].y);if(w>0){var x=Math.min(h*(f/Kne),w);m.x+=p[b].x/w*x,m.y+=p[b].y/w*x}}}),(n=a.tick)===null||n===void 0||n.call(a)}},e.prototype.applyCalculate=function(t,n,a,i,o){var s=this;s.calRepulsive(t,a,o),n&&s.calAttractive(n,a,i)},e.prototype.calRepulsive=function(t,n,a){t.forEach(function(i,o){n[o]={x:0,y:0},t.forEach(function(s,u){if(o!==u&&!(!(0,Dr.isNumber)(i.x)||!(0,Dr.isNumber)(s.x)||!(0,Dr.isNumber)(i.y)||!(0,Dr.isNumber)(s.y))){var f=i.x-s.x,l=i.y-s.y,c=f*f+l*l;if(c===0){c=1;var h=o>u?1:-1;f=.01*h,l=.01*h}var d=a/c;n[o].x+=f*d,n[o].y+=l*d}})})},e.prototype.calAttractive=function(t,n,a){var i=this;t.forEach(function(o){var s=(0,Dr.getEdgeTerminal)(o,"source"),u=(0,Dr.getEdgeTerminal)(o,"target");if(!(!s||!u)){var f=i.nodeIdxMap[s],l=i.nodeIdxMap[u];if(f!==l){var c=i.nodeMap[s],h=i.nodeMap[u];if(!(!(0,Dr.isNumber)(h.x)||!(0,Dr.isNumber)(c.x)||!(0,Dr.isNumber)(h.y)||!(0,Dr.isNumber)(c.y))){var d=h.x-c.x,v=h.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/a;n[l].x-=d/p*g,n[l].y-=v/p*g,n[f].x+=d/p*g,n[f].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var t=this;t.stop(),t.tick=null,t.nodes=null,t.edges=null,t.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(Zne.Base);pl.FruchtermanLayout=Qne;var gl={};function e2(r,e,t,n,a,i,o){try{var s=r[i](o),u=s.value}catch(f){return void t(f)}s.done?e(u):Promise.resolve(u).then(n,a)}function Xi(r){return function(){var e=this,t=arguments;return new Promise(function(n,a){var i=r.apply(e,t);function o(u){e2(i,n,a,o,s,"next",u)}function s(u){e2(i,n,a,o,s,"throw",u)}o(void 0)})}}function lu(r){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lu(r)}function Jne(r,e){if(lu(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function bN(r){var e=Jne(r,"string");return lu(e)=="symbol"?e:e+""}function Ke(r,e,t){return(e=bN(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ma(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function t2(r,e){for(var t=0;t-1&&r%1==0&&r<=wae}var Eae=xae;function _ae(r){return r!=null&&typeof r=="object"}var Wm=_ae,Sae=Xm,Mae=Eae,Aae=Wm,Cae="[object Arguments]",Tae="[object Array]",Iae="[object Boolean]",kae="[object Date]",Nae="[object Error]",Oae="[object Function]",Lae="[object Map]",Dae="[object Number]",Pae="[object Object]",Rae="[object RegExp]",Fae="[object Set]",Bae="[object String]",Gae="[object WeakMap]",zae="[object ArrayBuffer]",jae="[object DataView]",Uae="[object Float32Array]",$ae="[object Float64Array]",Xae="[object Int8Array]",Wae="[object Int16Array]",Vae="[object Int32Array]",Yae="[object Uint8Array]",qae="[object Uint8ClampedArray]",Hae="[object Uint16Array]",Zae="[object Uint32Array]",wr={};wr[Uae]=wr[$ae]=wr[Xae]=wr[Wae]=wr[Vae]=wr[Yae]=wr[qae]=wr[Hae]=wr[Zae]=!0;wr[Cae]=wr[Tae]=wr[zae]=wr[Iae]=wr[jae]=wr[kae]=wr[Nae]=wr[Oae]=wr[Lae]=wr[Dae]=wr[Pae]=wr[Rae]=wr[Fae]=wr[Bae]=wr[Gae]=!1;function Kae(r){return Aae(r)&&Mae(r.length)&&!!wr[Sae(r)]}var Qae=Kae;function Jae(r){return function(e){return r(e)}}var eie=Jae,rd={exports:{}};rd.exports;(function(r,e){var t=wN,n=e&&!e.nodeType&&e,a=n&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===n,o=i&&t.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();r.exports=s})(rd,rd.exports);var tie=rd.exports,rie=Qae,nie=eie,i2=tie,o2=i2&&i2.isTypedArray,aie=o2?nie(o2):rie,iie=aie;const nd=bi(iie);var oie=Xm,sie=Wm,uie="[object Number]";function fie(r){return typeof r=="number"||sie(r)&&oie(r)==uie}var lie=fie;const cie=bi(lie);var hie=Array.isArray,die=hie;const vie=bi(die);var _N={exports:{}},SN={exports:{}};(function(r){function e(t,n){this.v=t,this.k=n}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(SN);var MN=SN.exports,AN={exports:{}},CN={exports:{}};(function(r){function e(t,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}r.exports=e=function(u,f,l,c){function h(d,v){e(u,d,function(p){return this._invoke(d,v,p)})}f?o?o(u,f,{value:l,enumerable:!c,configurable:!c,writable:!c}):u[f]=l:(h("next",0),h("throw",1),h("return",2))},r.exports.__esModule=!0,r.exports.default=r.exports,e(t,n,a,i)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(CN);var TN=CN.exports;(function(r){var e=TN;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(g,y,m,b){var w=y&&y.prototype instanceof l?y:l,x=Object.create(w.prototype);return e(x,"_invoke",function(E,_,S){var A,M,C,I=0,k=S||[],O=!1,B={p:0,n:0,v:n,a:L,f:L.bind(n,4),d:function(X,R){return A=X,M=0,C=n,B.n=R,f}};function L(z,X){for(M=z,C=X,a=0;!O&&I&&!R&&a3?(R=ce===X)&&(C=V[(M=V[4])?5:(M=3,3)],V[4]=V[5]=n):V[0]<=he&&((R=z<2&&heX||X>ce)&&(V[4]=z,V[5]=X,B.n=ce,M=0))}if(R||z>1)return f;throw O=!0,X}return function(z,X,R){if(I>1)throw TypeError("Generator is already running");for(O&&X===1&&L(X,R),M=X,C=R;(a=M<2?n:C)||!O;){A||(M?M<3?(M>1&&(B.n=-1),L(M,C)):B.n=C:B.v=C);try{if(I=2,A){if(M||(z="next"),a=A[z]){if(!(a=a.call(A,C)))throw TypeError("iterator result is not an object");if(!a.done)return a;C=a.value,M<2&&(M=0)}else M===1&&(a=A.return)&&a.call(A),M<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),M=1);A=n}else if((a=(O=B.n<0)?C:E.call(_,B))!==f)break}catch(V){A=n,M=1,C=V}finally{I=1}}return{value:a,done:O}}}(g,m,b),!0),x}var f={};function l(){}function c(){}function h(){}a=Object.getPrototypeOf;var d=[][o]?a(a([][o]())):(e(a={},o,function(){return this}),a),v=h.prototype=l.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,h):(g.__proto__=h,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=h,e(v,"constructor",h),e(h,"constructor",c),c.displayName="GeneratorFunction",e(h,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(r.exports=t=function(){return{w:u,m:p}},r.exports.__esModule=!0,r.exports.default=r.exports)()}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(AN);var IN=AN.exports,kN={exports:{}},NN={exports:{}},ON={exports:{}};(function(r){var e=MN,t=TN;function n(a,i){function o(u,f,l,c){try{var h=a[u](f),d=h.value;return d instanceof e?i.resolve(d.v).then(function(v){o("next",v,l,c)},function(v){o("throw",v,l,c)}):i.resolve(d).then(function(v){h.value=v,l(h)},function(v){return o("throw",v,l,c)})}catch(v){c(v)}}var s;this.next||(t(n.prototype),t(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),t(this,"_invoke",function(u,f,l){function c(){return new i(function(h,d){o(u,l,h,d)})}return s=s?s.then(c,c):c()},!0)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports})(ON);var LN=ON.exports;(function(r){var e=IN,t=LN;function n(a,i,o,s,u){return new t(e().w(a,i,o,s),u||Promise)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports})(NN);var DN=NN.exports;(function(r){var e=DN;function t(n,a,i,o,s){var u=e(n,a,i,o,s);return u.next().then(function(f){return f.done?f.value:u.next()})}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(kN);var pie=kN.exports,PN={exports:{}};(function(r){function e(t){var n=Object(t),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(PN);var gie=PN.exports,RN={exports:{}},FN={exports:{}};(function(r){function e(t){"@babel/helpers - typeof";return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},r.exports.__esModule=!0,r.exports.default=r.exports,e(t)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(FN);var yie=FN.exports;(function(r){var e=yie.default;function t(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(e(n)+" is not iterable")}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports})(RN);var mie=RN.exports;(function(r){var e=MN,t=IN,n=pie,a=DN,i=LN,o=gie,s=mie;function u(){var f=t(),l=f.m(u),c=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function h(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,y;return function(m){g||(g={stop:function(){return y(m.a,2)},catch:function(){return m.v},abrupt:function(w,x){return y(m.a,d[w],x)},delegateYield:function(w,x,E){return g.resultName=x,y(m.d,s(w),E)},finish:function(w){return y(m.f,w)}},y=function(w,x,E){m.p=g.prev,m.n=g.next;try{return w(x,E)}finally{g.next=m.n}}),g.resultName&&(g[g.resultName]=m.v,g.resultName=void 0),g.sent=m.v,g.next=m.n;try{return p.call(this,g)}finally{m.p=g.prev,m.n=g.next}}}return(r.exports=u=function(){return{wrap:function(y,m,b,w){return f.w(v(y),m,b,w&&w.reverse())},isGeneratorFunction:h,mark:f.m,awrap:function(y,m){return new e(y,m)},AsyncIterator:i,async:function(y,m,b,w,x){return(h(m)?a:n)(v(y),m,b,w,x)},keys:o,values:s}},r.exports.__esModule=!0,r.exports.default=r.exports)()}r.exports=u,r.exports.__esModule=!0,r.exports.default=r.exports})(_N);var bie=_N.exports,ph=bie(),wie=ph;try{regeneratorRuntime=ph}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=ph:Function("r","regeneratorRuntime = r")(ph)}const mn=bi(wie);var xie=1;function BN(){return xie++}var ke;(function(r){r[r.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",r[r.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",r[r.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN",r[r.ZERO=0]="ZERO",r[r.ONE=1]="ONE",r[r.SRC_COLOR=768]="SRC_COLOR",r[r.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",r[r.SRC_ALPHA=770]="SRC_ALPHA",r[r.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",r[r.DST_ALPHA=772]="DST_ALPHA",r[r.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",r[r.DST_COLOR=774]="DST_COLOR",r[r.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",r[r.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",r[r.FUNC_ADD=32774]="FUNC_ADD",r[r.BLEND_EQUATION=32777]="BLEND_EQUATION",r[r.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",r[r.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",r[r.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",r[r.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",r[r.MAX_EXT=32776]="MAX_EXT",r[r.MIN_EXT=32775]="MIN_EXT",r[r.BLEND_DST_RGB=32968]="BLEND_DST_RGB",r[r.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",r[r.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",r[r.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",r[r.CONSTANT_COLOR=32769]="CONSTANT_COLOR",r[r.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",r[r.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",r[r.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",r[r.BLEND_COLOR=32773]="BLEND_COLOR",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",r[r.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",r[r.STREAM_DRAW=35040]="STREAM_DRAW",r[r.STATIC_DRAW=35044]="STATIC_DRAW",r[r.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",r[r.BUFFER_SIZE=34660]="BUFFER_SIZE",r[r.BUFFER_USAGE=34661]="BUFFER_USAGE",r[r.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",r[r.FRONT=1028]="FRONT",r[r.BACK=1029]="BACK",r[r.FRONT_AND_BACK=1032]="FRONT_AND_BACK",r[r.CULL_FACE=2884]="CULL_FACE",r[r.BLEND=3042]="BLEND",r[r.DITHER=3024]="DITHER",r[r.STENCIL_TEST=2960]="STENCIL_TEST",r[r.DEPTH_TEST=2929]="DEPTH_TEST",r[r.SCISSOR_TEST=3089]="SCISSOR_TEST",r[r.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",r[r.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",r[r.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",r[r.NO_ERROR=0]="NO_ERROR",r[r.INVALID_ENUM=1280]="INVALID_ENUM",r[r.INVALID_VALUE=1281]="INVALID_VALUE",r[r.INVALID_OPERATION=1282]="INVALID_OPERATION",r[r.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",r[r.CW=2304]="CW",r[r.CCW=2305]="CCW",r[r.LINE_WIDTH=2849]="LINE_WIDTH",r[r.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",r[r.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",r[r.CULL_FACE_MODE=2885]="CULL_FACE_MODE",r[r.FRONT_FACE=2886]="FRONT_FACE",r[r.DEPTH_RANGE=2928]="DEPTH_RANGE",r[r.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",r[r.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",r[r.DEPTH_FUNC=2932]="DEPTH_FUNC",r[r.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",r[r.STENCIL_FUNC=2962]="STENCIL_FUNC",r[r.STENCIL_FAIL=2964]="STENCIL_FAIL",r[r.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",r[r.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",r[r.STENCIL_REF=2967]="STENCIL_REF",r[r.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",r[r.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",r[r.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",r[r.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",r[r.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",r[r.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",r[r.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",r[r.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",r[r.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",r[r.VIEWPORT=2978]="VIEWPORT",r[r.SCISSOR_BOX=3088]="SCISSOR_BOX",r[r.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",r[r.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",r[r.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",r[r.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",r[r.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",r[r.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",r[r.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",r[r.RED_BITS=3410]="RED_BITS",r[r.GREEN_BITS=3411]="GREEN_BITS",r[r.BLUE_BITS=3412]="BLUE_BITS",r[r.ALPHA_BITS=3413]="ALPHA_BITS",r[r.DEPTH_BITS=3414]="DEPTH_BITS",r[r.STENCIL_BITS=3415]="STENCIL_BITS",r[r.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",r[r.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",r[r.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",r[r.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",r[r.SAMPLES=32937]="SAMPLES",r[r.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",r[r.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",r[r.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",r[r.DONT_CARE=4352]="DONT_CARE",r[r.FASTEST=4353]="FASTEST",r[r.NICEST=4354]="NICEST",r[r.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",r[r.BYTE=5120]="BYTE",r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.SHORT=5122]="SHORT",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.INT=5124]="INT",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.FLOAT=5126]="FLOAT",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.ALPHA=6406]="ALPHA",r[r.RGB=6407]="RGB",r[r.RGBA=6408]="RGBA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",r[r.VERTEX_SHADER=35633]="VERTEX_SHADER",r[r.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",r[r.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",r[r.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",r[r.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",r[r.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",r[r.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",r[r.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",r[r.SHADER_TYPE=35663]="SHADER_TYPE",r[r.DELETE_STATUS=35712]="DELETE_STATUS",r[r.LINK_STATUS=35714]="LINK_STATUS",r[r.VALIDATE_STATUS=35715]="VALIDATE_STATUS",r[r.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",r[r.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",r[r.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",r[r.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",r[r.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",r[r.NEVER=512]="NEVER",r[r.LESS=513]="LESS",r[r.EQUAL=514]="EQUAL",r[r.LEQUAL=515]="LEQUAL",r[r.GREATER=516]="GREATER",r[r.NOTEQUAL=517]="NOTEQUAL",r[r.GEQUAL=518]="GEQUAL",r[r.ALWAYS=519]="ALWAYS",r[r.KEEP=7680]="KEEP",r[r.REPLACE=7681]="REPLACE",r[r.INCR=7682]="INCR",r[r.DECR=7683]="DECR",r[r.INVERT=5386]="INVERT",r[r.INCR_WRAP=34055]="INCR_WRAP",r[r.DECR_WRAP=34056]="DECR_WRAP",r[r.VENDOR=7936]="VENDOR",r[r.RENDERER=7937]="RENDERER",r[r.VERSION=7938]="VERSION",r[r.NEAREST=9728]="NEAREST",r[r.LINEAR=9729]="LINEAR",r[r.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",r[r.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",r[r.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",r[r.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",r[r.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",r[r.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",r[r.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",r[r.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE=5890]="TEXTURE",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",r[r.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",r[r.TEXTURE0=33984]="TEXTURE0",r[r.TEXTURE1=33985]="TEXTURE1",r[r.TEXTURE2=33986]="TEXTURE2",r[r.TEXTURE3=33987]="TEXTURE3",r[r.TEXTURE4=33988]="TEXTURE4",r[r.TEXTURE5=33989]="TEXTURE5",r[r.TEXTURE6=33990]="TEXTURE6",r[r.TEXTURE7=33991]="TEXTURE7",r[r.TEXTURE8=33992]="TEXTURE8",r[r.TEXTURE9=33993]="TEXTURE9",r[r.TEXTURE10=33994]="TEXTURE10",r[r.TEXTURE11=33995]="TEXTURE11",r[r.TEXTURE12=33996]="TEXTURE12",r[r.TEXTURE13=33997]="TEXTURE13",r[r.TEXTURE14=33998]="TEXTURE14",r[r.TEXTURE15=33999]="TEXTURE15",r[r.TEXTURE16=34e3]="TEXTURE16",r[r.TEXTURE17=34001]="TEXTURE17",r[r.TEXTURE18=34002]="TEXTURE18",r[r.TEXTURE19=34003]="TEXTURE19",r[r.TEXTURE20=34004]="TEXTURE20",r[r.TEXTURE21=34005]="TEXTURE21",r[r.TEXTURE22=34006]="TEXTURE22",r[r.TEXTURE23=34007]="TEXTURE23",r[r.TEXTURE24=34008]="TEXTURE24",r[r.TEXTURE25=34009]="TEXTURE25",r[r.TEXTURE26=34010]="TEXTURE26",r[r.TEXTURE27=34011]="TEXTURE27",r[r.TEXTURE28=34012]="TEXTURE28",r[r.TEXTURE29=34013]="TEXTURE29",r[r.TEXTURE30=34014]="TEXTURE30",r[r.TEXTURE31=34015]="TEXTURE31",r[r.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",r[r.REPEAT=10497]="REPEAT",r[r.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",r[r.FLOAT_VEC2=35664]="FLOAT_VEC2",r[r.FLOAT_VEC3=35665]="FLOAT_VEC3",r[r.FLOAT_VEC4=35666]="FLOAT_VEC4",r[r.INT_VEC2=35667]="INT_VEC2",r[r.INT_VEC3=35668]="INT_VEC3",r[r.INT_VEC4=35669]="INT_VEC4",r[r.BOOL=35670]="BOOL",r[r.BOOL_VEC2=35671]="BOOL_VEC2",r[r.BOOL_VEC3=35672]="BOOL_VEC3",r[r.BOOL_VEC4=35673]="BOOL_VEC4",r[r.FLOAT_MAT2=35674]="FLOAT_MAT2",r[r.FLOAT_MAT3=35675]="FLOAT_MAT3",r[r.FLOAT_MAT4=35676]="FLOAT_MAT4",r[r.SAMPLER_2D=35678]="SAMPLER_2D",r[r.SAMPLER_CUBE=35680]="SAMPLER_CUBE",r[r.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",r[r.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",r[r.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",r[r.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",r[r.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",r[r.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",r[r.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",r[r.COMPILE_STATUS=35713]="COMPILE_STATUS",r[r.LOW_FLOAT=36336]="LOW_FLOAT",r[r.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",r[r.HIGH_FLOAT=36338]="HIGH_FLOAT",r[r.LOW_INT=36339]="LOW_INT",r[r.MEDIUM_INT=36340]="MEDIUM_INT",r[r.HIGH_INT=36341]="HIGH_INT",r[r.FRAMEBUFFER=36160]="FRAMEBUFFER",r[r.RENDERBUFFER=36161]="RENDERBUFFER",r[r.RGBA4=32854]="RGBA4",r[r.RGB5_A1=32855]="RGB5_A1",r[r.RGB565=36194]="RGB565",r[r.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",r[r.STENCIL_INDEX=6401]="STENCIL_INDEX",r[r.STENCIL_INDEX8=36168]="STENCIL_INDEX8",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL",r[r.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",r[r.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",r[r.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",r[r.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",r[r.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",r[r.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",r[r.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",r[r.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",r[r.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",r[r.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",r[r.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",r[r.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",r[r.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",r[r.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",r[r.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",r[r.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",r[r.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",r[r.NONE=0]="NONE",r[r.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",r[r.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",r[r.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",r[r.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",r[r.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",r[r.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",r[r.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",r[r.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",r[r.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",r[r.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",r[r.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",r[r.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",r[r.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",r[r.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",r[r.COPY_SRC=1]="COPY_SRC",r[r.COPY_DST=2]="COPY_DST",r[r.SAMPLED=4]="SAMPLED",r[r.STORAGE=8]="STORAGE",r[r.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(ke||(ke={}));var Eie=function(){function r(){Ma(this,r),this.config=void 0}return Aa(r,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),r}(),Xf;(function(r){r.Void="Void",r.Boolean="Boolean",r.Float="Float",r.Uint32="Uint32",r.Int32="Int32",r.Vector="Vector",r.Vector2Float="vec2",r.Vector3Float="vec3",r.Vector4Float="vec4",r.Vector2Boolean="vec2",r.Vector3Boolean="vec3",r.Vector4Boolean="vec4",r.Vector2Uint="vec2",r.Vector3Uint="vec3",r.Vector4Uint="vec4",r.Vector2Int="vec2",r.Vector3Int="vec3",r.Vector4Int="vec4",r.Matrix="Matrix",r.Matrix3x3Float="mat3x3",r.Matrix4x4Float="mat4x4",r.Struct="Struct",r.FloatArray="Float[]",r.Vector4FloatArray="vec4[]"})(Xf||(Xf={}));var s2;(function(r){r.Program="Program",r.Identifier="Identifier",r.VariableDeclaration="VariableDeclaration",r.BlockStatement="BlockStatement",r.ReturnStatement="ReturnStatement",r.FunctionDeclaration="FunctionDeclaration",r.VariableDeclarator="VariableDeclarator",r.AssignmentExpression="AssignmentExpression",r.LogicalExpression="LogicalExpression",r.BinaryExpression="BinaryExpression",r.ArrayExpression="ArrayExpression",r.UnaryExpression="UnaryExpression",r.UpdateExpression="UpdateExpression",r.FunctionExpression="FunctionExpression",r.MemberExpression="MemberExpression",r.ConditionalExpression="ConditionalExpression",r.ExpressionStatement="ExpressionStatement",r.CallExpression="CallExpression",r.NumThreadStatement="NumThreadStatement",r.StorageStatement="StorageStatement",r.DoWhileStatement="DoWhileStatement",r.WhileStatement="WhileStatement",r.ForStatement="ForStatement",r.BreakStatement="BreakStatement",r.ContinueStatement="ContinueStatement",r.IfStatement="IfStatement",r.ImportedFunctionStatement="ImportedFunctionStatement"})(s2||(s2={}));var cu;(function(r){r.Input="Input",r.Output="Output",r.Uniform="Uniform",r.Workgroup="Workgroup",r.UniformConstant="UniformConstant",r.Image="Image",r.StorageBuffer="StorageBuffer",r.Private="Private",r.Function="Function"})(cu||(cu={}));var _f;(function(r){r.GLSL100="GLSL100",r.GLSL450="GLSL450",r.WGSL="WGSL"})(_f||(_f={}));var _ie="__DefineValuePlaceholder__";function Sie(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function u2(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function f2(r){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){f.next=6;break}return this.compiledBundle.context&&(i>1?this.compiledBundle.context.maxIteration=i:this.compiledBundle.context.maxIteration++),f.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(l){var c=l.isReferer;return c}).forEach(function(l){var c=l.data,h=l.name;a.model.confirmInput(c.model,h)}),o=0;o"u";case"symbol":return typeof T=="symbol"}}function h(T,F,W){c(T,F)||o("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T)}function d(T,F){T>=0&&(T|0)===T||o("invalid parameter type, ("+T+")"+u(F)+". must be a nonnegative integer")}function v(T,F,W){F.indexOf(T)<0&&o("invalid value"+u(W)+". must be one of: "+F)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(T){Object.keys(T).forEach(function(F){p.indexOf(F)<0&&o('invalid regl constructor argument "'+F+'". must be one of '+p)})}function y(T,F){for(T=T+"";T.length0&&F.push(new w("unknown",0,W))}}),F}function A(T,F){F.forEach(function(W){var ue=T[W.file];if(ue){var be=ue.index[W.line];if(be){be.errors.push(W),ue.hasErrors=!0;return}}T.unknown.hasErrors=!0,T.unknown.lines[0].errors.push(W)})}function M(T,F,W,ue,be){if(!T.getShaderParameter(F,T.COMPILE_STATUS)){var se=T.getShaderInfoLog(F),de=ue===T.FRAGMENT_SHADER?"fragment":"vertex";z(W,"string",de+" shader source must be a string",be);var Ce=_(W,be),Ne=S(se);A(Ce,Ne),Object.keys(Ce).forEach(function(Pe){var Oe=Ce[Pe];if(!Oe.hasErrors)return;var Be=[""],Xe=[""];function Te(Ge,re){Be.push(Ge),Xe.push(re||"")}Te("file number "+Pe+": "+Oe.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Oe.lines.forEach(function(Ge){if(Ge.errors.length>0){Te(y(Ge.number,4)+"| ","background-color:yellow; font-weight:bold"),Te(Ge.line+a,"color:red; background-color:yellow; font-weight:bold");var re=0;Ge.errors.forEach(function(ve){var De=ve.message,He=/^\s*'(.*)'\s*:\s*(.*)$/.exec(De);if(He){var Ee=He[1];switch(De=He[2],Ee){case"assign":Ee="=";break}re=Math.max(Ge.line.indexOf(Ee,re),0)}else re=0;Te(y("| ",6)),Te(y("^^^",re+3)+a,"font-weight:bold"),Te(y("| ",6)),Te(De+a,"font-weight:bold")}),Te(y("| ",6)+a)}else Te(y(Ge.number,4)+"| "),Te(Ge.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Xe[0]=Be.join("%c"),console.log.apply(console,Xe)):console.log(Be.join(""))}),s.raise("Error compiling "+de+" shader, "+Ce[0].name)}}function C(T,F,W,ue,be){if(!T.getProgramParameter(F,T.LINK_STATUS)){var se=T.getProgramInfoLog(F),de=_(W,be),Ce=_(ue,be),Ne='Error linking program with vertex shader, "'+Ce[0].name+'", and fragment shader "'+de[0].name+'"';typeof document<"u"?console.log("%c"+Ne+a+"%c"+se,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ne+a+se),s.raise(Ne)}}function I(T){T._commandRef=x()}function k(T,F,W,ue){I(T);function be(Ne){return Ne?ue.id(Ne):0}T._fragId=be(T.static.frag),T._vertId=be(T.static.vert);function se(Ne,Pe){Object.keys(Pe).forEach(function(Oe){Ne[ue.id(Oe)]=!0})}var de=T._uniformSet={};se(de,F.static),se(de,F.dynamic);var Ce=T._attributeSet={};se(Ce,W.static),se(Ce,W.dynamic),T._hasCount="count"in T.static||"count"in T.dynamic||"elements"in T.static||"elements"in T.dynamic}function O(T,F){var W=E();o(T+" in command "+(F||x())+(W==="unknown"?"":" called from "+W))}function B(T,F,W){T||O(F,W||x())}function L(T,F,W,ue){T in F||O("unknown parameter ("+T+")"+u(W)+". possible values: "+Object.keys(F).join(),ue||x())}function z(T,F,W,ue){c(T,F)||O("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T,ue||x())}function X(T){T()}function R(T,F,W){T.texture?v(T.texture._texture.internalformat,F,"unsupported texture format for attachment"):v(T.renderbuffer._renderbuffer.format,W,"unsupported renderbuffer format for attachment")}var V=33071,he=9728,ce=9984,le=9985,ie=9986,Ie=9987,qe=5120,Ve=5121,it=5122,dt=5123,st=5124,Tt=5125,_t=5126,lr=32819,Bt=32820,Wt=33635,vr=34042,cr=36193,$t={};$t[qe]=$t[Ve]=1,$t[it]=$t[dt]=$t[cr]=$t[Wt]=$t[lr]=$t[Bt]=2,$t[st]=$t[Tt]=$t[_t]=$t[vr]=4;function sr(T,F){return T===Bt||T===lr||T===Wt?2:T===vr?4:$t[T]*F}function tn(T){return!(T&T-1)&&!!T}function tt(T,F,W){var ue,be=F.width,se=F.height,de=F.channels;s(be>0&&be<=W.maxTextureSize&&se>0&&se<=W.maxTextureSize,"invalid texture shape"),(T.wrapS!==V||T.wrapT!==V)&&s(tn(be)&&tn(se),"incompatible wrap mode for texture, both width and height must be power of 2"),F.mipmask===1?be!==1&&se!==1&&s(T.minFilter!==ce&&T.minFilter!==ie&&T.minFilter!==le&&T.minFilter!==Ie,"min filter requires mipmap"):(s(tn(be)&&tn(se),"texture must be a square power of 2 to support mipmapping"),s(F.mipmask===(be<<1)-1,"missing or incomplete mipmap data")),F.type===_t&&(W.extensions.indexOf("oes_texture_float_linear")<0&&s(T.minFilter===he&&T.magFilter===he,"filter not supported, must enable oes_texture_float_linear"),s(!T.genMipmaps,"mipmap generation not supported with float textures"));var Ce=F.images;for(ue=0;ue<16;++ue)if(Ce[ue]){var Ne=be>>ue,Pe=se>>ue;s(F.mipmask&1<0&&be<=ue.maxTextureSize&&se>0&&se<=ue.maxTextureSize,"invalid texture shape"),s(be===se,"cube map must be square"),s(F.wrapS===V&&F.wrapT===V,"wrap mode not supported by cube map");for(var Ce=0;Ce>Oe,Te=se>>Oe;s(Ne.mipmask&1<1&&F===W&&(F==='"'||F==="'"))return['"'+Ze(T.substr(1,T.length-2))+'"'];var ue=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(T);if(ue)return Je(T.substr(0,ue.index)).concat(Je(ue[1])).concat(Je(T.substr(ue.index+ue[0].length)));var be=T.split(".");if(be.length===1)return['"'+Ze(T)+'"'];for(var se=[],de=0;deDt(W,F+"["+ue+"]")));if(T instanceof $e)return T;N(!1,"invalid option type in uniform "+F)}var fr={DynamicVariable:$e,define:Lt,isDynamic:ur,unbox:Dt,accessor:ht},or={next:typeof requestAnimationFrame=="function"?function(T){return requestAnimationFrame(T)}:function(T){return setTimeout(T,16)},cancel:typeof cancelAnimationFrame=="function"?function(T){return cancelAnimationFrame(T)}:clearTimeout},gr=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function hr(){var T={"":0},F=[""];return{id:function(W){var ue=T[W];return ue||(ue=T[W]=F.length,F.push(W),ue)},str:function(W){return F[W]}}}function hn(T,F,W){var ue=document.createElement("canvas");n(ue.style,{border:0,margin:0,padding:0,top:0,left:0}),T.appendChild(ue),T===document.body&&(ue.style.position="absolute",n(T.style,{margin:0,padding:0}));function be(){var Ce=window.innerWidth,Ne=window.innerHeight;if(T!==document.body){var Pe=T.getBoundingClientRect();Ce=Pe.right-Pe.left,Ne=Pe.bottom-Pe.top}ue.width=W*Ce,ue.height=W*Ne,n(ue.style,{width:Ce+"px",height:Ne+"px"})}var se;T!==document.body&&typeof ResizeObserver=="function"?(se=new ResizeObserver(function(){setTimeout(be)}),se.observe(T)):window.addEventListener("resize",be,!1);function de(){se?se.disconnect():window.removeEventListener("resize",be),T.removeChild(ue)}return be(),{canvas:ue,onDestroy:de}}function nr(T,F){function W(ue){try{return T.getContext(ue,F)}catch{return null}}return W("webgl")||W("experimental-webgl")||W("webgl-experimental")}function Fr(T){return typeof T.nodeName=="string"&&typeof T.appendChild=="function"&&typeof T.getBoundingClientRect=="function"}function oa(T){return typeof T.drawArrays=="function"||typeof T.drawElements=="function"}function Ur(T){return typeof T=="string"?T.split():(N(Array.isArray(T),"invalid extension array"),T)}function Mi(T){return typeof T=="string"?(N(typeof document<"u","not supported outside of DOM"),document.querySelector(T)):T}function bu(T){var F=T||{},W,ue,be,se,de={},Ce=[],Ne=[],Pe=typeof window>"u"?1:window.devicePixelRatio,Oe=!1,Be=function(Ge){Ge&&N.raise(Ge)},Xe=function(){};if(typeof F=="string"?(N(typeof document<"u","selector queries only supported in DOM enviroments"),W=document.querySelector(F),N(W,"invalid query string for element")):typeof F=="object"?Fr(F)?W=F:oa(F)?(se=F,be=se.canvas):(N.constructor(F),"gl"in F?se=F.gl:"canvas"in F?be=Mi(F.canvas):"container"in F&&(ue=Mi(F.container)),"attributes"in F&&(de=F.attributes,N.type(de,"object","invalid context attributes")),"extensions"in F&&(Ce=Ur(F.extensions)),"optionalExtensions"in F&&(Ne=Ur(F.optionalExtensions)),"onDone"in F&&(N.type(F.onDone,"function","invalid or missing onDone callback"),Be=F.onDone),"profile"in F&&(Oe=!!F.profile),"pixelRatio"in F&&(Pe=+F.pixelRatio,N(Pe>0,"invalid pixel ratio"))):N.raise("invalid arguments to regl"),W&&(W.nodeName.toLowerCase()==="canvas"?be=W:ue=W),!se){if(!be){N(typeof document<"u","must manually specify webgl context outside of DOM environments");var Te=hn(ue||document.body,Be,Pe);if(!Te)return null;be=Te.canvas,Xe=Te.onDestroy}de.premultipliedAlpha===void 0&&(de.premultipliedAlpha=!0),se=nr(be,de)}return se?{gl:se,canvas:be,container:ue,extensions:Ce,optionalExtensions:Ne,pixelRatio:Pe,profile:Oe,onDone:Be,onDestroy:Xe}:(Xe(),Be("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function wu(T,F){var W={};function ue(de){N.type(de,"string","extension name must be string");var Ce=de.toLowerCase(),Ne;try{Ne=W[Ce]=T.getExtension(Ce)}catch{}return!!Ne}for(var be=0;be65535)<<4,T>>>=F,W=(T>255)<<3,T>>>=W,F|=W,W=(T>15)<<2,T>>>=W,F|=W,W=(T>3)<<1,T>>>=W,F|=W,F|T>>1}function dr(){var T=rn(8,function(){return[]});function F(se){var de=ua(se),Ce=T[St(de)>>2];return Ce.length>0?Ce.pop():new ArrayBuffer(de)}function W(se){T[St(se.byteLength)>>2].push(se)}function ue(se,de){var Ce=null;switch(se){case ti:Ce=new Int8Array(F(de),0,de);break;case uo:Ce=new Uint8Array(F(de),0,de);break;case xu:Ce=new Int16Array(F(2*de),0,de);break;case Eu:Ce=new Uint16Array(F(2*de),0,de);break;case _u:Ce=new Int32Array(F(4*de),0,de);break;case sa:Ce=new Uint32Array(F(4*de),0,de);break;case Br:Ce=new Float32Array(F(4*de),0,de);break;default:return null}return Ce.length!==de?Ce.subarray(0,de):Ce}function be(se){W(se.buffer)}return{alloc:F,free:W,allocType:ue,freeType:be}}var gt=dr();gt.zero=dr();var Sr=3408,dn=3410,fo=3411,lo=3412,ri=3413,co=3414,ho=3415,vo=33901,xO=33902,EO=3379,_O=3386,SO=34921,MO=36347,AO=36348,CO=35661,TO=35660,IO=34930,kO=36349,NO=34076,OO=34024,LO=7936,DO=7937,PO=7938,RO=35724,FO=34047,BO=36063,GO=34852,xl=3553,i1=34067,zO=34069,jO=33984,Su=6408,av=5126,o1=5121,iv=36160,UO=36053,$O=36064,XO=16384,WO=function(T,F){var W=1;F.ext_texture_filter_anisotropic&&(W=T.getParameter(FO));var ue=1,be=1;F.webgl_draw_buffers&&(ue=T.getParameter(GO),be=T.getParameter(BO));var se=!!F.oes_texture_float;if(se){var de=T.createTexture();T.bindTexture(xl,de),T.texImage2D(xl,0,Su,1,1,0,Su,av,null);var Ce=T.createFramebuffer();if(T.bindFramebuffer(iv,Ce),T.framebufferTexture2D(iv,$O,xl,de,0),T.bindTexture(xl,null),T.checkFramebufferStatus(iv)!==UO)se=!1;else{T.viewport(0,0,1,1),T.clearColor(1,0,0,1),T.clear(XO);var Ne=gt.allocType(av,4);T.readPixels(0,0,1,1,Su,av,Ne),T.getError()?se=!1:(T.deleteFramebuffer(Ce),T.deleteTexture(de),se=Ne[0]===1),gt.freeType(Ne)}}var Pe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Oe=!0;if(!Pe){var Be=T.createTexture(),Xe=gt.allocType(o1,36);T.activeTexture(jO),T.bindTexture(i1,Be),T.texImage2D(zO,0,Su,3,3,0,Su,o1,Xe),gt.freeType(Xe),T.bindTexture(i1,null),T.deleteTexture(Be),Oe=!T.getError()}return{colorBits:[T.getParameter(dn),T.getParameter(fo),T.getParameter(lo),T.getParameter(ri)],depthBits:T.getParameter(co),stencilBits:T.getParameter(ho),subpixelBits:T.getParameter(Sr),extensions:Object.keys(F).filter(function(Te){return!!F[Te]}),maxAnisotropic:W,maxDrawbuffers:ue,maxColorAttachments:be,pointSizeDims:T.getParameter(vo),lineWidthDims:T.getParameter(xO),maxViewportDims:T.getParameter(_O),maxCombinedTextureUnits:T.getParameter(CO),maxCubeMapSize:T.getParameter(NO),maxRenderbufferSize:T.getParameter(OO),maxTextureUnits:T.getParameter(IO),maxTextureSize:T.getParameter(EO),maxAttributes:T.getParameter(SO),maxVertexUniforms:T.getParameter(MO),maxVertexTextureUnits:T.getParameter(TO),maxVaryingVectors:T.getParameter(AO),maxFragmentUniforms:T.getParameter(kO),glsl:T.getParameter(RO),renderer:T.getParameter(DO),vendor:T.getParameter(LO),version:T.getParameter(PO),readFloat:se,npotTextureCube:Oe}};function fa(T){return!!T&&typeof T=="object"&&Array.isArray(T.shape)&&Array.isArray(T.stride)&&typeof T.offset=="number"&&T.shape.length===T.stride.length&&(Array.isArray(T.data)||t(T.data))}var Pn=function(T){return Object.keys(T).map(function(F){return T[F]})},El={shape:HO,flatten:qO};function VO(T,F,W){for(var ue=0;ue0){var ze;if(Array.isArray(ve[0])){Ae=f1(ve);for(var Me=1,je=1;je0)if(typeof Me[0]=="number"){var We=gt.allocType(Ee.dtype,Me.length);c1(We,Me),Ae(We,ct),gt.freeType(We)}else if(Array.isArray(Me[0])||t(Me[0])){Mt=f1(Me);var Re=sv(Me,Mt,Ee.dtype);Ae(Re,ct),gt.freeType(Re)}else N.raise("invalid buffer data")}else if(fa(Me)){Mt=Me.shape;var xe=Me.stride,xt=0,It=0,nt=0,Rt=0;Mt.length===1?(xt=Mt[0],It=1,nt=xe[0],Rt=0):Mt.length===2?(xt=Mt[0],It=Mt[1],nt=xe[0],Rt=xe[1]):N.raise("invalid shape");var At=Array.isArray(Me.data)?Ee.dtype:Sl(Me.data),Pt=gt.allocType(At,xt*It);h1(Pt,Me.data,xt,It,nt,Rt,Me.offset),Ae(Pt,ct),gt.freeType(Pt)}else N.raise("invalid data for buffer subdata");return et}return De||et(re),et._reglType="buffer",et._buffer=Ee,et.subdata=ze,W.profile&&(et.stats=Ee.stats),et.destroy=function(){Xe(Ee)},et}function Ge(){Pn(se).forEach(function(re){re.buffer=T.createBuffer(),T.bindBuffer(re.type,re.buffer),T.bufferData(re.type,re.persistentData||re.byteLength,re.usage)})}return W.profile&&(F.getTotalBufferSize=function(){var re=0;return Object.keys(se).forEach(function(ve){re+=se[ve].stats.size}),re}),{create:Te,createStream:Ne,destroyStream:Pe,clear:function(){Pn(se).forEach(Xe),Ce.forEach(Xe)},getBuffer:function(re){return re&&re._buffer instanceof de?re._buffer:null},restore:Ge,_initBuffer:Be}}var uL=0,fL=0,lL=1,cL=1,hL=4,dL=4,rs={points:uL,point:fL,lines:lL,line:cL,triangles:hL,triangle:dL,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},vL=0,pL=1,Mu=4,gL=5120,ns=5121,d1=5122,as=5123,v1=5124,go=5125,lv=34963,yL=35040,mL=35044;function bL(T,F,W,ue){var be={},se=0,de={uint8:ns,uint16:as};F.oes_element_index_uint&&(de.uint32=go);function Ce(Ge){this.id=se++,be[this.id]=this,this.buffer=Ge,this.primType=Mu,this.vertCount=0,this.type=0}Ce.prototype.bind=function(){this.buffer.bind()};var Ne=[];function Pe(Ge){var re=Ne.pop();return re||(re=new Ce(W.create(null,lv,!0,!1)._buffer)),Be(re,Ge,yL,-1,-1,0,0),re}function Oe(Ge){Ne.push(Ge)}function Be(Ge,re,ve,De,He,Ee,et){Ge.buffer.bind();var Ae;if(re){var ze=et;!et&&(!t(re)||fa(re)&&!t(re.data))&&(ze=F.oes_element_index_uint?go:as),W._initBuffer(Ge.buffer,re,ve,ze,3)}else T.bufferData(lv,Ee,ve),Ge.buffer.dtype=Ae||ns,Ge.buffer.usage=ve,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ee;if(Ae=et,!et){switch(Ge.buffer.dtype){case ns:case gL:Ae=ns;break;case as:case d1:Ae=as;break;case go:case v1:Ae=go;break;default:N.raise("unsupported type for element array")}Ge.buffer.dtype=Ae}Ge.type=Ae,N(Ae!==go||!!F.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Me=He;Me<0&&(Me=Ge.buffer.byteLength,Ae===as?Me>>=1:Ae===go&&(Me>>=2)),Ge.vertCount=Me;var je=De;if(De<0){je=Mu;var ct=Ge.buffer.dimension;ct===1&&(je=vL),ct===2&&(je=pL),ct===3&&(je=Mu)}Ge.primType=je}function Xe(Ge){ue.elementsCount--,N(Ge.buffer!==null,"must not double destroy elements"),delete be[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function Te(Ge,re){var ve=W.create(null,lv,!0),De=new Ce(ve._buffer);ue.elementsCount++;function He(Ee){if(!Ee)ve(),De.primType=Mu,De.vertCount=0,De.type=ns;else if(typeof Ee=="number")ve(Ee),De.primType=Mu,De.vertCount=Ee|0,De.type=ns;else{var et=null,Ae=mL,ze=-1,Me=-1,je=0,ct=0;Array.isArray(Ee)||t(Ee)||fa(Ee)?et=Ee:(N.type(Ee,"object","invalid arguments for elements"),"data"in Ee&&(et=Ee.data,N(Array.isArray(et)||t(et)||fa(et),"invalid data for element buffer")),"usage"in Ee&&(N.parameter(Ee.usage,_l,"invalid element buffer usage"),Ae=_l[Ee.usage]),"primitive"in Ee&&(N.parameter(Ee.primitive,rs,"invalid element buffer primitive"),ze=rs[Ee.primitive]),"count"in Ee&&(N(typeof Ee.count=="number"&&Ee.count>=0,"invalid vertex count for elements"),Me=Ee.count|0),"type"in Ee&&(N.parameter(Ee.type,de,"invalid buffer type"),ct=de[Ee.type]),"length"in Ee?je=Ee.length|0:(je=Me,ct===as||ct===d1?je*=2:(ct===go||ct===v1)&&(je*=4))),Be(De,et,Ae,ze,Me,je,ct)}return He}return He(Ge),He._reglType="elements",He._elements=De,He.subdata=function(Ee,et){return ve.subdata(Ee,et),He},He.destroy=function(){Xe(De)},He}return{create:Te,createStream:Pe,destroyStream:Oe,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ce?Ge._elements:null},clear:function(){Pn(be).forEach(Xe)}}}var p1=new Float32Array(1),wL=new Uint32Array(p1.buffer),xL=5123;function g1(T){for(var F=gt.allocType(xL,T.length),W=0;W>>31<<15,se=(ue<<1>>>24)-127,de=ue>>13&1023;if(se<-24)F[W]=be;else if(se<-14){var Ce=-14-se;F[W]=be+(de+1024>>Ce)}else se>15?F[W]=be+31744:F[W]=be+(se+15<<10)+de}return F}function Mr(T){return Array.isArray(T)||t(T)}var y1=function(T){return!(T&T-1)&&!!T},EL=34467,Ca=3553,cv=34067,Ml=34069,yo=6408,hv=6406,Al=6407,Au=6409,Cl=6410,m1=32854,dv=32855,b1=36194,_L=32819,SL=32820,ML=33635,AL=34042,vv=6402,Tl=34041,pv=35904,gv=35906,is=36193,yv=33776,mv=33777,bv=33778,wv=33779,w1=35986,x1=35987,E1=34798,_1=35840,S1=35841,M1=35842,A1=35843,C1=36196,os=5121,xv=5123,Ev=5125,Cu=5126,CL=10242,TL=10243,IL=10497,_v=33071,kL=33648,NL=10240,OL=10241,Sv=9728,LL=9729,Mv=9984,T1=9985,I1=9986,Av=9987,DL=33170,Il=4352,PL=4353,RL=4354,FL=34046,BL=3317,GL=37440,zL=37441,jL=37443,k1=37444,Tu=33984,UL=[Mv,I1,T1,Av],kl=[0,Au,Cl,Al,yo],Yn={};Yn[Au]=Yn[hv]=Yn[vv]=1,Yn[Tl]=Yn[Cl]=2,Yn[Al]=Yn[pv]=3,Yn[yo]=Yn[gv]=4;function ss(T){return"[object "+T+"]"}var N1=ss("HTMLCanvasElement"),O1=ss("OffscreenCanvas"),L1=ss("CanvasRenderingContext2D"),D1=ss("ImageBitmap"),P1=ss("HTMLImageElement"),R1=ss("HTMLVideoElement"),$L=Object.keys(ov).concat([N1,O1,L1,D1,P1,R1]),us=[];us[os]=1,us[Cu]=4,us[is]=2,us[xv]=2,us[Ev]=4;var nn=[];nn[m1]=2,nn[dv]=2,nn[b1]=2,nn[Tl]=4,nn[yv]=.5,nn[mv]=.5,nn[bv]=1,nn[wv]=1,nn[w1]=.5,nn[x1]=1,nn[E1]=1,nn[_1]=.5,nn[S1]=.25,nn[M1]=.5,nn[A1]=.25,nn[C1]=.5;function F1(T){return Array.isArray(T)&&(T.length===0||typeof T[0]=="number")}function B1(T){if(!Array.isArray(T))return!1;var F=T.length;return!(F===0||!Mr(T[0]))}function mo(T){return Object.prototype.toString.call(T)}function G1(T){return mo(T)===N1}function z1(T){return mo(T)===O1}function XL(T){return mo(T)===L1}function WL(T){return mo(T)===D1}function VL(T){return mo(T)===P1}function YL(T){return mo(T)===R1}function Cv(T){if(!T)return!1;var F=mo(T);return $L.indexOf(F)>=0?!0:F1(T)||B1(T)||fa(T)}function j1(T){return ov[Object.prototype.toString.call(T)]|0}function qL(T,F){var W=F.length;switch(T.type){case os:case xv:case Ev:case Cu:var ue=gt.allocType(T.type,W);ue.set(F),T.data=ue;break;case is:T.data=g1(F);break;default:N.raise("unsupported texture type, must specify a typed array")}}function U1(T,F){return gt.allocType(T.type===is?Cu:T.type,F)}function $1(T,F){T.type===is?(T.data=g1(F),gt.freeType(F)):T.data=F}function HL(T,F,W,ue,be,se){for(var de=T.width,Ce=T.height,Ne=T.channels,Pe=de*Ce*Ne,Oe=U1(T,Pe),Be=0,Xe=0;Xe=1;)Ce+=de*Ne*Ne,Ne/=2;return Ce}else return de*W*ue}function ZL(T,F,W,ue,be,se,de){var Ce={"don't care":Il,"dont care":Il,nice:RL,fast:PL},Ne={repeat:IL,clamp:_v,mirror:kL},Pe={nearest:Sv,linear:LL},Oe=n({mipmap:Av,"nearest mipmap nearest":Mv,"linear mipmap nearest":T1,"nearest mipmap linear":I1,"linear mipmap linear":Av},Pe),Be={none:0,browser:k1},Xe={uint8:os,rgba4:_L,rgb565:ML,"rgb5 a1":SL},Te={alpha:hv,luminance:Au,"luminance alpha":Cl,rgb:Al,rgba:yo,rgba4:m1,"rgb5 a1":dv,rgb565:b1},Ge={};F.ext_srgb&&(Te.srgb=pv,Te.srgba=gv),F.oes_texture_float&&(Xe.float32=Xe.float=Cu),F.oes_texture_half_float&&(Xe.float16=Xe["half float"]=is),F.webgl_depth_texture&&(n(Te,{depth:vv,"depth stencil":Tl}),n(Xe,{uint16:xv,uint32:Ev,"depth stencil":AL})),F.webgl_compressed_texture_s3tc&&n(Ge,{"rgb s3tc dxt1":yv,"rgba s3tc dxt1":mv,"rgba s3tc dxt3":bv,"rgba s3tc dxt5":wv}),F.webgl_compressed_texture_atc&&n(Ge,{"rgb atc":w1,"rgba atc explicit alpha":x1,"rgba atc interpolated alpha":E1}),F.webgl_compressed_texture_pvrtc&&n(Ge,{"rgb pvrtc 4bppv1":_1,"rgb pvrtc 2bppv1":S1,"rgba pvrtc 4bppv1":M1,"rgba pvrtc 2bppv1":A1}),F.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=C1);var re=Array.prototype.slice.call(T.getParameter(EL));Object.keys(Ge).forEach(function($){var fe=Ge[$];re.indexOf(fe)>=0&&(Te[$]=fe)});var ve=Object.keys(Te);W.textureFormats=ve;var De=[];Object.keys(Te).forEach(function($){var fe=Te[$];De[fe]=$});var He=[];Object.keys(Xe).forEach(function($){var fe=Xe[$];He[fe]=$});var Ee=[];Object.keys(Pe).forEach(function($){var fe=Pe[$];Ee[fe]=$});var et=[];Object.keys(Oe).forEach(function($){var fe=Oe[$];et[fe]=$});var Ae=[];Object.keys(Ne).forEach(function($){var fe=Ne[$];Ae[fe]=$});var ze=ve.reduce(function($,fe){var oe=Te[fe];return oe===Au||oe===hv||oe===Au||oe===Cl||oe===vv||oe===Tl||F.ext_srgb&&(oe===pv||oe===gv)?$[oe]=oe:oe===dv||fe.indexOf("rgba")>=0?$[oe]=yo:$[oe]=Al,$},{});function Me(){this.internalformat=yo,this.format=yo,this.type=os,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=k1,this.width=0,this.height=0,this.channels=0}function je($,fe){$.internalformat=fe.internalformat,$.format=fe.format,$.type=fe.type,$.compressed=fe.compressed,$.premultiplyAlpha=fe.premultiplyAlpha,$.flipY=fe.flipY,$.unpackAlignment=fe.unpackAlignment,$.colorSpace=fe.colorSpace,$.width=fe.width,$.height=fe.height,$.channels=fe.channels}function ct($,fe){if(!(typeof fe!="object"||!fe)){if("premultiplyAlpha"in fe&&(N.type(fe.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),$.premultiplyAlpha=fe.premultiplyAlpha),"flipY"in fe&&(N.type(fe.flipY,"boolean","invalid texture flip"),$.flipY=fe.flipY),"alignment"in fe&&(N.oneOf(fe.alignment,[1,2,4,8],"invalid texture unpack alignment"),$.unpackAlignment=fe.alignment),"colorSpace"in fe&&(N.parameter(fe.colorSpace,Be,"invalid colorSpace"),$.colorSpace=Be[fe.colorSpace]),"type"in fe){var oe=fe.type;N(F.oes_texture_float||!(oe==="float"||oe==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),N(F.oes_texture_half_float||!(oe==="half float"||oe==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),N(F.webgl_depth_texture||!(oe==="uint16"||oe==="uint32"||oe==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(oe,Xe,"invalid texture type"),$.type=Xe[oe]}var rt=$.width,Ft=$.height,j=$.channels,D=!1;"shape"in fe?(N(Array.isArray(fe.shape)&&fe.shape.length>=2,"shape must be an array"),rt=fe.shape[0],Ft=fe.shape[1],fe.shape.length===3&&(j=fe.shape[2],N(j>0&&j<=4,"invalid number of channels"),D=!0),N(rt>=0&&rt<=W.maxTextureSize,"invalid width"),N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")):("radius"in fe&&(rt=Ft=fe.radius,N(rt>=0&&rt<=W.maxTextureSize,"invalid radius")),"width"in fe&&(rt=fe.width,N(rt>=0&&rt<=W.maxTextureSize,"invalid width")),"height"in fe&&(Ft=fe.height,N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")),"channels"in fe&&(j=fe.channels,N(j>0&&j<=4,"invalid number of channels"),D=!0)),$.width=rt|0,$.height=Ft|0,$.channels=j|0;var q=!1;if("format"in fe){var ee=fe.format;N(F.webgl_depth_texture||!(ee==="depth"||ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(ee,Te,"invalid texture format");var ne=$.internalformat=Te[ee];$.format=ze[ne],ee in Xe&&("type"in fe||($.type=Xe[ee])),ee in Ge&&($.compressed=!0),q=!0}!D&&q?$.channels=Yn[$.format]:D&&!q?$.channels!==kl[$.format]&&($.format=$.internalformat=kl[$.channels]):q&&D&&N($.channels===Yn[$.format],"number of channels inconsistent with specified format")}}function Mt($){T.pixelStorei(GL,$.flipY),T.pixelStorei(zL,$.premultiplyAlpha),T.pixelStorei(jL,$.colorSpace),T.pixelStorei(BL,$.unpackAlignment)}function We(){Me.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Re($,fe){var oe=null;if(Cv(fe)?oe=fe:fe&&(N.type(fe,"object","invalid pixel data type"),ct($,fe),"x"in fe&&($.xOffset=fe.x|0),"y"in fe&&($.yOffset=fe.y|0),Cv(fe.data)&&(oe=fe.data)),N(!$.compressed||oe instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),fe.copy){N(!oe,"can not specify copy and data field for the same texture");var rt=be.viewportWidth,Ft=be.viewportHeight;$.width=$.width||rt-$.xOffset,$.height=$.height||Ft-$.yOffset,$.needsCopy=!0,N($.xOffset>=0&&$.xOffset=0&&$.yOffset0&&$.width<=rt&&$.height>0&&$.height<=Ft,"copy texture read out of bounds")}else if(!oe)$.width=$.width||1,$.height=$.height||1,$.channels=$.channels||4;else if(t(oe))$.channels=$.channels||4,$.data=oe,!("type"in fe)&&$.type===os&&($.type=j1(oe));else if(F1(oe))$.channels=$.channels||4,qL($,oe),$.alignment=1,$.needsFree=!0;else if(fa(oe)){var j=oe.data;!Array.isArray(j)&&$.type===os&&($.type=j1(j));var D=oe.shape,q=oe.stride,ee,ne,K,H,Q,U;D.length===3?(K=D[2],U=q[2]):(N(D.length===2,"invalid ndarray pixel data, must be 2 or 3D"),K=1,U=1),ee=D[0],ne=D[1],H=q[0],Q=q[1],$.alignment=1,$.width=ee,$.height=ne,$.channels=K,$.format=$.internalformat=kl[K],$.needsFree=!0,HL($,j,H,Q,U,oe.offset)}else if(G1(oe)||z1(oe)||XL(oe))G1(oe)||z1(oe)?$.element=oe:$.element=oe.canvas,$.width=$.element.width,$.height=$.element.height,$.channels=4;else if(WL(oe))$.element=oe,$.width=oe.width,$.height=oe.height,$.channels=4;else if(VL(oe))$.element=oe,$.width=oe.naturalWidth,$.height=oe.naturalHeight,$.channels=4;else if(YL(oe))$.element=oe,$.width=oe.videoWidth,$.height=oe.videoHeight,$.channels=4;else if(B1(oe)){var Y=$.width||oe[0].length,G=$.height||oe.length,J=$.channels;Mr(oe[0][0])?J=J||oe[0][0].length:J=J||1;for(var ae=El.shape(oe),ye=1,we=0;we=0,"oes_texture_float extension not enabled"):$.type===is&&N(W.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xe($,fe,oe){var rt=$.element,Ft=$.data,j=$.internalformat,D=$.format,q=$.type,ee=$.width,ne=$.height;Mt($),rt?T.texImage2D(fe,oe,D,D,q,rt):$.compressed?T.compressedTexImage2D(fe,oe,j,ee,ne,0,Ft):$.needsCopy?(ue(),T.copyTexImage2D(fe,oe,D,$.xOffset,$.yOffset,ee,ne,0)):T.texImage2D(fe,oe,D,ee,ne,0,D,q,Ft||null)}function xt($,fe,oe,rt,Ft){var j=$.element,D=$.data,q=$.internalformat,ee=$.format,ne=$.type,K=$.width,H=$.height;Mt($),j?T.texSubImage2D(fe,Ft,oe,rt,ee,ne,j):$.compressed?T.compressedTexSubImage2D(fe,Ft,oe,rt,q,K,H,D):$.needsCopy?(ue(),T.copyTexSubImage2D(fe,Ft,oe,rt,$.xOffset,$.yOffset,K,H)):T.texSubImage2D(fe,Ft,oe,rt,K,H,ee,ne,D)}var It=[];function nt(){return It.pop()||new We}function Rt($){$.needsFree&>.freeType($.data),We.call($),It.push($)}function At(){Me.call(this),this.genMipmaps=!1,this.mipmapHint=Il,this.mipmask=0,this.images=Array(16)}function Pt($,fe,oe){var rt=$.images[0]=nt();$.mipmask=1,rt.width=$.width=fe,rt.height=$.height=oe,rt.channels=$.channels=4}function Qt($,fe){var oe=null;if(Cv(fe))oe=$.images[0]=nt(),je(oe,$),Re(oe,fe),$.mipmask=1;else if(ct($,fe),Array.isArray(fe.mipmap))for(var rt=fe.mipmap,Ft=0;Ft>=Ft,oe.height>>=Ft,Re(oe,rt[Ft]),$.mipmask|=1<=0&&!("faces"in fe)&&($.genMipmaps=!0)}if("mag"in fe){var rt=fe.mag;N.parameter(rt,Pe),$.magFilter=Pe[rt]}var Ft=$.wrapS,j=$.wrapT;if("wrap"in fe){var D=fe.wrap;typeof D=="string"?(N.parameter(D,Ne),Ft=j=Ne[D]):Array.isArray(D)&&(N.parameter(D[0],Ne),N.parameter(D[1],Ne),Ft=Ne[D[0]],j=Ne[D[1]])}else{if("wrapS"in fe){var q=fe.wrapS;N.parameter(q,Ne),Ft=Ne[q]}if("wrapT"in fe){var ee=fe.wrapT;N.parameter(ee,Ne),j=Ne[ee]}}if($.wrapS=Ft,$.wrapT=j,"anisotropic"in fe){var ne=fe.anisotropic;N(typeof ne=="number"&&ne>=1&&ne<=W.maxAnisotropic,"aniso samples must be between 1 and "),$.anisotropic=fe.anisotropic}if("mipmap"in fe){var K=!1;switch(typeof fe.mipmap){case"string":N.parameter(fe.mipmap,Ce,"invalid mipmap hint"),$.mipmapHint=Ce[fe.mipmap],$.genMipmaps=!0,K=!0;break;case"boolean":K=$.genMipmaps=fe.mipmap;break;case"object":N(Array.isArray(fe.mipmap),"invalid mipmap type"),$.genMipmaps=!1,K=!0;break;default:N.raise("invalid mipmap type")}K&&!("min"in fe)&&($.minFilter=Mv)}}function zr($,fe){T.texParameteri(fe,OL,$.minFilter),T.texParameteri(fe,NL,$.magFilter),T.texParameteri(fe,CL,$.wrapS),T.texParameteri(fe,TL,$.wrapT),F.ext_texture_filter_anisotropic&&T.texParameteri(fe,FL,$.anisotropic),$.genMipmaps&&(T.hint(DL,$.mipmapHint),T.generateMipmap(fe))}var jr=0,Yr={},an=W.maxTextureUnits,Ar=Array(an).map(function(){return null});function kt($){Me.call(this),this.mipmask=0,this.internalformat=yo,this.id=jr++,this.refCount=1,this.target=$,this.texture=T.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new pr,de.profile&&(this.stats={size:0})}function on($){T.activeTexture(Tu),T.bindTexture($.target,$.texture)}function ir(){var $=Ar[0];$?T.bindTexture($.target,$.texture):T.bindTexture(Ca,null)}function vt($){var fe=$.texture;N(fe,"must not double destroy texture");var oe=$.unit,rt=$.target;oe>=0&&(T.activeTexture(Tu+oe),T.bindTexture(rt,null),Ar[oe]=null),T.deleteTexture(fe),$.texture=null,$.params=null,$.pixels=null,$.refCount=0,delete Yr[$.id],se.textureCount--}n(kt.prototype,{bind:function(){var $=this;$.bindCount+=1;var fe=$.unit;if(fe<0){for(var oe=0;oe0)continue;rt.unit=-1}Ar[oe]=$,fe=oe;break}fe>=an&&N.raise("insufficient number of texture units"),de.profile&&se.maxTextureUnits>Q)-K,U.height=U.height||(oe.height>>Q)-H,N(oe.type===U.type&&oe.format===U.format&&oe.internalformat===U.internalformat,"incompatible format for texture.subimage"),N(K>=0&&H>=0&&K+U.width<=oe.width&&H+U.height<=oe.height,"texture.subimage write out of bounds"),N(oe.mipmask&1<>K;++K){var H=ee>>K,Q=ne>>K;if(!H||!Q)break;T.texImage2D(Ca,K,oe.format,H,Q,0,oe.format,oe.type,null)}return ir(),de.profile&&(oe.stats.size=Nl(oe.internalformat,oe.type,ee,ne,!1,!1)),rt}return rt($,fe),rt.subimage=Ft,rt.resize=j,rt._reglType="texture2d",rt._texture=oe,de.profile&&(rt.stats=oe.stats),rt.destroy=function(){oe.decRef()},rt}function Vt($,fe,oe,rt,Ft,j){var D=new kt(cv);Yr[D.id]=D,se.cubeCount++;var q=new Array(6);function ee(H,Q,U,Y,G,J){var ae,ye=D.texInfo;for(pr.call(ye),ae=0;ae<6;++ae)q[ae]=zt();if(typeof H=="number"||!H){var we=H|0||1;for(ae=0;ae<6;++ae)Pt(q[ae],we,we)}else if(typeof H=="object")if(Q)Qt(q[0],H),Qt(q[1],Q),Qt(q[2],U),Qt(q[3],Y),Qt(q[4],G),Qt(q[5],J);else if(Or(ye,H),ct(D,H),"faces"in H){var pe=H.faces;for(N(Array.isArray(pe)&&pe.length===6,"cube faces must be a length 6 array"),ae=0;ae<6;++ae)N(typeof pe[ae]=="object"&&!!pe[ae],"invalid input for cube map face"),je(q[ae],D),Qt(q[ae],pe[ae])}else for(ae=0;ae<6;++ae)Qt(q[ae],H);else N.raise("invalid arguments to cube map");for(je(D,q[0]),W.npotTextureCube||N(y1(D.width)&&y1(D.height),"your browser does not support non power or two texture dimensions"),ye.genMipmaps?D.mipmask=(q[0].width<<1)-1:D.mipmask=q[0].mipmask,N.textureCube(D,ye,q,W),D.internalformat=q[0].internalformat,ee.width=q[0].width,ee.height=q[0].height,on(D),ae=0;ae<6;++ae)Nr(q[ae],Ml+ae);for(zr(ye,cv),ir(),de.profile&&(D.stats.size=Nl(D.internalformat,D.type,ee.width,ee.height,ye.genMipmaps,!0)),ee.format=De[D.internalformat],ee.type=He[D.type],ee.mag=Ee[ye.magFilter],ee.min=et[ye.minFilter],ee.wrapS=Ae[ye.wrapS],ee.wrapT=Ae[ye.wrapT],ae=0;ae<6;++ae)Gr(q[ae]);return ee}function ne(H,Q,U,Y,G){N(!!Q,"must specify image data"),N(typeof H=="number"&&H===(H|0)&&H>=0&&H<6,"invalid face");var J=U|0,ae=Y|0,ye=G|0,we=nt();return je(we,D),we.width=0,we.height=0,Re(we,Q),we.width=we.width||(D.width>>ye)-J,we.height=we.height||(D.height>>ye)-ae,N(D.type===we.type&&D.format===we.format&&D.internalformat===we.internalformat,"incompatible format for texture.subimage"),N(J>=0&&ae>=0&&J+we.width<=D.width&&ae+we.height<=D.height,"texture.subimage write out of bounds"),N(D.mipmask&1<>Y;++Y)T.texImage2D(Ml+U,Y,D.format,Q>>Y,Q>>Y,0,D.format,D.type,null);return ir(),de.profile&&(D.stats.size=Nl(D.internalformat,D.type,ee.width,ee.height,!1,!0)),ee}}return ee($,fe,oe,rt,Ft,j),ee.subimage=ne,ee.resize=K,ee._reglType="textureCube",ee._texture=D,de.profile&&(ee.stats=D.stats),ee.destroy=function(){D.decRef()},ee}function Cr(){for(var $=0;$>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);else for(var Ft=0;Ft<6;++Ft)T.texImage2D(Ml+Ft,rt,oe.internalformat,oe.width>>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);zr(oe.texInfo,oe.target)})}function Mo(){for(var $=0;$=2,"invalid renderbuffer shape"),et=je[0]|0,Ae=je[1]|0}else"radius"in Me&&(et=Ae=Me.radius|0),"width"in Me&&(et=Me.width|0),"height"in Me&&(Ae=Me.height|0);"format"in Me&&(N.parameter(Me.format,se,"invalid renderbuffer format"),ze=se[Me.format])}else typeof He=="number"?(et=He|0,typeof Ee=="number"?Ae=Ee|0:Ae=et):He?N.raise("invalid arguments to renderbuffer constructor"):et=Ae=1;if(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),!(et===re.width&&Ae===re.height&&ze===re.format))return ve.width=re.width=et,ve.height=re.height=Ae,re.format=ze,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,ze,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=J1(re.format,re.width,re.height)),ve.format=de[re.format],ve}function De(He,Ee){var et=He|0,Ae=Ee|0||et;return et===re.width&&Ae===re.height||(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),ve.width=re.width=et,ve.height=re.height=Ae,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,re.format,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=J1(re.format,re.width,re.height))),ve}return ve(Te,Ge),ve.resize=De,ve._reglType="renderbuffer",ve._renderbuffer=re,be.profile&&(ve.stats=re.stats),ve.destroy=function(){re.decRef()},ve}be.profile&&(ue.getTotalRenderbufferSize=function(){var Te=0;return Object.keys(Ne).forEach(function(Ge){Te+=Ne[Ge].stats.size}),Te});function Xe(){Pn(Ne).forEach(function(Te){Te.renderbuffer=T.createRenderbuffer(),T.bindRenderbuffer(Ci,Te.renderbuffer),T.renderbufferStorage(Ci,Te.format,Te.width,Te.height)}),T.bindRenderbuffer(Ci,null)}return{create:Be,clear:function(){Pn(Ne).forEach(Oe)},restore:Xe}},ni=36160,Tv=36161,bo=3553,Ll=34069,eb=36064,tb=36096,rb=36128,nb=33306,ab=36053,QL=36054,JL=36055,eD=36057,tD=36061,rD=36193,nD=5121,aD=5126,ib=6407,ob=6408,iD=6402,oD=[ib,ob],Iv=[];Iv[ob]=4,Iv[ib]=3;var Dl=[];Dl[nD]=1,Dl[aD]=4,Dl[rD]=2;var sD=32854,uD=32855,fD=36194,lD=33189,cD=36168,sb=34041,hD=35907,dD=34836,vD=34842,pD=34843,gD=[sD,uD,fD,hD,vD,pD,dD],fs={};fs[ab]="complete",fs[QL]="incomplete attachment",fs[eD]="incomplete dimensions",fs[JL]="incomplete, missing attachment",fs[tD]="unsupported";function yD(T,F,W,ue,be,se){var de={cur:null,next:null,dirty:!1,setFBO:null},Ce=["rgba"],Ne=["rgba4","rgb565","rgb5 a1"];F.ext_srgb&&Ne.push("srgba"),F.ext_color_buffer_half_float&&Ne.push("rgba16f","rgb16f"),F.webgl_color_buffer_float&&Ne.push("rgba32f");var Pe=["uint8"];F.oes_texture_half_float&&Pe.push("half float","float16"),F.oes_texture_float&&Pe.push("float","float32");function Oe(We,Re,xe){this.target=We,this.texture=Re,this.renderbuffer=xe;var xt=0,It=0;Re?(xt=Re.width,It=Re.height):xe&&(xt=xe.width,It=xe.height),this.width=xt,this.height=It}function Be(We){We&&(We.texture&&We.texture._texture.decRef(),We.renderbuffer&&We.renderbuffer._renderbuffer.decRef())}function Xe(We,Re,xe){if(We)if(We.texture){var xt=We.texture._texture,It=Math.max(1,xt.width),nt=Math.max(1,xt.height);N(It===Re&&nt===xe,"inconsistent width/height for supplied texture"),xt.refCount+=1}else{var Rt=We.renderbuffer._renderbuffer;N(Rt.width===Re&&Rt.height===xe,"inconsistent width/height for renderbuffer"),Rt.refCount+=1}}function Te(We,Re){Re&&(Re.texture?T.framebufferTexture2D(ni,We,Re.target,Re.texture._texture.texture,0):T.framebufferRenderbuffer(ni,We,Tv,Re.renderbuffer._renderbuffer.renderbuffer))}function Ge(We){var Re=bo,xe=null,xt=null,It=We;typeof We=="object"&&(It=We.data,"target"in We&&(Re=We.target|0)),N.type(It,"function","invalid attachment data");var nt=It._reglType;return nt==="texture2d"?(xe=It,N(Re===bo)):nt==="textureCube"?(xe=It,N(Re>=Ll&&Re=2,"invalid shape for framebuffer"),Pt=on[0],Qt=on[1]}else"radius"in kt&&(Pt=Qt=kt.radius),"width"in kt&&(Pt=kt.width),"height"in kt&&(Qt=kt.height);("color"in kt||"colors"in kt)&&(zt=kt.color||kt.colors,Array.isArray(zt)&&N(zt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),zt||("colorCount"in kt&&(zr=kt.colorCount|0,N(zr>0,"invalid color buffer count")),"colorTexture"in kt&&(Gr=!!kt.colorTexture,pr="rgba4"),"colorType"in kt&&(Or=kt.colorType,Gr?(N(F.oes_texture_float||!(Or==="float"||Or==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),N(F.oes_texture_half_float||!(Or==="half float"||Or==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Or==="half float"||Or==="float16"?(N(F.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),pr="rgba16f"):(Or==="float"||Or==="float32")&&(N(F.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),pr="rgba32f"),N.oneOf(Or,Pe,"invalid color type")),"colorFormat"in kt&&(pr=kt.colorFormat,Ce.indexOf(pr)>=0?Gr=!0:Ne.indexOf(pr)>=0?Gr=!1:Gr?N.oneOf(kt.colorFormat,Ce,"invalid color format for texture"):N.oneOf(kt.colorFormat,Ne,"invalid color format for renderbuffer"))),("depthTexture"in kt||"depthStencilTexture"in kt)&&(Ar=!!(kt.depthTexture||kt.depthStencilTexture),N(!Ar||F.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in kt&&(typeof kt.depth=="boolean"?Nr=kt.depth:(jr=kt.depth,$r=!1)),"stencil"in kt&&(typeof kt.stencil=="boolean"?$r=kt.stencil:(Yr=kt.stencil,Nr=!1)),"depthStencil"in kt&&(typeof kt.depthStencil=="boolean"?Nr=$r=kt.depthStencil:(an=kt.depthStencil,Nr=!1,$r=!1))}var ir=null,vt=null,Gt=null,Vt=null;if(Array.isArray(zt))ir=zt.map(Ge);else if(zt)ir=[Ge(zt)];else for(ir=new Array(zr),At=0;At=0||ir[At].renderbuffer&&gD.indexOf(ir[At].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+At+" is invalid"),ir[At]&&ir[At].texture){var Ia=Iv[ir[At].texture._texture.format]*Dl[ir[At].texture._texture.type];Cr===null?Cr=Ia:N(Cr===Ia,"all color attachments much have the same number of bits per pixel.")}return Xe(vt,Pt,Qt),N(!vt||vt.texture&&vt.texture._texture.format===iD||vt.renderbuffer&&vt.renderbuffer._renderbuffer.format===lD,"invalid depth attachment for framebuffer object"),Xe(Gt,Pt,Qt),N(!Gt||Gt.renderbuffer&&Gt.renderbuffer._renderbuffer.format===cD,"invalid stencil attachment for framebuffer object"),Xe(Vt,Pt,Qt),N(!Vt||Vt.texture&&Vt.texture._texture.format===sb||Vt.renderbuffer&&Vt.renderbuffer._renderbuffer.format===sb,"invalid depth-stencil attachment for framebuffer object"),Ae(xe),xe.width=Pt,xe.height=Qt,xe.colorAttachments=ir,xe.depthAttachment=vt,xe.stencilAttachment=Gt,xe.depthStencilAttachment=Vt,xt.color=ir.map(ve),xt.depth=ve(vt),xt.stencil=ve(Gt),xt.depthStencil=ve(Vt),xt.width=xe.width,xt.height=xe.height,Me(xe),xt}function It(nt,Rt){N(de.next!==xe,"can not resize a framebuffer which is currently in use");var At=Math.max(nt|0,1),Pt=Math.max(Rt|0||At,1);if(At===xe.width&&Pt===xe.height)return xt;for(var Qt=xe.colorAttachments,Nr=0;Nr=2,"invalid shape for framebuffer"),N(Gr[0]===Gr[1],"cube framebuffer must be square"),At=Gr[0]}else"radius"in zt&&(At=zt.radius|0),"width"in zt?(At=zt.width|0,"height"in zt&&N(zt.height===At,"must be square")):"height"in zt&&(At=zt.height|0);("color"in zt||"colors"in zt)&&(Pt=zt.color||zt.colors,Array.isArray(Pt)&&N(Pt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),Pt||("colorCount"in zt&&($r=zt.colorCount|0,N($r>0,"invalid color buffer count")),"colorType"in zt&&(N.oneOf(zt.colorType,Pe,"invalid color type"),Nr=zt.colorType),"colorFormat"in zt&&(Qt=zt.colorFormat,N.oneOf(zt.colorFormat,Ce,"invalid color format for texture"))),"depth"in zt&&(Rt.depth=zt.depth),"stencil"in zt&&(Rt.stencil=zt.stencil),"depthStencil"in zt&&(Rt.depthStencil=zt.depthStencil)}var pr;if(Pt)if(Array.isArray(Pt))for(pr=[],nt=0;nt0&&(Rt.depth=Re[0].depth,Rt.stencil=Re[0].stencil,Rt.depthStencil=Re[0].depthStencil),Re[nt]?Re[nt](Rt):Re[nt]=je(Rt)}return n(xe,{width:At,height:At,color:pr})}function xt(It){var nt,Rt=It|0;if(N(Rt>0&&Rt<=W.maxCubeMapSize,"invalid radius for cube fbo"),Rt===xe.width)return xe;var At=xe.color;for(nt=0;nt0,"must specify at least one attribute");var ct={},Mt=ze.attributes;Mt.length=je.length;for(var We=0;We=xt.byteLength?It.subdata(xt):(It.destroy(),ze.buffers[We]=null)),ze.buffers[We]||(It=ze.buffers[We]=be.create(Re,ub,!1,!0)),xe.buffer=be.getBuffer(It),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1,ct[We]=1}else be.getBuffer(Re)?(xe.buffer=be.getBuffer(Re),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1):be.getBuffer(Re.buffer)?(xe.buffer=be.getBuffer(Re.buffer),xe.size=(+Re.size||xe.buffer.dimension)|0,xe.normalized=!!Re.normalized||!1,"type"in Re?(N.parameter(Re.type,po,"invalid buffer type"),xe.type=po[Re.type]):xe.type=xe.buffer.dtype,xe.offset=(Re.offset||0)|0,xe.stride=(Re.stride||0)|0,xe.divisor=(Re.divisor||0)|0,xe.state=1,N(xe.size>=1&&xe.size<=4,"size must be between 1 and 4"),N(xe.offset>=0,"invalid offset"),N(xe.stride>=0&&xe.stride<=255,"stride must be between 0 and 255"),N(xe.divisor>=0,"divisor must be positive"),N(!xe.divisor||!!F.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Re?(N(We>0,"first attribute must not be a constant"),xe.x=+Re.x||0,xe.y=+Re.y||0,xe.z=+Re.z||0,xe.w=+Re.w||0,xe.state=2):N(!1,"invalid attribute spec for location "+We)}for(var nt=0;nt1)for(var Mt=0;Mtre&&(re=ve.stats.uniformsCount)}),re},W.getMaxAttributesCount=function(){var re=0;return Oe.forEach(function(ve){ve.stats.attributesCount>re&&(re=ve.stats.attributesCount)}),re});function Ge(){be={},se={};for(var re=0;re=0,"missing vertex shader",De),N.command(ve>=0,"missing fragment shader",De);var Ee=Pe[ve];Ee||(Ee=Pe[ve]={});var et=Ee[re];if(et&&(et.refCount++,!He))return et;var Ae=new Xe(ve,re);return W.shaderCount++,Te(Ae,De,He),et||(Ee[re]=Ae),Oe.push(Ae),n(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){T.deleteProgram(Ae.program);var ze=Oe.indexOf(Ae);Oe.splice(ze,1),W.shaderCount--}Ee[Ae.vertId].refCount<=0&&(T.deleteShader(se[Ae.vertId]),delete se[Ae.vertId],delete Pe[Ae.fragId][Ae.vertId]),Object.keys(Pe[Ae.fragId]).length||(T.deleteShader(be[Ae.fragId]),delete be[Ae.fragId],delete Pe[Ae.fragId])}})},restore:Ge,shader:Ne,frag:-1,vert:-1}}var SD=6408,Iu=5121,MD=3333,Pl=5126;function AD(T,F,W,ue,be,se,de){function Ce(Oe){var Be;F.next===null?(N(be.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Be=Iu):(N(F.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Be=F.next.colorAttachments[0].texture._texture.type,se.oes_texture_float?(N(Be===Iu||Be===Pl,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Be===Pl&&N(de.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):N(Be===Iu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Xe=0,Te=0,Ge=ue.framebufferWidth,re=ue.framebufferHeight,ve=null;t(Oe)?ve=Oe:Oe&&(N.type(Oe,"object","invalid arguments to regl.read()"),Xe=Oe.x|0,Te=Oe.y|0,N(Xe>=0&&Xe=0&&Te0&&Ge+Xe<=ue.framebufferWidth,"invalid width for read pixels"),N(re>0&&re+Te<=ue.framebufferHeight,"invalid height for read pixels"),W();var De=Ge*re*4;return ve||(Be===Iu?ve=new Uint8Array(De):Be===Pl&&(ve=ve||new Float32Array(De))),N.isTypedArray(ve,"data buffer for regl.read() must be a typedarray"),N(ve.byteLength>=De,"data buffer for regl.read() too small"),T.pixelStorei(MD,4),T.readPixels(Xe,Te,Ge,re,SD,Be,ve),ve}function Ne(Oe){var Be;return F.setFBO({framebuffer:Oe.framebuffer},function(){Be=Ce(Oe)}),Be}function Pe(Oe){return!Oe||!("framebuffer"in Oe)?Ce(Oe):Ne(Oe)}return Pe}function ls(T){return Array.prototype.slice.call(T)}function cs(T){return ls(T).join("")}function CD(){var T=0,F=[],W=[];function ue(Be){for(var Xe=0;Xe0&&(Be.push(re,"="),Be.push.apply(Be,ls(arguments)),Be.push(";")),re}return n(Xe,{def:Ge,toString:function(){return cs([Te.length>0?"var "+Te.join(",")+";":"",cs(Be)])}})}function se(){var Be=be(),Xe=be(),Te=Be.toString,Ge=Xe.toString;function re(ve,De){Xe(ve,De,"=",Be.def(ve,De),";")}return n(function(){Be.apply(Be,ls(arguments))},{def:Be.def,entry:Be,exit:Xe,save:re,set:function(ve,De,He){re(ve,De),Be(ve,De,"=",He,";")},toString:function(){return Te()+Ge()}})}function de(){var Be=cs(arguments),Xe=se(),Te=se(),Ge=Xe.toString,re=Te.toString;return n(Xe,{then:function(){return Xe.apply(Xe,ls(arguments)),this},else:function(){return Te.apply(Te,ls(arguments)),this},toString:function(){var ve=re();return ve&&(ve="else{"+ve+"}"),cs(["if(",Be,"){",Ge(),"}",ve])}})}var Ce=be(),Ne={};function Pe(Be,Xe){var Te=[];function Ge(){var Ee="a"+Te.length;return Te.push(Ee),Ee}Xe=Xe||0;for(var re=0;re":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Gb={frag:OD,vert:LD},Kv={cw:Lb,ccw:Zv};function Hl(T){return Array.isArray(T)||t(T)||fa(T)}function zb(T){return T.sort(function(F,W){return F===ai?-1:W===ai?1:F=1,ue>=2,F)}else if(W===Rl){var be=T.data;return new En(be.thisDep,be.contextDep,be.propDep,F)}else{if(W===cb)return new En(!1,!1,!1,F);if(W===hb){for(var se=!1,de=!1,Ce=!1,Ne=0;Ne=1&&(de=!0),Oe>=2&&(Ce=!0)}else Pe.type===Rl&&(se=se||Pe.data.thisDep,de=de||Pe.data.contextDep,Ce=Ce||Pe.data.propDep)}return new En(se,de,Ce,F)}else return new En(W===Pv,W===Dv,W===Lv,F)}}var jb=new En(!1,!1,!1,function(){});function HD(T,F,W,ue,be,se,de,Ce,Ne,Pe,Oe,Be,Xe,Te,Ge){var re=Pe.Record,ve={add:32774,subtract:32778,"reverse subtract":32779};W.ext_blend_minmax&&(ve.min=XD,ve.max=WD);var De=W.angle_instanced_arrays,He=W.webgl_draw_buffers,Ee={dirty:!0,profile:Ge.profile},et={},Ae=[],ze={},Me={};function je(j){return j.replace(".","_")}function ct(j,D,q){var ee=je(j);Ae.push(j),et[ee]=Ee[ee]=!!q,ze[ee]=D}function Mt(j,D,q){var ee=je(j);Ae.push(j),Array.isArray(q)?(Ee[ee]=q.slice(),et[ee]=q.slice()):Ee[ee]=et[ee]=q,Me[ee]=D}ct(db,FD),ct(vb,RD),Mt(pb,"blendColor",[0,0,0,0]),Mt(Rv,"blendEquationSeparate",[Rb,Rb]),Mt(Fv,"blendFuncSeparate",[Pb,Db,Pb,Db]),ct(gb,GD,!0),Mt(yb,"depthFunc",YD),Mt(mb,"depthRange",[0,1]),Mt(bb,"depthMask",!0),Mt(Bv,Bv,[!0,!0,!0,!0]),ct(wb,PD),Mt(xb,"cullFace",So),Mt(Gv,Gv,Zv),Mt(zv,zv,1),ct(Eb,jD),Mt(jv,"polygonOffset",[0,0]),ct(_b,UD),ct(Sb,$D),Mt(Uv,"sampleCoverage",[1,!1]),ct(Mb,BD),Mt(Ab,"stencilMask",-1),Mt($v,"stencilFunc",[VD,0,-1]),Mt(Xv,"stencilOpSeparate",[zu,Ti,Ti,Ti]),Mt(ku,"stencilOpSeparate",[So,Ti,Ti,Ti]),ct(Cb,zD),Mt(Fl,"scissor",[0,0,T.drawingBufferWidth,T.drawingBufferHeight]),Mt(ai,ai,[0,0,T.drawingBufferWidth,T.drawingBufferHeight]);var We={gl:T,context:Xe,strings:F,next:et,current:Ee,draw:Be,elements:se,buffer:be,shader:Oe,attributes:Pe.state,vao:Pe,uniforms:Ne,framebuffer:Ce,extensions:W,timer:Te,isBufferArgs:Hl},Re={primTypes:rs,compareFuncs:ys,blendFuncs:Ta,blendEquations:ve,stencilOps:Ii,glTypes:po,orientationType:Kv};N.optional(function(){We.isArrayLike=Mr}),He&&(Re.backBuffer=[So],Re.drawBuffer=rn(ue.maxDrawbuffers,function(j){return j===0?[0]:rn(j,function(D){return qD+D})}));var xe=0;function xt(){var j=CD(),D=j.link,q=j.global;j.id=xe++,j.batchId="0";var ee=D(We),ne=j.shared={props:"a0"};Object.keys(We).forEach(function(Y){ne[Y]=q.def(ee,".",Y)}),N.optional(function(){j.CHECK=D(N),j.commandStr=N.guessCommand(),j.command=D(j.commandStr),j.assert=function(Y,G,J){Y("if(!(",G,"))",this.CHECK,".commandRaise(",D(J),",",this.command,");")},Re.invalidBlendCombinations=Bb});var K=j.next={},H=j.current={};Object.keys(Me).forEach(function(Y){Array.isArray(Ee[Y])&&(K[Y]=q.def(ne.next,".",Y),H[Y]=q.def(ne.current,".",Y))});var Q=j.constants={};Object.keys(Re).forEach(function(Y){Q[Y]=q.def(JSON.stringify(Re[Y]))}),j.invoke=function(Y,G){switch(G.type){case Ov:var J=["this",ne.context,ne.props,j.batchId];return Y.def(D(G.data),".call(",J.slice(0,Math.max(G.data.length+1,4)),")");case Lv:return Y.def(ne.props,G.data);case Dv:return Y.def(ne.context,G.data);case Pv:return Y.def("this",G.data);case Rl:return G.data.append(j,Y),G.data.ref;case cb:return G.data.toString();case hb:return G.data.map(function(ae){return j.invoke(Y,ae)})}},j.attribCache={};var U={};return j.scopeAttrib=function(Y){var G=F.id(Y);if(G in U)return U[G];var J=Pe.scope[G];J||(J=Pe.scope[G]=new re);var ae=U[G]=D(J);return ae},j}function It(j){var D=j.static,q=j.dynamic,ee;if(Nu in D){var ne=!!D[Nu];ee=kr(function(H,Q){return ne}),ee.enable=ne}else if(Nu in q){var K=q[Nu];ee=Cn(K,function(H,Q){return H.invoke(Q,K)})}return ee}function nt(j,D){var q=j.static,ee=j.dynamic;if(wo in q){var ne=q[wo];return ne?(ne=Ce.getFramebuffer(ne),N.command(ne,"invalid framebuffer object"),kr(function(H,Q){var U=H.link(ne),Y=H.shared;Q.set(Y.framebuffer,".next",U);var G=Y.context;return Q.set(G,"."+vs,U+".width"),Q.set(G,"."+ps,U+".height"),U})):kr(function(H,Q){var U=H.shared;Q.set(U.framebuffer,".next","null");var Y=U.context;return Q.set(Y,"."+vs,Y+"."+Ib),Q.set(Y,"."+ps,Y+"."+kb),"null"})}else if(wo in ee){var K=ee[wo];return Cn(K,function(H,Q){var U=H.invoke(Q,K),Y=H.shared,G=Y.framebuffer,J=Q.def(G,".getFramebuffer(",U,")");N.optional(function(){H.assert(Q,"!"+U+"||"+J,"invalid framebuffer object")}),Q.set(G,".next",J);var ae=Y.context;return Q.set(ae,"."+vs,J+"?"+J+".width:"+ae+"."+Ib),Q.set(ae,"."+ps,J+"?"+J+".height:"+ae+"."+kb),J})}else return null}function Rt(j,D,q){var ee=j.static,ne=j.dynamic;function K(U){if(U in ee){var Y=ee[U];N.commandType(Y,"object","invalid "+U,q.commandStr);var G=!0,J=Y.x|0,ae=Y.y|0,ye,we;return"width"in Y?(ye=Y.width|0,N.command(ye>=0,"invalid "+U,q.commandStr)):G=!1,"height"in Y?(we=Y.height|0,N.command(we>=0,"invalid "+U,q.commandStr)):G=!1,new En(!G&&D&&D.thisDep,!G&&D&&D.contextDep,!G&&D&&D.propDep,function(ut,Nt){var at=ut.shared.context,yt=ye;"width"in Y||(yt=Nt.def(at,".",vs,"-",J));var Ct=we;return"height"in Y||(Ct=Nt.def(at,".",ps,"-",ae)),[J,ae,yt,Ct]})}else if(U in ne){var pe=ne[U],Le=Cn(pe,function(ut,Nt){var at=ut.invoke(Nt,pe);N.optional(function(){ut.assert(Nt,at+"&&typeof "+at+'==="object"',"invalid "+U)});var yt=ut.shared.context,Ct=Nt.def(at,".x|0"),Jt=Nt.def(at,".y|0"),xr=Nt.def('"width" in ',at,"?",at,".width|0:","(",yt,".",vs,"-",Ct,")"),_n=Nt.def('"height" in ',at,"?",at,".height|0:","(",yt,".",ps,"-",Jt,")");return N.optional(function(){ut.assert(Nt,xr+">=0&&"+_n+">=0","invalid "+U)}),[Ct,Jt,xr,_n]});return D&&(Le.thisDep=Le.thisDep||D.thisDep,Le.contextDep=Le.contextDep||D.contextDep,Le.propDep=Le.propDep||D.propDep),Le}else return D?new En(D.thisDep,D.contextDep,D.propDep,function(ut,Nt){var at=ut.shared.context;return[0,0,Nt.def(at,".",vs),Nt.def(at,".",ps)]}):null}var H=K(ai);if(H){var Q=H;H=new En(H.thisDep,H.contextDep,H.propDep,function(U,Y){var G=Q.append(U,Y),J=U.shared.context;return Y.set(J,"."+TD,G[2]),Y.set(J,"."+ID,G[3]),G})}return{viewport:H,scissor_box:K(Fl)}}function At(j,D){var q=j.static,ee=typeof q[Lu]=="string"&&typeof q[Ou]=="string";if(ee){if(Object.keys(D.dynamic).length>0)return null;var ne=D.static,K=Object.keys(ne);if(K.length>0&&typeof ne[K[0]]=="number"){for(var H=[],Q=0;Q=0,"invalid "+G,D.commandStr),kr(function(we,pe){return J&&(we.OFFSET=ae),ae})}else if(G in ee){var ye=ee[G];return Cn(ye,function(we,pe){var Le=we.invoke(pe,ye);return J&&(we.OFFSET=Le,N.optional(function(){we.assert(pe,Le+">=0","invalid "+G)})),Le})}else if(J&&K)return kr(function(we,pe){return we.OFFSET="0",0});return null}var U=Q(Bl,!0);function Y(){if(_o in q){var G=q[_o]|0;return N.command(typeof G=="number"&&G>=0,"invalid vertex count",D.commandStr),kr(function(){return G})}else if(_o in ee){var J=ee[_o];return Cn(J,function(we,pe){var Le=we.invoke(pe,J);return N.optional(function(){we.assert(pe,"typeof "+Le+'==="number"&&'+Le+">=0&&"+Le+"===("+Le+"|0)","invalid vertex count")}),Le})}else if(K)if(ki(K)){if(K)return U?new En(U.thisDep,U.contextDep,U.propDep,function(we,pe){var Le=pe.def(we.ELEMENTS,".vertCount-",we.OFFSET);return N.optional(function(){we.assert(pe,Le+">=0","invalid vertex offset/element buffer too small")}),Le}):kr(function(we,pe){return pe.def(we.ELEMENTS,".vertCount")});var ae=kr(function(){return-1});return N.optional(function(){ae.MISSING=!0}),ae}else{var ye=new En(K.thisDep||U.thisDep,K.contextDep||U.contextDep,K.propDep||U.propDep,function(we,pe){var Le=we.ELEMENTS;return we.OFFSET?pe.def(Le,"?",Le,".vertCount-",we.OFFSET,":-1"):pe.def(Le,"?",Le,".vertCount:-1")});return N.optional(function(){ye.DYNAMIC=!0}),ye}return null}return{elements:K,primitive:H(),count:Y(),instances:Q(Gl,!1),offset:U}}function Nr(j,D){var q=j.static,ee=j.dynamic,ne={};return Ae.forEach(function(K){var H=je(K);function Q(U,Y){if(K in q){var G=U(q[K]);ne[H]=kr(function(){return G})}else if(K in ee){var J=ee[K];ne[H]=Cn(J,function(ae,ye){return Y(ae,ye,ae.invoke(ye,J))})}}switch(K){case wb:case vb:case db:case Mb:case gb:case Cb:case Eb:case _b:case Sb:case bb:return Q(function(U){return N.commandType(U,"boolean",K,D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="boolean"',"invalid flag "+K,U.commandStr)}),G});case yb:return Q(function(U){return N.commandParameter(U,ys,"invalid "+K,D.commandStr),ys[U]},function(U,Y,G){var J=U.constants.compareFuncs;return N.optional(function(){U.assert(Y,G+" in "+J,"invalid "+K+", must be one of "+Object.keys(ys))}),Y.def(J,"[",G,"]")});case mb:return Q(function(U){return N.command(Mr(U)&&U.length===2&&typeof U[0]=="number"&&typeof U[1]=="number"&&U[0]<=U[1],"depth range is 2d array",D.commandStr),U},function(U,Y,G){N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===2&&typeof "+G+'[0]==="number"&&typeof '+G+'[1]==="number"&&'+G+"[0]<="+G+"[1]","depth range must be a 2d array")});var J=Y.def("+",G,"[0]"),ae=Y.def("+",G,"[1]");return[J,ae]});case Fv:return Q(function(U){N.commandType(U,"object","blend.func",D.commandStr);var Y="srcRGB"in U?U.srcRGB:U.src,G="srcAlpha"in U?U.srcAlpha:U.src,J="dstRGB"in U?U.dstRGB:U.dst,ae="dstAlpha"in U?U.dstAlpha:U.dst;return N.commandParameter(Y,Ta,H+".srcRGB",D.commandStr),N.commandParameter(G,Ta,H+".srcAlpha",D.commandStr),N.commandParameter(J,Ta,H+".dstRGB",D.commandStr),N.commandParameter(ae,Ta,H+".dstAlpha",D.commandStr),N.command(Bb.indexOf(Y+", "+J)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Y+", "+J+")",D.commandStr),[Ta[Y],Ta[J],Ta[G],Ta[ae]]},function(U,Y,G){var J=U.constants.blendFuncs;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid blend func, must be an object")});function ae(at,yt){var Ct=Y.def('"',at,yt,'" in ',G,"?",G,".",at,yt,":",G,".",at);return N.optional(function(){U.assert(Y,Ct+" in "+J,"invalid "+K+"."+at+yt+", must be one of "+Object.keys(Ta))}),Ct}var ye=ae("src","RGB"),we=ae("dst","RGB");N.optional(function(){var at=U.constants.invalidBlendCombinations;U.assert(Y,at+".indexOf("+ye+'+", "+'+we+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var pe=Y.def(J,"[",ye,"]"),Le=Y.def(J,"[",ae("src","Alpha"),"]"),ut=Y.def(J,"[",we,"]"),Nt=Y.def(J,"[",ae("dst","Alpha"),"]");return[pe,ut,Le,Nt]});case Rv:return Q(function(U){if(typeof U=="string")return N.commandParameter(U,ve,"invalid "+K,D.commandStr),[ve[U],ve[U]];if(typeof U=="object")return N.commandParameter(U.rgb,ve,K+".rgb",D.commandStr),N.commandParameter(U.alpha,ve,K+".alpha",D.commandStr),[ve[U.rgb],ve[U.alpha]];N.commandRaise("invalid blend.equation",D.commandStr)},function(U,Y,G){var J=U.constants.blendEquations,ae=Y.def(),ye=Y.def(),we=U.cond("typeof ",G,'==="string"');return N.optional(function(){function pe(Le,ut,Nt){U.assert(Le,Nt+" in "+J,"invalid "+ut+", must be one of "+Object.keys(ve))}pe(we.then,K,G),U.assert(we.else,G+"&&typeof "+G+'==="object"',"invalid "+K),pe(we.else,K+".rgb",G+".rgb"),pe(we.else,K+".alpha",G+".alpha")}),we.then(ae,"=",ye,"=",J,"[",G,"];"),we.else(ae,"=",J,"[",G,".rgb];",ye,"=",J,"[",G,".alpha];"),Y(we),[ae,ye]});case pb:return Q(function(U){return N.command(Mr(U)&&U.length===4,"blend.color must be a 4d array",D.commandStr),rn(4,function(Y){return+U[Y]})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","blend.color must be a 4d array")}),rn(4,function(J){return Y.def("+",G,"[",J,"]")})});case Ab:return Q(function(U){return N.commandType(U,"number",H,D.commandStr),U|0},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"',"invalid stencil.mask")}),Y.def(G,"|0")});case $v:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.cmp||"keep",G=U.ref||0,J="mask"in U?U.mask:-1;return N.commandParameter(Y,ys,K+".cmp",D.commandStr),N.commandType(G,"number",K+".ref",D.commandStr),N.commandType(J,"number",K+".mask",D.commandStr),[ys[Y],G,J]},function(U,Y,G){var J=U.constants.compareFuncs;N.optional(function(){function pe(){U.assert(Y,Array.prototype.join.call(arguments,""),"invalid stencil.func")}pe(G+"&&typeof ",G,'==="object"'),pe('!("cmp" in ',G,")||(",G,".cmp in ",J,")")});var ae=Y.def('"cmp" in ',G,"?",J,"[",G,".cmp]",":",Ti),ye=Y.def(G,".ref|0"),we=Y.def('"mask" in ',G,"?",G,".mask|0:-1");return[ae,ye,we]});case Xv:case ku:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.fail||"keep",G=U.zfail||"keep",J=U.zpass||"keep";return N.commandParameter(Y,Ii,K+".fail",D.commandStr),N.commandParameter(G,Ii,K+".zfail",D.commandStr),N.commandParameter(J,Ii,K+".zpass",D.commandStr),[K===ku?So:zu,Ii[Y],Ii[G],Ii[J]]},function(U,Y,G){var J=U.constants.stencilOps;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});function ae(ye){return N.optional(function(){U.assert(Y,'!("'+ye+'" in '+G+")||("+G+"."+ye+" in "+J+")","invalid "+K+"."+ye+", must be one of "+Object.keys(Ii))}),Y.def('"',ye,'" in ',G,"?",J,"[",G,".",ye,"]:",Ti)}return[K===ku?So:zu,ae("fail"),ae("zfail"),ae("zpass")]});case jv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.factor|0,G=U.units|0;return N.commandType(Y,"number",H+".factor",D.commandStr),N.commandType(G,"number",H+".units",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});var J=Y.def(G,".factor|0"),ae=Y.def(G,".units|0");return[J,ae]});case xb:return Q(function(U){var Y=0;return U==="front"?Y=zu:U==="back"&&(Y=So),N.command(!!Y,H,D.commandStr),Y},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="front"||'+G+'==="back"',"invalid cull.face")}),Y.def(G,'==="front"?',zu,":",So)});case zv:return Q(function(U){return N.command(typeof U=="number"&&U>=ue.lineWidthDims[0]&&U<=ue.lineWidthDims[1],"invalid line width, must be a positive number between "+ue.lineWidthDims[0]+" and "+ue.lineWidthDims[1],D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"&&'+G+">="+ue.lineWidthDims[0]+"&&"+G+"<="+ue.lineWidthDims[1],"invalid line width")}),G});case Gv:return Q(function(U){return N.commandParameter(U,Kv,H,D.commandStr),Kv[U]},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="cw"||'+G+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Y.def(G+'==="cw"?'+Lb+":"+Zv)});case Bv:return Q(function(U){return N.command(Mr(U)&&U.length===4,"color.mask must be length 4 array",D.commandStr),U.map(function(Y){return!!Y})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","invalid color.mask")}),rn(4,function(J){return"!!"+G+"["+J+"]"})});case Uv:return Q(function(U){N.command(typeof U=="object"&&U,H,D.commandStr);var Y="value"in U?U.value:1,G=!!U.invert;return N.command(typeof Y=="number"&&Y>=0&&Y<=1,"sample.coverage.value must be a number between 0 and 1",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid sample.coverage")});var J=Y.def('"value" in ',G,"?+",G,".value:1"),ae=Y.def("!!",G,".invert");return[J,ae]})}}),ne}function $r(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q;if(typeof H=="number"||typeof H=="boolean")Q=kr(function(){return H});else if(typeof H=="function"){var U=H._reglType;U==="texture2d"||U==="textureCube"?Q=kr(function(Y){return Y.link(H)}):U==="framebuffer"||U==="framebufferCube"?(N.command(H.color.length>0,'missing color attachment for framebuffer sent to uniform "'+K+'"',D.commandStr),Q=kr(function(Y){return Y.link(H.color[0])})):N.commandRaise('invalid data for uniform "'+K+'"',D.commandStr)}else Mr(H)?Q=kr(function(Y){var G=Y.global.def("[",rn(H.length,function(J){return N.command(typeof H[J]=="number"||typeof H[J]=="boolean","invalid uniform "+K,Y.commandStr),H[J]}),"]");return G}):N.commandRaise('invalid or missing data for uniform "'+K+'"',D.commandStr);Q.value=H,ne[K]=Q}),Object.keys(ee).forEach(function(K){var H=ee[K];ne[K]=Cn(H,function(Q,U){return Q.invoke(U,H)})}),ne}function zt(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q=F.id(K),U=new re;if(Hl(H))U.state=ds,U.buffer=be.getBuffer(be.create(H,gs,!1,!0)),U.type=0;else{var Y=be.getBuffer(H);if(Y)U.state=ds,U.buffer=Y,U.type=0;else if(N.command(typeof H=="object"&&H,"invalid data for attribute "+K,D.commandStr),"constant"in H){var G=H.constant;U.buffer="null",U.state=Nv,typeof G=="number"?U.x=G:(N.command(Mr(G)&&G.length>0&&G.length<=4,"invalid constant for attribute "+K,D.commandStr),hs.forEach(function(ut,Nt){Nt=0,'invalid offset for attribute "'+K+'"',D.commandStr);var ae=H.stride|0;N.command(ae>=0&&ae<256,'invalid stride for attribute "'+K+'", must be integer betweeen [0, 255]',D.commandStr);var ye=H.size|0;N.command(!("size"in H)||ye>0&&ye<=4,'invalid size for attribute "'+K+'", must be 1,2,3,4',D.commandStr);var we=!!H.normalized,pe=0;"type"in H&&(N.commandParameter(H.type,po,"invalid type for attribute "+K,D.commandStr),pe=po[H.type]);var Le=H.divisor|0;"divisor"in H&&(N.command(Le===0||De,'cannot specify divisor for attribute "'+K+'", instancing not supported',D.commandStr),N.command(Le>=0,'invalid divisor for attribute "'+K+'"',D.commandStr)),N.optional(function(){var ut=D.commandStr,Nt=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(H).forEach(function(at){N.command(Nt.indexOf(at)>=0,'unknown parameter "'+at+'" for attribute pointer "'+K+'" (valid parameters are '+Nt+")",ut)})}),U.buffer=Y,U.state=ds,U.size=ye,U.normalized=we,U.type=pe||Y.dtype,U.offset=J,U.stride=ae,U.divisor=Le}}ne[K]=kr(function(ut,Nt){var at=ut.attribCache;if(Q in at)return at[Q];var yt={isStream:!1};return Object.keys(U).forEach(function(Ct){yt[Ct]=U[Ct]}),U.buffer&&(yt.buffer=ut.link(U.buffer),yt.type=yt.type||yt.buffer+".dtype"),at[Q]=yt,yt})}),Object.keys(ee).forEach(function(K){var H=ee[K];function Q(U,Y){var G=U.invoke(Y,H),J=U.shared,ae=U.constants,ye=J.isBufferArgs,we=J.buffer;N.optional(function(){U.assert(Y,G+"&&(typeof "+G+'==="object"||typeof '+G+'==="function")&&('+ye+"("+G+")||"+we+".getBuffer("+G+")||"+we+".getBuffer("+G+".buffer)||"+ye+"("+G+'.buffer)||("constant" in '+G+"&&(typeof "+G+'.constant==="number"||'+J.isArrayLike+"("+G+".constant))))",'invalid dynamic attribute "'+K+'"')});var pe={isStream:Y.def(!1)},Le=new re;Le.state=ds,Object.keys(Le).forEach(function(yt){pe[yt]=Y.def(""+Le[yt])});var ut=pe.buffer,Nt=pe.type;Y("if(",ye,"(",G,")){",pe.isStream,"=true;",ut,"=",we,".createStream(",gs,",",G,");",Nt,"=",ut,".dtype;","}else{",ut,"=",we,".getBuffer(",G,");","if(",ut,"){",Nt,"=",ut,".dtype;",'}else if("constant" in ',G,"){",pe.state,"=",Nv,";","if(typeof "+G+'.constant === "number"){',pe[hs[0]],"=",G,".constant;",hs.slice(1).map(function(yt){return pe[yt]}).join("="),"=0;","}else{",hs.map(function(yt,Ct){return pe[yt]+"="+G+".constant.length>"+Ct+"?"+G+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",ye,"(",G,".buffer)){",ut,"=",we,".createStream(",gs,",",G,".buffer);","}else{",ut,"=",we,".getBuffer(",G,".buffer);","}",Nt,'="type" in ',G,"?",ae.glTypes,"[",G,".type]:",ut,".dtype;",pe.normalized,"=!!",G,".normalized;");function at(yt){Y(pe[yt],"=",G,".",yt,"|0;")}return at("size"),at("offset"),at("stride"),at("divisor"),Y("}}"),Y.exit("if(",pe.isStream,"){",we,".destroyStream(",ut,");","}"),pe}ne[K]=Cn(H,Q)}),ne}function Gr(j,D){var q=j.static,ee=j.dynamic;if(Du in q){var ne=q[Du];return ne!==null&&Pe.getVAO(ne)===null&&(ne=Pe.createVAO(ne)),kr(function(H){return H.link(Pe.getVAO(ne))})}else if(Du in ee){var K=ee[Du];return Cn(K,function(H,Q){var U=H.invoke(Q,K);return Q.def(H.shared.vao+".getVAO("+U+")")})}return null}function pr(j){var D=j.static,q=j.dynamic,ee={};return Object.keys(D).forEach(function(ne){var K=D[ne];ee[ne]=kr(function(H,Q){return typeof K=="number"||typeof K=="boolean"?""+K:H.link(K)})}),Object.keys(q).forEach(function(ne){var K=q[ne];ee[ne]=Cn(K,function(H,Q){return H.invoke(Q,K)})}),ee}function Or(j,D,q,ee,ne){var K=j.static,H=j.dynamic;N.optional(function(){var at=[wo,Ou,Lu,xo,Eo,Bl,_o,Gl,Nu,Du].concat(Ae);function yt(Ct){Object.keys(Ct).forEach(function(Jt){N.command(at.indexOf(Jt)>=0,'unknown parameter "'+Jt+'"',ne.commandStr)})}yt(K),yt(H)});var Q=At(j,D),U=nt(j),Y=Rt(j,U,ne),G=Qt(j,ne),J=Nr(j,ne),ae=Pt(j,ne,Q);function ye(at){var yt=Y[at];yt&&(J[at]=yt)}ye(ai),ye(je(Fl));var we=Object.keys(J).length>0,pe={framebuffer:U,draw:G,shader:ae,state:J,dirty:we,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pe.profile=It(j),pe.uniforms=$r(q,ne),pe.drawVAO=pe.scopeVAO=Gr(j),!pe.drawVAO&&ae.program&&!Q&&W.angle_instanced_arrays){var Le=!0,ut=ae.program.attributes.map(function(at){var yt=D.static[at];return Le=Le&&!!yt,yt});if(Le&&ut.length>0){var Nt=Pe.getVAO(Pe.createVAO(ut));pe.drawVAO=new En(null,null,null,function(at,yt){return at.link(Nt)}),pe.useVAO=!0}}return Q?pe.useVAO=!0:pe.attributes=zt(D,ne),pe.context=pr(ee),pe}function zr(j,D,q){var ee=j.shared,ne=ee.context,K=j.scope();Object.keys(q).forEach(function(H){D.save(ne,"."+H);var Q=q[H],U=Q.append(j,D);Array.isArray(U)?K(ne,".",H,"=[",U.join(),"];"):K(ne,".",H,"=",U,";")}),D(K)}function jr(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.framebuffer,Q;He&&(Q=D.def(ne.extensions,".webgl_draw_buffers"));var U=j.constants,Y=U.drawBuffer,G=U.backBuffer,J;q?J=q.append(j,D):J=D.def(H,".next"),ee||D("if(",J,"!==",H,".cur){"),D("if(",J,"){",K,".bindFramebuffer(",Fb,",",J,".framebuffer);"),He&&D(Q,".drawBuffersWEBGL(",Y,"[",J,".colorAttachments.length]);"),D("}else{",K,".bindFramebuffer(",Fb,",null);"),He&&D(Q,".drawBuffersWEBGL(",G,");"),D("}",H,".cur=",J,";"),ee||D("}")}function Yr(j,D,q){var ee=j.shared,ne=ee.gl,K=j.current,H=j.next,Q=ee.current,U=ee.next,Y=j.cond(Q,".dirty");Ae.forEach(function(G){var J=je(G);if(!(J in q.state)){var ae,ye;if(J in H){ae=H[J],ye=K[J];var we=rn(Ee[J].length,function(Le){return Y.def(ae,"[",Le,"]")});Y(j.cond(we.map(function(Le,ut){return Le+"!=="+ye+"["+ut+"]"}).join("||")).then(ne,".",Me[J],"(",we,");",we.map(function(Le,ut){return ye+"["+ut+"]="+Le}).join(";"),";"))}else{ae=Y.def(U,".",J);var pe=j.cond(ae,"!==",Q,".",J);Y(pe),J in ze?pe(j.cond(ae).then(ne,".enable(",ze[J],");").else(ne,".disable(",ze[J],");"),Q,".",J,"=",ae,";"):pe(ne,".",Me[J],"(",ae,");",Q,".",J,"=",ae,";")}}}),Object.keys(q.state).length===0&&Y(Q,".dirty=false;"),D(Y)}function an(j,D,q,ee){var ne=j.shared,K=j.current,H=ne.current,Q=ne.gl;zb(Object.keys(q)).forEach(function(U){var Y=q[U];if(!(ee&&!ee(Y))){var G=Y.append(j,D);if(ze[U]){var J=ze[U];ki(Y)?G?D(Q,".enable(",J,");"):D(Q,".disable(",J,");"):D(j.cond(G).then(Q,".enable(",J,");").else(Q,".disable(",J,");")),D(H,".",U,"=",G,";")}else if(Mr(G)){var ae=K[U];D(Q,".",Me[U],"(",G,");",G.map(function(ye,we){return ae+"["+we+"]="+ye}).join(";"),";")}else D(Q,".",Me[U],"(",G,");",H,".",U,"=",G,";")}})}function Ar(j,D){De&&(j.instancing=D.def(j.shared.extensions,".angle_instanced_arrays"))}function kt(j,D,q,ee,ne){var K=j.shared,H=j.stats,Q=K.current,U=K.timer,Y=q.profile;function G(){return typeof performance>"u"?"Date.now()":"performance.now()"}var J,ae;function ye(at){J=D.def(),at(J,"=",G(),";"),typeof ne=="string"?at(H,".count+=",ne,";"):at(H,".count++;"),Te&&(ee?(ae=D.def(),at(ae,"=",U,".getNumPendingQueries();")):at(U,".beginQuery(",H,");"))}function we(at){at(H,".cpuTime+=",G(),"-",J,";"),Te&&(ee?at(U,".pushScopeStats(",ae,",",U,".getNumPendingQueries(),",H,");"):at(U,".endQuery();"))}function pe(at){var yt=D.def(Q,".profile");D(Q,".profile=",at,";"),D.exit(Q,".profile=",yt,";")}var Le;if(Y){if(ki(Y)){Y.enable?(ye(D),we(D.exit),pe("true")):pe("false");return}Le=Y.append(j,D),pe(Le)}else Le=D.def(Q,".profile");var ut=j.block();ye(ut),D("if(",Le,"){",ut,"}");var Nt=j.block();we(Nt),D.exit("if(",Le,"){",Nt,"}")}function on(j,D,q,ee,ne){var K=j.shared;function H(U){switch(U){case zl:case $l:case Vl:return 2;case jl:case Xl:case Yl:return 3;case Ul:case Wl:case ql:return 4;default:return 1}}function Q(U,Y,G){var J=K.gl,ae=D.def(U,".location"),ye=D.def(K.attributes,"[",ae,"]"),we=G.state,pe=G.buffer,Le=[G.x,G.y,G.z,G.w],ut=["buffer","normalized","offset","stride"];function Nt(){D("if(!",ye,".buffer){",J,".enableVertexAttribArray(",ae,");}");var yt=G.type,Ct;if(G.size?Ct=D.def(G.size,"||",Y):Ct=Y,D("if(",ye,".type!==",yt,"||",ye,".size!==",Ct,"||",ut.map(function(xr){return ye+"."+xr+"!=="+G[xr]}).join("||"),"){",J,".bindBuffer(",gs,",",pe,".buffer);",J,".vertexAttribPointer(",[ae,Ct,yt,G.normalized,G.stride,G.offset],");",ye,".type=",yt,";",ye,".size=",Ct,";",ut.map(function(xr){return ye+"."+xr+"="+G[xr]+";"}).join(""),"}"),De){var Jt=G.divisor;D("if(",ye,".divisor!==",Jt,"){",j.instancing,".vertexAttribDivisorANGLE(",[ae,Jt],");",ye,".divisor=",Jt,";}")}}function at(){D("if(",ye,".buffer){",J,".disableVertexAttribArray(",ae,");",ye,".buffer=null;","}if(",hs.map(function(yt,Ct){return ye+"."+yt+"!=="+Le[Ct]}).join("||"),"){",J,".vertexAttrib4f(",ae,",",Le,");",hs.map(function(yt,Ct){return ye+"."+yt+"="+Le[Ct]+";"}).join(""),"}")}we===ds?Nt():we===Nv?at():(D("if(",we,"===",ds,"){"),Nt(),D("}else{"),at(),D("}"))}ee.forEach(function(U){var Y=U.name,G=q.attributes[Y],J;if(G){if(!ne(G))return;J=G.append(j,D)}else{if(!ne(jb))return;var ae=j.scopeAttrib(Y);N.optional(function(){j.assert(D,ae+".state","missing attribute "+Y)}),J={},Object.keys(new re).forEach(function(ye){J[ye]=D.def(ae,".",ye)})}Q(j.link(U),H(U.info.type),J)})}function ir(j,D,q,ee,ne){for(var K=j.shared,H=K.gl,Q,U=0;U1?D(rn(yt,function(_n){return Array.isArray(pe)?pe[_n]:pe+"["+_n+"]"})):(N(!Array.isArray(pe),"uniform value must not be an array"),D(pe));D(");")}}function vt(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.draw,Q=ee.draw;function U(){var Ct=Q.elements,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr)):Jt=xr.def(H,".",xo),Jt&&xr("if("+Jt+")"+K+".bindBuffer("+ND+","+Jt+".buffer.buffer);"),Jt}function Y(){var Ct=Q.count,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr),N.optional(function(){Ct.MISSING&&j.assert(D,"false","missing vertex count"),Ct.DYNAMIC&&j.assert(xr,Jt+">=0","missing vertex count")})):(Jt=xr.def(H,".",_o),N.optional(function(){j.assert(xr,Jt+">=0","missing vertex count")})),Jt}var G=U();function J(Ct){var Jt=Q[Ct];return Jt?Jt.contextDep&&ee.contextDynamic||Jt.propDep?Jt.append(j,q):Jt.append(j,D):D.def(H,".",Ct)}var ae=J(Eo),ye=J(Bl),we=Y();if(typeof we=="number"){if(we===0)return}else q("if(",we,"){"),q.exit("}");var pe,Le;De&&(pe=J(Gl),Le=j.instancing);var ut=G+".type",Nt=Q.elements&&ki(Q.elements);function at(){function Ct(){q(Le,".drawElementsInstancedANGLE(",[ae,we,ut,ye+"<<(("+ut+"-"+lb+")>>1)",pe],");")}function Jt(){q(Le,".drawArraysInstancedANGLE(",[ae,ye,we,pe],");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}function yt(){function Ct(){q(K+".drawElements("+[ae,we,ut,ye+"<<(("+ut+"-"+lb+")>>1)"]+");")}function Jt(){q(K+".drawArrays("+[ae,ye,we]+");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}De&&(typeof pe!="number"||pe>=0)?typeof pe=="string"?(q("if(",pe,">0){"),at(),q("}else if(",pe,"<0){"),yt(),q("}")):at():yt()}function Gt(j,D,q,ee,ne){var K=xt(),H=K.proc("body",ne);return N.optional(function(){K.commandStr=D.commandStr,K.command=K.link(D.commandStr)}),De&&(K.instancing=H.def(K.shared.extensions,".angle_instanced_arrays")),j(K,H,q,ee),K.compile().body}function Vt(j,D,q,ee){Ar(j,D),q.useVAO?q.drawVAO?D(j.shared.vao,".setVAO(",q.drawVAO.append(j,D),");"):D(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(D(j.shared.vao,".setVAO(null);"),on(j,D,q,ee.attributes,function(){return!0})),ir(j,D,q,ee.uniforms,function(){return!0}),vt(j,D,D,q)}function Cr(j,D){var q=j.proc("draw",1);Ar(j,q),zr(j,q,D.context),jr(j,q,D.framebuffer),Yr(j,q,D),an(j,q,D.state),kt(j,q,D,!1,!0);var ee=D.shader.progVar.append(j,q);if(q(j.shared.gl,".useProgram(",ee,".program);"),D.shader.program)Vt(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var ne=j.global.def("{}"),K=q.def(ee,".id"),H=q.def(ne,"[",K,"]");q(j.cond(H).then(H,".call(this,a0);").else(H,"=",ne,"[",K,"]=",j.link(function(Q){return Gt(Vt,j,D,Q,1)}),"(",ee,");",H,".call(this,a0);"))}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function Ia(j,D,q,ee){j.batchId="a1",Ar(j,D);function ne(){return!0}on(j,D,q,ee.attributes,ne),ir(j,D,q,ee.uniforms,ne),vt(j,D,D,q)}function Mo(j,D,q,ee){Ar(j,D);var ne=q.contextDep,K=D.def(),H="a0",Q="a1",U=D.def();j.shared.props=U,j.batchId=K;var Y=j.scope(),G=j.scope();D(Y.entry,"for(",K,"=0;",K,"<",Q,";++",K,"){",U,"=",H,"[",K,"];",G,"}",Y.exit);function J(ut){return ut.contextDep&&ne||ut.propDep}function ae(ut){return!J(ut)}if(q.needsContext&&zr(j,G,q.context),q.needsFramebuffer&&jr(j,G,q.framebuffer),an(j,G,q.state,J),q.profile&&J(q.profile)&&kt(j,G,q,!1,!0),ee)q.useVAO?q.drawVAO?J(q.drawVAO)?G(j.shared.vao,".setVAO(",q.drawVAO.append(j,G),");"):Y(j.shared.vao,".setVAO(",q.drawVAO.append(j,Y),");"):Y(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(Y(j.shared.vao,".setVAO(null);"),on(j,Y,q,ee.attributes,ae),on(j,G,q,ee.attributes,J)),ir(j,Y,q,ee.uniforms,ae),ir(j,G,q,ee.uniforms,J),vt(j,Y,G,q);else{var ye=j.global.def("{}"),we=q.shader.progVar.append(j,G),pe=G.def(we,".id"),Le=G.def(ye,"[",pe,"]");G(j.shared.gl,".useProgram(",we,".program);","if(!",Le,"){",Le,"=",ye,"[",pe,"]=",j.link(function(ut){return Gt(Ia,j,q,ut,2)}),"(",we,");}",Le,".call(this,a0[",K,"],",K,");")}}function $(j,D){var q=j.proc("batch",2);j.batchId="0",Ar(j,q);var ee=!1,ne=!0;Object.keys(D.context).forEach(function(ye){ee=ee||D.context[ye].propDep}),ee||(zr(j,q,D.context),ne=!1);var K=D.framebuffer,H=!1;K?(K.propDep?ee=H=!0:K.contextDep&&ee&&(H=!0),H||jr(j,q,K)):jr(j,q,null),D.state.viewport&&D.state.viewport.propDep&&(ee=!0);function Q(ye){return ye.contextDep&&ee||ye.propDep}Yr(j,q,D),an(j,q,D.state,function(ye){return!Q(ye)}),(!D.profile||!Q(D.profile))&&kt(j,q,D,!1,"a1"),D.contextDep=ee,D.needsContext=ne,D.needsFramebuffer=H;var U=D.shader.progVar;if(U.contextDep&&ee||U.propDep)Mo(j,q,D,null);else{var Y=U.append(j,q);if(q(j.shared.gl,".useProgram(",Y,".program);"),D.shader.program)Mo(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var G=j.global.def("{}"),J=q.def(Y,".id"),ae=q.def(G,"[",J,"]");q(j.cond(ae).then(ae,".call(this,a0,a1);").else(ae,"=",G,"[",J,"]=",j.link(function(ye){return Gt(Mo,j,D,ye,2)}),"(",Y,");",ae,".call(this,a0,a1);"))}}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function fe(j,D){var q=j.proc("scope",3);j.batchId="a2";var ee=j.shared,ne=ee.current;zr(j,q,D.context),D.framebuffer&&D.framebuffer.append(j,q),zb(Object.keys(D.state)).forEach(function(H){var Q=D.state[H],U=Q.append(j,q);Mr(U)?U.forEach(function(Y,G){q.set(j.next[H],"["+G+"]",Y)}):q.set(ee.next,"."+H,U)}),kt(j,q,D,!0,!0),[xo,Bl,_o,Gl,Eo].forEach(function(H){var Q=D.draw[H];Q&&q.set(ee.draw,"."+H,""+Q.append(j,q))}),Object.keys(D.uniforms).forEach(function(H){var Q=D.uniforms[H].append(j,q);Array.isArray(Q)&&(Q="["+Q.join()+"]"),q.set(ee.uniforms,"["+F.id(H)+"]",Q)}),Object.keys(D.attributes).forEach(function(H){var Q=D.attributes[H].append(j,q),U=j.scopeAttrib(H);Object.keys(new re).forEach(function(Y){q.set(U,"."+Y,Q[Y])})}),D.scopeVAO&&q.set(ee.vao,".targetVAO",D.scopeVAO.append(j,q));function K(H){var Q=D.shader[H];Q&&q.set(ee.shader,"."+H,Q.append(j,q))}K(Ou),K(Lu),Object.keys(D.state).length>0&&(q(ne,".dirty=true;"),q.exit(ne,".dirty=true;")),q("a1(",j.shared.context,",a0,",j.batchId,");")}function oe(j){if(!(typeof j!="object"||Mr(j))){for(var D=Object.keys(j),q=0;q=0;--vt){var Gt=xe[vt];Gt&&Gt(Te,null,0)}W.flush(),Pe&&Pe.update()}function Pt(){!Rt&&xe.length>0&&(Rt=or.next(At))}function Qt(){Rt&&(or.cancel(At),Rt=null)}function Nr(vt){vt.preventDefault(),be=!0,Qt(),xt.forEach(function(Gt){Gt()})}function $r(vt){W.getError(),be=!1,se.restore(),Ae.restore(),De.restore(),ze.restore(),Me.restore(),je.restore(),He.restore(),Pe&&Pe.restore(),ct.procs.refresh(),Pt(),It.forEach(function(Gt){Gt()})}Re&&(Re.addEventListener($b,Nr,!1),Re.addEventListener(Xb,$r,!1));function zt(){xe.length=0,Qt(),Re&&(Re.removeEventListener($b,Nr),Re.removeEventListener(Xb,$r)),Ae.clear(),je.clear(),Me.clear(),ze.clear(),et.clear(),De.clear(),He.clear(),Pe&&Pe.clear(),nt.forEach(function(vt){vt()})}function Gr(vt){N(!!vt,"invalid args to regl({...})"),N.type(vt,"object","invalid args to regl({...})");function Gt(ne){var K=n({},ne);delete K.uniforms,delete K.attributes,delete K.context,delete K.vao,"stencil"in K&&K.stencil.op&&(K.stencil.opBack=K.stencil.opFront=K.stencil.op,delete K.stencil.op);function H(Q){if(Q in K){var U=K[Q];delete K[Q],Object.keys(U).forEach(function(Y){K[Q+"."+Y]=U[Y]})}}return H("blend"),H("depth"),H("cull"),H("stencil"),H("polygonOffset"),H("scissor"),H("sample"),"vao"in ne&&(K.vao=ne.vao),K}function Vt(ne,K){var H={},Q={};return Object.keys(ne).forEach(function(U){var Y=ne[U];if(fr.isDynamic(Y)){Q[U]=fr.unbox(Y,U);return}else if(K&&Array.isArray(Y)){for(var G=0;G0)return Ft.call(this,q(ne|0),ne|0)}else if(Array.isArray(ne)){if(ne.length)return Ft.call(this,ne,ne.length)}else return rt.call(this,ne)}return n(ee,{stats:fe,destroy:function(){oe.destroy()}})}var pr=je.setFBO=Gr({framebuffer:fr.define.call(null,Wb,"framebuffer")});function Or(vt,Gt){var Vt=0;ct.procs.poll();var Cr=Gt.color;Cr&&(W.clearColor(+Cr[0]||0,+Cr[1]||0,+Cr[2]||0,+Cr[3]||0),Vt|=eP),"depth"in Gt&&(W.clearDepth(+Gt.depth),Vt|=tP),"stencil"in Gt&&(W.clearStencil(Gt.stencil|0),Vt|=rP),N(!!Vt,"called regl.clear with no buffer specified"),W.clear(Vt)}function zr(vt){if(N(typeof vt=="object"&&vt,"regl.clear() takes an object as input"),"framebuffer"in vt)if(vt.framebuffer&&vt.framebuffer_reglType==="framebufferCube")for(var Gt=0;Gt<6;++Gt)pr(n({framebuffer:vt.framebuffer.faces[Gt]},vt),Or);else pr(vt,Or);else Or(null,vt)}function jr(vt){N.type(vt,"function","regl.frame() callback must be a function"),xe.push(vt);function Gt(){var Vt=Vb(xe,vt);N(Vt>=0,"cannot cancel a frame twice");function Cr(){var Ia=Vb(xe,Cr);xe[Ia]=xe[xe.length-1],xe.length-=1,xe.length<=0&&Qt()}xe[Vt]=Cr}return Pt(),{cancel:Gt}}function Yr(){var vt=We.viewport,Gt=We.scissor_box;vt[0]=vt[1]=Gt[0]=Gt[1]=0,Te.viewportWidth=Te.framebufferWidth=Te.drawingBufferWidth=vt[2]=Gt[2]=W.drawingBufferWidth,Te.viewportHeight=Te.framebufferHeight=Te.drawingBufferHeight=vt[3]=Gt[3]=W.drawingBufferHeight}function an(){Te.tick+=1,Te.time=kt(),Yr(),ct.procs.poll()}function Ar(){ze.refresh(),Yr(),ct.procs.refresh(),Pe&&Pe.update()}function kt(){return(gr()-Oe)/1e3}Ar();function on(vt,Gt){N.type(Gt,"function","listener callback must be a function");var Vt;switch(vt){case"frame":return jr(Gt);case"lost":Vt=xt;break;case"restore":Vt=It;break;case"destroy":Vt=nt;break;default:N.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vt.push(Gt),{cancel:function(){for(var Cr=0;Cr=0},read:Mt,destroy:zt,_gl:W,_refresh:Ar,poll:function(){an(),Pe&&Pe.update()},now:kt,stats:Ce});return F.onDone(null,ir),ir}return oP})})(zN);var Mie=zN.exports;const Aie=bi(Mie);var Cie=function(){function r(e,t){Ma(this,r),this.attribute=void 0,this.buffer=void 0;var n=t.buffer,a=t.offset,i=t.stride,o=t.normalized,s=t.size,u=t.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:a||0,stride:i||0,normalized:o||!1,divisor:u||0},s&&(this.attribute.size=s)}return Aa(r,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),r}(),si,Qu,ui,Kn,Ju,Di,ef,Dc,Oa,To,vn,La,Da,Pc,Tie=(si={},Ke(si,ke.POINTS,"points"),Ke(si,ke.LINES,"lines"),Ke(si,ke.LINE_LOOP,"line loop"),Ke(si,ke.LINE_STRIP,"line strip"),Ke(si,ke.TRIANGLES,"triangles"),Ke(si,ke.TRIANGLE_FAN,"triangle fan"),Ke(si,ke.TRIANGLE_STRIP,"triangle strip"),si),jN=(Qu={},Ke(Qu,ke.STATIC_DRAW,"static"),Ke(Qu,ke.DYNAMIC_DRAW,"dynamic"),Ke(Qu,ke.STREAM_DRAW,"stream"),Qu),Vm=(ui={},Ke(ui,ke.BYTE,"int8"),Ke(ui,ke.UNSIGNED_INT,"int16"),Ke(ui,ke.INT,"int32"),Ke(ui,ke.UNSIGNED_BYTE,"uint8"),Ke(ui,ke.UNSIGNED_SHORT,"uint16"),Ke(ui,ke.UNSIGNED_INT,"uint32"),Ke(ui,ke.FLOAT,"float"),ui),Iie=(Kn={},Ke(Kn,ke.ALPHA,"alpha"),Ke(Kn,ke.LUMINANCE,"luminance"),Ke(Kn,ke.LUMINANCE_ALPHA,"luminance alpha"),Ke(Kn,ke.RGB,"rgb"),Ke(Kn,ke.RGBA,"rgba"),Ke(Kn,ke.RGBA4,"rgba4"),Ke(Kn,ke.RGB5_A1,"rgb5 a1"),Ke(Kn,ke.RGB565,"rgb565"),Ke(Kn,ke.DEPTH_COMPONENT,"depth"),Ke(Kn,ke.DEPTH_STENCIL,"depth stencil"),Kn),kie=(Ju={},Ke(Ju,ke.DONT_CARE,"dont care"),Ke(Ju,ke.NICEST,"nice"),Ke(Ju,ke.FASTEST,"fast"),Ju),l2=(Di={},Ke(Di,ke.NEAREST,"nearest"),Ke(Di,ke.LINEAR,"linear"),Ke(Di,ke.LINEAR_MIPMAP_LINEAR,"mipmap"),Ke(Di,ke.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Ke(Di,ke.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Ke(Di,ke.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),Di),c2=(ef={},Ke(ef,ke.REPEAT,"repeat"),Ke(ef,ke.CLAMP_TO_EDGE,"clamp"),Ke(ef,ke.MIRRORED_REPEAT,"mirror"),ef),Nie=(Dc={},Ke(Dc,ke.NONE,"none"),Ke(Dc,ke.BROWSER_DEFAULT_WEBGL,"browser"),Dc),Oie=(Oa={},Ke(Oa,ke.NEVER,"never"),Ke(Oa,ke.ALWAYS,"always"),Ke(Oa,ke.LESS,"less"),Ke(Oa,ke.LEQUAL,"lequal"),Ke(Oa,ke.GREATER,"greater"),Ke(Oa,ke.GEQUAL,"gequal"),Ke(Oa,ke.EQUAL,"equal"),Ke(Oa,ke.NOTEQUAL,"notequal"),Oa),h2=(To={},Ke(To,ke.FUNC_ADD,"add"),Ke(To,ke.MIN_EXT,"min"),Ke(To,ke.MAX_EXT,"max"),Ke(To,ke.FUNC_SUBTRACT,"subtract"),Ke(To,ke.FUNC_REVERSE_SUBTRACT,"reverse subtract"),To),Rc=(vn={},Ke(vn,ke.ZERO,"zero"),Ke(vn,ke.ONE,"one"),Ke(vn,ke.SRC_COLOR,"src color"),Ke(vn,ke.ONE_MINUS_SRC_COLOR,"one minus src color"),Ke(vn,ke.SRC_ALPHA,"src alpha"),Ke(vn,ke.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Ke(vn,ke.DST_COLOR,"dst color"),Ke(vn,ke.ONE_MINUS_DST_COLOR,"one minus dst color"),Ke(vn,ke.DST_ALPHA,"dst alpha"),Ke(vn,ke.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Ke(vn,ke.CONSTANT_COLOR,"constant color"),Ke(vn,ke.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Ke(vn,ke.CONSTANT_ALPHA,"constant alpha"),Ke(vn,ke.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Ke(vn,ke.SRC_ALPHA_SATURATE,"src alpha saturate"),vn),Lie=(La={},Ke(La,ke.NEVER,"never"),Ke(La,ke.ALWAYS,"always"),Ke(La,ke.LESS,"less"),Ke(La,ke.LEQUAL,"lequal"),Ke(La,ke.GREATER,"greater"),Ke(La,ke.GEQUAL,"gequal"),Ke(La,ke.EQUAL,"equal"),Ke(La,ke.NOTEQUAL,"notequal"),La),Ms=(Da={},Ke(Da,ke.ZERO,"zero"),Ke(Da,ke.KEEP,"keep"),Ke(Da,ke.REPLACE,"replace"),Ke(Da,ke.INVERT,"invert"),Ke(Da,ke.INCR,"increment"),Ke(Da,ke.DECR,"decrement"),Ke(Da,ke.INCR_WRAP,"increment wrap"),Ke(Da,ke.DECR_WRAP,"decrement wrap"),Da),Die=(Pc={},Ke(Pc,ke.FRONT,"front"),Ke(Pc,ke.BACK,"back"),Pc),Pie=function(){function r(e,t){Ma(this,r),this.buffer=void 0;var n=t.data,a=t.usage,i=t.type;this.buffer=e.buffer({data:n,usage:jN[a||ke.STATIC_DRAW],type:Vm[i||ke.UNSIGNED_BYTE]})}return Aa(r,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var n=t.data,a=t.offset;this.buffer.subdata(n,a)}}]),r}();function kg(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t16)throw new Error("invalid data type ".concat(c));a[l]=function(){return f.data}}});var i=this.getOuputDataTexture(),o=i.textureWidth,s=i.texelCount;a.u_OutputTextureSize=[o,o],a.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; -#else - precision mediump float; -#endif -`.concat(this.context.shader),uniforms:a,vert:jie,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return Aa(r,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){t.computeCommand()})}},{key:"readData",value:function(){var e=Xi(mn.mark(function n(){var a=this,i,o,s,u,f,l,c,h;return mn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){i=a.reGl.read()}),!i){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,u=o.elementsPerTexel,f=o.typedArrayConstructor,l=f===void 0?Float32Array:f,c=[],u!==4)for(h=0;h0&&arguments[0]!==void 0?arguments[0]:{},n=new r;return n.setConfig(t),n.setEngine(new foe),n}}]),r}();const coe=Object.freeze(Object.defineProperty({__proto__:null,Kernel:GN,World:loe},Symbol.toStringTag,{value:"Module"})),$N=Ka(coe);var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.arrayToTextureData=jn.attributesToTextureData=jn.buildTextureDataWithTwoEdgeAttr=jn.buildTextureData=jn.proccessToFunc=void 0;var hoe=Ir(),ad=Nd,doe=function(r,e){var t;return r?(0,hoe.isNumber)(r)?t=function(){return r}:t=r:t=function(){return e||1},t};jn.proccessToFunc=doe;var voe=function(r,e){var t=[],n=[],a={},i=0;for(i=0;i 0.0) { - dx += param * xDist; - dy += param * yDist; - if (xDist == 0 && yDist == 0) { - const sign = i < j ? 1 : -1; - dx += param * sign; - dy += param * sign; - } - } - } - } - return [dx, dy]; - } - calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // - let dx = 0, dy = 0; - const vx = currentNode[0] - this.u_Center[0]; - const vy = currentNode[1] - this.u_Center[1]; - const gf = 0.01 * this.u_K * this.u_Gravity; - dx = gf * vx; - dy = gf * vy; - if (this.u_Clustering == 1) { - const clusterIdx = int(nodeAttributes[0]); - const center = this.u_ClusterCenters[clusterIdx]; - const cvx = currentNode[0] - center[0]; - const cvy = currentNode[1] - center[1]; - const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; - const parma = this.u_K * this.u_ClusterGravity / dist; - dx += parma * cvx; - dy += parma * cvy; - } - return [dx, dy]; - } - calcAttractive(i: int, currentNode: vec4): vec2 { - let dx = 0, dy = 0; - const arr_offset = int(floor(currentNode[2] + 0.5)); - const length = int(floor(currentNode[3] + 0.5)); - const node_buffer: vec4; - for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { - if (p >= length) break; - const arr_idx = arr_offset + p; - // when arr_idx % 4 == 0 update currentNodedx_buffer - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; - } - const float_j = buf_offset == 0 ? node_buffer[0] : - buf_offset == 1 ? node_buffer[1] : - buf_offset == 2 ? node_buffer[2] : - node_buffer[3]; - const nextNode = this.u_Data[int(float_j)]; - const xDist = currentNode[0] - nextNode[0]; - const yDist = currentNode[1] - nextNode[1]; - const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; - let attractiveF = dist / this.u_K; - - if (dist > 0.0) { - dx -= xDist * attractiveF; - dy -= yDist * attractiveF; - if (xDist == 0 && yDist == 0) { - const sign = i < int(float_j) ? 1 : -1; - dx -= sign * attractiveF; - dy -= sign * attractiveF; - } - } - } - return [dx, dy]; - } - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - let dx = 0, dy = 0; - if (i >= VERTEX_COUNT) { - this.u_Data[i] = currentNode; - return; - } - - // [gravity, fx, fy, 0] - const nodeAttributes = this.u_AttributeArray[i]; - - if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { - // the node is fixed - this.u_Data[i] = [ - nodeAttributes[1], - nodeAttributes[2], - currentNode[2], - currentNode[3] - ]; - return; - } - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - dx += repulsive[0]; - dy += repulsive[1]; - // attractive - const attractive = this.calcAttractive(i, currentNode); - dx += attractive[0]; - dy += attractive[1]; - // gravity - const gravity = this.calcGravity(currentNode, nodeAttributes); - dx -= gravity[0]; - dy -= gravity[1]; - // speed - dx *= this.u_Speed; - dy *= this.u_Speed; - - // move - const distLength = sqrt(dx * dx + dy * dy); - if (distLength > 0.0) { - const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); - this.u_Data[i] = [ - currentNode[0] + dx / distLength * limitedDist, - currentNode[1] + dy / distLength * limitedDist, - currentNode[2], - currentNode[3] - ]; - } - } -} -`;Xa.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Xa.clusterCode=` -import { globalInvocationID } from 'g-webgpu'; -const VERTEX_COUNT; -const CLUSTER_COUNT; -@numthreads(1, 1, 1) -class CalcCenter { - @in - u_Data: vec4[]; - @in - u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] - @in @out - u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] - @main - compute() { - const i = globalInvocationID.x; - const center = this.u_ClusterCenters[i]; - let sumx = 0; - let sumy = 0; - let count = 0; - for (let j = 0; j < VERTEX_COUNT; j++) { - const attributes = this.u_NodeAttributes[j]; - const clusterIdx = int(attributes[0]); - const vertex = this.u_Data[j]; - if (clusterIdx == i) { - sumx += vertex.x; - sumy += vertex.y; - count += 1; - } - } - this.u_ClusterCenters[i] = [ - sumx / count, - sumy / count, - count, - i - ]; - } -} -`;Xa.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var moe=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fc=me&&me.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(r,e||[])).next())})},Bc=me&&me.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(t=0)),t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]= length) break; - const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置 - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4, - } - - let float_j: float = node_buffer[0]; - - const nextNode = this.u_Data[int(float_j)]; - const vx = nextNode[0] - currentNode[0]; - const vy = nextNode[1] - currentNode[1]; - const dist = sqrt(vx * vx + vy * vy) + 0.01; - const direx = vx / dist; - const direy = vy / dist; - const edgeLength = node_buffer[1]; - const edgeStrength = node_buffer[2]; - const diff: float = edgeLength - dist;//edgeLength - // const param = diff * this.u_stiffness / mass; // - const param = diff * edgeStrength / mass; // - ax -= direx * param; - ay -= direy * param; - } - return [ax, ay]; - } - - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - const movement = u_AveMovement[0]; - let ax = 0, ay = 0; - - if (i >= VERTEX_COUNT || movement.x < u_minMovement) { - this.u_Data[i] = currentNode; - return; - } - - // 每个节点属性占两个数组中各一格 - // [mass, degree, nodeStrength, fx] - const nodeAttributes1 = this.u_NodeAttributeArray1[i]; - // [centerX, centerY, centerGravity, fy] - const nodeAttributes2 = this.u_NodeAttributeArray2[i]; - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - ax += repulsive[0]; - ay += repulsive[1]; - - // attractive - const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); - ax += attractive[0]; - ay += attractive[1]; - - // gravity - const gravity = this.calcGravity(i, currentNode, nodeAttributes2); - ax -= gravity[0]; - ay -= gravity[1]; - - // speed - const param = this.u_interval * this.u_damping; - let vx = ax * param; - let vy = ay * param; - const vlength = sqrt(vx * vx + vy * vy) + 0.0001; - if (vlength > this.u_maxSpeed) { - const param2 = this.u_maxSpeed / vlength; - vx = param2 * vx; - vy = param2 * vy; - } - - // move - if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { - this.u_Data[i] = [ - nodeAttributes1[3], - nodeAttributes2[3], - currentNode[2], - 0 - ]; - } else { - const distx = vx * this.u_interval; - const disty = vy * this.u_interval; - const distLength = sqrt(distx * distx + disty * disty); - this.u_Data[i] = [ - currentNode[0] + distx, - currentNode[1] + disty, - currentNode[2], - distLength - ]; - } - - // the avarage move distance - // need to share memory - - } -} -`;Wa.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wa.aveMovementCode=` -const VERTEX_COUNT; -@numthreads(1, 1, 1) -class CalcAveMovement { - @in - u_Data: vec4[]; - @in - u_iter: float; - @in @out - u_AveMovement: vec4[]; - @main - compute() { - let movement = 0; - for (let j: int = 0; j < VERTEX_COUNT; j++) { - const vertex = this.u_Data[j]; - movement += vertex[3]; - } - movement = movement / float(VERTEX_COUNT); - this.u_AveMovement[0] = [movement, 0, 0, 0]; - } -} -`;Wa.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var Eoe=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),n0=me&&me.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(r,e||[])).next())})},a0=me&&me.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(t=0)),t;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,a=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]z.size[1]?z.size[0]:z.size[1];return X/2}if((0,Ut.isObject)(z.size)){var X=z.size.width>z.size.height?z.size.width:z.size.height;return X/2}return z.size/2}return 10};else if((0,Ut.isFunction)(g))m=function(z){return g(z)};else if((0,Ut.isArray)(g)){var w=g[0]>g[1]?g[0]:g[1],x=w/2;m=function(z){return x}}else{var E=g/2;m=function(z){return E}}this.nodeSize=m;var _=t.comboSpacing,S;(0,Ut.isNumber)(_)?S=function(){return _}:(0,Ut.isFunction)(_)?S=_:S=function(){return 0},this.comboSpacing=S;var A=t.comboPadding,M;(0,Ut.isNumber)(A)?M=function(){return A}:(0,Ut.isArray)(A)?M=function(){return Math.max.apply(null,A)}:(0,Ut.isFunction)(A)?M=A:M=function(){return 0},this.comboPadding=M;var C=this.linkDistance,I;C||(C=10),(0,Ut.isNumber)(C)?I=function(z){return C}:I=C,this.linkDistance=I;var k=this.edgeStrength,O;k||(k=1),(0,Ut.isNumber)(k)?O=function(z){return k}:O=k,this.edgeStrength=O;var B=this.nodeStrength,L;B||(B=30),(0,Ut.isNumber)(B)?L=function(z){return B}:L=B,this.nodeStrength=L},e.prototype.initPos=function(t){var n=this,a=n.nodes;a.forEach(function(i,o){var s=i.comboId,u=t[s];s&&u?(i.x=u.cx+100/(o+1),i.y=u.cy+100/(o+1)):(i.x=100/(o+1),i.y=100/(o+1))})},e.prototype.getComboMap=function(){var t=this,n=t.nodeMap,a=t.comboTrees,i=t.oriComboMap,o={};return(a||[]).forEach(function(s){var u=[];(0,Ut.traverseTreeUp)(s,function(f){if(f.itemType==="node"||!i[f.id])return!0;if(o[f.id]===void 0){var l={id:f.id,name:f.id,cx:0,cy:0,count:0,depth:t.oriComboMap[f.id].depth||0,children:[]};o[f.id]=l}var c=f.children;c&&c.forEach(function(v){if(!o[v.id]&&!n[v.id])return!0;u.push(v)});var h=o[f.id];if(h.cx=0,h.cy=0,u.length===0){h.empty=!0;var d=i[f.id];h.cx=d.x,h.cy=d.y}return u.forEach(function(v){if(h.count++,v.itemType!=="node"){var p=o[v.id];(0,Ut.isNumber)(p.cx)&&(h.cx+=p.cx),(0,Ut.isNumber)(p.cy)&&(h.cy+=p.cy);return}var g=n[v.id];g&&((0,Ut.isNumber)(g.x)&&(h.cx+=g.x),(0,Ut.isNumber)(g.y)&&(h.cy+=g.y))}),h.cx/=h.count||1,h.cy/=h.count||1,h.children=u,!0})}),o},e.prototype.applyComboCenterForce=function(t){var n=this,a=n.gravity,i=n.comboGravity||a,o=this.alpha,s=n.comboTrees,u=n.indexMap,f=n.nodeMap,l=n.comboMap;(s||[]).forEach(function(c){(0,Ut.traverseTreeUp)(c,function(h){if(h.itemType==="node")return!0;var d=l[h.id];if(!d)return!0;var v=l[h.id],p=(v.depth+1)/10*.5,g=v.cx,y=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(m){if(m.itemType!=="node"){var b=l[m.id];b&&(0,Ut.isNumber)(b.cx)&&(v.cx+=b.cx),b&&(0,Ut.isNumber)(b.cy)&&(v.cy+=b.cy);return}var w=f[m.id],x=w.x-g||.005,E=w.y-y||.005,_=Math.sqrt(x*x+E*E),S=u[w.id],A=i*o/_*p;t[S].x-=x*A,t[S].y-=E*A,(0,Ut.isNumber)(w.x)&&(v.cx+=w.x),(0,Ut.isNumber)(w.y)&&(v.cy+=w.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(t){var n=this,a=n.comboMap,i=n.nodes,o={};i.forEach(function(u,f){i.forEach(function(l,c){if(!(fb&&(h.minX=b),h.minY>w&&(h.minY=w),h.maxX1&&l.forEach(function(c,h){if(c.itemType==="node")return!1;var d=n[c.id];d&&l.forEach(function(v,p){if(h<=p||v.itemType==="node")return!1;var g=n[v.id];if(!g)return!1;var y=d.cx-g.cx||.005,m=d.cy-g.cy||.005,b=y*y+m*m,w=d.r||1,x=g.r||1,E=w+x,_=x*x,S=w*w;if(bo)){var M=n["".concat(p.id,"-").concat(x.id)],C=M.vx,I=M.vy,k=Math.log(Math.abs(x.depth-p.depth)/10)+1||1;k=k<1?1:k,x.comboId!==p.comboId&&(k+=1);var O=k?Math.pow(d,k):1,B=s(x)*u/S*O;if(t[g].x+=C*B,t[g].y+=I*B,g=0;O--)k(O);return{nodes:c,edges:h,combos:d,comboEdges:v}},u.prototype.getInnerGraphs=function(f){var l=this,c=l.comboTrees,h=l.nodeSize,d=l.edges,v=l.comboPadding,p=l.spacing,g={},y=this.innerLayout||new i.ConcentricLayout({type:"concentric",sortBy:"id"});return y.center=[0,0],y.preventOverlap=!0,y.nodeSpacing=p,(c||[]).forEach(function(m){(0,a.traverseTreeUp)(m,function(b){var w,x=(v==null?void 0:v(b))||10;if((0,a.isArray)(x)&&(x=Math.max.apply(Math,x)),!((w=b.children)===null||w===void 0)&&w.length){var _=b.children.map(function(R){if(R.itemType==="combo")return g[R.id];var V=f[R.id]||{};return e(e({},V),R)}),S=_.map(function(R){return R.id}),A={nodes:_,edges:d.filter(function(R){return S.includes(R.source)&&S.includes(R.target)})},M=1/0;_.forEach(function(R){var V;R.size||(R.size=((V=g[R.id])===null||V===void 0?void 0:V.size)||(h==null?void 0:h(R))||[30,30]),(0,a.isNumber)(R.size)&&(R.size=[R.size,R.size]),M>R.size[0]&&(M=R.size[0]),M>R.size[1]&&(M=R.size[1])}),y.layout(A);var C=(0,a.getLayoutBBox)(_),I=C.minX,k=C.minY,O=C.maxX,B=C.maxY,L={x:(O+I)/2,y:(B+k)/2};A.nodes.forEach(function(R){R.x-=L.x,R.y-=L.y});var z=Math.max(O-I,M)+x*2,X=Math.max(B-k,M)+x*2;g[b.id]={id:b.id,nodes:_,size:[z,X]}}else if(b.itemType==="combo"){var E=x?[x*2,x*2]:[30,30];g[b.id]={id:b.id,nodes:[],size:E}}return!0})}),g},u.prototype.initVals=function(){var f=this,l=f.nodeSize,c=f.spacing,h,d;if((0,a.isNumber)(c)?d=function(){return c}:(0,a.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!l)h=function(b){var w=d(b);if(b.size){if((0,a.isArray)(b.size)){var x=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(x+w)/2}if((0,a.isObject)(b.size)){var x=b.size.width>b.size.height?b.size.width:b.size.height;return(x+w)/2}return(b.size+w)/2}return 10+w/2};else if((0,a.isFunction)(l))h=function(b){var w=l(b),x=d(b);if((0,a.isArray)(b.size)){var E=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(E+x)/2}return((w||10)+x)/2};else if((0,a.isArray)(l)){var v=l[0]>l[1]?l[0]:l[1],p=v/2;h=function(b){return p+d(b)/2}}else{var g=l/2;h=function(b){return g+d(b)/2}}this.nodeSize=h;var y=f.comboPadding,m;(0,a.isNumber)(y)?m=function(){return y}:(0,a.isArray)(y)?m=function(){return Math.max.apply(null,y)}:(0,a.isFunction)(y)?m=y:m=function(){return 0},this.comboPadding=m},u.prototype.getType=function(){return"comboCombined"},u}(n.Base);return tf.ComboCombinedLayout=o,tf}var bl={},Ym={};Object.defineProperty(Ym,"__esModule",{value:!0});var koe=function(){function r(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return r.prototype.distanceTo=function(e){var t=this.rx-e.rx,n=this.ry-e.ry;return Math.hypot(t,n)},r.prototype.setPos=function(e,t){this.rx=e,this.ry=t},r.prototype.resetForce=function(){this.fx=0,this.fy=0},r.prototype.addForce=function(e){var t=e.rx-this.rx,n=e.ry-this.ry,a=Math.hypot(t,n);a=a<1e-4?1e-4:a;var i=this.g*(this.degree+1)*(e.degree+1)/a;this.fx+=i*t/a,this.fy+=i*n/a},r.prototype.in=function(e){return e.contains(this.rx,this.ry)},r.prototype.add=function(e){var t=this.mass+e.mass,n=(this.rx*this.mass+e.rx*e.mass)/t,a=(this.ry*this.mass+e.ry*e.mass)/t,i=this.degree+e.degree,o={rx:n,ry:a,mass:t,degree:i};return new r(o)},r}();Ym.default=koe;var qm={};Object.defineProperty(qm,"__esModule",{value:!0});var Noe=function(){function r(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return r.prototype.getLength=function(){return this.length},r.prototype.contains=function(e,t){var n=this.length/2;return e<=this.xmid+n&&e>=this.xmid-n&&t<=this.ymid+n&&t>=this.ymid-n},r.prototype.NW=function(){var e=this.xmid-this.length/4,t=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.NE=function(){var e=this.xmid+this.length/4,t=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.SW=function(){var e=this.xmid-this.length/4,t=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r.prototype.SE=function(){var e=this.xmid+this.length/4,t=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:t,length:n},i=new r(a);return i},r}();qm.default=Noe;var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});var Ooe=function(){function r(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return r.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new r(this.quad.NW()),this.NE=new r(this.quad.NE()),this.SW=new r(this.quad.SW()),this.SE=new r(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},r.prototype._putBody=function(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},r.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},r.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var t=this.quad?this.quad.getLength():0,n=this.body.distanceTo(e);t/n250&&(t.barnesHut=!0),t.prune===void 0&&u>100&&(t.prune=!0),this.maxIteration===0&&!t.prune?(o=250,u<=200&&u>100?o=1e3:u>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&i&&(o=100,u<=200&&u>100?o=500:u>200&&(o=950),this.maxIteration=o),t.kr||(t.kr=50,u>100&&u<=500?t.kr=20:u>500&&(t.kr=1)),t.kg||(t.kg=20,u>100&&u<=500?t.kg=10:u>500&&(t.kg=1)),this.nodes=t.updateNodesByForces(s),a()},e.prototype.updateNodesByForces=function(t){for(var n=this,a=n.edges,i=n.maxIteration,o=n.nodes,s=a.filter(function(_){var S=(0,ci.getEdgeTerminal)(_,"source"),A=(0,ci.getEdgeTerminal)(_,"target");return S!==A}),u=o.length,f=s.length,l=[],c={},h={},d=[],v=0;v0;){for(var x=0;xy||!c)?m=this.getOptRepGraForces(m,w,o):m=this.getRepGraForces(g,y,m,p,s,o);var _=this.updatePos(m,b,v,o);f=_.nodes,v=_.sg,g--,u.tick&&u.tick()}return f},e.prototype.getAttrForces=function(t,n,a,i,o,s,u,f){for(var l=this,c=l.nodes,h=l.preventOverlap,d=l.dissuadeHubs,v=l.mode,p=l.prune,g=0;g0&&(_=E,S=E),f[2*i[y.id]]+=_*x[0],f[2*i[b.id]]-=S*x[0],f[2*i[y.id]+1]+=_*x[1],f[2*i[b.id]+1]-=S*x[1]}}return f},e.prototype.getRepGraForces=function(t,n,a,i,o,s){for(var u=this,f=u.nodes,l=u.preventOverlap,c=u.kr,h=u.kg,d=u.center,v=u.prune,p=f.length,g=0;g0&&(w=c*(s[g]+1)*(s[y]+1)/b),a[2*g]-=w*m[0],a[2*y]+=w*m[0],a[2*g+1]-=w*m[1],a[2*y+1]+=w*m[1]}var x=[f[g].x-d[0],f[g].y-d[1]],E=Math.hypot(x[0],x[1]);x[0]=x[0]/E,x[1]=x[1]/E;var _=h*(s[g]+1);a[2*g]-=_*x[0],a[2*g+1]-=_*x[1]}return a},e.prototype.getOptRepGraForces=function(t,n,a){for(var i=this,o=i.nodes,s=i.kg,u=i.center,f=i.prune,l=o.length,c=9e10,h=-9e10,d=9e10,v=-9e10,p=0;p=h&&(h=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(h-c,v-d),y={xmid:(h+c)/2,ymid:(v+d)/2,length:g,massCenter:u,mass:l},m=new Roe.default(y),b=new Foe.default(m),p=0;p1.5*E?1.5*E:a);for(var y=0;yA?A:_;var M=_*t[2*y],C=_*t[2*y+1];s[y].x+=M,s[y].y+=C}return{nodes:s,sg:a}},e}(Doe.Base);bl.ForceAtlas2Layout=Boe;var wl={},Km={},Qm={},Jm={},zs=me&&me.__assign||function(){return zs=Object.assign||function(r){for(var e,t=1,n=arguments.length;te;n--)for(var a=0;a=e&&(this.additionColumn[a]+=t);for(var n=0;ne;n--)this.cells[a][n+t]=zs(zs({},this.cells[a][n]),{dx:a,dy:n+t,x:a*this.CELL_W,y:(n+t)*this.CELL_H}),this.cells[a][n]={dx:a,dy:n,x:a*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n=e&&(this.additionRow[n]+=t);for(var a=0;ai){for(var d=Math.ceil((f.size[0]+a)/i)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][h].node)v--;else break}s.insertColumn(c,v)}if(f.size[1]+a>o){for(var d=Math.ceil((f.size[1]+a)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][h+p+1].node)v--;else break}s.insertRow(h,v)}}for(var u=0;ui0?(m=a-l,y=s-i,b=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)),w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):0y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):g<-i0?(m=a-l,y=-(f-n),m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):(m=u-o,Math.abs(p)>(i-n)/2?y=n-f:y=p,m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y&&g!==0?(y/Math.sin(g)).toFixed(2):m.toFixed(2)));var x=parseFloat(g.toFixed(2)),E=t;return t&&(E=$oei?e:r,s=a>i?r:e,u=o.x-o.size[0]/2,f=o.y-o.size[1]/2,l=o.x+o.size[0]/2,c=o.y+o.size[1]/2,h=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,y=o.y,m=s.x,b=s.y,w=l>=h&&v>=u&&c>=d&&p>=f,x=0,E=0;if(w){E=Math.sqrt(Math.pow(m-g,2)+Math.pow(b-y,2));var _=u>h?u:h,S=f>d?f:d,A=lWN||n.y>VN)&&(e+=1e12);for(var a=t+1;a150,d=c<30||c>150,v=l>70&&l<110,p=c>70&&c<110;if(h&&!d||l*c<0){s=!1;break}else if(v&&!p||l*c<0){s=!1;break}else if((f.x-r.x)*(f.x-e.x)<0){s=!1;break}else if((f.y-r.y)*(f.y-e.y)<0){s=!1;break}}return s}function Zoe(r,e){for(var t=!1,n=1,a=Woe*n,i=Voe*n,o=[a,-a,0,0],s=[0,0,i,-i],u=0;u_2?(l=d,t=!0):(f.x-=o[c],f.y-=s[c])}}return o0>_2&&(o0*=Yoe),t?HN(r):0}function S2(r,e){var t=0;(r.x<0||r.y<0||r.x+r.size[0]+20>WN||r.y+r.size[1]+20>VN)&&(t+=1e12);for(var n=0;n0&&(s++,!(s>=o));){var u=Zoe(r,e);u!==0&&(i=u),a=i-t,t=i,a===0?--n:n=20}return r.forEach(function(f){f.x=f.x-f.size[0]/2,f.y=f.y-f.size[1]/2}),{nodes:r,edges:e}}e1.default=Koe;var Og=me&&me.__assign||function(){return Og=Object.assign||function(r){for(var e,t=1,n=arguments.length;t1){var g=Og({},v);delete g.size,o.push(g)}});var s=[];n.forEach(function(v){var p=o.find(function(y){return y.id===v.source}),g=o.find(function(y){return y.id===v.target});p&&g&&s.push(v)});var u=new nse.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),f=u.layout({nodes:o,edges:s}).nodes;t.forEach(function(v){var p=(f||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||a/2,v.y=(p==null?void 0:p.y)||i/2});var l=JSON.parse(JSON.stringify(t)),c=JSON.parse(JSON.stringify(n)),h=Ts.forceSimulation().nodes(l).force("link",Ts.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",Ts.forceManyBody()).force("center",Ts.forceCenter(a/2,i/2)).force("x",Ts.forceX(a/2)).force("y",Ts.forceY(i/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){h.on("end",function(){t.forEach(function(x){var E=l.find(function(_){return _.id===x.id});E&&(x.x=E.x,x.y=E.y)});var p=Math.min.apply(Math,t.map(function(x){return x.x})),g=Math.max.apply(Math,t.map(function(x){return x.x})),y=Math.min.apply(Math,t.map(function(x){return x.y})),m=Math.max.apply(Math,t.map(function(x){return x.y})),b=a/(g-p),w=i/(m-y);t.forEach(function(x){x.x!==void 0&&b<1&&(x.x=(x.x-p)*b),x.y!==void 0&&w<1&&(x.y=(x.y-y)*w)}),t.forEach(function(x){x.sizeTemp=x.size,x.size=[10,10]}),(0,rse.default)(t,n),t.forEach(function(x){x.size=x.sizeTemp||[],delete x.sizeTemp}),(0,tse.default)({nodes:t,edges:n},e),v()})});return d}Km.default=ase;var ise=me&&me.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ose=me&&me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wl,"__esModule",{value:!0});wl.ERLayout=void 0;var sse=Rr,use=ose(Km),fse=function(r){ise(e,r);function e(t){var n=r.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},t&&n.updateCfg(t),n}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var t=this,n=t.nodes,a=t.edges;return n==null||n.forEach(function(i){i.size||(i.size=[50,50])}),(0,use.default)({nodes:n,edges:a},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){t.onLayoutEnd&&t.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(sse.Base);wl.ERLayout=fse;var Io={},M2;function lse(){if(M2)return Io;M2=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Layouts=Io.Layout=void 0;var r=gi,e=tl,t=rl,n=al,a=nl,i=Vy,o=il,s=pu,u=jm,f=dl,l=vl,c=pl,h=gl,d=yl,v=ml,p=XN(),g=bl,y=wl,m=ul,b=Ir(),w=function(){function x(E){var _=(0,r.getLayoutByName)(E.type);this.layoutInstance=new _(E)}return x.prototype.layout=function(E){return this.layoutInstance.layout(E)},x.prototype.updateCfg=function(E){this.layoutInstance.updateCfg(E)},x.prototype.init=function(E){this.correctLayers(E.nodes),this.layoutInstance.init(E)},x.prototype.correctLayers=function(E){if(E!=null&&E.length){var _=1/0,S=[];if(E.forEach(function(M){(0,b.isString)(M.layer)&&(M.layer=parseInt(M.layer,10)),!(M.layer===void 0||isNaN(M.layer))&&(S.push(M),M.layer<_&&(_=M.layer))}),_<=0){var A=Math.abs(_)+1;S.forEach(function(M){return M.layer+=A})}}},x.prototype.execute=function(){this.layoutInstance.execute()},x.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},x.prototype.destroy=function(){return this.layoutInstance.destroy()},x}();return Io.Layout=w,Io.Layouts={force:i.ForceLayout,fruchterman:c.FruchtermanLayout,forceAtlas2:g.ForceAtlas2Layout,gForce:a.GForceLayout,force2:n.Force2Layout,dagre:s.DagreLayout,dagreCompound:m.DagreCompoundLayout,circular:o.CircularLayout,radial:u.RadialLayout,concentric:f.ConcentricLayout,grid:e.GridLayout,mds:l.MDSLayout,comboForce:v.ComboForceLayout,comboCombined:p.ComboCombinedLayout,random:t.RandomLayout,"gForce-gpu":d.GForceGPULayout,"fruchterman-gpu":h.FruchtermanGPULayout,er:y.ERLayout},Io}var KN={};Object.defineProperty(KN,"__esModule",{value:!0});var A2;function QN(){return A2||(A2=1,function(r){var e=me&&me.__createBinding||(Object.create?function(E,_,S,A){A===void 0&&(A=S);var M=Object.getOwnPropertyDescriptor(_,S);(!M||("get"in M?!_.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(E,A,M)}:function(E,_,S,A){A===void 0&&(A=S),E[A]=_[S]}),t=me&&me.__exportStar||function(E,_){for(var S in E)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&e(_,E,S)};Object.defineProperty(r,"__esModule",{value:!0}),r.ERLayout=r.ForceAtlas2Layout=r.ComboCombinedLayout=r.ComboForceLayout=r.GForceGPULayout=r.FruchtermanGPULayout=r.FruchtermanLayout=r.MDSLayout=r.ConcentricLayout=r.RadialLayout=r.DagreCompoundLayout=r.DagreLayout=r.CircularLayout=r.ForceLayout=r.Force2Layout=r.GForceLayout=r.RandomLayout=r.GridLayout=r.Layouts=r.Layout=void 0;var n=tl;Object.defineProperty(r,"GridLayout",{enumerable:!0,get:function(){return n.GridLayout}});var a=rl;Object.defineProperty(r,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var i=nl;Object.defineProperty(r,"GForceLayout",{enumerable:!0,get:function(){return i.GForceLayout}});var o=al;Object.defineProperty(r,"Force2Layout",{enumerable:!0,get:function(){return o.Force2Layout}});var s=Vy;Object.defineProperty(r,"ForceLayout",{enumerable:!0,get:function(){return s.ForceLayout}});var u=il;Object.defineProperty(r,"CircularLayout",{enumerable:!0,get:function(){return u.CircularLayout}});var f=pu;Object.defineProperty(r,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var l=ul;Object.defineProperty(r,"DagreCompoundLayout",{enumerable:!0,get:function(){return l.DagreCompoundLayout}});var c=jm;Object.defineProperty(r,"RadialLayout",{enumerable:!0,get:function(){return c.RadialLayout}});var h=dl;Object.defineProperty(r,"ConcentricLayout",{enumerable:!0,get:function(){return h.ConcentricLayout}});var d=vl;Object.defineProperty(r,"MDSLayout",{enumerable:!0,get:function(){return d.MDSLayout}});var v=pl;Object.defineProperty(r,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var p=gl;Object.defineProperty(r,"FruchtermanGPULayout",{enumerable:!0,get:function(){return p.FruchtermanGPULayout}});var g=yl;Object.defineProperty(r,"GForceGPULayout",{enumerable:!0,get:function(){return g.GForceGPULayout}});var y=ml;Object.defineProperty(r,"ComboForceLayout",{enumerable:!0,get:function(){return y.ComboForceLayout}});var m=XN();Object.defineProperty(r,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var b=bl;Object.defineProperty(r,"ForceAtlas2Layout",{enumerable:!0,get:function(){return b.ForceAtlas2Layout}});var w=wl;Object.defineProperty(r,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var x=lse();Object.defineProperty(r,"Layout",{enumerable:!0,get:function(){return x.Layout}}),Object.defineProperty(r,"Layouts",{enumerable:!0,get:function(){return x.Layouts}}),t(KN,r)}(Tp)),Tp}(function(r){var e=me&&me.__createBinding||(Object.create?function(a,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(a,s,u)}:function(a,i,o,s){s===void 0&&(s=o),a[s]=i[o]}),t=me&&me.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&e(i,a,o)};Object.defineProperty(r,"__esModule",{value:!0}),r.getLayoutByName=r.unRegisterLayout=r.registerLayout=void 0;var n=gi;Object.defineProperty(r,"registerLayout",{enumerable:!0,get:function(){return n.registerLayout}}),Object.defineProperty(r,"unRegisterLayout",{enumerable:!0,get:function(){return n.unRegisterLayout}}),Object.defineProperty(r,"getLayoutByName",{enumerable:!0,get:function(){return n.getLayoutByName}}),t(QN(),r)})(Kt);function cse(r,e,t,n){return n===void 0&&(n="height"),t==="center"?(r[n]+e[n])/2:r.height}var oo={assign:Object.assign,getHeight:cse},JN=oo,t1=18,hse=t1*2,C2=t1,dse={getId:function(e){return e.id||e.name},getPreH:function(e){return e.preH||0},getPreV:function(e){return e.preV||0},getHGap:function(e){return e.hgap||C2},getVGap:function(e){return e.vgap||C2},getChildren:function(e){return e.children},getHeight:function(e){return e.height||hse},getWidth:function(e){var t=e.label||" ";return e.width||t.split("").length*t1}};function id(r,e){var t=this;if(t.vgap=t.hgap=0,r instanceof id)return r;t.data=r;var n=e.getHGap(r),a=e.getVGap(r);return t.preH=e.getPreH(r),t.preV=e.getPreV(r),t.width=e.getWidth(r),t.height=e.getHeight(r),t.width+=t.preH,t.height+=t.preV,t.id=e.getId(r),t.x=t.y=0,t.depth=0,t.children||(t.children=[]),t.addGap(n,a),t}JN.assign(id.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,t){var n=this;n.hgap+=e,n.vgap+=t,n.width+=2*e,n.height+=2*t},eachNode:function(e){for(var t=this,n=[t],a;a=n.shift();)e(a),n=a.children.concat(n)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var t=this,n=[t],a;a=n.shift();)e(a),n=n.concat(a.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.width=Math.max(e.width,t.x+t.width),e.height=Math.max(e.height,t.y+t.height)}),e},translate:function(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.eachNode(function(n){n.x+=e,n.y+=t,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var e=this,t=e.getBoundingBox();e.eachNode(function(n){n.x=n.x-(n.x-t.left)*2-n.width}),e.translate(t.width,0)},bottom2top:function(){var e=this,t=e.getBoundingBox();e.eachNode(function(n){n.y=n.y-(n.y-t.top)*2-n.height}),e.translate(0,t.height)}});function vse(r,e,t){e===void 0&&(e={}),e=JN.assign({},dse,e);var n=new id(r,e),a=[n],i;if(!t&&!r.collapsed){for(;i=a.shift();)if(!i.data.collapsed){var o=e.getChildren(i.data),s=o?o.length:0;if(i.children=new Array(s),o&&s)for(var u=0;uw.low&&(w=w.nxt);var A=E+x.prelim+x.w-(S+_.prelim);A>0&&(S+=A,o(m,b,w.index,A));var M=f(x),C=f(_);M<=C&&(x=u(x),x!==null&&(E+=x.mod)),M>=C&&(_=s(_),_!==null&&(S+=_.mod))}!x&&_?l(m,b,_,S):x&&!_&&c(m,b,x,E)}function o(m,b,w,x){m.c[b].mod+=x,m.c[b].msel+=x,m.c[b].mser+=x,v(m,b,w,x)}function s(m){return m.cs===0?m.tl:m.c[0]}function u(m){return m.cs===0?m.tr:m.c[m.cs-1]}function f(m){return m.y+m.h}function l(m,b,w,x){var E=m.c[0].el;E.tl=w;var _=x-w.mod-m.c[0].msel;E.mod+=_,E.prelim-=_,m.c[0].el=m.c[b].el,m.c[0].msel=m.c[b].msel}function c(m,b,w,x){var E=m.c[b].er;E.tr=w;var _=x-w.mod-m.c[b].mser;E.mod+=_,E.prelim-=_,m.c[b].er=m.c[b-1].er,m.c[b].mser=m.c[b-1].mser}function h(m){m.prelim=(m.c[0].prelim+m.c[0].mod+m.c[m.cs-1].mod+m.c[m.cs-1].prelim+m.c[m.cs-1].w)/2-m.w/2}function d(m,b){b+=m.mod,m.x=m.prelim+b,p(m);for(var w=0;w=w.low;)w=w.nxt;return{low:m,index:b,nxt:w}}aO(r,t);var y=df.fromNode(r,t);return n(y),d(y,0),nO(y,r,t),yse(r,t),r},T2=eO,iO=function(r,e){for(var t=T2(r.data,e,!0),n=T2(r.data,e,!0),a=r.children.length,i=Math.round(a/2),o=e.getSide||function(l,c){return c-1},Ese=Fi[0],r1=function(r,e,t){var n=e.direction||Ese;if(e.isHorizontal=xse(n),Fi.indexOf(n)===-1)throw new TypeError("Invalid direction: "+n);if(n===Fi[0])t(r,e);else if(n===Fi[1])t(r,e),r.right2left();else if(n===Fi[2])t(r,e);else if(n===Fi[3])t(r,e),r.bottom2top();else if(n===Fi[4]||n===Fi[5]){var a=bse(r,e),i=a.left,o=a.right;t(i,e),t(o,e),e.isHorizontal?i.right2left():i.bottom2top(),o.translate(i.x-o.x,i.y-o.y),r.x=i.x,r.y=o.y;var s=r.getBoundingBox();e.isHorizontal?s.top<0&&r.translate(0,-s.top):s.left<0&&r.translate(-s.left,0)}var u=e.fixedRoot;return u===void 0&&(u=!0),u&&r.translate(-(r.x+r.width/2+r.hgap),-(r.y+r.height/2+r.vgap)),_se(r,e),r};function _se(r,e){if(e.radial){var t=e.isHorizontal?["x","y"]:["y","x"],n=t[0],a=t[1],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;r.DFTraverse(function(l){s++;var c=l.x,h=l.y;i.x=Math.min(i.x,c),i.y=Math.min(i.y,h),o.x=Math.max(o.x,c),o.y=Math.max(o.y,h)});var u=o[a]-i[a];if(u===0)return;var f=Math.PI*2/s;r.DFTraverse(function(l){var c=(l[a]-i[a])/u*(Math.PI*2-f)+f,h=l[n]-r[n];l.x=Math.cos(c)*h,l.y=Math.sin(c)*h})}}function Sse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Lg(r,e)}function Lg(r,e){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Lg(r,e)}var Mse=nv,Ase=mse,Cse=r1,Tse=oo,Ise=function(r){function e(){return r.apply(this,arguments)||this}Sse(e,r);var t=e.prototype;return t.execute=function(){var a=this;return Cse(a.rootNode,a.options,Ase)},e}(Mse),kse={};function Nse(r,e){return e=Tse.assign({},kse,e),new Ise(r,e).execute()}var Ose=Nse,Lse=oo;function Dse(r,e){e===void 0&&(e=[]);var t=this;t.x=t.y=0,t.leftChild=t.rightChild=null,t.height=0,t.children=e}var Pse={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function oO(r,e,t){t?(e.x=r.x,e.y=r.y):(e.x=r.y,e.y=r.x),r.children.forEach(function(n,a){oO(n,e.children[a],t)})}var Rse=function(r,e){e===void 0&&(e={}),e=Lse.assign({},Pse,e);var t=0;function n(u){if(!u)return null;u.width=0,u.depth&&u.depth>t&&(t=u.depth);var f=u.children,l=f.length,c=new Dse(u.height,[]);return f.forEach(function(h,d){var v=n(h);c.children.push(v),d===0&&(c.leftChild=v),d===l-1&&(c.rightChild=v)}),c.originNode=u,c.isLeaf=u.isLeaf(),c}function a(u){if(u.isLeaf||u.children.length===0)u.drawingDepth=t;else{var f=u.children.map(function(c){return a(c)}),l=Math.min.apply(null,f);u.drawingDepth=l-1}return u.drawingDepth}var i;function o(u){u.x=u.drawingDepth*e.rankSep,u.isLeaf?(u.y=0,i&&(u.y=i.y+i.height+e.nodeSep,u.originNode.parent!==i.originNode.parent&&(u.y+=e.subTreeSep)),i=u):(u.children.forEach(function(f){o(f)}),u.y=(u.leftChild.y+u.rightChild.y)/2)}var s=n(r);return a(s),o(s),oO(s,r,e.isHorizontal),r};function Fse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Dg(r,e)}function Dg(r,e){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Dg(r,e)}var Bse=nv,Gse=Rse,zse=r1,jse=oo,Use=function(r){function e(){return r.apply(this,arguments)||this}Fse(e,r);var t=e.prototype;return t.execute=function(){var a=this;return a.rootNode.width=0,zse(a.rootNode,a.options,Gse)},e}(Bse),$se={};function Xse(r,e){return e=jse.assign({},$se,e),new Use(r,e).execute()}var Wse=Xse,I2=oo;function Vse(r,e,t,n,a){var i=(typeof t=="function"?t(r):t)*r.depth;if(!n)try{if(r.id===r.parent.children[0].id){r.x+=i,r.y=e?e.y:0;return}}catch{}if(r.x+=i,e){if(r.y=e.y+I2.getHeight(e,r,a),e.parent&&r.parent.id!==e.parent.id){var o=e.parent,s=o.y+I2.getHeight(o,r,a);r.y=s>r.y?s:r.y}}else r.y=0}var Yse=function(r,e,t,n){var a=null;r.eachNode(function(i){Vse(i,a,e,t,n),a=i})};function qse(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,Pg(r,e)}function Pg(r,e){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Pg(r,e)}var Hse=nv,zc=Yse,Zse=iO,Kse=oo,vf=["LR","RL","H"],Qse=vf[0],Jse=function(r){function e(){return r.apply(this,arguments)||this}qse(e,r);var t=e.prototype;return t.execute=function(){var a=this,i=a.options,o=a.rootNode;i.isHorizontal=!0;var s=i.indent,u=s===void 0?20:s,f=i.dropCap,l=f===void 0?!0:f,c=i.direction,h=c===void 0?Qse:c,d=i.align;if(h&&vf.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===vf[0])zc(o,u,l,d);else if(h===vf[1])zc(o,u,l,d),o.right2left();else if(h===vf[2]){var v=Zse(o,i),p=v.left,g=v.right;zc(p,u,l,d),p.right2left(),zc(g,u,l,d);var y=p.getBoundingBox();g.translate(y.width,0),o.x=g.x-o.width/2}return o},e}(Hse),eue={};function tue(r,e){return e=Kse.assign({},eue,e),new Jse(r,e).execute()}var rue=tue,nue=oo;function sO(r,e){var t=0;return r.children.length?r.children.forEach(function(n){t+=sO(n,e)}):t=r.height,r._subTreeSep=e.getSubTreeSep(r.data),r.totalHeight=Math.max(r.height,t)+2*r._subTreeSep,r.totalHeight}function uO(r){var e=r.children,t=e.length;if(t){e.forEach(function(u){uO(u)});var n=e[0],a=e[t-1],i=a.y-n.y+a.height,o=0;if(e.forEach(function(u){o+=u.totalHeight}),i>r.height)r.y=n.y+i/2-r.height/2;else if(e.length!==1||r.height>o){var s=r.y+(r.height-i)/2-n.y;e.forEach(function(u){u.translate(0,s)})}else r.y=(n.y+n.height/2+a.y+a.height/2)/2-r.height/2}}var aue={getSubTreeSep:function(){return 0}},iue=function(r,e){e===void 0&&(e={}),e=nue.assign({},aue,e),r.parent={x:0,width:0,height:0,y:0},r.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),r.parent=null,sO(r,e),r.startY=0,r.y=r.totalHeight/2-r.height/2,r.eachNode(function(t){var n=t.children,a=n.length;if(a){var i=n[0];if(i.startY=t.startY+t._subTreeSep,a===1)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var o=1;o=0&&(s="x",o="y");var u=0;N2(e,function(c){return u++,c.x>i.x&&(i.x=c.x),c.xi.y&&(i.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` -`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` -`)),t},addGetWebGLMessage:function(t){t=t||{};var n=t.parent!==void 0?t.parent:document.body,a=t.id!==void 0?t.id:"oldie",i=n1().getWebGLErrorMessage();i.id=a,n.appendChild(i)}}};const Mue=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:n1},Symbol.toStringTag,{value:"Module"}));var fO=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const Aue=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:fO},Symbol.toStringTag,{value:"Module"}));var so=P(P(P(P(P({},Za),e7),Sue),Mue),Aue);so.radialLayout;Kt.registerLayout("grid",Kt.GridLayout);Kt.registerLayout("random",Kt.RandomLayout);Kt.registerLayout("force",Kt.ForceLayout);Kt.registerLayout("circular",Kt.CircularLayout);Kt.registerLayout("dagre",Kt.DagreLayout);Kt.registerLayout("dagreCompound",Kt.DagreCompoundLayout);Kt.registerLayout("radial",Kt.RadialLayout);Kt.registerLayout("concentric",Kt.ConcentricLayout);Kt.registerLayout("mds",Kt.MDSLayout);Kt.registerLayout("fruchterman",Kt.FruchtermanLayout);Kt.registerLayout("fruchterman-gpu",Kt.FruchtermanGPULayout);Kt.registerLayout("gForce",Kt.GForceLayout);Kt.registerLayout("force2",Kt.Force2Layout);Kt.registerLayout("gForce-gpu",Kt.GForceGPULayout);Kt.registerLayout("comboForce",Kt.ComboForceLayout);Kt.registerLayout("comboCombined",Kt.ComboCombinedLayout);Kt.registerLayout("forceAtlas2",Kt.ForceAtlas2Layout);var Cue=function(){function r(e,t){var n=e.toString(),a=new Blob(["importScripts('".concat(t,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(a))}return r}(),Tue=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function t(){var a={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function i(s){var u=s.data.type;return u===a.RUN||u===a.GPURUN}function o(s){var u=this,f=s.data.type;switch(f){case a.RUN:{var l=s.data,c=l.nodes,h=l.edges,d=l.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}var y;v.onLayoutEnd=function(){u.postMessage({type:a.END,nodes:c}),y==null||y.destroy()},y=new g(v),y.init({nodes:c,edges:h}),y.execute();break}case a.GPURUN:{var m=s.data,b=m.nodes,h=m.edges,w=m.layoutCfg,v=w===void 0?{}:w,x=m.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:a.ERROR,message:"layout ".concat(p," does not support GPU")});break}var E=new g(v);E.init({nodes:b,edges:h}),E.executeWithWorker(x,this);break}}}onmessage=function(u){i(u)&&o(u)}}var n=new Cue(t,e);return n},Is={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function Fg(r){"@babel/helpers - typeof";return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fg(r)}var O2=function(e){return setTimeout(e,16)},L2=function(e){return clearTimeout(e)},jc={requestAnimationFrame:function(e){var t=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||O2;return t(e)},cancelAnimationFrame:function(e){var t=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||L2;return t(e)}},Iue=["fruchterman","gForce"],kue=["force","grid","circular"],Nue=function(r){jt(e,r);function e(t){var n=r.call(this,t)||this;return n.graph=t,n.layoutCfg=t.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Tue(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(jc.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(jc.cancelAnimationFrame(t.requestId2),t.requestId2=null))},e.prototype.execLayoutMethod=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,p,h,d,v,p,g;return Gn(this,function(y){switch(y.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];u=t.type,t.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},u&&this.isGPU&&(lO(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Za.isForce(u)?(f=t.onTick,l=t.animate,c=l===void 0&&(u==="force"||u==="force2"),p=function(){f&&f(),(l||c)&&s.refreshPositions()},t.tick=p):(u==="comboForce"||u==="comboCombined")&&(t.comboTrees=s.get("comboTrees")),h=!1;try{d=new Kt.Layouts[u](t),this.layoutMethods[n]&&this.layoutMethods[n].destroy(),this.layoutMethods[n]=d}catch{console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),o()}return h=d.enableTick,h&&(v=t.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,t),Due(g,n),d.init(g),s.emit("beforesublayout",{type:u}),[4,d.execute()];case 1:return y.sent(),d.isCustomLayout&&t.onLayoutEnd&&t.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this.graph,u=n==null?void 0:n.type,n.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},Za.isForce(u)&&(f=n.onTick,l=n.animate,c=l===void 0&&(u==="force"||u==="force2"),h=function(){f==null||f(),(l||c)&&s.refreshPositions()},n.tick=h),d=this.filterLayoutData(this.data,n),t.init(d),t.updateCfg(n),s.emit("beforesublayout",{type:u}),[4,t.execute()];case 1:return v.sent(),t.isCustomLayout&&n.onLayoutEnd&&n.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(t){var n=this,a,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,u=o.hiddenNodes;if(!s)return!1;var f=i.get("width"),l=i.get("height"),c={};Object.assign(c,{width:f,height:l,center:[f/2,l/2]},this.layoutCfg),this.layoutCfg=c;var h=c.type,d=!1;(a=this.layoutMethods)===null||a===void 0||a.forEach(function(x){var E;return d=!!(!((E=x.nodes)===null||E===void 0)&&E.length)||d});var v=this.destoryLayoutMethods();i.emit("beforelayout");var p=Promise.resolve();d&&h&&(v==null?void 0:v.length)===1&&v[0]===h?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,u);g.then(),this.isGPU=D2(c,h);var y=c.onLayoutEnd,m=c.layoutEndFormatted,b=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return y&&y(s),this.refreshLayout(),b&&c.pipes?[4,this.adjustPipesBox(this.data,b)]:[3,2];case 1:x.sent(),this.refreshLayout(),x.label=2;case 2:return i.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var w=!1;return c.type?(w=!0,p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,x.sent()]}})})})):c.pipes&&(w=!0,c.pipes.forEach(function(x,E){p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(_){switch(_.label){case 0:return[4,this.execLayoutMethod(x,E)];case 1:return[2,_.sent()]}})})})})),w?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),t&&t()}).catch(function(x){console.warn("graph layout failed,",x)}):(i.refreshPositions(),t==null||t()),!1}},e.prototype.tweakInit=function(){var t=this,n=t.data,a=t.graph,i=n.nodes,o=n.edges;if(i!=null&&i.length){var s={};i.forEach(function(l){var c=l.x,h=l.y;!isNaN(c)&&!isNaN(h)&&(s[l.id]={x:c,y:h},l.mass=l.mass||2)}),o.forEach(function(l){var c=l.source,h=l.target,d=s[c],v=s[h];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[h]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var u=a.get("width"),f=a.get("height");i.forEach(function(l){var c=s[l.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};l.x=c.x,l.y=c.y})}},e.prototype.initWithPreset=function(t,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this,u=s.layoutCfg,f=s.data,l=u.preset,!(l!=null&&l.type)||!Kt.Layouts[l==null?void 0:l.type]?(n==null||n(),i(),[2,!1]):(c=D2(l,l.type),h=c?"".concat(l.type,"-gpu"):l.type,d=new Kt.Layouts[h](l),delete u.preset,d.init(f),[4,d.execute()]);case 1:return v.sent(),t==null||t(),i(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(t,n){var a=this,i=this,o=i.layoutCfg,s=i.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,s.emit("beforelayout");var l=Promise.resolve(),c=!1;if(o.type)c=!0,l=l.then(function(){return a.runWebworker(u,t,o)});else if(o.pipes){c=!0;for(var h=function(y){l=l.then(function(){return a.runWebworker(u,t,y)})},d=0,v=o.pipes;d'),l=a?a.backgroundColor:void 0,c=a?a.padding:void 0;c?Ot(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var h=o+c[0]+c[2],d=s+c[1]+c[3],v={container:f,height:h,width:d,quickHit:!0},p=u==="svg"?new bp(v):new Vu(v),g=this.get("group"),y=g.clone(),m=rr(y.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var b=(i.maxX+i.minX)/2,w=(i.maxY+i.minY)/2;m=P2(m,[["t",-b,-w],["t",s/2+c[3],o/2+c[0]]]),y.resetMatrix(),y.setMatrix(m),p.add(y);var x=p.get("el"),E="";n||(n="image/png"),setTimeout(function(){if(u==="svg"){var _=x.cloneNode(!0),S=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),A=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",S);A.replaceChild(_,A.documentElement);var M=new XMLSerializer().serializeToString(A);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(M))}else{var C=void 0,I=x.getContext("2d"),k=void 0;if(l){var O=typeof window<"u"?window.devicePixelRatio:1;try{C=I.getImageData(0,0,d*O,h*O),k=I.globalCompositeOperation,I.globalCompositeOperation="destination-over",I.fillStyle=l,I.fillRect(0,0,d,h)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}E=x.toDataURL(n),l&&(I.clearRect(0,0,d,h),I.putImageData(C,0,0),I.globalCompositeOperation=k)}t&&t(E)},16)},e.prototype.downloadFullImage=function(t,n,a){var i=this,o=this.get("group").getCanvasBBox(),s=o.height,u=o.width,f=this.get("renderer"),l=rg('
'),c=document.querySelector(".g6-graph-watermarker"),h=a?a.backgroundColor:void 0,d=a?a.padding:void 0;d?Ot(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=u+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},y=g.width,m=g.height;v=Math.ceil(v/m)*m,p=Math.ceil(p/y)*y}var b={container:l,height:v,width:p},w=f==="svg"?new bp(b):new Vu(b),x=this.get("group"),E=n7(x),_=rr(E.getMatrix());_||(_=[1,0,0,0,1,0,0,0,1]);var S=(o.maxX+o.minX)/2,A=(o.maxY+o.minY)/2;_=P2(_,[["t",-S,-A],["t",u/2+d[3],s/2+d[0]]]),E.resetMatrix(),E.setMatrix(_),w.add(E);var M=w.get("el");n||(n="image/png"),this.asyncToDataUrl(n,h,function(C){var I=document.createElement("a"),k=(t||"graph")+(f==="svg"?".svg":".".concat(n.split("/")[1]));i.dataURLToImage(C,f,I,k);var O=document.createEvent("MouseEvents");O.initEvent("click",!1,!1),I.dispatchEvent(O)},p,v,M)},e.prototype.downloadImage=function(t,n,a){var i=this,o=this;o.stopAnimate();var s=o.get("canvas"),u=s.getRenderer();n||(n="image/png");var f=(t||"graph")+(u==="svg"?".svg":".".concat(n.split("/")[1])),l=document.createElement("a");o.asyncToDataUrl(n,a,function(c){i.dataURLToImage(c,u,l,f);var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),l.dispatchEvent(h)})},e.prototype.dataURLToImage=function(t,n,a,i){if(!t||t==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&n!=="svg"){var o=t.split(","),s="";if(o&&o.length>0){var u=o[0].match(/:(.*?);/);u&&u.length>=2&&(s=u[1])}for(var f=atob(o[1]),l=f.length,c=new Uint8Array(l);l--;)c[l]=f.charCodeAt(l);var h=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,i):a.addEventListener("click",function(){a.download=i,a.href=window.URL.createObjectURL(h)})}else a.addEventListener("click",function(){a.download=i,a.href=t})},e.prototype.addPlugin=function(t){var n=this;t.destroyed||(n.get("plugins").push(t),t.initPlugin(n))},e.prototype.removePlugin=function(t){var n=this.get("plugins"),a=n.indexOf(t);a>=0&&(t.destroyPlugin(),n.splice(a,1))},e.prototype.setImageWaterMarker=function(t,n){t===void 0&&(t=wf.waterMarkerImage);var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},wf.imageWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.image;if(!t){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new Vu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.x,y=l.y;v.rotate(-p*Math.PI/180);var m=new Image;m.crossOrigin="anonymous",m.src=t,m.onload=function(){if(v.drawImage(m,g,y,l.width,l.height),v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var b=document.querySelector(".g6-graph-watermarker");b||(b=document.createElement("div"),b.className="g6-graph-watermarker"),b.className="g6-graph-watermarker",i.destroyed||(b.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),a.appendChild(b))}}},e.prototype.setTextWaterMarker=function(t,n){var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},wf.textWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.text;if(!(t!=null&&t.length)){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new Vu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.fill,y=l.fontFamily,m=l.fontSize,b=l.baseline,w=l.x,x=l.y,E=l.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(m,"px ").concat(y),v.fillStyle=g,v.textBaseline=b;for(var _=Ye(t)?[t]:t,S=_.length-1;S>=0;S--)v.fillText(_[S],w,x+S*E);if(v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||(A=document.createElement("div"),A.className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),a.appendChild(A)}},e.prototype.destroy=function(){var t,n,a,i;_e(this.get("plugins"),function(l){l.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var f=s.length-1;f>=0;f--){var l=s[f].getModel();e.indexOfChild(t.children||[],l.id)===-1&&(i.innerRemoveChild(l.id,{x:t.x,y:t.y},a),s.splice(f,1))}}var c,h;o.get("originAttrs")&&(c=o.get("originAttrs").x,h=o.get("originAttrs").y);var d=o.getModel();a&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,t.data)),(c!==t.x||h!==t.y)&&o.updatePosition({x:t.x,y:t.y})},e.prototype.innerRemoveChild=function(t,n,a){var i=this,o=i.findById(t);if(o)if(_e(o.get("children"),function(u){i.innerRemoveChild(u.getModel().id,n,a)}),a){var s=o.getModel();o.set("to",n),o.set("originAttrs",{x:s.x,y:s.y}),i.get("removeList").push(o)}else i.removeItem(o,!1)},e.prototype.changeData=function(t,n){n===void 0&&(n=!0);var a=this;this.getNodes().map(function(i){return a.clearItemStates(i)}),this.getEdges().map(function(i){return a.clearItemStates(i)}),n&&this.get("enabledStack")&&this.pushStack("changedata",{before:a.get("originData"),after:t||a.get("data")}),t?(a.data(t),a.render(!1)):a.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var n=this;n.updateLayout(t)},e.prototype.updateLayout=function(t,n,a,i){i===void 0&&(i=!0);var o=this;if(!t){console.warn("layout cannot be null");return}if(i&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:t}),o.set("layout",t),o.set("layoutMethod",o.getLayout()),o.layout(),n){var s=a;s||(n==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*u[0]+u[6],s.y=s.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY,v={x:(l+c)/2,y:(h+d)/2};n==="begin"&&(v.x=l,v.y=h),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var n=this;n.layout(t)},e.prototype.layout=function(t){var n=this,a=this,i=a.get("data"),o=a.get("layoutMethod"),s=a.get("layout"),u=i;if(s!=null&&s.excludeInvisibles){i=rr(a.get("data"));var f={};u0(i,function(h){var d=h.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=n.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(f[h.id]=f[h.id]||[],f[h.id].push({idx:v,child:d.splice(v,1)[0]}))}}),u=o?o(i,a.get("layout")):i,u0(u,function(h){var d=f[h.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,y=p.child;h.children.splice(g,0,y)}})}else u=o?o(i,a.get("layout")):i;var l=a.get("animate");if(a.emit("beforerefreshlayout",{data:i,layoutData:u}),a.emit("beforelayout"),a.innerUpdateChild(u,void 0,l),t){var c=a.get("viewController");c.fitView()}l?a.layoutAnimate(u):(a.refresh(),a.paint()),a.emit("afterrefreshlayout",{data:i,layoutData:u}),a.emit("afterlayout")},e.prototype.addChild=function(t,n,a){a===void 0&&(a=!0);var i=this;i.emit("beforeaddchild",{model:t,parent:n}),Ye(n)||(n=n.get("id"));var o=i.findDataById(n);if(o){o.children||(o.children=[]),o.children.push(t);var s=i.findById(n);s.refresh(),i.changeData(void 0,a)}},e.prototype.updateChildren=function(t,n,a){a===void 0&&(a=!0);var i=this,o=i.findById(n);if(!n||!o){console.warn("Update children failed! There is no node with id '".concat(n,"'"));return}var s=i.findDataById(n);s.children=t,o.refresh(),i.changeData(void 0,a)},e.prototype.updateChild=function(t,n,a){a===void 0&&(a=!0);var i=this;if(!n||!i.findById(n)){i.changeData(t,a);return}var o=i.findDataById(n),s=i.findById(t.id);if(o.children||(o.children=[]),!s)o.children.push(t);else{var u=e.indexOfChild(o.children,t.id);u>-1&&(o.children[u]=t)}var f=i.findById(n);f==null||f.refresh(),i.changeData(void 0,a)},e.prototype.removeChild=function(t,n){n===void 0&&(n=!0);var a=this,i=a.findById(t),o;if(i?o=i==null?void 0:i.get("parent"):o=a.getNodes().find(function(c){var h=c.getModel().children||[];return!!h.find(function(d){return d.id===t})}),o&&!o.destroyed){var s=o.get("id"),u=a.findDataById(s),f=u&&u.children||[],l=e.indexOfChild(f,t);f.splice(l,1),o.refresh()}a.changeData(void 0,n)},e.prototype.findDataById=function(t,n){var a=this;if(n||(n=a.get("data")),t===n.id)return n;var i=null;return _e(n.children||[],function(o){if(o.id===t)return i=o,!1;if(i=a.findDataById(t,o),i)return!1}),i},e.prototype.layoutAnimate=function(t,n){var a=this,i=this.get("animateCfg");a.emit("beforeanimate",{data:t}),a.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){u0(t,function(s){var u=a.findById(s.id);if(u){var f=u.get("originAttrs"),l=u.get("model");if(f||(f={x:l.x,y:l.y},u.set("originAttrs",f)),n){var c=n(u,o,f,t);u.set("model",Object.assign(l,c))}else l.x=f.x+(s.x-f.x)*o,l.y=f.y+(s.y-f.y)*o}return!0}),_e(a.get("removeList"),function(s){var u=s.getModel(),f=s.get("originAttrs"),l=s.get("to");u.x=f.x+(l.x-f.x)*o,u.y=f.y+(l.y-f.y)*o}),a.refreshPositions()},{duration:i.duration,easing:i.ease,callback:function(){_e(a.getNodes(),function(s){s.set("originAttrs",null)}),_e(a.get("removeList"),function(s){a.removeItem(s,!1)}),a.set("removeList",[]),i.callback&&i.callback(),a.emit("afteranimate",{data:t})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(t){t===void 0&&(t=!0);var n=this,a=n.get("data");if(!a||!gn(a)||!Object.keys(a).length)throw new Error("data must be defined first");n.clear(),t&&this.get("enabledStack")&&this.clearStack(),n.emit("beforerender"),n.layout(this.get("fitView")),n.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(t){r.prototype.data.call(this,t),this.set("originData",Rue(t))},e})(cO);ro("circle",{options:{size:Qe.defaultNode.size,style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=_r({},a,e.icon),s="".concat(this.type,"-keyShape"),u=t.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});t.shapeMap[s]=u;var f=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");h?t.shapeMap[d]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):t.shapeMap[d]=t.addShape("image",{attrs:P({x:-f/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,t),u},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints;if(n){var a=n||{},i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2;if(o){var v="link-point-left";t.shapeMap[v]=t.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";t.shapeMap[p]=t.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(i){var g="link-point-top";t.shapeMap[g]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-d,r:f/2||l||5}),className:g,name:g,isAnchorPoint:!0})}if(u){var y="link-point-bottom";t.shapeMap[y]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:d,r:f/2||l||5}),className:y,name:y,isAnchorPoint:!0})}}},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=_r({},t,n),i=this.getSize(e),o=i[0]/2,s=P({x:0,y:0,r:o},a);return s},update:function(e,t,n){var a=t.getContainer(),i=this.getSize(e),o=P({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(i[0])&&(o.r=i[0]/2),this.updateShape(e,t,o,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("rect",{options:{size:[100,30],style:{radius:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:P({},Qe.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,t){var n=this.getShapeStyle(e),a=t.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return t.shapeMap["".concat(this.type,"-keyShape")]=a,this.drawLinkPoints(e,t),a},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s=t.get("keyShape");e.size||(o[0]=s.attr("width")||i.width,o[1]=s.attr("height")||i.height);var u={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},f=Et({},i,s.attr(),u);f=Et(f,e.style),this.updateShape(e,t,f,!1,n),this.updateLinkPoints(e,a)}},"single-node");ro("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});t.shapeMap["ellipse-keyShape"]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2,v=h[1]/2;o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=i[0]/2,s=i[1]/2,u=P({x:0,y:0,rx:o,ry:s},a);return u},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("diamond",{options:{size:[80,80],style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var t=this.getSize(e),n=t[0],a=t[1],i=[["M",0,-a/2],["L",n/2,0],["L",0,a/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("triangle",{options:{size:40,direction:"up",style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.icon,i=a===void 0?{}:a,o=n.direction,s=this.getShapeStyle(e),u=e.direction||o,f=t.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=f;var l=i.width,c=i.height,h=i.show,d=i.offset,v=i.text;if(h)if(v)t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,g=-c/2;(u==="up"||u==="down")&&(g+=d),(u==="left"||u==="right")&&(p+=d),t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,t),f},drawLinkPoints:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.linkPoints,i=a===void 0?{}:a,o=n.direction,s=e.direction||o,u=i.top,f=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,v=Kr(i,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(f){var y=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?y=[-b,m]:s==="down"?y=[-b,-m]:s==="left"&&(y=[-b,b-m]),y&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},v),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var w=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?w=[b,m]:s==="down"?w=[b,-m]:s==="right"&&(w=[b,b-m]),w&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},v),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var x=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?x=[b-m,-m]:s==="left"?x=[b,-m]:s==="right"&&(x=[-b,-m]),x&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},v),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var E=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="down"?E=[-b+m,m]:s==="left"?E=[b,m]:s==="right"&&(E=[-b,m]),E&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},v),{x:E[0],y:E[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var t=(this.mergeStyle||this.getOptions(e)).direction,n=e.direction||t,a=this.getSize(e),i=a[0],o=i*Math.sin(1/3*Math.PI),s=i*Math.sin(1/3*Math.PI),u=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return n==="down"?u=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:n==="left"?u=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:n==="right"&&(u=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),u},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,t){var n=this.getOptions({}),a=n.linkPoints,i=n.direction,o=e.direction||i,s=t.shapeMap["link-point-left"]||t.find(function(L){return L.get("className")==="link-point-left"}),u=t.shapeMap["link-point-right"]||t.find(function(L){return L.get("className")==="link-point-right"}),f=t.shapeMap["link-point-top"]||t.find(function(L){return L.get("className")==="link-point-top"}),l=t.shapeMap["link-point-bottom"]||t.find(function(L){return L.get("className")==="link-point-bottom"}),c=a,h=s||u||f||l;h&&(c=h.attr());var d=Et({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,y=d.size/2;y||(y=d.r);var m=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},b=m.left,w=m.right,x=m.top,E=m.bottom,_=this.getSize(e),S=_[0],A={r:y,fill:v,stroke:p,lineWidth:g},M=null,C=S*Math.sin(1/3*Math.PI),I=S*Math.sin(1/3*Math.PI);o==="up"?M=[-I,C]:o==="down"?M=[-I,-C]:o==="left"&&(M=[-I,I-C]),M&&(s?!b&&b!==void 0?(s.remove(),delete t.shapeMap["link-point-left"]):s.attr(P(P({},A),{x:M[0],y:M[1]})):b&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;o==="up"?k=[I,C]:o==="down"?k=[I,-C]:o==="right"&&(k=[I,I-C]),k&&(u?!w&&w!==void 0?(u.remove(),delete t.shapeMap["link-point-right"]):u.attr(P(P({},A),{x:k[0],y:k[1]})):w&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;o==="up"?O=[I-C,-C]:o==="left"?O=[I,-C]:o==="right"&&(O=[-I,-C]),O&&(f?!x&&x!==void 0?(f.remove(),delete t.shapeMap["link-point-top"]):f.attr(P(P({},A),{x:O[0],y:O[1]})):x&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},A),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var B=null;o==="down"?B=[-I+C,C]:o==="left"?B=[I,C]:o==="right"&&(B=[-I,C]),B&&(l?!E&&E!==void 0?(l.remove(),delete t.shapeMap["link-point-bottom"]):l.attr(P(P({},A),{x:B[0],y:B[1]})):E&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},A),{x:B[0],y:B[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");ro("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Qe.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Qe.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Qe.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).preRect,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=this.getSize(e),s=o[0],u=o[1],f=t.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=f;var l=a.show,c=Kr(a,["show"]);return l&&(t.shapeMap["pre-rect"]=t.addShape("rect",{attrs:P({x:-s/2,y:-u/2,height:u},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,t),this.drawStateIcon(e,t),this.drawLinkPoints(e,t),f},drawLogoIcon:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).logoIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?t.shapeMap["rect-logo-icon"]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):t.shapeMap["rect-logo-icon"]=t.addShape("image",{attrs:P(P({},d),{x:f||-o/2+s+c,y:l||-u/2,width:s,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).stateIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?t.shapeMap["rect-state-icon"]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):t.shapeMap["rect-state-icon"]=t.addShape("image",{attrs:P(P({},d),{x:f||o/2-s+c,y:l||-u/2,width:s,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,t){var n=this.getOptions(e),a=n.labelCfg,i=a===void 0?{}:a,o=n.logoIcon,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=null,d=s.show,v=s.width,p=-c/2+i.offset;d&&(p=-c/2+v+i.offset);var g=i.style,y=f.style,m=f.paddingTop;return Ye(e.description)?(h=t.addShape("text",{attrs:P(P({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=h,t.shapeMap["rect-description"]=t.addShape("text",{attrs:P(P({},y),{x:p,y:17+(m||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=t.addShape("text",{attrs:P(P({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),t.shapeMap["text-shape"]=h),h},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,t){var n=this.mergeStyle||this.getOptions(e),a=n.style,i=a===void 0?{}:a,o=n.labelCfg,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=l[1],d=t.get("keyShape");d.attr(P(P({},i),{x:-c/2,y:-h/2,width:c,height:h}));var v=t.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(qe){return qe.get("className")==="rect-logo-icon"}),g=p?p.attr():{},y=Et({},g,e.logoIcon),m=y.width;m===void 0&&(m=this.options.logoIcon.width);var b=e.logoIcon?e.logoIcon.show:void 0,w=s.offset,x=-c/2+m+w;!b&&b!==void 0&&(x=-c/2+w);var E=v.shapeMap["node-label"]||v.find(function(qe){return qe.get("className")==="node-label"}),_=v.shapeMap["rect-description"]||v.find(function(qe){return qe.get("className")==="rect-description"});if(e.label)if(!E)v.shapeMap["node-label"]=v.addShape("text",{attrs:P(P({},s.style),{x,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var S=e.labelCfg?e.labelCfg.style:{},A=Et({},E.attr(),S);e.label&&(A.text=e.label),A.x=x,Ye(e.description)&&(A.y=-5),_&&(_.resetMatrix(),_.attr({x})),E.resetMatrix(),E.attr(A)}if(Ye(e.description)){var M=f.paddingTop;if(!_)v.shapeMap["rect-description"]=v.addShape("text",{attrs:P(P({},f.style),{x,y:17+(M||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var S=e.descriptionCfg?e.descriptionCfg.style:{},C=Et({},_.attr(),S);Ye(e.description)&&(C.text=e.description),C.x=x,_.resetMatrix(),_.attr(P(P({},C),{y:17+(M||0)}))}}var I=v.shapeMap["pre-rect"]||v.find(function(qe){return qe.get("className")==="pre-rect"});if(I&&!I.destroyed){var k=Et({},I.attr(),e.preRect);I.attr(P(P({},k),{x:-c/2,y:-h/2,height:h}))}if(p&&!p.destroyed)if(!b&&b!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var O=y.width,B=y.height,L=y.x,z=y.y,X=y.offset,R=Kr(y,["width","height","x","y","offset"]);p.attr(P(P({},R),{x:L||-c/2+O+X,y:z||-B/2,width:O,height:B}))}else b&&this.drawLogoIcon(e,v);var V=v.shapeMap["rect-state-icon"]||v.find(function(qe){return qe.get("className")==="rect-state-icon"}),he=V?V.attr():{},ce=Et({},he,e.stateIcon);if(V){!ce.show&&ce.show!==void 0&&(V.remove(),delete v.shapeMap["rect-state-icon"]);var le=ce.width,B=ce.height,L=ce.x,z=ce.y,ie=ce.offset,Ie=Kr(ce,["width","height","x","y","offset"]);V.attr(P(P({},Ie),{x:L||c/2-le+ie,y:z||-B/2,width:le,height:B}))}else ce.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,t){return t==="move"?e:_r({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");ro("star",{options:{size:60,style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=t.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});t.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?t.shapeMap["".concat(this.type,"-icon")]=t.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):t.shapeMap["".concat(this.type,"-icon")]=t.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,t),o},drawLinkPoints:function(e,t){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.leftBottom,f=a.rightBottom,l=a.size,c=a.r,h=Kr(a,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(u){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;t.shapeMap["link-point-bottom"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var t=this.getSize(e),n=t[0],a=n*3/8,i=e.innerR||a;return Za.getStarPath(n,i)},getShapeStyle:function(e){var t=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},t,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,t,n){var a=t.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=t.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,t,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,t){var n=this.getOptions({}).linkPoints,a=t.shapeMap["link-point-left"]||t.find(function(C){return C.get("className")==="link-point-left"}),i=t.shapeMap["link-point-right"]||t.find(function(C){return C.get("className")==="link-point-right"}),o=t.shapeMap["link-point-top"]||t.find(function(C){return C.get("className")==="link-point-top"}),s=t.shapeMap["link-point-left-bottom"]||t.find(function(C){return C.get("className")==="link-point-left-bottom"}),u=t.shapeMap["link-point-left-bottom"]||t.find(function(C){return C.get("className")==="link-point-right-bottom"}),f=n,l=a||i||o||s||u;l&&(f=l.attr());var c=Et({},f,e.linkPoints),h=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=g.left,m=g.right,b=g.top,w=g.leftBottom,x=g.rightBottom,E=this.getSize(e),_=E[0],S={r:p,fill:h,stroke:d,lineWidth:v},A=Math.cos((18+72*0)/180*Math.PI)*_,M=Math.sin((18+72*0)/180*Math.PI)*_;i?!m&&m!==void 0?(i.remove(),delete t.shapeMap["link-point-right"]):i.attr(P(P({},S),{x:A,y:-M})):m&&(t.shapeMap["link-point-right"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos((18+72*1)/180*Math.PI)*_,M=Math.sin((18+72*1)/180*Math.PI)*_,o?!b&&b!==void 0?(o.remove(),delete t.shapeMap["link-point-top"]):o.attr(P(P({},S),{x:A,y:-M})):b&&(t.shapeMap["link-point-top"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos((18+72*2)/180*Math.PI)*_,M=Math.sin((18+72*2)/180*Math.PI)*_,a?!y&&y!==void 0?(a.remove(),delete t.shapeMap["link-point-left"]):a.attr(P(P({},S),{x:A,y:-M})):y&&(t.shapeMap["link-point-left"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos((18+72*3)/180*Math.PI)*_,M=Math.sin((18+72*3)/180*Math.PI)*_,s?!w&&w!==void 0?(s.remove(),delete t.shapeMap["link-point-left-bottom"]):s.attr(P(P({},S),{x:A,y:-M})):w&&(t.shapeMap["link-point-left-bottom"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos((18+72*4)/180*Math.PI)*_,M=Math.sin((18+72*4)/180*Math.PI)*_,u?!x&&x!==void 0?(u.remove(),delete t.shapeMap["link-point-right-bottom"]):u.attr(P(P({},S),{x:A,y:-M})):x&&(t.shapeMap["link-point-right-bottom"]=t.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var R2=Za.defaultSubjectColors,Sf="fan-shape-",dO=function(e,t){var n=0,a=[];return Object.keys(e).forEach(function(i){var o=+e[i];isNaN(o)||(a.push({key:i,value:o,color:t[i]}),n+=o)}),{totalValue:n,configs:a}},vO=function(e){var t=e.attr("r"),n=.6*t,a=(t+n)/2,i=t-n;return{lineWidth:i,arcR:a}},Gg=function(e,t){var n=t.arcR,a=t.arcBegin,i=t.beginAngle,o=t.config,s=t.fanIndex,u=t.lineWidth,f=t.totalValue,l=t.drawWhole,c=l===void 0?!1:l,h=t.updateShape,d=h===void 0?void 0:h,v=o.value/f;if(v<.001)return{beginAngle:i,arcBegin:a,shape:void 0,shouldEnd:!1};var p,g,y;if(c||v>.999)p=[n,1e-4],y=1;else{var m=v*Math.PI*2;g=i+m,p=[n*Math.cos(g),-n*Math.sin(g)],y=m>Math.PI?1:0}var b={path:[["M",a[0],a[1]],["A",n,n,0,y,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||R2[s%R2.length],lineWidth:u};return d?d.attr(b):e.shapeMap["".concat(Sf).concat(s)]=e.addShape("path",{attrs:b,name:"".concat(Sf).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(Sf).concat(s)],shouldEnd:c||v>.999}},Bue=function(e,t,n){var a=e.donutAttrs,i=a===void 0?{}:a,o=e.donutColorMap,s=o===void 0?{}:o,u=Object.keys(i).length;if(i&&u>1){var f=dO(i,s),l=f.configs,c=f.totalValue;if(c){var h=vO(n),d=h.lineWidth,v=h.arcR,p=[v,0],g=0;if(u===1){Gg(t,{arcR:v,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var y=0;y=0;i--){var o=e[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,t.push(o))}return t},pO=function(e){return a1(e)},od=function(e,t){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}:e},jue=function(e,t){var n=Math.abs(e.x-t.centerX),a=Math.abs(e.y-t.centerY);return n===0&&a===0?0:n/t.width>a/t.height},zg=function(e,t,n){var a=jue(t,e);if(a===0){var i=e.centerX,o=e.centerY;return n.yt.x?i=e.maxX:n.xe.centerX?e.maxX:e.minX,y:t.y}:{x:t.x,y:t.y>e.centerY?e.maxY:e.minY}},F2=function(e,t){var n=Math.min(e.minX,t.minX),a=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY);return{centerX:(n+i)/2,centerY:(a+o)/2,minX:n,minY:a,maxX:i,maxY:o,height:o-a,width:i-n}},jg=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},$c=function(e,t){var n=e.x,a=e.y;return nt.maxX||at.maxY},Uue=function(e,t){return te.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},$ue=function(e,t){return te.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},Xue=function(e,t){return Uue(e,t.x).concat($ue(e,t.y))},Wf=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Wue=function(e,t){var n=-2,a=0;return t.forEach(function(i){i&&(e.x===i.x&&(a+=n),e.y===i.y&&(a+=n))}),a},B2=function(e,t,n,a,i){return Wf(e,t)+Wf(e,n)+Wue(e,[t,n,a,i])},gO=function(e,t,n,a,i){i===void 0&&(i=0),e.unshift(t[a]),n[a]&&n[a]!==a&&i<=100&&gO(e,t,n,n[a],i+1)},Xc=function(e,t,n,a){var i=n.x-e.x,o=n.y-e.y,s=a.x-e.x,u=a.y-e.y,f=n.x-t.x,l=n.y-t.y,c=a.x-t.x,h=a.y-t.y,d=i*u-o*s,v=f*h-l*c,p=i*l-o*f,g=s*h-u*c;return d*v<=0&&p*g<=0},Ug=function(e,t,n){if(n.width||n.height){var a=jg(n),i=a[0],o=a[1],s=a[2],u=a[3];return Xc(e,t,i,o)||Xc(e,t,i,u)||Xc(e,t,o,s)||Xc(e,t,s,u)}return!1},Vue=function(e,t,n,a){var i=[];return e.forEach(function(o){if(o!==t&&(o.x===t.x||o.y===t.y)){if(Ug(o,t,n)||Ug(o,t,a))return;i.push(o)}}),a1(i)},yO=function(){function r(){this.arr=[],this.map={},this.arr=[],this.map={}}return r.prototype._innerAdd=function(e,t){for(var n=[0,t-1];n[1]-n[0]>1;){var a=Math.floor((n[0]+n[1])/2);if(this.arr[a].value>e.value)n[1]=a;else if(this.arr[a].value=0;t--)this.map[this.arr[t].id]?e=this.arr[t].id:this.arr.splice(t,1);return e},r.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},r.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},r}(),Yue=function(e,t,n,a,i,o,s){var u,f=[],l=(u={},u[t.id]=t,u),c={},h={},d={};h[t.id]=0,d[t.id]=B2(t,n,t);var v=new yO;v.add({id:t.id,value:d[t.id]});var p={};e.forEach(function(x){p[x.id]=x});for(var g;Object.keys(l).length;){var y=v.minId(!1);if(y)g=l[y];else break;if(g===n){var m=[];return gO(m,p,c,n.id),m}delete l[g.id],v.remove(g.id),f.push(g);var b=Vue(e,g,a,i),w=function(E){E.forEach(function(_){if(f.indexOf(_)===-1){var S=_.id;l[S]||(l[S]=_);var A=d[g.id]+Wf(g,_);if(h[S]&&A>=h[S]){v.add({id:S,value:d[S]});return}c[S]=g.id,h[S]=A,d[S]=h[S]+B2(_,n,t,o,s),v.add({id:S,value:d[S]})}})};w(b)}return[t,n]},que=function(e,t,n){return!(e.x===t.x&&t.x===n.x||e.y===t.y&&t.y===n.y)},Hue=function(e,t,n,a){var i=Wf(e,t),o=Wf(n,t);i=0;o--){var s=e[o];if(s.x===n.x?a.push(s):(a=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),a.length>2){var u=e.indexOf(a[1]);u>-1&&e.splice(u,1);continue}if(i.length>2){var u=e.indexOf(i[1]);u>-1&&e.splice(u,1)}}return e},Kue=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},Que=function(e,t,n,a,i){return pO(mO(e,t,n,a,i.offset))},Jue={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Kue,fallbackRoute:Que},vi=function(e,t){var n=Math.round(Math.abs(e/t)),a=e<0?-1:1;return n<0?0:a*n},efe=function(e,t,n){var a={};return e.forEach(function(i){if(i)for(var o=od(i.getBBox(),n),s=vi(o.minX,t);s<=vi(o.maxX,t);s+=1)for(var u=vi(o.minY,t);u<=vi(o.maxY,t);u+=1)a["".concat(s,"|||").concat(u)]=!0}),a},f0=function(e,t){var n=t.x-e.x,a=t.y-e.y;return n||a?Math.atan2(a,n):0},z2=function(e,t){var n=Math.abs(e-t);return n>Math.PI?2*Math.PI-n:n},j2=function(e,t,n){for(var a=1/0,i=0,o=t.length;if.minX&&t.xf.minY&&t.y0&&E>0;){var B=b.minId((E+1)%30===0);if(B)_=v[B];else break;if(O["".concat(_.x,"|||").concat(_.y)])return tfe(_,g,l,t,e,c,u);delete v[_.id],b.remove(_.id),p[_.id]=!0;for(var w=0;wo.maxAllowedDirectionChange)&&!f[L])){v[L]||(v[L]=A);var z=s[I];M=o.distFunc(_,A)+(isNaN(z)?u:z),C=y[_.id]+M;var X=y[L];X&&C>=X||(g[L]=_,y[L]=C,m[L]=C+j2(A,d,o.distFunc),b.add({id:L,value:m[L]}))}}E-=1}return o.fallbackRoute(e,t,n,a,o)};_U("polyline",{options:{color:Qe.defaultEdge.color,size:Qe.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Qe.defaultEdge.style.stroke,lineAppendWidth:Qe.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Qe.edgeLabel.style.fill,fontSize:Qe.edgeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:P({},Qe.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,t){var n=this.getShapeStyle(e);n.radius===0&&delete n.radius;var a=t.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return t.shapeMap["edge-shape"]=a,a},getShapeStyle:function(e){var t=this.options.style,n={stroke:e.color},a=Et({},t,n,e.style);e=this.getPathPoints(e),this.radius=a.radius,this.offset=a.offset;var i=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),u=[i];s&&(u=u.concat(s)),u.push(o);var f=e.sourceNode,l=e.targetNode,c=a.radius,h=this.options.routeCfg,d=Et({},h,e.routeCfg);d.offset=a.offset;var v=this.getPath(u,f,l,c,d,!s);(bt(v)&&v.length<=1||Ye(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=Et({},Qe.defaultEdge.style,a,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,t){var n=t.getContainer();if(t.isVisible()){var a={stroke:e.color},i=n.shapeMap["edge-shape"]||n.find(function(w){return w.get("className")==="edge-shape"})||t.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,u=e.endPoint,f=this.getControlPoints(e),l=[s];f&&(l=l.concat(f)),l.push(u);var c=i.attr(),h=Et({},a,c,e.style),d=e.sourceNode,v=e.targetNode,p=h.radius,g=this.options.routeCfg,y=Et({},g,e.routeCfg);y.offset=h.offset;var m=this.getPath(l,d,v,p,y,!f);(bt(m)&&m.length<=1||Ye(m)&&m.indexOf("L")===-1)&&(m="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(m="M0 0, L0 0"),c.endArrow&&h.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&h.startArrow===!1&&(e.style.startArrow={path:""});var b=Et(a,i.attr(),{lineWidth:o,path:m},e.style);i&&i.attr(b)}},getPath:function(e,t,n,a,i,o){var s=i.offset,u=i.obstacles,f=i.simple;if(!s||e.length>2||o===!1){if(a)return G2(e,a);var l=[];return _e(e,function(v,p){p===0?l.push(["M",v.x,v.y]):l.push(["L",v.x,v.y])}),l}f!==!1&&!(u!=null&&u.length)&&(f=!0);var c=f?mO(e[e.length-1],e[0],n,t,s):rfe(e[0],e[e.length-1],t,n,i);if(!c||!c.length)return"M0 0, L0 0";if(a){var h=G2(c,a);return h}c=Zue(c);var d=Za.pointsToPolygon(c);return d}},"single-edge");var $2=so.cloneEvent,X2=so.isNaN,W2=Math.abs,nfe=10,afe=["shift","ctrl","alt","control"];const ife={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var t=this.origin,n=+e.clientX,a=+e.clientY;if(!(X2(n)||X2(a))){var i=n-t.x,o=a-t.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(i=0),this.origin={x:n,y:a};var s=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l=s*l,c=u*c),(f.minX<=s+l&&f.minX+i>s+l||f.maxX+l>=0&&f.maxX+l+i<0)&&(i=0),(f.minY<=u+c&&f.minY+o>u+c||f.maxY+c>=0&&f.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(e){var t=this,n=e.originalEvent.touches,a=n[0],i=n[1];a&&i||(e.preventDefault(),this.mousedown=!0,t.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){this.mousedown&&(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this,n=e.originalEvent;if(!(n&&e.name!=="touchstart"&&n.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&this.shouldBegin(e,this)&&!t.keydown&&this.allowDrag(e)){if(t.origin={x:e.clientX,y:e.clientY},t.dragging=!1,this.enableOptimize){for(var a=this.graph,i=a.getEdges(),o=0,s=i.length;ou)for(var d=a.getNodes(),v=0,p=d.length;v-1?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var t,n,a=e.target,i=a&&a.isCanvas&&a.isCanvas();if(Vf(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(gn(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,u=o.edge,f=o.combo,l=(n=(t=e.item)===null||t===void 0?void 0:t.getType)===null||n===void 0?void 0:n.call(t);if(!s&&l==="node"||!u&&l==="edge"||!f&&l==="combo")return!1}return!0}},ofe={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var t=e.getType();return t==="combo"},onTouchStart:function(e){if(e.item){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,t.onDragStart(e)}},onTouchMove:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i){t.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var t,n;if(((n=(t=e.item)===null||t===void 0?void 0:t.getType)===null||n===void 0?void 0:n.call(t))!=="node"){this.onDragEnd();return}this.mousedown&&(this.dragstart?this.onDrag(P(P({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var t=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(P(P({},e),this.mousedown),this)){var n=this.mousedown,a=n.item,i=n.target;if(!(!a||a.destroyed||a.hasLocked())){var o=a.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(a),i){var s=i.get("isAnchorPoint");if(s)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),l=a.get("id"),c=f.filter(function(d){var v=d.get("id");return l===v});if(c.length===0?this.targets.push(a):f.length>1?f.forEach(function(d){var v=d.hasLocked();v||t.targets.push(d)}):this.targets.push(a),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,y=v.id;h.push({x:p,y:g,id:y})}),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){p.isVisible()&&(t.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var t=this;if(!(!this.mousedown||!this.origin)&&this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(a){t.update(a,e);var i=a.getModel().comboId;i&&(n[i]=t.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var t=this,n;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(n=this.cachedCaptureItems)===null||n===void 0||n.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(u){t.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var a=this.graph;if(a.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){i.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),u=s.x,f=s.y,l=s.id;i.after.nodes.push({x:u,y:f,id:l})}),a.pushStack("update",rr(i))}a.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var t=e.item;if(this.currentShouldEnd=this.shouldEnd(e,t,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(t))){var n=this.graph;if(this.comboActiveState&&n.setItemState(t,this.comboActiveState,!1),this.targetCombo=t,this.onlyChangeComboSize)n.updateCombos();else{var a=t.getModel();this.targets.map(function(i){var o=i.getModel();o.comboId!==a.id&&n.updateComboTree(i,a.id)}),n.updateCombo(t)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var t=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(n){var a=n.getModel();a.comboId&&t.updateComboTree(n)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var t=this,n=e.item,a=t.graph,i=n.getModel().comboId,o=i?a.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var s=a.findById(i);t.comboActiveState&&a.setItemState(s,t.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();i!==f.comboId&&a.updateComboTree(u,i)}),a.updateCombo(s)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&a.updateComboTree(u)});a.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(e){var t=e.item;if(this.validationCombo(t)){var n=this.graph;this.comboActiveState&&n.setItemState(t,this.comboActiveState,!0)}},onDragLeave:function(e){var t=e.item;if(this.validationCombo(t)){var n=this.graph;this.comboActiveState&&n.setItemState(t,this.comboActiveState,!1)}},updatePositions:function(e,t){var n=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):t||this.targets.map(function(a){return n.update(a,e)}):this.targets.map(function(a){return n.update(a,e,t)}))},update:function(e,t,n){var a=this.origin,i=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var s=t.x-a.x+this.point[o].x,u=t.y-a.y+this.point[o].y;n&&(s+=a.x-t.x,u+=a.y-t.y);var f={x:s,y:u};this.get("updateEdge")?this.graph.updateItem(e,f,!1):e.updatePosition(f)},debounceUpdate:Hg(function(r){var e=r.targets,t=r.graph,n=r.point,a=r.origin,i=r.evt,o=r.updateEdge,s=r.onlyChangeComboSize,u=r.updateParentCombos;e.map(function(f){var l=f.get("model"),c=f.get("id");n[c]||(n[c]={x:l.x||0,y:l.y||0});var h=i.x-a.x+n[c].x,d=i.y-a.y+n[c].y,v={x:h,y:d};o?t.updateItem(f,v,!1):f.updatePosition(v)}),s&&u(t,e)},50,!0),updateDelegate:function(e){var t=this.graph;if(this.delegateRect){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:h,y:d})}else{var n=t.get("group"),a=_r({},wf.delegateStyle,this.delegateStyle),i=this.calculationGroupPosition(e),o=i.x,s=i.y,u=i.width,f=i.height,l=i.minX,c=i.minY;this.originPoint={x:o,y:s,width:u,height:f,minX:l,minY:c},this.delegateRect=n.addShape("rect",{attrs:P({width:u,height:f,x:o,y:s},a),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var t=this.targets;t.length===0&&t.push(e.item);for(var n=1/0,a=-1/0,i=1/0,o=-1/0,s=0;sa&&(a=h),d>o&&(o=d)}var v=Math.floor(n),p=Math.floor(i),g=Math.ceil(a)-Math.floor(n),y=Math.ceil(o)-Math.floor(i);return{x:v,y:p,width:g,height:y,minX:n,minY:i}},updateParentCombos:function(e,t){var n=e||this.graph,a=t||this.targets,i={};a==null||a.forEach(function(o){var s=o.getModel().comboId;s&&(i[s]=n.findById(s))}),Object.values(i).forEach(function(o){o&&n.updateCombo(o)})}};var Wc=null;const sfe={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.setAllItemStates(e)},clearOnTouchStart:function(e){var t=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}t.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var t=this,n=this.shouldClearStatusOnSecond;n&&(Wc=null),this.timer=setTimeout(function(){t.throttleClearActiveState(e,t)},50)},throttleSetAllItemStates:xh(function(r,e){var t=r.item,n=e.graph;if(!(!n||n.destroyed)&&(e.item=t,!!e.shouldUpdate(r.item,{event:r,action:"activate"},e))){var a=e.shouldClearStatusOnSecond,i=t.getModel().id;if(Wc===i&&a){e.throttleClearActiveState(r,e),Wc=null;return}for(var o=e.activeState,s=e.inactiveState,u=n.getNodes(),f=n.getCombos(),l=n.getEdges(),c=n.get("vedges"),h=u.length,d=f.length,v=l.length,p=c.length,g=e.inactiveItems||{},y=e.activeItems||{},m=0;m-1||(this.trigger=q2,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var t=e.item,n=this.brush,a=this.selectOnCombo,i=(t==null?void 0:t.getType())==="combo";i&&!a||!i&&t||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||this.updateBrush(e))},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,t=e.graph,n=e.selectedState,a=t.findAllByState("node",n),i=t.findAllByState("edge",n),o=t.findAllByState("combo",n);a.forEach(function(s){return t.setItemState(s,n,!1)}),i.forEach(function(s){return t.setItemState(s,n,!1)}),o.forEach(function(s){return t.setItemState(s,n,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,t,n,a,i){var o=e.getBBox();return o.centerX>=t&&o.centerX<=n&&o.centerY>=a&&o.centerY<=i},getSelectedNodes:function(e){var t=this,n=this,a=n.graph,i=n.originPoint,o=n.shouldUpdate,s=n.isBBoxCenterInRect,u=this.selectedState,f={x:e.x,y:e.y},l=a.getPointByCanvas(i.x,i.y),c=Vc(f.x,l.x),h=V2(f.x,l.x),d=Vc(f.y,l.y),v=V2(f.y,l.y),p=[],g=[];a.getNodes().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",t)){p.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}});var y=[];this.includeEdges&&p.forEach(function(b){var w=b.getOutEdges();w.forEach(function(x){if(x.isVisible()){var E=x.getModel(),_=E.source,S=E.target;g.includes(_)&&g.includes(S)&&o(x,"select",t)&&(y.push(x),a.setItemState(x,t.selectedState,!0))}})});var m=[];this.includeCombos&&a.getCombos().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",t)){m.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}}),this.selectedEdges=y,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,y,m),a.emit("nodeselectchange",{selectedItems:{nodes:p,edges:y,combos:m},select:!0})},createBrush:function(){var e=this,t=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(e){var t=this.originPoint;this.brush.attr({width:Y2(e.canvasX-t.x),height:Y2(e.canvasY-t.y),x:Vc(e.canvasX,t.x),y:Vc(e.canvasY,t.y)})},onKeyDown:function(e){var t=e.key;if(t){var n=this.trigger.toLowerCase(),a=t.toLowerCase();a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var H2="shift",lfe=["shift","ctrl","alt","control"];const cfe={getDefaultCfg:function(){return{multiple:!0,trigger:H2,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return lfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=H2,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var t=this,n=e.item;if(!(!n||n.destroyed)){var a=n.getType(),i=t.graph,o=t.keydown,s=t.multiple,u=t.shouldUpdate,f=t.shouldBegin;if(f(e,t)){if(!o||!s){var l=i.findAllByState("node",t.selectedState).concat(i.findAllByState("edge",t.selectedState)).concat(i.findAllByState("combo",t.selectedState));_e(l,function(p){p!==n&&i.setItemState(p,t.selectedState,!1)})}var c=function(){switch(a){case"node":return t.selectNode;case"edge":return t.selectEdge;case"combo":return t.selectCombo;default:return!1}}();if(!c){var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:h,edges:d,combos:v},select:!1});return}if(n.hasState(t.selectedState)){u(e,t)&&i.setItemState(n,t.selectedState,!1);var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!1})}else{u(e,t)&&i.setItemState(n,t.selectedState,!0);var h=i.findAllByState("node",t.selectedState),d=i.findAllByState("edge",t.selectedState),v=i.findAllByState("combo",t.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var t=this,n=this,a=n.graph,i=n.shouldBegin;if(i(e,this)){var o=a.findAllByState("node",this.selectedState);_e(o,function(f){a.setItemState(f,t.selectedState,!1)});var s=a.findAllByState("edge",this.selectedState);_e(s,function(f){a.setItemState(f,t.selectedState,!1)});var u=a.findAllByState("combo",this.selectedState);_e(u,function(f){a.setItemState(f,t.selectedState,!1)}),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var t=this,n=e.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||n.toLowerCase()==="control"?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var hfe=eo,Yc=.05;const dfe={getDefaultCfg:function(){return this.isFireFox=fO()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var t=e.originalEvent.touches,n=t[0],a=t[1];e.preventDefault(),a&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,a&&(this.endPoint={pageX:a.pageX,pageY:a.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(this.moveable){e.preventDefault();var t=e.originalEvent.touches,n=t[0],a=t[1];if(a){this.endPoint||(this.endPoint={pageX:a.pageX,pageY:a.pageY});var i=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=i({x:n.pageX,y:n.pageY},{x:a.pageX,y:a.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>f||s0||e.wheelDelta<0?l=1-Yc*u:l=1/(1-Yc*u):e.wheelDelta<0?l=1-Yc*u:l=1/(1-Yc*u),c=f*l;var h=this.get("minZoom")||a.get("minZoom"),d=this.get("maxZoom")||a.get("maxZoom");c>d?c=d:ca/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),v="".concat(c,"px");Yu(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var t=e.get("el");t.style.position="relative";var n=rg('
'));return t.parentNode.appendChild(n),Yu(n,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},vfe=P({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bO),pfe=P({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: ".concat(t.source," target: ").concat(t.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bO);var Z2="click",gfe=["click","dblclick"];const yfe={getDefaultCfg:function(){return{trigger:Z2,onChange:function(){}}},getEvents:function(){var e,t;return gfe.includes(this.trigger)?t=this.trigger:(t=Z2,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["node:".concat(t)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var t=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){t.toggle(e),clearTimeout(t.timer),t.timer=0},200)}else this.toggle(e)},toggle:function(e){var t=e.item;if(t){var n=this.graph.findDataById(t.get("id"));if(n){var a=n.children;if(!(!a||a.length===0)){var i=!n.collapsed;this.shouldBegin(e,i,this)&&(n.collapsed=i,t.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:e.item,collapsed:i}),this.shouldUpdate(e,i,this)&&(this.onChange(t,i,this),this.graph.layout()))}}}}};var mfe=so.calculationItemsBBox,wO=function(e,t){if(t(e)!==!1&&e){var n=e.get("combos");if(n.length===0)return!1;_e(n,function(a){wO(a,t)})}};const bfe={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var t=e.item;if(!t||t.destroyed||!this.shouldUpdate(e,this))return!1;var n=t.getType();return n==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var t=this,n=this.graph,a=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!a.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=a.get("id"),s=i.filter(function(f){var l=f.get("id");return o===l});s.length===0?this.targets.push(a):this.targets=i.filter(function(f){return!f.hasLocked()});var u=[];this.targets.forEach(function(f){var l=f.getModel(),c=l.x,h=l.y,d=l.id;u.push({x:c,y:h,id:d})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var l=f.getModel();if(l.parentId){var c=n.findById(l.parentId);c&&n.setItemState(c,t.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],wO(a,function(f){if(f.destroyed)return!1;var l=f.getModel();return t.currentItemChildCombos.push(l.id),!0})}},onDrag:function(e){var t=this;if(this.origin&&this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var n=this.graph,a=e.item,i=a.getModel(),o=n.getCombos(),s=a.getBBox(),u=s.centerX,f=s.centerY,l=s.width,c=o.filter(function(h){var d=h.getModel();return i.parentId,d.id!==i.id&&!t.currentItemChildCombos.includes(d.id)});c.map(function(h){var d=h.getBBox(),v=d.centerX,p=d.centerY,g=d.width,y=u-v,m=f-p,b=2*Math.sqrt(y*y+m*m);l+g-b>.8*l?n.setItemState(h,t.activeState,!0):n.setItemState(h,t.activeState,!1)})}_e(this.targets,function(h){t.updateCombo(h,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,t){var n=this;(this.enableDelegate||t)&&_e(this.targets,function(a){n.updateCombo(a,e,t)})},onDrop:function(e){var t=this,n=e.item;if(this.currentShouldEnd=this.shouldEnd(e,n,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!n||!this.targets||n.destroyed)){var a=this.graph,i=n.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==i.id?(t.activeState&&a.setItemState(n,t.activeState,!1),t.onlyChangeComboSize?a.updateCombo(o):a.updateComboTree(o,i.id,!1)):a.updateCombo(n)}),this.end(n,e),this.endComparison=!0}},onNodeDrop:function(e){var t=this;if(!(!this.targets||this.targets.length===0)){var n=this.graph,a=e.item,i=a.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(i){if(this.activeState){var u=n.findById(i);n.setItemState(u,this.activeState,!1)}this.targets.map(function(f){t.onlyChangeComboSize?n.updateCombo(f):i!==f.getID()&&(s=n.findById(i),i!==f.getModel().parentId&&n.updateComboTree(f,i,!1))})}else this.targets.map(function(f){if(t.onlyChangeComboSize)n.updateCombo(f);else{var l=f.getModel();l.comboId&&n.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(this.origin&&this.validationCombo(e)){var t=e.item,n=this.graph;this.activeState&&n.setItemState(t,this.activeState,!0)}},onDragLeave:function(e){if(this.origin&&this.validationCombo(e)){var t=e.item,n=this.graph;this.activeState&&n.setItemState(t,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var t=e.item;this.currentShouldEnd&&this.updatePositions(e);var n=this.getParentCombo(t.getModel().parentId),a=this.graph;n&&this.activeState&&a.setItemState(n,this.activeState,!1),this.end(void 0,e)}},end:function(e,t){var n=this;if(this.origin){var a=this.graph;if(this.delegateShape){var i=a.get("delegateGroup");i.clear(),this.delegateShape=null}if(e&&this.activeState&&a.setItemState(e,this.activeState,!1),!e){var o=a.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!n.onlyChangeComboSize)a.updateComboTree(u,void 0,o);else{a.updateCombo(u);var f=u.getModel(),l=f.x,c=f.y,h=f.id;s.after.combos.push({x:l,y:c,id:h}),a.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,t,n){var a=this;if(n===void 0&&(n={}),t(e,n)!==!1&&e){var i=e.get("combos");_e(i,function(s){a.traverse(s,t,n)});var o=e.get("nodes");_e(o,function(s){a.traverse(s,t,n)})}},updateCombo:function(e,t,n){this.updateSingleItem(e,t,n);var a={};this.traverse(e,function(i,o){return i.destroyed?!1:(i.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},a),Object.values(a).forEach(function(i){return i.refresh()})},updateSingleItem:function(e,t,n){var a=this.origin,i=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var u=t.x-a.x+this.point[s].x,f=t.y-a.y+this.point[s].y;n&&(u+=a.x-t.x,f+=a.y-t.y),i.updateItem(e,{x:u,y:f},!1)},getParentCombo:function(e){var t=this.graph;if(e){var n=t.findById(e);if(n)return n}},updateDelegate:function(e){var t=this.graph;if(this.delegateShape){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:h,y:d})}else{var n=t.get("delegateGroup"),a=null;this.targets.length>1?a=mfe(this.targets):a=this.targets[0].getBBox();var i=a.x,o=a.y,s=a.width,u=a.height,f=a.minX,l=a.minY;this.originPoint={x:i,y:o,width:s,height:u,minX:f,minY:l};var c=P(P({},wf.delegateStyle),this.delegateStyle);this.delegateShape=n.addShape("rect",{attrs:P({width:a.width,height:a.height,x:a.x,y:a.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,t=e.graph,n=e.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().parentId;o&&(a[o]=t.findById(o))}),Object.values(a).forEach(function(i){i&&t.updateCombo(i)})}};var K2="dblclick",wfe=["click","dblclick"];const xfe={getDefaultCfg:function(){return{trigger:K2,relayout:!0}},getEvents:function(){var e,t;return wfe.includes(this.trigger)?t=this.trigger:(t=K2,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["combo:".concat(t)]="onComboClick",e},onComboClick:function(e){var t=e.item,n=this,a=n.graph,i=n.relayout;if(!(!t||t.destroyed||t.getType()!=="combo")){var o=t.getModel(),s=o.id;s&&(a.collapseExpandCombo(s),i&&a.get("layout")?a.layout():a.refreshPositions())}}};var Efe=so.isPolygonsIntersect,_fe=so.pathToPoints,Q2="shift",Sfe=["drag","shift","ctrl","alt","control"],Mfe=function(e,t){var n,a=e.getKeyShape();if(e.get("type")==="path")n=_fe(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return Efe(t,n)};const Afe={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:Q2,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Sfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Q2,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var t=this.lasso,n=e.item;n||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),t||(t=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),t.show())},onDragMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e)))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,t=[];return e.length&&(e.forEach(function(n,a){a===0?t.push(["M",n.x,n.y]):t.push(["L",n.x,n.y])}),t.push(["L",e[0].x,e[0].y])),t},clearStates:function(e){e===void 0&&(e="canvas:click");var t=this,n=t.graph,a=t.selectedState,i=t.shouldDeselect,o=n.findAllByState("node",a),s=n.findAllByState("edge",a);(!i||i({action:e,nodes:o,edges:s}))&&(o.forEach(function(u){return n.setItemState(u,a,!1)}),s.forEach(function(u){return n.setItemState(u,a,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,t=this,n=t.graph,a=t.shouldUpdate,i=this.points.map(function(l){return[n.getCanvasByPoint(l.x,l.y).x,n.getCanvasByPoint(l.x,l.y).y]}),o=this.selectedState,s=[],u=[];n.getNodes().forEach(function(l){if(l.isVisible()&&Mfe(l,i)&&a(l,"select",e)){s.push(l);var c=l.getModel();u.push(c.id),n.setItemState(l,o,!0)}});var f=[];this.includeEdges&&s.forEach(function(l){var c=l.getOutEdges();c.forEach(function(h){if(h.isVisible()){var d=h.getModel(),v=d.source,p=d.target;u.includes(v)&&u.includes(p)&&a(h,"select",e)&&(f.push(h),n.setItemState(h,e.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=s,this.onSelect&&this.onSelect(s,f),n.emit("nodeselectchange",{selectedItems:{nodes:s,edges:f},select:!0})},createLasso:function(){var e=this,t=e.graph.get("delegateGroup").addShape("path",{attrs:P({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(e){var t=this;this.lasso.attr({path:t.getLassoPath()})},onKeyDown:function(e){var t=e.key;t&&(t.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var J2="click",Cfe=["click","drag"],eS=void 0,Tfe=["shift","ctrl","control","alt","meta",void 0];const Ife={getDefaultCfg:function(){return{trigger:J2,key:eS,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;Cfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=J2,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&Tfe.indexOf(e.key.toLowerCase())===-1&&(e.trigger=eS,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined"));var t;return e.trigger==="drag"?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(e){var t=this;if(!(t.key&&!t.keydown)){var n=e.item;(!n||n.getID()===t.source||n.getType()!=="node")&&t.cancelCreating({item:t.edge,x:e.x,y:e.y})}},onClick:function(e){var t=this;if(!(t.key&&!t.keydown)){var n=e.item,a=t.graph,i=n.getModel(),o=t.getEdgeConfig;if(t.addingEdge&&t.edge){if(!t.shouldEnd(e,t))return;var s=void 0;o&&Tr(o)?s=o({source:t.source,target:i.id},t):s=t.edgeConfig;var u=P({target:i.id},s);if(t.source===i.id&&(u.type="loop"),a.emit("beforecreateedge",{}),a.updateItem(t.edge,u,!1),a.get("enabledStack")){var f=P(P({},t.edge.getModel()),{itemType:"edge"}),l={};l.edges=[f],a.pushStack("add",{before:{},after:l})}a.emit("aftercreateedge",{edge:t.edge}),t.edge.getKeyShape().set("capture",!0),t.edge=null,t.addingEdge=!1}else{if(!t.shouldBegin(e,t))return;var s=void 0;o&&Tr(o)?s=o({source:i.id,target:i.id},t):s=t.edgeConfig,t.edge=a.addItem("edge",P({source:i.id,target:i.id},s),!1),t.source=i.id,t.addingEdge=!0,t.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var t=this;if(!(t.key&&!t.keydown)){t.edge&&t.edge.destroyed&&t.cancelCreating({item:t.edge});var n={x:e.x,y:e.y};if(!t.graph.findById(t.source)){t.addingEdge=!1;return}t.addingEdge&&t.edge&&t.graph.updateItem(t.edge,{target:n},!1)}},cancelCreating:function(e){var t,n,a=this;if(!(a.key&&!a.keydown)){var i=a.graph,o=e.item;if(a.addingEdge&&(a.edge===o||!((n=(t=e.target)===null||t===void 0?void 0:t.isCanvas)===null||n===void 0)&&n.call(t))){a.edge&&!a.edge.destroyed&&i.removeItem(a.edge,!1),a.edge=null,a.addingEdge=!1;return}}},onKeyDown:function(e){var t=this,n=e.key;n&&(n.toLowerCase()===t.key.toLowerCase()?t.keydown=!0:t.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var tS="ctrl",kfe=["shift","ctrl","alt","control"],Nfe="1";const Ofe={getDefaultCfg:function(){return{trigger:tS,combinedKey:Nfe,functionName:"fitView",functionParams:[]}},getEvents:function(){return kfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=tS,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var t=e.key;if(t){var n=this.trigger.toLowerCase(),a=t.toLowerCase();this.triggerKeydown||(a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(a===o||a==="control"&&o==="ctrl"||a==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var Lfe=["shift","ctrl","alt","control","meta"];const Dfe={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||Lfe.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var t=this;if(this.allowDrag(e)){var n=this.graph,a=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];a.includes("control")&&a.push("ctrl");var i=a.some(function(V){return e["".concat(V,"Key")]});if(i){var o=n.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),u=n.getZoom();e.wheelDelta>0?u=u+u*.05:u=u-u*.05,n.zoomTo(u,{x:s.x,y:s.y})}else{var f=e.deltaX||e.movementX,l=e.deltaY||e.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=-e.wheelDelta*125/3);var c=this.graph.get("width"),h=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=h*p);var g=d.minX,y=d.maxX,m=d.minY,b=d.maxY;f>0?y<-v?f=0:y-f<-v&&(f=y+v):f<0&&(g>c+v?f=0:g-f>c+v&&(f=g-(c+v))),l>0?b<-p?l=0:b-l<-p&&(l=b+p):l<0&&(m>h+p?l=0:m-l>h+p&&(l=m-(h+p))),this.get("direction")==="x"?l=0:this.get("direction")==="y"&&(f=0),n.translate(-f,-l)}e.preventDefault();var w=this.get("enableOptimize");if(w){var x=this.get("optimizeZoom"),E=this.get("optimized"),_=n.getNodes(),S=n.getEdges(),A=_.length,M=S.length;if(!E){for(var C=0;C{const v=d.getModel();t.updateItem(d,{style:{fill:i(),stroke:l(v.os),lineWidth:2,radius:8,shadowColor:a()?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:o(),fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:v.online?"#22c55e":"#ef4444",stroke:i(),lineWidth:2}}})}),t.getEdges().forEach(d=>{const v=d.getModel(),g=String(v.id).startsWith("rel-")?"#f97316":"#3b82f6";t.updateItem(d,{labelCfg:{style:{fill:g,fontSize:11,fontWeight:500,background:{fill:i(),padding:[2,4],radius:4}}}})}),t.paint())}sP(async()=>{const[h,d,v]=await Promise.all([uP(),fP(),lP()]),p=h.data,g=d.data,y=v.data,m={};p.forEach(A=>m[A.id]=A);const b=a(),w=i(),x=o(),E=p.map(A=>({id:String(A.id),label:A.hostname,online:A.is_online,os:A.os_type,style:{fill:w,stroke:l(A.os_type),lineWidth:2,radius:8,shadowColor:b?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:x,fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:A.is_online?"#22c55e":"#ef4444",stroke:w,lineWidth:2}}})),_=[];y.forEach(A=>{!m[A.source_machine_id]||!m[A.target_machine_id]||_.push({id:`rel-${A.id}`,source:String(A.source_machine_id),target:String(A.target_machine_id),label:c(A),style:{stroke:"#f97316",lineDash:[4,2],lineWidth:1.5,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#f97316"}},labelCfg:{style:{fill:"#f97316",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})}),g.forEach(A=>{A.target_machine_id&&m[A.target_machine_id]&&_.push({id:`svc-${A.id}`,source:String(A.machine_id),target:String(A.target_machine_id),label:A.name,style:{stroke:"#3b82f6",lineWidth:2,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#3b82f6"}},labelCfg:{style:{fill:"#3b82f6",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})});const S=document.getElementById("topo");S.style.background=s(),t=new cO({container:"topo",width:S.clientWidth,height:S.clientHeight,layout:{type:"force",preventOverlap:!0,linkDistance:140,nodeStrength:-80,edgeStrength:.2},defaultNode:{type:"rect",size:[110,40]},defaultEdge:{type:"line",style:{endArrow:!0}},modes:{default:["drag-node","drag-canvas","zoom-canvas"]},fitView:!0,fitViewPadding:20}),t.data({nodes:E,edges:_}),t.render(),t.on("node:click",A=>{const M=A.item.getModel().id;f(M)}),window.addEventListener("resize",()=>{const A=document.getElementById("topo");A&&t&&(t.changeSize(A.clientWidth,A.clientHeight),t.fitView())}),n=new MutationObserver(()=>{u()}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),cP(()=>{n&&n.disconnect(),t&&(t.destroy(),t=null)});function f(h){if(!t)return;const d=t.getEdges();d.forEach(v=>{const p=v.getModel();p.source===h||p.target===h?(t.setItemState(v,"active",!0),v.update({style:{opacity:1}})):(t.setItemState(v,"inactive",!0),v.update({style:{opacity:.15}}))}),setTimeout(()=>{d.forEach(v=>{t.clearItemStates(v),v.update({style:{opacity:1}})})},2e3)}function l(h){switch(h){case"Linux":return"#3b82f6";case"Windows":return"#06b6d4";case"macOS":return"#a855f7";default:return"#9ca3af"}}function c(h){const v={port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[h.relation_type]||h.relation_type;return h.source_port?`${v} (${h.source_port})`:v}return(h,d)=>{const v=bP("el-button");return Hb(),hP("div",Rfe,[Zl("div",Ffe,[d[2]||(d[2]=Zl("div",null,[Zl("div",{class:"page-title"},"拓扑图"),Zl("div",{class:"page-subtitle"},"展示机器之间的服务指向和关联关系")],-1)),Zb(e)?(Hb(),dP(v,{key:0,type:"primary",icon:Zb(pP),onClick:d[0]||(d[0]=p=>h.$router.push("/machines"))},{default:vP(()=>[...d[1]||(d[1]=[wP("添加机器",-1)])]),_:1},8,["icon"])):gP("",!0)]),d[3]||(d[3]=yP('
在线
离线
服务指向
关联关系
',1))])}}},jfe=xP(Bfe,[["__scopeId","data-v-1d46321d"]]);export{jfe as default}; diff --git a/web/dist/assets/index-C_uWT3cF.js b/web/dist/assets/index-BFjouPFU.js similarity index 69% rename from web/dist/assets/index-C_uWT3cF.js rename to web/dist/assets/index-BFjouPFU.js index 6b782bb..a645fb9 100644 --- a/web/dist/assets/index-C_uWT3cF.js +++ b/web/dist/assets/index-BFjouPFU.js @@ -1,21 +1,21 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-CyUiDLKS.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Login-QAgKDetV.css","assets/MainLayout-CsFkTHMI.js","assets/MainLayout-CJz-pM3g.css","assets/MachineList-B0yEQVq5.js","assets/MachineList-DpVAPZyx.css","assets/MachineDetail-Du94nURq.js","assets/MachineDetail-OXzzIeiz.css","assets/Topology-BJXdT35q.js","assets/Topology-DMH8-H8q.css","assets/Logs-D4rB2TEm.js","assets/Logs-DCJS9ser.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-BYekGeRX.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Login-QAgKDetV.css","assets/MainLayout-Cavyx6zq.js","assets/MainLayout-DQN4KPkJ.css","assets/MachineList-Dl6ycQW2.js","assets/MachineList-9XRtZKRa.css","assets/MachineDetail-PZRasqha.js","assets/MachineDetail-BRKIzc2h.css","assets/Topology-BoCWnE97.js","assets/Topology-DMH8-H8q.css","assets/Logs-DuqLZVwE.js","assets/Logs-DCJS9ser.css","assets/PVEHosts-Ch6D9CK9.js","assets/PVEHosts-BMDl3QRA.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/** * @vue/shared v3.5.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function ip(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const un={},us=[],It=()=>{},F4=()=>!1,Od=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$d=e=>e.startsWith("onUpdate:"),Rn=Object.assign,up=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},j9=Object.prototype.hasOwnProperty,Mt=(e,t)=>j9.call(e,t),be=Array.isArray,cs=e=>fu(e)==="[object Map]",Ad=e=>fu(e)==="[object Set]",Fl=e=>fu(e)==="[object Date]",Fe=e=>typeof e=="function",Be=e=>typeof e=="string",Aa=e=>typeof e=="symbol",lt=e=>e!==null&&typeof e=="object",Kl=e=>(lt(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),K4=Object.prototype.toString,fu=e=>K4.call(e),q9=e=>fu(e).slice(8,-1),Vi=e=>fu(e)==="[object Object]",Rd=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ci=ip(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},U9=/-\w/g,Hn=Nd(e=>e.replace(U9,t=>t.slice(1).toUpperCase())),Y9=/\B([A-Z])/g,vl=Nd(e=>e.replace(Y9,"-$1").toLowerCase()),pu=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),_i=Nd(e=>e?`on${pu(e)}`:""),ko=(e,t)=>!Object.is(e,t),wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},cp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G9=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Mv;const Pd=()=>Mv||(Mv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(be(e)){const t={};for(let n=0;n{if(n){const a=n.split(J9);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Be(e))t=e;else if(be(e))for(let n=0;nEr(n,t))}const U4=e=>!!(e&&e.__v_isRef===!0),Se=e=>Be(e)?e:e==null?"":be(e)||lt(e)&&(e.toString===K4||!Fe(e.toString))?U4(e)?Se(e.value):JSON.stringify(e,Y4,2):String(e),Y4=(e,t)=>U4(t)?Y4(e,t.value):cs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Lf(a,l)+" =>"]=o,n),{})}:Ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lf(n))}:Aa(t)?Lf(t):lt(t)&&!be(t)&&!Vi(t)?String(t):t,Lf=(e,t="")=>{var n;return Aa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function cp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const cn={},cs=[],It=()=>{},K4=()=>!1,$d=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ad=e=>e.startsWith("onUpdate:"),Rn=Object.assign,dp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},j9=Object.prototype.hasOwnProperty,Mt=(e,t)=>j9.call(e,t),be=Array.isArray,ds=e=>pu(e)==="[object Map]",Rd=e=>pu(e)==="[object Set]",Fl=e=>pu(e)==="[object Date]",Fe=e=>typeof e=="function",Be=e=>typeof e=="string",Aa=e=>typeof e=="symbol",lt=e=>e!==null&&typeof e=="object",Kl=e=>(lt(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),W4=Object.prototype.toString,pu=e=>W4.call(e),q9=e=>pu(e).slice(8,-1),Bi=e=>pu(e)==="[object Object]",Nd=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_i=cp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},U9=/-\w/g,Hn=Pd(e=>e.replace(U9,t=>t.slice(1).toUpperCase())),Y9=/\B([A-Z])/g,vl=Pd(e=>e.replace(Y9,"-$1").toLowerCase()),hu=Pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Si=Pd(e=>e?`on${hu(e)}`:""),ko=(e,t)=>!Object.is(e,t),Cc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},fp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G9=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Ov;const Id=()=>Ov||(Ov=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(be(e)){const t={};for(let n=0;n{if(n){const a=n.split(J9);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Be(e))t=e;else if(be(e))for(let n=0;nTr(n,t))}const Y4=e=>!!(e&&e.__v_isRef===!0),Se=e=>Be(e)?e:e==null?"":be(e)||lt(e)&&(e.toString===W4||!Fe(e.toString))?Y4(e)?Se(e.value):JSON.stringify(e,G4,2):String(e),G4=(e,t)=>Y4(t)?G4(e,t.value):ds(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Bf(a,l)+" =>"]=o,n),{})}:Rd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bf(n))}:Aa(t)?Bf(t):lt(t)&&!be(t)&&!Bi(t)?String(t):t,Bf=(e,t="")=>{var n;return Aa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Jn;class G4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Jn,!t&&Jn&&(this.index=(Jn.scopes||(Jn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Jn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(xi){let t=xi;for(xi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Si;){let t=Si;for(Si=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function t3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function n3(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),pp(a),oC(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function N0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bi)||(e.globalVersion=Bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!N0(e))))return;e.flags|=2;const t=e.dep,n=pn,a=Ya;pn=e,Ya=!0;try{t3(e);const o=e.fn(e._value);(t.version===0||ko(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{pn=n,Ya=a,n3(e),e.flags&=-3}}function pp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)pp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ya=!0;const o3=[];function rl(){o3.push(Ya),Ya=!1}function sl(){const e=o3.pop();Ya=e===void 0?!0:e}function Ov(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pn;pn=void 0;try{t()}finally{pn=n}}}let Bi=0;class lC{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pn||!Ya||pn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pn)n=this.activeLink=new lC(pn,this),pn.deps?(n.prevDep=pn.depsTail,pn.depsTail.nextDep=n,pn.depsTail=n):pn.deps=pn.depsTail=n,l3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=pn.depsTail,n.nextDep=void 0,pn.depsTail.nextDep=n,pn.depsTail=n,pn.deps===n&&(pn.deps=a)}return n}trigger(t){this.version++,Bi++,this.notify(t)}notify(t){dp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fp()}}}function l3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)l3(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Wc=new WeakMap,wr=Symbol(""),P0=Symbol(""),zi=Symbol("");function Qn(e,t,n){if(Ya&&pn){let a=Wc.get(e);a||Wc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new hp),o.map=a,o.key=n),o.track()}}function Xo(e,t,n,a,o,l){const r=Wc.get(e);if(!r){Bi++;return}const s=u=>{u&&u.trigger()};if(dp(),t==="clear")r.forEach(s);else{const u=be(e),c=u&&Rd(n);if(u&&n==="length"){const d=Number(a);r.forEach((f,h)=>{(h==="length"||h===zi||!Aa(h)&&h>=d)&&s(f)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),c&&s(r.get(zi)),t){case"add":u?c&&s(r.get("length")):(s(r.get(wr)),cs(e)&&s(r.get(P0)));break;case"delete":u||(s(r.get(wr)),cs(e)&&s(r.get(P0)));break;case"set":cs(e)&&s(r.get(wr));break}}fp()}function rC(e,t){const n=Wc.get(e);return n&&n.get(t)}function Ur(e){const t=jt(e);return t===e?t:(Qn(t,"iterate",zi),Oa(e)?t:t.map(Za))}function Id(e){return Qn(e=jt(e),"iterate",zi),e}function So(e,t){return il(e)?Cs(Cr(e)?Za(t):t):Za(t)}const sC={__proto__:null,[Symbol.iterator](){return Bf(this,Symbol.iterator,e=>So(this,e))},concat(...e){return Ur(this).concat(...e.map(t=>be(t)?Ur(t):t))},entries(){return Bf(this,"entries",e=>(e[1]=So(this,e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,n=>n.map(a=>So(this,a)),arguments)},find(e,t){return jo(this,"find",e,t,n=>So(this,n),arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,n=>So(this,n),arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return zf(this,"includes",e)},indexOf(...e){return zf(this,"indexOf",e)},join(e){return Ur(this).join(e)},lastIndexOf(...e){return zf(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return ai(this,"pop")},push(...e){return ai(this,"push",e)},reduce(e,...t){return $v(this,"reduce",e,t)},reduceRight(e,...t){return $v(this,"reduceRight",e,t)},shift(){return ai(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return ai(this,"splice",e)},toReversed(){return Ur(this).toReversed()},toSorted(e){return Ur(this).toSorted(e)},toSpliced(...e){return Ur(this).toSpliced(...e)},unshift(...e){return ai(this,"unshift",e)},values(){return Bf(this,"values",e=>So(this,e))}};function Bf(e,t,n){const a=Id(e),o=a[t]();return a!==e&&!Oa(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const iC=Array.prototype;function jo(e,t,n,a,o,l){const r=Id(e),s=r!==e&&!Oa(e),u=r[t];if(u!==iC[t]){const f=u.apply(e,l);return s?Za(f):f}let c=n;r!==e&&(s?c=function(f,h){return n.call(this,So(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const d=u.call(r,c,a);return s&&o?o(d):d}function $v(e,t,n,a){const o=Id(e),l=o!==e&&!Oa(e);let r=n,s=!1;o!==e&&(l?(s=a.length===0,r=function(c,d,f){return s&&(s=!1,c=So(e,c)),n.call(this,c,So(e,d),f,e)}):n.length>3&&(r=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](r,...a);return s?So(e,u):u}function zf(e,t,n){const a=jt(e);Qn(a,"iterate",zi);const o=a[t](...n);return(o===-1||o===!1)&&Vd(n[0])?(n[0]=jt(n[0]),a[t](...n)):o}function ai(e,t,n=[]){rl(),dp();const a=jt(e)[t].apply(e,n);return fp(),sl(),a}const uC=ip("__proto__,__v_isRef,__isVue"),r3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Aa));function cC(e){Aa(e)||(e=String(e));const t=jt(this);return Qn(t,"has",e),t.hasOwnProperty(e)}class s3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(o?l?wC:d3:l?c3:u3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=be(t);if(!o){let u;if(r&&(u=sC[n]))return u;if(n==="hasOwnProperty")return cC}const s=Reflect.get(t,n,Yt(t)?t:a);if((Aa(n)?r3.has(n):uC(n))||(o||Qn(t,"get",n),l))return s;if(Yt(s)){const u=r&&Rd(n)?s:s.value;return o&<(u)?Tr(u):u}return lt(s)?o?Tr(s):Rt(s):s}}class i3 extends s3{constructor(t=!1){super(!1,t)}set(t,n,a,o){let l=t[n];const r=be(t)&&Rd(n);if(!this._isShallow){const c=il(l);if(!Oa(a)&&!il(a)&&(l=jt(l),a=jt(a)),!r&&Yt(l)&&!Yt(a))return c||(l.value=a),!0}const s=r?Number(n)e,Xu=e=>Reflect.getPrototypeOf(e);function vC(e,t,n){return function(...a){const o=this.__v_raw,l=jt(o),r=cs(l),s=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...a),d=n?I0:t?Cs:Za;return!t&&Qn(l,"iterate",u?P0:wr),Rn(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:s?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function Ju(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mC(e,t){const n={get(o){const l=this.__v_raw,r=jt(l),s=jt(o);e||(ko(o,s)&&Qn(r,"get",o),Qn(r,"get",s));const{has:u}=Xu(r),c=t?I0:e?Cs:Za;if(u.call(r,o))return c(l.get(o));if(u.call(r,s))return c(l.get(s));l!==r&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Qn(jt(o),"iterate",wr),o.size},has(o){const l=this.__v_raw,r=jt(l),s=jt(o);return e||(ko(o,s)&&Qn(r,"has",o),Qn(r,"has",s)),o===s?l.has(o):l.has(o)||l.has(s)},forEach(o,l){const r=this,s=r.__v_raw,u=jt(s),c=t?I0:e?Cs:Za;return!e&&Qn(u,"iterate",wr),s.forEach((d,f)=>o.call(l,c(d),c(f),r))}};return Rn(n,e?{add:Ju("add"),set:Ju("set"),delete:Ju("delete"),clear:Ju("clear")}:{add(o){const l=jt(this),r=Xu(l),s=jt(o),u=!t&&!Oa(o)&&!il(o)?s:o;return r.has.call(l,u)||ko(o,u)&&r.has.call(l,o)||ko(s,u)&&r.has.call(l,s)||(l.add(u),Xo(l,"add",u,u)),this},set(o,l){!t&&!Oa(l)&&!il(l)&&(l=jt(l));const r=jt(this),{has:s,get:u}=Xu(r);let c=s.call(r,o);c||(o=jt(o),c=s.call(r,o));const d=u.call(r,o);return r.set(o,l),c?ko(l,d)&&Xo(r,"set",o,l):Xo(r,"add",o,l),this},delete(o){const l=jt(this),{has:r,get:s}=Xu(l);let u=r.call(l,o);u||(o=jt(o),u=r.call(l,o)),s&&s.call(l,o);const c=l.delete(o);return u&&Xo(l,"delete",o,void 0),c},clear(){const o=jt(this),l=o.size!==0,r=o.clear();return l&&Xo(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vC(o,e,t)}),n}function vp(e,t){const n=mC(e,t);return(a,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(Mt(n,o)&&o in a?n:a,o,l)}const gC={get:vp(!1,!1)},yC={get:vp(!1,!0)},bC={get:vp(!0,!1)};const u3=new WeakMap,c3=new WeakMap,d3=new WeakMap,wC=new WeakMap;function CC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _C(e){return e.__v_skip||!Object.isExtensible(e)?0:CC(q9(e))}function Rt(e){return il(e)?e:mp(e,!1,fC,gC,u3)}function Ld(e){return mp(e,!1,hC,yC,c3)}function Tr(e){return mp(e,!0,pC,bC,d3)}function mp(e,t,n,a,o){if(!lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=_C(e);if(l===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,l===2?a:n);return o.set(e,s),s}function Cr(e){return il(e)?Cr(e.__v_raw):!!(e&&e.__v_isReactive)}function il(e){return!!(e&&e.__v_isReadonly)}function Oa(e){return!!(e&&e.__v_isShallow)}function Vd(e){return e?!!e.__v_raw:!1}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Oo(e){return!Mt(e,"__v_skip")&&Object.isExtensible(e)&&W4(e,"__v_skip",!0),e}const Za=e=>lt(e)?Rt(e):e,Cs=e=>lt(e)?Tr(e):e;function Yt(e){return e?e.__v_isRef===!0:!1}function V(e){return f3(e,!1)}function qt(e){return f3(e,!0)}function f3(e,t){return Yt(e)?e:new SC(e,t)}class SC{constructor(t,n){this.dep=new hp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:jt(t),this._value=n?t:Za(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Oa(t)||il(t);t=a?t:jt(t),ko(t,n)&&(this._rawValue=t,this._value=a?t:Za(t),this.dep.trigger())}}function Cc(e){e.dep&&e.dep.trigger()}function i(e){return Yt(e)?e.value:e}function Av(e){return Fe(e)?e():i(e)}const xC={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Yt(o)&&!Yt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function p3(e){return Cr(e)?e:new Proxy(e,xC)}function Nn(e){const t=be(e)?new Array(e.length):{};for(const n in e)t[n]=h3(e,n);return t}class kC{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=Aa(n)?n:String(n),this._raw=jt(t);let o=!0,l=t;if(!be(t)||Aa(this._key)||!Rd(this._key))do o=!Vd(l)||Oa(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Yt(this._raw[this._key])){const n=this._object[this._key];if(Yt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return rC(this._raw,this._key)}}class EC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bt(e,t,n){return Yt(e)?e:Fe(e)?new EC(e):lt(e)&&arguments.length>1?h3(e,t,n):V(e)}function h3(e,t,n){return new kC(e,t,n)}class TC{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new hp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&pn!==this)return e3(this,!0),!0}get value(){const t=this.dep.track();return a3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function MC(e,t,n=!1){let a,o;return Fe(e)?a=e:(a=e.get,o=e.set),new TC(a,o,n)}const Zu={},jc=new WeakMap;let or;function OC(e,t=!1,n=or){if(n){let a=jc.get(n);a||jc.set(n,a=[]),a.push(e)}}function $C(e,t,n=un){const{immediate:a,deep:o,once:l,scheduler:r,augmentJob:s,call:u}=n,c=_=>o?_:Oa(_)||o===!1||o===0?Jo(_,1):Jo(_);let d,f,h,g,p=!1,v=!1;if(Yt(e)?(f=()=>e.value,p=Oa(e)):Cr(e)?(f=()=>c(e),p=!0):be(e)?(v=!0,p=e.some(_=>Cr(_)||Oa(_)),f=()=>e.map(_=>{if(Yt(_))return _.value;if(Cr(_))return c(_);if(Fe(_))return u?u(_,2):_()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){rl();try{h()}finally{sl()}}const _=or;or=d;try{return u?u(e,3,[g]):e(g)}finally{or=_}}:f=It,t&&o){const _=f,S=o===!0?1/0:o;f=()=>Jo(_(),S)}const m=X4(),y=()=>{d.stop(),m&&m.active&&up(m.effects,d)};if(l&&t){const _=t;t=(...S)=>{_(...S),y()}}let b=v?new Array(e.length).fill(Zu):Zu;const w=_=>{if(!(!(d.flags&1)||!d.dirty&&!_))if(t){const S=d.run();if(o||p||(v?S.some((k,T)=>ko(k,b[T])):ko(S,b))){h&&h();const k=or;or=d;try{const T=[S,b===Zu?void 0:v&&b[0]===Zu?[]:b,g];b=S,u?u(t,3,T):t(...T)}finally{or=k}}}else d.run()};return s&&s(w),d=new Z4(f),d.scheduler=r?()=>r(w,!1):w,g=_=>OC(_,!1,d),h=d.onStop=()=>{const _=jc.get(d);if(_){if(u)u(_,4);else for(const S of _)S();jc.delete(d)}},t?a?w(!0):b=d.run():r?r(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Jo(e,t=1/0,n){if(t<=0||!lt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Yt(e))Jo(e.value,t,n);else if(be(e))for(let a=0;a{Jo(a,t,n)});else if(Vi(e)){for(const a in e)Jo(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Jo(e[a],t,n)}return e}/** +**/let Jn;class X4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Jn,!t&&Jn&&(this.index=(Jn.scopes||(Jn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Jn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(ki){let t=ki;for(ki=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xi;){let t=xi;for(xi=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function n3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function a3(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),vp(a),oC(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function I0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(o3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function o3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zi)||(e.globalVersion=zi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!I0(e))))return;e.flags|=2;const t=e.dep,n=hn,a=Ya;hn=e,Ya=!0;try{n3(e);const o=e.fn(e._value);(t.version===0||ko(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{hn=n,Ya=a,a3(e),e.flags&=-3}}function vp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)vp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ya=!0;const l3=[];function rl(){l3.push(Ya),Ya=!1}function sl(){const e=l3.pop();Ya=e===void 0?!0:e}function $v(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=hn;hn=void 0;try{t()}finally{hn=n}}}let zi=0;class lC{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!hn||!Ya||hn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==hn)n=this.activeLink=new lC(hn,this),hn.deps?(n.prevDep=hn.depsTail,hn.depsTail.nextDep=n,hn.depsTail=n):hn.deps=hn.depsTail=n,r3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=hn.depsTail,n.nextDep=void 0,hn.depsTail.nextDep=n,hn.depsTail=n,hn.deps===n&&(hn.deps=a)}return n}trigger(t){this.version++,zi++,this.notify(t)}notify(t){pp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hp()}}}function r3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)r3(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jc=new WeakMap,Cr=Symbol(""),L0=Symbol(""),Di=Symbol("");function Qn(e,t,n){if(Ya&&hn){let a=jc.get(e);a||jc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new mp),o.map=a,o.key=n),o.track()}}function Xo(e,t,n,a,o,l){const r=jc.get(e);if(!r){zi++;return}const s=u=>{u&&u.trigger()};if(pp(),t==="clear")r.forEach(s);else{const u=be(e),c=u&&Nd(n);if(u&&n==="length"){const d=Number(a);r.forEach((f,h)=>{(h==="length"||h===Di||!Aa(h)&&h>=d)&&s(f)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),c&&s(r.get(Di)),t){case"add":u?c&&s(r.get("length")):(s(r.get(Cr)),ds(e)&&s(r.get(L0)));break;case"delete":u||(s(r.get(Cr)),ds(e)&&s(r.get(L0)));break;case"set":ds(e)&&s(r.get(Cr));break}}hp()}function rC(e,t){const n=jc.get(e);return n&&n.get(t)}function Yr(e){const t=jt(e);return t===e?t:(Qn(t,"iterate",Di),Oa(e)?t:t.map(Za))}function Ld(e){return Qn(e=jt(e),"iterate",Di),e}function So(e,t){return il(e)?_s(_r(e)?Za(t):t):Za(t)}const sC={__proto__:null,[Symbol.iterator](){return Df(this,Symbol.iterator,e=>So(this,e))},concat(...e){return Yr(this).concat(...e.map(t=>be(t)?Yr(t):t))},entries(){return Df(this,"entries",e=>(e[1]=So(this,e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,n=>n.map(a=>So(this,a)),arguments)},find(e,t){return jo(this,"find",e,t,n=>So(this,n),arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,n=>So(this,n),arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Hf(this,"includes",e)},indexOf(...e){return Hf(this,"indexOf",e)},join(e){return Yr(this).join(e)},lastIndexOf(...e){return Hf(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return oi(this,"pop")},push(...e){return oi(this,"push",e)},reduce(e,...t){return Av(this,"reduce",e,t)},reduceRight(e,...t){return Av(this,"reduceRight",e,t)},shift(){return oi(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return oi(this,"splice",e)},toReversed(){return Yr(this).toReversed()},toSorted(e){return Yr(this).toSorted(e)},toSpliced(...e){return Yr(this).toSpliced(...e)},unshift(...e){return oi(this,"unshift",e)},values(){return Df(this,"values",e=>So(this,e))}};function Df(e,t,n){const a=Ld(e),o=a[t]();return a!==e&&!Oa(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const iC=Array.prototype;function jo(e,t,n,a,o,l){const r=Ld(e),s=r!==e&&!Oa(e),u=r[t];if(u!==iC[t]){const f=u.apply(e,l);return s?Za(f):f}let c=n;r!==e&&(s?c=function(f,h){return n.call(this,So(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const d=u.call(r,c,a);return s&&o?o(d):d}function Av(e,t,n,a){const o=Ld(e),l=o!==e&&!Oa(e);let r=n,s=!1;o!==e&&(l?(s=a.length===0,r=function(c,d,f){return s&&(s=!1,c=So(e,c)),n.call(this,c,So(e,d),f,e)}):n.length>3&&(r=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](r,...a);return s?So(e,u):u}function Hf(e,t,n){const a=jt(e);Qn(a,"iterate",Di);const o=a[t](...n);return(o===-1||o===!1)&&Bd(n[0])?(n[0]=jt(n[0]),a[t](...n)):o}function oi(e,t,n=[]){rl(),pp();const a=jt(e)[t].apply(e,n);return hp(),sl(),a}const uC=cp("__proto__,__v_isRef,__isVue"),s3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Aa));function cC(e){Aa(e)||(e=String(e));const t=jt(this);return Qn(t,"has",e),t.hasOwnProperty(e)}class i3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(o?l?wC:f3:l?d3:c3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=be(t);if(!o){let u;if(r&&(u=sC[n]))return u;if(n==="hasOwnProperty")return cC}const s=Reflect.get(t,n,Yt(t)?t:a);if((Aa(n)?s3.has(n):uC(n))||(o||Qn(t,"get",n),l))return s;if(Yt(s)){const u=r&&Nd(n)?s:s.value;return o&<(u)?Mr(u):u}return lt(s)?o?Mr(s):Nt(s):s}}class u3 extends i3{constructor(t=!1){super(!1,t)}set(t,n,a,o){let l=t[n];const r=be(t)&&Nd(n);if(!this._isShallow){const c=il(l);if(!Oa(a)&&!il(a)&&(l=jt(l),a=jt(a)),!r&&Yt(l)&&!Yt(a))return c||(l.value=a),!0}const s=r?Number(n)e,Ju=e=>Reflect.getPrototypeOf(e);function vC(e,t,n){return function(...a){const o=this.__v_raw,l=jt(o),r=ds(l),s=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...a),d=n?V0:t?_s:Za;return!t&&Qn(l,"iterate",u?L0:Cr),Rn(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:s?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function Zu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mC(e,t){const n={get(o){const l=this.__v_raw,r=jt(l),s=jt(o);e||(ko(o,s)&&Qn(r,"get",o),Qn(r,"get",s));const{has:u}=Ju(r),c=t?V0:e?_s:Za;if(u.call(r,o))return c(l.get(o));if(u.call(r,s))return c(l.get(s));l!==r&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Qn(jt(o),"iterate",Cr),o.size},has(o){const l=this.__v_raw,r=jt(l),s=jt(o);return e||(ko(o,s)&&Qn(r,"has",o),Qn(r,"has",s)),o===s?l.has(o):l.has(o)||l.has(s)},forEach(o,l){const r=this,s=r.__v_raw,u=jt(s),c=t?V0:e?_s:Za;return!e&&Qn(u,"iterate",Cr),s.forEach((d,f)=>o.call(l,c(d),c(f),r))}};return Rn(n,e?{add:Zu("add"),set:Zu("set"),delete:Zu("delete"),clear:Zu("clear")}:{add(o){const l=jt(this),r=Ju(l),s=jt(o),u=!t&&!Oa(o)&&!il(o)?s:o;return r.has.call(l,u)||ko(o,u)&&r.has.call(l,o)||ko(s,u)&&r.has.call(l,s)||(l.add(u),Xo(l,"add",u,u)),this},set(o,l){!t&&!Oa(l)&&!il(l)&&(l=jt(l));const r=jt(this),{has:s,get:u}=Ju(r);let c=s.call(r,o);c||(o=jt(o),c=s.call(r,o));const d=u.call(r,o);return r.set(o,l),c?ko(l,d)&&Xo(r,"set",o,l):Xo(r,"add",o,l),this},delete(o){const l=jt(this),{has:r,get:s}=Ju(l);let u=r.call(l,o);u||(o=jt(o),u=r.call(l,o)),s&&s.call(l,o);const c=l.delete(o);return u&&Xo(l,"delete",o,void 0),c},clear(){const o=jt(this),l=o.size!==0,r=o.clear();return l&&Xo(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vC(o,e,t)}),n}function gp(e,t){const n=mC(e,t);return(a,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(Mt(n,o)&&o in a?n:a,o,l)}const gC={get:gp(!1,!1)},yC={get:gp(!1,!0)},bC={get:gp(!0,!1)};const c3=new WeakMap,d3=new WeakMap,f3=new WeakMap,wC=new WeakMap;function CC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _C(e){return e.__v_skip||!Object.isExtensible(e)?0:CC(q9(e))}function Nt(e){return il(e)?e:yp(e,!1,fC,gC,c3)}function Vd(e){return yp(e,!1,hC,yC,d3)}function Mr(e){return yp(e,!0,pC,bC,f3)}function yp(e,t,n,a,o){if(!lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=_C(e);if(l===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,l===2?a:n);return o.set(e,s),s}function _r(e){return il(e)?_r(e.__v_raw):!!(e&&e.__v_isReactive)}function il(e){return!!(e&&e.__v_isReadonly)}function Oa(e){return!!(e&&e.__v_isShallow)}function Bd(e){return e?!!e.__v_raw:!1}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Oo(e){return!Mt(e,"__v_skip")&&Object.isExtensible(e)&&j4(e,"__v_skip",!0),e}const Za=e=>lt(e)?Nt(e):e,_s=e=>lt(e)?Mr(e):e;function Yt(e){return e?e.__v_isRef===!0:!1}function V(e){return p3(e,!1)}function qt(e){return p3(e,!0)}function p3(e,t){return Yt(e)?e:new SC(e,t)}class SC{constructor(t,n){this.dep=new mp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:jt(t),this._value=n?t:Za(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Oa(t)||il(t);t=a?t:jt(t),ko(t,n)&&(this._rawValue=t,this._value=a?t:Za(t),this.dep.trigger())}}function _c(e){e.dep&&e.dep.trigger()}function i(e){return Yt(e)?e.value:e}function Rv(e){return Fe(e)?e():i(e)}const xC={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Yt(o)&&!Yt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function h3(e){return _r(e)?e:new Proxy(e,xC)}function Nn(e){const t=be(e)?new Array(e.length):{};for(const n in e)t[n]=v3(e,n);return t}class kC{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=Aa(n)?n:String(n),this._raw=jt(t);let o=!0,l=t;if(!be(t)||Aa(this._key)||!Nd(this._key))do o=!Bd(l)||Oa(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Yt(this._raw[this._key])){const n=this._object[this._key];if(Yt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return rC(this._raw,this._key)}}class EC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bt(e,t,n){return Yt(e)?e:Fe(e)?new EC(e):lt(e)&&arguments.length>1?v3(e,t,n):V(e)}function v3(e,t,n){return new kC(e,t,n)}class TC{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&hn!==this)return t3(this,!0),!0}get value(){const t=this.dep.track();return o3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function MC(e,t,n=!1){let a,o;return Fe(e)?a=e:(a=e.get,o=e.set),new TC(a,o,n)}const Qu={},qc=new WeakMap;let lr;function OC(e,t=!1,n=lr){if(n){let a=qc.get(n);a||qc.set(n,a=[]),a.push(e)}}function $C(e,t,n=cn){const{immediate:a,deep:o,once:l,scheduler:r,augmentJob:s,call:u}=n,c=C=>o?C:Oa(C)||o===!1||o===0?Jo(C,1):Jo(C);let d,f,h,g,p=!1,v=!1;if(Yt(e)?(f=()=>e.value,p=Oa(e)):_r(e)?(f=()=>c(e),p=!0):be(e)?(v=!0,p=e.some(C=>_r(C)||Oa(C)),f=()=>e.map(C=>{if(Yt(C))return C.value;if(_r(C))return c(C);if(Fe(C))return u?u(C,2):C()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){rl();try{h()}finally{sl()}}const C=lr;lr=d;try{return u?u(e,3,[g]):e(g)}finally{lr=C}}:f=It,t&&o){const C=f,S=o===!0?1/0:o;f=()=>Jo(C(),S)}const m=J4(),y=()=>{d.stop(),m&&m.active&&dp(m.effects,d)};if(l&&t){const C=t;t=(...S)=>{C(...S),y()}}let b=v?new Array(e.length).fill(Qu):Qu;const w=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const S=d.run();if(o||p||(v?S.some((k,T)=>ko(k,b[T])):ko(S,b))){h&&h();const k=lr;lr=d;try{const T=[S,b===Qu?void 0:v&&b[0]===Qu?[]:b,g];b=S,u?u(t,3,T):t(...T)}finally{lr=k}}}else d.run()};return s&&s(w),d=new Q4(f),d.scheduler=r?()=>r(w,!1):w,g=C=>OC(C,!1,d),h=d.onStop=()=>{const C=qc.get(d);if(C){if(u)u(C,4);else for(const S of C)S();qc.delete(d)}},t?a?w(!0):b=d.run():r?r(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Jo(e,t=1/0,n){if(t<=0||!lt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Yt(e))Jo(e.value,t,n);else if(be(e))for(let a=0;a{Jo(a,t,n)});else if(Bi(e)){for(const a in e)Jo(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Jo(e[a],t,n)}return e}/** * @vue/runtime-core v3.5.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function hu(e,t,n,a){try{return a?e(...a):e()}catch(o){Bd(o,t,n)}}function Qa(e,t,n,a){if(Fe(e)){const o=hu(e,t,n,a);return o&&Kl(o)&&o.catch(l=>{Bd(l,t,n)}),o}if(be(e)){const o=[];for(let l=0;l>>1,o=ua[a],l=Di(o);l=Di(n)?ua.push(e):ua.splice(RC(t),0,e),e.flags|=1,m3()}}function m3(){qc||(qc=v3.then(y3))}function NC(e){be(e)?ds.push(...e):Rl&&e.id===-1?Rl.splice(ns+1,0,e):e.flags&1||(ds.push(e),e.flags|=1),m3()}function Rv(e,t,n=Co+1){for(;nDi(n)-Di(a));if(ds.length=0,Rl){Rl.push(...t);return}for(Rl=t,ns=0;nse.id==null?e.flags&2?-1:1/0:e.id;function y3(e){try{for(Co=0;Co{a._d&&Xc(-1);const l=Uc(t);let r;try{r=e(...o)}finally{Uc(l),a._d&&Xc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function ft(e,t){if(jn===null)return e;const n=Kd(jn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Fe(t)?t.call(a&&a.proxy):t}}const PC=Symbol.for("v-scx"),IC=()=>Pe(PC);function da(e,t){return yp(e,null,t)}function fe(e,t,n){return yp(e,t,n)}function yp(e,t,n=un){const{immediate:a,deep:o,flush:l,once:r}=n,s=Rn({},n),u=t&&a||!t&&l!=="post";let c;if(Ki){if(l==="sync"){const g=IC();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=It,g.resume=It,g.pause=It,g}}const d=ea;s.call=(g,p,v)=>Qa(g,d,p,v);let f=!1;l==="post"?s.scheduler=g=>{sa(g,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(g,p)=>{p?g():gp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=$C(e,t,s);return Ki&&(c?c.push(h):u&&h()),h}function LC(e,t,n){const a=this.proxy,o=Be(e)?e.includes(".")?w3(a,e):()=>a[e]:e.bind(a,a);let l;Fe(t)?l=t:(l=t.handler,n=t);const r=mu(this),s=yp(o,l.bind(a),n);return r(),s}function w3(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,rr=e=>e&&(e.disabled||e.disabled===""),VC=e=>e&&(e.defer||e.defer===""),Nv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Pv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,L0=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},BC={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,l,r,s,u,c){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:p,createText:v,createComment:m}}=c,y=rr(t.props);let{dynamicChildren:b}=t;const w=(k,T,M)=>{k.shapeFlag&16&&d(k.children,T,M,o,l,r,s,u)},_=(k=t)=>{const T=rr(k.props),M=k.target=L0(k.props,p),A=V0(M,k,v,g);M&&(r!=="svg"&&Nv(M)?r="svg":r!=="mathml"&&Pv(M)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),T||(w(k,M,A),vi(k,!1)))},S=k=>{const T=()=>{Ql.get(k)===T&&(Ql.delete(k),rr(k.props)&&(w(k,n,k.anchor),vi(k,!0)),_(k))};Ql.set(k,T),sa(T,l)};if(e==null){const k=t.el=v(""),T=t.anchor=v("");if(g(k,n,a),g(T,n,a),VC(t.props)||l&&l.pendingBranch){S(t);return}y&&(w(t,n,T),vi(t,!0)),_()}else{t.el=e.el;const k=t.anchor=e.anchor,T=Ql.get(e);if(T){T.flags|=8,Ql.delete(e),S(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,A=t.targetAnchor=e.targetAnchor,O=rr(e.props),I=O?n:M,L=O?k:A;if(r==="svg"||Nv(M)?r="svg":(r==="mathml"||Pv(M))&&(r="mathml"),b?(h(e.dynamicChildren,b,I,o,l,r,s),Tp(e,t,!0)):u||f(e,t,I,L,o,l,r,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qu(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=L0(t.props,p);z&&Qu(t,z,null,c,0)}else O&&Qu(t,M,A,c,1);vi(t,y)}},remove(e,t,n,{um:a,o:{remove:o}},l){const{shapeFlag:r,children:s,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;let g=l||!rr(h);const p=Ql.get(e);if(p&&(p.flags|=8,Ql.delete(e),g=!1),f&&(o(c),o(d)),l&&o(u),r&16)for(let v=0;v{e.isMounted=!0}),Lt(()=>{e.isUnmounting=!0}),e}const Ia=[Function,Array],x3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ia,onEnter:Ia,onAfterEnter:Ia,onEnterCancelled:Ia,onBeforeLeave:Ia,onLeave:Ia,onAfterLeave:Ia,onLeaveCancelled:Ia,onBeforeAppear:Ia,onAppear:Ia,onAfterAppear:Ia,onAppearCancelled:Ia},k3=e=>{const t=e.subTree;return t.component?k3(t.component):t},HC={name:"BaseTransition",props:x3,setup(e,{slots:t}){const n=vt(),a=S3();return()=>{const o=t.default&&bp(t.default(),!0);if(!o||!o.length)return;const l=E3(o),r=jt(e),{mode:s}=r;if(a.isLeaving)return Df(l);const u=Iv(l);if(!u)return Df(l);let c=Hi(u,r,a,n,f=>c=f);u.type!==mn&&Mr(u,c);let d=n.subTree&&Iv(n.subTree);if(d&&d.type!==mn&&!sr(d,u)&&k3(n).type!==mn){let f=Hi(d,r,a,n);if(Mr(d,f),s==="out-in"&&u.type!==mn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Df(l);s==="in-out"&&u.type!==mn?f.delayLeave=(h,g,p)=>{const v=T3(a,d);v[String(d.key)]=d,h[_o]=()=>{g(),h[_o]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function E3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mn){t=n;break}}return t}const FC=HC;function T3(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Hi(e,t,n,a,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,_=String(e.key),S=T3(n,e),k=(A,O)=>{A&&Qa(A,a,9,O)},T=(A,O)=>{const I=O[1];k(A,O),be(A)?A.every(L=>L.length<=1)&&I():A.length<=1&&I()},M={mode:r,persisted:s,beforeEnter(A){let O=u;if(!n.isMounted)if(l)O=m||u;else return;A[_o]&&A[_o](!0);const I=S[_];I&&sr(e,I)&&I.el[_o]&&I.el[_o](),k(O,[A])},enter(A){if(S[_]===e)return;let O=c,I=d,L=f;if(!n.isMounted)if(l)O=y||c,I=b||d,L=w||f;else return;let z=!1;A[oi]=U=>{z||(z=!0,U?k(L,[A]):k(I,[A]),M.delayedLeave&&M.delayedLeave(),A[oi]=void 0)};const q=A[oi].bind(null,!1);O?T(O,[A,q]):q()},leave(A,O){const I=String(e.key);if(A[oi]&&A[oi](!0),n.isUnmounting)return O();k(h,[A]);let L=!1;A[_o]=q=>{L||(L=!0,O(),q?k(v,[A]):k(p,[A]),A[_o]=void 0,S[I]===e&&delete S[I])};const z=A[_o].bind(null,!1);S[I]=e,g?T(g,[A,z]):z()},clone(A){const O=Hi(A,t,n,a,o);return o&&o(O),O}};return M}function Df(e){if(zd(e))return e=Io(e),e.children=null,e}function Iv(e){if(!zd(e))return _3(e.type)&&e.children?E3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bp(e,t=!1,n){let a=[],o=0;for(let l=0;l1)for(let l=0;lki(v,t&&(be(t)?t[m]:t),n,a,o));return}if(fs(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&ki(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?Kd(a.component):a.el,r=o?null:l,{i:s,r:u}=e,c=t&&t.r,d=s.refs===un?s.refs={}:s.refs,f=s.setupState,h=jt(f),g=f===un?F4:v=>Lv(d,v)?!1:Mt(h,v),p=(v,m)=>!(m&&Lv(d,m));if(c!=null&&c!==u){if(Vv(t),Be(c))d[c]=null,g(c)&&(f[c]=null);else if(Yt(c)){const v=t;p(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))hu(u,s,12,[r,d]);else{const v=Be(u),m=Yt(u);if(v||m){const y=()=>{if(e.f){const b=v?g(u)?f[u]:d[u]:p()||!e.k?u.value:d[e.k];if(o)be(b)&&up(b,l);else if(be(b))b.includes(l)||b.push(l);else if(v)d[u]=[l],g(u)&&(f[u]=d[u]);else{const w=[l];p(u,e.k)&&(u.value=w),e.k&&(d[e.k]=w)}}else v?(d[u]=r,g(u)&&(f[u]=r)):m&&(p(u,e.k)&&(u.value=r),e.k&&(d[e.k]=r))};if(r){const b=()=>{y(),Yc.delete(e)};b.id=-1,Yc.set(e,b),sa(b,n)}else Vv(e),y()}}}function Vv(e){const t=Yc.get(e);t&&(t.flags|=8,Yc.delete(e))}Pd().requestIdleCallback;Pd().cancelIdleCallback;const fs=e=>!!e.type.__asyncLoader,zd=e=>e.type.__isKeepAlive;function vu(e,t){O3(e,"a",t)}function wp(e,t){O3(e,"da",t)}function O3(e,t,n=ea){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Dd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)zd(o.parent.vnode)&&KC(a,t,n,o),o=o.parent}}function KC(e,t,n,a){const o=Dd(t,e,a,!0);Fs(()=>{up(a[t],o)},n)}function Dd(e,t,n=ea,a=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{rl();const s=mu(n),u=Qa(t,n,e,r);return s(),sl(),u});return a?o.unshift(l):o.push(l),l}}const ml=e=>(t,n=ea)=>{(!Ki||e==="sp")&&Dd(e,(...a)=>t(...a),n)},Hd=ml("bm"),gt=ml("m"),Cp=ml("bu"),so=ml("u"),Lt=ml("bum"),Fs=ml("um"),WC=ml("sp"),jC=ml("rtg"),qC=ml("rtc");function UC(e,t=ea){Dd("ec",e,t)}const _p="components",YC="directives";function Ot(e,t){return xp(_p,e,!0,t)||e}const $3=Symbol.for("v-ndc");function dt(e){return Be(e)?xp(_p,e,!1)||e:e||$3}function Sp(e){return xp(YC,e)}function xp(e,t,n=!0,a=!1){const o=jn||ea;if(o){const l=o.type;if(e===_p){const s=$_(l,!1);if(s&&(s===t||s===Hn(t)||s===pu(Hn(t))))return l}const r=Bv(o[e]||l[e],t)||Bv(o.appContext[e],t);return!r&&a?l:r}}function Bv(e,t){return e&&(e[t]||e[Hn(t)]||e[pu(Hn(t))])}function _t(e,t,n,a){let o;const l=n,r=be(e);if(r||Be(e)){const s=r&&Cr(e);let u=!1,c=!1;s&&(u=!Oa(e),c=il(e),e=Id(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(s,u,void 0,l));else{const s=Object.keys(e);o=new Array(s.length);for(let u=0,c=s.length;u{const l=a.fn(...o);return l&&(l.key=a.key),l}:a.fn)}return e}function oe(e,t,n={},a,o){if(jn.ce||jn.parent&&fs(jn.parent)&&jn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),C(),ie(Ke,null,[Q("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),C();const r=l&&A3(l(n)),s=n.key||r&&r.key,u=ie(Ke,{key:(s&&!Aa(s)?s:`_${t}`)+(!r&&a?"_fb":"")},r||(a?a():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function A3(e){return e.some(t=>Wt(t)?!(t.type===mn||t.type===Ke&&!A3(t.children)):!0)?e:null}function GC(e,t){const n={};for(const a in e)n[_i(a)]=e[a];return n}const B0=e=>e?J3(e)?Kd(e):B0(e.parent):null,Ei=Rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>B0(e.parent),$root:e=>B0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>P3(e),$forceUpdate:e=>e.f||(e.f=()=>{gp(e.update)}),$nextTick:e=>e.n||(e.n=Le.bind(e.proxy)),$watch:e=>LC.bind(e)}),Hf=(e,t)=>e!==un&&!e.__isScriptSetup&&Mt(e,t),XC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:l,accessCache:r,type:s,appContext:u}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(Hf(a,t))return r[t]=1,a[t];if(o!==un&&Mt(o,t))return r[t]=2,o[t];if(Mt(l,t))return r[t]=3,l[t];if(n!==un&&Mt(n,t))return r[t]=4,n[t];z0&&(r[t]=0)}}const c=Ei[t];let d,f;if(c)return t==="$attrs"&&Qn(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==un&&Mt(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:l}=e;return Hf(o,t)?(o[t]=n,!0):a!==un&&Mt(a,t)?(a[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:l,type:r}},s){let u;return!!(n[s]||e!==un&&s[0]!=="$"&&Mt(e,s)||Hf(t,s)||Mt(l,s)||Mt(a,s)||Mt(Ei,s)||Mt(o.config.globalProperties,s)||(u=r.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(){return R3().slots}function gl(){return R3().attrs}function R3(e){const t=vt();return t.setupContext||(t.setupContext=Q3(t))}function zv(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let z0=!0;function JC(e){const t=P3(e),n=e.proxy,a=e.ctx;z0=!1,t.beforeCreate&&Dv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:p,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:_,render:S,renderTracked:k,renderTriggered:T,errorCaptured:M,serverPrefetch:A,expose:O,inheritAttrs:I,components:L,directives:z,filters:q}=t;if(c&&ZC(c,a,null),r)for(const N in r){const P=r[N];Fe(P)&&(a[N]=P.bind(n))}if(o){const N=o.call(n,n);lt(N)&&(e.data=Rt(N))}if(z0=!0,l)for(const N in l){const P=l[N],B=Fe(P)?P.bind(n,n):Fe(P.get)?P.get.bind(n,n):It,K=!Fe(P)&&Fe(P.set)?P.set.bind(n):It,W=x({get:B,set:K});Object.defineProperty(a,N,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(s)for(const N in s)N3(s[N],a,n,N);if(u){const N=Fe(u)?u.call(n):u;Reflect.ownKeys(N).forEach(P=>{wt(P,N[P])})}d&&Dv(d,e,"c");function F(N,P){be(P)?P.forEach(B=>N(B.bind(n))):P&&N(P.bind(n))}if(F(Hd,f),F(gt,h),F(Cp,g),F(so,p),F(vu,v),F(wp,m),F(UC,M),F(qC,k),F(jC,T),F(Lt,b),F(Fs,_),F(WC,A),be(O))if(O.length){const N=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(N,P,{get:()=>n[P],set:B=>n[P]=B,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===It&&(e.render=S),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),z&&(e.directives=z),A&&M3(e)}function ZC(e,t,n=It){be(e)&&(e=D0(e));for(const a in e){const o=e[a];let l;lt(o)?"default"in o?l=Pe(o.from||a,o.default,!0):l=Pe(o.from||a):l=Pe(o),Yt(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[a]=l}}function Dv(e,t,n){Qa(be(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function N3(e,t,n,a){let o=a.includes(".")?w3(n,a):()=>n[a];if(Be(e)){const l=t[e];Fe(l)&&fe(o,l)}else if(Fe(e))fe(o,e.bind(n));else if(lt(e))if(be(e))e.forEach(l=>N3(l,t,n,a));else{const l=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(l)&&fe(o,l,e)}}function P3(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,s=l.get(t);let u;return s?u=s:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>Gc(u,c,r,!0)),Gc(u,t,r)),lt(t)&&l.set(t,u),u}function Gc(e,t,n,a=!1){const{mixins:o,extends:l}=t;l&&Gc(e,l,n,!0),o&&o.forEach(r=>Gc(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=QC[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const QC={data:Hv,props:Fv,emits:Fv,methods:mi,computed:mi,beforeCreate:ra,created:ra,beforeMount:ra,mounted:ra,beforeUpdate:ra,updated:ra,beforeDestroy:ra,beforeUnmount:ra,destroyed:ra,unmounted:ra,activated:ra,deactivated:ra,errorCaptured:ra,serverPrefetch:ra,components:mi,directives:mi,watch:t_,provide:Hv,inject:e_};function Hv(e,t){return t?e?function(){return Rn(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function e_(e,t){return mi(D0(e),D0(t))}function D0(e){if(be(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Hn(t)}Modifiers`]||e[`${vl(t)}Modifiers`];function l_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||un;let o=n;const l=t.startsWith("update:"),r=l&&o_(a,t.slice(7));r&&(r.trim&&(o=n.map(d=>Be(d)?d.trim():d)),r.number&&(o=n.map(cp)));let s,u=a[s=_i(t)]||a[s=_i(Hn(t))];!u&&l&&(u=a[s=_i(vl(t))]),u&&Qa(u,e,6,o);const c=a[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qa(c,e,6,o)}}const r_=new WeakMap;function L3(e,t,n=!1){const a=n?r_:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const l=e.emits;let r={},s=!1;if(!Fe(e)){const u=c=>{const d=L3(c,t,!0);d&&(s=!0,Rn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!s?(lt(e)&&a.set(e,null),null):(be(l)?l.forEach(u=>r[u]=null):Rn(r,l),lt(e)&&a.set(e,r),r)}function Fd(e,t){return!e||!Od(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,vl(t))||Mt(e,t))}function Kv(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[l],slots:r,attrs:s,emit:u,render:c,renderCache:d,props:f,data:h,setupState:g,ctx:p,inheritAttrs:v}=e,m=Uc(e);let y,b;try{if(n.shapeFlag&4){const _=o||a,S=_;y=xo(c.call(S,_,d,f,g,h,p)),b=s}else{const _=t;y=xo(_.length>1?_(f,{attrs:s,slots:r,emit:u}):_(f,null)),b=t.props?s:s_(s)}}catch(_){Ti.length=0,Bd(_,e,1),y=Q(mn)}let w=y;if(b&&v!==!1){const _=Object.keys(b),{shapeFlag:S}=w;_.length&&S&7&&(l&&_.some($d)&&(b=i_(b,l)),w=Io(w,b,!1,!0))}return n.dirs&&(w=Io(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Mr(w,n.transition),y=w,Uc(m),y}const s_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Od(n))&&((t||(t={}))[n]=e[n]);return t},i_=(e,t)=>{const n={};for(const a in e)(!$d(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function u_(e,t,n){const{props:a,children:o,component:l}=e,{props:r,children:s,patchFlag:u}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?Wv(a,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(B3),D3=e=>Object.getPrototypeOf(e)===B3;function d_(e,t,n,a=!1){const o={},l=z3();e.propsDefaults=Object.create(null),H3(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=a?o:Ld(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function f_(e,t,n,a){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,s=jt(o),[u]=e.propsOptions;let c=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,g]=F3(f,t,!0);Rn(r,h),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!u)return lt(e)&&a.set(e,us),us;if(be(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Ep=e=>be(e)?e.map(xo):[xo(e)],h_=(e,t,n)=>{if(t._n)return t;const a=ae((...o)=>Ep(t(...o)),n);return a._c=!1,a},K3=(e,t,n)=>{const a=e._ctx;for(const o in e){if(kp(o))continue;const l=e[o];if(Fe(l))t[o]=h_(o,l,a);else if(l!=null){const r=Ep(l);t[o]=()=>r}}},W3=(e,t)=>{const n=Ep(t);e.slots.default=()=>n},j3=(e,t,n)=>{for(const a in t)(n||!kp(a))&&(e[a]=t[a])},v_=(e,t,n)=>{const a=e.slots=z3();if(e.vnode.shapeFlag&32){const o=t._;o?(j3(a,t,n),n&&W4(a,"_",o,!0)):K3(t,a)}else t&&W3(e,t)},m_=(e,t,n)=>{const{vnode:a,slots:o}=e;let l=!0,r=un;if(a.shapeFlag&32){const s=t._;s?n&&s===1?l=!1:j3(o,t,n):(l=!t.$stable,K3(t,o)),r=t}else t&&(W3(e,t),r={default:1});if(l)for(const s in o)!kp(s)&&r[s]==null&&delete o[s]},sa=C_;function g_(e){return y_(e)}function y_(e,t){const n=Pd();n.__VUE__=!0;const{insert:a,remove:o,patchProp:l,createElement:r,createText:s,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=It,insertStaticContent:p}=e,v=(H,Z,le,ce=null,ge=null,me=null,Ae=void 0,Ne=null,Re=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!sr(H,Z)&&(ce=ne(H),j(H,ge,me,!0),H=null),Z.patchFlag===-2&&(Re=!1,Z.dynamicChildren=null);const{type:ye,ref:Ee,shapeFlag:we}=Z;switch(ye){case Ks:m(H,Z,le,ce);break;case mn:y(H,Z,le,ce);break;case _c:H==null&&b(Z,le,ce,Ae);break;case Ke:L(H,Z,le,ce,ge,me,Ae,Ne,Re);break;default:we&1?S(H,Z,le,ce,ge,me,Ae,Ne,Re):we&6?z(H,Z,le,ce,ge,me,Ae,Ne,Re):(we&64||we&128)&&ye.process(H,Z,le,ce,ge,me,Ae,Ne,Re,Y)}Ee!=null&&ge?ki(Ee,H&&H.ref,me,Z||H,!Z):Ee==null&&H&&H.ref!=null&&ki(H.ref,null,me,H,!0)},m=(H,Z,le,ce)=>{if(H==null)a(Z.el=s(Z.children),le,ce);else{const ge=Z.el=H.el;Z.children!==H.children&&c(ge,Z.children)}},y=(H,Z,le,ce)=>{H==null?a(Z.el=u(Z.children||""),le,ce):Z.el=H.el},b=(H,Z,le,ce)=>{[H.el,H.anchor]=p(H.children,Z,le,ce,H.el,H.anchor)},w=({el:H,anchor:Z},le,ce)=>{let ge;for(;H&&H!==Z;)ge=h(H),a(H,le,ce),H=ge;a(Z,le,ce)},_=({el:H,anchor:Z})=>{let le;for(;H&&H!==Z;)le=h(H),o(H),H=le;o(Z)},S=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{if(Z.type==="svg"?Ae="svg":Z.type==="math"&&(Ae="mathml"),H==null)k(Z,le,ce,ge,me,Ae,Ne,Re);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),A(H,Z,ge,me,Ae,Ne,Re)}finally{ye&&ye._endPatch()}}},k=(H,Z,le,ce,ge,me,Ae,Ne)=>{let Re,ye;const{props:Ee,shapeFlag:we,transition:Ie,dirs:ze}=H;if(Re=H.el=r(H.type,me,Ee&&Ee.is,Ee),we&8?d(Re,H.children):we&16&&M(H.children,Re,null,ce,ge,Ff(H,me),Ae,Ne),ze&&Zl(H,null,ce,"created"),T(Re,H,H.scopeId,Ae,ce),Ee){for(const nt in Ee)nt!=="value"&&!Ci(nt)&&l(Re,nt,null,Ee[nt],me,ce);"value"in Ee&&l(Re,"value",null,Ee.value,me),(ye=Ee.onVnodeBeforeMount)&&yo(ye,ce,H)}ze&&Zl(H,null,ce,"beforeMount");const et=b_(ge,Ie);et&&Ie.beforeEnter(Re),a(Re,Z,le),((ye=Ee&&Ee.onVnodeMounted)||et||ze)&&sa(()=>{try{ye&&yo(ye,ce,H),et&&Ie.enter(Re),ze&&Zl(H,null,ce,"mounted")}finally{}},ge)},T=(H,Z,le,ce,ge)=>{if(le&&g(H,le),ce)for(let me=0;me{for(let ye=Re;ye{const Ne=Z.el=H.el;let{patchFlag:Re,dynamicChildren:ye,dirs:Ee}=Z;Re|=H.patchFlag&16;const we=H.props||un,Ie=Z.props||un;let ze;if(le&&er(le,!1),(ze=Ie.onVnodeBeforeUpdate)&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"beforeUpdate"),le&&er(le,!0),(we.innerHTML&&Ie.innerHTML==null||we.textContent&&Ie.textContent==null)&&d(Ne,""),ye?O(H.dynamicChildren,ye,Ne,le,ce,Ff(Z,ge),me):Ae||P(H,Z,Ne,null,le,ce,Ff(Z,ge),me,!1),Re>0){if(Re&16)I(Ne,we,Ie,le,ge);else if(Re&2&&we.class!==Ie.class&&l(Ne,"class",null,Ie.class,ge),Re&4&&l(Ne,"style",we.style,Ie.style,ge),Re&8){const et=Z.dynamicProps;for(let nt=0;nt{ze&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"updated")},ce)},O=(H,Z,le,ce,ge,me,Ae)=>{for(let Ne=0;Ne{if(Z!==le){if(Z!==un)for(const me in Z)!Ci(me)&&!(me in le)&&l(H,me,Z[me],null,ge,ce);for(const me in le){if(Ci(me))continue;const Ae=le[me],Ne=Z[me];Ae!==Ne&&me!=="value"&&l(H,me,Ne,Ae,ge,ce)}"value"in le&&l(H,"value",Z.value,le.value,ge)}},L=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{const ye=Z.el=H?H.el:s(""),Ee=Z.anchor=H?H.anchor:s("");let{patchFlag:we,dynamicChildren:Ie,slotScopeIds:ze}=Z;ze&&(Ne=Ne?Ne.concat(ze):ze),H==null?(a(ye,le,ce),a(Ee,le,ce),M(Z.children||[],le,Ee,ge,me,Ae,Ne,Re)):we>0&&we&64&&Ie&&H.dynamicChildren&&H.dynamicChildren.length===Ie.length?(O(H.dynamicChildren,Ie,le,ge,me,Ae,Ne),(Z.key!=null||ge&&Z===ge.subTree)&&Tp(H,Z,!0)):P(H,Z,le,Ee,ge,me,Ae,Ne,Re)},z=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{Z.slotScopeIds=Ne,H==null?Z.shapeFlag&512?ge.ctx.activate(Z,le,ce,Ae,Re):q(Z,le,ce,ge,me,Ae,Re):U(H,Z,Re)},q=(H,Z,le,ce,ge,me,Ae)=>{const Ne=H.component=E_(H,ce,ge);if(zd(H)&&(Ne.ctx.renderer=Y),T_(Ne,!1,Ae),Ne.asyncDep){if(ge&&ge.registerDep(Ne,F,Ae),!H.el){const Re=Ne.subTree=Q(mn);y(null,Re,Z,le),H.placeholder=Re.el}}else F(Ne,H,Z,le,ge,me,Ae)},U=(H,Z,le)=>{const ce=Z.component=H.component;if(u_(H,Z,le))if(ce.asyncDep&&!ce.asyncResolved){N(ce,Z,le);return}else ce.next=Z,ce.update();else Z.el=H.el,ce.vnode=Z},F=(H,Z,le,ce,ge,me,Ae)=>{const Ne=()=>{if(H.isMounted){let{next:we,bu:Ie,u:ze,parent:et,vnode:nt}=H;{const je=q3(H);if(je){we&&(we.el=nt.el,N(H,we,Ae)),je.asyncDep.then(()=>{sa(()=>{H.isUnmounted||ye()},ge)});return}}let at=we,Me;er(H,!1),we?(we.el=nt.el,N(H,we,Ae)):we=nt,Ie&&wc(Ie),(Me=we.props&&we.props.onVnodeBeforeUpdate)&&yo(Me,et,we,nt),er(H,!0);const Ge=Kv(H),ut=H.subTree;H.subTree=Ge,v(ut,Ge,f(ut.el),ne(ut),H,ge,me),we.el=Ge.el,at===null&&c_(H,Ge.el),ze&&sa(ze,ge),(Me=we.props&&we.props.onVnodeUpdated)&&sa(()=>yo(Me,et,we,nt),ge)}else{let we;const{el:Ie,props:ze}=Z,{bm:et,m:nt,parent:at,root:Me,type:Ge}=H,ut=fs(Z);er(H,!1),et&&wc(et),!ut&&(we=ze&&ze.onVnodeBeforeMount)&&yo(we,at,Z),er(H,!0);{Me.ce&&Me.ce._hasShadowRoot()&&Me.ce._injectChildStyle(Ge,H.parent?H.parent.type:void 0);const je=H.subTree=Kv(H);v(null,je,le,ce,H,ge,me),Z.el=je.el}if(nt&&sa(nt,ge),!ut&&(we=ze&&ze.onVnodeMounted)){const je=Z;sa(()=>yo(we,at,je),ge)}(Z.shapeFlag&256||at&&fs(at.vnode)&&at.vnode.shapeFlag&256)&&H.a&&sa(H.a,ge),H.isMounted=!0,Z=le=ce=null}};H.scope.on();const Re=H.effect=new Z4(Ne);H.scope.off();const ye=H.update=Re.run.bind(Re),Ee=H.job=Re.runIfDirty.bind(Re);Ee.i=H,Ee.id=H.uid,Re.scheduler=()=>gp(Ee),er(H,!0),ye()},N=(H,Z,le)=>{Z.component=H;const ce=H.vnode.props;H.vnode=Z,H.next=null,f_(H,Z.props,ce,le),m_(H,Z.children,le),rl(),Rv(H),sl()},P=(H,Z,le,ce,ge,me,Ae,Ne,Re=!1)=>{const ye=H&&H.children,Ee=H?H.shapeFlag:0,we=Z.children,{patchFlag:Ie,shapeFlag:ze}=Z;if(Ie>0){if(Ie&128){K(ye,we,le,ce,ge,me,Ae,Ne,Re);return}else if(Ie&256){B(ye,we,le,ce,ge,me,Ae,Ne,Re);return}}ze&8?(Ee&16&&ue(ye,ge,me),we!==ye&&d(le,we)):Ee&16?ze&16?K(ye,we,le,ce,ge,me,Ae,Ne,Re):ue(ye,ge,me,!0):(Ee&8&&d(le,""),ze&16&&M(we,le,ce,ge,me,Ae,Ne,Re))},B=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{H=H||us,Z=Z||us;const ye=H.length,Ee=Z.length,we=Math.min(ye,Ee);let Ie;for(Ie=0;IeEe?ue(H,ge,me,!0,!1,we):M(Z,le,ce,ge,me,Ae,Ne,Re,we)},K=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{let ye=0;const Ee=Z.length;let we=H.length-1,Ie=Ee-1;for(;ye<=we&&ye<=Ie;){const ze=H[ye],et=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);if(sr(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;ye++}for(;ye<=we&&ye<=Ie;){const ze=H[we],et=Z[Ie]=Re?Yo(Z[Ie]):xo(Z[Ie]);if(sr(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;we--,Ie--}if(ye>we){if(ye<=Ie){const ze=Ie+1,et=zeIe)for(;ye<=we;)j(H[ye],ge,me,!0),ye++;else{const ze=ye,et=ye,nt=new Map;for(ye=et;ye<=Ie;ye++){const he=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);he.key!=null&&nt.set(he.key,ye)}let at,Me=0;const Ge=Ie-et+1;let ut=!1,je=0;const tt=new Array(Ge);for(ye=0;ye=Ge){j(he,ge,me,!0);continue}let Ve;if(he.key!=null)Ve=nt.get(he.key);else for(at=et;at<=Ie;at++)if(tt[at-et]===0&&sr(he,Z[at])){Ve=at;break}Ve===void 0?j(he,ge,me,!0):(tt[Ve-et]=ye+1,Ve>=je?je=Ve:ut=!0,v(he,Z[Ve],le,null,ge,me,Ae,Ne,Re),Me++)}const yt=ut?w_(tt):us;for(at=yt.length-1,ye=Ge-1;ye>=0;ye--){const he=et+ye,Ve=Z[he],pe=Z[he+1],Te=he+1{const{el:me,type:Ae,transition:Ne,children:Re,shapeFlag:ye}=H;if(ye&6){W(H.component.subTree,Z,le,ce);return}if(ye&128){H.suspense.move(Z,le,ce);return}if(ye&64){Ae.move(H,Z,le,Y);return}if(Ae===Ke){a(me,Z,le);for(let we=0;weNe.enter(me),ge);else{const{leave:we,delayLeave:Ie,afterLeave:ze}=Ne,et=()=>{H.ctx.isUnmounted?o(me):a(me,Z,le)},nt=()=>{me._isLeaving&&me[_o](!0),we(me,()=>{et(),ze&&ze()})};Ie?Ie(me,et,nt):nt()}else a(me,Z,le)},j=(H,Z,le,ce=!1,ge=!1)=>{const{type:me,props:Ae,ref:Ne,children:Re,dynamicChildren:ye,shapeFlag:Ee,patchFlag:we,dirs:Ie,cacheIndex:ze,memo:et}=H;if(we===-2&&(ge=!1),Ne!=null&&(rl(),ki(Ne,null,le,H,!0),sl()),ze!=null&&(Z.renderCache[ze]=void 0),Ee&256){Z.ctx.deactivate(H);return}const nt=Ee&1&&Ie,at=!fs(H);let Me;if(at&&(Me=Ae&&Ae.onVnodeBeforeUnmount)&&yo(Me,Z,H),Ee&6)te(H.component,le,ce);else{if(Ee&128){H.suspense.unmount(le,ce);return}nt&&Zl(H,null,Z,"beforeUnmount"),Ee&64?H.type.remove(H,Z,le,Y,ce):ye&&!ye.hasOnce&&(me!==Ke||we>0&&we&64)?ue(ye,Z,le,!1,!0):(me===Ke&&we&384||!ge&&Ee&16)&&ue(Re,Z,le),ce&&G(H)}const Ge=et!=null&&ze==null;(at&&(Me=Ae&&Ae.onVnodeUnmounted)||nt||Ge)&&sa(()=>{Me&&yo(Me,Z,H),nt&&Zl(H,null,Z,"unmounted"),Ge&&(H.el=null)},le)},G=H=>{const{type:Z,el:le,anchor:ce,transition:ge}=H;if(Z===Ke){ee(le,ce);return}if(Z===_c){_(H);return}const me=()=>{o(le),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:Ae,delayLeave:Ne}=ge,Re=()=>Ae(le,me);Ne?Ne(H.el,me,Re):Re()}else me()},ee=(H,Z)=>{let le;for(;H!==Z;)le=h(H),o(H),H=le;o(Z)},te=(H,Z,le)=>{const{bum:ce,scope:ge,job:me,subTree:Ae,um:Ne,m:Re,a:ye}=H;qv(Re),qv(ye),ce&&wc(ce),ge.stop(),me&&(me.flags|=8,j(Ae,H,Z,le)),Ne&&sa(Ne,Z),sa(()=>{H.isUnmounted=!0},Z)},ue=(H,Z,le,ce=!1,ge=!1,me=0)=>{for(let Ae=me;Ae{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=h(H.anchor||H.el),le=Z&&Z[C3];return le?h(le):Z};let de=!1;const se=(H,Z,le)=>{let ce;H==null?Z._vnode&&(j(Z._vnode,null,null,!0),ce=Z._vnode.component):v(Z._vnode||null,H,Z,null,null,null,le),Z._vnode=H,de||(de=!0,Rv(ce),g3(),de=!1)},Y={p:v,um:j,m:W,r:G,mt:q,mc:M,pc:P,pbc:O,n:ne,o:e};return{render:se,hydrate:void 0,createApp:a_(se)}}function Ff({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function er({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function b_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tp(e,t,n=!1){const a=e.children,o=t.children;if(be(a)&&be(o))for(let l=0;l>1,e[n[s]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function q3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:q3(t)}function qv(e){if(e)for(let t=0;te.__isSuspense;function C_(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):NC(e)}const Ke=Symbol.for("v-fgt"),Ks=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),_c=Symbol.for("v-stc"),Ti=[];let Ea=null;function C(e=!1){Ti.push(Ea=e?null:[])}function __(){Ti.pop(),Ea=Ti[Ti.length-1]||null}let Fi=1;function Xc(e,t=!1){Fi+=e,e<0&&Ea&&t&&(Ea.hasOnce=!0)}function G3(e){return e.dynamicChildren=Fi>0?Ea||us:null,__(),Fi>0&&Ea&&Ea.push(e),e}function $(e,t,n,a,o,l){return G3(E(e,t,n,a,o,l,!0))}function ie(e,t,n,a,o){return G3(Q(e,t,n,a,o,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}const X3=({key:e})=>e??null,Sc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Yt(e)||Fe(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,a=0,o=null,l=e===Ke?0:1,r=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&X3(t),ref:t&&Sc(t),scopeId:b3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:jn};return s?(Mp(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),Fi>0&&!r&&Ea&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&Ea.push(u),u}const Q=S_;function S_(e,t=null,n=null,a=0,o=null,l=!1){if((!e||e===$3)&&(e=mn),Wt(e)){const s=Io(e,t,!0);return n&&Mp(s,n),Fi>0&&!l&&Ea&&(s.shapeFlag&6?Ea[Ea.indexOf(e)]=s:Ea.push(s)),s.patchFlag=-2,s}if(A_(e)&&(e=e.__vccOpts),t){t=al(t);let{class:s,style:u}=t;s&&!Be(s)&&(t.class=R(s)),lt(u)&&(Vd(u)&&!be(u)&&(u=Rn({},u)),t.style=qe(u))}const r=Be(e)?1:Y3(e)?128:_3(e)?64:lt(e)?4:Fe(e)?2:0;return E(e,t,n,a,o,r,l,!0)}function al(e){return e?Vd(e)||D3(e)?Rn({},e):e:null}function Io(e,t,n=!1,a=!1){const{props:o,ref:l,patchFlag:r,children:s,transition:u}=e,c=t?ht(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&X3(c),ref:t&&t.ref?n&&l?be(l)?l.concat(Sc(t)):[l,Sc(t)]:Sc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Mr(d,u.clone(d)),d}function St(e=" ",t=0){return Q(Ks,null,e,t)}function hde(e,t){const n=Q(_c,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(C(),ie(mn,null,e)):Q(mn,null,e)}function xo(e){return e==null||typeof e=="boolean"?Q(mn):be(e)?Q(Ke,null,e.slice()):Wt(e)?Yo(e):Q(Ks,null,String(e))}function Yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Mp(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Mp(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!D3(t)?t._ctx=jn:o===3&&jn&&(jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),a&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function ht(...e){const t={};for(let n=0;nea||jn;let Jc,F0;{const e=Pd(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};Jc=t("__VUE_INSTANCE_SETTERS__",n=>ea=n),F0=t("__VUE_SSR_SETTERS__",n=>Ki=n)}const mu=e=>{const t=ea;return Jc(e),e.scope.on(),()=>{e.scope.off(),Jc(t)}},Uv=()=>{ea&&ea.scope.off(),Jc(null)};function J3(e){return e.vnode.shapeFlag&4}let Ki=!1;function T_(e,t=!1,n=!1){t&&F0(t);const{props:a,children:o}=e.vnode,l=J3(e);d_(e,a,l,t),v_(e,o,n||t);const r=l?M_(e,t):void 0;return t&&F0(!1),r}function M_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,XC);const{setup:a}=n;if(a){rl();const o=e.setupContext=a.length>1?Q3(e):null,l=mu(e),r=hu(a,e,0,[e.props,o]),s=Kl(r);if(sl(),l(),(s||e.sp)&&!fs(e)&&M3(e),s){if(r.then(Uv,Uv),t)return r.then(u=>{Yv(e,u)}).catch(u=>{Bd(u,e,0)});e.asyncDep=r}else Yv(e,r)}else Z3(e)}function Yv(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lt(t)&&(e.setupState=p3(t)),Z3(e)}function Z3(e,t,n){const a=e.type;e.render||(e.render=a.render||It);{const o=mu(e);rl();try{JC(e)}finally{sl(),o()}}}const O_={get(e,t){return Qn(e,"get",""),e[t]}};function Q3(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,O_),slots:e.slots,emit:e.emit,expose:t}}function Kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(p3(Oo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ei)return Ei[n](e)},has(t,n){return n in t||n in Ei}})):e.proxy}function $_(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function A_(e){return Fe(e)&&"__vccOpts"in e}const x=(e,t)=>MC(e,t,Ki);function Ye(e,t,n){try{Xc(-1);const a=arguments.length;return a===2?lt(t)&&!be(t)?Wt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Wt(n)&&(n=[n]),Q(e,t,n))}finally{Xc(1)}}const R_="3.5.32",N_=It;/** +**/function vu(e,t,n,a){try{return a?e(...a):e()}catch(o){zd(o,t,n)}}function Qa(e,t,n,a){if(Fe(e)){const o=vu(e,t,n,a);return o&&Kl(o)&&o.catch(l=>{zd(l,t,n)}),o}if(be(e)){const o=[];for(let l=0;l>>1,o=ua[a],l=Hi(o);l=Hi(n)?ua.push(e):ua.splice(RC(t),0,e),e.flags|=1,g3()}}function g3(){Uc||(Uc=m3.then(b3))}function NC(e){be(e)?fs.push(...e):Rl&&e.id===-1?Rl.splice(as+1,0,e):e.flags&1||(fs.push(e),e.flags|=1),g3()}function Nv(e,t,n=Co+1){for(;nHi(n)-Hi(a));if(fs.length=0,Rl){Rl.push(...t);return}for(Rl=t,as=0;ase.id==null?e.flags&2?-1:1/0:e.id;function b3(e){try{for(Co=0;Co{a._d&&Jc(-1);const l=Yc(t);let r;try{r=e(...o)}finally{Yc(l),a._d&&Jc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function ft(e,t){if(jn===null)return e;const n=Wd(jn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Fe(t)?t.call(a&&a.proxy):t}}const PC=Symbol.for("v-scx"),IC=()=>Pe(PC);function da(e,t){return wp(e,null,t)}function fe(e,t,n){return wp(e,t,n)}function wp(e,t,n=cn){const{immediate:a,deep:o,flush:l,once:r}=n,s=Rn({},n),u=t&&a||!t&&l!=="post";let c;if(Wi){if(l==="sync"){const g=IC();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=It,g.resume=It,g.pause=It,g}}const d=ea;s.call=(g,p,v)=>Qa(g,d,p,v);let f=!1;l==="post"?s.scheduler=g=>{sa(g,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(g,p)=>{p?g():bp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=$C(e,t,s);return Wi&&(c?c.push(h):u&&h()),h}function LC(e,t,n){const a=this.proxy,o=Be(e)?e.includes(".")?C3(a,e):()=>a[e]:e.bind(a,a);let l;Fe(t)?l=t:(l=t.handler,n=t);const r=gu(this),s=wp(o,l.bind(a),n);return r(),s}function C3(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,sr=e=>e&&(e.disabled||e.disabled===""),VC=e=>e&&(e.defer||e.defer===""),Pv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Iv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,B0=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},BC={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,l,r,s,u,c){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:p,createText:v,createComment:m}}=c,y=sr(t.props);let{dynamicChildren:b}=t;const w=(k,T,M)=>{k.shapeFlag&16&&d(k.children,T,M,o,l,r,s,u)},C=(k=t)=>{const T=sr(k.props),M=k.target=B0(k.props,p),A=z0(M,k,v,g);M&&(r!=="svg"&&Pv(M)?r="svg":r!=="mathml"&&Iv(M)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),T||(w(k,M,A),mi(k,!1)))},S=k=>{const T=()=>{Ql.get(k)===T&&(Ql.delete(k),sr(k.props)&&(w(k,n,k.anchor),mi(k,!0)),C(k))};Ql.set(k,T),sa(T,l)};if(e==null){const k=t.el=v(""),T=t.anchor=v("");if(g(k,n,a),g(T,n,a),VC(t.props)||l&&l.pendingBranch){S(t);return}y&&(w(t,n,T),mi(t,!0)),C()}else{t.el=e.el;const k=t.anchor=e.anchor,T=Ql.get(e);if(T){T.flags|=8,Ql.delete(e),S(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,A=t.targetAnchor=e.targetAnchor,O=sr(e.props),I=O?n:M,L=O?k:A;if(r==="svg"||Pv(M)?r="svg":(r==="mathml"||Iv(M))&&(r="mathml"),b?(h(e.dynamicChildren,b,I,o,l,r,s),Op(e,t,!0)):u||f(e,t,I,L,o,l,r,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ec(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=B0(t.props,p);z&&ec(t,z,null,c,0)}else O&&ec(t,M,A,c,1);mi(t,y)}},remove(e,t,n,{um:a,o:{remove:o}},l){const{shapeFlag:r,children:s,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;let g=l||!sr(h);const p=Ql.get(e);if(p&&(p.flags|=8,Ql.delete(e),g=!1),f&&(o(c),o(d)),l&&o(u),r&16)for(let v=0;v{e.isMounted=!0}),Lt(()=>{e.isUnmounting=!0}),e}const Ia=[Function,Array],k3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ia,onEnter:Ia,onAfterEnter:Ia,onEnterCancelled:Ia,onBeforeLeave:Ia,onLeave:Ia,onAfterLeave:Ia,onLeaveCancelled:Ia,onBeforeAppear:Ia,onAppear:Ia,onAfterAppear:Ia,onAppearCancelled:Ia},E3=e=>{const t=e.subTree;return t.component?E3(t.component):t},HC={name:"BaseTransition",props:k3,setup(e,{slots:t}){const n=vt(),a=x3();return()=>{const o=t.default&&Cp(t.default(),!0);if(!o||!o.length)return;const l=T3(o),r=jt(e),{mode:s}=r;if(a.isLeaving)return Ff(l);const u=Lv(l);if(!u)return Ff(l);let c=Fi(u,r,a,n,f=>c=f);u.type!==gn&&Or(u,c);let d=n.subTree&&Lv(n.subTree);if(d&&d.type!==gn&&!ir(d,u)&&E3(n).type!==gn){let f=Fi(d,r,a,n);if(Or(d,f),s==="out-in"&&u.type!==gn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Ff(l);s==="in-out"&&u.type!==gn?f.delayLeave=(h,g,p)=>{const v=M3(a,d);v[String(d.key)]=d,h[_o]=()=>{g(),h[_o]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function T3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==gn){t=n;break}}return t}const FC=HC;function M3(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Fi(e,t,n,a,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,C=String(e.key),S=M3(n,e),k=(A,O)=>{A&&Qa(A,a,9,O)},T=(A,O)=>{const I=O[1];k(A,O),be(A)?A.every(L=>L.length<=1)&&I():A.length<=1&&I()},M={mode:r,persisted:s,beforeEnter(A){let O=u;if(!n.isMounted)if(l)O=m||u;else return;A[_o]&&A[_o](!0);const I=S[C];I&&ir(e,I)&&I.el[_o]&&I.el[_o](),k(O,[A])},enter(A){if(S[C]===e)return;let O=c,I=d,L=f;if(!n.isMounted)if(l)O=y||c,I=b||d,L=w||f;else return;let z=!1;A[li]=U=>{z||(z=!0,U?k(L,[A]):k(I,[A]),M.delayedLeave&&M.delayedLeave(),A[li]=void 0)};const q=A[li].bind(null,!1);O?T(O,[A,q]):q()},leave(A,O){const I=String(e.key);if(A[li]&&A[li](!0),n.isUnmounting)return O();k(h,[A]);let L=!1;A[_o]=q=>{L||(L=!0,O(),q?k(v,[A]):k(p,[A]),A[_o]=void 0,S[I]===e&&delete S[I])};const z=A[_o].bind(null,!1);S[I]=e,g?T(g,[A,z]):z()},clone(A){const O=Fi(A,t,n,a,o);return o&&o(O),O}};return M}function Ff(e){if(Dd(e))return e=Io(e),e.children=null,e}function Lv(e){if(!Dd(e))return S3(e.type)&&e.children?T3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Or(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Or(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Cp(e,t=!1,n){let a=[],o=0;for(let l=0;l1)for(let l=0;lEi(v,t&&(be(t)?t[m]:t),n,a,o));return}if(ps(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ei(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?Wd(a.component):a.el,r=o?null:l,{i:s,r:u}=e,c=t&&t.r,d=s.refs===cn?s.refs={}:s.refs,f=s.setupState,h=jt(f),g=f===cn?K4:v=>Vv(d,v)?!1:Mt(h,v),p=(v,m)=>!(m&&Vv(d,m));if(c!=null&&c!==u){if(Bv(t),Be(c))d[c]=null,g(c)&&(f[c]=null);else if(Yt(c)){const v=t;p(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))vu(u,s,12,[r,d]);else{const v=Be(u),m=Yt(u);if(v||m){const y=()=>{if(e.f){const b=v?g(u)?f[u]:d[u]:p()||!e.k?u.value:d[e.k];if(o)be(b)&&dp(b,l);else if(be(b))b.includes(l)||b.push(l);else if(v)d[u]=[l],g(u)&&(f[u]=d[u]);else{const w=[l];p(u,e.k)&&(u.value=w),e.k&&(d[e.k]=w)}}else v?(d[u]=r,g(u)&&(f[u]=r)):m&&(p(u,e.k)&&(u.value=r),e.k&&(d[e.k]=r))};if(r){const b=()=>{y(),Gc.delete(e)};b.id=-1,Gc.set(e,b),sa(b,n)}else Bv(e),y()}}}function Bv(e){const t=Gc.get(e);t&&(t.flags|=8,Gc.delete(e))}Id().requestIdleCallback;Id().cancelIdleCallback;const ps=e=>!!e.type.__asyncLoader,Dd=e=>e.type.__isKeepAlive;function mu(e,t){$3(e,"a",t)}function _p(e,t){$3(e,"da",t)}function $3(e,t,n=ea){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Hd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)Dd(o.parent.vnode)&&KC(a,t,n,o),o=o.parent}}function KC(e,t,n,a){const o=Hd(t,e,a,!0);Ks(()=>{dp(a[t],o)},n)}function Hd(e,t,n=ea,a=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{rl();const s=gu(n),u=Qa(t,n,e,r);return s(),sl(),u});return a?o.unshift(l):o.push(l),l}}const ml=e=>(t,n=ea)=>{(!Wi||e==="sp")&&Hd(e,(...a)=>t(...a),n)},Fd=ml("bm"),gt=ml("m"),Sp=ml("bu"),so=ml("u"),Lt=ml("bum"),Ks=ml("um"),WC=ml("sp"),jC=ml("rtg"),qC=ml("rtc");function UC(e,t=ea){Hd("ec",e,t)}const xp="components",YC="directives";function $t(e,t){return Ep(xp,e,!0,t)||e}const A3=Symbol.for("v-ndc");function dt(e){return Be(e)?Ep(xp,e,!1)||e:e||A3}function kp(e){return Ep(YC,e)}function Ep(e,t,n=!0,a=!1){const o=jn||ea;if(o){const l=o.type;if(e===xp){const s=$_(l,!1);if(s&&(s===t||s===Hn(t)||s===hu(Hn(t))))return l}const r=zv(o[e]||l[e],t)||zv(o.appContext[e],t);return!r&&a?l:r}}function zv(e,t){return e&&(e[t]||e[Hn(t)]||e[hu(Hn(t))])}function _t(e,t,n,a){let o;const l=n,r=be(e);if(r||Be(e)){const s=r&&_r(e);let u=!1,c=!1;s&&(u=!Oa(e),c=il(e),e=Ld(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(s,u,void 0,l));else{const s=Object.keys(e);o=new Array(s.length);for(let u=0,c=s.length;u{const l=a.fn(...o);return l&&(l.key=a.key),l}:a.fn)}return e}function oe(e,t,n={},a,o){if(jn.ce||jn.parent&&ps(jn.parent)&&jn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),_(),ie(Ke,null,[Q("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),_();const r=l&&R3(l(n)),s=n.key||r&&r.key,u=ie(Ke,{key:(s&&!Aa(s)?s:`_${t}`)+(!r&&a?"_fb":"")},r||(a?a():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function R3(e){return e.some(t=>Wt(t)?!(t.type===gn||t.type===Ke&&!R3(t.children)):!0)?e:null}function GC(e,t){const n={};for(const a in e)n[Si(a)]=e[a];return n}const D0=e=>e?Z3(e)?Wd(e):D0(e.parent):null,Ti=Rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>D0(e.parent),$root:e=>D0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>I3(e),$forceUpdate:e=>e.f||(e.f=()=>{bp(e.update)}),$nextTick:e=>e.n||(e.n=Le.bind(e.proxy)),$watch:e=>LC.bind(e)}),Kf=(e,t)=>e!==cn&&!e.__isScriptSetup&&Mt(e,t),XC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:l,accessCache:r,type:s,appContext:u}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(Kf(a,t))return r[t]=1,a[t];if(o!==cn&&Mt(o,t))return r[t]=2,o[t];if(Mt(l,t))return r[t]=3,l[t];if(n!==cn&&Mt(n,t))return r[t]=4,n[t];H0&&(r[t]=0)}}const c=Ti[t];let d,f;if(c)return t==="$attrs"&&Qn(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==cn&&Mt(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:l}=e;return Kf(o,t)?(o[t]=n,!0):a!==cn&&Mt(a,t)?(a[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:l,type:r}},s){let u;return!!(n[s]||e!==cn&&s[0]!=="$"&&Mt(e,s)||Kf(t,s)||Mt(l,s)||Mt(a,s)||Mt(Ti,s)||Mt(o.config.globalProperties,s)||(u=r.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function vn(){return N3().slots}function gl(){return N3().attrs}function N3(e){const t=vt();return t.setupContext||(t.setupContext=e6(t))}function Dv(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let H0=!0;function JC(e){const t=I3(e),n=e.proxy,a=e.ctx;H0=!1,t.beforeCreate&&Hv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:p,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:C,render:S,renderTracked:k,renderTriggered:T,errorCaptured:M,serverPrefetch:A,expose:O,inheritAttrs:I,components:L,directives:z,filters:q}=t;if(c&&ZC(c,a,null),r)for(const N in r){const P=r[N];Fe(P)&&(a[N]=P.bind(n))}if(o){const N=o.call(n,n);lt(N)&&(e.data=Nt(N))}if(H0=!0,l)for(const N in l){const P=l[N],B=Fe(P)?P.bind(n,n):Fe(P.get)?P.get.bind(n,n):It,W=!Fe(P)&&Fe(P.set)?P.set.bind(n):It,K=x({get:B,set:W});Object.defineProperty(a,N,{enumerable:!0,configurable:!0,get:()=>K.value,set:j=>K.value=j})}if(s)for(const N in s)P3(s[N],a,n,N);if(u){const N=Fe(u)?u.call(n):u;Reflect.ownKeys(N).forEach(P=>{wt(P,N[P])})}d&&Hv(d,e,"c");function F(N,P){be(P)?P.forEach(B=>N(B.bind(n))):P&&N(P.bind(n))}if(F(Fd,f),F(gt,h),F(Sp,g),F(so,p),F(mu,v),F(_p,m),F(UC,M),F(qC,k),F(jC,T),F(Lt,b),F(Ks,C),F(WC,A),be(O))if(O.length){const N=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(N,P,{get:()=>n[P],set:B=>n[P]=B,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===It&&(e.render=S),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),z&&(e.directives=z),A&&O3(e)}function ZC(e,t,n=It){be(e)&&(e=F0(e));for(const a in e){const o=e[a];let l;lt(o)?"default"in o?l=Pe(o.from||a,o.default,!0):l=Pe(o.from||a):l=Pe(o),Yt(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[a]=l}}function Hv(e,t,n){Qa(be(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function P3(e,t,n,a){let o=a.includes(".")?C3(n,a):()=>n[a];if(Be(e)){const l=t[e];Fe(l)&&fe(o,l)}else if(Fe(e))fe(o,e.bind(n));else if(lt(e))if(be(e))e.forEach(l=>P3(l,t,n,a));else{const l=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(l)&&fe(o,l,e)}}function I3(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,s=l.get(t);let u;return s?u=s:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>Xc(u,c,r,!0)),Xc(u,t,r)),lt(t)&&l.set(t,u),u}function Xc(e,t,n,a=!1){const{mixins:o,extends:l}=t;l&&Xc(e,l,n,!0),o&&o.forEach(r=>Xc(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=QC[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const QC={data:Fv,props:Kv,emits:Kv,methods:gi,computed:gi,beforeCreate:ra,created:ra,beforeMount:ra,mounted:ra,beforeUpdate:ra,updated:ra,beforeDestroy:ra,beforeUnmount:ra,destroyed:ra,unmounted:ra,activated:ra,deactivated:ra,errorCaptured:ra,serverPrefetch:ra,components:gi,directives:gi,watch:t_,provide:Fv,inject:e_};function Fv(e,t){return t?e?function(){return Rn(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function e_(e,t){return gi(F0(e),F0(t))}function F0(e){if(be(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Hn(t)}Modifiers`]||e[`${vl(t)}Modifiers`];function l_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||cn;let o=n;const l=t.startsWith("update:"),r=l&&o_(a,t.slice(7));r&&(r.trim&&(o=n.map(d=>Be(d)?d.trim():d)),r.number&&(o=n.map(fp)));let s,u=a[s=Si(t)]||a[s=Si(Hn(t))];!u&&l&&(u=a[s=Si(vl(t))]),u&&Qa(u,e,6,o);const c=a[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qa(c,e,6,o)}}const r_=new WeakMap;function V3(e,t,n=!1){const a=n?r_:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const l=e.emits;let r={},s=!1;if(!Fe(e)){const u=c=>{const d=V3(c,t,!0);d&&(s=!0,Rn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!s?(lt(e)&&a.set(e,null),null):(be(l)?l.forEach(u=>r[u]=null):Rn(r,l),lt(e)&&a.set(e,r),r)}function Kd(e,t){return!e||!$d(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,vl(t))||Mt(e,t))}function Wv(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[l],slots:r,attrs:s,emit:u,render:c,renderCache:d,props:f,data:h,setupState:g,ctx:p,inheritAttrs:v}=e,m=Yc(e);let y,b;try{if(n.shapeFlag&4){const C=o||a,S=C;y=xo(c.call(S,C,d,f,g,h,p)),b=s}else{const C=t;y=xo(C.length>1?C(f,{attrs:s,slots:r,emit:u}):C(f,null)),b=t.props?s:s_(s)}}catch(C){Mi.length=0,zd(C,e,1),y=Q(gn)}let w=y;if(b&&v!==!1){const C=Object.keys(b),{shapeFlag:S}=w;C.length&&S&7&&(l&&C.some(Ad)&&(b=i_(b,l)),w=Io(w,b,!1,!0))}return n.dirs&&(w=Io(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Or(w,n.transition),y=w,Yc(m),y}const s_=e=>{let t;for(const n in e)(n==="class"||n==="style"||$d(n))&&((t||(t={}))[n]=e[n]);return t},i_=(e,t)=>{const n={};for(const a in e)(!Ad(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function u_(e,t,n){const{props:a,children:o,component:l}=e,{props:r,children:s,patchFlag:u}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?jv(a,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(z3),H3=e=>Object.getPrototypeOf(e)===z3;function d_(e,t,n,a=!1){const o={},l=D3();e.propsDefaults=Object.create(null),F3(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=a?o:Vd(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function f_(e,t,n,a){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,s=jt(o),[u]=e.propsOptions;let c=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,g]=K3(f,t,!0);Rn(r,h),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!u)return lt(e)&&a.set(e,cs),cs;if(be(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Mp=e=>be(e)?e.map(xo):[xo(e)],h_=(e,t,n)=>{if(t._n)return t;const a=ae((...o)=>Mp(t(...o)),n);return a._c=!1,a},W3=(e,t,n)=>{const a=e._ctx;for(const o in e){if(Tp(o))continue;const l=e[o];if(Fe(l))t[o]=h_(o,l,a);else if(l!=null){const r=Mp(l);t[o]=()=>r}}},j3=(e,t)=>{const n=Mp(t);e.slots.default=()=>n},q3=(e,t,n)=>{for(const a in t)(n||!Tp(a))&&(e[a]=t[a])},v_=(e,t,n)=>{const a=e.slots=D3();if(e.vnode.shapeFlag&32){const o=t._;o?(q3(a,t,n),n&&j4(a,"_",o,!0)):W3(t,a)}else t&&j3(e,t)},m_=(e,t,n)=>{const{vnode:a,slots:o}=e;let l=!0,r=cn;if(a.shapeFlag&32){const s=t._;s?n&&s===1?l=!1:q3(o,t,n):(l=!t.$stable,W3(t,o)),r=t}else t&&(j3(e,t),r={default:1});if(l)for(const s in o)!Tp(s)&&r[s]==null&&delete o[s]},sa=C_;function g_(e){return y_(e)}function y_(e,t){const n=Id();n.__VUE__=!0;const{insert:a,remove:o,patchProp:l,createElement:r,createText:s,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=It,insertStaticContent:p}=e,v=(H,Z,le,ce=null,ge=null,me=null,Ae=void 0,Ne=null,Re=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!ir(H,Z)&&(ce=ne(H),j(H,ge,me,!0),H=null),Z.patchFlag===-2&&(Re=!1,Z.dynamicChildren=null);const{type:ye,ref:Ee,shapeFlag:we}=Z;switch(ye){case Ws:m(H,Z,le,ce);break;case gn:y(H,Z,le,ce);break;case Sc:H==null&&b(Z,le,ce,Ae);break;case Ke:L(H,Z,le,ce,ge,me,Ae,Ne,Re);break;default:we&1?S(H,Z,le,ce,ge,me,Ae,Ne,Re):we&6?z(H,Z,le,ce,ge,me,Ae,Ne,Re):(we&64||we&128)&&ye.process(H,Z,le,ce,ge,me,Ae,Ne,Re,Y)}Ee!=null&&ge?Ei(Ee,H&&H.ref,me,Z||H,!Z):Ee==null&&H&&H.ref!=null&&Ei(H.ref,null,me,H,!0)},m=(H,Z,le,ce)=>{if(H==null)a(Z.el=s(Z.children),le,ce);else{const ge=Z.el=H.el;Z.children!==H.children&&c(ge,Z.children)}},y=(H,Z,le,ce)=>{H==null?a(Z.el=u(Z.children||""),le,ce):Z.el=H.el},b=(H,Z,le,ce)=>{[H.el,H.anchor]=p(H.children,Z,le,ce,H.el,H.anchor)},w=({el:H,anchor:Z},le,ce)=>{let ge;for(;H&&H!==Z;)ge=h(H),a(H,le,ce),H=ge;a(Z,le,ce)},C=({el:H,anchor:Z})=>{let le;for(;H&&H!==Z;)le=h(H),o(H),H=le;o(Z)},S=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{if(Z.type==="svg"?Ae="svg":Z.type==="math"&&(Ae="mathml"),H==null)k(Z,le,ce,ge,me,Ae,Ne,Re);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),A(H,Z,ge,me,Ae,Ne,Re)}finally{ye&&ye._endPatch()}}},k=(H,Z,le,ce,ge,me,Ae,Ne)=>{let Re,ye;const{props:Ee,shapeFlag:we,transition:Ie,dirs:ze}=H;if(Re=H.el=r(H.type,me,Ee&&Ee.is,Ee),we&8?d(Re,H.children):we&16&&M(H.children,Re,null,ce,ge,Wf(H,me),Ae,Ne),ze&&Zl(H,null,ce,"created"),T(Re,H,H.scopeId,Ae,ce),Ee){for(const nt in Ee)nt!=="value"&&!_i(nt)&&l(Re,nt,null,Ee[nt],me,ce);"value"in Ee&&l(Re,"value",null,Ee.value,me),(ye=Ee.onVnodeBeforeMount)&&yo(ye,ce,H)}ze&&Zl(H,null,ce,"beforeMount");const et=b_(ge,Ie);et&&Ie.beforeEnter(Re),a(Re,Z,le),((ye=Ee&&Ee.onVnodeMounted)||et||ze)&&sa(()=>{try{ye&&yo(ye,ce,H),et&&Ie.enter(Re),ze&&Zl(H,null,ce,"mounted")}finally{}},ge)},T=(H,Z,le,ce,ge)=>{if(le&&g(H,le),ce)for(let me=0;me{for(let ye=Re;ye{const Ne=Z.el=H.el;let{patchFlag:Re,dynamicChildren:ye,dirs:Ee}=Z;Re|=H.patchFlag&16;const we=H.props||cn,Ie=Z.props||cn;let ze;if(le&&er(le,!1),(ze=Ie.onVnodeBeforeUpdate)&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"beforeUpdate"),le&&er(le,!0),(we.innerHTML&&Ie.innerHTML==null||we.textContent&&Ie.textContent==null)&&d(Ne,""),ye?O(H.dynamicChildren,ye,Ne,le,ce,Wf(Z,ge),me):Ae||P(H,Z,Ne,null,le,ce,Wf(Z,ge),me,!1),Re>0){if(Re&16)I(Ne,we,Ie,le,ge);else if(Re&2&&we.class!==Ie.class&&l(Ne,"class",null,Ie.class,ge),Re&4&&l(Ne,"style",we.style,Ie.style,ge),Re&8){const et=Z.dynamicProps;for(let nt=0;nt{ze&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"updated")},ce)},O=(H,Z,le,ce,ge,me,Ae)=>{for(let Ne=0;Ne{if(Z!==le){if(Z!==cn)for(const me in Z)!_i(me)&&!(me in le)&&l(H,me,Z[me],null,ge,ce);for(const me in le){if(_i(me))continue;const Ae=le[me],Ne=Z[me];Ae!==Ne&&me!=="value"&&l(H,me,Ne,Ae,ge,ce)}"value"in le&&l(H,"value",Z.value,le.value,ge)}},L=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{const ye=Z.el=H?H.el:s(""),Ee=Z.anchor=H?H.anchor:s("");let{patchFlag:we,dynamicChildren:Ie,slotScopeIds:ze}=Z;ze&&(Ne=Ne?Ne.concat(ze):ze),H==null?(a(ye,le,ce),a(Ee,le,ce),M(Z.children||[],le,Ee,ge,me,Ae,Ne,Re)):we>0&&we&64&&Ie&&H.dynamicChildren&&H.dynamicChildren.length===Ie.length?(O(H.dynamicChildren,Ie,le,ge,me,Ae,Ne),(Z.key!=null||ge&&Z===ge.subTree)&&Op(H,Z,!0)):P(H,Z,le,Ee,ge,me,Ae,Ne,Re)},z=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{Z.slotScopeIds=Ne,H==null?Z.shapeFlag&512?ge.ctx.activate(Z,le,ce,Ae,Re):q(Z,le,ce,ge,me,Ae,Re):U(H,Z,Re)},q=(H,Z,le,ce,ge,me,Ae)=>{const Ne=H.component=E_(H,ce,ge);if(Dd(H)&&(Ne.ctx.renderer=Y),T_(Ne,!1,Ae),Ne.asyncDep){if(ge&&ge.registerDep(Ne,F,Ae),!H.el){const Re=Ne.subTree=Q(gn);y(null,Re,Z,le),H.placeholder=Re.el}}else F(Ne,H,Z,le,ge,me,Ae)},U=(H,Z,le)=>{const ce=Z.component=H.component;if(u_(H,Z,le))if(ce.asyncDep&&!ce.asyncResolved){N(ce,Z,le);return}else ce.next=Z,ce.update();else Z.el=H.el,ce.vnode=Z},F=(H,Z,le,ce,ge,me,Ae)=>{const Ne=()=>{if(H.isMounted){let{next:we,bu:Ie,u:ze,parent:et,vnode:nt}=H;{const je=U3(H);if(je){we&&(we.el=nt.el,N(H,we,Ae)),je.asyncDep.then(()=>{sa(()=>{H.isUnmounted||ye()},ge)});return}}let at=we,Me;er(H,!1),we?(we.el=nt.el,N(H,we,Ae)):we=nt,Ie&&Cc(Ie),(Me=we.props&&we.props.onVnodeBeforeUpdate)&&yo(Me,et,we,nt),er(H,!0);const Ge=Wv(H),ut=H.subTree;H.subTree=Ge,v(ut,Ge,f(ut.el),ne(ut),H,ge,me),we.el=Ge.el,at===null&&c_(H,Ge.el),ze&&sa(ze,ge),(Me=we.props&&we.props.onVnodeUpdated)&&sa(()=>yo(Me,et,we,nt),ge)}else{let we;const{el:Ie,props:ze}=Z,{bm:et,m:nt,parent:at,root:Me,type:Ge}=H,ut=ps(Z);er(H,!1),et&&Cc(et),!ut&&(we=ze&&ze.onVnodeBeforeMount)&&yo(we,at,Z),er(H,!0);{Me.ce&&Me.ce._hasShadowRoot()&&Me.ce._injectChildStyle(Ge,H.parent?H.parent.type:void 0);const je=H.subTree=Wv(H);v(null,je,le,ce,H,ge,me),Z.el=je.el}if(nt&&sa(nt,ge),!ut&&(we=ze&&ze.onVnodeMounted)){const je=Z;sa(()=>yo(we,at,je),ge)}(Z.shapeFlag&256||at&&ps(at.vnode)&&at.vnode.shapeFlag&256)&&H.a&&sa(H.a,ge),H.isMounted=!0,Z=le=ce=null}};H.scope.on();const Re=H.effect=new Q4(Ne);H.scope.off();const ye=H.update=Re.run.bind(Re),Ee=H.job=Re.runIfDirty.bind(Re);Ee.i=H,Ee.id=H.uid,Re.scheduler=()=>bp(Ee),er(H,!0),ye()},N=(H,Z,le)=>{Z.component=H;const ce=H.vnode.props;H.vnode=Z,H.next=null,f_(H,Z.props,ce,le),m_(H,Z.children,le),rl(),Nv(H),sl()},P=(H,Z,le,ce,ge,me,Ae,Ne,Re=!1)=>{const ye=H&&H.children,Ee=H?H.shapeFlag:0,we=Z.children,{patchFlag:Ie,shapeFlag:ze}=Z;if(Ie>0){if(Ie&128){W(ye,we,le,ce,ge,me,Ae,Ne,Re);return}else if(Ie&256){B(ye,we,le,ce,ge,me,Ae,Ne,Re);return}}ze&8?(Ee&16&&ue(ye,ge,me),we!==ye&&d(le,we)):Ee&16?ze&16?W(ye,we,le,ce,ge,me,Ae,Ne,Re):ue(ye,ge,me,!0):(Ee&8&&d(le,""),ze&16&&M(we,le,ce,ge,me,Ae,Ne,Re))},B=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{H=H||cs,Z=Z||cs;const ye=H.length,Ee=Z.length,we=Math.min(ye,Ee);let Ie;for(Ie=0;IeEe?ue(H,ge,me,!0,!1,we):M(Z,le,ce,ge,me,Ae,Ne,Re,we)},W=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{let ye=0;const Ee=Z.length;let we=H.length-1,Ie=Ee-1;for(;ye<=we&&ye<=Ie;){const ze=H[ye],et=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);if(ir(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;ye++}for(;ye<=we&&ye<=Ie;){const ze=H[we],et=Z[Ie]=Re?Yo(Z[Ie]):xo(Z[Ie]);if(ir(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;we--,Ie--}if(ye>we){if(ye<=Ie){const ze=Ie+1,et=zeIe)for(;ye<=we;)j(H[ye],ge,me,!0),ye++;else{const ze=ye,et=ye,nt=new Map;for(ye=et;ye<=Ie;ye++){const he=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);he.key!=null&&nt.set(he.key,ye)}let at,Me=0;const Ge=Ie-et+1;let ut=!1,je=0;const tt=new Array(Ge);for(ye=0;ye=Ge){j(he,ge,me,!0);continue}let Ve;if(he.key!=null)Ve=nt.get(he.key);else for(at=et;at<=Ie;at++)if(tt[at-et]===0&&ir(he,Z[at])){Ve=at;break}Ve===void 0?j(he,ge,me,!0):(tt[Ve-et]=ye+1,Ve>=je?je=Ve:ut=!0,v(he,Z[Ve],le,null,ge,me,Ae,Ne,Re),Me++)}const yt=ut?w_(tt):cs;for(at=yt.length-1,ye=Ge-1;ye>=0;ye--){const he=et+ye,Ve=Z[he],pe=Z[he+1],Te=he+1{const{el:me,type:Ae,transition:Ne,children:Re,shapeFlag:ye}=H;if(ye&6){K(H.component.subTree,Z,le,ce);return}if(ye&128){H.suspense.move(Z,le,ce);return}if(ye&64){Ae.move(H,Z,le,Y);return}if(Ae===Ke){a(me,Z,le);for(let we=0;weNe.enter(me),ge);else{const{leave:we,delayLeave:Ie,afterLeave:ze}=Ne,et=()=>{H.ctx.isUnmounted?o(me):a(me,Z,le)},nt=()=>{me._isLeaving&&me[_o](!0),we(me,()=>{et(),ze&&ze()})};Ie?Ie(me,et,nt):nt()}else a(me,Z,le)},j=(H,Z,le,ce=!1,ge=!1)=>{const{type:me,props:Ae,ref:Ne,children:Re,dynamicChildren:ye,shapeFlag:Ee,patchFlag:we,dirs:Ie,cacheIndex:ze,memo:et}=H;if(we===-2&&(ge=!1),Ne!=null&&(rl(),Ei(Ne,null,le,H,!0),sl()),ze!=null&&(Z.renderCache[ze]=void 0),Ee&256){Z.ctx.deactivate(H);return}const nt=Ee&1&&Ie,at=!ps(H);let Me;if(at&&(Me=Ae&&Ae.onVnodeBeforeUnmount)&&yo(Me,Z,H),Ee&6)te(H.component,le,ce);else{if(Ee&128){H.suspense.unmount(le,ce);return}nt&&Zl(H,null,Z,"beforeUnmount"),Ee&64?H.type.remove(H,Z,le,Y,ce):ye&&!ye.hasOnce&&(me!==Ke||we>0&&we&64)?ue(ye,Z,le,!1,!0):(me===Ke&&we&384||!ge&&Ee&16)&&ue(Re,Z,le),ce&&G(H)}const Ge=et!=null&&ze==null;(at&&(Me=Ae&&Ae.onVnodeUnmounted)||nt||Ge)&&sa(()=>{Me&&yo(Me,Z,H),nt&&Zl(H,null,Z,"unmounted"),Ge&&(H.el=null)},le)},G=H=>{const{type:Z,el:le,anchor:ce,transition:ge}=H;if(Z===Ke){ee(le,ce);return}if(Z===Sc){C(H);return}const me=()=>{o(le),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:Ae,delayLeave:Ne}=ge,Re=()=>Ae(le,me);Ne?Ne(H.el,me,Re):Re()}else me()},ee=(H,Z)=>{let le;for(;H!==Z;)le=h(H),o(H),H=le;o(Z)},te=(H,Z,le)=>{const{bum:ce,scope:ge,job:me,subTree:Ae,um:Ne,m:Re,a:ye}=H;Uv(Re),Uv(ye),ce&&Cc(ce),ge.stop(),me&&(me.flags|=8,j(Ae,H,Z,le)),Ne&&sa(Ne,Z),sa(()=>{H.isUnmounted=!0},Z)},ue=(H,Z,le,ce=!1,ge=!1,me=0)=>{for(let Ae=me;Ae{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=h(H.anchor||H.el),le=Z&&Z[_3];return le?h(le):Z};let de=!1;const se=(H,Z,le)=>{let ce;H==null?Z._vnode&&(j(Z._vnode,null,null,!0),ce=Z._vnode.component):v(Z._vnode||null,H,Z,null,null,null,le),Z._vnode=H,de||(de=!0,Nv(ce),y3(),de=!1)},Y={p:v,um:j,m:K,r:G,mt:q,mc:M,pc:P,pbc:O,n:ne,o:e};return{render:se,hydrate:void 0,createApp:a_(se)}}function Wf({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function er({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function b_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Op(e,t,n=!1){const a=e.children,o=t.children;if(be(a)&&be(o))for(let l=0;l>1,e[n[s]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function U3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:U3(t)}function Uv(e){if(e)for(let t=0;te.__isSuspense;function C_(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):NC(e)}const Ke=Symbol.for("v-fgt"),Ws=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),Sc=Symbol.for("v-stc"),Mi=[];let Ea=null;function _(e=!1){Mi.push(Ea=e?null:[])}function __(){Mi.pop(),Ea=Mi[Mi.length-1]||null}let Ki=1;function Jc(e,t=!1){Ki+=e,e<0&&Ea&&t&&(Ea.hasOnce=!0)}function X3(e){return e.dynamicChildren=Ki>0?Ea||cs:null,__(),Ki>0&&Ea&&Ea.push(e),e}function $(e,t,n,a,o,l){return X3(E(e,t,n,a,o,l,!0))}function ie(e,t,n,a,o){return X3(Q(e,t,n,a,o,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function ir(e,t){return e.type===t.type&&e.key===t.key}const J3=({key:e})=>e??null,xc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Yt(e)||Fe(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,a=0,o=null,l=e===Ke?0:1,r=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&J3(t),ref:t&&xc(t),scopeId:w3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:jn};return s?($p(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),Ki>0&&!r&&Ea&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&Ea.push(u),u}const Q=S_;function S_(e,t=null,n=null,a=0,o=null,l=!1){if((!e||e===A3)&&(e=gn),Wt(e)){const s=Io(e,t,!0);return n&&$p(s,n),Ki>0&&!l&&Ea&&(s.shapeFlag&6?Ea[Ea.indexOf(e)]=s:Ea.push(s)),s.patchFlag=-2,s}if(A_(e)&&(e=e.__vccOpts),t){t=al(t);let{class:s,style:u}=t;s&&!Be(s)&&(t.class=R(s)),lt(u)&&(Bd(u)&&!be(u)&&(u=Rn({},u)),t.style=qe(u))}const r=Be(e)?1:G3(e)?128:S3(e)?64:lt(e)?4:Fe(e)?2:0;return E(e,t,n,a,o,r,l,!0)}function al(e){return e?Bd(e)||H3(e)?Rn({},e):e:null}function Io(e,t,n=!1,a=!1){const{props:o,ref:l,patchFlag:r,children:s,transition:u}=e,c=t?ht(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&J3(c),ref:t&&t.ref?n&&l?be(l)?l.concat(xc(t)):[l,xc(t)]:xc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Or(d,u.clone(d)),d}function St(e=" ",t=0){return Q(Ws,null,e,t)}function vde(e,t){const n=Q(Sc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(_(),ie(gn,null,e)):Q(gn,null,e)}function xo(e){return e==null||typeof e=="boolean"?Q(gn):be(e)?Q(Ke,null,e.slice()):Wt(e)?Yo(e):Q(Ws,null,String(e))}function Yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function $p(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),$p(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!H3(t)?t._ctx=jn:o===3&&jn&&(jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),a&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function ht(...e){const t={};for(let n=0;nea||jn;let Zc,W0;{const e=Id(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};Zc=t("__VUE_INSTANCE_SETTERS__",n=>ea=n),W0=t("__VUE_SSR_SETTERS__",n=>Wi=n)}const gu=e=>{const t=ea;return Zc(e),e.scope.on(),()=>{e.scope.off(),Zc(t)}},Yv=()=>{ea&&ea.scope.off(),Zc(null)};function Z3(e){return e.vnode.shapeFlag&4}let Wi=!1;function T_(e,t=!1,n=!1){t&&W0(t);const{props:a,children:o}=e.vnode,l=Z3(e);d_(e,a,l,t),v_(e,o,n||t);const r=l?M_(e,t):void 0;return t&&W0(!1),r}function M_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,XC);const{setup:a}=n;if(a){rl();const o=e.setupContext=a.length>1?e6(e):null,l=gu(e),r=vu(a,e,0,[e.props,o]),s=Kl(r);if(sl(),l(),(s||e.sp)&&!ps(e)&&O3(e),s){if(r.then(Yv,Yv),t)return r.then(u=>{Gv(e,u)}).catch(u=>{zd(u,e,0)});e.asyncDep=r}else Gv(e,r)}else Q3(e)}function Gv(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lt(t)&&(e.setupState=h3(t)),Q3(e)}function Q3(e,t,n){const a=e.type;e.render||(e.render=a.render||It);{const o=gu(e);rl();try{JC(e)}finally{sl(),o()}}}const O_={get(e,t){return Qn(e,"get",""),e[t]}};function e6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,O_),slots:e.slots,emit:e.emit,expose:t}}function Wd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(h3(Oo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ti)return Ti[n](e)},has(t,n){return n in t||n in Ti}})):e.proxy}function $_(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function A_(e){return Fe(e)&&"__vccOpts"in e}const x=(e,t)=>MC(e,t,Wi);function Ye(e,t,n){try{Jc(-1);const a=arguments.length;return a===2?lt(t)&&!be(t)?Wt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Wt(n)&&(n=[n]),Q(e,t,n))}finally{Jc(1)}}const R_="3.5.32",N_=It;/** * @vue/runtime-dom v3.5.32 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let K0;const Gv=typeof window<"u"&&window.trustedTypes;if(Gv)try{K0=Gv.createPolicy("vue",{createHTML:e=>e})}catch{}const e6=K0?e=>K0.createHTML(e):e=>e,P_="http://www.w3.org/2000/svg",I_="http://www.w3.org/1998/Math/MathML",Uo=typeof document<"u"?document:null,Xv=Uo&&Uo.createElement("template"),L_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Uo.createElementNS(P_,e):t==="mathml"?Uo.createElementNS(I_,e):n?Uo.createElement(e,{is:n}):Uo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Uo.createTextNode(e),createComment:e=>Uo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Uo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Xv.innerHTML=e6(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Xv.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},El="transition",li="animation",_s=Symbol("_vtc"),t6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},n6=Rn({},x3,t6),V_=e=>(e.displayName="Transition",e.props=n6,e),Fn=V_((e,{slots:t})=>Ye(FC,a6(e),t)),tr=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Jv=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function a6(e){const t={};for(const L in e)L in t6||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=B_(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:M=w}=t,A=(L,z,q,U)=>{L._enterCancelled=U,Ml(L,z?d:s),Ml(L,z?c:r),q&&q()},O=(L,z)=>{L._isLeaving=!1,Ml(L,f),Ml(L,g),Ml(L,h),z&&z()},I=L=>(z,q)=>{const U=L?T:b,F=()=>A(z,L,q);tr(U,[z,F]),Zv(()=>{Ml(z,L?u:l),wo(z,L?d:s),Jv(U)||Qv(z,a,v,F)})};return Rn(t,{onBeforeEnter(L){tr(y,[L]),wo(L,l),wo(L,r)},onBeforeAppear(L){tr(k,[L]),wo(L,u),wo(L,c)},onEnter:I(!1),onAppear:I(!0),onLeave(L,z){L._isLeaving=!0;const q=()=>O(L,z);wo(L,f),L._enterCancelled?(wo(L,h),W0(L)):(W0(L),wo(L,h)),Zv(()=>{L._isLeaving&&(Ml(L,f),wo(L,g),Jv(_)||Qv(L,a,m,q))}),tr(_,[L,q])},onEnterCancelled(L){A(L,!1,void 0,!0),tr(w,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),tr(M,[L])},onLeaveCancelled(L){O(L),tr(S,[L])}})}function B_(e){if(e==null)return null;if(lt(e))return[Kf(e.enter),Kf(e.leave)];{const t=Kf(e);return[t,t]}}function Kf(e){return G9(e)}function wo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[_s]||(e[_s]=new Set)).add(t)}function Ml(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[_s];n&&(n.delete(t),n.size||(e[_s]=void 0))}function Zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let z_=0;function Qv(e,t,n,a){const o=e._endId=++z_,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=o6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=a(`${El}Delay`),l=a(`${El}Duration`),r=e1(o,l),s=a(`${li}Delay`),u=a(`${li}Duration`),c=e1(s,u);let d=null,f=0,h=0;t===El?r>0&&(d=El,f=r,h=l.length):t===li?c>0&&(d=li,f=c,h=u.length):(f=Math.max(r,c),d=f>0?r>c?El:li:null,h=d?d===El?l.length:u.length:0);const g=d===El&&/\b(?:transform|all)(?:,|$)/.test(a(`${El}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function e1(e,t){for(;e.lengtht1(n)+t1(e[a])))}function t1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function W0(e){return(e?e.ownerDocument:document).body.offsetHeight}function D_(e,t,n){const a=e[_s];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zc=Symbol("_vod"),l6=Symbol("_vsh"),$t={name:"show",beforeMount(e,{value:t},{transition:n}){e[Zc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ri(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),ri(e,!0),a.enter(e)):a.leave(e,()=>{ri(e,!1)}):ri(e,t))},beforeUnmount(e,{value:t}){ri(e,t)}};function ri(e,t){e.style.display=t?e[Zc]:"none",e[l6]=!t}const H_=Symbol(""),F_=/(?:^|;)\s*display\s*:/;function K_(e,t,n){const a=e.style,o=Be(n);let l=!1;if(n&&!o){if(t)if(Be(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&xc(a,s,"")}else for(const r in t)n[r]==null&&xc(a,r,"");for(const r in n)r==="display"&&(l=!0),xc(a,r,n[r])}else if(o){if(t!==n){const r=a[H_];r&&(n+=";"+r),a.cssText=n,l=F_.test(n)}}else t&&e.removeAttribute("style");Zc in e&&(e[Zc]=l?a.display:"",e[l6]&&(a.display="none"))}const n1=/\s*!important$/;function xc(e,t,n){if(be(n))n.forEach(a=>xc(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=W_(e,t);n1.test(n)?e.setProperty(vl(a),n.replace(n1,""),"important"):e[a]=n}}const a1=["Webkit","Moz","ms"],Wf={};function W_(e,t){const n=Wf[t];if(n)return n;let a=Hn(t);if(a!=="filter"&&a in e)return Wf[t]=a;a=pu(a);for(let o=0;ojf||(Y_.then(()=>jf=0),jf=Date.now());function X_(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Qa(J_(a,n.value),t,5,[a])};return n.value=e,n.attached=G_(),n}function J_(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const u1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z_=(e,t,n,a,o,l)=>{const r=o==="svg";t==="class"?D_(e,a,r):t==="style"?K_(e,n,a):Od(t)?$d(t)||q_(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q_(e,t,a,r))?(r1(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&l1(e,t,a,r,l,t!=="value")):e._isVueCE&&(eS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(a)))?r1(e,Hn(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),l1(e,t,a,r))};function Q_(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&u1(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return u1(t)&&Be(n)?!1:t in e}function eS(e,t){const n=e._def.props;if(!n)return!1;const a=Hn(t);return Array.isArray(n)?n.some(o=>Hn(o)===a):Object.keys(n).some(o=>Hn(o)===a)}const r6=new WeakMap,s6=new WeakMap,Qc=Symbol("_moveCb"),c1=Symbol("_enterCb"),tS=e=>(delete e.props.mode,e),nS=tS({name:"TransitionGroup",props:Rn({},n6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vt(),a=S3();let o,l;return so(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!rS(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(aS),o.forEach(oS);const s=o.filter(lS);W0(n.vnode.el),s.forEach(u=>{const c=u.el,d=c.style;wo(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Qc]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Qc]=null,Ml(c,r))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const r=jt(e),s=a6(r);let u=r.tag||Ke;if(o=[],l)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&a.classList.add(s)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:r}=o6(a);return l.removeChild(a),r}const Ss=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>wc(t,n):t};function sS(e){e.target.composing=!0}function d1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ol=Symbol("_assign");function f1(e,t,n){return t&&(e=e.trim()),n&&(e=cp(e)),e}const c6={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[ol]=Ss(o);const l=a||o.props&&o.props.type==="number";Pl(e,t?"change":"input",r=>{r.target.composing||e[ol](f1(e.value,n,l))}),(n||l)&&Pl(e,"change",()=>{e.value=f1(e.value,n,l)}),t||(Pl(e,"compositionstart",sS),Pl(e,"compositionend",d1),Pl(e,"change",d1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:l}},r){if(e[ol]=Ss(r),e.composing)return;const s=(l||e.type==="number")&&!/^0\d/.test(e.value)?cp(e.value):e.value,u=t??"";if(s===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},d6={deep:!0,created(e,t,n){e[ol]=Ss(n),Pl(e,"change",()=>{const a=e._modelValue,o=p6(e),l=e.checked,r=e[ol];if(be(a)){const s=q4(a,o),u=s!==-1;if(l&&!u)r(a.concat(o));else if(!l&&u){const c=[...a];c.splice(s,1),r(c)}}else if(Ad(a)){const s=new Set(a);l?s.add(o):s.delete(o),r(s)}else r(h6(e,l))})},mounted:p1,beforeUpdate(e,t,n){e[ol]=Ss(n),p1(e,t,n)}};function p1(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(be(t))o=q4(t,a.props.value)>-1;else if(Ad(t))o=t.has(a.props.value);else{if(t===n)return;o=Er(t,h6(e,!0))}e.checked!==o&&(e.checked=o)}const f6={created(e,{value:t},n){e.checked=Er(t,n.props.value),e[ol]=Ss(n),Pl(e,"change",()=>{e[ol](p6(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[ol]=Ss(a),t!==n&&(e.checked=Er(t,a.props.value))}};function p6(e){return"_value"in e?e._value:e.value}function h6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iS=["ctrl","shift","alt","meta"],uS={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>iS.some(n=>e[`${n}Key`]&&!t.includes(n))},Je=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...l)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const l=vl(o.key);if(t.some(r=>r===l||cS[r]===l))return e(o)})},dS=Rn({patchProp:Z_},L_);let h1;function v6(){return h1||(h1=g_(dS))}const Wl=(...e)=>{v6().render(...e)},m6=(...e)=>{const t=v6().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=pS(a);if(!o)return;const l=t._component;!Fe(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,fS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function fS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pS(e){return Be(e)?document.querySelector(e):e}const Ce={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},v1=["left","center","right"],hS=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],qf=["sun","mon","tue","wed","thu","fri","sat"],ot="update:modelValue",bt="change",wn="input",Wd=11,g6=2,m1=Symbol("INSTALLED_KEY"),io=["","default","small","large"];function y6(e,t){var n;const a=qt();return da(()=>{a.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Tr(a)}function Dr(e){return X4()?(J4(e),!0):!1}function qn(e){return typeof e=="function"?e():i(e)}function vS(e){if(!Yt(e))return Rt(e);const t=new Proxy({},{get(n,a,o){return i(Reflect.get(e.value,a,o))},set(n,a,o){return Yt(e.value[a])&&!Yt(o)?e.value[a].value=o:e.value[a]=o,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Rt(t)}function mS(e){return vS(x(e))}const At=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gS=e=>typeof e<"u",b6=e=>e!=null,yS=Object.prototype.toString,bS=e=>yS.call(e)==="[object Object]",w6=(e,t,n)=>Math.min(n,Math.max(t,e)),Ga=()=>{},ed=wS();function wS(){var e,t;return At&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function C6(e,t){function n(...a){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(l)})}return n}function CS(e,t={}){let n,a,o=Ga;const l=s=>{clearTimeout(s),o(),o=Ga};return s=>{const u=qn(e),c=qn(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&l(n),a=null,d(s())},c)),n=setTimeout(()=>{a&&l(a),a=null,d(s())},u)})}}function _S(...e){let t=0,n,a=!0,o=Ga,l,r,s,u,c;!Yt(e[0])&&typeof e[0]=="object"?{delay:r,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,s=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ga)};return h=>{const g=qn(r),p=Date.now()-t,v=()=>l=h();return d(),g<=0?(t=Date.now(),v()):(p>g&&(u||!a)?(t=Date.now(),v()):s&&(l=new Promise((m,y)=>{o=c?y:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-p))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,l)}}function SS(e){return vt()}function gu(e,t=200,n={}){return C6(CS(t,n),e)}function xS(e,t=200,n={}){const a=V(e.value),o=gu(()=>{a.value=e.value},t,n);return fe(e,()=>o()),a}function _6(e,t=200,n=!1,a=!0,o=!1){return C6(_S(t,n,a,o),e)}function Op(e,t=!0,n){SS()?gt(e,n):t?e():Le(e)}function xs(e,t,n={}){const{immediate:a=!0}=n,o=V(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function s(){o.value=!1,r()}function u(...c){r(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},qn(t))}return a&&(o.value=!0,At&&u()),Dr(s),{isPending:Tr(o),start:u,stop:s}}const uo=At?window:void 0,kS=At?window.document:void 0;function xn(e){var t;const n=qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vt(...e){let t,n,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,o]=e,t=uo):[t,n,a,o]=e,!t)return Ga;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),u=fe(()=>[xn(t),qn(o)],([d,f])=>{if(r(),!d)return;const h=bS(f)?{...f}:f;l.push(...n.flatMap(g=>a.map(p=>s(d,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Dr(c),c}let g1=!1;function $p(e,t,n={}){const{window:a=uo,ignore:o=[],capture:l=!0,detectIframe:r=!1}=n;if(!a)return Ga;ed&&!g1&&(g1=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",Ga)),a.document.documentElement.addEventListener("click",Ga));let s=!0;const u=v=>qn(o).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=xn(m);return y&&(v.target===y||v.composedPath().includes(y))}});function c(v){const m=qn(v);return m&&m.$.subTree.shapeFlag===16}function d(v,m){const y=qn(v),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===m.target||m.composedPath().includes(w.el))}const f=v=>{const m=xn(e);if(v.target!=null&&!(!(m instanceof Element)&&c(e)&&d(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(s=!u(v)),!s){s=!0;return}t(v)}};let h=!1;const g=[Vt(a,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(v))},{passive:!0,capture:l}),Vt(a,"pointerdown",v=>{const m=xn(e);s=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Vt(a,"blur",v=>{setTimeout(()=>{var m;const y=xn(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(a.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>g.forEach(v=>v())}function ES(){const e=V(!1),t=vt();return t&>(()=>{e.value=!0},t),e}function jd(e){const t=ES();return x(()=>(t.value,!!e()))}function yu(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=jd(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const h=qn(e),g=(Array.isArray(h)?h:[h]).map(xn).filter(b6);return new Set(g)}),c=fe(()=>u.value,h=>{s(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{c(),s()};return Dr(f),{isSupported:r,stop:f,takeRecords:d}}function TS(e={}){var t;const{window:n=uo,deep:a=!0,triggerOnRemoval:o=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(a)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},s=V(),u=()=>{s.value=r()};return n&&(Vt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Vt(n,"focus",u,!0)),o&&yu(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function MS(e,t={}){const{window:n=uo}=t,a=jd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=V(!1),r=c=>{l.value=c.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},u=da(()=>{a.value&&(s(),o=n.matchMedia(qn(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return Dr(()=>{u(),s(),o=void 0}),l}function OS(e){return JSON.parse(JSON.stringify(e))}function $S(e,t,n={}){const{window:a=uo,initialValue:o,observe:l=!1}=n,r=V(o),s=x(()=>{var c;return xn(t)||((c=a==null?void 0:a.document)==null?void 0:c.documentElement)});function u(){var c;const d=qn(e),f=qn(s);if(f&&a&&d){const h=(c=a.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||o}}return l&&yu(s,u,{attributeFilter:["style","class"],window:a}),fe([s,()=>qn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),fe(r,c=>{var d;const f=qn(e);(d=s.value)!=null&&d.style&&f&&(c==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,c))}),r}function AS(e={}){const{document:t=kS}=e;if(!t)return V("visible");const n=V(t.visibilityState);return Vt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Zt(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=jd(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const f=qn(e);return Array.isArray(f)?f.map(h=>xn(h)):[xn(f)]}),c=fe(u,f=>{if(s(),r.value&&a){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return Dr(d),{isSupported:r,stop:d}}function y1(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:r="sync"}=t,s=V(0),u=V(0),c=V(0),d=V(0),f=V(0),h=V(0),g=V(0),p=V(0);function v(){const y=xn(e);if(!y){n&&(s.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,g.value=0,p.value=0);return}const b=y.getBoundingClientRect();s.value=b.height,u.value=b.bottom,c.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,p.value=b.y}function m(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return Zt(e,m),fe(()=>xn(e),y=>!y&&m()),yu(e,m,{attributeFilter:["style","class"]}),o&&Vt("scroll",m,{capture:!0,passive:!0}),a&&Vt("resize",m,{passive:!0}),Op(()=>{l&&m()}),{height:s,bottom:u,left:c,right:d,top:f,width:h,x:g,y:p,update:m}}function j0(e,t={width:0,height:0},n={}){const{window:a=uo,box:o="content-box"}=n,l=x(()=>{var f,h;return(h=(f=xn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=V(t.width),s=V(t.height),{stop:u}=Zt(e,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&l.value){const g=xn(e);if(g){const p=g.getBoundingClientRect();r.value=p.width,s.value=p.height}}else if(h){const g=Array.isArray(h)?h:[h];r.value=g.reduce((p,{inlineSize:v})=>p+v,0),s.value=g.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,s.value=f.contentRect.height},n);Op(()=>{const f=xn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=fe(()=>xn(e),f=>{r.value=f?t.width:0,s.value=f?t.height:0});function d(){u(),c()}return{width:r,height:s,stop:d}}function RS(e,t,n={}){const{root:a,rootMargin:o="0px",threshold:l=0,window:r=uo,immediate:s=!0}=n,u=jd(()=>r&&"IntersectionObserver"in r),c=x(()=>{const p=qn(e);return(Array.isArray(p)?p:[p]).map(xn).filter(b6)});let d=Ga;const f=V(s),h=u.value?fe(()=>[c.value,xn(a),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const m=new IntersectionObserver(t,{root:xn(v),rootMargin:o,threshold:l});p.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=Ga}},{immediate:s,flush:"post"}):Ga,g=()=>{d(),h(),f.value=!1};return Dr(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function S6(e,t,n,a={}){var o,l,r;const{clone:s=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=a,g=vt(),p=n||(g==null?void 0:g.emit)||((o=g==null?void 0:g.$emit)==null?void 0:o.bind(g))||((r=(l=g==null?void 0:g.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=w=>s?typeof s=="function"?s(w):OS(w):w,y=()=>gS(e[t])?m(e[t]):f,b=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=y(),_=V(w);let S=!1;return fe(()=>e[t],k=>{S||(S=!0,_.value=m(k),Le(()=>S=!1))}),fe(_,k=>{!S&&(k!==e[t]||d)&&b(k)},{deep:d}),_}else return x({get(){return y()},set(w){b(w)}})}function NS(e={}){const{window:t=uo}=e;if(!t)return V(!1);const n=V(t.document.hasFocus());return Vt(t,"blur",()=>{n.value=!1}),Vt(t,"focus",()=>{n.value=!0}),n}function Ap(e={}){const{window:t=uo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:r="inner"}=e,s=V(n),u=V(a),c=()=>{t&&(r==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):l?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),Op(c),Vt("resize",c,{passive:!0}),o){const d=MS("(orientation: portrait)");fe(d,()=>c())}return{width:s,height:u}}const qd=()=>At&&/firefox/i.test(window.navigator.userAgent),x6=()=>At&&/android/i.test(window.navigator.userAgent);var k6=typeof global=="object"&&global&&global.Object===Object&&global,PS=typeof self=="object"&&self&&self.Object===Object&&self,co=k6||PS||Function("return this")(),Ha=co.Symbol,E6=Object.prototype,IS=E6.hasOwnProperty,LS=E6.toString,si=Ha?Ha.toStringTag:void 0;function VS(e){var t=IS.call(e,si),n=e[si];try{e[si]=void 0;var a=!0}catch{}var o=LS.call(e);return a&&(t?e[si]=n:delete e[si]),o}var BS=Object.prototype,zS=BS.toString;function DS(e){return zS.call(e)}var HS="[object Null]",FS="[object Undefined]",b1=Ha?Ha.toStringTag:void 0;function Hr(e){return e==null?e===void 0?FS:HS:b1&&b1 in Object(e)?VS(e):DS(e)}function Lo(e){return e!=null&&typeof e=="object"}var KS="[object Symbol]";function Ud(e){return typeof e=="symbol"||Lo(e)&&Hr(e)==KS}function Rp(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=gx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Cx(e){return function(){return e}}var td=function(){try{var e=Kr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_x=td?function(e,t){return td(e,"toString",{configurable:!0,enumerable:!1,value:Cx(t),writable:!0})}:Np,O6=wx(_x);function Sx(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Mx=9007199254740991,Ox=/^(?:0|[1-9]\d*)$/;function Yd(e,t){var n=typeof e;return t=t??Mx,!!t&&(n=="number"||n!="symbol"&&Ox.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Rx}function js(e){return e!=null&&Lp(e.length)&&!Pp(e)}function Nx(e,t,n){if(!ha(n))return!1;var a=typeof t;return(a=="number"?js(n)&&Yd(t,n.length):a=="string"&&t in n)?bu(n[t],e):!1}function Px(e){return R6(function(t,n){var a=-1,o=n.length,l=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(o--,l):void 0,r&&Nx(n[0],n[1],r)&&(l=o<3?void 0:l,o=1),t=Object(t);++a-1}function W7(e,t){var n=this.__data__,a=Xd(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function yl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?_u(s,t-1,n,a,o):Hp(o,s):a||(o[o.length]=s)}return o}function nd(e){var t=e==null?0:e.length;return t?_u(e,1):[]}function B6(e){return O6(A6(e,void 0,nd),e+"")}var Fp=V6(Object.getPrototypeOf,Object),lk="[object Object]",rk=Function.prototype,sk=Object.prototype,z6=rk.toString,ik=sk.hasOwnProperty,uk=z6.call(Object);function Kp(e){if(!Lo(e)||Hr(e)!=lk)return!1;var t=Fp(e);if(t===null)return!0;var n=ik.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&z6.call(n)==uk}function ck(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++a=t?e:t)),e}function fr(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Mi(n),n=n===n?n:0),t!==void 0&&(t=Mi(t),t=t===t?t:0),dk(Mi(e),t,n)}function fk(){this.__data__=new yl,this.size=0}function pk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hk(e){return this.__data__.get(e)}function vk(e){return this.__data__.has(e)}var mk=200;function gk(e,t){var n=this.__data__;if(n instanceof yl){var a=n.__data__;if(!Ui||a.lengths))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&jE?new Yi:void 0;for(l.set(e,t),l.set(t,e);++f=t||T<0||f&&M>=l}function y(){var k=Xf();if(m(k))return b(k);s=setTimeout(y,v(k))}function b(k){return s=void 0,h&&a?g(k):(a=o=void 0,r)}function w(){s!==void 0&&clearTimeout(s),c=0,a=u=o=s=void 0}function _(){return s===void 0?r:b(Xf())}function S(){var k=Xf(),T=m(k);if(a=arguments,o=this,u=k,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),r}return S.cancel=w,S.flush=_,S}function X0(e,t,n){(n!==void 0&&!bu(e[t],n)||n===void 0&&!(t in e))&&Gd(e,t,n)}function o8(e){return Lo(e)&&js(e)}function J0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function PT(e){return Ws(e,Cu(e))}function IT(e,t,n,a,o,l,r){var s=J0(e,n),u=J0(t,n),c=r.get(u);if(c){X0(e,n,c);return}var d=l?l(s,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var h=pa(u),g=!h&&ji(u),p=!h&&!g&&zp(u);d=u,h||g||p?pa(s)?d=s:o8(s)?d=M6(s):g?(f=!1,d=H6(u,!0)):p?(f=!1,d=q6(u,!0)):d=[]:Kp(u)||Wi(u)?(d=s,Wi(s)?d=PT(s):(!ha(s)||Pp(s))&&(d=U6(u))):f=!1}f&&(r.set(u,d),o(d,u,a,l,r),r.delete(u)),X0(e,n,d)}function l8(e,t,n,a,o){e!==t&&a8(t,function(l,r){if(o||(o=new Xa),ha(l))IT(e,t,r,n,l8,a,o);else{var s=a?a(J0(e,r),l,r+"",e,t,o):void 0;s===void 0&&(s=l),X0(e,r,s)}},Cu)}function LT(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function r8(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return $6(e,n8(t),o,!0)}function VT(e,t){var n=-1,a=js(e)?Array(e.length):[];return $T(e,function(o,l,r){a[++n]=t(o,l,r)}),a}function BT(e,t){var n=pa(e)?Rp:VT;return n(e,n8(t))}function s8(e,t){return _u(BT(e,t),1)}var zT=1/0;function DT(e){var t=e==null?0:e.length;return t?_u(e,zT):[]}function Es(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),l}),Ws(e,j6(e),n),a&&(n=$i(n,UT|YT|GT,qT));for(var o=t.length;o--;)jT(n,t[o]);return n});function u8(e,t,n,a){if(!ha(e))return e;t=qs(t,e);for(var o=-1,l=t.length,r=l-1,s=e;s!=null&&++o=nM){var c=tM(e);if(c)return qp(c);r=!1,o=J6,u=new Yi}else u=s;e:for(;++ae===void 0,Dt=e=>typeof e=="boolean",He=e=>typeof e=="number",ca=e=>!e&&e!==0||be(e)&&e.length===0||lt(e)&&!Object.keys(e).length,ga=e=>typeof Element>"u"?!1:e instanceof Element,ya=e=>gn(e),oM=e=>Be(e)?!Number.isNaN(Number(e)):!1,xu=e=>e===window,Ol=new Map;if(At){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ol.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function Y1(e,t){let n=[];return be(t.arg)?n=t.arg:ga(t.arg)&&n.push(t.arg),function(a,o){const l=t.instance.popperRef,r=a.target,s=o==null?void 0:o.target,u=!t||!t.instance,c=!r||!s,d=e.contains(r)||e.contains(s),f=e===r,h=n.length&&n.some(p=>p==null?void 0:p.contains(r))||n.length&&n.includes(s),g=l&&(l.contains(r)||l.contains(s));u||c||d||f||h||g||t.value(a,o)}}const jl={beforeMount(e,t){Ol.has(e)||Ol.set(e,[]),Ol.get(e).push({documentHandler:Y1(e,t),bindingFn:t.value})},updated(e,t){Ol.has(e)||Ol.set(e,[]);const n=Ol.get(e),a=n.findIndex(l=>l.bindingFn===t.oldValue),o={documentHandler:Y1(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Ol.delete(e)}},lM=100,rM=600,tc="_RepeatClick",od={beforeMount(e,t){const n=t.value,{interval:a=lM,delay:o=rM}=Fe(n)?{}:n;let l,r;const s=()=>Fe(n)?n():n.handler(),u=()=>{r&&(clearTimeout(r),r=void 0),l&&(clearInterval(l),l=void 0)},c=d=>{d.button===0&&(u(),s(),document.addEventListener("mouseup",u,{once:!0}),r=setTimeout(()=>{l=setInterval(()=>{s()},a)},o))};e[tc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[tc])return;const{start:t,clear:n}=e[tc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[tc]=null}},sM='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',c8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,G1=e=>typeof Element>"u"?!1:e instanceof Element,iM=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,X1=e=>Array.from(e.querySelectorAll(sM)).filter(t=>Ar(t)&&iM(t)),Ar=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},kc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},d8=e=>!e.getAttribute("aria-owns"),f8=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},ku=(e,t)=>{if(!e||!e.focus)return;let n=!1;G1(e)&&!Ar(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),G1(e)&&n&&e.removeAttribute("tabindex")},Ec=e=>{e&&(ku(e),!d8(e)&&e.click())},On=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=e==null?void 0:e(o);if(n===!1||!l)return t==null?void 0:t(o)},J1=e=>t=>t.pointerType==="mouse"?e(t):void 0,Kt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=p8(e);if(t){if(Object.values(Ce).includes(t))return t;switch(t){case" ":return Ce.space;default:return""}}return""},p8=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&x6()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Z0="_trap-focus-children",pr=[],Z1=e=>{if(pr.length===0)return;const t=Kt(e),n=pr[pr.length-1][Z0];if(n.length>0&&t===Ce.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],l=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),l&&!a&&(e.preventDefault(),n[0].focus())}},uM={beforeMount(e){e[Z0]=X1(e),pr.push(e),pr.length<=1&&document.addEventListener("keydown",Z1)},updated(e){Le(()=>{e[Z0]=X1(e)})},unmounted(){pr.shift(),pr.length===0&&document.removeEventListener("keydown",Z1)}};var Q1=!1,ir,Q0,e2,Tc,Mc,h8,Oc,t2,n2,a2,v8,o2,l2,m8,g8;function ma(){if(!Q1){Q1=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(o2=/\b(iPhone|iP[ao]d)/.exec(e),l2=/\b(iP[ao]d)/.exec(e),a2=/Android/i.exec(e),m8=/FBAN\/\w+;/i.exec(e),g8=/Mobile/i.exec(e),v8=!!/Win64/.exec(e),t){ir=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ir&&document&&document.documentMode&&(ir=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);h8=a?parseFloat(a[1])+4:ir,Q0=t[2]?parseFloat(t[2]):NaN,e2=t[3]?parseFloat(t[3]):NaN,Tc=t[4]?parseFloat(t[4]):NaN,Tc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Mc=t&&t[1]?parseFloat(t[1]):NaN):Mc=NaN}else ir=Q0=e2=Mc=Tc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Oc=o?parseFloat(o[1].replace("_",".")):!0}else Oc=!1;t2=!!n[2],n2=!!n[3]}else Oc=t2=n2=!1}}var r2={ie:function(){return ma()||ir},ieCompatibilityMode:function(){return ma()||h8>ir},ie64:function(){return r2.ie()&&v8},firefox:function(){return ma()||Q0},opera:function(){return ma()||e2},webkit:function(){return ma()||Tc},safari:function(){return r2.webkit()},chrome:function(){return ma()||Mc},windows:function(){return ma()||t2},osx:function(){return ma()||Oc},linux:function(){return ma()||n2},iphone:function(){return ma()||o2},mobile:function(){return ma()||o2||l2||a2||g8},nativeApp:function(){return ma()||m8},android:function(){return ma()||a2},ipad:function(){return ma()||l2}},cM=r2,dM=!!(typeof window<"u"&&window.document&&window.document.createElement),fM={canUseDOM:dM},y8=fM,b8;y8.canUseDOM&&(b8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function pM(e,t){if(!y8.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&b8&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var hM=pM,em=10,tm=40,nm=800;function w8(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*em,o=n*em,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=tm,o*=tm):(a*=nm,o*=nm)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}w8.getEventType=function(){return cM.firefox()?"DOMMouseScroll":hM("wheel")?"wheel":"mousewheel"};var vM=w8;/** +**/let j0;const Xv=typeof window<"u"&&window.trustedTypes;if(Xv)try{j0=Xv.createPolicy("vue",{createHTML:e=>e})}catch{}const t6=j0?e=>j0.createHTML(e):e=>e,P_="http://www.w3.org/2000/svg",I_="http://www.w3.org/1998/Math/MathML",Uo=typeof document<"u"?document:null,Jv=Uo&&Uo.createElement("template"),L_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Uo.createElementNS(P_,e):t==="mathml"?Uo.createElementNS(I_,e):n?Uo.createElement(e,{is:n}):Uo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Uo.createTextNode(e),createComment:e=>Uo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Uo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Jv.innerHTML=t6(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Jv.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},El="transition",ri="animation",Ss=Symbol("_vtc"),n6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},a6=Rn({},k3,n6),V_=e=>(e.displayName="Transition",e.props=a6,e),Fn=V_((e,{slots:t})=>Ye(FC,o6(e),t)),tr=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zv=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function o6(e){const t={};for(const L in e)L in n6||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=B_(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:C,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:M=w}=t,A=(L,z,q,U)=>{L._enterCancelled=U,Ml(L,z?d:s),Ml(L,z?c:r),q&&q()},O=(L,z)=>{L._isLeaving=!1,Ml(L,f),Ml(L,g),Ml(L,h),z&&z()},I=L=>(z,q)=>{const U=L?T:b,F=()=>A(z,L,q);tr(U,[z,F]),Qv(()=>{Ml(z,L?u:l),wo(z,L?d:s),Zv(U)||e1(z,a,v,F)})};return Rn(t,{onBeforeEnter(L){tr(y,[L]),wo(L,l),wo(L,r)},onBeforeAppear(L){tr(k,[L]),wo(L,u),wo(L,c)},onEnter:I(!1),onAppear:I(!0),onLeave(L,z){L._isLeaving=!0;const q=()=>O(L,z);wo(L,f),L._enterCancelled?(wo(L,h),q0(L)):(q0(L),wo(L,h)),Qv(()=>{L._isLeaving&&(Ml(L,f),wo(L,g),Zv(C)||e1(L,a,m,q))}),tr(C,[L,q])},onEnterCancelled(L){A(L,!1,void 0,!0),tr(w,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),tr(M,[L])},onLeaveCancelled(L){O(L),tr(S,[L])}})}function B_(e){if(e==null)return null;if(lt(e))return[jf(e.enter),jf(e.leave)];{const t=jf(e);return[t,t]}}function jf(e){return G9(e)}function wo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ss]||(e[Ss]=new Set)).add(t)}function Ml(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Ss];n&&(n.delete(t),n.size||(e[Ss]=void 0))}function Qv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let z_=0;function e1(e,t,n,a){const o=e._endId=++z_,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=l6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=a(`${El}Delay`),l=a(`${El}Duration`),r=t1(o,l),s=a(`${ri}Delay`),u=a(`${ri}Duration`),c=t1(s,u);let d=null,f=0,h=0;t===El?r>0&&(d=El,f=r,h=l.length):t===ri?c>0&&(d=ri,f=c,h=u.length):(f=Math.max(r,c),d=f>0?r>c?El:ri:null,h=d?d===El?l.length:u.length:0);const g=d===El&&/\b(?:transform|all)(?:,|$)/.test(a(`${El}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function t1(e,t){for(;e.lengthn1(n)+n1(e[a])))}function n1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function q0(e){return(e?e.ownerDocument:document).body.offsetHeight}function D_(e,t,n){const a=e[Ss];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Qc=Symbol("_vod"),r6=Symbol("_vsh"),At={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):si(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),si(e,!0),a.enter(e)):a.leave(e,()=>{si(e,!1)}):si(e,t))},beforeUnmount(e,{value:t}){si(e,t)}};function si(e,t){e.style.display=t?e[Qc]:"none",e[r6]=!t}const H_=Symbol(""),F_=/(?:^|;)\s*display\s*:/;function K_(e,t,n){const a=e.style,o=Be(n);let l=!1;if(n&&!o){if(t)if(Be(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&kc(a,s,"")}else for(const r in t)n[r]==null&&kc(a,r,"");for(const r in n)r==="display"&&(l=!0),kc(a,r,n[r])}else if(o){if(t!==n){const r=a[H_];r&&(n+=";"+r),a.cssText=n,l=F_.test(n)}}else t&&e.removeAttribute("style");Qc in e&&(e[Qc]=l?a.display:"",e[r6]&&(a.display="none"))}const a1=/\s*!important$/;function kc(e,t,n){if(be(n))n.forEach(a=>kc(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=W_(e,t);a1.test(n)?e.setProperty(vl(a),n.replace(a1,""),"important"):e[a]=n}}const o1=["Webkit","Moz","ms"],qf={};function W_(e,t){const n=qf[t];if(n)return n;let a=Hn(t);if(a!=="filter"&&a in e)return qf[t]=a;a=hu(a);for(let o=0;oUf||(Y_.then(()=>Uf=0),Uf=Date.now());function X_(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Qa(J_(a,n.value),t,5,[a])};return n.value=e,n.attached=G_(),n}function J_(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const c1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z_=(e,t,n,a,o,l)=>{const r=o==="svg";t==="class"?D_(e,a,r):t==="style"?K_(e,n,a):$d(t)?Ad(t)||q_(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q_(e,t,a,r))?(s1(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&r1(e,t,a,r,l,t!=="value")):e._isVueCE&&(eS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(a)))?s1(e,Hn(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),r1(e,t,a,r))};function Q_(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&c1(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return c1(t)&&Be(n)?!1:t in e}function eS(e,t){const n=e._def.props;if(!n)return!1;const a=Hn(t);return Array.isArray(n)?n.some(o=>Hn(o)===a):Object.keys(n).some(o=>Hn(o)===a)}const s6=new WeakMap,i6=new WeakMap,ed=Symbol("_moveCb"),d1=Symbol("_enterCb"),tS=e=>(delete e.props.mode,e),nS=tS({name:"TransitionGroup",props:Rn({},a6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vt(),a=x3();let o,l;return so(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!rS(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(aS),o.forEach(oS);const s=o.filter(lS);q0(n.vnode.el),s.forEach(u=>{const c=u.el,d=c.style;wo(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[ed]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[ed]=null,Ml(c,r))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const r=jt(e),s=o6(r);let u=r.tag||Ke;if(o=[],l)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&a.classList.add(s)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:r}=l6(a);return l.removeChild(a),r}const xs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>Cc(t,n):t};function sS(e){e.target.composing=!0}function f1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ol=Symbol("_assign");function p1(e,t,n){return t&&(e=e.trim()),n&&(e=fp(e)),e}const d6={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[ol]=xs(o);const l=a||o.props&&o.props.type==="number";Pl(e,t?"change":"input",r=>{r.target.composing||e[ol](p1(e.value,n,l))}),(n||l)&&Pl(e,"change",()=>{e.value=p1(e.value,n,l)}),t||(Pl(e,"compositionstart",sS),Pl(e,"compositionend",f1),Pl(e,"change",f1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:l}},r){if(e[ol]=xs(r),e.composing)return;const s=(l||e.type==="number")&&!/^0\d/.test(e.value)?fp(e.value):e.value,u=t??"";if(s===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},f6={deep:!0,created(e,t,n){e[ol]=xs(n),Pl(e,"change",()=>{const a=e._modelValue,o=h6(e),l=e.checked,r=e[ol];if(be(a)){const s=U4(a,o),u=s!==-1;if(l&&!u)r(a.concat(o));else if(!l&&u){const c=[...a];c.splice(s,1),r(c)}}else if(Rd(a)){const s=new Set(a);l?s.add(o):s.delete(o),r(s)}else r(v6(e,l))})},mounted:h1,beforeUpdate(e,t,n){e[ol]=xs(n),h1(e,t,n)}};function h1(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(be(t))o=U4(t,a.props.value)>-1;else if(Rd(t))o=t.has(a.props.value);else{if(t===n)return;o=Tr(t,v6(e,!0))}e.checked!==o&&(e.checked=o)}const p6={created(e,{value:t},n){e.checked=Tr(t,n.props.value),e[ol]=xs(n),Pl(e,"change",()=>{e[ol](h6(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[ol]=xs(a),t!==n&&(e.checked=Tr(t,a.props.value))}};function h6(e){return"_value"in e?e._value:e.value}function v6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iS=["ctrl","shift","alt","meta"],uS={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>iS.some(n=>e[`${n}Key`]&&!t.includes(n))},Je=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...l)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const l=vl(o.key);if(t.some(r=>r===l||cS[r]===l))return e(o)})},dS=Rn({patchProp:Z_},L_);let v1;function m6(){return v1||(v1=g_(dS))}const Wl=(...e)=>{m6().render(...e)},g6=(...e)=>{const t=m6().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=pS(a);if(!o)return;const l=t._component;!Fe(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,fS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function fS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pS(e){return Be(e)?document.querySelector(e):e}const Ce={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},m1=["left","center","right"],hS=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Yf=["sun","mon","tue","wed","thu","fri","sat"],ot="update:modelValue",bt="change",wn="input",jd=11,y6=2,g1=Symbol("INSTALLED_KEY"),io=["","default","small","large"];function b6(e,t){var n;const a=qt();return da(()=>{a.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Mr(a)}function Hr(e){return J4()?(Z4(e),!0):!1}function qn(e){return typeof e=="function"?e():i(e)}function vS(e){if(!Yt(e))return Nt(e);const t=new Proxy({},{get(n,a,o){return i(Reflect.get(e.value,a,o))},set(n,a,o){return Yt(e.value[a])&&!Yt(o)?e.value[a].value=o:e.value[a]=o,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Nt(t)}function mS(e){return vS(x(e))}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gS=e=>typeof e<"u",w6=e=>e!=null,yS=Object.prototype.toString,bS=e=>yS.call(e)==="[object Object]",C6=(e,t,n)=>Math.min(n,Math.max(t,e)),Ga=()=>{},td=wS();function wS(){var e,t;return Rt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function _6(e,t){function n(...a){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(l)})}return n}function CS(e,t={}){let n,a,o=Ga;const l=s=>{clearTimeout(s),o(),o=Ga};return s=>{const u=qn(e),c=qn(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&l(n),a=null,d(s())},c)),n=setTimeout(()=>{a&&l(a),a=null,d(s())},u)})}}function _S(...e){let t=0,n,a=!0,o=Ga,l,r,s,u,c;!Yt(e[0])&&typeof e[0]=="object"?{delay:r,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,s=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ga)};return h=>{const g=qn(r),p=Date.now()-t,v=()=>l=h();return d(),g<=0?(t=Date.now(),v()):(p>g&&(u||!a)?(t=Date.now(),v()):s&&(l=new Promise((m,y)=>{o=c?y:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-p))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,l)}}function SS(e){return vt()}function yu(e,t=200,n={}){return _6(CS(t,n),e)}function xS(e,t=200,n={}){const a=V(e.value),o=yu(()=>{a.value=e.value},t,n);return fe(e,()=>o()),a}function S6(e,t=200,n=!1,a=!0,o=!1){return _6(_S(t,n,a,o),e)}function Ap(e,t=!0,n){SS()?gt(e,n):t?e():Le(e)}function ks(e,t,n={}){const{immediate:a=!0}=n,o=V(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function s(){o.value=!1,r()}function u(...c){r(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},qn(t))}return a&&(o.value=!0,Rt&&u()),Hr(s),{isPending:Mr(o),start:u,stop:s}}const uo=Rt?window:void 0,kS=Rt?window.document:void 0;function xn(e){var t;const n=qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vt(...e){let t,n,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,o]=e,t=uo):[t,n,a,o]=e,!t)return Ga;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),u=fe(()=>[xn(t),qn(o)],([d,f])=>{if(r(),!d)return;const h=bS(f)?{...f}:f;l.push(...n.flatMap(g=>a.map(p=>s(d,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Hr(c),c}let y1=!1;function Rp(e,t,n={}){const{window:a=uo,ignore:o=[],capture:l=!0,detectIframe:r=!1}=n;if(!a)return Ga;td&&!y1&&(y1=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",Ga)),a.document.documentElement.addEventListener("click",Ga));let s=!0;const u=v=>qn(o).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=xn(m);return y&&(v.target===y||v.composedPath().includes(y))}});function c(v){const m=qn(v);return m&&m.$.subTree.shapeFlag===16}function d(v,m){const y=qn(v),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===m.target||m.composedPath().includes(w.el))}const f=v=>{const m=xn(e);if(v.target!=null&&!(!(m instanceof Element)&&c(e)&&d(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(s=!u(v)),!s){s=!0;return}t(v)}};let h=!1;const g=[Vt(a,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(v))},{passive:!0,capture:l}),Vt(a,"pointerdown",v=>{const m=xn(e);s=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Vt(a,"blur",v=>{setTimeout(()=>{var m;const y=xn(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(a.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>g.forEach(v=>v())}function ES(){const e=V(!1),t=vt();return t&>(()=>{e.value=!0},t),e}function qd(e){const t=ES();return x(()=>(t.value,!!e()))}function bu(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=qd(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const h=qn(e),g=(Array.isArray(h)?h:[h]).map(xn).filter(w6);return new Set(g)}),c=fe(()=>u.value,h=>{s(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{c(),s()};return Hr(f),{isSupported:r,stop:f,takeRecords:d}}function TS(e={}){var t;const{window:n=uo,deep:a=!0,triggerOnRemoval:o=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(a)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},s=V(),u=()=>{s.value=r()};return n&&(Vt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Vt(n,"focus",u,!0)),o&&bu(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function MS(e,t={}){const{window:n=uo}=t,a=qd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=V(!1),r=c=>{l.value=c.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},u=da(()=>{a.value&&(s(),o=n.matchMedia(qn(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return Hr(()=>{u(),s(),o=void 0}),l}function OS(e){return JSON.parse(JSON.stringify(e))}function $S(e,t,n={}){const{window:a=uo,initialValue:o,observe:l=!1}=n,r=V(o),s=x(()=>{var c;return xn(t)||((c=a==null?void 0:a.document)==null?void 0:c.documentElement)});function u(){var c;const d=qn(e),f=qn(s);if(f&&a&&d){const h=(c=a.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||o}}return l&&bu(s,u,{attributeFilter:["style","class"],window:a}),fe([s,()=>qn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),fe(r,c=>{var d;const f=qn(e);(d=s.value)!=null&&d.style&&f&&(c==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,c))}),r}function AS(e={}){const{document:t=kS}=e;if(!t)return V("visible");const n=V(t.visibilityState);return Vt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Zt(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=qd(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const f=qn(e);return Array.isArray(f)?f.map(h=>xn(h)):[xn(f)]}),c=fe(u,f=>{if(s(),r.value&&a){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return Hr(d),{isSupported:r,stop:d}}function b1(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:r="sync"}=t,s=V(0),u=V(0),c=V(0),d=V(0),f=V(0),h=V(0),g=V(0),p=V(0);function v(){const y=xn(e);if(!y){n&&(s.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,g.value=0,p.value=0);return}const b=y.getBoundingClientRect();s.value=b.height,u.value=b.bottom,c.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,p.value=b.y}function m(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return Zt(e,m),fe(()=>xn(e),y=>!y&&m()),bu(e,m,{attributeFilter:["style","class"]}),o&&Vt("scroll",m,{capture:!0,passive:!0}),a&&Vt("resize",m,{passive:!0}),Ap(()=>{l&&m()}),{height:s,bottom:u,left:c,right:d,top:f,width:h,x:g,y:p,update:m}}function U0(e,t={width:0,height:0},n={}){const{window:a=uo,box:o="content-box"}=n,l=x(()=>{var f,h;return(h=(f=xn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=V(t.width),s=V(t.height),{stop:u}=Zt(e,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&l.value){const g=xn(e);if(g){const p=g.getBoundingClientRect();r.value=p.width,s.value=p.height}}else if(h){const g=Array.isArray(h)?h:[h];r.value=g.reduce((p,{inlineSize:v})=>p+v,0),s.value=g.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,s.value=f.contentRect.height},n);Ap(()=>{const f=xn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=fe(()=>xn(e),f=>{r.value=f?t.width:0,s.value=f?t.height:0});function d(){u(),c()}return{width:r,height:s,stop:d}}function RS(e,t,n={}){const{root:a,rootMargin:o="0px",threshold:l=0,window:r=uo,immediate:s=!0}=n,u=qd(()=>r&&"IntersectionObserver"in r),c=x(()=>{const p=qn(e);return(Array.isArray(p)?p:[p]).map(xn).filter(w6)});let d=Ga;const f=V(s),h=u.value?fe(()=>[c.value,xn(a),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const m=new IntersectionObserver(t,{root:xn(v),rootMargin:o,threshold:l});p.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=Ga}},{immediate:s,flush:"post"}):Ga,g=()=>{d(),h(),f.value=!1};return Hr(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function x6(e,t,n,a={}){var o,l,r;const{clone:s=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=a,g=vt(),p=n||(g==null?void 0:g.emit)||((o=g==null?void 0:g.$emit)==null?void 0:o.bind(g))||((r=(l=g==null?void 0:g.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=w=>s?typeof s=="function"?s(w):OS(w):w,y=()=>gS(e[t])?m(e[t]):f,b=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=y(),C=V(w);let S=!1;return fe(()=>e[t],k=>{S||(S=!0,C.value=m(k),Le(()=>S=!1))}),fe(C,k=>{!S&&(k!==e[t]||d)&&b(k)},{deep:d}),C}else return x({get(){return y()},set(w){b(w)}})}function NS(e={}){const{window:t=uo}=e;if(!t)return V(!1);const n=V(t.document.hasFocus());return Vt(t,"blur",()=>{n.value=!1}),Vt(t,"focus",()=>{n.value=!0}),n}function Np(e={}){const{window:t=uo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:r="inner"}=e,s=V(n),u=V(a),c=()=>{t&&(r==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):l?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),Ap(c),Vt("resize",c,{passive:!0}),o){const d=MS("(orientation: portrait)");fe(d,()=>c())}return{width:s,height:u}}const Ud=()=>Rt&&/firefox/i.test(window.navigator.userAgent),k6=()=>Rt&&/android/i.test(window.navigator.userAgent);var E6=typeof global=="object"&&global&&global.Object===Object&&global,PS=typeof self=="object"&&self&&self.Object===Object&&self,co=E6||PS||Function("return this")(),Ha=co.Symbol,T6=Object.prototype,IS=T6.hasOwnProperty,LS=T6.toString,ii=Ha?Ha.toStringTag:void 0;function VS(e){var t=IS.call(e,ii),n=e[ii];try{e[ii]=void 0;var a=!0}catch{}var o=LS.call(e);return a&&(t?e[ii]=n:delete e[ii]),o}var BS=Object.prototype,zS=BS.toString;function DS(e){return zS.call(e)}var HS="[object Null]",FS="[object Undefined]",w1=Ha?Ha.toStringTag:void 0;function Fr(e){return e==null?e===void 0?FS:HS:w1&&w1 in Object(e)?VS(e):DS(e)}function Lo(e){return e!=null&&typeof e=="object"}var KS="[object Symbol]";function Yd(e){return typeof e=="symbol"||Lo(e)&&Fr(e)==KS}function Pp(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=gx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Cx(e){return function(){return e}}var nd=function(){try{var e=Wr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_x=nd?function(e,t){return nd(e,"toString",{configurable:!0,enumerable:!1,value:Cx(t),writable:!0})}:Ip,$6=wx(_x);function Sx(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Mx=9007199254740991,Ox=/^(?:0|[1-9]\d*)$/;function Gd(e,t){var n=typeof e;return t=t??Mx,!!t&&(n=="number"||n!="symbol"&&Ox.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Rx}function qs(e){return e!=null&&Bp(e.length)&&!Lp(e)}function Nx(e,t,n){if(!ha(n))return!1;var a=typeof t;return(a=="number"?qs(n)&&Gd(t,n.length):a=="string"&&t in n)?wu(n[t],e):!1}function Px(e){return N6(function(t,n){var a=-1,o=n.length,l=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(o--,l):void 0,r&&Nx(n[0],n[1],r)&&(l=o<3?void 0:l,o=1),t=Object(t);++a-1}function W7(e,t){var n=this.__data__,a=Jd(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function yl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Su(s,t-1,n,a,o):Kp(o,s):a||(o[o.length]=s)}return o}function ad(e){var t=e==null?0:e.length;return t?Su(e,1):[]}function z6(e){return $6(R6(e,void 0,ad),e+"")}var Wp=B6(Object.getPrototypeOf,Object),lk="[object Object]",rk=Function.prototype,sk=Object.prototype,D6=rk.toString,ik=sk.hasOwnProperty,uk=D6.call(Object);function jp(e){if(!Lo(e)||Fr(e)!=lk)return!1;var t=Wp(e);if(t===null)return!0;var n=ik.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&D6.call(n)==uk}function ck(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++a=t?e:t)),e}function pr(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Oi(n),n=n===n?n:0),t!==void 0&&(t=Oi(t),t=t===t?t:0),dk(Oi(e),t,n)}function fk(){this.__data__=new yl,this.size=0}function pk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hk(e){return this.__data__.get(e)}function vk(e){return this.__data__.has(e)}var mk=200;function gk(e,t){var n=this.__data__;if(n instanceof yl){var a=n.__data__;if(!Yi||a.lengths))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&jE?new Gi:void 0;for(l.set(e,t),l.set(t,e);++f=t||T<0||f&&M>=l}function y(){var k=Zf();if(m(k))return b(k);s=setTimeout(y,v(k))}function b(k){return s=void 0,h&&a?g(k):(a=o=void 0,r)}function w(){s!==void 0&&clearTimeout(s),c=0,a=u=o=s=void 0}function C(){return s===void 0?r:b(Zf())}function S(){var k=Zf(),T=m(k);if(a=arguments,o=this,u=k,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),r}return S.cancel=w,S.flush=C,S}function Z0(e,t,n){(n!==void 0&&!wu(e[t],n)||n===void 0&&!(t in e))&&Xd(e,t,n)}function l8(e){return Lo(e)&&qs(e)}function Q0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function PT(e){return js(e,_u(e))}function IT(e,t,n,a,o,l,r){var s=Q0(e,n),u=Q0(t,n),c=r.get(u);if(c){Z0(e,n,c);return}var d=l?l(s,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var h=pa(u),g=!h&&qi(u),p=!h&&!g&&Hp(u);d=u,h||g||p?pa(s)?d=s:l8(s)?d=O6(s):g?(f=!1,d=F6(u,!0)):p?(f=!1,d=U6(u,!0)):d=[]:jp(u)||ji(u)?(d=s,ji(s)?d=PT(s):(!ha(s)||Lp(s))&&(d=Y6(u))):f=!1}f&&(r.set(u,d),o(d,u,a,l,r),r.delete(u)),Z0(e,n,d)}function r8(e,t,n,a,o){e!==t&&o8(t,function(l,r){if(o||(o=new Xa),ha(l))IT(e,t,r,n,r8,a,o);else{var s=a?a(Q0(e,r),l,r+"",e,t,o):void 0;s===void 0&&(s=l),Z0(e,r,s)}},_u)}function LT(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function s8(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return A6(e,a8(t),o,!0)}function VT(e,t){var n=-1,a=qs(e)?Array(e.length):[];return $T(e,function(o,l,r){a[++n]=t(o,l,r)}),a}function BT(e,t){var n=pa(e)?Pp:VT;return n(e,a8(t))}function i8(e,t){return Su(BT(e,t),1)}var zT=1/0;function DT(e){var t=e==null?0:e.length;return t?Su(e,zT):[]}function Ts(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),l}),js(e,q6(e),n),a&&(n=Ai(n,UT|YT|GT,qT));for(var o=t.length;o--;)jT(n,t[o]);return n});function c8(e,t,n,a){if(!ha(e))return e;t=Us(t,e);for(var o=-1,l=t.length,r=l-1,s=e;s!=null&&++o=nM){var c=tM(e);if(c)return Yp(c);r=!1,o=Z6,u=new Gi}else u=s;e:for(;++ae===void 0,Dt=e=>typeof e=="boolean",He=e=>typeof e=="number",ca=e=>!e&&e!==0||be(e)&&e.length===0||lt(e)&&!Object.keys(e).length,ga=e=>typeof Element>"u"?!1:e instanceof Element,ya=e=>yn(e),oM=e=>Be(e)?!Number.isNaN(Number(e)):!1,ku=e=>e===window,Ol=new Map;if(Rt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ol.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function G1(e,t){let n=[];return be(t.arg)?n=t.arg:ga(t.arg)&&n.push(t.arg),function(a,o){const l=t.instance.popperRef,r=a.target,s=o==null?void 0:o.target,u=!t||!t.instance,c=!r||!s,d=e.contains(r)||e.contains(s),f=e===r,h=n.length&&n.some(p=>p==null?void 0:p.contains(r))||n.length&&n.includes(s),g=l&&(l.contains(r)||l.contains(s));u||c||d||f||h||g||t.value(a,o)}}const jl={beforeMount(e,t){Ol.has(e)||Ol.set(e,[]),Ol.get(e).push({documentHandler:G1(e,t),bindingFn:t.value})},updated(e,t){Ol.has(e)||Ol.set(e,[]);const n=Ol.get(e),a=n.findIndex(l=>l.bindingFn===t.oldValue),o={documentHandler:G1(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Ol.delete(e)}},lM=100,rM=600,nc="_RepeatClick",ld={beforeMount(e,t){const n=t.value,{interval:a=lM,delay:o=rM}=Fe(n)?{}:n;let l,r;const s=()=>Fe(n)?n():n.handler(),u=()=>{r&&(clearTimeout(r),r=void 0),l&&(clearInterval(l),l=void 0)},c=d=>{d.button===0&&(u(),s(),document.addEventListener("mouseup",u,{once:!0}),r=setTimeout(()=>{l=setInterval(()=>{s()},a)},o))};e[nc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[nc])return;const{start:t,clear:n}=e[nc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[nc]=null}},sM='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',d8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,X1=e=>typeof Element>"u"?!1:e instanceof Element,iM=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,J1=e=>Array.from(e.querySelectorAll(sM)).filter(t=>Rr(t)&&iM(t)),Rr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Ec=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},f8=e=>!e.getAttribute("aria-owns"),p8=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},Eu=(e,t)=>{if(!e||!e.focus)return;let n=!1;X1(e)&&!Rr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),X1(e)&&n&&e.removeAttribute("tabindex")},Tc=e=>{e&&(Eu(e),!f8(e)&&e.click())},On=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=e==null?void 0:e(o);if(n===!1||!l)return t==null?void 0:t(o)},Z1=e=>t=>t.pointerType==="mouse"?e(t):void 0,Kt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=h8(e);if(t){if(Object.values(Ce).includes(t))return t;switch(t){case" ":return Ce.space;default:return""}}return""},h8=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&k6()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},e2="_trap-focus-children",hr=[],Q1=e=>{if(hr.length===0)return;const t=Kt(e),n=hr[hr.length-1][e2];if(n.length>0&&t===Ce.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],l=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),l&&!a&&(e.preventDefault(),n[0].focus())}},uM={beforeMount(e){e[e2]=J1(e),hr.push(e),hr.length<=1&&document.addEventListener("keydown",Q1)},updated(e){Le(()=>{e[e2]=J1(e)})},unmounted(){hr.shift(),hr.length===0&&document.removeEventListener("keydown",Q1)}};var em=!1,ur,t2,n2,Mc,Oc,v8,$c,a2,o2,l2,m8,r2,s2,g8,y8;function ma(){if(!em){em=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(r2=/\b(iPhone|iP[ao]d)/.exec(e),s2=/\b(iP[ao]d)/.exec(e),l2=/Android/i.exec(e),g8=/FBAN\/\w+;/i.exec(e),y8=/Mobile/i.exec(e),m8=!!/Win64/.exec(e),t){ur=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ur&&document&&document.documentMode&&(ur=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);v8=a?parseFloat(a[1])+4:ur,t2=t[2]?parseFloat(t[2]):NaN,n2=t[3]?parseFloat(t[3]):NaN,Mc=t[4]?parseFloat(t[4]):NaN,Mc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Oc=t&&t[1]?parseFloat(t[1]):NaN):Oc=NaN}else ur=t2=n2=Oc=Mc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);$c=o?parseFloat(o[1].replace("_",".")):!0}else $c=!1;a2=!!n[2],o2=!!n[3]}else $c=a2=o2=!1}}var i2={ie:function(){return ma()||ur},ieCompatibilityMode:function(){return ma()||v8>ur},ie64:function(){return i2.ie()&&m8},firefox:function(){return ma()||t2},opera:function(){return ma()||n2},webkit:function(){return ma()||Mc},safari:function(){return i2.webkit()},chrome:function(){return ma()||Oc},windows:function(){return ma()||a2},osx:function(){return ma()||$c},linux:function(){return ma()||o2},iphone:function(){return ma()||r2},mobile:function(){return ma()||r2||s2||l2||y8},nativeApp:function(){return ma()||g8},android:function(){return ma()||l2},ipad:function(){return ma()||s2}},cM=i2,dM=!!(typeof window<"u"&&window.document&&window.document.createElement),fM={canUseDOM:dM},b8=fM,w8;b8.canUseDOM&&(w8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function pM(e,t){if(!b8.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&w8&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var hM=pM,tm=10,nm=40,am=800;function C8(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*tm,o=n*tm,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=nm,o*=nm):(a*=am,o*=am)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}C8.getEventType=function(){return cM.firefox()?"DOMMouseScroll":hM("wheel")?"wheel":"mousewheel"};var vM=C8;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -28,14 +28,14 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-CyUiDLKS. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const $c="_Mousewheel",am=function(e,t){if(e&&e.addEventListener){C8(e);const n=function(a){const o=vM(a);t&&Reflect.apply(t,this,[a,o])};e[$c]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},C8=e=>{var t;(t=e[$c])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[$c].wheelHandler),e[$c]=null)},mM={beforeMount(e,t){am(e,t.value)},unmounted(e){C8(e)},updated(e,t){t.value!==t.oldValue&&am(e,t.value)}},Gi=e=>Object.keys(e),_8=e=>Object.entries(e),zl=(e,t,n)=>({get value(){return bn(e,t,n)},set value(a){ZT(e,t,a)}}),S8="__epPropKey",J=e=>e,gM=e=>lt(e)&&!!e[S8],fo=(e,t)=>{if(!lt(e)||gM(e))return e;const{values:n,required:a,default:o,type:l,validator:r}=e,s={type:l,required:!!a,validator:n||r?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Mt(e,"default")&&d.push(o),c||(c=d.includes(u))),r&&(c||(c=r(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");N_(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[S8]:!0};return Mt(e,"default")&&(s.default=o),s},_e=e=>Es(Object.entries(e).map(([t,n])=>[t,fo(n,t)])),Eu=_e({to:{type:J([String,Object]),required:!0},disabled:Boolean}),yM=_e({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Eu.to.type,default:"body"}}),bM={scroll:({scrollTop:e,fixed:t})=>He(e)&&Dt(t),[bt]:e=>Dt(e)};var x8=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function en(e,t){throw new x8(`[${e}] ${t}`)}function pt(e,t){{const n=Be(e)?new x8(`[${e}] ${t}`):e;console.warn(n)}}const wM=["class","style"],CM=/^on[A-Z]/,nf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(wM)),o=vt();return o?x(()=>{var l;return Es(Object.entries((l=o.proxy)==null?void 0:l.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&CM.test(r))))}):(pt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x(()=>({})))};function Up(){const e=qt(),t=V(0),n=x(()=>({minWidth:`${Math.max(t.value,Wd)}px`}));return Zt(e,()=>{var o;t.value=((o=e.value)==null?void 0:o.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const $o=({from:e,replacement:t,scope:n,version:a,ref:o,type:l="API"},r)=>{fe(()=>i(r),s=>{s&&pt(n,`[${l}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. +*/const Ac="_Mousewheel",om=function(e,t){if(e&&e.addEventListener){_8(e);const n=function(a){const o=vM(a);t&&Reflect.apply(t,this,[a,o])};e[Ac]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},_8=e=>{var t;(t=e[Ac])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[Ac].wheelHandler),e[Ac]=null)},mM={beforeMount(e,t){om(e,t.value)},unmounted(e){_8(e)},updated(e,t){t.value!==t.oldValue&&om(e,t.value)}},Xi=e=>Object.keys(e),S8=e=>Object.entries(e),zl=(e,t,n)=>({get value(){return bn(e,t,n)},set value(a){ZT(e,t,a)}}),x8="__epPropKey",J=e=>e,gM=e=>lt(e)&&!!e[x8],fo=(e,t)=>{if(!lt(e)||gM(e))return e;const{values:n,required:a,default:o,type:l,validator:r}=e,s={type:l,required:!!a,validator:n||r?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Mt(e,"default")&&d.push(o),c||(c=d.includes(u))),r&&(c||(c=r(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");N_(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[x8]:!0};return Mt(e,"default")&&(s.default=o),s},_e=e=>Ts(Object.entries(e).map(([t,n])=>[t,fo(n,t)])),Tu=_e({to:{type:J([String,Object]),required:!0},disabled:Boolean}),yM=_e({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Tu.to.type,default:"body"}}),bM={scroll:({scrollTop:e,fixed:t})=>He(e)&&Dt(t),[bt]:e=>Dt(e)};var k8=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function tn(e,t){throw new k8(`[${e}] ${t}`)}function pt(e,t){{const n=Be(e)?new k8(`[${e}] ${t}`):e;console.warn(n)}}const wM=["class","style"],CM=/^on[A-Z]/,af=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(wM)),o=vt();return o?x(()=>{var l;return Ts(Object.entries((l=o.proxy)==null?void 0:l.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&CM.test(r))))}):(pt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x(()=>({})))};function Gp(){const e=qt(),t=V(0),n=x(()=>({minWidth:`${Math.max(t.value,jd)}px`}));return Zt(e,()=>{var o;t.value=((o=e.value)==null?void 0:o.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const $o=({from:e,replacement:t,scope:n,version:a,ref:o,type:l="API"},r)=>{fe(()=>i(r),s=>{s&&pt(n,`[${l}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. For more detail, please visit: ${o} -`)},{immediate:!0})},Yp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Zf=e=>pu(e),_M="utils/dom/style",k8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ao=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ba=(e,t)=>{!e||!t.trim()||e.classList.add(...k8(t))},aa=(e,t)=>{!e||!t.trim()||e.classList.remove(...k8(t))},Zo=(e,t)=>{var a;if(!At||!e||!t||c8(e))return"";let n=Hn(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},E8=(e,t,n)=>{if(!(!e||!t))if(lt(t))_8(t).forEach(([a,o])=>E8(e,a,o));else{const a=Hn(t);e.style[a]=n}};function ln(e,t="px"){if(!e&&e!==0)return"";if(He(e)||oM(e))return`${e}${t}`;if(Be(e))return e;pt(_M,"binding value must be a string or number")}const T8=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=V(!1),r=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,w=m.width,_=m.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-y+p,M=-b+v,A=S-y-w+p,O=k-b-(_{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=w=>{l.value||(l.value=!0),r(v+w.clientX-g,m+w.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;r(h,g)};return gt(()=>{da(()=>{n.value?u():c()})}),Lt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var SM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const xM=e=>(t,n)=>kM(t,n,i(e)),kM=(e,t,n)=>bn(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),EM=e=>({lang:x(()=>i(e).name),locale:Yt(e)?e:V(e),t:xM(e)}),M8=Symbol("localeContextKey"),kt=e=>{const t=e||Pe(M8,V());return EM(x(()=>t.value||SM))},Ai="el",TM="is-",nr=(e,t,n,a,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),a&&(l+=`__${a}`),o&&(l+=`--${o}`),l},O8=Symbol("namespaceContextKey"),Gp=e=>{const t=e||(vt()?Pe(O8,V(Ai)):V(Ai));return x(()=>i(t)||Ai)},ve=(e,t)=>{const n=Gp(t);return{namespace:n,b:(v="")=>nr(n.value,e,v,"",""),e:v=>v?nr(n.value,e,"",v,""):"",m:v=>v?nr(n.value,e,"","",v):"",be:(v,m)=>v&&m?nr(n.value,e,v,m,""):"",em:(v,m)=>v&&m?nr(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?nr(n.value,e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?nr(n.value,e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${TM}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${e}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function MM(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Fa=e=>At?window.requestAnimationFrame(e):setTimeout(e,16),cl=e=>At?window.cancelAnimationFrame(e):clearTimeout(e),OM=(e,t)=>{if(!At)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Zo(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},Xp=(e,t)=>{if(!At)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(OM(n,t))return n;c8(n)?n=n.host:n=n.parentNode}return n};let nc;const $8=e=>{var l;if(!At)return 0;if(nc!==void 0)return nc;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),nc=n-o,nc};function Jp(e,t){if(!At)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=o+t.offsetHeight,r=e.scrollTop,s=r+e.clientHeight;os&&(e.scrollTop=l-e.clientHeight)}function $M(e,t,n,a,o){const l=Date.now();let r;const s=()=>{const u=Date.now()-l,c=MM(u>a?a:u,t,n,a);xu(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{r&&cl(r)}}const om=(e,t)=>xu(t)?e.ownerDocument.documentElement:t,lm=e=>xu(e)?window.scrollY:e.scrollTop,af=(e,t={})=>{Yt(e)||en("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ve("popup"),a=x(()=>n.bm("parent","hidden"));let o=0,l=!1,r="0",s=!1;const u=()=>{s||(s=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=r,aa(document.body,a.value))},200))};fe(e,c=>{if(!c){u();return}s=!1,l=!Ao(document.body,a.value),l&&(r=document.body.style.width,Ba(document.body,a.value)),o=$8(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${o}px)`)}),J4(()=>u())},AM=fo({type:J(Boolean),default:null}),RM=fo({type:J(Function)}),NM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:AM,[n]:RM};return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=vt(),{emit:g}=h,p=h.props,v=x(()=>Fe(p[n])),m=x(()=>p[e]===null),y=T=>{r.value!==!0&&(r.value=!0,s&&(s.value=T),Fe(d)&&d(T))},b=T=>{r.value!==!1&&(r.value=!1,s&&(s.value=T),Fe(f)&&f(T))},w=T=>{if(p.disabled===!0||Fe(c)&&!c())return;const M=v.value&&At;M&&g(t,!0),(m.value||!M)&&y(T)},_=T=>{if(p.disabled===!0||!At)return;const M=v.value&&At;M&&g(t,!1),(m.value||!M)&&b(T)},S=T=>{Dt(T)&&(p.disabled&&T?v.value&&g(t,!1):r.value!==T&&(T?y():b()))},k=()=>{r.value?_():w()};return fe(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&_()}),gt(()=>{S(p[e])}),{hide:_,show:w,toggle:k,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},A8=e=>{const t=vt();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})};var ba="top",Ka="bottom",Wa="right",wa="left",Zp="auto",Tu=[ba,Ka,Wa,wa],Ts="start",Xi="end",PM="clippingParents",R8="viewport",ii="popper",IM="reference",rm=Tu.reduce(function(e,t){return e.concat([t+"-"+Ts,t+"-"+Xi])},[]),Ho=[].concat(Tu,[Zp]).reduce(function(e,t){return e.concat([t,t+"-"+Ts,t+"-"+Xi])},[]),LM="beforeRead",VM="read",BM="afterRead",zM="beforeMain",DM="main",HM="afterMain",FM="beforeWrite",KM="write",WM="afterWrite",jM=[LM,VM,BM,zM,DM,HM,FM,KM,WM];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function Ra(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rr(e){var t=Ra(e).Element;return e instanceof t||e instanceof Element}function Da(e){var t=Ra(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=Ra(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!Da(l)||!Bo(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(r){var s=o[r];s===!1?l.removeAttribute(r):l.setAttribute(r,s===!0?"":s)}))})}function UM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],l=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=r.reduce(function(u,c){return u[c]="",u},{});!Da(o)||!Bo(o)||(Object.assign(o.style,s),Object.keys(l).forEach(function(u){o.removeAttribute(u)}))})}}var N8={name:"applyStyles",enabled:!0,phase:"write",fn:qM,effect:UM,requires:["computeStyles"]};function Ro(e){return e.split("-")[0]}var _r=Math.max,ld=Math.min,Ms=Math.round;function s2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function P8(){return!/^((?!chrome|android).)*safari/i.test(s2())}function Os(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,l=1;t&&Da(e)&&(o=e.offsetWidth>0&&Ms(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ms(a.height)/e.offsetHeight||1);var r=Rr(e)?Ra(e):window,s=r.visualViewport,u=!P8()&&n,c=(a.left+(u&&s?s.offsetLeft:0))/o,d=(a.top+(u&&s?s.offsetTop:0))/l,f=a.width/o,h=a.height/l;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function eh(e){var t=Os(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function I8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function dl(e){return Ra(e).getComputedStyle(e)}function YM(e){return["table","td","th"].indexOf(Bo(e))>=0}function Gl(e){return((Rr(e)?e.ownerDocument:e.document)||window.document).documentElement}function of(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||Gl(e)}function sm(e){return!Da(e)||dl(e).position==="fixed"?null:e.offsetParent}function GM(e){var t=/firefox/i.test(s2()),n=/Trident/i.test(s2());if(n&&Da(e)){var a=dl(e);if(a.position==="fixed")return null}var o=of(e);for(Qp(o)&&(o=o.host);Da(o)&&["html","body"].indexOf(Bo(o))<0;){var l=dl(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Mu(e){for(var t=Ra(e),n=sm(e);n&&YM(n)&&dl(n).position==="static";)n=sm(n);return n&&(Bo(n)==="html"||Bo(n)==="body"&&dl(n).position==="static")?t:n||GM(e)||t}function th(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ri(e,t,n){return _r(e,ld(t,n))}function XM(e,t,n){var a=Ri(e,t,n);return a>n?n:a}function L8(){return{top:0,right:0,bottom:0,left:0}}function V8(e){return Object.assign({},L8(),e)}function B8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var JM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,V8(typeof e!="number"?e:B8(e,Tu))};function ZM(e){var t,n=e.state,a=e.name,o=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,s=Ro(n.placement),u=th(s),c=[wa,Wa].indexOf(s)>=0,d=c?"height":"width";if(!(!l||!r)){var f=JM(o.padding,n),h=eh(l),g=u==="y"?ba:wa,p=u==="y"?Ka:Wa,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],m=r[u]-n.rects.reference[u],y=Mu(l),b=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-m/2,_=f[g],S=b-h[d]-f[p],k=b/2-h[d]/2+w,T=Ri(_,k,S),M=u;n.modifiersData[a]=(t={},t[M]=T,t.centerOffset=T-k,t)}}function QM(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||I8(t.elements.popper,o)&&(t.elements.arrow=o))}var eO={name:"arrow",enabled:!0,phase:"main",fn:ZM,effect:QM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e){return e.split("-")[1]}var tO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nO(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Ms(n*o)/o||0,y:Ms(a*o)/o||0}}function im(e){var t,n=e.popper,a=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,g=h===void 0?0:h,p=r.y,v=p===void 0?0:p,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var y=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),w=wa,_=ba,S=window;if(c){var k=Mu(n),T="clientHeight",M="clientWidth";if(k===Ra(n)&&(k=Gl(n),dl(k).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),k=k,o===ba||(o===wa||o===Wa)&&l===Xi){_=Ka;var A=f&&k===S&&S.visualViewport?S.visualViewport.height:k[T];v-=A-a.height,v*=u?1:-1}if(o===wa||(o===ba||o===Ka)&&l===Xi){w=Wa;var O=f&&k===S&&S.visualViewport?S.visualViewport.width:k[M];g-=O-a.width,g*=u?1:-1}}var I=Object.assign({position:s},c&&tO),L=d===!0?nO({x:g,y:v},Ra(n)):{x:g,y:v};if(g=L.x,v=L.y,u){var z;return Object.assign({},I,(z={},z[_]=b?"0":"",z[w]=y?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",z))}return Object.assign({},I,(t={},t[_]=b?v+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function aO(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,l=n.adaptive,r=l===void 0?!0:l,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Ro(t.placement),variation:$s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,im(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,im(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var z8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aO,data:{}},ac={passive:!0};function oO(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,l=o===void 0?!0:o,r=a.resize,s=r===void 0?!0:r,u=Ra(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,ac)}),s&&u.addEventListener("resize",n.update,ac),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ac)}),s&&u.removeEventListener("resize",n.update,ac)}}var D8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oO,data:{}},lO={left:"right",right:"left",bottom:"top",top:"bottom"};function Ac(e){return e.replace(/left|right|bottom|top/g,function(t){return lO[t]})}var rO={start:"end",end:"start"};function um(e){return e.replace(/start|end/g,function(t){return rO[t]})}function nh(e){var t=Ra(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ah(e){return Os(Gl(e)).left+nh(e).scrollLeft}function sO(e,t){var n=Ra(e),a=Gl(e),o=n.visualViewport,l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;var c=P8();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:l,height:r,x:s+ah(e),y:u}}function iO(e){var t,n=Gl(e),a=nh(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=_r(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=_r(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-a.scrollLeft+ah(e),u=-a.scrollTop;return dl(o||n).direction==="rtl"&&(s+=_r(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:r,x:s,y:u}}function oh(e){var t=dl(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function H8(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Da(e)&&oh(e)?e:H8(of(e))}function Ni(e,t){var n;t===void 0&&(t=[]);var a=H8(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),l=Ra(a),r=o?[l].concat(l.visualViewport||[],oh(a)?a:[]):a,s=t.concat(r);return o?s:s.concat(Ni(of(r)))}function i2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uO(e,t){var n=Os(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cm(e,t,n){return t===R8?i2(sO(e,n)):Rr(t)?uO(t,n):i2(iO(Gl(e)))}function cO(e){var t=Ni(of(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,a=n&&Da(e)?Mu(e):e;return Rr(a)?t.filter(function(o){return Rr(o)&&I8(o,a)&&Bo(o)!=="body"}):[]}function dO(e,t,n,a){var o=t==="clippingParents"?cO(e):[].concat(t),l=[].concat(o,[n]),r=l[0],s=l.reduce(function(u,c){var d=cm(e,c,a);return u.top=_r(d.top,u.top),u.right=ld(d.right,u.right),u.bottom=ld(d.bottom,u.bottom),u.left=_r(d.left,u.left),u},cm(e,r,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function F8(e){var t=e.reference,n=e.element,a=e.placement,o=a?Ro(a):null,l=a?$s(a):null,r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(o){case ba:u={x:r,y:t.y-n.height};break;case Ka:u={x:r,y:t.y+t.height};break;case Wa:u={x:t.x+t.width,y:s};break;case wa:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?th(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ts:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Xi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Ji(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,l=n.strategy,r=l===void 0?e.strategy:l,s=n.boundary,u=s===void 0?PM:s,c=n.rootBoundary,d=c===void 0?R8:c,f=n.elementContext,h=f===void 0?ii:f,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,y=V8(typeof m!="number"?m:B8(m,Tu)),b=h===ii?IM:ii,w=e.rects.popper,_=e.elements[p?b:h],S=dO(Rr(_)?_:_.contextElement||Gl(e.elements.popper),u,d,r),k=Os(e.elements.reference),T=F8({reference:k,element:w,placement:o}),M=i2(Object.assign({},w,T)),A=h===ii?M:k,O={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},I=e.modifiersData.offset;if(h===ii&&I){var L=I[o];Object.keys(O).forEach(function(z){var q=[Wa,Ka].indexOf(z)>=0?1:-1,U=[ba,Ka].indexOf(z)>=0?"y":"x";O[z]+=L[U]*q})}return O}function fO(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,l=n.rootBoundary,r=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Ho:u,d=$s(a),f=d?s?rm:rm.filter(function(p){return $s(p)===d}):Tu,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var g=h.reduce(function(p,v){return p[v]=Ji(e,{placement:v,boundary:o,rootBoundary:l,padding:r})[Ro(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function pO(e){if(Ro(e)===Zp)return[];var t=Ac(e);return[um(e),t,um(t)]}function hO(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,y=Ro(m),b=y===m,w=u||(b||!p?[Ac(m)]:pO(m)),_=[m].concat(w).reduce(function(ee,te){return ee.concat(Ro(te)===Zp?fO(t,{placement:te,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):te)},[]),S=t.rects.reference,k=t.rects.popper,T=new Map,M=!0,A=_[0],O=0;O<_.length;O++){var I=_[O],L=Ro(I),z=$s(I)===Ts,q=[ba,Ka].indexOf(L)>=0,U=q?"width":"height",F=Ji(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),N=q?z?Wa:wa:z?Ka:ba;S[U]>k[U]&&(N=Ac(N));var P=Ac(N),B=[];if(l&&B.push(F[L]<=0),s&&B.push(F[N]<=0,F[P]<=0),B.every(function(ee){return ee})){A=I,M=!1;break}T.set(I,B)}if(M)for(var K=p?3:1,W=function(ee){var te=_.find(function(ue){var ne=T.get(ue);if(ne)return ne.slice(0,ee).every(function(de){return de})});if(te)return A=te,"break"},j=K;j>0;j--){var G=W(j);if(G==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var vO={name:"flip",enabled:!0,phase:"main",fn:hO,requiresIfExists:["offset"],data:{_skip:!1}};function dm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fm(e){return[ba,Wa,Ka,wa].some(function(t){return e[t]>=0})}function mO(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,r=Ji(t,{elementContext:"reference"}),s=Ji(t,{altBoundary:!0}),u=dm(r,a),c=dm(s,o,l),d=fm(u),f=fm(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var gO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mO};function yO(e,t,n){var a=Ro(e),o=[wa,ba].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],s=l[1];return r=r||0,s=(s||0)*o,[wa,Wa].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function bO(e){var t=e.state,n=e.options,a=e.name,o=n.offset,l=o===void 0?[0,0]:o,r=Ho.reduce(function(d,f){return d[f]=yO(f,t.rects,l),d},{}),s=r[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}var wO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bO};function CO(e){var t=e.state,n=e.name;t.modifiersData[n]=F8({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var K8={name:"popperOffsets",enabled:!0,phase:"read",fn:CO,data:{}};function _O(e){return e==="x"?"y":"x"}function SO(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,m=Ji(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),y=Ro(t.placement),b=$s(t.placement),w=!b,_=th(y),S=_O(_),k=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(l){var z,q=_==="y"?ba:wa,U=_==="y"?Ka:Wa,F=_==="y"?"height":"width",N=k[_],P=N+m[q],B=N-m[U],K=g?-M[F]/2:0,W=b===Ts?T[F]:M[F],j=b===Ts?-M[F]:-T[F],G=t.elements.arrow,ee=g&&G?eh(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:L8(),ue=te[q],ne=te[U],de=Ri(0,T[F],ee[F]),se=w?T[F]/2-K-de-ue-O.mainAxis:W-de-ue-O.mainAxis,Y=w?-T[F]/2+K+de+ne+O.mainAxis:j+de+ne+O.mainAxis,X=t.elements.arrow&&Mu(t.elements.arrow),H=X?_==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(z=I==null?void 0:I[_])!=null?z:0,le=N+se-Z-H,ce=N+Y-Z,ge=Ri(g?ld(P,le):P,N,g?_r(B,ce):B);k[_]=ge,L[_]=ge-N}if(s){var me,Ae=_==="x"?ba:wa,Ne=_==="x"?Ka:Wa,Re=k[S],ye=S==="y"?"height":"width",Ee=Re+m[Ae],we=Re-m[Ne],Ie=[ba,wa].indexOf(y)!==-1,ze=(me=I==null?void 0:I[S])!=null?me:0,et=Ie?Ee:Re-T[ye]-M[ye]-ze+O.altAxis,nt=Ie?Re+T[ye]+M[ye]-ze-O.altAxis:we,at=g&&Ie?XM(et,Re,nt):Ri(g?et:Ee,Re,g?nt:we);k[S]=at,L[S]=at-Re}t.modifiersData[a]=L}}var xO={name:"preventOverflow",enabled:!0,phase:"main",fn:SO,requiresIfExists:["offset"]};function kO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EO(e){return e===Ra(e)||!Da(e)?nh(e):kO(e)}function TO(e){var t=e.getBoundingClientRect(),n=Ms(t.width)/e.offsetWidth||1,a=Ms(t.height)/e.offsetHeight||1;return n!==1||a!==1}function MO(e,t,n){n===void 0&&(n=!1);var a=Da(t),o=Da(t)&&TO(t),l=Gl(t),r=Os(e,o,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Bo(t)!=="body"||oh(l))&&(s=EO(t)),Da(t)?(u=Os(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ah(l))),{x:r.left+s.scrollLeft-u.x,y:r.top+s.scrollTop-u.y,width:r.width,height:r.height}}function OO(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&o(u)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),a}function $O(e){var t=OO(e);return jM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function AO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function RO(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var pm={placement:"bottom",modifiers:[],strategy:"absolute"};function hm(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=VO(u);Object.assign(r.value,c)},requires:["computeStyles"]},o=x(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),l=qt(),r=V({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return fe(o,u=>{const c=i(l);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{s(),!(!u||!c)&&(l.value=IO(u,c,i(o)))}),Lt(()=>{s()}),{state:x(()=>{var u;return{...((u=i(l))==null?void 0:u.state)||{}}}),styles:x(()=>i(r).styles),attributes:x(()=>i(r).attributes),update:()=>{var u;return(u=i(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=i(l))==null?void 0:u.forceUpdate()},instanceRef:x(()=>i(l))}};function VO(e){const t=Object.keys(e.elements);return{styles:Es(t.map(n=>[n,e.styles[n]||{}])),attributes:Es(t.map(n=>[n,e.attributes[n]]))}}const rh=e=>{if(!e)return{onClick:It,onMousedown:It,onMouseup:It};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},BO=(e,t=0)=>{if(t===0)return e;const n=V(lt(t)&&!!t.initVal);let a=null;const o=r=>{if(Et(r)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},r)},l=r=>{r==="leading"?He(t)?o(t):o(t.leading):lt(t)?o(t.trailing):n.value=!1};return gt(()=>l("leading")),fe(()=>e.value,r=>{l(r?"leading":"trailing")}),n};function vm(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return Dr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const u2={prefix:Math.floor(Math.random()*1e4),current:0},zO=Symbol("elIdInjection"),sh=()=>vt()?Pe(zO,u2):u2,Kn=e=>{const t=sh();!At&&t===u2&&pt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed +`)},{immediate:!0})},Xp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),e0=e=>hu(e),_M="utils/dom/style",E8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ao=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ba=(e,t)=>{!e||!t.trim()||e.classList.add(...E8(t))},aa=(e,t)=>{!e||!t.trim()||e.classList.remove(...E8(t))},Zo=(e,t)=>{var a;if(!Rt||!e||!t||d8(e))return"";let n=Hn(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},T8=(e,t,n)=>{if(!(!e||!t))if(lt(t))S8(t).forEach(([a,o])=>T8(e,a,o));else{const a=Hn(t);e.style[a]=n}};function rn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||oM(e))return`${e}${t}`;if(Be(e))return e;pt(_M,"binding value must be a string or number")}const M8=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=V(!1),r=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,w=m.width,C=m.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-y+p,M=-b+v,A=S-y-w+p,O=k-b-(C{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=w=>{l.value||(l.value=!0),r(v+w.clientX-g,m+w.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;r(h,g)};return gt(()=>{da(()=>{n.value?u():c()})}),Lt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var SM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const xM=e=>(t,n)=>kM(t,n,i(e)),kM=(e,t,n)=>bn(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),EM=e=>({lang:x(()=>i(e).name),locale:Yt(e)?e:V(e),t:xM(e)}),O8=Symbol("localeContextKey"),kt=e=>{const t=e||Pe(O8,V());return EM(x(()=>t.value||SM))},Ri="el",TM="is-",nr=(e,t,n,a,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),a&&(l+=`__${a}`),o&&(l+=`--${o}`),l},$8=Symbol("namespaceContextKey"),Jp=e=>{const t=e||(vt()?Pe($8,V(Ri)):V(Ri));return x(()=>i(t)||Ri)},ve=(e,t)=>{const n=Jp(t);return{namespace:n,b:(v="")=>nr(n.value,e,v,"",""),e:v=>v?nr(n.value,e,"",v,""):"",m:v=>v?nr(n.value,e,"","",v):"",be:(v,m)=>v&&m?nr(n.value,e,v,m,""):"",em:(v,m)=>v&&m?nr(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?nr(n.value,e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?nr(n.value,e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${TM}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${e}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function MM(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Fa=e=>Rt?window.requestAnimationFrame(e):setTimeout(e,16),cl=e=>Rt?window.cancelAnimationFrame(e):clearTimeout(e),OM=(e,t)=>{if(!Rt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Zo(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},Zp=(e,t)=>{if(!Rt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(OM(n,t))return n;d8(n)?n=n.host:n=n.parentNode}return n};let ac;const A8=e=>{var l;if(!Rt)return 0;if(ac!==void 0)return ac;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),ac=n-o,ac};function Qp(e,t){if(!Rt)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=o+t.offsetHeight,r=e.scrollTop,s=r+e.clientHeight;os&&(e.scrollTop=l-e.clientHeight)}function $M(e,t,n,a,o){const l=Date.now();let r;const s=()=>{const u=Date.now()-l,c=MM(u>a?a:u,t,n,a);ku(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{r&&cl(r)}}const lm=(e,t)=>ku(t)?e.ownerDocument.documentElement:t,rm=e=>ku(e)?window.scrollY:e.scrollTop,of=(e,t={})=>{Yt(e)||tn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ve("popup"),a=x(()=>n.bm("parent","hidden"));let o=0,l=!1,r="0",s=!1;const u=()=>{s||(s=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=r,aa(document.body,a.value))},200))};fe(e,c=>{if(!c){u();return}s=!1,l=!Ao(document.body,a.value),l&&(r=document.body.style.width,Ba(document.body,a.value)),o=A8(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${o}px)`)}),Z4(()=>u())},AM=fo({type:J(Boolean),default:null}),RM=fo({type:J(Function)}),NM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:AM,[n]:RM};return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=vt(),{emit:g}=h,p=h.props,v=x(()=>Fe(p[n])),m=x(()=>p[e]===null),y=T=>{r.value!==!0&&(r.value=!0,s&&(s.value=T),Fe(d)&&d(T))},b=T=>{r.value!==!1&&(r.value=!1,s&&(s.value=T),Fe(f)&&f(T))},w=T=>{if(p.disabled===!0||Fe(c)&&!c())return;const M=v.value&&Rt;M&&g(t,!0),(m.value||!M)&&y(T)},C=T=>{if(p.disabled===!0||!Rt)return;const M=v.value&&Rt;M&&g(t,!1),(m.value||!M)&&b(T)},S=T=>{Dt(T)&&(p.disabled&&T?v.value&&g(t,!1):r.value!==T&&(T?y():b()))},k=()=>{r.value?C():w()};return fe(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&C()}),gt(()=>{S(p[e])}),{hide:C,show:w,toggle:k,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},R8=e=>{const t=vt();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})};var ba="top",Ka="bottom",Wa="right",wa="left",eh="auto",Mu=[ba,Ka,Wa,wa],Ms="start",Ji="end",PM="clippingParents",N8="viewport",ui="popper",IM="reference",sm=Mu.reduce(function(e,t){return e.concat([t+"-"+Ms,t+"-"+Ji])},[]),Ho=[].concat(Mu,[eh]).reduce(function(e,t){return e.concat([t,t+"-"+Ms,t+"-"+Ji])},[]),LM="beforeRead",VM="read",BM="afterRead",zM="beforeMain",DM="main",HM="afterMain",FM="beforeWrite",KM="write",WM="afterWrite",jM=[LM,VM,BM,zM,DM,HM,FM,KM,WM];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function Ra(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nr(e){var t=Ra(e).Element;return e instanceof t||e instanceof Element}function Da(e){var t=Ra(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function th(e){if(typeof ShadowRoot>"u")return!1;var t=Ra(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!Da(l)||!Bo(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(r){var s=o[r];s===!1?l.removeAttribute(r):l.setAttribute(r,s===!0?"":s)}))})}function UM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],l=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=r.reduce(function(u,c){return u[c]="",u},{});!Da(o)||!Bo(o)||(Object.assign(o.style,s),Object.keys(l).forEach(function(u){o.removeAttribute(u)}))})}}var P8={name:"applyStyles",enabled:!0,phase:"write",fn:qM,effect:UM,requires:["computeStyles"]};function Ro(e){return e.split("-")[0]}var Sr=Math.max,rd=Math.min,Os=Math.round;function u2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function I8(){return!/^((?!chrome|android).)*safari/i.test(u2())}function $s(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,l=1;t&&Da(e)&&(o=e.offsetWidth>0&&Os(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Os(a.height)/e.offsetHeight||1);var r=Nr(e)?Ra(e):window,s=r.visualViewport,u=!I8()&&n,c=(a.left+(u&&s?s.offsetLeft:0))/o,d=(a.top+(u&&s?s.offsetTop:0))/l,f=a.width/o,h=a.height/l;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function nh(e){var t=$s(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function L8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&th(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function dl(e){return Ra(e).getComputedStyle(e)}function YM(e){return["table","td","th"].indexOf(Bo(e))>=0}function Gl(e){return((Nr(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(th(e)?e.host:null)||Gl(e)}function im(e){return!Da(e)||dl(e).position==="fixed"?null:e.offsetParent}function GM(e){var t=/firefox/i.test(u2()),n=/Trident/i.test(u2());if(n&&Da(e)){var a=dl(e);if(a.position==="fixed")return null}var o=lf(e);for(th(o)&&(o=o.host);Da(o)&&["html","body"].indexOf(Bo(o))<0;){var l=dl(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Ou(e){for(var t=Ra(e),n=im(e);n&&YM(n)&&dl(n).position==="static";)n=im(n);return n&&(Bo(n)==="html"||Bo(n)==="body"&&dl(n).position==="static")?t:n||GM(e)||t}function ah(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ni(e,t,n){return Sr(e,rd(t,n))}function XM(e,t,n){var a=Ni(e,t,n);return a>n?n:a}function V8(){return{top:0,right:0,bottom:0,left:0}}function B8(e){return Object.assign({},V8(),e)}function z8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var JM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,B8(typeof e!="number"?e:z8(e,Mu))};function ZM(e){var t,n=e.state,a=e.name,o=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,s=Ro(n.placement),u=ah(s),c=[wa,Wa].indexOf(s)>=0,d=c?"height":"width";if(!(!l||!r)){var f=JM(o.padding,n),h=nh(l),g=u==="y"?ba:wa,p=u==="y"?Ka:Wa,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],m=r[u]-n.rects.reference[u],y=Ou(l),b=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-m/2,C=f[g],S=b-h[d]-f[p],k=b/2-h[d]/2+w,T=Ni(C,k,S),M=u;n.modifiersData[a]=(t={},t[M]=T,t.centerOffset=T-k,t)}}function QM(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||L8(t.elements.popper,o)&&(t.elements.arrow=o))}var eO={name:"arrow",enabled:!0,phase:"main",fn:ZM,effect:QM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function As(e){return e.split("-")[1]}var tO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nO(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Os(n*o)/o||0,y:Os(a*o)/o||0}}function um(e){var t,n=e.popper,a=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,g=h===void 0?0:h,p=r.y,v=p===void 0?0:p,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var y=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),w=wa,C=ba,S=window;if(c){var k=Ou(n),T="clientHeight",M="clientWidth";if(k===Ra(n)&&(k=Gl(n),dl(k).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),k=k,o===ba||(o===wa||o===Wa)&&l===Ji){C=Ka;var A=f&&k===S&&S.visualViewport?S.visualViewport.height:k[T];v-=A-a.height,v*=u?1:-1}if(o===wa||(o===ba||o===Ka)&&l===Ji){w=Wa;var O=f&&k===S&&S.visualViewport?S.visualViewport.width:k[M];g-=O-a.width,g*=u?1:-1}}var I=Object.assign({position:s},c&&tO),L=d===!0?nO({x:g,y:v},Ra(n)):{x:g,y:v};if(g=L.x,v=L.y,u){var z;return Object.assign({},I,(z={},z[C]=b?"0":"",z[w]=y?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",z))}return Object.assign({},I,(t={},t[C]=b?v+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function aO(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,l=n.adaptive,r=l===void 0?!0:l,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Ro(t.placement),variation:As(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,um(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,um(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var D8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aO,data:{}},oc={passive:!0};function oO(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,l=o===void 0?!0:o,r=a.resize,s=r===void 0?!0:r,u=Ra(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,oc)}),s&&u.addEventListener("resize",n.update,oc),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,oc)}),s&&u.removeEventListener("resize",n.update,oc)}}var H8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oO,data:{}},lO={left:"right",right:"left",bottom:"top",top:"bottom"};function Rc(e){return e.replace(/left|right|bottom|top/g,function(t){return lO[t]})}var rO={start:"end",end:"start"};function cm(e){return e.replace(/start|end/g,function(t){return rO[t]})}function oh(e){var t=Ra(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function lh(e){return $s(Gl(e)).left+oh(e).scrollLeft}function sO(e,t){var n=Ra(e),a=Gl(e),o=n.visualViewport,l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;var c=I8();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:l,height:r,x:s+lh(e),y:u}}function iO(e){var t,n=Gl(e),a=oh(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=Sr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Sr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-a.scrollLeft+lh(e),u=-a.scrollTop;return dl(o||n).direction==="rtl"&&(s+=Sr(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:r,x:s,y:u}}function rh(e){var t=dl(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function F8(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Da(e)&&rh(e)?e:F8(lf(e))}function Pi(e,t){var n;t===void 0&&(t=[]);var a=F8(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),l=Ra(a),r=o?[l].concat(l.visualViewport||[],rh(a)?a:[]):a,s=t.concat(r);return o?s:s.concat(Pi(lf(r)))}function c2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uO(e,t){var n=$s(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function dm(e,t,n){return t===N8?c2(sO(e,n)):Nr(t)?uO(t,n):c2(iO(Gl(e)))}function cO(e){var t=Pi(lf(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,a=n&&Da(e)?Ou(e):e;return Nr(a)?t.filter(function(o){return Nr(o)&&L8(o,a)&&Bo(o)!=="body"}):[]}function dO(e,t,n,a){var o=t==="clippingParents"?cO(e):[].concat(t),l=[].concat(o,[n]),r=l[0],s=l.reduce(function(u,c){var d=dm(e,c,a);return u.top=Sr(d.top,u.top),u.right=rd(d.right,u.right),u.bottom=rd(d.bottom,u.bottom),u.left=Sr(d.left,u.left),u},dm(e,r,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function K8(e){var t=e.reference,n=e.element,a=e.placement,o=a?Ro(a):null,l=a?As(a):null,r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(o){case ba:u={x:r,y:t.y-n.height};break;case Ka:u={x:r,y:t.y+t.height};break;case Wa:u={x:t.x+t.width,y:s};break;case wa:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?ah(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ms:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Ji:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Zi(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,l=n.strategy,r=l===void 0?e.strategy:l,s=n.boundary,u=s===void 0?PM:s,c=n.rootBoundary,d=c===void 0?N8:c,f=n.elementContext,h=f===void 0?ui:f,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,y=B8(typeof m!="number"?m:z8(m,Mu)),b=h===ui?IM:ui,w=e.rects.popper,C=e.elements[p?b:h],S=dO(Nr(C)?C:C.contextElement||Gl(e.elements.popper),u,d,r),k=$s(e.elements.reference),T=K8({reference:k,element:w,placement:o}),M=c2(Object.assign({},w,T)),A=h===ui?M:k,O={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},I=e.modifiersData.offset;if(h===ui&&I){var L=I[o];Object.keys(O).forEach(function(z){var q=[Wa,Ka].indexOf(z)>=0?1:-1,U=[ba,Ka].indexOf(z)>=0?"y":"x";O[z]+=L[U]*q})}return O}function fO(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,l=n.rootBoundary,r=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Ho:u,d=As(a),f=d?s?sm:sm.filter(function(p){return As(p)===d}):Mu,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var g=h.reduce(function(p,v){return p[v]=Zi(e,{placement:v,boundary:o,rootBoundary:l,padding:r})[Ro(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function pO(e){if(Ro(e)===eh)return[];var t=Rc(e);return[cm(e),t,cm(t)]}function hO(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,y=Ro(m),b=y===m,w=u||(b||!p?[Rc(m)]:pO(m)),C=[m].concat(w).reduce(function(ee,te){return ee.concat(Ro(te)===eh?fO(t,{placement:te,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):te)},[]),S=t.rects.reference,k=t.rects.popper,T=new Map,M=!0,A=C[0],O=0;O=0,U=q?"width":"height",F=Zi(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),N=q?z?Wa:wa:z?Ka:ba;S[U]>k[U]&&(N=Rc(N));var P=Rc(N),B=[];if(l&&B.push(F[L]<=0),s&&B.push(F[N]<=0,F[P]<=0),B.every(function(ee){return ee})){A=I,M=!1;break}T.set(I,B)}if(M)for(var W=p?3:1,K=function(ee){var te=C.find(function(ue){var ne=T.get(ue);if(ne)return ne.slice(0,ee).every(function(de){return de})});if(te)return A=te,"break"},j=W;j>0;j--){var G=K(j);if(G==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var vO={name:"flip",enabled:!0,phase:"main",fn:hO,requiresIfExists:["offset"],data:{_skip:!1}};function fm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pm(e){return[ba,Wa,Ka,wa].some(function(t){return e[t]>=0})}function mO(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,r=Zi(t,{elementContext:"reference"}),s=Zi(t,{altBoundary:!0}),u=fm(r,a),c=fm(s,o,l),d=pm(u),f=pm(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var gO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mO};function yO(e,t,n){var a=Ro(e),o=[wa,ba].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],s=l[1];return r=r||0,s=(s||0)*o,[wa,Wa].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function bO(e){var t=e.state,n=e.options,a=e.name,o=n.offset,l=o===void 0?[0,0]:o,r=Ho.reduce(function(d,f){return d[f]=yO(f,t.rects,l),d},{}),s=r[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}var wO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bO};function CO(e){var t=e.state,n=e.name;t.modifiersData[n]=K8({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var W8={name:"popperOffsets",enabled:!0,phase:"read",fn:CO,data:{}};function _O(e){return e==="x"?"y":"x"}function SO(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,m=Zi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),y=Ro(t.placement),b=As(t.placement),w=!b,C=ah(y),S=_O(C),k=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(l){var z,q=C==="y"?ba:wa,U=C==="y"?Ka:Wa,F=C==="y"?"height":"width",N=k[C],P=N+m[q],B=N-m[U],W=g?-M[F]/2:0,K=b===Ms?T[F]:M[F],j=b===Ms?-M[F]:-T[F],G=t.elements.arrow,ee=g&&G?nh(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V8(),ue=te[q],ne=te[U],de=Ni(0,T[F],ee[F]),se=w?T[F]/2-W-de-ue-O.mainAxis:K-de-ue-O.mainAxis,Y=w?-T[F]/2+W+de+ne+O.mainAxis:j+de+ne+O.mainAxis,X=t.elements.arrow&&Ou(t.elements.arrow),H=X?C==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(z=I==null?void 0:I[C])!=null?z:0,le=N+se-Z-H,ce=N+Y-Z,ge=Ni(g?rd(P,le):P,N,g?Sr(B,ce):B);k[C]=ge,L[C]=ge-N}if(s){var me,Ae=C==="x"?ba:wa,Ne=C==="x"?Ka:Wa,Re=k[S],ye=S==="y"?"height":"width",Ee=Re+m[Ae],we=Re-m[Ne],Ie=[ba,wa].indexOf(y)!==-1,ze=(me=I==null?void 0:I[S])!=null?me:0,et=Ie?Ee:Re-T[ye]-M[ye]-ze+O.altAxis,nt=Ie?Re+T[ye]+M[ye]-ze-O.altAxis:we,at=g&&Ie?XM(et,Re,nt):Ni(g?et:Ee,Re,g?nt:we);k[S]=at,L[S]=at-Re}t.modifiersData[a]=L}}var xO={name:"preventOverflow",enabled:!0,phase:"main",fn:SO,requiresIfExists:["offset"]};function kO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EO(e){return e===Ra(e)||!Da(e)?oh(e):kO(e)}function TO(e){var t=e.getBoundingClientRect(),n=Os(t.width)/e.offsetWidth||1,a=Os(t.height)/e.offsetHeight||1;return n!==1||a!==1}function MO(e,t,n){n===void 0&&(n=!1);var a=Da(t),o=Da(t)&&TO(t),l=Gl(t),r=$s(e,o,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Bo(t)!=="body"||rh(l))&&(s=EO(t)),Da(t)?(u=$s(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=lh(l))),{x:r.left+s.scrollLeft-u.x,y:r.top+s.scrollTop-u.y,width:r.width,height:r.height}}function OO(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&o(u)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),a}function $O(e){var t=OO(e);return jM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function AO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function RO(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var hm={placement:"bottom",modifiers:[],strategy:"absolute"};function vm(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=VO(u);Object.assign(r.value,c)},requires:["computeStyles"]},o=x(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),l=qt(),r=V({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return fe(o,u=>{const c=i(l);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{s(),!(!u||!c)&&(l.value=IO(u,c,i(o)))}),Lt(()=>{s()}),{state:x(()=>{var u;return{...((u=i(l))==null?void 0:u.state)||{}}}),styles:x(()=>i(r).styles),attributes:x(()=>i(r).attributes),update:()=>{var u;return(u=i(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=i(l))==null?void 0:u.forceUpdate()},instanceRef:x(()=>i(l))}};function VO(e){const t=Object.keys(e.elements);return{styles:Ts(t.map(n=>[n,e.styles[n]||{}])),attributes:Ts(t.map(n=>[n,e.attributes[n]]))}}const ih=e=>{if(!e)return{onClick:It,onMousedown:It,onMouseup:It};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},BO=(e,t=0)=>{if(t===0)return e;const n=V(lt(t)&&!!t.initVal);let a=null;const o=r=>{if(Et(r)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},r)},l=r=>{r==="leading"?He(t)?o(t):o(t.leading):lt(t)?o(t.trailing):n.value=!1};return gt(()=>l("leading")),fe(()=>e.value,r=>{l(r?"leading":"trailing")}),n};function mm(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return Hr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const d2={prefix:Math.floor(Math.random()*1e4),current:0},zO=Symbol("elIdInjection"),uh=()=>vt()?Pe(zO,d2):d2,Kn=e=>{const t=uh();!Rt&&t===d2&&pt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, -})`);const n=Gp();return y6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let as=[];const mm=e=>{Kt(e)===Ce.esc&&as.forEach(t=>t(e))},DO=e=>{gt(()=>{as.length===0&&document.addEventListener("keydown",mm),At&&as.push(e)}),Lt(()=>{as=as.filter(t=>t!==e),as.length===0&&At&&document.removeEventListener("keydown",mm)})},W8=()=>{const e=Gp(),t=sh(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},HO=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},FO=()=>{const{id:e,selector:t}=W8();return Hd(()=>{At&&(document.body.querySelector(t.value)||HO(e.value))}),{id:e,selector:t}},KO=_e({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),WO=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=vm(),{registerTimeout:r,cancelTimeout:s}=vm();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);He(h)&&h>0&&r(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},j8=Symbol("elForwardRef"),jO=e=>{wt(j8,{setForwardRef:n=>{e.value=n}})},qO=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),gm={current:0},ym=V(0),q8=2e3,bm=Symbol("elZIndexContextKey"),U8=Symbol("zIndexContextKey"),Ou=e=>{const t=vt()?Pe(bm,gm):gm,n=e||(vt()?Pe(U8,void 0):void 0),a=x(()=>{const r=i(n);return He(r)?r:q8}),o=x(()=>a.value+ym.value),l=()=>(t.current++,ym.value=t.current,o.value);return!At&&!Pe(bm)&&pt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed -usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},As=Math.min,Sr=Math.max,rd=Math.round,oc=Math.floor,No=e=>({x:e,y:e}),UO={left:"right",right:"left",bottom:"top",top:"bottom"};function c2(e,t,n){return Sr(e,As(t,n))}function $u(e,t){return typeof e=="function"?e(t):e}function Nr(e){return e.split("-")[0]}function Au(e){return e.split("-")[1]}function Y8(e){return e==="x"?"y":"x"}function ih(e){return e==="y"?"height":"width"}function Ll(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function uh(e){return Y8(Ll(e))}function YO(e,t,n){n===void 0&&(n=!1);const a=Au(e),o=uh(e),l=ih(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=sd(r)),[r,sd(r)]}function GO(e){const t=sd(e);return[d2(e),t,d2(t)]}function d2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const wm=["left","right"],Cm=["right","left"],XO=["top","bottom"],JO=["bottom","top"];function ZO(e,t,n){switch(e){case"top":case"bottom":return n?t?Cm:wm:t?wm:Cm;case"left":case"right":return t?XO:JO;default:return[]}}function QO(e,t,n,a){const o=Au(e);let l=ZO(Nr(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(d2)))),l}function sd(e){const t=Nr(e);return UO[t]+e.slice(t.length)}function e$(e){return{top:0,right:0,bottom:0,left:0,...e}}function G8(e){return typeof e!="number"?e$(e):{top:e,right:e,bottom:e,left:e}}function id(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function _m(e,t,n){let{reference:a,floating:o}=e;const l=Ll(t),r=uh(t),s=ih(r),u=Nr(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[s]/2-o[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Au(t)){case"start":g[r]-=h*(n&&c?-1:1);break;case"end":g[r]+=h*(n&&c?-1:1);break}return g}async function X8(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=$u(t,e),p=G8(g),m=s[h?f==="floating"?"reference":"floating":f],y=id(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),_=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=id(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+p.top)/_.y,bottom:(S.bottom-y.bottom+p.bottom)/_.y,left:(y.left-S.left+p.left)/_.x,right:(S.right-y.right+p.right)/_.x}}const t$=50,n$=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:X8},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=_m(c,a,u),h=a,g=0;const p={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=$u(e,t)||{};if(c==null)return{};const f=G8(d),h={x:n,y:a},g=uh(o),p=ih(g),v=await r.getDimensions(c),m=g==="y",y=m?"top":"left",b=m?"bottom":"right",w=m?"clientHeight":"clientWidth",_=l.reference[p]+l.reference[g]-h[g]-l.floating[p],S=h[g]-l.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=s.floating[w]||l.floating[p]);const M=_/2-S/2,A=T/2-v[p]/2-1,O=As(f[y],A),I=As(f[b],A),L=O,z=T-v[p]-I,q=T/2-v[p]/2+M,U=c2(L,q,z),F=!u.arrow&&Au(o)!=null&&q!==U&&l.reference[p]/2-(qq<=0)){var I,L;const q=(((I=l.flip)==null?void 0:I.index)||0)+1,U=T[q];if(U&&(!(f==="alignment"?b!==Ll(U):!1)||O.every(P=>Ll(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:q,overflows:O},reset:{placement:U}};let F=(L=O.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var z;const N=(z=O.filter(P=>{if(k){const B=Ll(P.placement);return B===b||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,K)=>B+K,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:z[0];N&&(F=N);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}},l$=new Set(["left","top"]);async function r$(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),r=Nr(n),s=Au(n),u=Ll(n)==="y",c=l$.has(r)?-1:1,d=l&&u?-1:1,f=$u(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),u?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const s$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:s}=t,u=await r$(t,e);return r===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:r}}}}},i$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=$u(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),h=Ll(Nr(o)),g=Y8(h);let p=d[g],v=d[h];if(r){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=p+f[y],_=p-f[b];p=c2(w,p,_)}if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+f[y],_=v-f[b];v=c2(w,v,_)}const m=u.fn({...t,[g]:p,[h]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:r,[h]:s}}}}}};function lf(){return typeof window<"u"}function Us(e){return J8(e)?(e.nodeName||"").toLowerCase():"#document"}function $a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fo(e){var t;return(t=(J8(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function J8(e){return lf()?e instanceof Node||e instanceof $a(e).Node:!1}function eo(e){return lf()?e instanceof Element||e instanceof $a(e).Element:!1}function wl(e){return lf()?e instanceof HTMLElement||e instanceof $a(e).HTMLElement:!1}function Sm(e){return!lf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $a(e).ShadowRoot}function Ru(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=to(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function u$(e){return/^(table|td|th)$/.test(Us(e))}function rf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const c$=/transform|translate|scale|rotate|perspective|filter/,d$=/paint|layout|strict|content/,ar=e=>!!e&&e!=="none";let Qf;function ch(e){const t=eo(e)?to(e):e;return ar(t.transform)||ar(t.translate)||ar(t.scale)||ar(t.rotate)||ar(t.perspective)||!dh()&&(ar(t.backdropFilter)||ar(t.filter))||c$.test(t.willChange||"")||d$.test(t.contain||"")}function f$(e){let t=ql(e);for(;wl(t)&&!Rs(t);){if(ch(t))return t;if(rf(t))return null;t=ql(t)}return null}function dh(){return Qf==null&&(Qf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qf}function Rs(e){return/^(html|body|#document)$/.test(Us(e))}function to(e){return $a(e).getComputedStyle(e)}function sf(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ql(e){if(Us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sm(e)&&e.host||Fo(e);return Sm(t)?t.host:t}function Z8(e){const t=ql(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&Ru(t)?t:Z8(t)}function Zi(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Z8(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),r=$a(o);if(l){const s=f2(r);return t.concat(r,r.visualViewport||[],Ru(o)?o:[],s&&n?Zi(s):[])}else return t.concat(o,Zi(o,[],n))}function f2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q8(e){const t=to(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=wl(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,s=rd(n)!==l||rd(a)!==r;return s&&(n=l,a=r),{width:n,height:a,$:s}}function fh(e){return eo(e)?e:e.contextElement}function vs(e){const t=fh(e);if(!wl(t))return No(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=Q8(t);let r=(l?rd(n.width):n.width)/a,s=(l?rd(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const p$=No(0);function ey(e){const t=$a(e);return!dh()||!t.visualViewport?p$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$a(e)?!1:t}function Pr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=fh(e);let r=No(1);t&&(a?eo(a)&&(r=vs(a)):r=vs(e));const s=h$(l,n,a)?ey(l):No(0);let u=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(l){const h=$a(l),g=a&&eo(a)?$a(a):a;let p=h,v=f2(p);for(;v&&a&&g!==p;){const m=vs(v),y=v.getBoundingClientRect(),b=to(v),w=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*m.x,_=y.top+(v.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=w,c+=_,p=$a(v),v=f2(p)}}return id({width:d,height:f,x:u,y:c})}function uf(e,t){const n=sf(e).scrollLeft;return t?t.left+n:Pr(Fo(e)).left+n}function ty(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-uf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function v$(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",r=Fo(a),s=t?rf(t.floating):!1;if(a===r||s&&l)return n;let u={scrollLeft:0,scrollTop:0},c=No(1);const d=No(0),f=wl(a);if((f||!f&&!l)&&((Us(a)!=="body"||Ru(r))&&(u=sf(a)),f)){const g=Pr(a);c=vs(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const h=r&&!f&&!l?ty(r,u):No(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function m$(e){return Array.from(e.getClientRects())}function g$(e){const t=Fo(e),n=sf(e),a=e.ownerDocument.body,o=Sr(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Sr(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+uf(e);const s=-n.scrollTop;return to(a).direction==="rtl"&&(r+=Sr(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:s}}const xm=25;function y$(e,t){const n=$a(e),a=Fo(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;const d=dh();(!d||d&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const c=uf(a);if(c<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(a.clientWidth-f.clientWidth-g);p<=xm&&(l-=p)}else c<=xm&&(l+=c);return{width:l,height:r,x:s,y:u}}function b$(e,t){const n=Pr(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=wl(e)?vs(e):No(1),r=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,c=a*l.y;return{width:r,height:s,x:u,y:c}}function km(e,t,n){let a;if(t==="viewport")a=y$(e,n);else if(t==="document")a=g$(Fo(e));else if(eo(t))a=b$(t,n);else{const o=ey(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return id(a)}function ny(e,t){const n=ql(e);return n===t||!eo(n)||Rs(n)?!1:to(n).position==="fixed"||ny(n,t)}function w$(e,t){const n=t.get(e);if(n)return n;let a=Zi(e,[],!1).filter(s=>eo(s)&&Us(s)!=="body"),o=null;const l=to(e).position==="fixed";let r=l?ql(e):e;for(;eo(r)&&!Rs(r);){const s=to(r),u=ch(r);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ru(r)&&!u&&ny(e,r))?a=a.filter(d=>d!==r):o=s,r=ql(r)}return t.set(e,a),a}function C$(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const r=[...n==="clippingAncestors"?rf(t)?[]:w$(t,this._c):[].concat(n),a],s=km(t,r[0],o);let u=s.top,c=s.right,d=s.bottom,f=s.left;for(let h=1;h{r(!1,1e-7)},1e3)}T===1&&!oy(c,e.getBoundingClientRect())&&r(),_=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function M$(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=fh(e),d=o||l?[...c?Zi(c):[],...t?Zi(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const f=c&&s?T$(c,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let p,v=u?Pr(e):null;u&&m();function m(){const y=Pr(e);v&&!oy(v,y)&&n(),v=y,p=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const O$=X8,$$=s$,A$=i$,R$=o$,N$=a$,P$=(e,t,n)=>{const a=new Map,o={platform:E$,...n},l={...o.platform,_c:a};return n$(e,t,{...o,platform:l})};function I$(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:l,value:r}=e.value;o==null||l==null||(t={selectionStart:o,selectionEnd:l,value:r,beforeTxt:r.slice(0,Math.max(0,o)),afterTxt:r.slice(Math.max(0,l))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:s}=t;if(l==null||r==null||s==null)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(l))u=l.length;else{const c=l[s-1],d=o.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const L$="utils/vue/vnode";let qa=function(e){return e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e}({});function p2(e){return Wt(e)&&e.type===Ke}function ly(e){return Wt(e)&&e.type===mn}function V$(e){return Wt(e)&&!p2(e)&&!ly(e)}const B$=e=>{if(!Wt(e))return pt(L$,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{Mt(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[Hn(o)]=t[o]}),a},Ta=e=>{const t=be(e)?e:[e],n=[];return t.forEach(a=>{var o;be(a)?n.push(...Ta(a)):Wt(a)&&((o=a.component)!=null&&o.subTree)?n.push(a,...Ta(a.component.subTree)):Wt(a)&&be(a.children)?n.push(...Ta(a.children)):Wt(a)&&a.shapeFlag===2?n.push(...Ta(a.type())):n.push(a)}),n},z$=(e,t,n)=>Ta(e.subTree).filter(a=>{var o;return Wt(a)&&((o=a.type)==null?void 0:o.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),cf=(e,t)=>{const n=qt({}),a=qt([]),o=new WeakMap,l=c=>{n.value[c.uid]=c,Cc(n),gt(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const h=f.insertBefore.bind(f);f.insertBefore=(g,p)=>(o.get(f).some(v=>g===v||p===v)&&Cc(n),h(g,p))}o.get(f).push(d)})},r=c=>{delete n.value[c.uid],Cc(n);const d=c.getVnode().el,f=d.parentNode,h=o.get(f),g=h.indexOf(d);h.splice(g,1)},s=()=>{a.value=z$(e,t,n.value)},u=c=>c.render();return{children:a,addChild:l,removeChild:r,ChildrenSorter:D({setup(c,{slots:d}){return()=>(s(),d.default?Ye(u,{render:d.default}):null)}})}},kn=fo({type:String,values:io,required:!1}),ry=Symbol("size"),sy=()=>{const e=Pe(ry,{});return x(()=>i(e.size)||"")};function Cl(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:l}={}){const{emit:r}=vt(),s=qt(),u=V(!1),c=h=>{const g=Fe(n)?n(h):!1;i(t)||u.value||g||(u.value=!0,r("focus",h),a==null||a())},d=h=>{var p;const g=Fe(o)?o(h):!1;i(t)||h.relatedTarget&&((p=s.value)!=null&&p.contains(h.relatedTarget))||g||(u.value=!1,r("blur",h),l==null||l())},f=h=>{var g,p;i(t)||Ar(h.target)||(g=s.value)!=null&&g.contains(document.activeElement)&&s.value!==document.activeElement||(p=e.value)==null||p.focus()};return fe([s,()=>i(t)],([h,g])=>{h&&(g?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Vt(s,"focus",c,!0),Vt(s,"blur",d,!0),Vt(s,"click",f,!0),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:d}}function Nu({afterComposition:e,emit:t}){const n=V(!1),a=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{t==null||t("compositionupdate",s),n.value=!0},l=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Le(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?l(s):o(s)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:l}}const iy=Symbol("emptyValuesContextKey"),D$="use-empty-values",H$=["",void 0,null],F$=void 0,Wr=_e({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Fe(e)?e():e,be(e)?e.every(t=>!t):!e)}}),Pu=(e,t)=>{const n=vt()?Pe(iy,V({})):V({}),a=x(()=>e.emptyValues||n.value.emptyValues||H$),o=x(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:F$),l=r=>{let s=!0;return be(r)?s=a.value.some(u=>an(r,u)):s=a.value.includes(r),s};return l(o.value)||pt(D$,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:l}},K$=_e({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),oa=e=>ul(K$,e),uy=e=>{const t=e.props,n=be(t)?Es(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,l]of Object.entries(a)){const r=n[o];if(Mt(n,o)){if(Kp(r)){n[o]={...r,default:l};continue}n[o]={type:r,default:l}}}e.props=n}}},it=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return uy(e),e},cy=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),W$=(e,t)=>(e.install=n=>{n.directive(t,e)},e),tn=e=>(e.install=It,uy(e),e);var j$=D({__name:"teleport",props:Eu,setup(e){return(t,n)=>t.disabled?oe(t.$slots,"default",{key:0}):(C(),ie(DC,{key:1,to:t.to},[oe(t.$slots,"default")],8,["to"]))}}),q$=j$;const Ys=it(q$),Tm="ElAffix";var U$=D({name:Tm,__name:"affix",props:yM,emits:bM,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("affix"),r=qt(),s=qt(),u=qt(),{height:c}=Ap(),{height:d,width:f,top:h,bottom:g,left:p,update:v}=y1(s,{windowScroll:!1}),m=y1(r),y=V(!1),b=V(0),w=V(0),_=x(()=>!a.teleported||!y.value),S=x(()=>({display:"flow-root",height:y.value?`${d.value}px`:"",width:y.value?`${f.value}px`:""})),k=x(()=>{if(!y.value)return{};const O=ln(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?O:"",bottom:a.position==="bottom"?O:"",left:a.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:a.zIndex}}),T=()=>{if(!u.value)return;b.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:I,offset:L}=a,z=L+d.value;if(O==="top")if(I){const q=m.bottom.value-z;y.value=L>h.value&&m.bottom.value>0,w.value=q<0?q:0}else y.value=L>h.value;else if(I){const q=c.value-m.top.value-z;y.value=c.value-Lm.top.value,w.value=q<0?-q:0}else y.value=c.value-L{if(!y.value){v();return}y.value=!1,await Le(),v(),y.value=!0},A=async()=>{v(),await Le(),o("scroll",{scrollTop:b.value,fixed:y.value})};return fe(y,O=>o(bt,O)),gt(()=>{a.target?(r.value=document.querySelector(a.target)??void 0,r.value||en(Tm,`Target does not exist: ${a.target}`)):r.value=document.documentElement,u.value=Xp(s.value,!0),v()}),vu(()=>{Le(M)}),wp(()=>{y.value=!1}),Vt(u,"scroll",A),da(T),t({update:T,updateRoot:M}),(O,I)=>(C(),$("div",{ref_key:"root",ref:s,class:R(i(l).b()),style:qe(S.value)},[Q(i(Ys),{disabled:_.value,to:e.appendTo},{default:ae(()=>[E("div",{class:R({[i(l).m("fixed")]:y.value}),style:qe(k.value)},[oe(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),Y$=U$;const G$=it(Y$);/*! Element Plus Icons Vue v2.3.2 */var X$=D({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),J$=X$,Z$=D({name:"Aim",__name:"aim",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Q$=Z$,eA=D({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),tA=eA,nA=D({name:"Apple",__name:"apple",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),aA=nA,oA=D({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),lA=oA,rA=D({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),po=rA,sA=D({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),iA=sA,uA=D({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),zo=uA,cA=D({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),dA=cA,fA=D({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Un=fA,pA=D({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),hA=pA,vA=D({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Iu=vA,mA=D({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),gA=mA,yA=D({name:"Back",__name:"back",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),dy=yA,bA=D({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),wA=bA,CA=D({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),_A=CA,SA=D({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),xA=SA,kA=D({name:"Bell",__name:"bell",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),EA=kA,TA=D({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),MA=TA,OA=D({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),$A=OA,AA=D({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),RA=AA,NA=D({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),PA=NA,IA=D({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),LA=IA,VA=D({name:"Box",__name:"box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),BA=VA,zA=D({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),DA=zA,HA=D({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),FA=HA,KA=D({name:"Brush",__name:"brush",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),WA=KA,jA=D({name:"Burger",__name:"burger",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),qA=jA,UA=D({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),fy=UA,YA=D({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),GA=YA,XA=D({name:"Camera",__name:"camera",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),JA=XA,ZA=D({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),QA=ZA,eR=D({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),tR=eR,nR=D({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),ph=nR,aR=D({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),py=aR,oR=D({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),lR=oR,rR=D({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),sR=rR,iR=D({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),uR=iR,cR=D({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),dR=cR,fR=D({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),pR=fR,hR=D({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),vR=hR,mR=D({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),gR=mR,yR=D({name:"Check",__name:"check",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Gs=yR,bR=D({name:"Checked",__name:"checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),wR=bR,CR=D({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),_R=CR,SR=D({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),xR=SR,kR=D({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),ER=kR,TR=D({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),hy=TR,MR=D({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),df=MR,OR=D({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),ff=OR,$R=D({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ho=$R,AR=D({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),RR=AR,NR=D({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),PR=NR,IR=D({name:"Clock",__name:"clock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),hh=IR,LR=D({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),VR=LR,BR=D({name:"Close",__name:"close",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Na=BR,zR=D({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),DR=zR,HR=D({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),FR=HR,KR=D({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),WR=KR,jR=D({name:"Coin",__name:"coin",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),qR=jR,UR=D({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),YR=UR,GR=D({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),XR=GR,JR=D({name:"Collection",__name:"collection",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),ZR=JR,QR=D({name:"Comment",__name:"comment",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),eN=QR,tN=D({name:"Compass",__name:"compass",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),nN=tN,aN=D({name:"Connection",__name:"connection",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),oN=aN,lN=D({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),rN=lN,sN=D({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),iN=sN,uN=D({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),cN=uN,dN=D({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),fN=dN,pN=D({name:"Crop",__name:"crop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),hN=pN,vN=D({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),fl=vN,mN=D({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),pl=mN,gN=D({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),yN=gN,bN=D({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),wN=bN,CN=D({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),_N=CN,SN=D({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),xN=SN,kN=D({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),EN=kN,TN=D({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),MN=TN,ON=D({name:"Delete",__name:"delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),vy=ON,$N=D({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),AN=$N,RN=D({name:"Discount",__name:"discount",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),NN=RN,PN=D({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),IN=PN,LN=D({name:"Dish",__name:"dish",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),VN=LN,BN=D({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),zN=BN,DN=D({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),HN=DN,FN=D({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),KN=FN,WN=D({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),jN=WN,qN=D({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),UN=qN,YN=D({name:"Document",__name:"document",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),my=YN,GN=D({name:"Download",__name:"download",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),XN=GN,JN=D({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),ZN=JN,QN=D({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),eP=QN,tP=D({name:"Edit",__name:"edit",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),nP=tP,aP=D({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),oP=aP,lP=D({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),rP=lP,sP=D({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),iP=sP,uP=D({name:"Expand",__name:"expand",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),cP=uP,dP=D({name:"Failed",__name:"failed",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),fP=dP,pP=D({name:"Female",__name:"female",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),hP=pP,vP=D({name:"Files",__name:"files",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),mP=vP,gP=D({name:"Film",__name:"film",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),yP=gP,bP=D({name:"Filter",__name:"filter",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),wP=bP,CP=D({name:"Finished",__name:"finished",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),_P=CP,SP=D({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),xP=SP,kP=D({name:"Flag",__name:"flag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),EP=kP,TP=D({name:"Fold",__name:"fold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),MP=TP,OP=D({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),$P=OP,AP=D({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),RP=AP,NP=D({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),PP=NP,IP=D({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),LP=IP,VP=D({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),BP=VP,zP=D({name:"Folder",__name:"folder",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),DP=zP,HP=D({name:"Food",__name:"food",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),FP=HP,KP=D({name:"Football",__name:"football",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),WP=KP,jP=D({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),qP=jP,UP=D({name:"Fries",__name:"fries",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),YP=UP,GP=D({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),gy=GP,XP=D({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),JP=XP,ZP=D({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),QP=ZP,eI=D({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),tI=eI,nI=D({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),aI=nI,oI=D({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),lI=oI,rI=D({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),sI=rI,iI=D({name:"Goods",__name:"goods",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),uI=iI,cI=D({name:"Grape",__name:"grape",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),dI=cI,fI=D({name:"Grid",__name:"grid",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),pI=fI,hI=D({name:"Guide",__name:"guide",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),vI=hI,mI=D({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),gI=mI,yI=D({name:"Headset",__name:"headset",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),bI=yI,wI=D({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),CI=wI,_I=D({name:"Help",__name:"help",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),SI=_I,xI=D({name:"Hide",__name:"hide",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),yy=xI,kI=D({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),EI=kI,TI=D({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),MI=TI,OI=D({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),$I=OI,AI=D({name:"House",__name:"house",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),RI=AI,NI=D({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),PI=NI,II=D({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),LI=II,VI=D({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),BI=VI,zI=D({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),DI=zI,HI=D({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),FI=HI,KI=D({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ns=KI,WI=D({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),jI=WI,qI=D({name:"Key",__name:"key",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),UI=qI,YI=D({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),GI=YI,XI=D({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),JI=XI,ZI=D({name:"Link",__name:"link",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),QI=ZI,eL=D({name:"List",__name:"list",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),tL=eL,nL=D({name:"Loading",__name:"loading",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),no=nL,aL=D({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),oL=aL,lL=D({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),rL=lL,sL=D({name:"Location",__name:"location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),iL=sL,uL=D({name:"Lock",__name:"lock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),cL=uL,dL=D({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),fL=dL,pL=D({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),hL=pL,vL=D({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),mL=vL,gL=D({name:"Male",__name:"male",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),yL=gL,bL=D({name:"Management",__name:"management",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),wL=bL,CL=D({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),_L=CL,SL=D({name:"Medal",__name:"medal",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),xL=SL,kL=D({name:"Memo",__name:"memo",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),EL=kL,TL=D({name:"Menu",__name:"menu",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),ML=TL,OL=D({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),$L=OL,AL=D({name:"Message",__name:"message",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),RL=AL,NL=D({name:"Mic",__name:"mic",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),PL=NL,IL=D({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),LL=IL,VL=D({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),BL=VL,zL=D({name:"Minus",__name:"minus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),by=zL,DL=D({name:"Money",__name:"money",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),HL=DL,FL=D({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),KL=FL,WL=D({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),jL=WL,qL=D({name:"Moon",__name:"moon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),UL=qL,YL=D({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),h2=YL,GL=D({name:"More",__name:"more",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),wy=GL,XL=D({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),JL=XL,ZL=D({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),QL=ZL,eV=D({name:"Mug",__name:"mug",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),tV=eV,nV=D({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),aV=nV,oV=D({name:"Mute",__name:"mute",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),lV=oV,rV=D({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),sV=rV,iV=D({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),uV=iV,cV=D({name:"Notification",__name:"notification",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),dV=cV,fV=D({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),pV=fV,hV=D({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),vV=hV,mV=D({name:"Open",__name:"open",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),gV=mV,yV=D({name:"Operation",__name:"operation",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),bV=yV,wV=D({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),CV=wV,_V=D({name:"Orange",__name:"orange",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),SV=_V,xV=D({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),kV=xV,EV=D({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),TV=EV,MV=D({name:"Pear",__name:"pear",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),OV=MV,$V=D({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),AV=$V,RV=D({name:"Phone",__name:"phone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),NV=RV,PV=D({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Cy=PV,IV=D({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),LV=IV,VV=D({name:"Picture",__name:"picture",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),BV=VV,zV=D({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),DV=zV,HV=D({name:"Place",__name:"place",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),FV=HV,KV=D({name:"Platform",__name:"platform",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),WV=KV,jV=D({name:"Plus",__name:"plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),vh=jV,qV=D({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),UV=qV,YV=D({name:"Position",__name:"position",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),GV=YV,XV=D({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),JV=XV,ZV=D({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),QV=ZV,eB=D({name:"Present",__name:"present",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),tB=eB,nB=D({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),aB=nB,oB=D({name:"Printer",__name:"printer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),lB=oB,rB=D({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),sB=rB,iB=D({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),uB=iB,cB=D({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),_y=cB,dB=D({name:"Rank",__name:"rank",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),fB=dB,pB=D({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),hB=pB,vB=D({name:"Reading",__name:"reading",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),mB=vB,gB=D({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Sy=gB,yB=D({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),xy=yB,bB=D({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),wB=bB,CB=D({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),_B=CB,SB=D({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),xB=SB,kB=D({name:"Remove",__name:"remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),EB=kB,TB=D({name:"Right",__name:"right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),MB=TB,OB=D({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),ky=OB,$B=D({name:"School",__name:"school",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),AB=$B,RB=D({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),NB=RB,PB=D({name:"Search",__name:"search",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ey=PB,IB=D({name:"Select",__name:"select",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),LB=IB,VB=D({name:"Sell",__name:"sell",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),BB=VB,zB=D({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),DB=zB,HB=D({name:"Service",__name:"service",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),FB=HB,KB=D({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),WB=KB,jB=D({name:"Setting",__name:"setting",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),qB=jB,UB=D({name:"Share",__name:"share",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),YB=UB,GB=D({name:"Ship",__name:"ship",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),XB=GB,JB=D({name:"Shop",__name:"shop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),ZB=JB,QB=D({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),ez=QB,tz=D({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),nz=tz,az=D({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),oz=az,lz=D({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),rz=lz,sz=D({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),iz=sz,uz=D({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),cz=uz,dz=D({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),fz=dz,pz=D({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Ty=pz,hz=D({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),My=hz,vz=D({name:"Sort",__name:"sort",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),mz=vz,gz=D({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),yz=gz,bz=D({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),gi=bz,wz=D({name:"Star",__name:"star",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Oy=wz,Cz=D({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),_z=Cz,Sz=D({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),mh=Sz,xz=D({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),kz=xz,Ez=D({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),Tz=Ez,Mz=D({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Oz=Mz,$z=D({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Az=$z,Rz=D({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Nz=Rz,Pz=D({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Iz=Pz,Lz=D({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Vz=Lz,Bz=D({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),zz=Bz,Dz=D({name:"Switch",__name:"switch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Hz=Dz,Fz=D({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),Kz=Fz,Wz=D({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),jz=Wz,qz=D({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),Uz=qz,Yz=D({name:"Timer",__name:"timer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Gz=Yz,Xz=D({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Jz=Xz,Zz=D({name:"Tools",__name:"tools",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Qz=Zz,eD=D({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),tD=eD,nD=D({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),aD=nD,oD=D({name:"Top",__name:"top",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),lD=oD,rD=D({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),sD=rD,iD=D({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),uD=iD,cD=D({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),dD=cD,fD=D({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),pD=fD,hD=D({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),vD=hD,mD=D({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),gD=mD,yD=D({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),bD=yD,wD=D({name:"Upload",__name:"upload",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),CD=wD,_D=D({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),SD=_D,xD=D({name:"User",__name:"user",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),kD=xD,ED=D({name:"Van",__name:"van",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),TD=ED,MD=D({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),OD=MD,$D=D({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),AD=$D,RD=D({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),ND=RD,PD=D({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),ID=PD,LD=D({name:"View",__name:"view",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),$y=LD,VD=D({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),BD=VD,zD=D({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),DD=zD,HD=D({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),FD=HD,KD=D({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Lu=KD,WD=D({name:"Warning",__name:"warning",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),jD=WD,qD=D({name:"Watch",__name:"watch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),UD=qD,YD=D({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),GD=YD,XD=D({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),JD=XD,ZD=D({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),gh=ZD,QD=D({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Ay=QD;const eH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:J$,Aim:Q$,AlarmClock:tA,Apple:aA,ArrowDown:po,ArrowDownBold:lA,ArrowLeft:zo,ArrowLeftBold:iA,ArrowRight:Un,ArrowRightBold:dA,ArrowUp:Iu,ArrowUpBold:hA,Avatar:gA,Back:dy,Baseball:wA,Basketball:_A,Bell:EA,BellFilled:xA,Bicycle:MA,Bottom:PA,BottomLeft:$A,BottomRight:RA,Bowl:LA,Box:BA,Briefcase:DA,Brush:WA,BrushFilled:FA,Burger:qA,Calendar:fy,Camera:JA,CameraFilled:GA,CaretBottom:QA,CaretLeft:tR,CaretRight:ph,CaretTop:py,Cellphone:lR,ChatDotRound:sR,ChatDotSquare:uR,ChatLineRound:dR,ChatLineSquare:pR,ChatRound:vR,ChatSquare:gR,Check:Gs,Checked:wR,Cherry:_R,Chicken:xR,ChromeFilled:ER,CircleCheck:df,CircleCheckFilled:hy,CircleClose:ho,CircleCloseFilled:ff,CirclePlus:PR,CirclePlusFilled:RR,Clock:hh,Close:Na,CloseBold:VR,Cloudy:DR,Coffee:WR,CoffeeCup:FR,Coin:qR,ColdDrink:YR,Collection:ZR,CollectionTag:XR,Comment:eN,Compass:nN,Connection:oN,Coordinate:rN,CopyDocument:iN,Cpu:cN,CreditCard:fN,Crop:hN,DArrowLeft:fl,DArrowRight:pl,DCaret:yN,DataAnalysis:wN,DataBoard:_N,DataLine:xN,Delete:vy,DeleteFilled:EN,DeleteLocation:MN,Dessert:AN,Discount:NN,Dish:VN,DishDot:IN,Document:my,DocumentAdd:zN,DocumentChecked:HN,DocumentCopy:KN,DocumentDelete:jN,DocumentRemove:UN,Download:XN,Drizzling:ZN,Edit:nP,EditPen:eP,Eleme:rP,ElemeFilled:oP,ElementPlus:iP,Expand:cP,Failed:fP,Female:hP,Files:mP,Film:yP,Filter:wP,Finished:_P,FirstAidKit:xP,Flag:EP,Fold:MP,Folder:DP,FolderAdd:$P,FolderChecked:RP,FolderDelete:PP,FolderOpened:LP,FolderRemove:BP,Food:FP,Football:WP,ForkSpoon:qP,Fries:YP,FullScreen:gy,Goblet:aI,GobletFull:JP,GobletSquare:tI,GobletSquareFull:QP,GoldMedal:lI,Goods:uI,GoodsFilled:sI,Grape:dI,Grid:pI,Guide:vI,Handbag:gI,Headset:bI,Help:SI,HelpFilled:CI,Hide:yy,Histogram:EI,HomeFilled:MI,HotWater:$I,House:RI,IceCream:BI,IceCreamRound:PI,IceCreamSquare:LI,IceDrink:DI,IceTea:FI,InfoFilled:Ns,Iphone:jI,Key:UI,KnifeFork:GI,Lightning:JI,Link:QI,List:tL,Loading:no,Location:iL,LocationFilled:oL,LocationInformation:rL,Lock:cL,Lollipop:fL,MagicStick:hL,Magnet:mL,Male:yL,Management:wL,MapLocation:_L,Medal:xL,Memo:EL,Menu:ML,Message:RL,MessageBox:$L,Mic:PL,Microphone:LL,MilkTea:BL,Minus:by,Money:HL,Monitor:KL,Moon:UL,MoonNight:jL,More:wy,MoreFilled:h2,MostlyCloudy:JL,Mouse:QL,Mug:tV,Mute:lV,MuteNotification:aV,NoSmoking:sV,Notebook:uV,Notification:dV,Odometer:pV,OfficeBuilding:vV,Open:gV,Operation:bV,Opportunity:CV,Orange:SV,Paperclip:kV,PartlyCloudy:TV,Pear:OV,Phone:NV,PhoneFilled:AV,Picture:BV,PictureFilled:Cy,PictureRounded:LV,PieChart:DV,Place:FV,Platform:WV,Plus:vh,Pointer:UV,Position:GV,Postcard:JV,Pouring:QV,Present:tB,PriceTag:aB,Printer:lB,Promotion:sB,QuartzWatch:uB,QuestionFilled:_y,Rank:fB,Reading:mB,ReadingLamp:hB,Refresh:wB,RefreshLeft:Sy,RefreshRight:xy,Refrigerator:_B,Remove:EB,RemoveFilled:xB,Right:MB,ScaleToOriginal:ky,School:AB,Scissor:NB,Search:Ey,Select:LB,Sell:BB,SemiSelect:DB,Service:FB,SetUp:WB,Setting:qB,Share:YB,Ship:XB,Shop:ZB,ShoppingBag:ez,ShoppingCart:oz,ShoppingCartFull:nz,ShoppingTrolley:rz,Smoking:iz,Soccer:cz,SoldOut:fz,Sort:mz,SortDown:Ty,SortUp:My,Stamp:yz,Star:Oy,StarFilled:gi,Stopwatch:_z,SuccessFilled:mh,Sugar:kz,Suitcase:Oz,SuitcaseLine:Tz,Sunny:Az,Sunrise:Nz,Sunset:Iz,Switch:Hz,SwitchButton:Vz,SwitchFilled:zz,TakeawayBox:Kz,Ticket:jz,Tickets:Uz,Timer:Gz,ToiletPaper:Jz,Tools:Qz,Top:lD,TopLeft:tD,TopRight:aD,TrendCharts:sD,Trophy:dD,TrophyBase:uD,TurnOff:pD,Umbrella:vD,Unlock:gD,Upload:CD,UploadFilled:bD,User:kD,UserFilled:SD,Van:TD,VideoCamera:AD,VideoCameraFilled:OD,VideoPause:ND,VideoPlay:ID,View:$y,Wallet:DD,WalletFilled:BD,WarnTriangleFilled:FD,Warning:jD,WarningFilled:Lu,Watch:UD,Watermelon:GD,WindPower:JD,ZoomIn:gh,ZoomOut:Ay},Symbol.toStringTag,{value:"Module"})),Ft=J([String,Object,Function]),Ry={Close:Na},yh={Close:Na,SuccessFilled:mh,InfoFilled:Ns,WarningFilled:Lu,CircleCloseFilled:ff},Ul={primary:Ns,success:mh,warning:Lu,error:ff,info:Ns},pf={validating:no,success:df,error:ho},tH=["light","dark"],nH=_e({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Gi(Ul),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:tH,default:"light"}}),aH={close:e=>e instanceof MouseEvent},oH=_e({size:{type:J([Number,String])},color:{type:String}});var lH=D({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:oH,setup(e){const t=e,n=ve("icon"),a=x(()=>{const{size:o,color:l}=t,r=ln(o);return!r&&!l?{}:{fontSize:r,"--color":l}});return(o,l)=>(C(),$("i",ht({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),rH=lH;const De=it(rH);var sH=D({name:"ElAlert",__name:"alert",props:nH,emits:aH,setup(e,{emit:t}){const{Close:n}=yh,a=e,o=t,l=hn(),r=ve("alert"),s=V(!0),u=x(()=>Ul[a.type]),c=x(()=>{var h;if(a.description)return!0;const f=(h=l.default)==null?void 0:h.call(l);return f?Ta(f).some(g=>!ly(g)):!1}),d=f=>{s.value=!1,o("close",f)};return(f,h)=>(C(),ie(Fn,{name:i(r).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{class:R([i(r).b(),i(r).m(e.type),i(r).is("center",e.center),i(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(C(),ie(i(De),{key:0,class:R([i(r).e("icon"),i(r).is("big",c.value)])},{default:ae(()=>[oe(f.$slots,"icon",{},()=>[(C(),ie(dt(u.value)))])]),_:3},8,["class"])):re("v-if",!0),E("div",{class:R(i(r).e("content"))},[e.title||f.$slots.title?(C(),$("span",{key:0,class:R([i(r).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),c.value?(C(),$("p",{key:1,class:R(i(r).e("description"))},[oe(f.$slots,"default",{},()=>[St(Se(e.description),1)])],2)):re("v-if",!0),e.closable?(C(),$(Ke,{key:2},[e.closeText?(C(),$("div",{key:0,class:R([i(r).e("close-btn"),i(r).is("customed")]),onClick:d},Se(e.closeText),3)):(C(),ie(i(De),{key:1,class:R(i(r).e("close-btn")),onClick:d},{default:ae(()=>[Q(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[$t,s.value]])]),_:3},8,["name"]))}}),iH=sH;const uH=it(iH),Ny=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Py=_e({role:{type:String,values:Ny,default:"tooltip"}}),bh=Symbol("popper"),Iy=Symbol("popperContent");var cH=D({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ve("popper"),{arrowRef:a,arrowStyle:o}=Pe(Iy,void 0);return Lt(()=>{a.value=void 0}),t({arrowRef:a}),(l,r)=>(C(),$("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:qe(i(o)),"data-popper-arrow":""},null,6))}}),dH=cH;const Ly=_e({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),t0="ElOnlyChild",Vy=D({name:t0,setup(e,{slots:t,attrs:n}){var o;const a=qO(((o=Pe(j8))==null?void 0:o.setForwardRef)??It);return()=>{var u;const l=(u=t.default)==null?void 0:u.call(t,n);if(!l)return null;const[r,s]=By(l);return r?(s>1&&pt(t0,"requires exact only one valid child."),ft(Io(r,n),[[a]])):(pt(t0,"no valid child node found"),null)}}});function By(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==mn).length;for(const a of t){if(lt(a))switch(a.type){case mn:continue;case Ks:case"svg":return[Mm(a),n];case Ke:return By(a.children);default:return[a,n]}return[Mm(a),n]}return[null,0]}function Mm(e){const t=ve("only-child");return Q("span",{class:t.e("content")},[e])}var fH=D({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Ly,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=Pe(bh,void 0);jO(o);const l=x(()=>s.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=x(()=>{if(a&&a.value!=="tooltip")return a.value}),u=x(()=>s.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return gt(()=>{fe(()=>n.virtualRef,f=>{f&&(o.value=xn(f))},{immediate:!0}),fe(o,(f,h)=>{c==null||c(),c=void 0,ga(h)&&d.forEach(g=>{const p=n[g];p&&h.removeEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),ga(f)&&(d.forEach(g=>{const p=n[g];p&&f.addEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),Ar(f)&&(c=fe([l,r,s,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{gn(g[v])?f.removeAttribute(p):f.setAttribute(p,g[v])})},{immediate:!0}))),ga(h)&&Ar(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Lt(()=>{if(c==null||c(),c=void 0,o.value&&ga(o.value)){const f=o.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(h))}),o.value=void 0}}),t({triggerRef:o}),(f,h)=>e.virtualTriggering?re("v-if",!0):(C(),ie(i(Vy),ht({key:0},f.$attrs,{"aria-controls":l.value,"aria-describedby":r.value,"aria-expanded":u.value,"aria-haspopup":s.value}),{default:ae(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),pH=fH;const zy=_e({arrowOffset:{type:Number,default:5}}),hH=["fixed","absolute"],vH=_e({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:J(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ho,default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},strategy:{type:String,values:hH,default:"absolute"}}),Dy=_e({...vH,...zy,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...oa(["ariaLabel"]),loop:Boolean}),mH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},gH=_e({size:{type:String,values:io},disabled:Boolean}),yH=_e({...gH,model:Object,rules:{type:J(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:J([Object,Boolean]),default:!0}}),bH={validate:(e,t,n)=>(be(e)||Be(e))&&Dt(t)&&Be(n)},jr=Symbol("formContextKey"),Do=Symbol("formItemContextKey"),_n=(e,t={})=>{const n=V(void 0),a=t.prop?n:A8("size"),o=t.global?n:sy(),l=t.form?{size:void 0}:Pe(jr,void 0),r=t.formItem?{size:void 0}:Pe(Do,void 0);return x(()=>a.value||i(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||o.value||"")},rn=e=>{const t=A8("disabled"),n=Pe(jr,void 0);return x(()=>t.value??i(e)??(n==null?void 0:n.disabled)??!1)},Bn=()=>({form:Pe(jr,void 0),formItem:Pe(Do,void 0)}),Pa=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=V(!1)),a||(a=V(!1));const o=vt(),l=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=V();let s;const u=x(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return gt(()=>{s=fe([Bt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Kn().value);f!==r.value&&(t!=null&&t.removeInputId&&!l()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Fs(()=>{s&&s(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},wH=["","error","validating","success"],CH=_e({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:J([String,Array])},required:{type:Boolean,default:void 0},rules:{type:J([Object,Array])},error:String,validateStatus:{type:String,values:wH},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:io}}),Om=e=>[...new Set(e)],ui=e=>be(e)?e[0]:e,ta=e=>!e&&e!==0?[]:be(e)?e:[e],_H="ElForm";function SH(){const e=V([]),t=x(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value==="0"&&pt(_H,`unexpected width ${l}`),r}function a(l,r){if(l&&r){const s=n(r);e.value.splice(s,1,l)}else l&&e.value.push(l)}function o(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const lc=(e,t)=>{const n=$n(t).map(a=>be(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Yr="ElForm";var xH=D({name:Yr,__name:"form",props:yH,emits:bH,setup(e,{expose:t,emit:n}){const a=e,o=n,l=V(),r=Rt([]),s=new Map,u=_n(),c=ve("form"),d=x(()=>{const{labelPosition:T,inline:M}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:M}]}),f=T=>lc(r,[T])[0],h=T=>{r.includes(T)||r.push(T),T.propString&&(s.has(T.propString)?T.setInitialValue(s.get(T.propString)):s.set(T.propString,Eo(T.fieldValue)))},g=(T,M)=>{if(M){s.delete(M);return}const A=r.indexOf(T);A>-1&&(r.splice(A,1),T.propString&&s.set(T.propString,Eo(T.getInitialValue())))},p=T=>{if(!a.model){pt(Yr,"model is required for setInitialValues to work.");return}if(!T){pt(Yr,"initModel is required for setInitialValues to work.");return}for(const M of s.keys())s.set(M,Eo(zl(T,M).value));r.forEach(M=>{M.prop&&M.setInitialValue(zl(T,M.prop).value)})},v=(T=[])=>{if(!a.model){pt(Yr,"model is required for resetFields to work.");return}lc(r,T).forEach(O=>O.resetField());const M=new Set(r.map(O=>O.propString).filter(Boolean)),A=T.length>0?$n(T).map(O=>be(O)?O.join("."):O):[...s.keys()];for(const O of A)!M.has(O)&&s.has(O)&&(zl(a.model,O).value=Eo(s.get(O)))},m=(T=[])=>{lc(r,T).forEach(M=>M.clearValidate())},y=x(()=>{const T=!!a.model;return T||pt(Yr,"model is required for validate to work."),T}),b=T=>{if(r.length===0)return[];const M=lc(r,T);return M.length?M:(pt(Yr,"please pass correct props!"),[])},w=async T=>S(void 0,T),_=async(T=[])=>{if(!y.value)return!1;const M=b(T);if(M.length===0)return!0;let A={};for(const O of M)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(I){A={...A,...I}}return Object.keys(A).length===0?!0:Promise.reject(A)},S=async(T=[],M)=>{var I;let A=!1;const O=!Fe(M);try{return A=await _(T),A===!0&&await(M==null?void 0:M(A)),A}catch(L){if(L instanceof Error)throw L;const z=L;return a.scrollToError&&l.value&&((I=l.value.querySelector(`.${c.b()}-item.is-error`))==null||I.scrollIntoView(a.scrollIntoViewOptions)),!A&&await(M==null?void 0:M(!1,z)),O&&Promise.reject(z)}},k=T=>{var A;const M=f(T);M&&((A=M.$el)==null||A.scrollIntoView(a.scrollIntoViewOptions))};return fe(()=>a.rules,()=>{a.validateOnRuleChange&&w().catch(T=>pt(T))},{deep:!0,flush:"post"}),wt(jr,Rt({...Nn(a),emit:o,resetFields:v,clearValidate:m,validateField:S,getField:f,addField:h,removeField:g,setInitialValues:p,...SH()})),t({validate:w,validateField:S,resetFields:v,clearValidate:m,scrollToField:k,getField:f,fields:r,setInitialValues:p}),(T,M)=>(C(),$("form",{ref_key:"formRef",ref:l,class:R(d.value)},[oe(T.$slots,"default")],2))}}),kH=xH;const $m="ElLabelWrap";var EH=D({name:$m,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Pe(jr,void 0),a=Pe(Do);a||en($m,"usage: ");const o=ve("form"),l=V(),r=V(0),s=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Le(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>u("update");return gt(()=>{c()}),Lt(()=>{u("remove")}),so(()=>c()),fe(r,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),Zt(x(()=>{var d;return((d=l.value)==null?void 0:d.firstElementChild)??null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:d}=e;if(d){const g=n==null?void 0:n.autoLabelWidth,p=a==null?void 0:a.hasLabel,v={};if(p&&g&&g!=="auto"){const m=Math.max(0,Number.parseInt(g,10)-r.value),y=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return Q("div",{ref:l,class:[o.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return Q(Ke,{ref:l},[(h=t.default)==null?void 0:h.call(t)])}}});function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rc(e,t,n){return MH()?Rc=Reflect.construct.bind():Rc=function(o,l,r){var s=[null];s.push.apply(s,l);var u=Function.bind.apply(o,s),c=new u;return r&&Qi(c,r.prototype),c},Rc.apply(null,arguments)}function OH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function m2(e){var t=typeof Map=="function"?new Map:void 0;return m2=function(a){if(a===null||!OH(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Rc(a,arguments,v2(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Qi(o,a)},m2(e)}var $H=/%[sdj%]/g,AH=function(){};function g2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Ma(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=l)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return r}return e}function RH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||RH(t)&&typeof e=="string"&&!e)}function NH(e,t,n){var a=[],o=0,l=e.length;function r(s){a.push.apply(a,s||[]),o++,o===l&&n(a)}e.forEach(function(s){t(s,r)})}function Am(e,t,n){var a=0,o=e.length;function l(r){if(r&&r.length){n(r);return}var s=a;a=a+1,si(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let os=[];const gm=e=>{Kt(e)===Ce.esc&&os.forEach(t=>t(e))},DO=e=>{gt(()=>{os.length===0&&document.addEventListener("keydown",gm),Rt&&os.push(e)}),Lt(()=>{os=os.filter(t=>t!==e),os.length===0&&Rt&&document.removeEventListener("keydown",gm)})},j8=()=>{const e=Jp(),t=uh(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},HO=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},FO=()=>{const{id:e,selector:t}=j8();return Fd(()=>{Rt&&(document.body.querySelector(t.value)||HO(e.value))}),{id:e,selector:t}},KO=_e({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),WO=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=mm(),{registerTimeout:r,cancelTimeout:s}=mm();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);He(h)&&h>0&&r(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},q8=Symbol("elForwardRef"),jO=e=>{wt(q8,{setForwardRef:n=>{e.value=n}})},qO=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ym={current:0},bm=V(0),U8=2e3,wm=Symbol("elZIndexContextKey"),Y8=Symbol("zIndexContextKey"),$u=e=>{const t=vt()?Pe(wm,ym):ym,n=e||(vt()?Pe(Y8,void 0):void 0),a=x(()=>{const r=i(n);return He(r)?r:U8}),o=x(()=>a.value+bm.value),l=()=>(t.current++,bm.value=t.current,o.value);return!Rt&&!Pe(wm)&&pt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed +usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},Rs=Math.min,xr=Math.max,sd=Math.round,lc=Math.floor,No=e=>({x:e,y:e}),UO={left:"right",right:"left",bottom:"top",top:"bottom"};function f2(e,t,n){return xr(e,Rs(t,n))}function Au(e,t){return typeof e=="function"?e(t):e}function Pr(e){return e.split("-")[0]}function Ru(e){return e.split("-")[1]}function G8(e){return e==="x"?"y":"x"}function ch(e){return e==="y"?"height":"width"}function Ll(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function dh(e){return G8(Ll(e))}function YO(e,t,n){n===void 0&&(n=!1);const a=Ru(e),o=dh(e),l=ch(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=id(r)),[r,id(r)]}function GO(e){const t=id(e);return[p2(e),t,p2(t)]}function p2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cm=["left","right"],_m=["right","left"],XO=["top","bottom"],JO=["bottom","top"];function ZO(e,t,n){switch(e){case"top":case"bottom":return n?t?_m:Cm:t?Cm:_m;case"left":case"right":return t?XO:JO;default:return[]}}function QO(e,t,n,a){const o=Ru(e);let l=ZO(Pr(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(p2)))),l}function id(e){const t=Pr(e);return UO[t]+e.slice(t.length)}function e$(e){return{top:0,right:0,bottom:0,left:0,...e}}function X8(e){return typeof e!="number"?e$(e):{top:e,right:e,bottom:e,left:e}}function ud(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function Sm(e,t,n){let{reference:a,floating:o}=e;const l=Ll(t),r=dh(t),s=ch(r),u=Pr(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[s]/2-o[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Ru(t)){case"start":g[r]-=h*(n&&c?-1:1);break;case"end":g[r]+=h*(n&&c?-1:1);break}return g}async function J8(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=Au(t,e),p=X8(g),m=s[h?f==="floating"?"reference":"floating":f],y=ud(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),C=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=ud(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+p.top)/C.y,bottom:(S.bottom-y.bottom+p.bottom)/C.y,left:(y.left-S.left+p.left)/C.x,right:(S.right-y.right+p.right)/C.x}}const t$=50,n$=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:J8},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Sm(c,a,u),h=a,g=0;const p={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=Au(e,t)||{};if(c==null)return{};const f=X8(d),h={x:n,y:a},g=dh(o),p=ch(g),v=await r.getDimensions(c),m=g==="y",y=m?"top":"left",b=m?"bottom":"right",w=m?"clientHeight":"clientWidth",C=l.reference[p]+l.reference[g]-h[g]-l.floating[p],S=h[g]-l.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=s.floating[w]||l.floating[p]);const M=C/2-S/2,A=T/2-v[p]/2-1,O=Rs(f[y],A),I=Rs(f[b],A),L=O,z=T-v[p]-I,q=T/2-v[p]/2+M,U=f2(L,q,z),F=!u.arrow&&Ru(o)!=null&&q!==U&&l.reference[p]/2-(qq<=0)){var I,L;const q=(((I=l.flip)==null?void 0:I.index)||0)+1,U=T[q];if(U&&(!(f==="alignment"?b!==Ll(U):!1)||O.every(P=>Ll(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:q,overflows:O},reset:{placement:U}};let F=(L=O.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var z;const N=(z=O.filter(P=>{if(k){const B=Ll(P.placement);return B===b||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:z[0];N&&(F=N);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}},l$=new Set(["left","top"]);async function r$(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),r=Pr(n),s=Ru(n),u=Ll(n)==="y",c=l$.has(r)?-1:1,d=l&&u?-1:1,f=Au(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),u?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const s$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:s}=t,u=await r$(t,e);return r===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:r}}}}},i$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=Au(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),h=Ll(Pr(o)),g=G8(h);let p=d[g],v=d[h];if(r){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=p+f[y],C=p-f[b];p=f2(w,p,C)}if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+f[y],C=v-f[b];v=f2(w,v,C)}const m=u.fn({...t,[g]:p,[h]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:r,[h]:s}}}}}};function rf(){return typeof window<"u"}function Ys(e){return Z8(e)?(e.nodeName||"").toLowerCase():"#document"}function $a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fo(e){var t;return(t=(Z8(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Z8(e){return rf()?e instanceof Node||e instanceof $a(e).Node:!1}function eo(e){return rf()?e instanceof Element||e instanceof $a(e).Element:!1}function wl(e){return rf()?e instanceof HTMLElement||e instanceof $a(e).HTMLElement:!1}function xm(e){return!rf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $a(e).ShadowRoot}function Nu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=to(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function u$(e){return/^(table|td|th)$/.test(Ys(e))}function sf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const c$=/transform|translate|scale|rotate|perspective|filter/,d$=/paint|layout|strict|content/,ar=e=>!!e&&e!=="none";let t0;function fh(e){const t=eo(e)?to(e):e;return ar(t.transform)||ar(t.translate)||ar(t.scale)||ar(t.rotate)||ar(t.perspective)||!ph()&&(ar(t.backdropFilter)||ar(t.filter))||c$.test(t.willChange||"")||d$.test(t.contain||"")}function f$(e){let t=ql(e);for(;wl(t)&&!Ns(t);){if(fh(t))return t;if(sf(t))return null;t=ql(t)}return null}function ph(){return t0==null&&(t0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t0}function Ns(e){return/^(html|body|#document)$/.test(Ys(e))}function to(e){return $a(e).getComputedStyle(e)}function uf(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ql(e){if(Ys(e)==="html")return e;const t=e.assignedSlot||e.parentNode||xm(e)&&e.host||Fo(e);return xm(t)?t.host:t}function Q8(e){const t=ql(e);return Ns(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&Nu(t)?t:Q8(t)}function Qi(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Q8(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),r=$a(o);if(l){const s=h2(r);return t.concat(r,r.visualViewport||[],Nu(o)?o:[],s&&n?Qi(s):[])}else return t.concat(o,Qi(o,[],n))}function h2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ey(e){const t=to(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=wl(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,s=sd(n)!==l||sd(a)!==r;return s&&(n=l,a=r),{width:n,height:a,$:s}}function hh(e){return eo(e)?e:e.contextElement}function ms(e){const t=hh(e);if(!wl(t))return No(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=ey(t);let r=(l?sd(n.width):n.width)/a,s=(l?sd(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const p$=No(0);function ty(e){const t=$a(e);return!ph()||!t.visualViewport?p$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$a(e)?!1:t}function Ir(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=hh(e);let r=No(1);t&&(a?eo(a)&&(r=ms(a)):r=ms(e));const s=h$(l,n,a)?ty(l):No(0);let u=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(l){const h=$a(l),g=a&&eo(a)?$a(a):a;let p=h,v=h2(p);for(;v&&a&&g!==p;){const m=ms(v),y=v.getBoundingClientRect(),b=to(v),w=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*m.x,C=y.top+(v.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=w,c+=C,p=$a(v),v=h2(p)}}return ud({width:d,height:f,x:u,y:c})}function cf(e,t){const n=uf(e).scrollLeft;return t?t.left+n:Ir(Fo(e)).left+n}function ny(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-cf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function v$(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",r=Fo(a),s=t?sf(t.floating):!1;if(a===r||s&&l)return n;let u={scrollLeft:0,scrollTop:0},c=No(1);const d=No(0),f=wl(a);if((f||!f&&!l)&&((Ys(a)!=="body"||Nu(r))&&(u=uf(a)),f)){const g=Ir(a);c=ms(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const h=r&&!f&&!l?ny(r,u):No(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function m$(e){return Array.from(e.getClientRects())}function g$(e){const t=Fo(e),n=uf(e),a=e.ownerDocument.body,o=xr(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=xr(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+cf(e);const s=-n.scrollTop;return to(a).direction==="rtl"&&(r+=xr(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:s}}const km=25;function y$(e,t){const n=$a(e),a=Fo(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;const d=ph();(!d||d&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const c=cf(a);if(c<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(a.clientWidth-f.clientWidth-g);p<=km&&(l-=p)}else c<=km&&(l+=c);return{width:l,height:r,x:s,y:u}}function b$(e,t){const n=Ir(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=wl(e)?ms(e):No(1),r=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,c=a*l.y;return{width:r,height:s,x:u,y:c}}function Em(e,t,n){let a;if(t==="viewport")a=y$(e,n);else if(t==="document")a=g$(Fo(e));else if(eo(t))a=b$(t,n);else{const o=ty(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ud(a)}function ay(e,t){const n=ql(e);return n===t||!eo(n)||Ns(n)?!1:to(n).position==="fixed"||ay(n,t)}function w$(e,t){const n=t.get(e);if(n)return n;let a=Qi(e,[],!1).filter(s=>eo(s)&&Ys(s)!=="body"),o=null;const l=to(e).position==="fixed";let r=l?ql(e):e;for(;eo(r)&&!Ns(r);){const s=to(r),u=fh(r);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Nu(r)&&!u&&ay(e,r))?a=a.filter(d=>d!==r):o=s,r=ql(r)}return t.set(e,a),a}function C$(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const r=[...n==="clippingAncestors"?sf(t)?[]:w$(t,this._c):[].concat(n),a],s=Em(t,r[0],o);let u=s.top,c=s.right,d=s.bottom,f=s.left;for(let h=1;h{r(!1,1e-7)},1e3)}T===1&&!ly(c,e.getBoundingClientRect())&&r(),C=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function M$(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=hh(e),d=o||l?[...c?Qi(c):[],...t?Qi(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const f=c&&s?T$(c,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let p,v=u?Ir(e):null;u&&m();function m(){const y=Ir(e);v&&!ly(v,y)&&n(),v=y,p=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const O$=J8,$$=s$,A$=i$,R$=o$,N$=a$,P$=(e,t,n)=>{const a=new Map,o={platform:E$,...n},l={...o.platform,_c:a};return n$(e,t,{...o,platform:l})};function I$(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:l,value:r}=e.value;o==null||l==null||(t={selectionStart:o,selectionEnd:l,value:r,beforeTxt:r.slice(0,Math.max(0,o)),afterTxt:r.slice(Math.max(0,l))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:s}=t;if(l==null||r==null||s==null)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(l))u=l.length;else{const c=l[s-1],d=o.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const L$="utils/vue/vnode";let qa=function(e){return e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e}({});function v2(e){return Wt(e)&&e.type===Ke}function ry(e){return Wt(e)&&e.type===gn}function V$(e){return Wt(e)&&!v2(e)&&!ry(e)}const B$=e=>{if(!Wt(e))return pt(L$,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{Mt(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[Hn(o)]=t[o]}),a},Ta=e=>{const t=be(e)?e:[e],n=[];return t.forEach(a=>{var o;be(a)?n.push(...Ta(a)):Wt(a)&&((o=a.component)!=null&&o.subTree)?n.push(a,...Ta(a.component.subTree)):Wt(a)&&be(a.children)?n.push(...Ta(a.children)):Wt(a)&&a.shapeFlag===2?n.push(...Ta(a.type())):n.push(a)}),n},z$=(e,t,n)=>Ta(e.subTree).filter(a=>{var o;return Wt(a)&&((o=a.type)==null?void 0:o.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),df=(e,t)=>{const n=qt({}),a=qt([]),o=new WeakMap,l=c=>{n.value[c.uid]=c,_c(n),gt(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const h=f.insertBefore.bind(f);f.insertBefore=(g,p)=>(o.get(f).some(v=>g===v||p===v)&&_c(n),h(g,p))}o.get(f).push(d)})},r=c=>{delete n.value[c.uid],_c(n);const d=c.getVnode().el,f=d.parentNode,h=o.get(f),g=h.indexOf(d);h.splice(g,1)},s=()=>{a.value=z$(e,t,n.value)},u=c=>c.render();return{children:a,addChild:l,removeChild:r,ChildrenSorter:D({setup(c,{slots:d}){return()=>(s(),d.default?Ye(u,{render:d.default}):null)}})}},kn=fo({type:String,values:io,required:!1}),sy=Symbol("size"),iy=()=>{const e=Pe(sy,{});return x(()=>i(e.size)||"")};function Cl(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:l}={}){const{emit:r}=vt(),s=qt(),u=V(!1),c=h=>{const g=Fe(n)?n(h):!1;i(t)||u.value||g||(u.value=!0,r("focus",h),a==null||a())},d=h=>{var p;const g=Fe(o)?o(h):!1;i(t)||h.relatedTarget&&((p=s.value)!=null&&p.contains(h.relatedTarget))||g||(u.value=!1,r("blur",h),l==null||l())},f=h=>{var g,p;i(t)||Rr(h.target)||(g=s.value)!=null&&g.contains(document.activeElement)&&s.value!==document.activeElement||(p=e.value)==null||p.focus()};return fe([s,()=>i(t)],([h,g])=>{h&&(g?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Vt(s,"focus",c,!0),Vt(s,"blur",d,!0),Vt(s,"click",f,!0),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:d}}function Pu({afterComposition:e,emit:t}){const n=V(!1),a=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{t==null||t("compositionupdate",s),n.value=!0},l=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Le(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?l(s):o(s)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:l}}const uy=Symbol("emptyValuesContextKey"),D$="use-empty-values",H$=["",void 0,null],F$=void 0,jr=_e({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Fe(e)?e():e,be(e)?e.every(t=>!t):!e)}}),Iu=(e,t)=>{const n=vt()?Pe(uy,V({})):V({}),a=x(()=>e.emptyValues||n.value.emptyValues||H$),o=x(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:F$),l=r=>{let s=!0;return be(r)?s=a.value.some(u=>on(r,u)):s=a.value.includes(r),s};return l(o.value)||pt(D$,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:l}},K$=_e({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),oa=e=>ul(K$,e),cy=e=>{const t=e.props,n=be(t)?Ts(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,l]of Object.entries(a)){const r=n[o];if(Mt(n,o)){if(jp(r)){n[o]={...r,default:l};continue}n[o]={type:r,default:l}}}e.props=n}}},it=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return cy(e),e},dy=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),W$=(e,t)=>(e.install=n=>{n.directive(t,e)},e),nn=e=>(e.install=It,cy(e),e);var j$=D({__name:"teleport",props:Tu,setup(e){return(t,n)=>t.disabled?oe(t.$slots,"default",{key:0}):(_(),ie(DC,{key:1,to:t.to},[oe(t.$slots,"default")],8,["to"]))}}),q$=j$;const Gs=it(q$),Mm="ElAffix";var U$=D({name:Mm,__name:"affix",props:yM,emits:bM,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("affix"),r=qt(),s=qt(),u=qt(),{height:c}=Np(),{height:d,width:f,top:h,bottom:g,left:p,update:v}=b1(s,{windowScroll:!1}),m=b1(r),y=V(!1),b=V(0),w=V(0),C=x(()=>!a.teleported||!y.value),S=x(()=>({display:"flow-root",height:y.value?`${d.value}px`:"",width:y.value?`${f.value}px`:""})),k=x(()=>{if(!y.value)return{};const O=rn(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?O:"",bottom:a.position==="bottom"?O:"",left:a.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:a.zIndex}}),T=()=>{if(!u.value)return;b.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:I,offset:L}=a,z=L+d.value;if(O==="top")if(I){const q=m.bottom.value-z;y.value=L>h.value&&m.bottom.value>0,w.value=q<0?q:0}else y.value=L>h.value;else if(I){const q=c.value-m.top.value-z;y.value=c.value-Lm.top.value,w.value=q<0?-q:0}else y.value=c.value-L{if(!y.value){v();return}y.value=!1,await Le(),v(),y.value=!0},A=async()=>{v(),await Le(),o("scroll",{scrollTop:b.value,fixed:y.value})};return fe(y,O=>o(bt,O)),gt(()=>{a.target?(r.value=document.querySelector(a.target)??void 0,r.value||tn(Mm,`Target does not exist: ${a.target}`)):r.value=document.documentElement,u.value=Zp(s.value,!0),v()}),mu(()=>{Le(M)}),_p(()=>{y.value=!1}),Vt(u,"scroll",A),da(T),t({update:T,updateRoot:M}),(O,I)=>(_(),$("div",{ref_key:"root",ref:s,class:R(i(l).b()),style:qe(S.value)},[Q(i(Gs),{disabled:C.value,to:e.appendTo},{default:ae(()=>[E("div",{class:R({[i(l).m("fixed")]:y.value}),style:qe(k.value)},[oe(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),Y$=U$;const G$=it(Y$);/*! Element Plus Icons Vue v2.3.2 */var X$=D({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),J$=X$,Z$=D({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Q$=Z$,eA=D({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),tA=eA,nA=D({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),aA=nA,oA=D({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),lA=oA,rA=D({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),po=rA,sA=D({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),iA=sA,uA=D({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),zo=uA,cA=D({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),dA=cA,fA=D({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Un=fA,pA=D({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),hA=pA,vA=D({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Lu=vA,mA=D({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),gA=mA,yA=D({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),fy=yA,bA=D({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),wA=bA,CA=D({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),_A=CA,SA=D({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),xA=SA,kA=D({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),EA=kA,TA=D({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),MA=TA,OA=D({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),$A=OA,AA=D({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),RA=AA,NA=D({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),PA=NA,IA=D({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),LA=IA,VA=D({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),BA=VA,zA=D({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),DA=zA,HA=D({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),FA=HA,KA=D({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),WA=KA,jA=D({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),qA=jA,UA=D({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),py=UA,YA=D({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),GA=YA,XA=D({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),JA=XA,ZA=D({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),QA=ZA,eR=D({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),tR=eR,nR=D({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),vh=nR,aR=D({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),hy=aR,oR=D({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),lR=oR,rR=D({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),sR=rR,iR=D({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),uR=iR,cR=D({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),dR=cR,fR=D({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),pR=fR,hR=D({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),vR=hR,mR=D({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),gR=mR,yR=D({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Xs=yR,bR=D({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),wR=bR,CR=D({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),_R=CR,SR=D({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),xR=SR,kR=D({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),ER=kR,TR=D({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),vy=TR,MR=D({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),ff=MR,OR=D({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),pf=OR,$R=D({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ho=$R,AR=D({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),RR=AR,NR=D({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),PR=NR,IR=D({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),mh=IR,LR=D({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),VR=LR,BR=D({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Na=BR,zR=D({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),DR=zR,HR=D({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),FR=HR,KR=D({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),WR=KR,jR=D({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),qR=jR,UR=D({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),YR=UR,GR=D({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),XR=GR,JR=D({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),ZR=JR,QR=D({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),eN=QR,tN=D({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),nN=tN,aN=D({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),oN=aN,lN=D({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),rN=lN,sN=D({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),iN=sN,uN=D({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),cN=uN,dN=D({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),fN=dN,pN=D({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),hN=pN,vN=D({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),fl=vN,mN=D({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),pl=mN,gN=D({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),yN=gN,bN=D({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),wN=bN,CN=D({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),_N=CN,SN=D({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),xN=SN,kN=D({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),EN=kN,TN=D({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),MN=TN,ON=D({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),my=ON,$N=D({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),AN=$N,RN=D({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),NN=RN,PN=D({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),IN=PN,LN=D({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),VN=LN,BN=D({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),zN=BN,DN=D({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),HN=DN,FN=D({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),KN=FN,WN=D({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),jN=WN,qN=D({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),UN=qN,YN=D({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),gy=YN,GN=D({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),XN=GN,JN=D({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),ZN=JN,QN=D({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),eP=QN,tP=D({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),nP=tP,aP=D({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),oP=aP,lP=D({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),rP=lP,sP=D({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),iP=sP,uP=D({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),cP=uP,dP=D({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),fP=dP,pP=D({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),hP=pP,vP=D({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),mP=vP,gP=D({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),yP=gP,bP=D({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),wP=bP,CP=D({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),_P=CP,SP=D({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),xP=SP,kP=D({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),EP=kP,TP=D({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),MP=TP,OP=D({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),$P=OP,AP=D({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),RP=AP,NP=D({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),PP=NP,IP=D({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),LP=IP,VP=D({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),BP=VP,zP=D({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),DP=zP,HP=D({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),FP=HP,KP=D({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),WP=KP,jP=D({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),qP=jP,UP=D({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),YP=UP,GP=D({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),yy=GP,XP=D({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),JP=XP,ZP=D({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),QP=ZP,eI=D({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),tI=eI,nI=D({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),aI=nI,oI=D({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),lI=oI,rI=D({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),sI=rI,iI=D({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),uI=iI,cI=D({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),dI=cI,fI=D({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),pI=fI,hI=D({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),vI=hI,mI=D({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),gI=mI,yI=D({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),bI=yI,wI=D({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),CI=wI,_I=D({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),SI=_I,xI=D({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),by=xI,kI=D({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),EI=kI,TI=D({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),MI=TI,OI=D({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),$I=OI,AI=D({name:"House",__name:"house",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),RI=AI,NI=D({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),PI=NI,II=D({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),LI=II,VI=D({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),BI=VI,zI=D({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),DI=zI,HI=D({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),FI=HI,KI=D({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ps=KI,WI=D({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),jI=WI,qI=D({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),UI=qI,YI=D({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),GI=YI,XI=D({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),JI=XI,ZI=D({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),QI=ZI,eL=D({name:"List",__name:"list",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),tL=eL,nL=D({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),no=nL,aL=D({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),oL=aL,lL=D({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),rL=lL,sL=D({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),iL=sL,uL=D({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),cL=uL,dL=D({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),fL=dL,pL=D({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),hL=pL,vL=D({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),mL=vL,gL=D({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),yL=gL,bL=D({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),wL=bL,CL=D({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),_L=CL,SL=D({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),xL=SL,kL=D({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),EL=kL,TL=D({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),ML=TL,OL=D({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),$L=OL,AL=D({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),RL=AL,NL=D({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),PL=NL,IL=D({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),LL=IL,VL=D({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),BL=VL,zL=D({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),wy=zL,DL=D({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),HL=DL,FL=D({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),KL=FL,WL=D({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),jL=WL,qL=D({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),UL=qL,YL=D({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),m2=YL,GL=D({name:"More",__name:"more",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Cy=GL,XL=D({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),JL=XL,ZL=D({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),QL=ZL,eV=D({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),tV=eV,nV=D({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),aV=nV,oV=D({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),lV=oV,rV=D({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),sV=rV,iV=D({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),uV=iV,cV=D({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),dV=cV,fV=D({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),pV=fV,hV=D({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),vV=hV,mV=D({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),gV=mV,yV=D({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),bV=yV,wV=D({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),CV=wV,_V=D({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),SV=_V,xV=D({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),kV=xV,EV=D({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),TV=EV,MV=D({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),OV=MV,$V=D({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),AV=$V,RV=D({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),NV=RV,PV=D({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),_y=PV,IV=D({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),LV=IV,VV=D({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),BV=VV,zV=D({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),DV=zV,HV=D({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),FV=HV,KV=D({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),WV=KV,jV=D({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),gh=jV,qV=D({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),UV=qV,YV=D({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),GV=YV,XV=D({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),JV=XV,ZV=D({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),QV=ZV,eB=D({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),tB=eB,nB=D({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),aB=nB,oB=D({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),lB=oB,rB=D({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),sB=rB,iB=D({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),uB=iB,cB=D({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),Sy=cB,dB=D({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),fB=dB,pB=D({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),hB=pB,vB=D({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),mB=vB,gB=D({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),xy=gB,yB=D({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),ky=yB,bB=D({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),wB=bB,CB=D({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),_B=CB,SB=D({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),xB=SB,kB=D({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),EB=kB,TB=D({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),MB=TB,OB=D({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),Ey=OB,$B=D({name:"School",__name:"school",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),AB=$B,RB=D({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),NB=RB,PB=D({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ty=PB,IB=D({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),LB=IB,VB=D({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),BB=VB,zB=D({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),DB=zB,HB=D({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),FB=HB,KB=D({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),WB=KB,jB=D({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),qB=jB,UB=D({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),YB=UB,GB=D({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),XB=GB,JB=D({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),ZB=JB,QB=D({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),ez=QB,tz=D({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),nz=tz,az=D({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),oz=az,lz=D({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),rz=lz,sz=D({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),iz=sz,uz=D({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),cz=uz,dz=D({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),fz=dz,pz=D({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),My=pz,hz=D({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Oy=hz,vz=D({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),mz=vz,gz=D({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),yz=gz,bz=D({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),yi=bz,wz=D({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),$y=wz,Cz=D({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),_z=Cz,Sz=D({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),yh=Sz,xz=D({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),kz=xz,Ez=D({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),Tz=Ez,Mz=D({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Oz=Mz,$z=D({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Az=$z,Rz=D({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Nz=Rz,Pz=D({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Iz=Pz,Lz=D({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Vz=Lz,Bz=D({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),zz=Bz,Dz=D({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Hz=Dz,Fz=D({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),Kz=Fz,Wz=D({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),jz=Wz,qz=D({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),Uz=qz,Yz=D({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Gz=Yz,Xz=D({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Jz=Xz,Zz=D({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Qz=Zz,eD=D({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),tD=eD,nD=D({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),aD=nD,oD=D({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),lD=oD,rD=D({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),sD=rD,iD=D({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),uD=iD,cD=D({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),dD=cD,fD=D({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),pD=fD,hD=D({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),vD=hD,mD=D({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),gD=mD,yD=D({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),bD=yD,wD=D({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),CD=wD,_D=D({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),SD=_D,xD=D({name:"User",__name:"user",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),kD=xD,ED=D({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),TD=ED,MD=D({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),OD=MD,$D=D({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),AD=$D,RD=D({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),ND=RD,PD=D({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),ID=PD,LD=D({name:"View",__name:"view",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ay=LD,VD=D({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),BD=VD,zD=D({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),DD=zD,HD=D({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),FD=HD,KD=D({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Vu=KD,WD=D({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),jD=WD,qD=D({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),UD=qD,YD=D({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),GD=YD,XD=D({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),JD=XD,ZD=D({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),bh=ZD,QD=D({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Ry=QD;const eH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:J$,Aim:Q$,AlarmClock:tA,Apple:aA,ArrowDown:po,ArrowDownBold:lA,ArrowLeft:zo,ArrowLeftBold:iA,ArrowRight:Un,ArrowRightBold:dA,ArrowUp:Lu,ArrowUpBold:hA,Avatar:gA,Back:fy,Baseball:wA,Basketball:_A,Bell:EA,BellFilled:xA,Bicycle:MA,Bottom:PA,BottomLeft:$A,BottomRight:RA,Bowl:LA,Box:BA,Briefcase:DA,Brush:WA,BrushFilled:FA,Burger:qA,Calendar:py,Camera:JA,CameraFilled:GA,CaretBottom:QA,CaretLeft:tR,CaretRight:vh,CaretTop:hy,Cellphone:lR,ChatDotRound:sR,ChatDotSquare:uR,ChatLineRound:dR,ChatLineSquare:pR,ChatRound:vR,ChatSquare:gR,Check:Xs,Checked:wR,Cherry:_R,Chicken:xR,ChromeFilled:ER,CircleCheck:ff,CircleCheckFilled:vy,CircleClose:ho,CircleCloseFilled:pf,CirclePlus:PR,CirclePlusFilled:RR,Clock:mh,Close:Na,CloseBold:VR,Cloudy:DR,Coffee:WR,CoffeeCup:FR,Coin:qR,ColdDrink:YR,Collection:ZR,CollectionTag:XR,Comment:eN,Compass:nN,Connection:oN,Coordinate:rN,CopyDocument:iN,Cpu:cN,CreditCard:fN,Crop:hN,DArrowLeft:fl,DArrowRight:pl,DCaret:yN,DataAnalysis:wN,DataBoard:_N,DataLine:xN,Delete:my,DeleteFilled:EN,DeleteLocation:MN,Dessert:AN,Discount:NN,Dish:VN,DishDot:IN,Document:gy,DocumentAdd:zN,DocumentChecked:HN,DocumentCopy:KN,DocumentDelete:jN,DocumentRemove:UN,Download:XN,Drizzling:ZN,Edit:nP,EditPen:eP,Eleme:rP,ElemeFilled:oP,ElementPlus:iP,Expand:cP,Failed:fP,Female:hP,Files:mP,Film:yP,Filter:wP,Finished:_P,FirstAidKit:xP,Flag:EP,Fold:MP,Folder:DP,FolderAdd:$P,FolderChecked:RP,FolderDelete:PP,FolderOpened:LP,FolderRemove:BP,Food:FP,Football:WP,ForkSpoon:qP,Fries:YP,FullScreen:yy,Goblet:aI,GobletFull:JP,GobletSquare:tI,GobletSquareFull:QP,GoldMedal:lI,Goods:uI,GoodsFilled:sI,Grape:dI,Grid:pI,Guide:vI,Handbag:gI,Headset:bI,Help:SI,HelpFilled:CI,Hide:by,Histogram:EI,HomeFilled:MI,HotWater:$I,House:RI,IceCream:BI,IceCreamRound:PI,IceCreamSquare:LI,IceDrink:DI,IceTea:FI,InfoFilled:Ps,Iphone:jI,Key:UI,KnifeFork:GI,Lightning:JI,Link:QI,List:tL,Loading:no,Location:iL,LocationFilled:oL,LocationInformation:rL,Lock:cL,Lollipop:fL,MagicStick:hL,Magnet:mL,Male:yL,Management:wL,MapLocation:_L,Medal:xL,Memo:EL,Menu:ML,Message:RL,MessageBox:$L,Mic:PL,Microphone:LL,MilkTea:BL,Minus:wy,Money:HL,Monitor:KL,Moon:UL,MoonNight:jL,More:Cy,MoreFilled:m2,MostlyCloudy:JL,Mouse:QL,Mug:tV,Mute:lV,MuteNotification:aV,NoSmoking:sV,Notebook:uV,Notification:dV,Odometer:pV,OfficeBuilding:vV,Open:gV,Operation:bV,Opportunity:CV,Orange:SV,Paperclip:kV,PartlyCloudy:TV,Pear:OV,Phone:NV,PhoneFilled:AV,Picture:BV,PictureFilled:_y,PictureRounded:LV,PieChart:DV,Place:FV,Platform:WV,Plus:gh,Pointer:UV,Position:GV,Postcard:JV,Pouring:QV,Present:tB,PriceTag:aB,Printer:lB,Promotion:sB,QuartzWatch:uB,QuestionFilled:Sy,Rank:fB,Reading:mB,ReadingLamp:hB,Refresh:wB,RefreshLeft:xy,RefreshRight:ky,Refrigerator:_B,Remove:EB,RemoveFilled:xB,Right:MB,ScaleToOriginal:Ey,School:AB,Scissor:NB,Search:Ty,Select:LB,Sell:BB,SemiSelect:DB,Service:FB,SetUp:WB,Setting:qB,Share:YB,Ship:XB,Shop:ZB,ShoppingBag:ez,ShoppingCart:oz,ShoppingCartFull:nz,ShoppingTrolley:rz,Smoking:iz,Soccer:cz,SoldOut:fz,Sort:mz,SortDown:My,SortUp:Oy,Stamp:yz,Star:$y,StarFilled:yi,Stopwatch:_z,SuccessFilled:yh,Sugar:kz,Suitcase:Oz,SuitcaseLine:Tz,Sunny:Az,Sunrise:Nz,Sunset:Iz,Switch:Hz,SwitchButton:Vz,SwitchFilled:zz,TakeawayBox:Kz,Ticket:jz,Tickets:Uz,Timer:Gz,ToiletPaper:Jz,Tools:Qz,Top:lD,TopLeft:tD,TopRight:aD,TrendCharts:sD,Trophy:dD,TrophyBase:uD,TurnOff:pD,Umbrella:vD,Unlock:gD,Upload:CD,UploadFilled:bD,User:kD,UserFilled:SD,Van:TD,VideoCamera:AD,VideoCameraFilled:OD,VideoPause:ND,VideoPlay:ID,View:Ay,Wallet:DD,WalletFilled:BD,WarnTriangleFilled:FD,Warning:jD,WarningFilled:Vu,Watch:UD,Watermelon:GD,WindPower:JD,ZoomIn:bh,ZoomOut:Ry},Symbol.toStringTag,{value:"Module"})),Ft=J([String,Object,Function]),Ny={Close:Na},wh={Close:Na,SuccessFilled:yh,InfoFilled:Ps,WarningFilled:Vu,CircleCloseFilled:pf},Ul={primary:Ps,success:yh,warning:Vu,error:pf,info:Ps},hf={validating:no,success:ff,error:ho},tH=["light","dark"],nH=_e({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Xi(Ul),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:tH,default:"light"}}),aH={close:e=>e instanceof MouseEvent},oH=_e({size:{type:J([Number,String])},color:{type:String}});var lH=D({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:oH,setup(e){const t=e,n=ve("icon"),a=x(()=>{const{size:o,color:l}=t,r=rn(o);return!r&&!l?{}:{fontSize:r,"--color":l}});return(o,l)=>(_(),$("i",ht({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),rH=lH;const De=it(rH);var sH=D({name:"ElAlert",__name:"alert",props:nH,emits:aH,setup(e,{emit:t}){const{Close:n}=wh,a=e,o=t,l=vn(),r=ve("alert"),s=V(!0),u=x(()=>Ul[a.type]),c=x(()=>{var h;if(a.description)return!0;const f=(h=l.default)==null?void 0:h.call(l);return f?Ta(f).some(g=>!ry(g)):!1}),d=f=>{s.value=!1,o("close",f)};return(f,h)=>(_(),ie(Fn,{name:i(r).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{class:R([i(r).b(),i(r).m(e.type),i(r).is("center",e.center),i(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(_(),ie(i(De),{key:0,class:R([i(r).e("icon"),i(r).is("big",c.value)])},{default:ae(()=>[oe(f.$slots,"icon",{},()=>[(_(),ie(dt(u.value)))])]),_:3},8,["class"])):re("v-if",!0),E("div",{class:R(i(r).e("content"))},[e.title||f.$slots.title?(_(),$("span",{key:0,class:R([i(r).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),c.value?(_(),$("p",{key:1,class:R(i(r).e("description"))},[oe(f.$slots,"default",{},()=>[St(Se(e.description),1)])],2)):re("v-if",!0),e.closable?(_(),$(Ke,{key:2},[e.closeText?(_(),$("div",{key:0,class:R([i(r).e("close-btn"),i(r).is("customed")]),onClick:d},Se(e.closeText),3)):(_(),ie(i(De),{key:1,class:R(i(r).e("close-btn")),onClick:d},{default:ae(()=>[Q(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[At,s.value]])]),_:3},8,["name"]))}}),iH=sH;const uH=it(iH),Py=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Iy=_e({role:{type:String,values:Py,default:"tooltip"}}),Ch=Symbol("popper"),Ly=Symbol("popperContent");var cH=D({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ve("popper"),{arrowRef:a,arrowStyle:o}=Pe(Ly,void 0);return Lt(()=>{a.value=void 0}),t({arrowRef:a}),(l,r)=>(_(),$("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:qe(i(o)),"data-popper-arrow":""},null,6))}}),dH=cH;const Vy=_e({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),a0="ElOnlyChild",By=D({name:a0,setup(e,{slots:t,attrs:n}){var o;const a=qO(((o=Pe(q8))==null?void 0:o.setForwardRef)??It);return()=>{var u;const l=(u=t.default)==null?void 0:u.call(t,n);if(!l)return null;const[r,s]=zy(l);return r?(s>1&&pt(a0,"requires exact only one valid child."),ft(Io(r,n),[[a]])):(pt(a0,"no valid child node found"),null)}}});function zy(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==gn).length;for(const a of t){if(lt(a))switch(a.type){case gn:continue;case Ws:case"svg":return[Om(a),n];case Ke:return zy(a.children);default:return[a,n]}return[Om(a),n]}return[null,0]}function Om(e){const t=ve("only-child");return Q("span",{class:t.e("content")},[e])}var fH=D({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Vy,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=Pe(Ch,void 0);jO(o);const l=x(()=>s.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=x(()=>{if(a&&a.value!=="tooltip")return a.value}),u=x(()=>s.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return gt(()=>{fe(()=>n.virtualRef,f=>{f&&(o.value=xn(f))},{immediate:!0}),fe(o,(f,h)=>{c==null||c(),c=void 0,ga(h)&&d.forEach(g=>{const p=n[g];p&&h.removeEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),ga(f)&&(d.forEach(g=>{const p=n[g];p&&f.addEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),Rr(f)&&(c=fe([l,r,s,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{yn(g[v])?f.removeAttribute(p):f.setAttribute(p,g[v])})},{immediate:!0}))),ga(h)&&Rr(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Lt(()=>{if(c==null||c(),c=void 0,o.value&&ga(o.value)){const f=o.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(h))}),o.value=void 0}}),t({triggerRef:o}),(f,h)=>e.virtualTriggering?re("v-if",!0):(_(),ie(i(By),ht({key:0},f.$attrs,{"aria-controls":l.value,"aria-describedby":r.value,"aria-expanded":u.value,"aria-haspopup":s.value}),{default:ae(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),pH=fH;const Dy=_e({arrowOffset:{type:Number,default:5}}),hH=["fixed","absolute"],vH=_e({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:J(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ho,default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},strategy:{type:String,values:hH,default:"absolute"}}),Hy=_e({...vH,...Dy,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...oa(["ariaLabel"]),loop:Boolean}),mH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},gH=_e({size:{type:String,values:io},disabled:Boolean}),yH=_e({...gH,model:Object,rules:{type:J(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:J([Object,Boolean]),default:!0}}),bH={validate:(e,t,n)=>(be(e)||Be(e))&&Dt(t)&&Be(n)},qr=Symbol("formContextKey"),Do=Symbol("formItemContextKey"),_n=(e,t={})=>{const n=V(void 0),a=t.prop?n:R8("size"),o=t.global?n:iy(),l=t.form?{size:void 0}:Pe(qr,void 0),r=t.formItem?{size:void 0}:Pe(Do,void 0);return x(()=>a.value||i(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||o.value||"")},sn=e=>{const t=R8("disabled"),n=Pe(qr,void 0);return x(()=>t.value??i(e)??(n==null?void 0:n.disabled)??!1)},Bn=()=>({form:Pe(qr,void 0),formItem:Pe(Do,void 0)}),Pa=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=V(!1)),a||(a=V(!1));const o=vt(),l=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=V();let s;const u=x(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return gt(()=>{s=fe([Bt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Kn().value);f!==r.value&&(t!=null&&t.removeInputId&&!l()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Ks(()=>{s&&s(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},wH=["","error","validating","success"],CH=_e({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:J([String,Array])},required:{type:Boolean,default:void 0},rules:{type:J([Object,Array])},error:String,validateStatus:{type:String,values:wH},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:io}}),$m=e=>[...new Set(e)],ci=e=>be(e)?e[0]:e,ta=e=>!e&&e!==0?[]:be(e)?e:[e],_H="ElForm";function SH(){const e=V([]),t=x(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value==="0"&&pt(_H,`unexpected width ${l}`),r}function a(l,r){if(l&&r){const s=n(r);e.value.splice(s,1,l)}else l&&e.value.push(l)}function o(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const rc=(e,t)=>{const n=$n(t).map(a=>be(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Gr="ElForm";var xH=D({name:Gr,__name:"form",props:yH,emits:bH,setup(e,{expose:t,emit:n}){const a=e,o=n,l=V(),r=Nt([]),s=new Map,u=_n(),c=ve("form"),d=x(()=>{const{labelPosition:T,inline:M}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:M}]}),f=T=>rc(r,[T])[0],h=T=>{r.includes(T)||r.push(T),T.propString&&(s.has(T.propString)?T.setInitialValue(s.get(T.propString)):s.set(T.propString,Eo(T.fieldValue)))},g=(T,M)=>{if(M){s.delete(M);return}const A=r.indexOf(T);A>-1&&(r.splice(A,1),T.propString&&s.set(T.propString,Eo(T.getInitialValue())))},p=T=>{if(!a.model){pt(Gr,"model is required for setInitialValues to work.");return}if(!T){pt(Gr,"initModel is required for setInitialValues to work.");return}for(const M of s.keys())s.set(M,Eo(zl(T,M).value));r.forEach(M=>{M.prop&&M.setInitialValue(zl(T,M.prop).value)})},v=(T=[])=>{if(!a.model){pt(Gr,"model is required for resetFields to work.");return}rc(r,T).forEach(O=>O.resetField());const M=new Set(r.map(O=>O.propString).filter(Boolean)),A=T.length>0?$n(T).map(O=>be(O)?O.join("."):O):[...s.keys()];for(const O of A)!M.has(O)&&s.has(O)&&(zl(a.model,O).value=Eo(s.get(O)))},m=(T=[])=>{rc(r,T).forEach(M=>M.clearValidate())},y=x(()=>{const T=!!a.model;return T||pt(Gr,"model is required for validate to work."),T}),b=T=>{if(r.length===0)return[];const M=rc(r,T);return M.length?M:(pt(Gr,"please pass correct props!"),[])},w=async T=>S(void 0,T),C=async(T=[])=>{if(!y.value)return!1;const M=b(T);if(M.length===0)return!0;let A={};for(const O of M)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(I){A={...A,...I}}return Object.keys(A).length===0?!0:Promise.reject(A)},S=async(T=[],M)=>{var I;let A=!1;const O=!Fe(M);try{return A=await C(T),A===!0&&await(M==null?void 0:M(A)),A}catch(L){if(L instanceof Error)throw L;const z=L;return a.scrollToError&&l.value&&((I=l.value.querySelector(`.${c.b()}-item.is-error`))==null||I.scrollIntoView(a.scrollIntoViewOptions)),!A&&await(M==null?void 0:M(!1,z)),O&&Promise.reject(z)}},k=T=>{var A;const M=f(T);M&&((A=M.$el)==null||A.scrollIntoView(a.scrollIntoViewOptions))};return fe(()=>a.rules,()=>{a.validateOnRuleChange&&w().catch(T=>pt(T))},{deep:!0,flush:"post"}),wt(qr,Nt({...Nn(a),emit:o,resetFields:v,clearValidate:m,validateField:S,getField:f,addField:h,removeField:g,setInitialValues:p,...SH()})),t({validate:w,validateField:S,resetFields:v,clearValidate:m,scrollToField:k,getField:f,fields:r,setInitialValues:p}),(T,M)=>(_(),$("form",{ref_key:"formRef",ref:l,class:R(d.value)},[oe(T.$slots,"default")],2))}}),kH=xH;const Am="ElLabelWrap";var EH=D({name:Am,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Pe(qr,void 0),a=Pe(Do);a||tn(Am,"usage: ");const o=ve("form"),l=V(),r=V(0),s=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Le(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>u("update");return gt(()=>{c()}),Lt(()=>{u("remove")}),so(()=>c()),fe(r,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),Zt(x(()=>{var d;return((d=l.value)==null?void 0:d.firstElementChild)??null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:d}=e;if(d){const g=n==null?void 0:n.autoLabelWidth,p=a==null?void 0:a.hasLabel,v={};if(p&&g&&g!=="auto"){const m=Math.max(0,Number.parseInt(g,10)-r.value),y=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return Q("div",{ref:l,class:[o.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return Q(Ke,{ref:l},[(h=t.default)==null?void 0:h.call(t)])}}});function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nc(e,t,n){return MH()?Nc=Reflect.construct.bind():Nc=function(o,l,r){var s=[null];s.push.apply(s,l);var u=Function.bind.apply(o,s),c=new u;return r&&eu(c,r.prototype),c},Nc.apply(null,arguments)}function OH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function y2(e){var t=typeof Map=="function"?new Map:void 0;return y2=function(a){if(a===null||!OH(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Nc(a,arguments,g2(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),eu(o,a)},y2(e)}var $H=/%[sdj%]/g,AH=function(){};function b2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Ma(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=l)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return r}return e}function RH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||RH(t)&&typeof e=="string"&&!e)}function NH(e,t,n){var a=[],o=0,l=e.length;function r(s){a.push.apply(a,s||[]),o++,o===l&&n(a)}e.forEach(function(s){t(s,r)})}function Rm(e,t,n){var a=0,o=e.length;function l(r){if(r&&r.length){n(r);return}var s=a;a=a+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},yi={integer:function(t){return yi.number(t)&&parseInt(t,10)===t},float:function(t){return yi.number(t)&&!yi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!yi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Im.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(zH())},hex:function(t){return typeof t=="string"&&!!t.match(Im.hex)}},DH=function(t,n,a,o,l){if(t.required&&n===void 0){Hy(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?yi[s](n)||o.push(Ma(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Ma(l.messages.types[s],t.fullField,t.type))},HH=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(Ma(l.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?o.push(Ma(l.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&o.push(Ma(l.messages[f].range,t.fullField,t.min,t.max))},Gr="enum",FH=function(t,n,a,o,l){t[Gr]=Array.isArray(t[Gr])?t[Gr]:[],t[Gr].indexOf(n)===-1&&o.push(Ma(l.messages[Gr],t.fullField,t[Gr].join(", ")))},KH=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ut={required:Hy,whitespace:BH,type:DH,range:HH,enum:FH,pattern:KH},WH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l,"string"),Ln(n,"string")||(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l),Ut.pattern(t,n,o,r,l),t.whitespace===!0&&Ut.whitespace(t,n,o,r,l))}a(r)},jH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},qH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},UH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},YH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n)||Ut.type(t,n,o,r,l)}a(r)},GH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},XH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},JH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Ut.required(t,n,o,r,l,"array"),n!=null&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},ZH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},QH="enum",eF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut[QH](t,n,o,r,l)}a(r)},tF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n,"string")||Ut.pattern(t,n,o,r,l)}a(r)},nF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"date")&&!t.required)return a();if(Ut.required(t,n,o,r,l),!Ln(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ut.type(t,u,o,r,l),u&&Ut.range(t,u.getTime(),o,r,l)}}a(r)},aF=function(t,n,a,o,l){var r=[],s=Array.isArray(n)?"array":typeof n;Ut.required(t,n,o,r,l,s),a(r)},n0=function(t,n,a,o,l){var r=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Ln(n,r)&&!t.required)return a();Ut.required(t,n,o,s,l,r),Ln(n,r)||Ut.type(t,n,o,s,l)}a(s)},oF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l)}a(r)},Pi={string:WH,method:jH,number:qH,boolean:UH,regexp:YH,integer:GH,float:XH,array:JH,object:ZH,enum:eF,pattern:tF,date:nF,url:n0,hex:n0,email:n0,required:aF,any:oF};function y2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var b2=y2(),Vu=function(){function e(n){this.rules=null,this._messages=b2,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var r=a[l];o.rules[l]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=Pm(y2(),a)),this._messages},t.validate=function(a,o,l){var r=this;o===void 0&&(o={}),l===void 0&&(l=function(){});var s=a,u=o,c=l;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(v){var m=[],y={};function b(_){if(Array.isArray(_)){var S;m=(S=m).concat.apply(S,_)}else m.push(_)}for(var w=0;wn.labelPosition||(o==null?void 0:o.labelPosition)),y=x(()=>m.value==="top"?{}:{width:ln(n.labelWidth??(o==null?void 0:o.labelWidth))}),b=x(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const Y=ln(n.labelWidth??(o==null?void 0:o.labelWidth));return!n.label&&!a.label?{marginLeft:Y}:{}}),w=x(()=>[s.b(),s.m(r.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",U.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${m.value}`)]:m.value}]),_=x(()=>Dt(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=x(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),k=x(()=>n.prop?be(n.prop)?n.prop.join("."):n.prop:""),T=x(()=>!!(n.label||a.label)),M=x(()=>n.for??(c.value.length===1?c.value[0]:void 0)),A=x(()=>!M.value&&T.value),O=!!l,I=x(()=>{const Y=o==null?void 0:o.model;if(!(!Y||!n.prop))return zl(Y,n.prop).value}),L=x(()=>{const{required:Y}=n,X=[];n.rules&&X.push(...$n(n.rules));const H=o==null?void 0:o.rules;if(H&&n.prop){const Z=zl(H,n.prop).value;Z&&X.push(...$n(Z))}if(Y!==void 0){const Z=X.map((le,ce)=>[le,ce]).filter(([le])=>"required"in le);if(Z.length>0)for(const[le,ce]of Z)le.required!==Y&&(X[ce]={...le,required:Y});else X.push({required:Y})}return X}),z=x(()=>L.value.length>0),q=Y=>L.value.filter(X=>!X.trigger||!Y?!0:be(X.trigger)?X.trigger.includes(Y):X.trigger===Y).map(({trigger:X,...H})=>H),U=x(()=>L.value.some(Y=>Y.required)),F=x(()=>f.value==="error"&&n.showMessage&&((o==null?void 0:o.showMessage)??!0)),N=x(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),P=Y=>{d.value=Y},B=Y=>{var Z;const{errors:X,fields:H}=Y;(!X||!H)&&console.error(Y),P("error"),h.value=X?((Z=X==null?void 0:X[0])==null?void 0:Z.message)??`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},K=()=>{P("success"),o==null||o.emit("validate",n.prop,!0,"")},W=async Y=>{const X=k.value;return new Vu({[X]:Y}).validate({[X]:I.value},{firstFields:!0}).then(()=>(K(),!0)).catch(H=>(B(H),Promise.reject(H)))},j=async(Y,X)=>{if(v||!n.prop)return!1;const H=Fe(X);if(!z.value)return X==null||X(!1),!1;const Z=q(Y);return Z.length===0?(X==null||X(!0),!0):(P("validating"),W(Z).then(()=>(X==null||X(!0),!0)).catch(le=>{const{fields:ce}=le;return X==null||X(!1,ce),H?!1:Promise.reject(ce)}))},G=()=>{P(""),h.value="",v=!1},ee=async()=>{const Y=o==null?void 0:o.model;if(!Y||!n.prop)return;const X=zl(Y,n.prop);v=!0,X.value=Eo(p),await Le(),G(),v=!1},te=Y=>{c.value.includes(Y)||c.value.push(Y)},ue=Y=>{c.value=c.value.filter(X=>X!==Y)},ne=Y=>{p=Eo(Y)},de=()=>p;fe(()=>n.error,Y=>{h.value=Y||"",P(Y?"error":"")},{immediate:!0}),fe(()=>n.validateStatus,Y=>P(Y||""));const se=Rt({...Nn(n),$el:g,size:r,validateMessage:h,validateState:d,labelId:u,inputIds:c,isGroup:A,hasLabel:T,fieldValue:I,addInputId:te,removeInputId:ue,resetField:ee,clearValidate:G,validate:j,propString:k,setInitialValue:ne,getInitialValue:de});return wt(Do,se),fe(k,(Y,X)=>{!o||!X||(o.removeField(se,X),Y&&(ne(I.value),o.addField(se)))}),gt(()=>{n.prop&&(ne(I.value),o==null||o.addField(se))}),Lt(()=>{o==null||o.removeField(se)}),t({size:r,validateMessage:h,validateState:d,validate:j,clearValidate:G,resetField:ee,setInitialValue:ne}),(Y,X)=>{var H;return C(),$("div",{ref_key:"formItemRef",ref:g,class:R(w.value),role:A.value?"group":void 0,"aria-labelledby":A.value?i(u):void 0},[Q(i(EH),{"is-auto-width":y.value.width==="auto","update-all":((H=i(o))==null?void 0:H.labelWidth)==="auto"},{default:ae(()=>[e.label||Y.$slots.label?(C(),ie(dt(M.value?"label":"div"),{key:0,id:i(u),for:M.value,class:R(i(s).e("label")),style:qe(y.value)},{default:ae(()=>[oe(Y.$slots,"label",{label:N.value},()=>[St(Se(N.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(i(s).e("content")),style:qe(b.value)},[oe(Y.$slots,"default"),Q(i6,{name:`${i(s).namespace.value}-zoom-in-top`},{default:ae(()=>[F.value?oe(Y.$slots,"error",{key:0,error:h.value},()=>[E("div",{class:R(S.value)},Se(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,lF)}}}),Fy=rF;const sF=it(kH,{FormItem:Fy}),iF=tn(Fy),a0="focus-trap.focus-after-trapped",o0="focus-trap.focus-after-released",uF="focus-trap.focusout-prevented",Lm={cancelable:!0,bubbles:!1},cF={cancelable:!0,bubbles:!1},Vm="focusAfterTrapped",Bm="focusAfterReleased",Ky=Symbol("elFocusTrap"),wh=V(),hf=V(0),Ch=V(0);let sc=0;const Wy=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},zm=(e,t)=>{for(const n of e)if(!dF(n,t))return n},dF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},fF=e=>{const t=Wy(e);return[zm(t,e),zm(t.reverse(),e)]},pF=e=>e instanceof HTMLInputElement&&"select"in e,$l=(e,t)=>{if(e){const n=document.activeElement;ku(e,{preventScroll:!0}),Ch.value=window.performance.now(),e!==n&&pF(e)&&t&&e.select()}};function Dm(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const hF=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=Dm(e,a),e.unshift(a)},remove:a=>{var o,l;e=Dm(e,a),(l=(o=e[0])==null?void 0:o.resume)==null||l.call(o)}}},vF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if($l(a,t),document.activeElement!==n)return},Hm=hF(),mF=()=>hf.value>Ch.value,ic=()=>{wh.value="pointer",hf.value=window.performance.now()},Fm=()=>{wh.value="keyboard",hf.value=window.performance.now()},gF=()=>(gt(()=>{sc===0&&(document.addEventListener("mousedown",ic),document.addEventListener("touchstart",ic),document.addEventListener("keydown",Fm)),sc++}),Lt(()=>{sc--,sc<=0&&(document.removeEventListener("mousedown",ic),document.removeEventListener("touchstart",ic),document.removeEventListener("keydown",Fm))}),{focusReason:wh,lastUserFocusTimestamp:hf,lastAutomatedFocusTimestamp:Ch}),uc=e=>new CustomEvent(uF,{...cF,detail:e});var yF=D({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Vm,Bm,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let a,o;const{focusReason:l}=gF();DO(p=>{e.trapped&&!r.paused&&t("release-requested",p)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:w}=p,{loop:_}=e,S=Kt(p)===Ce.tab&&!v&&!m&&!y,k=document.activeElement;if(S&&k){const T=b,[M,A]=fF(T);if(M&&A){if(!w&&k===A){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),_&&$l(M,!0))}else if(w&&[M,T].includes(k)){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),_&&$l(A,!0))}}else if(k===T){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||p.preventDefault()}}};wt(Ky,{focusTrapRef:n,onKeydown:s}),fe(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),fe([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=p=>{t(Vm,p)},c=p=>t(Bm,p),d=p=>{const v=i(n);if(!v)return;const m=p.target,y=p.relatedTarget,b=m&&v.contains(m);e.trapped||y&&v.contains(y)||(a=y),b&&t("focusin",p),!r.paused&&e.trapped&&(b?o=m:$l(o,!0))},f=p=>{const v=i(n);if(!(r.paused||!v))if(e.trapped){const m=p.relatedTarget;!gn(m)&&!v.contains(m)&&setTimeout(()=>{if(!r.paused&&e.trapped){const y=uc({focusReason:l.value});t("focusout-prevented",y),y.defaultPrevented||$l(o,!0)}},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Le();const p=i(n);if(p){Hm.push(r);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(a0,Lm);p.addEventListener(a0,u),p.dispatchEvent(m),m.defaultPrevented||Le(()=>{let y=e.focusStartEl;Be(y)||($l(y),document.activeElement!==y&&(y="first")),y==="first"&&vF(Wy(p),!0),(document.activeElement===v||y==="container")&&$l(p)})}}}function g(){const p=i(n);if(p){p.removeEventListener(a0,u);const v=new CustomEvent(o0,{...Lm,detail:{focusReason:l.value}});p.addEventListener(o0,c),p.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!mF()||p.contains(document.activeElement))&&$l(a??document.body),p.removeEventListener(o0,c),Hm.remove(r),a=null,o=null}}return gt(()=>{e.trapped&&h(),fe(()=>e.trapped,p=>{p?h():g()})}),Lt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:s}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function bF(e,t,n,a,o,l){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var wF=En(yF,[["render",bF]]),Xs=wF;const CF=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,l={placement:n,strategy:a,...o,modifiers:[...SF(e),...t]};return xF(l,o==null?void 0:o.modifiers),l},_F=e=>{if(At)return xn(e)};function SF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function xF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kF=0,EF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=Pe(bh,void 0),l=V(),r=x(()=>e.arrowOffset),s=x(()=>({name:"eventListeners",enabled:!!e.visible})),u=x(()=>{const b=i(l),w=i(r)??kF;return{name:"arrow",enabled:!FT(b),options:{element:b,padding:w}}}),c=x(()=>({onFirstUpdate:()=>{p()},...CF(e,[i(u),i(s)])})),d=x(()=>_F(e.referenceEl)||i(a)),{attributes:f,state:h,styles:g,update:p,forceUpdate:v,instanceRef:m}=LO(d,n,c);fe(m,b=>t.value=b,{flush:"sync"}),gt(()=>{fe(()=>{var b,w;return(w=(b=i(d))==null?void 0:b.getBoundingClientRect)==null?void 0:w.call(b)},()=>{p()})});let y;return fe(()=>e.visible,b=>{y==null||y(),y=void 0,b&&(y=Zt(n,p).stop)}),Lt(()=>{t.value=void 0,y==null||y(),y=void 0}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:h,styles:g,role:o,forceUpdate:v,update:p}},TF=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Ou(),l=ve("popper"),r=x(()=>i(t).popper),s=V(He(e.zIndex)?e.zIndex:o()),u=x(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=x(()=>[{zIndex:i(s)},i(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),f=x(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:s,updateZIndex:()=>{s.value=He(e.zIndex)?e.zIndex:o()}}},MF=(e,t)=>{const n=V(!1),a=V(),o=()=>{t("focus")},l=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},s=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Lt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:o,onFocusInTrap:r,onFocusoutPrevented:s,onReleaseRequested:u}};var OF=D({name:"ElPopperContent",__name:"content",props:Dy,emits:mH,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=MF(o,a),{attributes:h,arrowRef:g,contentRef:p,styles:v,instanceRef:m,role:y,update:b}=EF(o),{ariaModal:w,arrowStyle:_,contentAttrs:S,contentClass:k,contentStyle:T,updateZIndex:M}=TF(o,{styles:v,attributes:h,role:y}),A=Pe(Do,void 0);wt(Iy,{arrowStyle:_,arrowRef:g}),A&&wt(Do,{...A,addInputId:It,removeInputId:It});let O;const I=(z=!0)=>{b(),z&&M()},L=()=>{I(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return gt(()=>{fe(()=>o.triggerTargetEl,(z,q)=>{O==null||O(),O=void 0;const U=i(z||p.value),F=i(q||p.value);ga(U)&&(O=fe([y,()=>o.ariaLabel,w,()=>o.id],N=>{["role","aria-label","aria-modal","id"].forEach((P,B)=>{gn(N[B])?U.removeAttribute(P):U.setAttribute(P,N[B])})},{immediate:!0})),F!==U&&ga(F)&&["role","aria-label","aria-modal","id"].forEach(N=>{F.removeAttribute(N)})},{immediate:!0}),fe(()=>o.visible,L,{immediate:!0})}),Lt(()=>{O==null||O(),O=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:I,contentStyle:T}),(z,q)=>(C(),$("div",ht({ref_key:"contentRef",ref:p},i(S),{style:i(T),class:i(k),tabindex:"-1",onMouseenter:q[0]||(q[0]=U=>z.$emit("mouseenter",U)),onMouseleave:q[1]||(q[1]=U=>z.$emit("mouseleave",U))}),[Q(i(Xs),{loop:e.loop,trapped:i(r),"trap-on-focus-in":!0,"focus-trap-el":i(p),"focus-start-el":i(l),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(s),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ae(()=>[oe(z.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),$F=OF,AF=D({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Py,setup(e,{expose:t}){const n=e,a={triggerRef:V(),popperInstanceRef:V(),contentRef:V(),referenceRef:V(),role:x(()=>n.role)};return t(a),wt(bh,a),(o,l)=>oe(o.$slots,"default")}}),RF=AF;const jy=it(RF),Ht=_e({...KO,...Dy,appendTo:{type:Eu.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...oa(["ariaLabel"])}),Po=_e({...Ly,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space]},focusOnTarget:Boolean}),{useModelToggleProps:NF,useModelToggleEmits:PF,useModelToggle:IF}=NM("visible"),LF=_e({...Py,...NF,...Ht,...Po,...zy,showArrow:{type:Boolean,default:!0}}),VF=[...PF,"before-show","before-hide","show","hide","open","close"],_h=Symbol("elTooltip"),w2=(e,t)=>be(e)?e.includes(t):e===t,Xr=(e,t,n)=>a=>{w2(i(e),t)&&n(a)};var BF=D({name:"ElTooltipTrigger",__name:"trigger",props:Po,setup(e,{expose:t}){const n=e,a=ve("tooltip"),{controlled:o,id:l,open:r,onOpen:s,onClose:u,onToggle:c}=Pe(_h,void 0),d=V(null),f=()=>{if(i(o)||n.disabled)return!0},h=Bt(n,"trigger"),g=On(f,Xr(h,"hover",_=>{s(_),n.focusOnTarget&&_.target&&Le(()=>{ku(_.target,{preventScroll:!0})})})),p=On(f,Xr(h,"hover",u)),v=On(f,Xr(h,"click",_=>{_.button===0&&c(_)})),m=On(f,Xr(h,"focus",s)),y=On(f,Xr(h,"focus",u)),b=On(f,Xr(h,"contextmenu",_=>{_.preventDefault(),c(_)})),w=On(f,_=>{const S=Kt(_);n.triggerKeys.includes(S)&&(_.preventDefault(),c(_))});return t({triggerRef:d}),(_,S)=>(C(),ie(i(pH),{id:i(l),"virtual-ref":e.virtualRef,open:i(r),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(y),onClick:i(v),onContextmenu:i(b),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(p),onKeydown:i(w)},{default:ae(()=>[oe(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),zF=BF,DF=D({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ht,setup(e,{expose:t}){const n=e,{selector:a}=W8(),o=ve("tooltip"),l=V(),r=y6(()=>{var P;return(P=l.value)==null?void 0:P.popperContentRef});let s;const{controlled:u,id:c,open:d,trigger:f,onClose:h,onOpen:g,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:y}=Pe(_h,void 0),b=x(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=x(()=>n.persistent);Lt(()=>{s==null||s()});const _=x(()=>i(w)?!0:i(d)),S=x(()=>n.disabled?!1:i(d)),k=x(()=>n.appendTo||a.value),T=x(()=>n.style??{}),M=V(!0),A=()=>{v(),N()&&ku(document.body,{preventScroll:!0}),M.value=!0},O=()=>{if(i(u))return!0},I=On(O,()=>{n.enterable&&w2(i(f),"hover")&&g()}),L=On(O,()=>{w2(i(f),"hover")&&h()}),z=()=>{var P,B;(B=(P=l.value)==null?void 0:P.updatePopper)==null||B.call(P),m==null||m()},q=()=>{y==null||y()},U=()=>{p()},F=()=>{n.virtualTriggering||h()},N=P=>{var W;const B=(W=l.value)==null?void 0:W.popperContentRef,K=(P==null?void 0:P.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(K)};return fe(()=>i(d),P=>{P?(M.value=!1,s=$p(r,()=>{i(u)||ta(i(f)).every(B=>B!=="hover"&&B!=="focus")&&h()},{detectIframe:!0})):s==null||s()},{flush:"post"}),t({contentRef:l,isFocusInsideContent:N}),(P,B)=>(C(),ie(i(Ys),{disabled:!e.teleported,to:k.value},{default:ae(()=>[_.value||!M.value?(C(),ie(Fn,{key:0,name:b.value,appear:!w.value,onAfterLeave:A,onBeforeEnter:z,onAfterEnter:U,onBeforeLeave:q,persisted:""},{default:ae(()=>[ft(Q(i($F),ht({id:i(c),ref_key:"contentRef",ref:l},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":M.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(I),onMouseleave:i(L),onBlur:F,onClose:i(h)}),{default:ae(()=>[oe(P.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[$t,S.value]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}}),HF=DF;const FF=["innerHTML"],KF={key:1};var WF=D({name:"ElTooltip",__name:"tooltip",props:LF,emits:VF,setup(e,{expose:t,emit:n}){const a=e,o=n;FO();const l=ve("tooltip"),r=Kn(),s=V(),u=V(),c=()=>{var S;const _=i(s);_&&((S=_.popperInstanceRef)==null||S.update())},d=V(!1),f=V(),{show:h,hide:g,hasUpdateHandler:p}=IF({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=WO({showAfter:Bt(a,"showAfter"),hideAfter:Bt(a,"hideAfter"),autoClose:Bt(a,"autoClose"),open:h,close:g}),y=x(()=>Dt(a.visible)&&!p.value),b=x(()=>[l.b(),a.popperClass]);wt(_h,{controlled:y,id:r,open:Tr(d),trigger:Bt(a,"trigger"),onOpen:v,onClose:m,onToggle:_=>{i(d)?m(_):v(_)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),fe(()=>a.disabled,_=>{_&&d.value&&(d.value=!1),!_&&Dt(a.visible)&&(d.value=a.visible)});const w=_=>{var S;return(S=u.value)==null?void 0:S.isFocusInsideContent(_)};return wp(()=>d.value&&g()),Lt(()=>{f.value=void 0}),t({popperRef:s,contentRef:u,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:m,hide:g}),(_,S)=>(C(),ie(i(jy),{ref_key:"popperRef",ref:s,role:e.role},{default:ae(()=>[Q(zF,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ae(()=>[_.$slots.default?oe(_.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(HF,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":b.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ae(()=>[oe(_.$slots,"content",{},()=>[e.rawContent?(C(),$("span",{key:0,innerHTML:e.content},null,8,FF)):(C(),$("span",KF,Se(e.content),1))]),e.showArrow?(C(),ie(i(dH),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),jF=WF;const Vn=it(jF),on=e=>e,Sh=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ft},prefixIcon:{type:Ft},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>on({})},countGraphemes:{type:J(Function)},autofocus:Boolean,rows:{type:Number,default:2},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),qF={[ot]:e=>Be(e),input:e=>Be(e),change:(e,t)=>Be(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Oo(ho);let Gn;const UF={height:"0",visibility:"hidden",overflow:qd()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},YF=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Km=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function GF(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:YF.map(l=>[l,t.getPropertyValue(l)]),paddingSize:a,borderSize:o,boxSizing:n}}function Wm(e,t=1,n){var d;if(!Gn){Gn=document.createElement("textarea");let f=document.body;!qd()&&e.parentNode&&(f=e.parentNode),f.appendChild(Gn)}const{paddingSize:a,borderSize:o,boxSizing:l,contextStyle:r}=GF(e);r.forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h)),Object.entries(UF).forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h,"important")),Gn.value=e.value||e.placeholder||"";let s=Gn.scrollHeight;const u={};l==="border-box"?s=s+o:l==="content-box"&&(s=s-a),Gn.value="";const c=Gn.scrollHeight-a;if(He(t)){let f=c*t;l==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(He(n)){let f=c*n;l==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(d=Gn.parentNode)==null||d.removeChild(Gn),Gn=void 0,u}const XF=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],JF=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],jm="ElInput";var ZF=D({name:jm,inheritAttrs:!1,__name:"input",props:Sh,emits:qF,setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=hn(),s=x(()=>[a.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:W.value&&j.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=x(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=nf(),d=x(()=>{var Me;return(Me=a.maxlength)==null?void 0:Me.toString()}),{form:f,formItem:h}=Bn(),{inputId:g}=Pa(a,{formItemContext:h}),p=_n(),v=rn(),m=ve("input"),y=ve("textarea"),b=qt(),w=qt(),_=V(!1),S=V(!1),k=V(),T=qt(a.inputStyle),M=V(""),A=x(()=>b.value||w.value),{wrapperRef:O,isFocused:I,handleFocus:L,handleBlur:z}=Cl(A,{disabled:v,afterBlur(){var Me;a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ge=>pt(Ge)))}}),q=x(()=>(f==null?void 0:f.statusIcon)??!1),U=x(()=>(h==null?void 0:h.validateState)||""),F=x(()=>U.value&&pf[U.value]),N=x(()=>S.value?$y:yy),P=x(()=>[l.style]),B=x(()=>[a.inputStyle,T.value,{resize:a.resize}]),K=x(()=>gn(a.modelValue)?"":String(a.modelValue)),W=x(()=>a.clearable&&!v.value&&!a.readonly&&!!K.value&&(I.value||_.value)),j=x(()=>a.showPassword&&!v.value&&!!K.value),G=x(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),ee=x(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(K.value):K.value.length),te=x(()=>!!G.value&&ee.value>Number(d.value)),ue=x(()=>!!r.suffix||!!a.suffixIcon||W.value||a.showPassword||G.value||!!U.value&&q.value),ne=x(()=>!!Object.keys(a.modelModifiers).length),[de,se]=I$(b);Zt(w,Me=>{if(H(),!G.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:Ge}=Me[0].contentRect;k.value={right:`calc(100% - ${Ge+22-10}px)`}});const Y=()=>{const{type:Me,autosize:Ge}=a;if(!(!At||Me!=="textarea"||!w.value))if(Ge){const ut=lt(Ge)?Ge.minRows:void 0,je=lt(Ge)?Ge.maxRows:void 0,tt=Wm(w.value,ut,je);T.value={overflowY:"hidden",...tt},Le(()=>{w.value.offsetHeight,T.value=tt})}else T.value={minHeight:Wm(w.value).minHeight}},H=(Me=>{let Ge=!1;return()=>{var ut;Ge||!a.autosize||((ut=w.value)==null?void 0:ut.offsetParent)!==null&&(setTimeout(Me),Ge=!0)}})(Y),Z=()=>{const Me=A.value,Ge=a.formatter?a.formatter(K.value):K.value;!Me||Me.value===Ge||a.type==="file"||(Me.value=Ge)},le=Me=>{const{trim:Ge,number:ut}=a.modelModifiers;return Ge&&(Me=Me.trim()),ut&&(Me=`${Km(Me)}`),a.formatter&&a.parser&&(Me=a.parser(Me)),Me},ce=async Me=>{if(me.value)return;const{lazy:Ge}=a.modelModifiers;let{value:ut}=Me.target,je=!1;if(Ge){o(wn,ut);return}if(ut=le(ut),a.countGraphemes&&d.value!=null){const tt=Number(d.value),yt=a.countGraphemes(ut),he=a.countGraphemes(M.value);if(yt>tt&&yt>he)if(he>tt)ut=M.value,je=!0;else{const Ve=M.value,pe=ut;let Te=0;for(;TeTe&&Pt>Te&&Ve[ct-1]===pe[Pt-1];)ct--,Pt--;const Gt=pe.slice(0,Te),Oe=Ve.slice(Te,ct),We=pe.slice(Te,Pt),Ze=pe.slice(Pt),cn=he-a.countGraphemes(Oe),zt=Math.max(0,tt-cn);let Xt="";if(zt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const Ue=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:Xe}of Ue.segment(We)){const mt=Xt+Xe;if(a.countGraphemes(mt)>zt)break;Xt=mt}}else for(const Ue of Array.from(We)){const Xe=Xt+Ue;if(a.countGraphemes(Xe)>zt)break;Xt=Xe}ut=Gt+Xt+Ze,je=!0}}if(String(ut)===K.value){if(a.formatter||je){const tt=Me.target,yt=tt.value,he=tt.selectionStart,Ve=tt.selectionEnd;if(Z(),je&&A.value&&he!=null&&Ve!=null){const pe=A.value.value,Te=yt.slice(Math.max(0,Ve));let ct=Math.min(he,pe.length);Te&&pe.endsWith(Te)&&(ct=pe.length-Te.length),A.value.setSelectionRange(ct,ct)}}return}M.value=ut,de(),o(ot,ut),o(wn,ut),await Le(),(a.formatter&&a.parser||!ne.value)&&Z(),se()},ge=async Me=>{let{value:Ge}=Me.target;Ge=le(Ge),a.modelModifiers.lazy&&o(ot,Ge),o(bt,Ge,Me),await Le(),Z()},{isComposing:me,handleCompositionStart:Ae,handleCompositionUpdate:Ne,handleCompositionEnd:Re}=Nu({emit:o,afterComposition:ce}),ye=()=>{S.value=!S.value},Ee=()=>{var Me;return(Me=A.value)==null?void 0:Me.focus()},we=()=>{var Me;return(Me=A.value)==null?void 0:Me.blur()},Ie=Me=>{_.value=!1,o("mouseleave",Me)},ze=Me=>{_.value=!0,o("mouseenter",Me)},et=Me=>{o("keydown",Me)},nt=()=>{var Me;(Me=A.value)==null||Me.select()},at=Me=>{o(ot,""),o(bt,""),o("clear",Me),o(wn,"")};return fe(()=>a.modelValue,()=>{var Me;Le(()=>Y()),a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"change").catch(Ge=>pt(Ge)))}),fe(()=>K.value,Me=>{M.value=Me},{immediate:!0}),fe(K,Me=>{if(!A.value)return;const{trim:Ge,number:ut}=a.modelModifiers,je=A.value.value,tt=(ut||a.type==="number")&&!/^0\d/.test(je)?`${Km(je)}`:je;tt!==Me&&(document.activeElement===A.value&&A.value.type!=="range"&&Ge&&tt.trim()===Me||Z())}),fe(()=>a.type,async()=>{await Le(),Z(),Y()}),gt(()=>{!a.formatter&&a.parser&&pt(jm,"If you set the parser, you also need to set the formatter."),Z(),Le(Y)}),t({input:b,textarea:w,ref:A,textareaStyle:B,autosize:Bt(a,"autosize"),isComposing:me,passwordVisible:S,focus:Ee,blur:we,select:nt,clear:at,resizeTextarea:Y}),(Me,Ge)=>(C(),$("div",{class:R([s.value,{[i(m).bm("group","append")]:Me.$slots.append,[i(m).bm("group","prepend")]:Me.$slots.prepend}]),style:qe(P.value),onMouseenter:ze,onMouseleave:Ie},[re(" input "),e.type!=="textarea"?(C(),$(Ke,{key:0},[re(" prepend slot "),Me.$slots.prepend?(C(),$("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(Me.$slots,"prepend")],2)):re("v-if",!0),E("div",{ref_key:"wrapperRef",ref:O,class:R(u.value)},[re(" prefix slot "),Me.$slots.prefix||e.prefixIcon?(C(),$("span",{key:0,class:R(i(m).e("prefix"))},[E("span",{class:R(i(m).e("prefix-inner"))},[oe(Me.$slots,"prefix"),e.prefixIcon?(C(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),E("input",ht({id:i(g),ref_key:"input",ref:b,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?S.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[0]||(Ge[0]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[1]||(Ge[1]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[2]||(Ge[2]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onChange:ge,onKeydown:et}),null,16,XF),re(" suffix slot "),ue.value?(C(),$("span",{key:1,class:R(i(m).e("suffix"))},[E("span",{class:R(i(m).e("suffix-inner"))},[!W.value||!j.value||!G.value?(C(),$(Ke,{key:0},[oe(Me.$slots,"suffix"),e.suffixIcon?(C(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),W.value?(C(),ie(i(De),{key:1,class:R([i(m).e("icon"),i(m).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),j.value?(C(),ie(i(De),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:ye,onMousedown:Je(i(It),["prevent"]),onMouseup:Je(i(It),["prevent"])},{default:ae(()=>[oe(Me.$slots,"password-icon",{visible:S.value},()=>[(C(),ie(dt(N.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),G.value?(C(),$("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[E("span",{class:R(i(m).e("count-inner"))},Se(ee.value)+" / "+Se(d.value),3)],2)):re("v-if",!0),U.value&&F.value&&q.value?(C(),ie(i(De),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",U.value==="validating")])},{default:ae(()=>[(C(),ie(dt(F.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),Me.$slots.append?(C(),$("div",{key:1,class:R(i(m).be("group","append"))},[oe(Me.$slots,"append")],2)):re("v-if",!0)],64)):(C(),$(Ke,{key:1},[re(" textarea "),E("textarea",ht({id:i(g),ref_key:"textarea",ref:w,class:[i(y).e("inner"),i(m).is("focus",i(I)),i(y).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:B.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[3]||(Ge[3]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[4]||(Ge[4]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[5]||(Ge[5]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onFocus:Ge[6]||(Ge[6]=(...ut)=>i(L)&&i(L)(...ut)),onBlur:Ge[7]||(Ge[7]=(...ut)=>i(z)&&i(z)(...ut)),onChange:ge,onKeydown:et}),null,16,JF),W.value?(C(),ie(i(De),{key:0,class:R([i(y).e("icon"),i(y).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),G.value?(C(),$("span",{key:1,style:qe(k.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},Se(ee.value)+" / "+Se(d.value),7)):re("v-if",!0)],64))],38))}}),QF=ZF;const Dn=it(QF),eK=_e({...Sh,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:It},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Ht.teleported,appendTo:Ht.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),tK={[ot]:e=>Be(e)||He(e),[wn]:e=>Be(e)||He(e),[bt]:e=>Be(e)||He(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>lt(e)},nK=_e({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...oa(["ariaLabel","ariaOrientation"])}),qy={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(He)},Jr=4,Uy={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},aK=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),oK=_e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),xh=Symbol("scrollbarContextKey");function Dl(e,t,n=.03){return e-t>n}const lK=_e({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),rK="Thumb";var sK=D({__name:"thumb",props:oK,setup(e){const t=e,n=Pe(xh),a=ve("scrollbar");n||en(rK,"can not inject scrollbar context");const o=V(),l=V(),r=V({}),s=V(!1);let u=!1,c=!1,d=0,f=0,h=At?document.onselectstart:null;const g=x(()=>Uy[t.vertical?"vertical":"horizontal"]),p=x(()=>aK({size:t.size,move:t.move,bar:g.value})),v=x(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/l.value[g.value.offset]),m=M=>{var O;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(M);const A=M.currentTarget;A&&(r.value[g.value.axis]=A[g.value.offset]-(M[g.value.client]-A.getBoundingClientRect()[g.value.direction]))},y=M=>{if(!l.value||!o.value||!n.wrapElement)return;const A=(Math.abs(M.target.getBoundingClientRect()[g.value.direction]-M[g.value.client])-l.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=A*n.wrapElement[g.value.scrollSize]/100},b=M=>{M.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",_),h=document.onselectstart,document.onselectstart=()=>!1},w=M=>{if(!o.value||!l.value||u===!1)return;const A=r.value[g.value.axis];if(!A)return;const O=((o.value.getBoundingClientRect()[g.value.direction]-M[g.value.client])*-1-(l.value[g.value.offset]-A))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=O*f/100:n.wrapElement[g.value.scroll]=O*d/100},_=()=>{u=!1,r.value[g.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",_),T(),c&&(s.value=!1)},S=()=>{c=!1,s.value=!!t.size},k=()=>{c=!0,s.value=u};Lt(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(Bt(n,"scrollbarElement"),"mousemove",S),Vt(Bt(n,"scrollbarElement"),"mouseleave",k),(M,A)=>(C(),ie(Fn,{name:i(a).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:y,onClick:A[0]||(A[0]=Je(()=>{},["stop"]))},[E("div",{ref_key:"thumb",ref:l,class:R(i(a).e("thumb")),style:qe(p.value),onMousedown:m},null,38)],34),[[$t,e.always||s.value]])]),_:1},8,["name"]))}}),qm=sK,iK=D({__name:"bar",props:lK,setup(e,{expose:t}){const n=e,a=Pe(xh),o=V(0),l=V(0),r=V(""),s=V(""),u=V(1),c=V(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Jr,p=h.offsetWidth-Jr;l.value=h.scrollTop*100/g*u.value,o.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const g=h.offsetHeight-Jr,p=h.offsetWidth-Jr,v=g**2/h.scrollHeight,m=p**2/h.scrollWidth,y=Math.max(v,n.minSize),b=Math.max(m,n.minSize);u.value=v/(g-v)/(y/(g-y)),c.value=m/(p-m)/(b/(p-b)),s.value=y+Jr(C(),$(Ke,null,[Q(qm,{move:o.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),Q(qm,{move:l.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),uK=iK;const cK=["tabindex"],l0="ElScrollbar";var dK=D({name:l0,__name:"scrollbar",props:nK,emits:qy,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("scrollbar");let r,s,u,c=0,d=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},g=V(),p=V(),v=V(),m=V(),y=x(()=>{const L={},z=ln(a.height),q=ln(a.maxHeight);return z&&(L.height=z),q&&(L.maxHeight=q),[a.wrapStyle,L]}),b=x(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),w=x(()=>[l.e("view"),a.viewClass]),_=L=>h[L]??!1,S={top:"bottom",bottom:"top",left:"right",right:"left"},k=L=>{const z=S[f];if(!z)return;const q=L[f],U=L[z];q&&!h[f]&&(h[f]=!0),!U&&h[z]&&(h[z]=!1)},T=()=>{var L;if(p.value){(L=m.value)==null||L.handleScroll(p.value);const z=c,q=d;c=p.value.scrollTop,d=p.value.scrollLeft;const U={bottom:!Dl(p.value.scrollHeight-a.distance,p.value.clientHeight+c),top:c<=a.distance&&z!==0,right:!Dl(p.value.scrollWidth-a.distance,p.value.clientWidth+d)&&q!==d,left:d<=a.distance&&q!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),z!==c&&(f=c>z?"bottom":"top"),q!==d&&(f=d>q?"right":"left"),a.distance>0){if(_(f))return;k(U)}U[f]&&o("end-reached",f)}};function M(L,z){lt(L)?p.value.scrollTo(L):He(L)&&He(z)&&p.value.scrollTo(L,z)}const A=L=>{if(!He(L)){pt(l0,"value must be a number");return}p.value.scrollTop=L},O=L=>{if(!He(L)){pt(l0,"value must be a number");return}p.value.scrollLeft=L},I=()=>{var L,z;(L=m.value)==null||L.update(),h[f]=!1,p.value&&((z=m.value)==null||z.handleScroll(p.value))};return fe(()=>a.noresize,L=>{L?(r==null||r(),s==null||s(),u==null||u()):({stop:r}=Zt(v,I),{stop:s}=Zt(p,I),u=Vt("resize",I))},{immediate:!0}),fe(()=>[a.maxHeight,a.height],()=>{a.native||Le(()=>{I()})}),wt(xh,Rt({scrollbarElement:g,wrapElement:p})),vu(()=>{p.value&&(p.value.scrollTop=c,p.value.scrollLeft=d)}),gt(()=>{a.native||Le(()=>{I()})}),so(()=>I()),t({wrapRef:p,update:I,scrollTo:M,setScrollTop:A,setScrollLeft:O,handleScroll:T}),(L,z)=>(C(),$("div",{ref_key:"scrollbarRef",ref:g,class:R(i(l).b())},[E("div",{ref_key:"wrapRef",ref:p,class:R(b.value),style:qe(y.value),tabindex:e.tabindex,onScroll:T},[(C(),ie(dt(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(w.value),style:qe(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ae(()=>[oe(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,cK),e.native?re("v-if",!0):(C(),ie(uK,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),fK=dK;const ao=it(fK),pK=["aria-expanded","aria-owns"],hK={key:0},vK=["id","aria-selected","onClick"],Um="ElAutocomplete";var mK=D({name:Um,inheritAttrs:!1,__name:"autocomplete",props:eK,emits:tK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const Y=Dn.props??[];return ul(a,be(Y)?Y:Object.keys(Y))}),r=gl(),s=rn(),u=ve("autocomplete"),c=V(),d=V(),f=V(),h=V();let g=!1,p=!1;const v=V([]),m=V(-1),y=V(""),b=V(!1),w=V(!1),_=V(!1),S=Kn(),k=x(()=>r.style),T=x(()=>(v.value.length>0||_.value)&&b.value),M=x(()=>!a.hideLoading&&_.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=()=>{T.value&&(y.value=`${c.value.$el.offsetWidth}px`)},I=()=>{m.value=-1},L=async Y=>{if(w.value)return;const X=H=>{_.value=!1,!w.value&&(be(H)?(v.value=H,m.value=a.highlightFirstItem?0:-1):en(Um,"autocomplete suggestions must be an array"))};if(_.value=!0,be(a.fetchSuggestions))X(a.fetchSuggestions);else{const H=await a.fetchSuggestions(Y,X);be(H)&&X(H)}},z=gu(L,x(()=>a.debounce)),q=Y=>{const X=!!Y;if(o(wn,Y),o(ot,Y),w.value=!1,b.value||(b.value=X),!a.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}z(Y)},U=Y=>{var X;s.value||(((X=Y.target)==null?void 0:X.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},F=Y=>{o(bt,Y)},N=Y=>{if(p)p=!1;else{b.value=!0,o("focus",Y);const X=a.modelValue??"";a.triggerOnFocus&&!g&&z(String(X))}},P=Y=>{setTimeout(()=>{var X;if((X=f.value)!=null&&X.isFocusInsideContent()){p=!0;return}b.value&&j(),o("blur",Y)})},B=()=>{b.value=!1,o(ot,""),o("clear")},K=async()=>{var Y;(Y=c.value)!=null&&Y.isComposing||(T.value&&m.value>=0&&m.value{T.value&&(Y.preventDefault(),Y.stopPropagation(),j())},j=()=>{b.value=!1},G=()=>{var Y;(Y=c.value)==null||Y.focus()},ee=()=>{var Y;(Y=c.value)==null||Y.blur()},te=async Y=>{o(wn,Y[a.valueKey]),o(ot,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ue=Y=>{var me,Ae;if(!T.value||_.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[X,H]=ne(),Z=H[Y],le=X.scrollTop,{offsetTop:ce,scrollHeight:ge}=Z;ce+ge>le+X.clientHeight&&(X.scrollTop=ce+ge-X.clientHeight),ce{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=$p(h,Y=>{var H;if((H=f.value)!=null&&H.isFocusInsideContent())return;const X=p;p=!1,T.value&&(X?P(new FocusEvent("blur",Y)):j())}),se=Y=>{switch(Kt(Y)){case Ce.up:Y.preventDefault(),ue(m.value-1);break;case Ce.down:Y.preventDefault(),ue(m.value+1);break;case Ce.enter:case Ce.numpadEnter:Y.preventDefault(),K();break;case Ce.tab:j();break;case Ce.esc:W(Y);break;case Ce.home:Y.preventDefault(),ue(0);break;case Ce.end:Y.preventDefault(),ue(v.value.length-1);break;case Ce.pageUp:Y.preventDefault(),ue(Math.max(0,m.value-10));break;case Ce.pageDown:Y.preventDefault(),ue(Math.min(v.value.length-1,m.value+10));break}};return Lt(()=>{de==null||de()}),gt(()=>{var X;const Y=(X=c.value)==null?void 0:X.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:S.value},{key:"aria-activedescendant",value:`${S.value}-item-${m.value}`}].forEach(({key:H,value:Z})=>Y.setAttribute(H,Z)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:b,loading:_,inputRef:c,popperRef:f,suggestions:v,handleSelect:te,handleKeyEnter:K,focus:G,blur:ee,close:j,highlight:ue,getData:L}),(Y,X)=>(C(),ie(i(Vn),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:O,onHide:I},{content:ae(()=>[E("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",M.value)]),style:qe({[e.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Y.$slots.header?(C(),$("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:X[0]||(X[0]=Je(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),Q(i(ao),{id:i(S),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ae(()=>[M.value?(C(),$("li",hK,[oe(Y.$slots,"loading",{},()=>[Q(i(De),{class:R(i(u).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])])])):(C(!0),$(Ke,{key:1},_t(v.value,(H,Z)=>(C(),$("li",{id:`${i(S)}-item-${Z}`,key:Z,class:R({highlighted:m.value===Z}),role:"option","aria-selected":m.value===Z,onClick:le=>te(H)},[oe(Y.$slots,"default",{item:H},()=>[St(Se(H[e.valueKey]),1)])],10,vK))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(C(),$("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:X[1]||(X[1]=Je(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ae(()=>[E("div",{ref_key:"listboxRef",ref:h,class:R([i(u).b(),Y.$attrs.class]),style:qe(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":i(S)},[Q(i(Dn),ht({ref_key:"inputRef",ref:c},ht(l.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(s),onInput:q,onChange:F,onFocus:N,onBlur:P,onClear:B,onKeydown:se,onMousedown:U}),fa({_:2},[Y.$slots.prepend?{name:"prepend",fn:ae(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ae(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,pK)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),gK=mK;const yK=it(gK),bK=_e({size:{type:[Number,String],values:io,validator:e=>He(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ft},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),wK={error:e=>e instanceof Event},Yy=Symbol("avatarGroupContextKey"),CK={size:{type:J([Number,String]),values:io,validator:e=>He(e)},shape:{type:J(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:J(String),default:"light"},placement:{type:J(String),values:Ho,default:"top"},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,collapseClass:String,collapseStyle:{type:J([String,Array,Object])}},_K=["src","alt","srcset"];var SK=D({name:"ElAvatar",__name:"avatar",props:bK,emits:wK,setup(e,{emit:t}){const n=e,a=t,o=Pe(Yy,void 0),l=ve("avatar"),r=V(!1),s=x(()=>n.size??(o==null?void 0:o.size)),u=x(()=>n.shape??(o==null?void 0:o.shape)??"circle"),c=x(()=>{const{icon:g}=n,p=[l.b()];return Be(s.value)&&p.push(l.m(s.value)),g&&p.push(l.m("icon")),u.value&&p.push(l.m(u.value)),p}),d=x(()=>He(s.value)?l.cssVarBlock({size:ln(s.value)}):void 0),f=x(()=>({objectFit:n.fit}));fe(()=>[n.src,n.srcSet],()=>r.value=!1);function h(g){r.value=!0,a("error",g)}return(g,p)=>(C(),$("span",{class:R(c.value),style:qe(d.value)},[(e.src||e.srcSet)&&!r.value?(C(),$("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:qe(f.value),onError:h},null,44,_K)):e.icon?(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),Gy=SK,Xy=D({name:"ElAvatarGroup",props:CK,setup(e,{slots:t}){const n=ve("avatar-group");return wt(Yy,Rt({size:Bt(e,"size"),shape:Bt(e,"shape")})),()=>{var l;const a=Ta(((l=t.default)==null?void 0:l.call(t))??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(Q(Vn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Q(Gy,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[St("+ "),r.length]}),content:()=>Q("div",{class:n.e("collapse-avatars")},[r.map((s,u)=>Wt(s)?Io(s,{key:s.key??u}):s)])}))}return Q("div",{class:n.b()},[o])}}});const xK=it(Gy,{AvatarGroup:Xy}),kK=tn(Xy),EK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},TK={click:e=>e instanceof MouseEvent},MK=(e,t,n)=>{const a=qt(),o=qt(),l=V(!1),r=()=>{a.value&&(l.value=a.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=a.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Vt(o,"scroll",_6(r,300,!0)),gt(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||en(n,`target does not exist: ${e.target}`),o.value=a.value),r()}),{visible:l,handleClick:s}},Ym="ElBacktop";var OK=D({name:Ym,__name:"backtop",props:EK,emits:TK,setup(e,{emit:t}){const n=e,a=t,o=ve("backtop"),{handleClick:l,visible:r}=MK(n,a,Ym),s=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(C(),ie(Fn,{name:`${i(o).namespace.value}-fade-in`},{default:ae(()=>[i(r)?(C(),$("div",{key:0,style:qe(s.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Je((...d)=>i(l)&&i(l)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[Q(i(De),{class:R(i(o).e("icon"))},{default:ae(()=>[Q(i(py))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),$K=OK;const AK=it($K),RK=_e({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:()=>[0,0]},badgeClass:{type:String}});var NK=D({name:"ElBadge",__name:"badge",props:RK,setup(e,{expose:t}){const n=e,a=ve("badge"),o=x(()=>n.isDot?"":He(n.value)&&He(n.max)?n.max[{backgroundColor:n.color,marginRight:ln(-n.offset[0]),marginTop:ln(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(r,s)=>(C(),$("div",{class:R(i(a).b())},[oe(r.$slots,"default"),Q(Fn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||r.$slots.content)?(C(),$("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!r.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:qe(l.value)},[oe(r.$slots,"content",{value:o.value},()=>[St(Se(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),PK=NK;const Jy=it(PK),IK=_e({separator:{type:String,default:"/"},separatorIcon:{type:Ft}}),Zy=Symbol("breadcrumbKey"),LK=_e({to:{type:J([String,Object]),default:""},replace:Boolean}),VK=["aria-label"];var BK=D({name:"ElBreadcrumb",__name:"breadcrumb",props:IK,setup(e){const{t}=kt(),n=e,a=ve("breadcrumb"),o=V();return wt(Zy,n),gt(()=>{const l=o.value.querySelectorAll(`.${a.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,r)=>(C(),$("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(l.$slots,"default")],10,VK))}}),zK=BK,DK=D({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:LK,setup(e){const t=e,n=vt(),a=Pe(Zy,void 0),o=ve("breadcrumb"),l=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(s,u)=>{var c,d;return C(),$("span",{class:R(i(o).e("item"))},[E("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:r},[oe(s.$slots,"default")],2),(c=i(a))!=null&&c.separatorIcon?(C(),ie(i(De),{key:0,class:R(i(o).e("separator"))},{default:ae(()=>[(C(),ie(dt(i(a).separatorIcon)))]),_:1},8,["class"])):(C(),$("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},Se((d=i(a))==null?void 0:d.separator),3))],2)}}}),Qy=DK;const HK=it(zK,{BreadcrumbItem:Qy}),FK=tn(Qy),C2=["default","primary","success","warning","info","danger","text",""],KK=["button","submit","reset"],_2=_e({size:kn,disabled:{type:Boolean,default:void 0},type:{type:String,values:C2,default:""},icon:{type:Ft},nativeType:{type:String,values:KK,default:"button"},loading:Boolean,loadingIcon:{type:Ft,default:()=>no},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),WK={click:e=>e instanceof MouseEvent},eb=Symbol(),ud=V();function _l(e,t=void 0){const n=vt()?Pe(eb,ud):ud;return e?x(()=>{var a;return((a=n.value)==null?void 0:a[e])??t}):n}function vf(e,t){const n=_l(),a=ve(e,x(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Ai})),o=kt(x(()=>{var s;return(s=n.value)==null?void 0:s.locale})),l=Ou(x(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||q8})),r=x(()=>{var s;return i(t)||((s=n.value)==null?void 0:s.size)||""});return kh(x(()=>i(n)||{})),{ns:a,locale:o,zIndex:l,size:r}}const kh=(e,t,n=!1)=>{const a=!!vt(),o=a?_l():void 0,l=(t==null?void 0:t.provide)??(a?wt:void 0);if(!l){pt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const r=x(()=>{const s=i(e);return o!=null&&o.value?jK(o.value,s):s});return l(eb,r),l(M8,x(()=>r.value.locale)),l(O8,x(()=>r.value.namespace)),l(U8,x(()=>r.value.zIndex)),l(ry,{size:x(()=>r.value.size||"")}),l(iy,x(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(n||!ud.value)&&(ud.value=r.value),r},jK=(e,t)=>{const n=[...new Set([...Gi(e),...Gi(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},qK=_e({a11y:{type:Boolean,default:!0},locale:{type:J(Object)},size:kn,button:{type:J(Object)},card:{type:J(Object)},dialog:{type:J(Object)},link:{type:J(Object)},experimentalFeatures:{type:J(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:J(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:J(Object)},...Wr}),Zn={placement:"top"},UK=D({name:"ElConfigProvider",props:qK,setup(e,{slots:t}){const n=kh(e);return fe(()=>e.message,a=>{var o;Object.assign(Zn,((o=n==null?void 0:n.value)==null?void 0:o.message)??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n==null?void 0:n.value})}}),YK=it(UK),tb=Symbol("buttonGroupContextKey"),GK=(e,t)=>{$o({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Pe(tb,void 0),a=_l("button"),{form:o}=Bn(),l=_n(x(()=>n==null?void 0:n.size)),r=rn(),s=V(),u=hn(),c=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b;return e.autoInsertSpace??((b=a.value)==null?void 0:b.autoInsertSpace)??!1}),f=x(()=>{var b;return e.plain??((b=a.value)==null?void 0:b.plain)??!1}),h=x(()=>{var b;return e.round??((b=a.value)==null?void 0:b.round)??!1}),g=x(()=>{var b;return e.text??((b=a.value)==null?void 0:b.text)??!1}),p=x(()=>{var b;return e.dashed??((b=a.value)==null?void 0:b.dashed)??!1}),v=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=x(()=>{var w;const b=(w=u.default)==null?void 0:w.call(u);if(d.value&&(b==null?void 0:b.length)===1){const _=b[0];if((_==null?void 0:_.type)===Ks){const S=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:l,_type:c,_ref:s,_props:v,_plain:f,_round:h,_text:g,_dashed:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",b)}}};function Yn(e,t){XK(e)&&(e="100%");const n=JK(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function cc(e){return Math.min(1,Math.max(0,e))}function XK(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function JK(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function vr(e){return e.length===1?"0"+e:String(e)}function ZK(e,t,n){return{r:Yn(e,255)*255,g:Yn(t,255)*255,b:Yn(n,255)*255}}function Gm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0,r=0;const s=(a+o)/2;if(a===o)r=0,l=0;else{const u=a-o;switch(r=s>.5?u/(2-a-o):u/(a+o),a){case e:l=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QK(e,t,n){let a,o,l;if(e=Yn(e,360),t=Yn(t,100),n=Yn(n,100),t===0)o=n,l=n,a=n;else{const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=r0(s,r,e+1/3),o=r0(s,r,e),l=r0(s,r,e-1/3)}return{r:a*255,g:o*255,b:l*255}}function Xm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0;const r=a,s=a-o,u=a===0?0:s/a;if(a===o)l=0;else{switch(a){case e:l=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}const S2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lW(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,l=null,r=!1,s=!1;return typeof e=="string"&&(e=iW(e)),typeof e=="object"&&(Sa(e.r)&&Sa(e.g)&&Sa(e.b)?(t=ZK(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sa(e.h)&&Sa(e.s)&&Sa(e.v)?(a=dc(e.s),o=dc(e.v),t=eW(e.h,a,o),r=!0,s="hsv"):Sa(e.h)&&Sa(e.s)&&Sa(e.l)?(a=dc(e.s),l=dc(e.l),t=QK(e.h,a,l),r=!0,s="hsl"):Sa(e.c)&&Sa(e.m)&&Sa(e.y)&&Sa(e.k)&&(t=nW(e.c,e.m,e.y,e.k),r=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nb(n),{ok:r,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const rW="[-\\+]?\\d+%?",sW="[-\\+]?\\d*\\.\\d+%?",Vl="(?:"+sW+")|(?:"+rW+")",s0="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",fc="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",Va={CSS_UNIT:new RegExp(Vl),rgb:new RegExp("rgb"+s0),rgba:new RegExp("rgba"+fc),hsl:new RegExp("hsl"+s0),hsla:new RegExp("hsla"+fc),hsv:new RegExp("hsv"+s0),hsva:new RegExp("hsva"+fc),cmyk:new RegExp("cmyk"+fc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function iW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(S2[e])e=S2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Va.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Va.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Va.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Va.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Va.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Va.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Va.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Va.hex8.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),a:Qm(n[4]),format:t?"name":"hex8"}:(n=Va.hex6.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),format:t?"name":"hex"}:(n=Va.hex4.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),a:Qm(n[4]+n[4]),format:t?"name":"hex8"}:(n=Va.hex3.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Sa(e){return typeof e=="number"?!Number.isNaN(e):Va.CSS_UNIT.test(e)}class fn{constructor(t="",n={}){if(t instanceof fn)return t;typeof t=="number"&&(t=oW(t)),this.originalInput=t;const a=lW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const l=t.r/255,r=t.g/255,s=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=nb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Xm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Xm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=Gm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=Gm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return Jm(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return tW(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Yn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Yn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...Zm(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=Zm(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+Jm(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(S2))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new fn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=cc(n.l),new fn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new fn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=cc(n.l),new fn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=cc(n.s),new fn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=cc(n.s),new fn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new fn(n)}mix(t,n=50){const a=this.toRgb(),o=new fn(t).toRgb(),l=n/100,r={r:(o.r-a.r)*l+a.r,g:(o.g-a.g)*l+a.g,b:(o.b-a.b)*l+a.b,a:(o.a-a.a)*l+a.a};return new fn(r)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,l=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,l.push(new fn(a));return l}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new fn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:l}=n;const r=[],s=1/t;for(;t--;)r.push(new fn({h:a,s:o,v:l})),l=(l+s)%1;return r}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new fn({h:(n+72)%360,s:t.s,l:t.l}),new fn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new fn(t).toRgb(),o=n.a+a.a*(1-n.a);return new fn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],l=360/t;for(let r=1;r{let a={},o=e.color;if(o){const l=o.match(/var\((.*?)\)/);l&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const r=new fn(o),s=e.dark?r.tint(20).toString():bo(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?bo(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?bo(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?bo(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?bo(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?bo(r,80):r.tint(80).toString());else if(e.link||e.text){const u=e.dark?bo(r,30):r.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":s}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=s),t.value){const c=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?bo(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var cW=D({name:"ElButton",__name:"button",props:_2,emits:WK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=uW(a),r=ve("button"),{_ref:s,_size:u,_type:c,_disabled:d,_props:f,_plain:h,_round:g,_text:p,_dashed:v,shouldAddSpace:m,handleClick:y}=GK(a,o),b=x(()=>[r.b(),r.m(c.value),r.m(u.value),r.is("disabled",d.value),r.is("loading",a.loading),r.is("plain",h.value),r.is("round",g.value),r.is("circle",a.circle),r.is("text",p.value),r.is("dashed",v.value),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:u,type:c,disabled:d,shouldAddSpace:m}),(w,_)=>(C(),ie(dt(e.tag),ht({ref_key:"_ref",ref:s},i(f),{class:b.value,style:i(l),onClick:i(y)}),{default:ae(()=>[e.loading?(C(),$(Ke,{key:0},[w.$slots.loading?oe(w.$slots,"loading",{key:0}):(C(),ie(i(De),{key:1,class:R(i(r).is("loading"))},{default:ae(()=>[(C(),ie(dt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||w.$slots.icon?(C(),ie(i(De),{key:1},{default:ae(()=>[e.icon?(C(),ie(dt(e.icon),{key:0})):oe(w.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),w.$slots.default?(C(),$("span",{key:2,class:R({[i(r).em("text","expand")]:i(m)})},[oe(w.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),dW=cW;const fW={size:_2.size,type:_2.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}};var pW=D({name:"ElButtonGroup",__name:"button-group",props:fW,setup(e){const t=e;wt(tb,Rt({size:Bt(t,"size"),type:Bt(t,"type")}));const n=ve("button");return(a,o)=>(C(),$("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),ab=pW;const An=it(dW,{ButtonGroup:ab}),ob=tn(ab),hW=e=>be(e)&&e.length===2&&e.every(t=>Fl(t)),vW=_e({modelValue:{type:Date},range:{type:J(Array),validator:hW},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:J(Function)}}),mW={[ot]:e=>Fl(e),[wn]:e=>Fl(e)},eg=["hours","minutes","seconds"],oo="EP_PICKER_BASE",Eh="ElPopperOptions",lb=Symbol("commonPickerContextKey"),Ir="HH:mm:ss",Qo="YYYY-MM-DD",gW={date:Qo,dates:Qo,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Qo} ${Ir}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Qo,datetimerange:`${Qo} ${Ir}`};var Sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vde(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var rb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n=1e3,a=6e4,o=36e5,l="millisecond",r="second",s="minute",u="hour",c="day",d="week",f="month",h="quarter",g="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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(q){var U=["th","st","nd","rd"],F=q%100;return"["+q+(U[(F-20)%10]||U[F]||U[0])+"]"}},w=function(q,U,F){var N=String(q);return!N||N.length>=U?q:""+Array(U+1-N.length).join(F)+q},_={s:w,z:function(q){var U=-q.utcOffset(),F=Math.abs(U),N=Math.floor(F/60),P=F%60;return(U<=0?"+":"-")+w(N,2,"0")+":"+w(P,2,"0")},m:function q(U,F){if(U.date()1)return q(K[0])}else{var W=U.name;k[W]=U,P=W}return!N&&P&&(S=P),P||!N&&S},O=function(q,U){if(M(q))return q.clone();var F=typeof U=="object"?U:{};return F.date=q,F.args=arguments,new L(F)},I=_;I.l=A,I.i=M,I.w=function(q,U){return O(q,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var L=function(){function q(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var U=q.prototype;return U.parse=function(F){this.$d=function(N){var P=N.date,B=N.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var K=P.match(m);if(K){var W=K[2]-1||0,j=(K[7]||"0").substring(0,3);return B?new Date(Date.UTC(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,j)):new Date(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,j)}}return new Date(P)}(F),this.init()},U.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},U.$utils=function(){return I},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(F,N){var P=O(F);return this.startOf(N)<=P&&P<=this.endOf(N)},U.isAfter=function(F,N){return O(F)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),sb=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ib=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),tg=function(e,t){const n=Fl(e),a=Fl(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},ub=function(e,t){const n=be(e),a=be(t);return n&&a?e.length!==t.length?!1:e.every((o,l)=>tg(o,t[l])):!n&&!a?tg(e,t):!1},ng=function(e,t,n){const a=ca(t)||t==="x"?st(e).locale(n):st(e,t).locale(n);return a.isValid()?a:void 0},ag=function(e,t,n){return ca(t)?e:t==="x"?+e:st(e).locale(n).format(t)},u0=(e,t)=>{const n=[],a=t==null?void 0:t();for(let o=0;obe(e)?e.map(t=>t.toDate()):e.toDate(),Th=_e({disabledHours:{type:J(Function)},disabledMinutes:{type:J(Function)},disabledSeconds:{type:J(Function)}}),cb=_e({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Mh=_e({automaticDropdown:{type:Boolean,default:!0},id:{type:J([Array,String])},name:{type:J([Array,String])},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:J([String,Object]),default:ho},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:J([String,Object]),default:""},size:kn,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:J(Object),default:()=>({})},modelValue:{type:J([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Th,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:J([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:J(String),values:Ho,default:"bottom"},fallbackPlacements:{type:J(Array),default:["bottom","top","right","left"]},...Wr,...oa(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),bW=_e({id:{type:J(Array)},name:{type:J(Array)},modelValue:{type:J([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),db=(e,t)=>{const{lang:n}=kt(),a=V(!1),o=V(!1),l=V(null),r=x(()=>{const{modelValue:p}=e;return!p||be(p)&&!p.filter(Boolean).length}),s=p=>{if(!ub(e.modelValue,p)){let v;be(p)?v=p.map(m=>ag(m,e.valueFormat,n.value)):p&&(v=ag(p,e.valueFormat,n.value)),t(ot,p&&v,n.value)}},u=x(()=>{let p;if(r.value?c.value.getDefaultValue&&(p=c.value.getDefaultValue()):be(e.modelValue)?p=e.modelValue.map(v=>ng(v,e.valueFormat,n.value)):p=ng(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(p);an(v,p)||(p=v,r.value||s(Nc(p)))}return be(p)&&p.some(v=>!v)&&(p=[]),p}),c=V({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:l,valueIsEmpty:r,emitInput:s,onCalendarChange:p=>{t("calendar-change",p)},onPanelChange:(p,v,m)=>{t("panel-change",p,v,m)},onPick:(p="",v=!1)=>{a.value=v;let m;be(p)?m=p.map(y=>y.toDate()):m=p&&p.toDate(),l.value=null,s(m)},onSetPickerOption:p=>{c.value[p[0]]=p[1],c.value.panelReady=!0}}},wW=["id","name","placeholder","value","disabled"],CW=["id","name","placeholder","value","disabled"];var _W=D({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:bW,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),{inputId:r}=Pa(Rt({id:x(()=>{var M;return(M=a.id)==null?void 0:M[0]})}),{formItemContext:l}),s=nf(),u=ve("date"),c=ve("range"),d=V(),f=V(),{wrapperRef:h,isFocused:g}=Cl(d,{disabled:x(()=>a.disabled)}),p=M=>{o("click",M)},v=M=>{o("mouseenter",M)},m=M=>{o("mouseleave",M)},y=M=>{o("touchstart",M)},b=M=>{o("startInput",M)},w=M=>{o("endInput",M)},_=M=>{o("startChange",M)},S=M=>{o("endChange",M)};return t({focus:()=>{var M;(M=d.value)==null||M.focus()},blur:()=>{var M,A;(M=d.value)==null||M.blur(),(A=f.value)==null||A.blur()}}),(M,A)=>(C(),$("div",{ref_key:"wrapperRef",ref:h,class:R([i(u).is("active",i(g)),M.$attrs.class]),style:qe(M.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:m,onTouchstartPassive:y},[oe(M.$slots,"prefix"),E("input",ht(i(s),{id:i(r),ref_key:"inputRef",ref:d,name:M.name&&M.name[0],placeholder:M.startPlaceholder,value:M.modelValue&&M.modelValue[0],class:i(c).b("input"),disabled:M.disabled,onInput:b,onChange:_}),null,16,wW),oe(M.$slots,"range-separator"),E("input",ht(i(s),{id:M.id&&M.id[1],ref_key:"endInputRef",ref:f,name:M.name&&M.name[1],placeholder:M.endPlaceholder,value:M.modelValue&&M.modelValue[1],class:i(c).b("input"),disabled:M.disabled,onInput:w,onChange:S}),null,16,CW),oe(M.$slots,"suffix")],38))}}),SW=_W,xW=D({name:"Picker",__name:"picker",props:Mh,emits:[ot,bt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=ve("date"),s=ve("input"),u=ve("range"),{formItem:c}=Bn(),d=Pe(Eh,{}),f=Pu(a,null),h=V(),g=V(),p=V(null);let v=!1;const m=rn(),y=db(a,o),{parsedValue:b,pickerActualVisible:w,userInput:_,pickerVisible:S,pickerOptions:k,valueIsEmpty:T,emitInput:M,onPick:A,onSetPickerOption:O,onCalendarChange:I,onPanelChange:L}=y,{isFocused:z,handleFocus:q,handleBlur:U}=Cl(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(S.value=!0)},beforeBlur(pe){var Te;return!v&&((Te=h.value)==null?void 0:Te.isFocusInsideContent(pe))},afterBlur(){var pe,Te;Y.value&&!a.saveOnBlur?T.value||(Te=(pe=k.value).handleCancel)==null||Te.call(pe):ze(),S.value=!1,v=!1,a.validateEvent&&(c==null||c.validate("blur").catch(ct=>pt(ct)))}}),F=V(!1),N=x(()=>[r.b("editor"),r.bm("editor",a.type),s.e("wrapper"),r.is("disabled",m.value),r.is("active",S.value),u.b("editor"),Ee?u.bm("editor",Ee.value):"",l.class]),P=x(()=>[s.e("icon"),u.e("close-icon"),ce.value?"":u.em("close-icon","hidden")]);fe(S,pe=>{pe?Le(()=>{pe&&(p.value=a.modelValue)}):(_.value=null,Le(()=>{B(a.modelValue)}))});const B=(pe,Te)=>{(Te||!ub(pe,p.value))&&(o(bt,pe),Te&&(p.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(ct=>pt(ct))))},K=pe=>{o("keydown",pe)},W=x(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),j=(pe,Te,ct)=>{const Pt=W.value;Pt.length&&(!ct||ct==="min"?(Pt[0].setSelectionRange(pe,Te),Pt[0].focus()):ct==="max"&&(Pt[1].setSelectionRange(pe,Te),Pt[1].focus()))},G=()=>{w.value=!0},ee=()=>{o("visible-change",!0)},te=()=>{w.value=!1,S.value=!1,o("visible-change",!1)},ue=()=>{S.value=!0},ne=()=>{S.value=!1},de=x(()=>{const pe=nt(b.value);return be(_.value)?[_.value[0]??(pe&&pe[0])??"",_.value[1]??(pe&&pe[1])??""]:_.value!==null?_.value:Y.value&&T.value&&!a.saveOnBlur||!Y.value&&T.value||!S.value&&T.value?"":pe?X.value||H.value||Z.value?pe.join(", "):pe:""}),se=x(()=>a.type.includes("time")),Y=x(()=>a.type.startsWith("time")),X=x(()=>a.type==="dates"),H=x(()=>a.type==="months"),Z=x(()=>a.type==="years"),le=x(()=>a.prefixIcon||(se.value?hh:fy)),ce=x(()=>a.clearable&&!m.value&&!a.readonly&&!T.value&&(F.value||z.value)),ge=pe=>{a.readonly||m.value||(ce.value&&(pe==null||pe.stopPropagation(),k.value.handleClear?k.value.handleClear():M(f.valueOnClear.value),B(f.valueOnClear.value,!0),te()),o("clear"))},me=async pe=>{var Te;a.readonly||m.value||(((Te=pe.target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},Ae=()=>{a.readonly||m.value||!T.value&&a.clearable&&(F.value=!0)},Ne=()=>{F.value=!1},Re=pe=>{var Te;a.readonly||m.value||(((Te=pe.touches[0].target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},ye=x(()=>a.type.includes("range")),Ee=_n(),we=x(()=>{var pe,Te;return(Te=(pe=i(h))==null?void 0:pe.popperRef)==null?void 0:Te.contentRef}),Ie=$p(g,pe=>{const Te=i(we),ct=xn(g);Te&&(pe.target===Te||pe.composedPath().includes(Te))||pe.target===ct||ct&&pe.composedPath().includes(ct)||(S.value=!1)});Lt(()=>{Ie==null||Ie()});const ze=()=>{if(Y.value&&!a.saveOnBlur)return;const pe=be(_.value)&&_.value.every(Te=>Te==="");if(_.value&&!pe){const Te=et(de.value);Te&&(at(Te)&&M(Nc(Te)),_.value=null)}(_.value===""||pe)&&(M(f.valueOnClear.value),B(f.valueOnClear.value,!0),_.value=null)},et=pe=>pe?k.value.parseUserInput(pe):null,nt=pe=>pe?be(pe)?pe.map(Te=>Te.format(a.format)):pe.format(a.format):null,at=pe=>k.value.isValidValue(pe),Me=async pe=>{if(a.readonly||m.value)return;const Te=Kt(pe);if(K(pe),Te===Ce.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Te===Ce.down&&(k.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await Le()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Te===Ce.tab){v=!0;return}if(Te===Ce.enter||Te===Ce.numpadEnter){S.value?(_.value===null||_.value===""||at(et(de.value)))&&(ze(),S.value=!1):S.value=!0,pe.preventDefault(),pe.stopPropagation();return}if(_.value){pe.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(pe)},Ge=pe=>{_.value=pe,S.value||(S.value=!0)},ut=pe=>{const Te=pe.target;_.value?_.value=[Te.value,_.value[1]]:_.value=[Te.value,null]},je=pe=>{const Te=pe.target;_.value?_.value=[_.value[0],Te.value]:_.value=[null,Te.value]},tt=()=>{var Pt;const pe=_.value,Te=et(pe&&pe[0]),ct=i(b);if(Te&&Te.isValid()){_.value=[nt(Te),((Pt=de.value)==null?void 0:Pt[1])||null];const Gt=[Te,ct&&(ct[1]||null)];at(Gt)&&(M(Nc(Gt)),_.value=null)}},yt=()=>{var Pt;const pe=i(_),Te=et(pe&&pe[1]),ct=i(b);if(Te&&Te.isValid()){_.value=[((Pt=i(de))==null?void 0:Pt[0])||null,nt(Te)];const Gt=[ct&&ct[0],Te];at(Gt)&&(M(Nc(Gt)),_.value=null)}},he=()=>{var pe;(pe=g.value)==null||pe.focus()},Ve=()=>{var pe;(pe=g.value)==null||pe.blur()};return wt(oo,{props:a,emptyValues:f}),wt(lb,y),t({focus:he,blur:Ve,handleOpen:ue,handleClose:ne,onPick:A}),(pe,Te)=>(C(),ie(i(Vn),ht({ref_key:"refPopper",ref:h,visible:i(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${i(r).namespace.value}-zoom-in-top`,"popper-class":[`${i(r).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":i(d),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ee,onHide:te}),{default:ae(()=>[ye.value?(C(),ie(SW,{key:1,id:pe.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:pe.name,disabled:i(m),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:R(N.value),style:qe(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:i(q),onBlur:i(U),onStartInput:ut,onStartChange:tt,onEndInput:je,onEndChange:yt,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onKeydown:Me},{prefix:ae(()=>[le.value?(C(),ie(i(De),{key:0,class:R([i(s).e("icon"),i(u).e("icon")])},{default:ae(()=>[(C(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ae(()=>[oe(pe.$slots,"range-separator",{},()=>[E("span",{class:R(i(u).b("separator"))},Se(pe.rangeSeparator),3)])]),suffix:ae(()=>[pe.clearIcon?(C(),ie(i(De),{key:0,class:R(P.value),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(C(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(C(),ie(i(Dn),{key:0,id:pe.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:pe.name,size:i(Ee),disabled:i(m),placeholder:pe.placeholder,class:R([i(r).b("editor"),i(r).bm("editor",pe.type),i(r).is("focus",i(S)),pe.$attrs.class]),style:qe(pe.$attrs.style),readonly:!pe.editable||pe.readonly||X.value||H.value||Z.value||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:Ge,onFocus:i(q),onBlur:i(U),onKeydown:Me,onChange:ze,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onClick:Te[0]||(Te[0]=Je(()=>{},["stop"]))},{prefix:ae(()=>[le.value?(C(),ie(i(De),{key:0,class:R(i(s).e("icon")),onMousedown:Je(me,["prevent"]),onTouchstartPassive:Re},{default:ae(()=>[(C(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ae(()=>[ce.value&&pe.clearIcon?(C(),ie(i(De),{key:0,class:R(`${i(s).e("icon")} clear-icon`),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(C(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ae(()=>[oe(pe.$slots,"default",{visible:i(S),actualVisible:i(w),parsedValue:i(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:Te[1]||(Te[1]=(...ct)=>i(A)&&i(A)(...ct)),onSelectRange:j,onSetPickerOption:Te[2]||(Te[2]=(...ct)=>i(O)&&i(O)(...ct)),onCalendarChange:Te[3]||(Te[3]=(...ct)=>i(I)&&i(I)(...ct)),onClear:ge,onPanelChange:Te[4]||(Te[4]=(...ct)=>i(L)&&i(L)(...ct)),onMousedown:Te[5]||(Te[5]=Je(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),fb=xW;const kW=_e({...cb,datetimeRole:String,parsedValue:{type:J(Object)}}),pb=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),s,c);break;case"second":g=p(f.hour(),f.minute(),s,c);break;default:g=p(s,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},c0=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},hb=(e,t,n)=>({getHoursList:(r,s)=>u0(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>u0(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>u0(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),vb=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=hb(e,t,n);return{getAvailableHours:(c,d)=>c0(a(c,d)),getAvailableMinutes:(c,d,f)=>c0(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>c0(l(c,d,f,h))}},mb=(e,t)=>{const n=V(e.parsedValue);return fe(()=>e.visible,a=>{const o=Av(t.modelValue),l=Av(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},EW=_e({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Th}),TW=["onClick"],MW=["onMouseenter"];var OW=D({__name:"basic-time-spinner",props:EW,emits:[bt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Pe(oo).props,r=t,s=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=hb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=V(),p={hours:V(),minutes:V(),seconds:V()},v=x(()=>n.showSeconds?eg:eg.slice(0,2)),m=x(()=>{const{spinnerDate:W}=n;return{hours:W.hour(),minutes:W.minute(),seconds:W.second()}}),y=x(()=>{const{hours:W,minutes:j}=i(m),{role:G,spinnerDate:ee}=n,te=a?void 0:ee;return{hours:u(G,te),minutes:c(W,G,te),seconds:d(W,j,G,te)}}),b=x(()=>{const{hours:W,minutes:j,seconds:G}=i(m);return{hours:i0(W,23),minutes:i0(j,59),seconds:i0(G,59)}}),w=Vo(W=>{f=!1,k(W)},200),_=W=>{if(!n.amPmMode)return"";const j=n.amPmMode==="A";let G=W<12?" am":" pm";return j&&(G=G.toUpperCase()),G},S=W=>{let j=[0,0];const G=o||Ir,ee=G.indexOf("HH"),te=G.indexOf("mm"),ue=G.indexOf("ss");switch(W){case"hours":ee!==-1&&(j=[ee,ee+2]);break;case"minutes":te!==-1&&(j=[te,te+2]);break;case"seconds":ue!==-1&&(j=[ue,ue+2]);break}const[ne,de]=j;r("select-range",ne,de),g.value=W},k=W=>{A(W,i(m)[W])},T=()=>{k("hours"),k("minutes"),k("seconds")},M=W=>W.querySelector(`.${s.namespace.value}-scrollbar__wrap`),A=(W,j)=>{if(n.arrowControl)return;const G=i(p[W]);G&&G.$el&&(l||(h[W]=!0,Fa(()=>{h[W]=!1})),M(G.$el).scrollTop=Math.max(0,j*O(W)))},O=W=>{var G;const j=(G=i(p[W]))==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(Zo(j,"height"))||0},I=()=>{z(1)},L=()=>{z(-1)},z=W=>{g.value||S("hours");const j=g.value,G=i(m)[j],ee=q(j,G,W,g.value==="hours"?24:60);U(j,ee),A(j,ee),Le(()=>S(j))},q=(W,j,G,ee)=>{let te=(j+G+ee)%ee;const ue=i(y)[W];for(;ue[te]&&te!==j;)te=(te+G+ee)%ee;return te},U=(W,j)=>{if(i(y)[W][j])return;const{hours:G,minutes:ee,seconds:te}=i(m);let ue;switch(W){case"hours":ue=n.spinnerDate.hour(j).minute(ee).second(te);break;case"minutes":ue=n.spinnerDate.hour(G).minute(j).second(te);break;case"seconds":ue=n.spinnerDate.hour(G).minute(ee).second(j);break}r(bt,ue)},F=(W,{value:j,disabled:G})=>{G||(U(W,j),S(W),A(W,j))},N=W=>{if(!l&&h[W])return;const j=i(p[W]);j&&(f=!0,w(W),U(W,Math.min(Math.round((M(j.$el).scrollTop-(P(W)*.5-10)/O(W)+3)/O(W)),W==="hours"?23:59)))},P=W=>i(p[W]).$el.offsetHeight,B=()=>{const W=j=>{const G=i(p[j]);G&&G.$el&&(M(G.$el).onscroll=()=>{N(j)})};W("hours"),W("minutes"),W("seconds")};gt(()=>{Le(()=>{!n.arrowControl&&B(),T(),n.role==="start"&&S("hours")})});const K=(W,j)=>{p[j].value=W??void 0};return r("set-option",[`${n.role}_scrollDown`,z]),r("set-option",[`${n.role}_emitSelectRange`,S]),fe(()=>n.spinnerDate,()=>{f||T()}),(W,j)=>(C(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":W.showSeconds}])},[W.arrowControl?re("v-if",!0):(C(!0),$(Ke,{key:0},_t(v.value,G=>(C(),ie(i(ao),{key:G,ref_for:!0,ref:ee=>K(ee,G),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(G),onMousemove:ee=>k(G)},{default:ae(()=>[(C(!0),$(Ke,null,_t(y.value[G],(ee,te)=>(C(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",te===m.value[G]),i(s).is("disabled",ee)]),onClick:ue=>F(G,{value:te,disabled:ee})},[G==="hours"?(C(),$(Ke,{key:0},[St(Se(("0"+(W.amPmMode?te%12||12:te)).slice(-2))+Se(_(te)),1)],64)):(C(),$(Ke,{key:1},[St(Se(("0"+te).slice(-2)),1)],64))],10,TW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),W.arrowControl?(C(!0),$(Ke,{key:1},_t(v.value,G=>(C(),$("div",{key:G,class:R([i(s).be("spinner","wrapper"),i(s).is("arrow")]),onMouseenter:ee=>S(G)},[ft((C(),ie(i(De),{class:R(["arrow-up",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(Iu))]),_:1},8,["class"])),[[i(od),L]]),ft((C(),ie(i(De),{class:R(["arrow-down",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"])),[[i(od),I]]),E("ul",{class:R(i(s).be("spinner","list"))},[(C(!0),$(Ke,null,_t(b.value[G],(ee,te)=>(C(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",ee===m.value[G]),i(s).is("disabled",y.value[G][ee])])},[i(He)(ee)?(C(),$(Ke,{key:0},[G==="hours"?(C(),$(Ke,{key:0},[St(Se(("0"+(W.amPmMode?ee%12||12:ee)).slice(-2))+Se(_(ee)),1)],64)):(C(),$(Ke,{key:1},[St(Se(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,MW))),128)):re("v-if",!0)],2))}}),x2=OW,$W=D({__name:"panel-time-pick",props:kW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}=vb(r,s,u),g=ve("time"),{t:p,lang:v}=kt(),m=V([0,2]),y=mb(n,{modelValue:x(()=>o.props.modelValue),valueOnClear:x(()=>o!=null&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),b=x(()=>Et(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),w=x(()=>n.format.includes("ss")),_=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=P=>{const B=st(P).locale(v.value),K=U(B);return B.isSame(K)},k=()=>{const P=y.value;a("pick",P,!1),Le(()=>{y.value=P})},T=(P=!1,B=!1)=>{B||a("pick",n.parsedValue,P)},M=P=>{n.visible&&a("pick",U(P).millisecond(0),!0)},A=(P,B)=>{a("select-range",P,B),m.value=[P,B]},O=P=>{const B=n.format,K=B.indexOf("HH"),W=B.indexOf("mm"),j=B.indexOf("ss"),G=[],ee=[];K!==-1&&(G.push(K),ee.push("hours")),W!==-1&&(G.push(W),ee.push("minutes")),j!==-1&&w.value&&(G.push(j),ee.push("seconds"));const te=(G.indexOf(m.value[0])+P+G.length)%G.length;L.start_emitSelectRange(ee[te])},I=P=>{const B=Kt(P),{left:K,right:W,up:j,down:G}=Ce;if([K,W].includes(B)){O(B===K?-1:1),P.preventDefault();return}if([j,G].includes(B)){const ee=B===j?-1:1;L.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=pb({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}),U=P=>q(P,n.datetimeRole||"",!0),F=P=>P?st(P,n.format).locale(v.value):null,N=()=>st(c).locale(v.value);return a("set-picker-option",["isValidValue",S]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleKeydownInput",I]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["getDefaultValue",N]),a("set-picker-option",["handleCancel",k]),(P,B)=>(C(),ie(Fn,{name:b.value},{default:ae(()=>[P.actualVisible||P.visible?(C(),$("div",{key:0,class:R(i(g).b("panel"))},[E("div",{class:R([i(g).be("panel","content"),{"has-seconds":w.value}])},[Q(x2,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(l),"show-seconds":w.value,"am-pm-mode":_.value,"spinner-date":P.parsedValue,"disabled-hours":i(r),"disabled-minutes":i(s),"disabled-seconds":i(u),onChange:M,onSetOption:i(z),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:R(i(g).be("panel","footer"))},[E("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:k},Se(i(p)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=K=>T())},Se(i(p)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),cd=$W;const AW=_e({...cb,parsedValue:{type:J(Array)}}),RW=["disabled"];var NW=D({__name:"panel-time-range",props:AW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(X,H)=>{const Z=[];for(let le=X;le<=H;le++)Z.push(le);return Z},{t:l,lang:r}=kt(),s=ve("time"),u=ve("picker"),c=Pe(oo),{arrowControl:d,disabledHours:f,disabledMinutes:h,disabledSeconds:g,defaultValue:p}=c.props,v=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),m=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),w=mb(n,{modelValue:x(()=>c.props.modelValue),valueOnClear:x(()=>c!=null&&c.emptyValues?c.emptyValues.valueOnClear.value:null)}),_=()=>{const X=w.value;a("pick",X,!1),Le(()=>{w.value=X})},S=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(X=!1)=>{a("pick",[y.value,b.value],X)},M=X=>{I(X.millisecond(0),b.value)},A=X=>{I(y.value,X.millisecond(0))},O=X=>{const H=X.map(le=>st(le).locale(r.value)),Z=j(H);return H[0].isSame(Z[0])&&H[1].isSame(Z[1])},I=(X,H)=>{n.visible&&a("pick",[X,H],!0)},L=x(()=>y.value>b.value),z=V([0,2]),q=(X,H)=>{a("select-range",X,H,"min"),z.value=[X,H]},U=x(()=>S.value?11:8),F=(X,H)=>{a("select-range",X,H,"max");const Z=i(U);z.value=[X+Z,H+Z]},N=X=>{const H=S.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(S.value?["seconds"]:[]),le=(H.indexOf(z.value[0])+X+H.length)%H.length,ce=H.length/2;le{const H=Kt(X),{left:Z,right:le,up:ce,down:ge}=Ce;if([Z,le].includes(H)){N(H===Z?-1:1),X.preventDefault();return}if([ce,ge].includes(H)){const me=H===ce?-1:1;ue[`${z.value[0]{const Z=f?f(X):[],le=X==="start",ce=(H||(le?b.value:y.value)).hour();return Jf(Z,le?o(ce+1,23):o(0,ce-1))},K=(X,H,Z)=>{const le=h?h(X,H):[],ce=H==="start",ge=Z||(ce?b.value:y.value);if(X!==ge.hour())return le;const me=ge.minute();return Jf(le,ce?o(me+1,59):o(0,me-1))},W=(X,H,Z,le)=>{const ce=g?g(X,H,Z):[],ge=Z==="start",me=le||(ge?b.value:y.value),Ae=me.hour(),Ne=me.minute();if(X!==Ae||H!==Ne)return ce;const Re=me.second();return Jf(ce,ge?o(Re+1,59):o(0,Re-1))},j=([X,H])=>[ne(X,"start",!0,H),ne(H,"end",!1,X)],{getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}=vb(B,K,W),{timePickerOptions:ue,getAvailableTime:ne,onSetOption:de}=pb({getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}),se=X=>X?be(X)?X.map(H=>st(H,n.format).locale(r.value)):st(X,n.format).locale(r.value):null,Y=()=>{if(be(p))return p.map(H=>st(H).locale(r.value));const X=st(p).locale(r.value);return[X,X.add(60,"m")]};return a("set-picker-option",["parseUserInput",se]),a("set-picker-option",["isValidValue",O]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["handleCancel",_]),(X,H)=>X.actualVisible?(C(),$("div",{key:0,class:R([i(s).b("range-picker"),i(u).b("panel")])},[E("div",{class:R(i(s).be("range-picker","content"))},[E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.startTime")),3),E("div",{class:R(v.value)},[Q(x2,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":y.value,"disabled-hours":B,"disabled-minutes":K,"disabled-seconds":W,onChange:M,onSetOption:i(de),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.endTime")),3),E("div",{class:R(m.value)},[Q(x2,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":B,"disabled-minutes":K,"disabled-seconds":W,onChange:A,onSetOption:i(de),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:R(i(s).be("panel","footer"))},[E("button",{type:"button",class:R([i(s).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=Z=>_())},Se(i(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(s).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=Z=>T())},Se(i(l)("el.datepicker.confirm")),11,RW)],2)],2)):re("v-if",!0)}}),PW=NW,gb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(y){this[m]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],h=function(m){var y=u[m];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(m,y){var b,w=u.meridiem;if(w){for(var _=1;_<=24;_+=1)if(m.indexOf(w(_,0,y))>-1){b=_>12;break}}else b=m===(y?"pm":"PM");return b},p={A:[s,function(m){this.afternoon=g(m,!1)}],a:[s,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(m){var y=u.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[r,d("week")],ww:[l,d("week")],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(m){var y=h("months"),b=(h("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var y,b;y=m,b=u&&u.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,L){var z=L&&L.toUpperCase();return I||b[L]||n[L]||b[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,U,F){return U||F.slice(1)})})).match(a),_=w.length,S=0;S<_;S+=1){var k=w[S],T=p[k],M=T&&T[0],A=T&&T[1];w[S]=A?{regex:M,parser:A}:k.replace(/^\[|\]$/g,"")}return function(O){for(var I={},L=0,z=0;L<_;L+=1){var q=w[L];if(typeof q=="string")z+=q.length;else{var U=q.regex,F=q.parser,N=O.slice(z),P=U.exec(N)[0];F.call(I,P),O=O.replace(P,"")}}return function(B){var K=B.afternoon;if(K!==void 0){var W=B.hours;K?W<12&&(B.hours+=12):W===12&&(B.hours=0),delete B.afternoon}}(I),I}}return function(m,y,b){b.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var w=y.prototype,_=w.parse;w.parse=function(S){var k=S.date,T=S.utc,M=S.args;this.$u=T;var A=M[1];if(typeof A=="string"){var O=M[2]===!0,I=M[3]===!0,L=O||I,z=M[2];I&&(z=M[2]),u=this.$locale(),!O&&z&&(u=b.Ls[z]),this.$d=function(N,P,B,K){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*N);var W=v(P)(N),j=W.year,G=W.month,ee=W.day,te=W.hours,ue=W.minutes,ne=W.seconds,de=W.milliseconds,se=W.zone,Y=W.week,X=new Date,H=ee||(j||G?1:X.getDate()),Z=j||X.getFullYear(),le=0;j&&!G||(le=G>0?G-1:X.getMonth());var ce,ge=te||0,me=ue||0,Ae=ne||0,Ne=de||0;return se?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne+60*se.offset*1e3)):B?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne)):(ce=new Date(Z,le,H,ge,me,Ae,Ne),Y&&(ce=K(ce).week(Y).toDate()),ce)}catch{return new Date("")}}(k,A,T,b),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&k!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var q=A.length,U=1;U<=q;U+=1){M[1]=A[U-1];var F=b.apply(this,M);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}U===q&&(this.$d=new Date(""))}else _.call(this,S)}}})})(gb);var IW=gb.exports;const Oh=xl(IW);st.extend(Oh);var LW=D({name:"ElTimePicker",install:null,props:{...Mh,isRange:Boolean},emits:[ot],setup(e,t){const n=V(),[a,o]=e.isRange?["timerange",PW]:["time",cd],l=r=>t.emit(ot,r);return wt(Eh,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{const r=e.format??Ir;return Q(fb,ht(e,{ref:n,type:a,format:r,"onUpdate:modelValue":l}),{default:s=>Q(o,s,null)})}}});const VW=it(LW),hl=_e({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:io},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),BW={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zW=["aria-label"],DW=["aria-label"];var HW=D({name:"ElTag",__name:"tag",props:hl,emits:BW,setup(e,{emit:t}){const n=e,a=t,o=_n(),{t:l}=kt(),r=ve("tag"),s=x(()=>{const{type:f,hit:h,effect:g,closable:p,round:v}=n;return[r.b(),r.is("closable",p),r.m(f||"primary"),r.m(o.value),r.m(g),r.is("hit",h),r.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{var h,g,p;(p=(g=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:g.component)!=null&&p.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(C(),$("span",{key:0,class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(C(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,zW)):re("v-if",!0)],6)):(C(),ie(Fn,{key:1,name:`${i(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ae(()=>[E("span",{class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(C(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,DW)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),FW=HW;const ll=it(FW),yb=Symbol("ElSelectGroup"),Bu=Symbol("ElSelect"),dd={label:"label",value:"value",disabled:"disabled",options:"options"};function zu(e){const t=V({...dd,...e.props});let n={...e.props};return fe(()=>e.props,s=>{an(s,n)||(t.value={...dd,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>bn(s,t.value.label),getValue:s=>bn(s,t.value.value),getDisabled:s=>bn(s,t.value.disabled),getOptions:s=>bn(s,t.value.options)}}const bb=_e({name:String,id:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:kn,effect:{type:J(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:J(Function)},filterMethod:{type:J(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ft,default:ho},fitInputWidth:Boolean,suffixIcon:{type:Ft,default:po},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,options:{type:J(Array)},props:{type:J(Object),default:()=>dd},...Wr,...oa(["ariaLabel"])});qy.scroll;const k2="ElOption",KW=_e({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function WW(e,t){const n=Pe(Bu);n||en(k2,"usage: ");const a=Pe(yb,{disabled:!1}),o=x(()=>d($n(n.props.modelValue),e.value)),l=x(()=>{if(n.props.multiple){const g=$n(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>e.label??(lt(e.value)?"":e.value)),s=x(()=>e.value||e.label||""),u=x(()=>e.disabled||t.groupDisabled||l.value),c=vt(),d=(g=[],p)=>{if(lt(e.value)){const v=n.props.valueKey;return g&&g.some(m=>jt(bn(m,v))===bn(p,v))}else return g&&g.includes(p)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=g=>{t.visible=new RegExp(Yp(g),"i").test(String(r.value))||e.created};return fe(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),fe(()=>e.value,(g,p)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==p:!an(g,p))&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&<(g)&<(p)&&g[m]===p[m])return;n.setSelected()}}),fe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:s,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:h}}var jW=D({name:k2,componentName:k2,props:KW,setup(e){const t=ve("select"),n=Kn(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",i(s)),t.is("selected",i(r)),t.is("hovering",i(h))]),o=Rt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:s,select:u,hoverItem:c,updateOption:d}=WW(e,o),{visible:f,hover:h}=Nn(o),g=vt().proxy;u.onOptionCreate(g),Lt(()=>{const m=g.value;Le(()=>{const{selected:y}=u.states,b=y.some(w=>w.value===g.value);u.states.cachedOptions.get(m)===g&&!b&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function p(){s.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:l,itemSelected:r,isDisabled:s,select:u,visible:f,hover:h,states:o,hoverItem:c,handleMousedown:m=>{let y=m.target;const b=m.currentTarget;for(;y&&y!==b;){if(Ar(y))return;y=y.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:p}}});const qW=["id","aria-disabled","aria-selected"];function UW(e,t,n,a,o,l){return ft((C(),$("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{},()=>[E("span",null,Se(e.currentLabel),1)])],42,qW)),[[$t,e.visible]])}var $h=En(jW,[["render",UW]]),YW=D({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ve("select"),n=V(),a=vt(),o=V([]);wt(yb,Rt({...Nn(e)}));const l=x(()=>o.value.some(c=>c.visible===!0)),r=c=>{var d;return c.type.name==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},s=c=>{const d=$n(c),f=[];return d.forEach(h=>{var g;Wt(h)&&(r(h)?f.push(h.component.proxy):be(h.children)&&h.children.length?f.push(...s(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...s(h.component.subTree)))}),f},u=()=>{o.value=s(a.subTree)};return gt(()=>{u()}),yu(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function GW(e,t,n,a,o,l){return ft((C(),$("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},Se(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[$t,e.visible]])}var Ah=En(YW,[["render",GW]]),XW=D({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Pe(Bu),t=ve("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),o=x(()=>e.props.fitInputWidth),l=V("");function r(){var u;const s=(u=e.selectRef)==null?void 0:u.offsetWidth;s?l.value=`${s-g6}px`:l.value=""}return gt(()=>{r(),Zt(e.selectRef,r)}),{ns:t,minWidth:l,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function JW(e,t,n,a,o,l){return C(),$("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(C(),$("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(C(),$("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var ZW=En(XW,[["render",JW]]);const QW=(e,t)=>{const{t:n}=kt(),a=hn(),o=Kn(),l=ve("select"),r=ve("input"),s=Rt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=V(),c=V(),d=V(),f=V(),h=V(),g=V(),p=V(),v=V(),m=V(),y=V(),b=V(),w=V(!1),_=V(),S=V(!1),{form:k,formItem:T}=Bn(),{inputId:M}=Pa(e,{formItemContext:T}),{valueOnClear:A,isEmptyValue:O}=Pu(e),{isComposing:I,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q}=Nu({afterComposition:xe=>Ge(xe)}),U=rn(),{wrapperRef:F,isFocused:N,handleBlur:P}=Cl(h,{disabled:U,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(xe){var Qe,Tt;return((Qe=d.value)==null?void 0:Qe.isFocusInsideContent(xe))||((Tt=f.value)==null?void 0:Tt.isFocusInsideContent(xe))},afterBlur(){var xe;w.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((xe=T==null?void 0:T.validate)==null||xe.call(T,"blur").catch(Qe=>pt(Qe)))}}),B=x(()=>be(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),K=x(()=>(k==null?void 0:k.statusIcon)??!1),W=x(()=>e.clearable&&!U.value&&B.value&&(N.value||s.inputHovering)),j=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=x(()=>l.is("reverse",!!(j.value&&w.value))),ee=x(()=>(T==null?void 0:T.validateState)||""),te=x(()=>ee.value&&pf[ee.value]),ue=x(()=>e.remote?e.debounce:0),ne=x(()=>e.remote&&!s.inputValue&&s.options.size===0),de=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&se.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),se=x(()=>Y.value.filter(xe=>xe.visible).length),Y=x(()=>{const xe=Array.from(s.options.values()),Qe=[];return s.optionValues.forEach(Tt=>{const Jt=xe.findIndex(Cn=>Cn.value===Tt);Jt>-1&&Qe.push(xe[Jt])}),Qe.length>=xe.length?Qe:xe}),X=x(()=>Array.from(s.cachedOptions.values())),H=x(()=>{const xe=Y.value.filter(Qe=>!Qe.created).some(Qe=>Qe.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!xe}),Z=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||Y.value.forEach(xe=>{var Qe;(Qe=xe.updateOption)==null||Qe.call(xe,s.inputValue)})},le=_n(),ce=x(()=>["small"].includes(le.value)?"small":"default"),ge=x({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!a.empty)&&(!S.value||!ca(s.previousQuery)||s.options.size>0)},set(xe){w.value=xe}}),me=x(()=>{if(e.multiple&&!Et(e.modelValue))return $n(e.modelValue).length===0&&!s.inputValue;const xe=be(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Et(xe)?!s.inputValue:!0}),Ae=x(()=>{const xe=e.placeholder??n("el.select.placeholder");return e.multiple||!B.value?xe:s.selectedLabel}),Ne=x(()=>ed?null:"mouseenter");fe(()=>e.modelValue,(xe,Qe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Re("")),Ee(),!an(xe,Qe)&&e.validateEvent&&(T==null||T.validate("change").catch(Tt=>pt(Tt)))},{flush:"post",deep:!0}),fe(()=>w.value,xe=>{xe?Re(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0,s.menuVisibleOnFocus=!1)}),fe(()=>s.options.entries(),()=>{At&&(Ee(),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value&&ye())},{flush:"post"}),fe([()=>s.hoveringIndex,Y],([xe])=>{He(xe)&&xe>-1?_.value=Y.value[xe]||{}:_.value={},Y.value.forEach(Qe=>{Qe.hover=_.value===Qe})}),da(()=>{s.isBeforeHide||Z()});const Re=xe=>{s.previousQuery===xe||I.value||(s.previousQuery=xe,e.filterable&&Fe(e.filterMethod)?e.filterMethod(xe):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(xe),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value?Le(ye):Le(Ie))},ye=()=>{const xe=Y.value.filter(Jt=>Jt.visible&&!Jt.disabled&&!Jt.states.groupDisabled),Qe=xe.find(Jt=>Jt.created),Tt=xe[0];s.hoveringIndex=Te(Y.value.map(Jt=>Jt.value),Qe||Tt)},Ee=()=>{if(e.multiple)s.selectedLabel="";else{const Qe=we(be(e.modelValue)?e.modelValue[0]:e.modelValue);s.selectedLabel=Qe.currentLabel,s.selected=[Qe];return}const xe=[];Et(e.modelValue)||$n(e.modelValue).forEach(Qe=>{xe.push(we(Qe))}),s.selected=xe},we=xe=>{let Qe;const Tt=Vi(xe);for(let Jt=s.cachedOptions.size-1;Jt>=0;Jt--){const Cn=X.value[Jt];if(Tt?bn(Cn.value,e.valueKey)===bn(xe,e.valueKey):Cn.value===xe){Qe={index:Y.value.filter(Pn=>!Pn.created).indexOf(Cn),value:xe,currentLabel:Cn.currentLabel,get isDisabled(){return Cn.isDisabled}};break}}return Qe||{index:-1,value:xe,currentLabel:Tt?xe.label:xe??""}},Ie=()=>{const xe=s.selected.length;if(xe>0){const Qe=s.selected[xe-1];s.hoveringIndex=Y.value.findIndex(Tt=>Mn(Qe)===Mn(Tt))}else s.hoveringIndex=-1},ze=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},et=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},nt=()=>{var xe,Qe;(Qe=(xe=d.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},at=()=>{var xe,Qe;(Qe=(xe=f.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},Me=()=>{s.inputValue.length>0&&!w.value&&(w.value=!0),Re(s.inputValue)},Ge=xe=>{if(s.inputValue=xe.target.value,e.remote)S.value=!0,ut();else return Me()},ut=gu(()=>{Me(),S.value=!1},ue),je=xe=>{an(e.modelValue,xe)||t(bt,xe)},tt=xe=>r8(xe,Qe=>{const Tt=s.cachedOptions.get(Qe);return!(Tt!=null&&Tt.disabled)&&!(Tt!=null&&Tt.states.groupDisabled)}),yt=xe=>{const Qe=Kt(xe);if(e.multiple&&Qe!==Ce.delete&&xe.target.value.length<=0){const Tt=$n(e.modelValue).slice(),Jt=tt(Tt);if(Jt<0)return;const Cn=Tt[Jt];Tt.splice(Jt,1),t(ot,Tt),je(Tt),t("remove-tag",Cn)}},he=(xe,Qe)=>{const Tt=s.selected.indexOf(Qe);if(Tt>-1&&!U.value){const Jt=$n(e.modelValue).slice();Jt.splice(Tt,1),t(ot,Jt),je(Jt),t("remove-tag",Qe.value)}xe.stopPropagation(),Ze()},Ve=xe=>{xe.stopPropagation();const Qe=e.multiple?[]:A.value;if(e.multiple)for(const Tt of s.selected)Tt.isDisabled&&Qe.push(Tt.value);t(ot,Qe),je(Qe),s.hoveringIndex=-1,w.value=!1,t("clear"),Ze()},pe=xe=>{if(e.multiple){const Qe=$n(e.modelValue??[]).slice(),Tt=Te(Qe,xe);Tt>-1?Qe.splice(Tt,1):(e.multipleLimit<=0||Qe.length{ct(xe)})},Te=(xe,Qe)=>Et(Qe)?-1:lt(Qe.value)?xe.findIndex(Tt=>an(bn(Tt,e.valueKey),Mn(Qe))):xe.indexOf(Qe.value),ct=xe=>{var Jt,Cn,Pn,Wo,ei;const Qe=be(xe)?xe[xe.length-1]:xe;let Tt=null;if(!gn(Qe==null?void 0:Qe.value)){const Jl=Y.value.filter(qr=>qr.value===Qe.value);Jl.length>0&&(Tt=Jl[0].$el)}if(d.value&&Tt){const Jl=(Wo=(Pn=(Cn=(Jt=d.value)==null?void 0:Jt.popperRef)==null?void 0:Cn.contentRef)==null?void 0:Pn.querySelector)==null?void 0:Wo.call(Pn,`.${l.be("dropdown","wrap")}`);Jl&&Jp(Jl,Tt)}(ei=b.value)==null||ei.handleScroll()},Pt=xe=>{s.options.set(xe.value,xe),s.cachedOptions.set(xe.value,xe)},Gt=(xe,Qe)=>{s.options.get(xe)===Qe&&s.options.delete(xe)},Oe=x(()=>{var xe,Qe;return(Qe=(xe=d.value)==null?void 0:xe.popperRef)==null?void 0:Qe.contentRef}),We=()=>{s.isBeforeHide=!1,Le(()=>{var xe;(xe=b.value)==null||xe.update(),ct(s.selected)})},Ze=()=>{var xe;(xe=h.value)==null||xe.focus()},cn=()=>{var xe;if(w.value){w.value=!1,Le(()=>{var Qe;return(Qe=h.value)==null?void 0:Qe.blur()});return}(xe=h.value)==null||xe.blur()},zt=xe=>{Ve(xe)},Xt=xe=>{if(w.value=!1,N.value){const Qe=new FocusEvent("blur",xe);Le(()=>P(Qe))}},Ue=()=>{s.inputValue.length>0?s.inputValue="":w.value=!1},Xe=xe=>{var Qe;U.value||e.filterable&&w.value&&xe&&!((Qe=p.value)!=null&&Qe.contains(xe.target))||(ed&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:w.value=!w.value)},mt=()=>{if(!w.value)Xe();else{const xe=Y.value[s.hoveringIndex];xe&&!xe.isDisabled&&pe(xe)}},Mn=xe=>lt(xe.value)?bn(xe.value,e.valueKey):xe.value,go=x(()=>Y.value.filter(xe=>xe.visible).every(xe=>xe.isDisabled)),ja=x(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Yu=x(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Xl=xe=>{if(!w.value){w.value=!0;return}if(!(s.options.size===0||se.value===0||I.value)&&!go.value){xe==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):xe==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Qe=Y.value[s.hoveringIndex];(Qe.isDisabled||!Qe.visible)&&Xl(xe),Le(()=>ct(_.value))}},Gu=(xe,Qe,Tt,Jt)=>{for(let Cn=Qe;Cn>=0&&Cn{const Tt=s.options.size;if(Tt===0)return;const Jt=fr(xe,0,Tt-1),Cn=Y.value,Pn=Qe==="up"?-1:1,Wo=Gu(Cn,Jt,Pn,Tt)??Gu(Cn,Jt-Pn,-Pn,Tt);Wo!=null&&(s.hoveringIndex=Wo,Le(()=>ct(_.value)))},Af=xe=>{const Qe=Kt(xe);let Tt=!0;switch(Qe){case Ce.up:Xl("prev");break;case Ce.down:Xl("next");break;case Ce.enter:case Ce.numpadEnter:I.value||mt();break;case Ce.esc:Ue();break;case Ce.backspace:Tt=!1,yt(xe);return;case Ce.home:if(!w.value)return;Ko(0,"down");break;case Ce.end:if(!w.value)return;Ko(s.options.size-1,"up");break;case Ce.pageUp:if(!w.value)return;Ko(s.hoveringIndex-10,"up");break;case Ce.pageDown:if(!w.value)return;Ko(s.hoveringIndex+10,"down");break;default:Tt=!1;break}Tt&&(xe.preventDefault(),xe.stopPropagation())},Rf=()=>{if(!c.value)return 0;const xe=window.getComputedStyle(c.value);return Number.parseFloat(xe.gap||"6px")},Nf=x(()=>{const xe=Rf(),Qe=e.filterable?xe+Wd:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-xe-Qe:s.selectionWidth-Qe}px`}}),Pf=x(()=>({maxWidth:`${s.selectionWidth}px`})),If=xe=>{t("popup-scroll",xe)};Zt(c,ze),Zt(F,nt),Zt(m,at),Zt(y,et);let kl;return fe(()=>ge.value,xe=>{xe?kl=Zt(v,nt).stop:(kl==null||kl(),kl=void 0),t("visible-change",xe)}),gt(()=>{Ee()}),{inputId:M,contentId:o,nsSelect:l,nsInput:r,states:s,isFocused:N,expanded:w,optionsArray:Y,hoverOption:_,selectSize:le,filteredOptionsCount:se,updateTooltip:nt,updateTagTooltip:at,debouncedOnInputChange:ut,onInput:Ge,deletePrevTag:yt,deleteTag:he,deleteSelected:Ve,handleOptionSelect:pe,scrollToOption:ct,hasModelValue:B,shouldShowPlaceholder:me,currentPlaceholder:Ae,mouseEnterEventName:Ne,needStatusIcon:K,showClearBtn:W,iconComponent:j,iconReverse:G,validateState:ee,validateIcon:te,showNewOption:H,updateOptions:Z,collapseTagSize:ce,setSelected:Ee,selectDisabled:U,emptyText:de,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q,handleKeydown:Af,onOptionCreate:Pt,onOptionDestroy:Gt,handleMenuEnter:We,focus:Ze,blur:cn,handleClearClick:zt,handleClickOutside:Xt,handleEsc:Ue,toggleMenu:Xe,selectOption:mt,getValueKey:Mn,navigateOptions:Xl,dropdownMenuVisible:ge,showTagList:ja,collapseTagList:Yu,popupScroll:If,getOption:we,tagStyle:Nf,collapseTagStyle:Pf,popperRef:Oe,inputRef:h,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:p,selectRef:u,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:v,tagMenuRef:m,collapseItemRef:y}};var ej=D({name:"ElOptions",setup(e,{slots:t}){const n=Pe(Bu);let a=[];return()=>{var s,u;const o=(s=t.default)==null?void 0:s.call(t),l=[];function r(c){be(c)&&c.forEach(d=>{var h,g,p,v;const f=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;f==="ElOptionGroup"?r(!Be(d.children)&&!be(d.children)&&Fe((g=d.children)==null?void 0:g.default)?(p=d.children)==null?void 0:p.default():d.children):f==="ElOption"?l.push((v=d.props)==null?void 0:v.value):be(d.children)&&r(d.children)})}return o.length&&r((u=o[0])==null?void 0:u.children),an(l,a)||(a=l,n&&(n.states.optionValues=l)),o}}});const og="ElSelect",eu=new WeakMap,tj=e=>(...t)=>{var o,l;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((o=t[2])!=null&&o.includes("ElTreeSelect")))return;const a=(l=eu.get(e))==null?void 0:l.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},nj=e=>{let t=eu.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:tj(e),count:0},eu.set(e,t)),t};var aj=D({name:og,componentName:og,components:{ElSelectMenu:ZW,ElOption:$h,ElOptions:ej,ElOptionGroup:Ah,ElTag:ll,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:bb,emits:[ot,bt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=vt(),o=nj(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const l=x(()=>{const{modelValue:b,multiple:w}=e,_=w?[]:void 0;return be(b)?w?b:_:w?_:b}),r=Rt({...Nn(e),modelValue:l}),s=QW(r,t),{calculatorRef:u,inputStyle:c}=Up(),{getLabel:d,getValue:f,getOptions:h,getDisabled:g}=zu(e),p=b=>({label:d(b),value:f(b),disabled:g(b)}),v=b=>b.reduce((w,_)=>(w.push(_),_.children&&_.children.length>0&&w.push(...v(_.children)),w),[]),m=b=>{Ta(b||[]).forEach(w=>{var _;if(lt(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const S=w.type.name;if(S==="ElTree")v(((_=w.props)==null?void 0:_.data)||[]).forEach(k=>{k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)});else if(S==="ElOption"){const k={...w.props};k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)}}})};fe(()=>{var b;return[e.persistent||s.expanded.value||!n.default||(b=n.default)==null?void 0:b.call(n),l.value]},()=>{var b;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),m((b=n.default)==null?void 0:b.call(n)))},{immediate:!0}),wt(Bu,Rt({props:r,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=x(()=>e.multiple?s.states.selected.map(b=>b.currentLabel):s.states.selectedLabel);return Lt(()=>{const b=eu.get(a.appContext);b&&(b.count-=1,b.count<=0&&(a.appContext.config.warnHandler=b.originalWarnHandler,eu.delete(a.appContext)))}),{...s,modelValue:l,selectedLabel:y,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:h,getDisabled:g,getOptionProps:p}}});const oj=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],lj=["textContent"],rj={key:1};function sj(e,t,n,a,o,l){const r=Ot("el-tag"),s=Ot("el-tooltip"),u=Ot("el-icon"),c=Ot("el-option"),d=Ot("el-option-group"),f=Ot("el-options"),h=Ot("el-scrollbar"),g=Ot("el-select-menu"),p=Sp("click-outside");return ft((C(),$("div",ht({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[_i(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ae(()=>{var v;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?(C(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var m,y,b,w,_,S,k,T,M,A,O,I,L;return[(C(!0),$(Ke,null,_t(e.showTagList,z=>(C(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(C(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((m=e.tagTooltip)==null?void 0:m.fallbackPlacements)??["bottom","top","right","left"],effect:((y=e.tagTooltip)==null?void 0:y.effect)??e.effect,placement:((b=e.tagTooltip)==null?void 0:b.placement)??"bottom","popper-class":((w=e.tagTooltip)==null?void 0:w.popperClass)??e.popperClass,"popper-style":((_=e.tagTooltip)==null?void 0:_.popperStyle)??e.popperStyle,teleported:((S=e.tagTooltip)==null?void 0:S.teleported)??e.teleported,"append-to":((k=e.tagTooltip)==null?void 0:k.appendTo)??e.appendTo,"popper-options":((T=e.tagTooltip)==null?void 0:T.popperOptions)??e.popperOptions,transition:(M=e.tagTooltip)==null?void 0:M.transition,"show-after":(A=e.tagTooltip)==null?void 0:A.showAfter,"hide-after":(O=e.tagTooltip)==null?void 0:O.hideAfter,"auto-close":(I=e.tagTooltip)==null?void 0:I.autoClose,offset:(L=e.tagTooltip)==null?void 0:L.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.collapseTagStyle)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(C(!0),$(Ke,null,_t(e.collapseTagList,z=>(C(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:qe(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...m)=>e.handleKeydown&&e.handleKeydown(...m)),onCompositionstart:t[1]||(t[1]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[2]||(t[2]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[3]||(t[3]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onChange:t[5]||(t[5]=Je(()=>{},["stop"])),onClick:t[6]||(t[6]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,oj),e.filterable?(C(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,lj)):re("v-if",!0)],2),e.shouldShowPlaceholder?(C(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(C(),$("span",rj,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(C(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(C(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(C(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(C(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(g,{ref:"menuRef"},{default:ae(()=>[e.$slots.header?(C(),$("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),ft(Q(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ae(()=>[e.showNewOption?(C(),ie(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Q(f,null,{default:ae(()=>[oe(e.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(v,m)=>{var y;return C(),$(Ke,{key:m},[(y=e.getOptions(v))!=null&&y.length?(C(),ie(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.getOptions(v),b=>(C(),ie(c,ht({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(C(),ie(c,ht({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[$t,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(C(),$("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(C(),$("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(C(),$("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[p,e.handleClickOutside,e.popperRef]])}var ij=En(aj,[["render",sj]]);const Yl=it(ij,{Option:$h,OptionGroup:Ah}),fd=tn($h),uj=tn(Ah),cj=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Hl(t).map((a,o)=>n-(t-o-1))},dj=e=>Hl(e.daysInMonth()).map((t,n)=>n+1),fj=e=>Hl(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),pj=_e({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),hj={pick:e=>lt(e)};var wb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){var l=a.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,h,g,p,v){var m=f.name?f:f.$locale(),y=r(m[h]),b=r(m[g]),w=y||b.map(function(S){return S.slice(0,p)});if(!v)return w;var _=m.weekStart;return w.map(function(S,k){return w[(k+(_||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,m){return v||m.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):s(f,"months")},monthsShort:function(h){return h?h.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(f){return s(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(wb);var vj=wb.exports;const Cb=xl(vj),mj=(e,t)=>{st.extend(Cb);const n=st.localeData().firstDayOfWeek(),{t:a,lang:o}=kt(),l=st().locale(o.value),r=x(()=>!!e.range&&!!e.range.length),s=x(()=>{let h=[];if(r.value){const[g,p]=e.range,v=Hl(p.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const y=Hl(m).map((b,w)=>({text:w+1,type:"next"}));h=v.concat(y)}else{const g=e.date.startOf("month").day(),p=cj(e.date,(g-n+7)%7).map(y=>({text:y,type:"prev"})),v=dj(e.date).map(y=>({text:y,type:"current"}));h=[...p,...v];const m=Hl(7-(h.length%7||7)).map((y,b)=>({text:b+1,type:"next"}));h=h.concat(m)}return fj(h)}),u=x(()=>{const h=n;return h===0?qf.map(g=>a(`el.datepicker.weeks.${g}`)):qf.slice(h).concat(qf.slice(0,h)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(h,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:l,isInRange:r,rows:s,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:g})=>{t("pick",c(h,g))},getSlotData:({text:h,type:g})=>{const p=c(h,g);return{isSelected:p.isSame(e.selectedDay),type:`${g}-month`,day:p.format(Qo),date:p.toDate()}}}},gj={key:0},yj=["onClick"];var bj=D({name:"DateTable",__name:"date-table",props:pj,emits:hj,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:l,rows:r,weekDays:s,getFormattedDate:u,handlePickDay:c,getSlotData:d}=mj(a,n),f=ve("calendar-table"),h=ve("calendar-day"),g=({text:p,type:v})=>{const m=[v];if(v==="current"){const y=u(p,v);y.isSame(a.selectedDay,"day")&&m.push(h.is("selected")),y.isSame(l,"day")&&m.push(h.is("today"))}return m};return t({getFormattedDate:u}),(p,v)=>(C(),$("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(C(),$("thead",gj,[E("tr",null,[(C(!0),$(Ke,null,_t(i(s),m=>(C(),$("th",{key:m,scope:"col"},Se(m),1))),128))])])),E("tbody",null,[(C(!0),$(Ke,null,_t(i(r),(m,y)=>(C(),$("tr",{key:y,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:y===0&&e.hideHeader})},[(C(!0),$(Ke,null,_t(m,(b,w)=>(C(),$("td",{key:w,class:R(g(b)),onClick:_=>i(c)(b)},[E("div",{class:R(i(h).b())},[oe(p.$slots,"date-cell",{data:i(d)(b)},()=>[E("span",null,Se(b.text),1)])],2)],10,yj))),128))],2))),128))])],2))}}),lg=bj;const wj=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},Cj=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,l=o.endOf("month"),r=t.startOf("month"),s=l.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),l],[s.startOf("week"),t]]},_j=(e,t,n)=>{const{lang:a}=kt(),o=V(),l=st().locale(a.value),r=x({get(){return e.modelValue?u.value:o.value},set(y){if(!y)return;o.value=y;const b=y.toDate();t(wn,b),t(ot,b)}}),s=x(()=>{if(!e.range||!be(e.range)||e.range.length!==2||e.range.some(w=>!Fl(w)))return[];const[y,b]=e.range.map(w=>st(w).locale(a.value));return y.isAfter(b)?(pt(n,"end time should be greater than start time"),[]):y.isSame(b,"month")?g(y,b):y.add(1,"month").month()!==b.month()?(pt(n,"start time and end time interval must not exceed two months"),[]):g(y,b)}),u=x(()=>e.modelValue?st(e.modelValue).locale(a.value):r.value||(s.value.length?s.value[0][0]:l)),c=x(()=>u.value.subtract(1,"month").date(1)),d=x(()=>u.value.add(1,"month").date(1)),f=x(()=>u.value.subtract(1,"year").date(1)),h=x(()=>u.value.add(1,"year").date(1)),g=(y,b)=>{const w=y.startOf("week"),_=b.endOf("week"),S=w.get("month"),k=_.get("month");return S===k?[[w,_]]:(S+1)%12===k?wj(w,_):S+2===k||(S+1)%11===k?Cj(w,_):(pt(n,"start time and end time interval must not exceed two months"),[])},p=y=>{r.value=y},v=y=>{const b={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:l}[y];b.isSame(u.value,"day")||p(b)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:r,pickDay:p,selectDate:v,validatedRange:s,handleDateChange:y=>{y==="today"?v("today"):p(y)}}},Sj=_e({date:{type:J(Object),required:!0},formatter:{type:J(Function)}}),xj={"date-change":e=>lt(e)||Be(e)};var kj=D({name:"SelectController",__name:"select-controller",props:Sj,emits:xj,setup(e,{emit:t}){const n=e,a=t,o=ve("calendar-select"),{t:l,lang:r}=kt(),s=Array.from({length:12},(p,v)=>{const m=v+1;return{value:m,label:Fe(n.formatter)?n.formatter(m,"month"):m}}),u=x(()=>n.date.year()),c=x(()=>n.date.month()+1),d=x(()=>{const p=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const y=Fe(n.formatter)?n.formatter(m,"year"):m;p.push({value:m,label:y})}}return p}),f=p=>{a("date-change",st(new Date(p,c.value-1,1)).locale(r.value))},h=p=>{a("date-change",st(new Date(u.value,p-1,1)).locale(r.value))},g=()=>{a("date-change","today")};return(p,v)=>(C(),$(Ke,null,[Q(i(Yl),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),Q(i(Yl),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(s),onChange:h},null,8,["model-value","class","options"]),Q(i(An),{size:"small",onClick:g},{default:ae(()=>[St(Se(i(l)("el.datepicker.today")),1)]),_:1})],64))}}),Ej=kj;const rg="ElCalendar";var Tj=D({name:rg,__name:"calendar",props:vW,emits:mW,setup(e,{expose:t,emit:n}){const a=ve("calendar"),{calculateValidatedDateRange:o,date:l,pickDay:r,realSelectedDay:s,selectDate:u,validatedRange:c,handleDateChange:d}=_j(e,n,rg),{t:f}=kt(),h=x(()=>{const g=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:s,pickDay:r,selectDate:u,calculateValidatedDateRange:o}),(g,p)=>(C(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:h.value},()=>[E("div",{class:R(i(a).e("title"))},Se(h.value),3),i(c).length===0&&e.controllerType==="button"?(C(),$("div",{key:0,class:R(i(a).e("button-group"))},[Q(i(ob),null,{default:ae(()=>[Q(i(An),{size:"small",onClick:p[0]||(p[0]=v=>i(u)("prev-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.prevMonth")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[1]||(p[1]=v=>i(u)("today"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.today")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[2]||(p[2]=v=>i(u)("next-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(C(),$("div",{key:1,class:R(i(a).e("select-controller"))},[Q(Ej,{date:i(l),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(C(),$("div",{key:0,class:R(i(a).e("body"))},[Q(lg,{date:i(l),"selected-day":i(s),onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(v=>[oe(g.$slots,"date-cell",nl(al(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(C(),$("div",{key:1,class:R(i(a).e("body"))},[(C(!0),$(Ke,null,_t(i(c),(v,m)=>(C(),ie(lg,{key:m,date:v[0],"selected-day":i(s),range:v,"hide-header":m!==0,onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(y=>[oe(g.$slots,"date-cell",ht({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),Mj=Tj;const Oj=it(Mj),$j=_e({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var Aj=D({name:"ElCard",__name:"card",props:$j,setup(e){const t=_l("card"),n=ve("card");return(a,o)=>{var l;return C(),$("div",{class:R([i(n).b(),i(n).is(`${e.shadow||((l=i(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(C(),$("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[St(Se(e.header),1)])],2)):re("v-if",!0),E("div",{class:R([i(n).e("body"),e.bodyClass]),style:qe(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(C(),$("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[St(Se(e.footer),1)])],2)):re("v-if",!0)],2)}}}),Rj=Aj;const Nj=it(Rj),Pj=_e({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Ij={change:(e,t)=>[e,t].every(He)},_b=Symbol("carouselContextKey"),tu="ElCarouselItem",Lj=_e({name:{type:String,default:""},label:{type:[String,Number],default:""}}),sg=300,Vj=(e,t,n)=>{const{children:a,addChild:o,removeChild:l,ChildrenSorter:r}=cf(vt(),tu),s=hn(),u=V(-1),c=V(null),d=V(!1),f=V(),h=V(0),g=V(!0),p=x(()=>e.arrow!=="never"&&!i(y)),v=x(()=>a.value.some(te=>te.props.label.toString().length>0)),m=x(()=>e.type==="card"),y=x(()=>e.direction==="vertical"),b=x(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Il(te=>{A(te)},sg,{trailing:!0}),_=Il(te=>{N(te)},sg),S=te=>g.value?u.value<=1?te<=1:te>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>M(),e.interval))}const M=()=>{u.valuese.props.name===te);de.length>0&&(te=a.value.indexOf(de[0]))}if(te=Number(te),Number.isNaN(te)||te!==Math.floor(te)){pt(n,"index must be integer.");return}const ue=a.value.length,ne=u.value;te<0?u.value=e.loop?ue-1:0:te>=ue?u.value=e.loop?0:ue-1:u.value=te,ne===u.value&&O(ne),K()}function O(te){a.value.forEach((ue,ne)=>{ue.translateItem(ne,u.value,te)})}function I(te,ue){var ge,me,Ae,Ne;const ne=i(a),de=ne.length;if(de===0||!te.states.inStage)return!1;const se=ue+1,Y=ue-1,X=de-1,H=ne[X].states.active,Z=ne[0].states.active,le=(me=(ge=ne[se])==null?void 0:ge.states)==null?void 0:me.active,ce=(Ne=(Ae=ne[Y])==null?void 0:Ae.states)==null?void 0:Ne.active;return ue===X&&Z||le?"left":ue===0&&H||ce?"right":!1}function L(){d.value=!0,e.pauseOnHover&&k()}function z(){d.value=!1,T()}function q(te){i(y)||a.value.forEach((ue,ne)=>{te===I(ue,ne)&&(ue.states.hover=!0)})}function U(){i(y)||a.value.forEach(te=>{te.states.hover=!1})}function F(te){u.value=te}function N(te){e.trigger==="hover"&&te!==u.value&&(u.value=te)}function P(){A(u.value-1)}function B(){A(u.value+1)}function K(){k(),(!e.pauseOnHover||!d.value)&&T()}function W(te){e.height==="auto"&&(h.value=te)}function j(){var ne;const te=(ne=s.default)==null?void 0:ne.call(s);if(!te)return null;const ue=Ta(te).filter(de=>Wt(de)&&de.type.name===tu);return(ue==null?void 0:ue.length)===2&&e.loop&&!m.value?(g.value=!0,ue):(g.value=!1,null)}fe(()=>u.value,(te,ue)=>{O(ue),g.value&&(te=te%2,ue=ue%2),ue>-1&&t(bt,te,ue)});const G=x({get:()=>g.value?u.value%2:u.value,set:te=>u.value=te});fe(()=>e.autoplay,te=>{te?T():k()}),fe(()=>e.loop,()=>{A(u.value)}),fe(()=>e.interval,()=>{K()});const ee=qt();return gt(()=>{fe(()=>a.value,()=>{a.value.length>0&&A(e.initialIndex)},{immediate:!0}),ee.value=Zt(f.value,()=>{O()}),T()}),Lt(()=>{k(),f.value&&ee.value&&ee.value.stop()}),wt(_b,{root:f,isCardType:m,isVertical:y,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:l,setActiveItem:A,setContainerHeight:W}),{root:f,activeIndex:u,exposeActiveIndex:G,arrowDisplay:p,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:y,containerStyle:b,isItemsTwoLength:g,handleButtonEnter:q,handleButtonLeave:U,handleIndicatorClick:F,handleMouseEnter:L,handleMouseLeave:z,setActiveItem:A,prev:P,next:B,PlaceholderItem:j,isTwoLengthShow:S,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:_}},Bj=["aria-label"],zj=["aria-label"],Dj=["onMouseenter","onClick"],Hj=["aria-label"],Fj={key:0},Kj={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},ig="ElCarousel";var Wj=D({name:ig,__name:"carousel",props:Pj,emits:Ij,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:l,exposeActiveIndex:r,arrowDisplay:s,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:h,containerStyle:g,handleButtonEnter:p,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:_,next:S,PlaceholderItem:k,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:A,throttledIndicatorHover:O}=Vj(a,n,ig),I=ve("carousel"),{t:L}=kt(),z=x(()=>{const N=[I.b(),I.m(a.direction)];return i(d)&&N.push(I.m("card")),N.push(I.is("vertical-outside",i(h)&&a.indicatorPosition==="outside")),N}),q=x(()=>{const N=[I.e("indicators"),I.em("indicators",a.direction)];return i(u)&&N.push(I.em("indicators","labels")),a.indicatorPosition==="outside"&&N.push(I.em("indicators","outside")),i(h)&&N.push(I.em("indicators","right")),N});function U(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function F(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:r,setActiveItem:w,prev:_,next:S}),(N,P)=>(C(),$("div",{ref_key:"root",ref:o,class:R(z.value),onMouseenter:P[6]||(P[6]=Je((...B)=>i(y)&&i(y)(...B),["stop"])),onMouseleave:P[7]||(P[7]=Je((...B)=>i(b)&&i(b)(...B),["stop"]))},[i(s)?(C(),ie(Fn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","left")]),"aria-label":i(L)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=B=>i(p)("left")),onMouseleave:P[1]||(P[1]=(...B)=>i(v)&&i(v)(...B)),onClick:P[2]||(P[2]=Je(B=>i(A)(i(l)-1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],42,Bj),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(l)>0)]])]),_:1})):re("v-if",!0),i(s)?(C(),ie(Fn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","right")]),"aria-label":i(L)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=B=>i(p)("right")),onMouseleave:P[4]||(P[4]=(...B)=>i(v)&&i(v)(...B)),onClick:P[5]||(P[5]=Je(B=>i(A)(i(l)+1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],42,zj),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(l)[e.indicatorPosition!=="none"?(C(),$("ul",{key:0,class:R(q.value)},[(C(!0),$(Ke,null,_t(i(f),(B,K)=>ft((C(),$("li",{key:K,class:R([i(I).e("indicator"),i(I).em("indicator",e.direction),i(I).is("active",K===i(l))]),onMouseenter:W=>i(O)(K),onClick:Je(W=>i(m)(K),["stop"])},[E("button",{class:R(i(I).e("button")),"aria-label":i(L)("el.carousel.indicator",{index:K+1})},[i(u)?(C(),$("span",Fj,Se(B.props.label),1)):re("v-if",!0)],10,Hj)],42,Dj)),[[$t,i(T)(K)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(C(),$("svg",Kj,[...P[8]||(P[8]=[E("defs",null,[E("filter",{id:"elCarouselHorizontal"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),E("filter",{id:"elCarouselVertical"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),jj=Wj;const qj=e=>{const t=Pe(_b),n=vt();t||pt(tu,"usage: "),n||pt(tu,"compositional hook can only be invoked inside setups");const a=V(),o=V(!1),l=V(0),r=V(1),s=V(!1),u=V(!1),c=V(!1),d=V(!1),{isCardType:f,isVertical:h,cardScale:g}=t;function p(_,S,k){const T=k-1,M=S-1,A=S+1,O=k/2;return S===0&&_===T?-1:S===T&&_===0?k:_=O?k+1:_>A&&_-S>=O?-2:_}function v(_,S){var T,M;const k=i(h)?((T=t.root.value)==null?void 0:T.offsetHeight)||0:((M=t.root.value)==null?void 0:M.offsetWidth)||0;return c.value?k*((2-g)*(_-S)+1)/4:_{const T=i(f),M=t.items.value.length??NaN,A=_===S;!T&&!Et(k)&&(d.value=A||_===k),!A&&M>2&&t.loop&&(_=p(_,S,M));const O=i(h);s.value=A,T?(c.value=Math.round(Math.abs(_-S))<=1,l.value=v(_,S),r.value=i(s)?1:g):l.value=m(_,S,O),u.value=!0,A&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function b(){if(t&&i(f)){const _=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(_)}}const w={props:e,states:Rt({hover:o,translate:l,scale:r,active:s,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(w),Lt(()=>{t.removeItem(w)}),{carouselItemRef:a,active:s,animating:d,hover:o,inStage:c,isVertical:h,translate:l,isCardType:f,scale:r,ready:u,handleItemClick:b}};var Uj=D({name:tu,__name:"carousel-item",props:Lj,setup(e){const t=e,n=ve("carousel"),{carouselItemRef:a,active:o,animating:l,hover:r,inStage:s,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:g}=qj(t),p=x(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",r.value),n.is("animating",l.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=x(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,y)=>ft((C(),$("div",{ref_key:"carouselItemRef",ref:a,class:R(p.value),style:qe(v.value),onClick:y[0]||(y[0]=(...b)=>i(g)&&i(g)(...b))},[i(d)?ft((C(),$("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[$t,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[$t,i(h)]])}}),Sb=Uj;const Yj=it(jj,{CarouselItem:Sb}),Gj=tn(Sb),xb=_e({modelValue:{type:J([Number,String,Array,Object])},options:{type:J(Array),default:()=>[]},props:{type:J(Object),default:()=>({})}}),Xj={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:It,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Jj=_e({...xb,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),ug=e=>!0,Zj={[ot]:ug,[bt]:ug,close:()=>!0,"expand-change":e=>e},Qj=e=>x(()=>({...Xj,...e.props})),kb={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:kn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...oa(["ariaControls"])},Eb={[ot]:e=>Be(e)||He(e)||Dt(e),change:e=>Be(e)||He(e)||Dt(e)},Js=Symbol("checkboxGroupContextKey"),eq=_e({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:kn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Tb},type:{type:String,values:["checkbox","button"],default:"checkbox"},...oa(["ariaLabel"])}),tq={[ot]:e=>be(e),change:e=>be(e)},Tb={label:"label",value:"value",disabled:"disabled"},nq=({model:e,isChecked:t})=>{const n=Pe(Js,void 0),a=Pe(jr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(l)&&e.value.length>=l&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:rn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},aq=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Pe(Js,void 0),{formItem:s}=Bn(),{emit:u}=vt();function c(p){return[!0,e.trueValue,e.trueLabel].includes(p)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(p,v){u(bt,c(p),v)}function f(p){if(n.value)return;const v=p.target;u(bt,c(v.checked),p)}async function h(p){n.value||!a.value&&!o.value&&l.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Le(),d(t.value,p)))}const g=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(p=>pt(p)))}),{handleChange:f,onClickRoot:h}},oq=e=>{const t=V(!1),{emit:n,vnode:a}=vt(),o=Pe(Js,void 0),l=x(()=>Et(o)===!1),r=V(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&be(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(ot,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},lq=(e,t,{model:n})=>{const a=Pe(Js,void 0),o=V(!1),l=x(()=>ya(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Dt(s)?s:be(s)?lt(l.value)?s.map(jt).some(u=>an(u,l.value)):s.map(jt).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!ya(l.value)),actualValue:l}},Mb=(e,t)=>{const{formItem:n}=Bn(),{model:a,isGroup:o,isLimitExceeded:l}=oq(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=lq(e,t,{model:a}),{isDisabled:h}=nq({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:p}=Pa(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=aq(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){be(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),$o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>o.value&&ya(e.value))),$o({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),$o({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:p,isChecked:s,isDisabled:h,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},rq=["id","indeterminate","name","tabindex","disabled"];var sq=D({name:"ElCheckbox",__name:"checkbox",props:kb,emits:Eb,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:l,isFocused:r,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Mb(t,hn()),g=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),p=ve("checkbox"),v=x(()=>[p.b(),p.m(s.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=x(()=>[p.e("input"),p.is("disabled",l.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(y,b)=>(C(),ie(dt(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(h)},{default:ae(()=>[E("span",{class:R(m.value)},[ft(E("input",ht({id:i(n),"onUpdate:modelValue":b[0]||(b[0]=w=>Yt(c)?c.value=w:null),class:i(p).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(l)},g.value,{onChange:b[1]||(b[1]=(...w)=>i(f)&&i(f)(...w)),onFocus:b[2]||(b[2]=w=>r.value=!0),onBlur:b[3]||(b[3]=w=>r.value=!1),onClick:b[4]||(b[4]=Je(()=>{},["stop"]))}),null,16,rq),[[d6,i(c)]]),E("span",{class:R(i(p).e("inner"))},null,2)],2),i(u)?(C(),$("span",{key:0,class:R(i(p).e("label"))},[oe(y.$slots,"default"),y.$slots.default?re("v-if",!0):(C(),$(Ke,{key:0},[St(Se(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Ob=sq;const iq=["name","tabindex","disabled"];var uq=D({name:"ElCheckboxButton",__name:"checkbox-button",props:kb,emits:Eb,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:l,model:r,actualValue:s,handleChange:u}=Mb(t,hn()),c=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:s.value}),d=Pe(Js,void 0),f=ve("checkbox"),h=x(()=>{var v,m;const p=((v=d==null?void 0:d.fill)==null?void 0:v.value)??"";return{backgroundColor:p,borderColor:p,color:((m=d==null?void 0:d.textColor)==null?void 0:m.value)??"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),g=x(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(p,v)=>(C(),$("label",{class:R(g.value)},[ft(E("input",ht({"onUpdate:modelValue":v[0]||(v[0]=m=>Yt(r)?r.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Je(()=>{},["stop"]))}),null,16,iq),[[d6,i(r)]]),p.$slots.default||e.label?(C(),$("span",{key:0,class:R(i(f).be("button","inner")),style:qe(i(a)?h.value:void 0)},[oe(p.$slots,"default",{},()=>[St(Se(e.label),1)])],6)):re("v-if",!0)],2))}}),Rh=uq,cq=D({name:"ElCheckboxGroup",__name:"checkbox-group",props:eq,emits:tq,setup(e,{emit:t}){const n=e,a=t,o=ve("checkbox"),l=rn(),{formItem:r}=Bn(),{inputId:s,isLabeledByFormItem:u}=Pa(n,{formItemContext:r}),c=async p=>{a(ot,p),await Le(),a(bt,p)},d=x({get(){return n.modelValue},set(p){c(p)}}),f=x(()=>({...Tb,...n.props})),h=p=>{const{label:v,value:m,disabled:y}=f.value,b={label:p[v],value:p[m],disabled:p[y]};return{...Su(p,[v,m,y]),...b}},g=x(()=>n.type==="button"?Rh:Ob);return wt(Js,{...ul(Nn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:d,changeEvent:c}),fe(()=>n.modelValue,(p,v)=>{n.validateEvent&&!an(p,v)&&(r==null||r.validate("change").catch(m=>pt(m)))}),(p,v)=>{var m;return C(),ie(dt(e.tag),{id:i(s),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?(m=i(r))==null?void 0:m.labelId:void 0},{default:ae(()=>[oe(p.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(y,b)=>(C(),ie(dt(g.value),ht({key:b},{ref_for:!0},h(y)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),$b=cq;const lo=it(Ob,{CheckboxButton:Rh,CheckboxGroup:$b}),dq=tn(Rh),Nh=tn($b),Ab=_e({modelValue:{type:[String,Number,Boolean],default:void 0},size:kn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),fq=_e({...Ab,border:Boolean}),Rb={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Nb=Symbol("radioGroupKey"),pq=_e({...Ab}),Pb={label:"label",value:"value",disabled:"disabled"},hq=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Pb},type:{type:String,values:["radio","button"],default:"radio"},...oa(["ariaLabel"])}),vq=Rb,Ib=(e,t)=>{const n=V(),a=Pe(Nb,void 0),o=x(()=>!!a),l=x(()=>ya(e.value)?e.label:e.value),r=x({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t(ot,f),n.value.checked=e.modelValue===l.value}}),s=_n(x(()=>a==null?void 0:a.size)),u=rn(x(()=>a==null?void 0:a.disabled)),c=V(!1),d=x(()=>u.value||o.value&&r.value!==l.value?-1:0);return $o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>o.value&&ya(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:s,disabled:u,tabIndex:d,modelValue:r,actualValue:l}},mq=["value","name","disabled","checked"];var gq=D({name:"ElRadio",__name:"radio",props:fq,emits:Rb,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),{radioRef:l,radioGroup:r,focus:s,size:u,disabled:c,modelValue:d,actualValue:f}=Ib(n,a);function h(){Le(()=>a(bt,d.value))}return(g,p)=>{var v;return C(),$("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(s)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[E("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[ft(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=m=>Yt(d)?d.value=m:null),class:R(i(o).e("original")),value:i(f),name:e.name||((v=i(r))==null?void 0:v.name),disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:h,onClick:p[3]||(p[3]=Je(()=>{},["stop"]))},null,42,mq),[[f6,i(d)]]),E("span",{class:R(i(o).e("inner"))},null,2)],2),E("span",{class:R(i(o).e("label")),onKeydown:p[4]||(p[4]=Je(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[St(Se(e.label),1)])],34)],2)}}}),Lb=gq;const yq=["value","name","disabled"];var bq=D({name:"ElRadioButton",__name:"radio-button",props:pq,setup(e){const t=e,n=ve("radio"),{radioRef:a,focus:o,size:l,disabled:r,modelValue:s,radioGroup:u,actualValue:c}=Ib(t),d=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var g;return C(),$("label",{class:R([i(n).b("button"),i(n).is("active",i(s)===i(c)),i(n).is("disabled",i(r)),i(n).is("focus",i(o)),i(n).bm("button",i(l))])},[ft(E("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>Yt(s)?s.value=p:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||((g=i(u))==null?void 0:g.name),disabled:i(r),onFocus:h[1]||(h[1]=p=>o.value=!0),onBlur:h[2]||(h[2]=p=>o.value=!1),onClick:h[3]||(h[3]=Je(()=>{},["stop"]))},null,42,yq),[[f6,i(s)]]),E("span",{class:R(i(n).be("button","inner")),style:qe(i(s)===i(c)?d.value:{}),onKeydown:h[4]||(h[4]=Je(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[St(Se(e.label),1)])],38)],2)}}}),Ph=bq;const wq=["id","aria-label","aria-labelledby"];var Cq=D({name:"ElRadioGroup",__name:"radio-group",props:hq,emits:vq,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),l=Kn(),r=V(),{formItem:s}=Bn(),{inputId:u,isLabeledByFormItem:c}=Pa(n,{formItemContext:s}),d=v=>{a(ot,v),Le(()=>a(bt,v))};gt(()=>{const v=r.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=x(()=>n.name||l.value),h=x(()=>({...Pb,...n.props})),g=v=>{const{label:m,value:y,disabled:b}=h.value,w={label:v[m],value:v[y],disabled:v[b]};return{...Su(v,[m,y,b]),...w}},p=x(()=>n.type==="button"?Ph:Lb);return wt(Nb,Rt({...Nn(n),changeEvent:d,name:f})),fe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!an(v,m)&&(s==null||s.validate("change").catch(y=>pt(y)))}),(v,m)=>(C(),$("div",{id:i(u),ref_key:"radioGroupRef",ref:r,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(s).labelId:void 0},[oe(v.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(y,b)=>(C(),ie(dt(p.value),ht({key:b},{ref_for:!0},g(y)),null,16))),128))])],10,wq))}}),Vb=Cq;const Bb=it(Lb,{RadioButton:Ph,RadioGroup:Vb}),_q=tn(Vb),Sq=tn(Ph),mf=Symbol();function xq(e){return!!(be(e)?e.every(({type:t})=>t===mn):(e==null?void 0:e.type)===mn)}var kq=D({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ve("cascader-node"),{renderLabelFn:n}=Pe(mf),{node:a}=e,{data:o,label:l}=a,r=()=>{const s=n==null?void 0:n({node:a,data:o});return xq(s)?l:s??l};return()=>Q("span",{class:t.e("label")},[r()])}});const Eq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var Tq=D({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=Pe(mf),l=ve("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),u=x(()=>o.config.checkStrictly),c=x(()=>o.config.showPrefix),d=x(()=>{var A;return(A=o.checkedNodes[0])==null?void 0:A.uid}),f=x(()=>n.node.isDisabled),h=x(()=>n.node.isLeaf),g=x(()=>u.value&&!h.value||!f.value),p=x(()=>m(o.expandingNode)),v=x(()=>u.value&&o.checkedNodes.some(m)),m=A=>{var L;const{level:O,uid:I}=n.node;return((L=A==null?void 0:A.pathNodes[O-1])==null?void 0:L.uid)===I},y=()=>{p.value||o.expandNode(n.node)},b=A=>{const{node:O}=n;A!==O.checked&&o.handleCheckChange(O,A)},w=()=>{o.lazyLoad(n.node,()=>{h.value||y()})},_=A=>{r.value&&(S(),!h.value&&a("expand",A))},S=()=>{const{node:A}=n;!g.value||A.loading||(A.loaded?y():w())},k=()=>{h.value&&!f.value&&!u.value&&!s.value?M(!0):(o.config.checkOnClickNode&&(s.value||u.value)||h.value&&o.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||S()},T=A=>{u.value?(b(A),n.node.loaded&&y()):M(A)},M=A=>{n.node.loaded?(b(A),!u.value&&y()):w()};return(A,O)=>(C(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":p.value,tabindex:g.value?-1:void 0,class:R([i(l).b(),i(l).is("selectable",u.value),i(l).is("active",e.node.checked),i(l).is("disabled",!g.value),p.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:_,onFocus:_,onClick:k},[re(" prefix "),s.value&&c.value?(C(),ie(i(lo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:O[0]||(O[0]=Je(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(C(),ie(i(Bb),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:O[1]||(O[1]=Je(()=>{},["stop"]))},{default:ae(()=>[re(` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),u=function(C){return C&&C.exact?l:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+o+t(C)+")","g")};u.v4=function(w){return w&&w.exact?r:new RegExp(""+t(w)+n+t(w),"g")},u.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+o+t(w),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+h+"|"+g+p+v+")"+m+y;return sc=new RegExp("(?:^"+b+"$)","i"),sc},Lm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},bi={integer:function(t){return bi.number(t)&&parseInt(t,10)===t},float:function(t){return bi.number(t)&&!bi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!bi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Lm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(zH())},hex:function(t){return typeof t=="string"&&!!t.match(Lm.hex)}},DH=function(t,n,a,o,l){if(t.required&&n===void 0){Fy(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?bi[s](n)||o.push(Ma(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Ma(l.messages.types[s],t.fullField,t.type))},HH=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(Ma(l.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?o.push(Ma(l.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&o.push(Ma(l.messages[f].range,t.fullField,t.min,t.max))},Xr="enum",FH=function(t,n,a,o,l){t[Xr]=Array.isArray(t[Xr])?t[Xr]:[],t[Xr].indexOf(n)===-1&&o.push(Ma(l.messages[Xr],t.fullField,t[Xr].join(", ")))},KH=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ut={required:Fy,whitespace:BH,type:DH,range:HH,enum:FH,pattern:KH},WH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l,"string"),Ln(n,"string")||(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l),Ut.pattern(t,n,o,r,l),t.whitespace===!0&&Ut.whitespace(t,n,o,r,l))}a(r)},jH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},qH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},UH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},YH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n)||Ut.type(t,n,o,r,l)}a(r)},GH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},XH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},JH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Ut.required(t,n,o,r,l,"array"),n!=null&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},ZH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},QH="enum",eF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut[QH](t,n,o,r,l)}a(r)},tF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n,"string")||Ut.pattern(t,n,o,r,l)}a(r)},nF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"date")&&!t.required)return a();if(Ut.required(t,n,o,r,l),!Ln(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ut.type(t,u,o,r,l),u&&Ut.range(t,u.getTime(),o,r,l)}}a(r)},aF=function(t,n,a,o,l){var r=[],s=Array.isArray(n)?"array":typeof n;Ut.required(t,n,o,r,l,s),a(r)},o0=function(t,n,a,o,l){var r=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Ln(n,r)&&!t.required)return a();Ut.required(t,n,o,s,l,r),Ln(n,r)||Ut.type(t,n,o,s,l)}a(s)},oF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l)}a(r)},Ii={string:WH,method:jH,number:qH,boolean:UH,regexp:YH,integer:GH,float:XH,array:JH,object:ZH,enum:eF,pattern:tF,date:nF,url:o0,hex:o0,email:o0,required:aF,any:oF};function w2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var C2=w2(),Bu=function(){function e(n){this.rules=null,this._messages=C2,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var r=a[l];o.rules[l]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=Im(w2(),a)),this._messages},t.validate=function(a,o,l){var r=this;o===void 0&&(o={}),l===void 0&&(l=function(){});var s=a,u=o,c=l;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(v){var m=[],y={};function b(C){if(Array.isArray(C)){var S;m=(S=m).concat.apply(S,C)}else m.push(C)}for(var w=0;wn.labelPosition||(o==null?void 0:o.labelPosition)),y=x(()=>m.value==="top"?{}:{width:rn(n.labelWidth??(o==null?void 0:o.labelWidth))}),b=x(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const Y=rn(n.labelWidth??(o==null?void 0:o.labelWidth));return!n.label&&!a.label?{marginLeft:Y}:{}}),w=x(()=>[s.b(),s.m(r.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",U.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${m.value}`)]:m.value}]),C=x(()=>Dt(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=x(()=>[s.e("error"),{[s.em("error","inline")]:C.value}]),k=x(()=>n.prop?be(n.prop)?n.prop.join("."):n.prop:""),T=x(()=>!!(n.label||a.label)),M=x(()=>n.for??(c.value.length===1?c.value[0]:void 0)),A=x(()=>!M.value&&T.value),O=!!l,I=x(()=>{const Y=o==null?void 0:o.model;if(!(!Y||!n.prop))return zl(Y,n.prop).value}),L=x(()=>{const{required:Y}=n,X=[];n.rules&&X.push(...$n(n.rules));const H=o==null?void 0:o.rules;if(H&&n.prop){const Z=zl(H,n.prop).value;Z&&X.push(...$n(Z))}if(Y!==void 0){const Z=X.map((le,ce)=>[le,ce]).filter(([le])=>"required"in le);if(Z.length>0)for(const[le,ce]of Z)le.required!==Y&&(X[ce]={...le,required:Y});else X.push({required:Y})}return X}),z=x(()=>L.value.length>0),q=Y=>L.value.filter(X=>!X.trigger||!Y?!0:be(X.trigger)?X.trigger.includes(Y):X.trigger===Y).map(({trigger:X,...H})=>H),U=x(()=>L.value.some(Y=>Y.required)),F=x(()=>f.value==="error"&&n.showMessage&&((o==null?void 0:o.showMessage)??!0)),N=x(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),P=Y=>{d.value=Y},B=Y=>{var Z;const{errors:X,fields:H}=Y;(!X||!H)&&console.error(Y),P("error"),h.value=X?((Z=X==null?void 0:X[0])==null?void 0:Z.message)??`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},W=()=>{P("success"),o==null||o.emit("validate",n.prop,!0,"")},K=async Y=>{const X=k.value;return new Bu({[X]:Y}).validate({[X]:I.value},{firstFields:!0}).then(()=>(W(),!0)).catch(H=>(B(H),Promise.reject(H)))},j=async(Y,X)=>{if(v||!n.prop)return!1;const H=Fe(X);if(!z.value)return X==null||X(!1),!1;const Z=q(Y);return Z.length===0?(X==null||X(!0),!0):(P("validating"),K(Z).then(()=>(X==null||X(!0),!0)).catch(le=>{const{fields:ce}=le;return X==null||X(!1,ce),H?!1:Promise.reject(ce)}))},G=()=>{P(""),h.value="",v=!1},ee=async()=>{const Y=o==null?void 0:o.model;if(!Y||!n.prop)return;const X=zl(Y,n.prop);v=!0,X.value=Eo(p),await Le(),G(),v=!1},te=Y=>{c.value.includes(Y)||c.value.push(Y)},ue=Y=>{c.value=c.value.filter(X=>X!==Y)},ne=Y=>{p=Eo(Y)},de=()=>p;fe(()=>n.error,Y=>{h.value=Y||"",P(Y?"error":"")},{immediate:!0}),fe(()=>n.validateStatus,Y=>P(Y||""));const se=Nt({...Nn(n),$el:g,size:r,validateMessage:h,validateState:d,labelId:u,inputIds:c,isGroup:A,hasLabel:T,fieldValue:I,addInputId:te,removeInputId:ue,resetField:ee,clearValidate:G,validate:j,propString:k,setInitialValue:ne,getInitialValue:de});return wt(Do,se),fe(k,(Y,X)=>{!o||!X||(o.removeField(se,X),Y&&(ne(I.value),o.addField(se)))}),gt(()=>{n.prop&&(ne(I.value),o==null||o.addField(se))}),Lt(()=>{o==null||o.removeField(se)}),t({size:r,validateMessage:h,validateState:d,validate:j,clearValidate:G,resetField:ee,setInitialValue:ne}),(Y,X)=>{var H;return _(),$("div",{ref_key:"formItemRef",ref:g,class:R(w.value),role:A.value?"group":void 0,"aria-labelledby":A.value?i(u):void 0},[Q(i(EH),{"is-auto-width":y.value.width==="auto","update-all":((H=i(o))==null?void 0:H.labelWidth)==="auto"},{default:ae(()=>[e.label||Y.$slots.label?(_(),ie(dt(M.value?"label":"div"),{key:0,id:i(u),for:M.value,class:R(i(s).e("label")),style:qe(y.value)},{default:ae(()=>[oe(Y.$slots,"label",{label:N.value},()=>[St(Se(N.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(i(s).e("content")),style:qe(b.value)},[oe(Y.$slots,"default"),Q(u6,{name:`${i(s).namespace.value}-zoom-in-top`},{default:ae(()=>[F.value?oe(Y.$slots,"error",{key:0,error:h.value},()=>[E("div",{class:R(S.value)},Se(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,lF)}}}),Ky=rF;const sF=it(kH,{FormItem:Ky}),iF=nn(Ky),l0="focus-trap.focus-after-trapped",r0="focus-trap.focus-after-released",uF="focus-trap.focusout-prevented",Vm={cancelable:!0,bubbles:!1},cF={cancelable:!0,bubbles:!1},Bm="focusAfterTrapped",zm="focusAfterReleased",Wy=Symbol("elFocusTrap"),_h=V(),vf=V(0),Sh=V(0);let ic=0;const jy=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Dm=(e,t)=>{for(const n of e)if(!dF(n,t))return n},dF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},fF=e=>{const t=jy(e);return[Dm(t,e),Dm(t.reverse(),e)]},pF=e=>e instanceof HTMLInputElement&&"select"in e,$l=(e,t)=>{if(e){const n=document.activeElement;Eu(e,{preventScroll:!0}),Sh.value=window.performance.now(),e!==n&&pF(e)&&t&&e.select()}};function Hm(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const hF=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=Hm(e,a),e.unshift(a)},remove:a=>{var o,l;e=Hm(e,a),(l=(o=e[0])==null?void 0:o.resume)==null||l.call(o)}}},vF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if($l(a,t),document.activeElement!==n)return},Fm=hF(),mF=()=>vf.value>Sh.value,uc=()=>{_h.value="pointer",vf.value=window.performance.now()},Km=()=>{_h.value="keyboard",vf.value=window.performance.now()},gF=()=>(gt(()=>{ic===0&&(document.addEventListener("mousedown",uc),document.addEventListener("touchstart",uc),document.addEventListener("keydown",Km)),ic++}),Lt(()=>{ic--,ic<=0&&(document.removeEventListener("mousedown",uc),document.removeEventListener("touchstart",uc),document.removeEventListener("keydown",Km))}),{focusReason:_h,lastUserFocusTimestamp:vf,lastAutomatedFocusTimestamp:Sh}),cc=e=>new CustomEvent(uF,{...cF,detail:e});var yF=D({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Bm,zm,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let a,o;const{focusReason:l}=gF();DO(p=>{e.trapped&&!r.paused&&t("release-requested",p)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:w}=p,{loop:C}=e,S=Kt(p)===Ce.tab&&!v&&!m&&!y,k=document.activeElement;if(S&&k){const T=b,[M,A]=fF(T);if(M&&A){if(!w&&k===A){const O=cc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&$l(M,!0))}else if(w&&[M,T].includes(k)){const O=cc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&$l(A,!0))}}else if(k===T){const O=cc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||p.preventDefault()}}};wt(Wy,{focusTrapRef:n,onKeydown:s}),fe(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),fe([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=p=>{t(Bm,p)},c=p=>t(zm,p),d=p=>{const v=i(n);if(!v)return;const m=p.target,y=p.relatedTarget,b=m&&v.contains(m);e.trapped||y&&v.contains(y)||(a=y),b&&t("focusin",p),!r.paused&&e.trapped&&(b?o=m:$l(o,!0))},f=p=>{const v=i(n);if(!(r.paused||!v))if(e.trapped){const m=p.relatedTarget;!yn(m)&&!v.contains(m)&&setTimeout(()=>{if(!r.paused&&e.trapped){const y=cc({focusReason:l.value});t("focusout-prevented",y),y.defaultPrevented||$l(o,!0)}},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Le();const p=i(n);if(p){Fm.push(r);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(l0,Vm);p.addEventListener(l0,u),p.dispatchEvent(m),m.defaultPrevented||Le(()=>{let y=e.focusStartEl;Be(y)||($l(y),document.activeElement!==y&&(y="first")),y==="first"&&vF(jy(p),!0),(document.activeElement===v||y==="container")&&$l(p)})}}}function g(){const p=i(n);if(p){p.removeEventListener(l0,u);const v=new CustomEvent(r0,{...Vm,detail:{focusReason:l.value}});p.addEventListener(r0,c),p.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!mF()||p.contains(document.activeElement))&&$l(a??document.body),p.removeEventListener(r0,c),Fm.remove(r),a=null,o=null}}return gt(()=>{e.trapped&&h(),fe(()=>e.trapped,p=>{p?h():g()})}),Lt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:s}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function bF(e,t,n,a,o,l){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var wF=En(yF,[["render",bF]]),Js=wF;const CF=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,l={placement:n,strategy:a,...o,modifiers:[...SF(e),...t]};return xF(l,o==null?void 0:o.modifiers),l},_F=e=>{if(Rt)return xn(e)};function SF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function xF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kF=0,EF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=Pe(Ch,void 0),l=V(),r=x(()=>e.arrowOffset),s=x(()=>({name:"eventListeners",enabled:!!e.visible})),u=x(()=>{const b=i(l),w=i(r)??kF;return{name:"arrow",enabled:!FT(b),options:{element:b,padding:w}}}),c=x(()=>({onFirstUpdate:()=>{p()},...CF(e,[i(u),i(s)])})),d=x(()=>_F(e.referenceEl)||i(a)),{attributes:f,state:h,styles:g,update:p,forceUpdate:v,instanceRef:m}=LO(d,n,c);fe(m,b=>t.value=b,{flush:"sync"}),gt(()=>{fe(()=>{var b,w;return(w=(b=i(d))==null?void 0:b.getBoundingClientRect)==null?void 0:w.call(b)},()=>{p()})});let y;return fe(()=>e.visible,b=>{y==null||y(),y=void 0,b&&(y=Zt(n,p).stop)}),Lt(()=>{t.value=void 0,y==null||y(),y=void 0}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:h,styles:g,role:o,forceUpdate:v,update:p}},TF=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=$u(),l=ve("popper"),r=x(()=>i(t).popper),s=V(He(e.zIndex)?e.zIndex:o()),u=x(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=x(()=>[{zIndex:i(s)},i(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),f=x(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:s,updateZIndex:()=>{s.value=He(e.zIndex)?e.zIndex:o()}}},MF=(e,t)=>{const n=V(!1),a=V(),o=()=>{t("focus")},l=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},s=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Lt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:o,onFocusInTrap:r,onFocusoutPrevented:s,onReleaseRequested:u}};var OF=D({name:"ElPopperContent",__name:"content",props:Hy,emits:mH,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=MF(o,a),{attributes:h,arrowRef:g,contentRef:p,styles:v,instanceRef:m,role:y,update:b}=EF(o),{ariaModal:w,arrowStyle:C,contentAttrs:S,contentClass:k,contentStyle:T,updateZIndex:M}=TF(o,{styles:v,attributes:h,role:y}),A=Pe(Do,void 0);wt(Ly,{arrowStyle:C,arrowRef:g}),A&&wt(Do,{...A,addInputId:It,removeInputId:It});let O;const I=(z=!0)=>{b(),z&&M()},L=()=>{I(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return gt(()=>{fe(()=>o.triggerTargetEl,(z,q)=>{O==null||O(),O=void 0;const U=i(z||p.value),F=i(q||p.value);ga(U)&&(O=fe([y,()=>o.ariaLabel,w,()=>o.id],N=>{["role","aria-label","aria-modal","id"].forEach((P,B)=>{yn(N[B])?U.removeAttribute(P):U.setAttribute(P,N[B])})},{immediate:!0})),F!==U&&ga(F)&&["role","aria-label","aria-modal","id"].forEach(N=>{F.removeAttribute(N)})},{immediate:!0}),fe(()=>o.visible,L,{immediate:!0})}),Lt(()=>{O==null||O(),O=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:I,contentStyle:T}),(z,q)=>(_(),$("div",ht({ref_key:"contentRef",ref:p},i(S),{style:i(T),class:i(k),tabindex:"-1",onMouseenter:q[0]||(q[0]=U=>z.$emit("mouseenter",U)),onMouseleave:q[1]||(q[1]=U=>z.$emit("mouseleave",U))}),[Q(i(Js),{loop:e.loop,trapped:i(r),"trap-on-focus-in":!0,"focus-trap-el":i(p),"focus-start-el":i(l),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(s),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ae(()=>[oe(z.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),$F=OF,AF=D({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Iy,setup(e,{expose:t}){const n=e,a={triggerRef:V(),popperInstanceRef:V(),contentRef:V(),referenceRef:V(),role:x(()=>n.role)};return t(a),wt(Ch,a),(o,l)=>oe(o.$slots,"default")}}),RF=AF;const qy=it(RF),Ht=_e({...KO,...Hy,appendTo:{type:Tu.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...oa(["ariaLabel"])}),Po=_e({...Vy,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space]},focusOnTarget:Boolean}),{useModelToggleProps:NF,useModelToggleEmits:PF,useModelToggle:IF}=NM("visible"),LF=_e({...Iy,...NF,...Ht,...Po,...Dy,showArrow:{type:Boolean,default:!0}}),VF=[...PF,"before-show","before-hide","show","hide","open","close"],xh=Symbol("elTooltip"),_2=(e,t)=>be(e)?e.includes(t):e===t,Jr=(e,t,n)=>a=>{_2(i(e),t)&&n(a)};var BF=D({name:"ElTooltipTrigger",__name:"trigger",props:Po,setup(e,{expose:t}){const n=e,a=ve("tooltip"),{controlled:o,id:l,open:r,onOpen:s,onClose:u,onToggle:c}=Pe(xh,void 0),d=V(null),f=()=>{if(i(o)||n.disabled)return!0},h=Bt(n,"trigger"),g=On(f,Jr(h,"hover",C=>{s(C),n.focusOnTarget&&C.target&&Le(()=>{Eu(C.target,{preventScroll:!0})})})),p=On(f,Jr(h,"hover",u)),v=On(f,Jr(h,"click",C=>{C.button===0&&c(C)})),m=On(f,Jr(h,"focus",s)),y=On(f,Jr(h,"focus",u)),b=On(f,Jr(h,"contextmenu",C=>{C.preventDefault(),c(C)})),w=On(f,C=>{const S=Kt(C);n.triggerKeys.includes(S)&&(C.preventDefault(),c(C))});return t({triggerRef:d}),(C,S)=>(_(),ie(i(pH),{id:i(l),"virtual-ref":e.virtualRef,open:i(r),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(y),onClick:i(v),onContextmenu:i(b),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(p),onKeydown:i(w)},{default:ae(()=>[oe(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),zF=BF,DF=D({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ht,setup(e,{expose:t}){const n=e,{selector:a}=j8(),o=ve("tooltip"),l=V(),r=b6(()=>{var P;return(P=l.value)==null?void 0:P.popperContentRef});let s;const{controlled:u,id:c,open:d,trigger:f,onClose:h,onOpen:g,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:y}=Pe(xh,void 0),b=x(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=x(()=>n.persistent);Lt(()=>{s==null||s()});const C=x(()=>i(w)?!0:i(d)),S=x(()=>n.disabled?!1:i(d)),k=x(()=>n.appendTo||a.value),T=x(()=>n.style??{}),M=V(!0),A=()=>{v(),N()&&Eu(document.body,{preventScroll:!0}),M.value=!0},O=()=>{if(i(u))return!0},I=On(O,()=>{n.enterable&&_2(i(f),"hover")&&g()}),L=On(O,()=>{_2(i(f),"hover")&&h()}),z=()=>{var P,B;(B=(P=l.value)==null?void 0:P.updatePopper)==null||B.call(P),m==null||m()},q=()=>{y==null||y()},U=()=>{p()},F=()=>{n.virtualTriggering||h()},N=P=>{var K;const B=(K=l.value)==null?void 0:K.popperContentRef,W=(P==null?void 0:P.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(W)};return fe(()=>i(d),P=>{P?(M.value=!1,s=Rp(r,()=>{i(u)||ta(i(f)).every(B=>B!=="hover"&&B!=="focus")&&h()},{detectIframe:!0})):s==null||s()},{flush:"post"}),t({contentRef:l,isFocusInsideContent:N}),(P,B)=>(_(),ie(i(Gs),{disabled:!e.teleported,to:k.value},{default:ae(()=>[C.value||!M.value?(_(),ie(Fn,{key:0,name:b.value,appear:!w.value,onAfterLeave:A,onBeforeEnter:z,onAfterEnter:U,onBeforeLeave:q,persisted:""},{default:ae(()=>[ft(Q(i($F),ht({id:i(c),ref_key:"contentRef",ref:l},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":M.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(I),onMouseleave:i(L),onBlur:F,onClose:i(h)}),{default:ae(()=>[oe(P.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[At,S.value]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}}),HF=DF;const FF=["innerHTML"],KF={key:1};var WF=D({name:"ElTooltip",__name:"tooltip",props:LF,emits:VF,setup(e,{expose:t,emit:n}){const a=e,o=n;FO();const l=ve("tooltip"),r=Kn(),s=V(),u=V(),c=()=>{var S;const C=i(s);C&&((S=C.popperInstanceRef)==null||S.update())},d=V(!1),f=V(),{show:h,hide:g,hasUpdateHandler:p}=IF({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=WO({showAfter:Bt(a,"showAfter"),hideAfter:Bt(a,"hideAfter"),autoClose:Bt(a,"autoClose"),open:h,close:g}),y=x(()=>Dt(a.visible)&&!p.value),b=x(()=>[l.b(),a.popperClass]);wt(xh,{controlled:y,id:r,open:Mr(d),trigger:Bt(a,"trigger"),onOpen:v,onClose:m,onToggle:C=>{i(d)?m(C):v(C)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),fe(()=>a.disabled,C=>{C&&d.value&&(d.value=!1),!C&&Dt(a.visible)&&(d.value=a.visible)});const w=C=>{var S;return(S=u.value)==null?void 0:S.isFocusInsideContent(C)};return _p(()=>d.value&&g()),Lt(()=>{f.value=void 0}),t({popperRef:s,contentRef:u,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:m,hide:g}),(C,S)=>(_(),ie(i(qy),{ref_key:"popperRef",ref:s,role:e.role},{default:ae(()=>[Q(zF,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ae(()=>[C.$slots.default?oe(C.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(HF,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":b.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ae(()=>[oe(C.$slots,"content",{},()=>[e.rawContent?(_(),$("span",{key:0,innerHTML:e.content},null,8,FF)):(_(),$("span",KF,Se(e.content),1))]),e.showArrow?(_(),ie(i(dH),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),jF=WF;const Vn=it(jF),ln=e=>e,kh=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ft},prefixIcon:{type:Ft},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>ln({})},countGraphemes:{type:J(Function)},autofocus:Boolean,rows:{type:Number,default:2},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),qF={[ot]:e=>Be(e),input:e=>Be(e),change:(e,t)=>Be(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Oo(ho);let Gn;const UF={height:"0",visibility:"hidden",overflow:Ud()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},YF=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Wm=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function GF(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:YF.map(l=>[l,t.getPropertyValue(l)]),paddingSize:a,borderSize:o,boxSizing:n}}function jm(e,t=1,n){var d;if(!Gn){Gn=document.createElement("textarea");let f=document.body;!Ud()&&e.parentNode&&(f=e.parentNode),f.appendChild(Gn)}const{paddingSize:a,borderSize:o,boxSizing:l,contextStyle:r}=GF(e);r.forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h)),Object.entries(UF).forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h,"important")),Gn.value=e.value||e.placeholder||"";let s=Gn.scrollHeight;const u={};l==="border-box"?s=s+o:l==="content-box"&&(s=s-a),Gn.value="";const c=Gn.scrollHeight-a;if(He(t)){let f=c*t;l==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(He(n)){let f=c*n;l==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(d=Gn.parentNode)==null||d.removeChild(Gn),Gn=void 0,u}const XF=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],JF=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],qm="ElInput";var ZF=D({name:qm,inheritAttrs:!1,__name:"input",props:kh,emits:qF,setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=vn(),s=x(()=>[a.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:K.value&&j.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=x(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=af(),d=x(()=>{var Me;return(Me=a.maxlength)==null?void 0:Me.toString()}),{form:f,formItem:h}=Bn(),{inputId:g}=Pa(a,{formItemContext:h}),p=_n(),v=sn(),m=ve("input"),y=ve("textarea"),b=qt(),w=qt(),C=V(!1),S=V(!1),k=V(),T=qt(a.inputStyle),M=V(""),A=x(()=>b.value||w.value),{wrapperRef:O,isFocused:I,handleFocus:L,handleBlur:z}=Cl(A,{disabled:v,afterBlur(){var Me;a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ge=>pt(Ge)))}}),q=x(()=>(f==null?void 0:f.statusIcon)??!1),U=x(()=>(h==null?void 0:h.validateState)||""),F=x(()=>U.value&&hf[U.value]),N=x(()=>S.value?Ay:by),P=x(()=>[l.style]),B=x(()=>[a.inputStyle,T.value,{resize:a.resize}]),W=x(()=>yn(a.modelValue)?"":String(a.modelValue)),K=x(()=>a.clearable&&!v.value&&!a.readonly&&!!W.value&&(I.value||C.value)),j=x(()=>a.showPassword&&!v.value&&!!W.value),G=x(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),ee=x(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(W.value):W.value.length),te=x(()=>!!G.value&&ee.value>Number(d.value)),ue=x(()=>!!r.suffix||!!a.suffixIcon||K.value||a.showPassword||G.value||!!U.value&&q.value),ne=x(()=>!!Object.keys(a.modelModifiers).length),[de,se]=I$(b);Zt(w,Me=>{if(H(),!G.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:Ge}=Me[0].contentRect;k.value={right:`calc(100% - ${Ge+22-10}px)`}});const Y=()=>{const{type:Me,autosize:Ge}=a;if(!(!Rt||Me!=="textarea"||!w.value))if(Ge){const ut=lt(Ge)?Ge.minRows:void 0,je=lt(Ge)?Ge.maxRows:void 0,tt=jm(w.value,ut,je);T.value={overflowY:"hidden",...tt},Le(()=>{w.value.offsetHeight,T.value=tt})}else T.value={minHeight:jm(w.value).minHeight}},H=(Me=>{let Ge=!1;return()=>{var ut;Ge||!a.autosize||((ut=w.value)==null?void 0:ut.offsetParent)!==null&&(setTimeout(Me),Ge=!0)}})(Y),Z=()=>{const Me=A.value,Ge=a.formatter?a.formatter(W.value):W.value;!Me||Me.value===Ge||a.type==="file"||(Me.value=Ge)},le=Me=>{const{trim:Ge,number:ut}=a.modelModifiers;return Ge&&(Me=Me.trim()),ut&&(Me=`${Wm(Me)}`),a.formatter&&a.parser&&(Me=a.parser(Me)),Me},ce=async Me=>{if(me.value)return;const{lazy:Ge}=a.modelModifiers;let{value:ut}=Me.target,je=!1;if(Ge){o(wn,ut);return}if(ut=le(ut),a.countGraphemes&&d.value!=null){const tt=Number(d.value),yt=a.countGraphemes(ut),he=a.countGraphemes(M.value);if(yt>tt&&yt>he)if(he>tt)ut=M.value,je=!0;else{const Ve=M.value,pe=ut;let Te=0;for(;TeTe&&Pt>Te&&Ve[ct-1]===pe[Pt-1];)ct--,Pt--;const Gt=pe.slice(0,Te),$e=Ve.slice(Te,ct),We=pe.slice(Te,Pt),Ze=pe.slice(Pt),dn=he-a.countGraphemes($e),zt=Math.max(0,tt-dn);let Xt="";if(zt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const Ue=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:Xe}of Ue.segment(We)){const mt=Xt+Xe;if(a.countGraphemes(mt)>zt)break;Xt=mt}}else for(const Ue of Array.from(We)){const Xe=Xt+Ue;if(a.countGraphemes(Xe)>zt)break;Xt=Xe}ut=Gt+Xt+Ze,je=!0}}if(String(ut)===W.value){if(a.formatter||je){const tt=Me.target,yt=tt.value,he=tt.selectionStart,Ve=tt.selectionEnd;if(Z(),je&&A.value&&he!=null&&Ve!=null){const pe=A.value.value,Te=yt.slice(Math.max(0,Ve));let ct=Math.min(he,pe.length);Te&&pe.endsWith(Te)&&(ct=pe.length-Te.length),A.value.setSelectionRange(ct,ct)}}return}M.value=ut,de(),o(ot,ut),o(wn,ut),await Le(),(a.formatter&&a.parser||!ne.value)&&Z(),se()},ge=async Me=>{let{value:Ge}=Me.target;Ge=le(Ge),a.modelModifiers.lazy&&o(ot,Ge),o(bt,Ge,Me),await Le(),Z()},{isComposing:me,handleCompositionStart:Ae,handleCompositionUpdate:Ne,handleCompositionEnd:Re}=Pu({emit:o,afterComposition:ce}),ye=()=>{S.value=!S.value},Ee=()=>{var Me;return(Me=A.value)==null?void 0:Me.focus()},we=()=>{var Me;return(Me=A.value)==null?void 0:Me.blur()},Ie=Me=>{C.value=!1,o("mouseleave",Me)},ze=Me=>{C.value=!0,o("mouseenter",Me)},et=Me=>{o("keydown",Me)},nt=()=>{var Me;(Me=A.value)==null||Me.select()},at=Me=>{o(ot,""),o(bt,""),o("clear",Me),o(wn,"")};return fe(()=>a.modelValue,()=>{var Me;Le(()=>Y()),a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"change").catch(Ge=>pt(Ge)))}),fe(()=>W.value,Me=>{M.value=Me},{immediate:!0}),fe(W,Me=>{if(!A.value)return;const{trim:Ge,number:ut}=a.modelModifiers,je=A.value.value,tt=(ut||a.type==="number")&&!/^0\d/.test(je)?`${Wm(je)}`:je;tt!==Me&&(document.activeElement===A.value&&A.value.type!=="range"&&Ge&&tt.trim()===Me||Z())}),fe(()=>a.type,async()=>{await Le(),Z(),Y()}),gt(()=>{!a.formatter&&a.parser&&pt(qm,"If you set the parser, you also need to set the formatter."),Z(),Le(Y)}),t({input:b,textarea:w,ref:A,textareaStyle:B,autosize:Bt(a,"autosize"),isComposing:me,passwordVisible:S,focus:Ee,blur:we,select:nt,clear:at,resizeTextarea:Y}),(Me,Ge)=>(_(),$("div",{class:R([s.value,{[i(m).bm("group","append")]:Me.$slots.append,[i(m).bm("group","prepend")]:Me.$slots.prepend}]),style:qe(P.value),onMouseenter:ze,onMouseleave:Ie},[re(" input "),e.type!=="textarea"?(_(),$(Ke,{key:0},[re(" prepend slot "),Me.$slots.prepend?(_(),$("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(Me.$slots,"prepend")],2)):re("v-if",!0),E("div",{ref_key:"wrapperRef",ref:O,class:R(u.value)},[re(" prefix slot "),Me.$slots.prefix||e.prefixIcon?(_(),$("span",{key:0,class:R(i(m).e("prefix"))},[E("span",{class:R(i(m).e("prefix-inner"))},[oe(Me.$slots,"prefix"),e.prefixIcon?(_(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),E("input",ht({id:i(g),ref_key:"input",ref:b,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?S.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[0]||(Ge[0]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[1]||(Ge[1]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[2]||(Ge[2]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onChange:ge,onKeydown:et}),null,16,XF),re(" suffix slot "),ue.value?(_(),$("span",{key:1,class:R(i(m).e("suffix"))},[E("span",{class:R(i(m).e("suffix-inner"))},[!K.value||!j.value||!G.value?(_(),$(Ke,{key:0},[oe(Me.$slots,"suffix"),e.suffixIcon?(_(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(dt(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),K.value?(_(),ie(i(De),{key:1,class:R([i(m).e("icon"),i(m).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),j.value?(_(),ie(i(De),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:ye,onMousedown:Je(i(It),["prevent"]),onMouseup:Je(i(It),["prevent"])},{default:ae(()=>[oe(Me.$slots,"password-icon",{visible:S.value},()=>[(_(),ie(dt(N.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),G.value?(_(),$("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[E("span",{class:R(i(m).e("count-inner"))},Se(ee.value)+" / "+Se(d.value),3)],2)):re("v-if",!0),U.value&&F.value&&q.value?(_(),ie(i(De),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",U.value==="validating")])},{default:ae(()=>[(_(),ie(dt(F.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),Me.$slots.append?(_(),$("div",{key:1,class:R(i(m).be("group","append"))},[oe(Me.$slots,"append")],2)):re("v-if",!0)],64)):(_(),$(Ke,{key:1},[re(" textarea "),E("textarea",ht({id:i(g),ref_key:"textarea",ref:w,class:[i(y).e("inner"),i(m).is("focus",i(I)),i(y).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:B.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[3]||(Ge[3]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[4]||(Ge[4]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[5]||(Ge[5]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onFocus:Ge[6]||(Ge[6]=(...ut)=>i(L)&&i(L)(...ut)),onBlur:Ge[7]||(Ge[7]=(...ut)=>i(z)&&i(z)(...ut)),onChange:ge,onKeydown:et}),null,16,JF),K.value?(_(),ie(i(De),{key:0,class:R([i(y).e("icon"),i(y).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),G.value?(_(),$("span",{key:1,style:qe(k.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},Se(ee.value)+" / "+Se(d.value),7)):re("v-if",!0)],64))],38))}}),QF=ZF;const Dn=it(QF),eK=_e({...kh,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:It},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Ht.teleported,appendTo:Ht.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),tK={[ot]:e=>Be(e)||He(e),[wn]:e=>Be(e)||He(e),[bt]:e=>Be(e)||He(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>lt(e)},nK=_e({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...oa(["ariaLabel","ariaOrientation"])}),Uy={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(He)},Zr=4,Yy={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},aK=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),oK=_e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Eh=Symbol("scrollbarContextKey");function Dl(e,t,n=.03){return e-t>n}const lK=_e({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),rK="Thumb";var sK=D({__name:"thumb",props:oK,setup(e){const t=e,n=Pe(Eh),a=ve("scrollbar");n||tn(rK,"can not inject scrollbar context");const o=V(),l=V(),r=V({}),s=V(!1);let u=!1,c=!1,d=0,f=0,h=Rt?document.onselectstart:null;const g=x(()=>Yy[t.vertical?"vertical":"horizontal"]),p=x(()=>aK({size:t.size,move:t.move,bar:g.value})),v=x(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/l.value[g.value.offset]),m=M=>{var O;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(M);const A=M.currentTarget;A&&(r.value[g.value.axis]=A[g.value.offset]-(M[g.value.client]-A.getBoundingClientRect()[g.value.direction]))},y=M=>{if(!l.value||!o.value||!n.wrapElement)return;const A=(Math.abs(M.target.getBoundingClientRect()[g.value.direction]-M[g.value.client])-l.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=A*n.wrapElement[g.value.scrollSize]/100},b=M=>{M.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},w=M=>{if(!o.value||!l.value||u===!1)return;const A=r.value[g.value.axis];if(!A)return;const O=((o.value.getBoundingClientRect()[g.value.direction]-M[g.value.client])*-1-(l.value[g.value.offset]-A))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=O*f/100:n.wrapElement[g.value.scroll]=O*d/100},C=()=>{u=!1,r.value[g.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),T(),c&&(s.value=!1)},S=()=>{c=!1,s.value=!!t.size},k=()=>{c=!0,s.value=u};Lt(()=>{T(),document.removeEventListener("mouseup",C)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(Bt(n,"scrollbarElement"),"mousemove",S),Vt(Bt(n,"scrollbarElement"),"mouseleave",k),(M,A)=>(_(),ie(Fn,{name:i(a).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:y,onClick:A[0]||(A[0]=Je(()=>{},["stop"]))},[E("div",{ref_key:"thumb",ref:l,class:R(i(a).e("thumb")),style:qe(p.value),onMousedown:m},null,38)],34),[[At,e.always||s.value]])]),_:1},8,["name"]))}}),Um=sK,iK=D({__name:"bar",props:lK,setup(e,{expose:t}){const n=e,a=Pe(Eh),o=V(0),l=V(0),r=V(""),s=V(""),u=V(1),c=V(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Zr,p=h.offsetWidth-Zr;l.value=h.scrollTop*100/g*u.value,o.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const g=h.offsetHeight-Zr,p=h.offsetWidth-Zr,v=g**2/h.scrollHeight,m=p**2/h.scrollWidth,y=Math.max(v,n.minSize),b=Math.max(m,n.minSize);u.value=v/(g-v)/(y/(g-y)),c.value=m/(p-m)/(b/(p-b)),s.value=y+Zr(_(),$(Ke,null,[Q(Um,{move:o.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),Q(Um,{move:l.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),uK=iK;const cK=["tabindex"],s0="ElScrollbar";var dK=D({name:s0,__name:"scrollbar",props:nK,emits:Uy,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("scrollbar");let r,s,u,c=0,d=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},g=V(),p=V(),v=V(),m=V(),y=x(()=>{const L={},z=rn(a.height),q=rn(a.maxHeight);return z&&(L.height=z),q&&(L.maxHeight=q),[a.wrapStyle,L]}),b=x(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),w=x(()=>[l.e("view"),a.viewClass]),C=L=>h[L]??!1,S={top:"bottom",bottom:"top",left:"right",right:"left"},k=L=>{const z=S[f];if(!z)return;const q=L[f],U=L[z];q&&!h[f]&&(h[f]=!0),!U&&h[z]&&(h[z]=!1)},T=()=>{var L;if(p.value){(L=m.value)==null||L.handleScroll(p.value);const z=c,q=d;c=p.value.scrollTop,d=p.value.scrollLeft;const U={bottom:!Dl(p.value.scrollHeight-a.distance,p.value.clientHeight+c),top:c<=a.distance&&z!==0,right:!Dl(p.value.scrollWidth-a.distance,p.value.clientWidth+d)&&q!==d,left:d<=a.distance&&q!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),z!==c&&(f=c>z?"bottom":"top"),q!==d&&(f=d>q?"right":"left"),a.distance>0){if(C(f))return;k(U)}U[f]&&o("end-reached",f)}};function M(L,z){lt(L)?p.value.scrollTo(L):He(L)&&He(z)&&p.value.scrollTo(L,z)}const A=L=>{if(!He(L)){pt(s0,"value must be a number");return}p.value.scrollTop=L},O=L=>{if(!He(L)){pt(s0,"value must be a number");return}p.value.scrollLeft=L},I=()=>{var L,z;(L=m.value)==null||L.update(),h[f]=!1,p.value&&((z=m.value)==null||z.handleScroll(p.value))};return fe(()=>a.noresize,L=>{L?(r==null||r(),s==null||s(),u==null||u()):({stop:r}=Zt(v,I),{stop:s}=Zt(p,I),u=Vt("resize",I))},{immediate:!0}),fe(()=>[a.maxHeight,a.height],()=>{a.native||Le(()=>{I()})}),wt(Eh,Nt({scrollbarElement:g,wrapElement:p})),mu(()=>{p.value&&(p.value.scrollTop=c,p.value.scrollLeft=d)}),gt(()=>{a.native||Le(()=>{I()})}),so(()=>I()),t({wrapRef:p,update:I,scrollTo:M,setScrollTop:A,setScrollLeft:O,handleScroll:T}),(L,z)=>(_(),$("div",{ref_key:"scrollbarRef",ref:g,class:R(i(l).b())},[E("div",{ref_key:"wrapRef",ref:p,class:R(b.value),style:qe(y.value),tabindex:e.tabindex,onScroll:T},[(_(),ie(dt(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(w.value),style:qe(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ae(()=>[oe(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,cK),e.native?re("v-if",!0):(_(),ie(uK,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),fK=dK;const ao=it(fK),pK=["aria-expanded","aria-owns"],hK={key:0},vK=["id","aria-selected","onClick"],Ym="ElAutocomplete";var mK=D({name:Ym,inheritAttrs:!1,__name:"autocomplete",props:eK,emits:tK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const Y=Dn.props??[];return ul(a,be(Y)?Y:Object.keys(Y))}),r=gl(),s=sn(),u=ve("autocomplete"),c=V(),d=V(),f=V(),h=V();let g=!1,p=!1;const v=V([]),m=V(-1),y=V(""),b=V(!1),w=V(!1),C=V(!1),S=Kn(),k=x(()=>r.style),T=x(()=>(v.value.length>0||C.value)&&b.value),M=x(()=>!a.hideLoading&&C.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=()=>{T.value&&(y.value=`${c.value.$el.offsetWidth}px`)},I=()=>{m.value=-1},L=async Y=>{if(w.value)return;const X=H=>{C.value=!1,!w.value&&(be(H)?(v.value=H,m.value=a.highlightFirstItem?0:-1):tn(Ym,"autocomplete suggestions must be an array"))};if(C.value=!0,be(a.fetchSuggestions))X(a.fetchSuggestions);else{const H=await a.fetchSuggestions(Y,X);be(H)&&X(H)}},z=yu(L,x(()=>a.debounce)),q=Y=>{const X=!!Y;if(o(wn,Y),o(ot,Y),w.value=!1,b.value||(b.value=X),!a.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}z(Y)},U=Y=>{var X;s.value||(((X=Y.target)==null?void 0:X.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},F=Y=>{o(bt,Y)},N=Y=>{if(p)p=!1;else{b.value=!0,o("focus",Y);const X=a.modelValue??"";a.triggerOnFocus&&!g&&z(String(X))}},P=Y=>{setTimeout(()=>{var X;if((X=f.value)!=null&&X.isFocusInsideContent()){p=!0;return}b.value&&j(),o("blur",Y)})},B=()=>{b.value=!1,o(ot,""),o("clear")},W=async()=>{var Y;(Y=c.value)!=null&&Y.isComposing||(T.value&&m.value>=0&&m.value{T.value&&(Y.preventDefault(),Y.stopPropagation(),j())},j=()=>{b.value=!1},G=()=>{var Y;(Y=c.value)==null||Y.focus()},ee=()=>{var Y;(Y=c.value)==null||Y.blur()},te=async Y=>{o(wn,Y[a.valueKey]),o(ot,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ue=Y=>{var me,Ae;if(!T.value||C.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[X,H]=ne(),Z=H[Y],le=X.scrollTop,{offsetTop:ce,scrollHeight:ge}=Z;ce+ge>le+X.clientHeight&&(X.scrollTop=ce+ge-X.clientHeight),ce{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=Rp(h,Y=>{var H;if((H=f.value)!=null&&H.isFocusInsideContent())return;const X=p;p=!1,T.value&&(X?P(new FocusEvent("blur",Y)):j())}),se=Y=>{switch(Kt(Y)){case Ce.up:Y.preventDefault(),ue(m.value-1);break;case Ce.down:Y.preventDefault(),ue(m.value+1);break;case Ce.enter:case Ce.numpadEnter:Y.preventDefault(),W();break;case Ce.tab:j();break;case Ce.esc:K(Y);break;case Ce.home:Y.preventDefault(),ue(0);break;case Ce.end:Y.preventDefault(),ue(v.value.length-1);break;case Ce.pageUp:Y.preventDefault(),ue(Math.max(0,m.value-10));break;case Ce.pageDown:Y.preventDefault(),ue(Math.min(v.value.length-1,m.value+10));break}};return Lt(()=>{de==null||de()}),gt(()=>{var X;const Y=(X=c.value)==null?void 0:X.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:S.value},{key:"aria-activedescendant",value:`${S.value}-item-${m.value}`}].forEach(({key:H,value:Z})=>Y.setAttribute(H,Z)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:b,loading:C,inputRef:c,popperRef:f,suggestions:v,handleSelect:te,handleKeyEnter:W,focus:G,blur:ee,close:j,highlight:ue,getData:L}),(Y,X)=>(_(),ie(i(Vn),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:O,onHide:I},{content:ae(()=>[E("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",M.value)]),style:qe({[e.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Y.$slots.header?(_(),$("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:X[0]||(X[0]=Je(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),Q(i(ao),{id:i(S),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ae(()=>[M.value?(_(),$("li",hK,[oe(Y.$slots,"loading",{},()=>[Q(i(De),{class:R(i(u).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])])])):(_(!0),$(Ke,{key:1},_t(v.value,(H,Z)=>(_(),$("li",{id:`${i(S)}-item-${Z}`,key:Z,class:R({highlighted:m.value===Z}),role:"option","aria-selected":m.value===Z,onClick:le=>te(H)},[oe(Y.$slots,"default",{item:H},()=>[St(Se(H[e.valueKey]),1)])],10,vK))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(_(),$("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:X[1]||(X[1]=Je(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ae(()=>[E("div",{ref_key:"listboxRef",ref:h,class:R([i(u).b(),Y.$attrs.class]),style:qe(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":i(S)},[Q(i(Dn),ht({ref_key:"inputRef",ref:c},ht(l.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(s),onInput:q,onChange:F,onFocus:N,onBlur:P,onClear:B,onKeydown:se,onMousedown:U}),fa({_:2},[Y.$slots.prepend?{name:"prepend",fn:ae(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ae(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,pK)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),gK=mK;const yK=it(gK),bK=_e({size:{type:[Number,String],values:io,validator:e=>He(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ft},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),wK={error:e=>e instanceof Event},Gy=Symbol("avatarGroupContextKey"),CK={size:{type:J([Number,String]),values:io,validator:e=>He(e)},shape:{type:J(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:J(String),default:"light"},placement:{type:J(String),values:Ho,default:"top"},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,collapseClass:String,collapseStyle:{type:J([String,Array,Object])}},_K=["src","alt","srcset"];var SK=D({name:"ElAvatar",__name:"avatar",props:bK,emits:wK,setup(e,{emit:t}){const n=e,a=t,o=Pe(Gy,void 0),l=ve("avatar"),r=V(!1),s=x(()=>n.size??(o==null?void 0:o.size)),u=x(()=>n.shape??(o==null?void 0:o.shape)??"circle"),c=x(()=>{const{icon:g}=n,p=[l.b()];return Be(s.value)&&p.push(l.m(s.value)),g&&p.push(l.m("icon")),u.value&&p.push(l.m(u.value)),p}),d=x(()=>He(s.value)?l.cssVarBlock({size:rn(s.value)}):void 0),f=x(()=>({objectFit:n.fit}));fe(()=>[n.src,n.srcSet],()=>r.value=!1);function h(g){r.value=!0,a("error",g)}return(g,p)=>(_(),$("span",{class:R(c.value),style:qe(d.value)},[(e.src||e.srcSet)&&!r.value?(_(),$("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:qe(f.value),onError:h},null,44,_K)):e.icon?(_(),ie(i(De),{key:1},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),Xy=SK,Jy=D({name:"ElAvatarGroup",props:CK,setup(e,{slots:t}){const n=ve("avatar-group");return wt(Gy,Nt({size:Bt(e,"size"),shape:Bt(e,"shape")})),()=>{var l;const a=Ta(((l=t.default)==null?void 0:l.call(t))??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(Q(Vn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Q(Xy,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[St("+ "),r.length]}),content:()=>Q("div",{class:n.e("collapse-avatars")},[r.map((s,u)=>Wt(s)?Io(s,{key:s.key??u}):s)])}))}return Q("div",{class:n.b()},[o])}}});const xK=it(Xy,{AvatarGroup:Jy}),kK=nn(Jy),EK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},TK={click:e=>e instanceof MouseEvent},MK=(e,t,n)=>{const a=qt(),o=qt(),l=V(!1),r=()=>{a.value&&(l.value=a.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=a.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Vt(o,"scroll",S6(r,300,!0)),gt(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||tn(n,`target does not exist: ${e.target}`),o.value=a.value),r()}),{visible:l,handleClick:s}},Gm="ElBacktop";var OK=D({name:Gm,__name:"backtop",props:EK,emits:TK,setup(e,{emit:t}){const n=e,a=t,o=ve("backtop"),{handleClick:l,visible:r}=MK(n,a,Gm),s=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(_(),ie(Fn,{name:`${i(o).namespace.value}-fade-in`},{default:ae(()=>[i(r)?(_(),$("div",{key:0,style:qe(s.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Je((...d)=>i(l)&&i(l)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[Q(i(De),{class:R(i(o).e("icon"))},{default:ae(()=>[Q(i(hy))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),$K=OK;const AK=it($K),RK=_e({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:()=>[0,0]},badgeClass:{type:String}});var NK=D({name:"ElBadge",__name:"badge",props:RK,setup(e,{expose:t}){const n=e,a=ve("badge"),o=x(()=>n.isDot?"":He(n.value)&&He(n.max)?n.max[{backgroundColor:n.color,marginRight:rn(-n.offset[0]),marginTop:rn(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(r,s)=>(_(),$("div",{class:R(i(a).b())},[oe(r.$slots,"default"),Q(Fn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||r.$slots.content)?(_(),$("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!r.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:qe(l.value)},[oe(r.$slots,"content",{value:o.value},()=>[St(Se(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),PK=NK;const Zy=it(PK),IK=_e({separator:{type:String,default:"/"},separatorIcon:{type:Ft}}),Qy=Symbol("breadcrumbKey"),LK=_e({to:{type:J([String,Object]),default:""},replace:Boolean}),VK=["aria-label"];var BK=D({name:"ElBreadcrumb",__name:"breadcrumb",props:IK,setup(e){const{t}=kt(),n=e,a=ve("breadcrumb"),o=V();return wt(Qy,n),gt(()=>{const l=o.value.querySelectorAll(`.${a.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,r)=>(_(),$("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(l.$slots,"default")],10,VK))}}),zK=BK,DK=D({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:LK,setup(e){const t=e,n=vt(),a=Pe(Qy,void 0),o=ve("breadcrumb"),l=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(s,u)=>{var c,d;return _(),$("span",{class:R(i(o).e("item"))},[E("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:r},[oe(s.$slots,"default")],2),(c=i(a))!=null&&c.separatorIcon?(_(),ie(i(De),{key:0,class:R(i(o).e("separator"))},{default:ae(()=>[(_(),ie(dt(i(a).separatorIcon)))]),_:1},8,["class"])):(_(),$("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},Se((d=i(a))==null?void 0:d.separator),3))],2)}}}),eb=DK;const HK=it(zK,{BreadcrumbItem:eb}),FK=nn(eb),S2=["default","primary","success","warning","info","danger","text",""],KK=["button","submit","reset"],x2=_e({size:kn,disabled:{type:Boolean,default:void 0},type:{type:String,values:S2,default:""},icon:{type:Ft},nativeType:{type:String,values:KK,default:"button"},loading:Boolean,loadingIcon:{type:Ft,default:()=>no},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),WK={click:e=>e instanceof MouseEvent},tb=Symbol(),cd=V();function _l(e,t=void 0){const n=vt()?Pe(tb,cd):cd;return e?x(()=>{var a;return((a=n.value)==null?void 0:a[e])??t}):n}function mf(e,t){const n=_l(),a=ve(e,x(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Ri})),o=kt(x(()=>{var s;return(s=n.value)==null?void 0:s.locale})),l=$u(x(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||U8})),r=x(()=>{var s;return i(t)||((s=n.value)==null?void 0:s.size)||""});return Th(x(()=>i(n)||{})),{ns:a,locale:o,zIndex:l,size:r}}const Th=(e,t,n=!1)=>{const a=!!vt(),o=a?_l():void 0,l=(t==null?void 0:t.provide)??(a?wt:void 0);if(!l){pt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const r=x(()=>{const s=i(e);return o!=null&&o.value?jK(o.value,s):s});return l(tb,r),l(O8,x(()=>r.value.locale)),l($8,x(()=>r.value.namespace)),l(Y8,x(()=>r.value.zIndex)),l(sy,{size:x(()=>r.value.size||"")}),l(uy,x(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(n||!cd.value)&&(cd.value=r.value),r},jK=(e,t)=>{const n=[...new Set([...Xi(e),...Xi(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},qK=_e({a11y:{type:Boolean,default:!0},locale:{type:J(Object)},size:kn,button:{type:J(Object)},card:{type:J(Object)},dialog:{type:J(Object)},link:{type:J(Object)},experimentalFeatures:{type:J(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:J(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:J(Object)},...jr}),Zn={placement:"top"},UK=D({name:"ElConfigProvider",props:qK,setup(e,{slots:t}){const n=Th(e);return fe(()=>e.message,a=>{var o;Object.assign(Zn,((o=n==null?void 0:n.value)==null?void 0:o.message)??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n==null?void 0:n.value})}}),YK=it(UK),nb=Symbol("buttonGroupContextKey"),GK=(e,t)=>{$o({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Pe(nb,void 0),a=_l("button"),{form:o}=Bn(),l=_n(x(()=>n==null?void 0:n.size)),r=sn(),s=V(),u=vn(),c=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b;return e.autoInsertSpace??((b=a.value)==null?void 0:b.autoInsertSpace)??!1}),f=x(()=>{var b;return e.plain??((b=a.value)==null?void 0:b.plain)??!1}),h=x(()=>{var b;return e.round??((b=a.value)==null?void 0:b.round)??!1}),g=x(()=>{var b;return e.text??((b=a.value)==null?void 0:b.text)??!1}),p=x(()=>{var b;return e.dashed??((b=a.value)==null?void 0:b.dashed)??!1}),v=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=x(()=>{var w;const b=(w=u.default)==null?void 0:w.call(u);if(d.value&&(b==null?void 0:b.length)===1){const C=b[0];if((C==null?void 0:C.type)===Ws){const S=C.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:l,_type:c,_ref:s,_props:v,_plain:f,_round:h,_text:g,_dashed:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",b)}}};function Yn(e,t){XK(e)&&(e="100%");const n=JK(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function dc(e){return Math.min(1,Math.max(0,e))}function XK(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function JK(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ab(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function mr(e){return e.length===1?"0"+e:String(e)}function ZK(e,t,n){return{r:Yn(e,255)*255,g:Yn(t,255)*255,b:Yn(n,255)*255}}function Xm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0,r=0;const s=(a+o)/2;if(a===o)r=0,l=0;else{const u=a-o;switch(r=s>.5?u/(2-a-o):u/(a+o),a){case e:l=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QK(e,t,n){let a,o,l;if(e=Yn(e,360),t=Yn(t,100),n=Yn(n,100),t===0)o=n,l=n,a=n;else{const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=i0(s,r,e+1/3),o=i0(s,r,e),l=i0(s,r,e-1/3)}return{r:a*255,g:o*255,b:l*255}}function Jm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0;const r=a,s=a-o,u=a===0?0:s/a;if(a===o)l=0;else{switch(a){case e:l=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}const k2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lW(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,l=null,r=!1,s=!1;return typeof e=="string"&&(e=iW(e)),typeof e=="object"&&(Sa(e.r)&&Sa(e.g)&&Sa(e.b)?(t=ZK(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sa(e.h)&&Sa(e.s)&&Sa(e.v)?(a=fc(e.s),o=fc(e.v),t=eW(e.h,a,o),r=!0,s="hsv"):Sa(e.h)&&Sa(e.s)&&Sa(e.l)?(a=fc(e.s),l=fc(e.l),t=QK(e.h,a,l),r=!0,s="hsl"):Sa(e.c)&&Sa(e.m)&&Sa(e.y)&&Sa(e.k)&&(t=nW(e.c,e.m,e.y,e.k),r=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ab(n),{ok:r,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const rW="[-\\+]?\\d+%?",sW="[-\\+]?\\d*\\.\\d+%?",Vl="(?:"+sW+")|(?:"+rW+")",u0="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",pc="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",Va={CSS_UNIT:new RegExp(Vl),rgb:new RegExp("rgb"+u0),rgba:new RegExp("rgba"+pc),hsl:new RegExp("hsl"+u0),hsla:new RegExp("hsla"+pc),hsv:new RegExp("hsv"+u0),hsva:new RegExp("hsva"+pc),cmyk:new RegExp("cmyk"+pc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function iW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(k2[e])e=k2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Va.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Va.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Va.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Va.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Va.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Va.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Va.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Va.hex8.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),a:eg(n[4]),format:t?"name":"hex8"}:(n=Va.hex6.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),format:t?"name":"hex"}:(n=Va.hex4.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),a:eg(n[4]+n[4]),format:t?"name":"hex8"}:(n=Va.hex3.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Sa(e){return typeof e=="number"?!Number.isNaN(e):Va.CSS_UNIT.test(e)}class pn{constructor(t="",n={}){if(t instanceof pn)return t;typeof t=="number"&&(t=oW(t)),this.originalInput=t;const a=lW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const l=t.r/255,r=t.g/255,s=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=ab(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Jm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Jm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=Xm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=Xm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return Zm(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return tW(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Yn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Yn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...Qm(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=Qm(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+Zm(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(k2))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new pn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=dc(n.l),new pn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new pn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=dc(n.l),new pn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=dc(n.s),new pn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=dc(n.s),new pn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new pn(n)}mix(t,n=50){const a=this.toRgb(),o=new pn(t).toRgb(),l=n/100,r={r:(o.r-a.r)*l+a.r,g:(o.g-a.g)*l+a.g,b:(o.b-a.b)*l+a.b,a:(o.a-a.a)*l+a.a};return new pn(r)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,l=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,l.push(new pn(a));return l}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new pn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:l}=n;const r=[],s=1/t;for(;t--;)r.push(new pn({h:a,s:o,v:l})),l=(l+s)%1;return r}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new pn({h:(n+72)%360,s:t.s,l:t.l}),new pn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new pn(t).toRgb(),o=n.a+a.a*(1-n.a);return new pn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],l=360/t;for(let r=1;r{let a={},o=e.color;if(o){const l=o.match(/var\((.*?)\)/);l&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const r=new pn(o),s=e.dark?r.tint(20).toString():bo(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?bo(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?bo(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?bo(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?bo(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?bo(r,80):r.tint(80).toString());else if(e.link||e.text){const u=e.dark?bo(r,30):r.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":s}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=s),t.value){const c=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?bo(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var cW=D({name:"ElButton",__name:"button",props:x2,emits:WK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=uW(a),r=ve("button"),{_ref:s,_size:u,_type:c,_disabled:d,_props:f,_plain:h,_round:g,_text:p,_dashed:v,shouldAddSpace:m,handleClick:y}=GK(a,o),b=x(()=>[r.b(),r.m(c.value),r.m(u.value),r.is("disabled",d.value),r.is("loading",a.loading),r.is("plain",h.value),r.is("round",g.value),r.is("circle",a.circle),r.is("text",p.value),r.is("dashed",v.value),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:u,type:c,disabled:d,shouldAddSpace:m}),(w,C)=>(_(),ie(dt(e.tag),ht({ref_key:"_ref",ref:s},i(f),{class:b.value,style:i(l),onClick:i(y)}),{default:ae(()=>[e.loading?(_(),$(Ke,{key:0},[w.$slots.loading?oe(w.$slots,"loading",{key:0}):(_(),ie(i(De),{key:1,class:R(i(r).is("loading"))},{default:ae(()=>[(_(),ie(dt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||w.$slots.icon?(_(),ie(i(De),{key:1},{default:ae(()=>[e.icon?(_(),ie(dt(e.icon),{key:0})):oe(w.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),w.$slots.default?(_(),$("span",{key:2,class:R({[i(r).em("text","expand")]:i(m)})},[oe(w.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),dW=cW;const fW={size:x2.size,type:x2.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}};var pW=D({name:"ElButtonGroup",__name:"button-group",props:fW,setup(e){const t=e;wt(nb,Nt({size:Bt(t,"size"),type:Bt(t,"type")}));const n=ve("button");return(a,o)=>(_(),$("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),ob=pW;const An=it(dW,{ButtonGroup:ob}),lb=nn(ob),hW=e=>be(e)&&e.length===2&&e.every(t=>Fl(t)),vW=_e({modelValue:{type:Date},range:{type:J(Array),validator:hW},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:J(Function)}}),mW={[ot]:e=>Fl(e),[wn]:e=>Fl(e)},tg=["hours","minutes","seconds"],oo="EP_PICKER_BASE",Mh="ElPopperOptions",rb=Symbol("commonPickerContextKey"),Lr="HH:mm:ss",Qo="YYYY-MM-DD",gW={date:Qo,dates:Qo,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Qo} ${Lr}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Qo,datetimerange:`${Qo} ${Lr}`};var Sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mde(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var sb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n=1e3,a=6e4,o=36e5,l="millisecond",r="second",s="minute",u="hour",c="day",d="week",f="month",h="quarter",g="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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(q){var U=["th","st","nd","rd"],F=q%100;return"["+q+(U[(F-20)%10]||U[F]||U[0])+"]"}},w=function(q,U,F){var N=String(q);return!N||N.length>=U?q:""+Array(U+1-N.length).join(F)+q},C={s:w,z:function(q){var U=-q.utcOffset(),F=Math.abs(U),N=Math.floor(F/60),P=F%60;return(U<=0?"+":"-")+w(N,2,"0")+":"+w(P,2,"0")},m:function q(U,F){if(U.date()1)return q(W[0])}else{var K=U.name;k[K]=U,P=K}return!N&&P&&(S=P),P||!N&&S},O=function(q,U){if(M(q))return q.clone();var F=typeof U=="object"?U:{};return F.date=q,F.args=arguments,new L(F)},I=C;I.l=A,I.i=M,I.w=function(q,U){return O(q,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var L=function(){function q(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var U=q.prototype;return U.parse=function(F){this.$d=function(N){var P=N.date,B=N.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var W=P.match(m);if(W){var K=W[2]-1||0,j=(W[7]||"0").substring(0,3);return B?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)}}return new Date(P)}(F),this.init()},U.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},U.$utils=function(){return I},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(F,N){var P=O(F);return this.startOf(N)<=P&&P<=this.endOf(N)},U.isAfter=function(F,N){return O(F)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),ib=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ub=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),ng=function(e,t){const n=Fl(e),a=Fl(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},cb=function(e,t){const n=be(e),a=be(t);return n&&a?e.length!==t.length?!1:e.every((o,l)=>ng(o,t[l])):!n&&!a?ng(e,t):!1},ag=function(e,t,n){const a=ca(t)||t==="x"?st(e).locale(n):st(e,t).locale(n);return a.isValid()?a:void 0},og=function(e,t,n){return ca(t)?e:t==="x"?+e:st(e).locale(n).format(t)},d0=(e,t)=>{const n=[],a=t==null?void 0:t();for(let o=0;obe(e)?e.map(t=>t.toDate()):e.toDate(),Oh=_e({disabledHours:{type:J(Function)},disabledMinutes:{type:J(Function)},disabledSeconds:{type:J(Function)}}),db=_e({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),$h=_e({automaticDropdown:{type:Boolean,default:!0},id:{type:J([Array,String])},name:{type:J([Array,String])},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:J([String,Object]),default:ho},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:J([String,Object]),default:""},size:kn,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:J(Object),default:()=>({})},modelValue:{type:J([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Oh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:J([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:J(String),values:Ho,default:"bottom"},fallbackPlacements:{type:J(Array),default:["bottom","top","right","left"]},...jr,...oa(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),bW=_e({id:{type:J(Array)},name:{type:J(Array)},modelValue:{type:J([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),fb=(e,t)=>{const{lang:n}=kt(),a=V(!1),o=V(!1),l=V(null),r=x(()=>{const{modelValue:p}=e;return!p||be(p)&&!p.filter(Boolean).length}),s=p=>{if(!cb(e.modelValue,p)){let v;be(p)?v=p.map(m=>og(m,e.valueFormat,n.value)):p&&(v=og(p,e.valueFormat,n.value)),t(ot,p&&v,n.value)}},u=x(()=>{let p;if(r.value?c.value.getDefaultValue&&(p=c.value.getDefaultValue()):be(e.modelValue)?p=e.modelValue.map(v=>ag(v,e.valueFormat,n.value)):p=ag(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(p);on(v,p)||(p=v,r.value||s(Pc(p)))}return be(p)&&p.some(v=>!v)&&(p=[]),p}),c=V({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:l,valueIsEmpty:r,emitInput:s,onCalendarChange:p=>{t("calendar-change",p)},onPanelChange:(p,v,m)=>{t("panel-change",p,v,m)},onPick:(p="",v=!1)=>{a.value=v;let m;be(p)?m=p.map(y=>y.toDate()):m=p&&p.toDate(),l.value=null,s(m)},onSetPickerOption:p=>{c.value[p[0]]=p[1],c.value.panelReady=!0}}},wW=["id","name","placeholder","value","disabled"],CW=["id","name","placeholder","value","disabled"];var _W=D({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:bW,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),{inputId:r}=Pa(Nt({id:x(()=>{var M;return(M=a.id)==null?void 0:M[0]})}),{formItemContext:l}),s=af(),u=ve("date"),c=ve("range"),d=V(),f=V(),{wrapperRef:h,isFocused:g}=Cl(d,{disabled:x(()=>a.disabled)}),p=M=>{o("click",M)},v=M=>{o("mouseenter",M)},m=M=>{o("mouseleave",M)},y=M=>{o("touchstart",M)},b=M=>{o("startInput",M)},w=M=>{o("endInput",M)},C=M=>{o("startChange",M)},S=M=>{o("endChange",M)};return t({focus:()=>{var M;(M=d.value)==null||M.focus()},blur:()=>{var M,A;(M=d.value)==null||M.blur(),(A=f.value)==null||A.blur()}}),(M,A)=>(_(),$("div",{ref_key:"wrapperRef",ref:h,class:R([i(u).is("active",i(g)),M.$attrs.class]),style:qe(M.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:m,onTouchstartPassive:y},[oe(M.$slots,"prefix"),E("input",ht(i(s),{id:i(r),ref_key:"inputRef",ref:d,name:M.name&&M.name[0],placeholder:M.startPlaceholder,value:M.modelValue&&M.modelValue[0],class:i(c).b("input"),disabled:M.disabled,onInput:b,onChange:C}),null,16,wW),oe(M.$slots,"range-separator"),E("input",ht(i(s),{id:M.id&&M.id[1],ref_key:"endInputRef",ref:f,name:M.name&&M.name[1],placeholder:M.endPlaceholder,value:M.modelValue&&M.modelValue[1],class:i(c).b("input"),disabled:M.disabled,onInput:w,onChange:S}),null,16,CW),oe(M.$slots,"suffix")],38))}}),SW=_W,xW=D({name:"Picker",__name:"picker",props:$h,emits:[ot,bt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=ve("date"),s=ve("input"),u=ve("range"),{formItem:c}=Bn(),d=Pe(Mh,{}),f=Iu(a,null),h=V(),g=V(),p=V(null);let v=!1;const m=sn(),y=fb(a,o),{parsedValue:b,pickerActualVisible:w,userInput:C,pickerVisible:S,pickerOptions:k,valueIsEmpty:T,emitInput:M,onPick:A,onSetPickerOption:O,onCalendarChange:I,onPanelChange:L}=y,{isFocused:z,handleFocus:q,handleBlur:U}=Cl(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(S.value=!0)},beforeBlur(pe){var Te;return!v&&((Te=h.value)==null?void 0:Te.isFocusInsideContent(pe))},afterBlur(){var pe,Te;Y.value&&!a.saveOnBlur?T.value||(Te=(pe=k.value).handleCancel)==null||Te.call(pe):ze(),S.value=!1,v=!1,a.validateEvent&&(c==null||c.validate("blur").catch(ct=>pt(ct)))}}),F=V(!1),N=x(()=>[r.b("editor"),r.bm("editor",a.type),s.e("wrapper"),r.is("disabled",m.value),r.is("active",S.value),u.b("editor"),Ee?u.bm("editor",Ee.value):"",l.class]),P=x(()=>[s.e("icon"),u.e("close-icon"),ce.value?"":u.em("close-icon","hidden")]);fe(S,pe=>{pe?Le(()=>{pe&&(p.value=a.modelValue)}):(C.value=null,Le(()=>{B(a.modelValue)}))});const B=(pe,Te)=>{(Te||!cb(pe,p.value))&&(o(bt,pe),Te&&(p.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(ct=>pt(ct))))},W=pe=>{o("keydown",pe)},K=x(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),j=(pe,Te,ct)=>{const Pt=K.value;Pt.length&&(!ct||ct==="min"?(Pt[0].setSelectionRange(pe,Te),Pt[0].focus()):ct==="max"&&(Pt[1].setSelectionRange(pe,Te),Pt[1].focus()))},G=()=>{w.value=!0},ee=()=>{o("visible-change",!0)},te=()=>{w.value=!1,S.value=!1,o("visible-change",!1)},ue=()=>{S.value=!0},ne=()=>{S.value=!1},de=x(()=>{const pe=nt(b.value);return be(C.value)?[C.value[0]??(pe&&pe[0])??"",C.value[1]??(pe&&pe[1])??""]:C.value!==null?C.value:Y.value&&T.value&&!a.saveOnBlur||!Y.value&&T.value||!S.value&&T.value?"":pe?X.value||H.value||Z.value?pe.join(", "):pe:""}),se=x(()=>a.type.includes("time")),Y=x(()=>a.type.startsWith("time")),X=x(()=>a.type==="dates"),H=x(()=>a.type==="months"),Z=x(()=>a.type==="years"),le=x(()=>a.prefixIcon||(se.value?mh:py)),ce=x(()=>a.clearable&&!m.value&&!a.readonly&&!T.value&&(F.value||z.value)),ge=pe=>{a.readonly||m.value||(ce.value&&(pe==null||pe.stopPropagation(),k.value.handleClear?k.value.handleClear():M(f.valueOnClear.value),B(f.valueOnClear.value,!0),te()),o("clear"))},me=async pe=>{var Te;a.readonly||m.value||(((Te=pe.target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},Ae=()=>{a.readonly||m.value||!T.value&&a.clearable&&(F.value=!0)},Ne=()=>{F.value=!1},Re=pe=>{var Te;a.readonly||m.value||(((Te=pe.touches[0].target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},ye=x(()=>a.type.includes("range")),Ee=_n(),we=x(()=>{var pe,Te;return(Te=(pe=i(h))==null?void 0:pe.popperRef)==null?void 0:Te.contentRef}),Ie=Rp(g,pe=>{const Te=i(we),ct=xn(g);Te&&(pe.target===Te||pe.composedPath().includes(Te))||pe.target===ct||ct&&pe.composedPath().includes(ct)||(S.value=!1)});Lt(()=>{Ie==null||Ie()});const ze=()=>{if(Y.value&&!a.saveOnBlur)return;const pe=be(C.value)&&C.value.every(Te=>Te==="");if(C.value&&!pe){const Te=et(de.value);Te&&(at(Te)&&M(Pc(Te)),C.value=null)}(C.value===""||pe)&&(M(f.valueOnClear.value),B(f.valueOnClear.value,!0),C.value=null)},et=pe=>pe?k.value.parseUserInput(pe):null,nt=pe=>pe?be(pe)?pe.map(Te=>Te.format(a.format)):pe.format(a.format):null,at=pe=>k.value.isValidValue(pe),Me=async pe=>{if(a.readonly||m.value)return;const Te=Kt(pe);if(W(pe),Te===Ce.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Te===Ce.down&&(k.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await Le()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Te===Ce.tab){v=!0;return}if(Te===Ce.enter||Te===Ce.numpadEnter){S.value?(C.value===null||C.value===""||at(et(de.value)))&&(ze(),S.value=!1):S.value=!0,pe.preventDefault(),pe.stopPropagation();return}if(C.value){pe.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(pe)},Ge=pe=>{C.value=pe,S.value||(S.value=!0)},ut=pe=>{const Te=pe.target;C.value?C.value=[Te.value,C.value[1]]:C.value=[Te.value,null]},je=pe=>{const Te=pe.target;C.value?C.value=[C.value[0],Te.value]:C.value=[null,Te.value]},tt=()=>{var Pt;const pe=C.value,Te=et(pe&&pe[0]),ct=i(b);if(Te&&Te.isValid()){C.value=[nt(Te),((Pt=de.value)==null?void 0:Pt[1])||null];const Gt=[Te,ct&&(ct[1]||null)];at(Gt)&&(M(Pc(Gt)),C.value=null)}},yt=()=>{var Pt;const pe=i(C),Te=et(pe&&pe[1]),ct=i(b);if(Te&&Te.isValid()){C.value=[((Pt=i(de))==null?void 0:Pt[0])||null,nt(Te)];const Gt=[ct&&ct[0],Te];at(Gt)&&(M(Pc(Gt)),C.value=null)}},he=()=>{var pe;(pe=g.value)==null||pe.focus()},Ve=()=>{var pe;(pe=g.value)==null||pe.blur()};return wt(oo,{props:a,emptyValues:f}),wt(rb,y),t({focus:he,blur:Ve,handleOpen:ue,handleClose:ne,onPick:A}),(pe,Te)=>(_(),ie(i(Vn),ht({ref_key:"refPopper",ref:h,visible:i(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${i(r).namespace.value}-zoom-in-top`,"popper-class":[`${i(r).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":i(d),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ee,onHide:te}),{default:ae(()=>[ye.value?(_(),ie(SW,{key:1,id:pe.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:pe.name,disabled:i(m),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:R(N.value),style:qe(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:i(q),onBlur:i(U),onStartInput:ut,onStartChange:tt,onEndInput:je,onEndChange:yt,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onKeydown:Me},{prefix:ae(()=>[le.value?(_(),ie(i(De),{key:0,class:R([i(s).e("icon"),i(u).e("icon")])},{default:ae(()=>[(_(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ae(()=>[oe(pe.$slots,"range-separator",{},()=>[E("span",{class:R(i(u).b("separator"))},Se(pe.rangeSeparator),3)])]),suffix:ae(()=>[pe.clearIcon?(_(),ie(i(De),{key:0,class:R(P.value),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ie(i(Dn),{key:0,id:pe.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:pe.name,size:i(Ee),disabled:i(m),placeholder:pe.placeholder,class:R([i(r).b("editor"),i(r).bm("editor",pe.type),i(r).is("focus",i(S)),pe.$attrs.class]),style:qe(pe.$attrs.style),readonly:!pe.editable||pe.readonly||X.value||H.value||Z.value||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:Ge,onFocus:i(q),onBlur:i(U),onKeydown:Me,onChange:ze,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onClick:Te[0]||(Te[0]=Je(()=>{},["stop"]))},{prefix:ae(()=>[le.value?(_(),ie(i(De),{key:0,class:R(i(s).e("icon")),onMousedown:Je(me,["prevent"]),onTouchstartPassive:Re},{default:ae(()=>[(_(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ae(()=>[ce.value&&pe.clearIcon?(_(),ie(i(De),{key:0,class:R(`${i(s).e("icon")} clear-icon`),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ae(()=>[oe(pe.$slots,"default",{visible:i(S),actualVisible:i(w),parsedValue:i(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:Te[1]||(Te[1]=(...ct)=>i(A)&&i(A)(...ct)),onSelectRange:j,onSetPickerOption:Te[2]||(Te[2]=(...ct)=>i(O)&&i(O)(...ct)),onCalendarChange:Te[3]||(Te[3]=(...ct)=>i(I)&&i(I)(...ct)),onClear:ge,onPanelChange:Te[4]||(Te[4]=(...ct)=>i(L)&&i(L)(...ct)),onMousedown:Te[5]||(Te[5]=Je(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),pb=xW;const kW=_e({...db,datetimeRole:String,parsedValue:{type:J(Object)}}),hb=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),s,c);break;case"second":g=p(f.hour(),f.minute(),s,c);break;default:g=p(s,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},f0=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},vb=(e,t,n)=>({getHoursList:(r,s)=>d0(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>d0(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>d0(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),mb=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=vb(e,t,n);return{getAvailableHours:(c,d)=>f0(a(c,d)),getAvailableMinutes:(c,d,f)=>f0(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>f0(l(c,d,f,h))}},gb=(e,t)=>{const n=V(e.parsedValue);return fe(()=>e.visible,a=>{const o=Rv(t.modelValue),l=Rv(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},EW=_e({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Oh}),TW=["onClick"],MW=["onMouseenter"];var OW=D({__name:"basic-time-spinner",props:EW,emits:[bt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Pe(oo).props,r=t,s=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=vb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=V(),p={hours:V(),minutes:V(),seconds:V()},v=x(()=>n.showSeconds?tg:tg.slice(0,2)),m=x(()=>{const{spinnerDate:K}=n;return{hours:K.hour(),minutes:K.minute(),seconds:K.second()}}),y=x(()=>{const{hours:K,minutes:j}=i(m),{role:G,spinnerDate:ee}=n,te=a?void 0:ee;return{hours:u(G,te),minutes:c(K,G,te),seconds:d(K,j,G,te)}}),b=x(()=>{const{hours:K,minutes:j,seconds:G}=i(m);return{hours:c0(K,23),minutes:c0(j,59),seconds:c0(G,59)}}),w=Vo(K=>{f=!1,k(K)},200),C=K=>{if(!n.amPmMode)return"";const j=n.amPmMode==="A";let G=K<12?" am":" pm";return j&&(G=G.toUpperCase()),G},S=K=>{let j=[0,0];const G=o||Lr,ee=G.indexOf("HH"),te=G.indexOf("mm"),ue=G.indexOf("ss");switch(K){case"hours":ee!==-1&&(j=[ee,ee+2]);break;case"minutes":te!==-1&&(j=[te,te+2]);break;case"seconds":ue!==-1&&(j=[ue,ue+2]);break}const[ne,de]=j;r("select-range",ne,de),g.value=K},k=K=>{A(K,i(m)[K])},T=()=>{k("hours"),k("minutes"),k("seconds")},M=K=>K.querySelector(`.${s.namespace.value}-scrollbar__wrap`),A=(K,j)=>{if(n.arrowControl)return;const G=i(p[K]);G&&G.$el&&(l||(h[K]=!0,Fa(()=>{h[K]=!1})),M(G.$el).scrollTop=Math.max(0,j*O(K)))},O=K=>{var G;const j=(G=i(p[K]))==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(Zo(j,"height"))||0},I=()=>{z(1)},L=()=>{z(-1)},z=K=>{g.value||S("hours");const j=g.value,G=i(m)[j],ee=q(j,G,K,g.value==="hours"?24:60);U(j,ee),A(j,ee),Le(()=>S(j))},q=(K,j,G,ee)=>{let te=(j+G+ee)%ee;const ue=i(y)[K];for(;ue[te]&&te!==j;)te=(te+G+ee)%ee;return te},U=(K,j)=>{if(i(y)[K][j])return;const{hours:G,minutes:ee,seconds:te}=i(m);let ue;switch(K){case"hours":ue=n.spinnerDate.hour(j).minute(ee).second(te);break;case"minutes":ue=n.spinnerDate.hour(G).minute(j).second(te);break;case"seconds":ue=n.spinnerDate.hour(G).minute(ee).second(j);break}r(bt,ue)},F=(K,{value:j,disabled:G})=>{G||(U(K,j),S(K),A(K,j))},N=K=>{if(!l&&h[K])return;const j=i(p[K]);j&&(f=!0,w(K),U(K,Math.min(Math.round((M(j.$el).scrollTop-(P(K)*.5-10)/O(K)+3)/O(K)),K==="hours"?23:59)))},P=K=>i(p[K]).$el.offsetHeight,B=()=>{const K=j=>{const G=i(p[j]);G&&G.$el&&(M(G.$el).onscroll=()=>{N(j)})};K("hours"),K("minutes"),K("seconds")};gt(()=>{Le(()=>{!n.arrowControl&&B(),T(),n.role==="start"&&S("hours")})});const W=(K,j)=>{p[j].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,z]),r("set-option",[`${n.role}_emitSelectRange`,S]),fe(()=>n.spinnerDate,()=>{f||T()}),(K,j)=>(_(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?re("v-if",!0):(_(!0),$(Ke,{key:0},_t(v.value,G=>(_(),ie(i(ao),{key:G,ref_for:!0,ref:ee=>W(ee,G),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(G),onMousemove:ee=>k(G)},{default:ae(()=>[(_(!0),$(Ke,null,_t(y.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",te===m.value[G]),i(s).is("disabled",ee)]),onClick:ue=>F(G,{value:te,disabled:ee})},[G==="hours"?(_(),$(Ke,{key:0},[St(Se(("0"+(K.amPmMode?te%12||12:te)).slice(-2))+Se(C(te)),1)],64)):(_(),$(Ke,{key:1},[St(Se(("0"+te).slice(-2)),1)],64))],10,TW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(_(!0),$(Ke,{key:1},_t(v.value,G=>(_(),$("div",{key:G,class:R([i(s).be("spinner","wrapper"),i(s).is("arrow")]),onMouseenter:ee=>S(G)},[ft((_(),ie(i(De),{class:R(["arrow-up",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(Lu))]),_:1},8,["class"])),[[i(ld),L]]),ft((_(),ie(i(De),{class:R(["arrow-down",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"])),[[i(ld),I]]),E("ul",{class:R(i(s).be("spinner","list"))},[(_(!0),$(Ke,null,_t(b.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",ee===m.value[G]),i(s).is("disabled",y.value[G][ee])])},[i(He)(ee)?(_(),$(Ke,{key:0},[G==="hours"?(_(),$(Ke,{key:0},[St(Se(("0"+(K.amPmMode?ee%12||12:ee)).slice(-2))+Se(C(ee)),1)],64)):(_(),$(Ke,{key:1},[St(Se(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,MW))),128)):re("v-if",!0)],2))}}),E2=OW,$W=D({__name:"panel-time-pick",props:kW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}=mb(r,s,u),g=ve("time"),{t:p,lang:v}=kt(),m=V([0,2]),y=gb(n,{modelValue:x(()=>o.props.modelValue),valueOnClear:x(()=>o!=null&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),b=x(()=>Et(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),w=x(()=>n.format.includes("ss")),C=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=P=>{const B=st(P).locale(v.value),W=U(B);return B.isSame(W)},k=()=>{const P=y.value;a("pick",P,!1),Le(()=>{y.value=P})},T=(P=!1,B=!1)=>{B||a("pick",n.parsedValue,P)},M=P=>{n.visible&&a("pick",U(P).millisecond(0),!0)},A=(P,B)=>{a("select-range",P,B),m.value=[P,B]},O=P=>{const B=n.format,W=B.indexOf("HH"),K=B.indexOf("mm"),j=B.indexOf("ss"),G=[],ee=[];W!==-1&&(G.push(W),ee.push("hours")),K!==-1&&(G.push(K),ee.push("minutes")),j!==-1&&w.value&&(G.push(j),ee.push("seconds"));const te=(G.indexOf(m.value[0])+P+G.length)%G.length;L.start_emitSelectRange(ee[te])},I=P=>{const B=Kt(P),{left:W,right:K,up:j,down:G}=Ce;if([W,K].includes(B)){O(B===W?-1:1),P.preventDefault();return}if([j,G].includes(B)){const ee=B===j?-1:1;L.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=hb({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}),U=P=>q(P,n.datetimeRole||"",!0),F=P=>P?st(P,n.format).locale(v.value):null,N=()=>st(c).locale(v.value);return a("set-picker-option",["isValidValue",S]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleKeydownInput",I]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["getDefaultValue",N]),a("set-picker-option",["handleCancel",k]),(P,B)=>(_(),ie(Fn,{name:b.value},{default:ae(()=>[P.actualVisible||P.visible?(_(),$("div",{key:0,class:R(i(g).b("panel"))},[E("div",{class:R([i(g).be("panel","content"),{"has-seconds":w.value}])},[Q(E2,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(l),"show-seconds":w.value,"am-pm-mode":C.value,"spinner-date":P.parsedValue,"disabled-hours":i(r),"disabled-minutes":i(s),"disabled-seconds":i(u),onChange:M,onSetOption:i(z),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:R(i(g).be("panel","footer"))},[E("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:k},Se(i(p)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=W=>T())},Se(i(p)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),dd=$W;const AW=_e({...db,parsedValue:{type:J(Array)}}),RW=["disabled"];var NW=D({__name:"panel-time-range",props:AW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(X,H)=>{const Z=[];for(let le=X;le<=H;le++)Z.push(le);return Z},{t:l,lang:r}=kt(),s=ve("time"),u=ve("picker"),c=Pe(oo),{arrowControl:d,disabledHours:f,disabledMinutes:h,disabledSeconds:g,defaultValue:p}=c.props,v=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),m=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),w=gb(n,{modelValue:x(()=>c.props.modelValue),valueOnClear:x(()=>c!=null&&c.emptyValues?c.emptyValues.valueOnClear.value:null)}),C=()=>{const X=w.value;a("pick",X,!1),Le(()=>{w.value=X})},S=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(X=!1)=>{a("pick",[y.value,b.value],X)},M=X=>{I(X.millisecond(0),b.value)},A=X=>{I(y.value,X.millisecond(0))},O=X=>{const H=X.map(le=>st(le).locale(r.value)),Z=j(H);return H[0].isSame(Z[0])&&H[1].isSame(Z[1])},I=(X,H)=>{n.visible&&a("pick",[X,H],!0)},L=x(()=>y.value>b.value),z=V([0,2]),q=(X,H)=>{a("select-range",X,H,"min"),z.value=[X,H]},U=x(()=>S.value?11:8),F=(X,H)=>{a("select-range",X,H,"max");const Z=i(U);z.value=[X+Z,H+Z]},N=X=>{const H=S.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(S.value?["seconds"]:[]),le=(H.indexOf(z.value[0])+X+H.length)%H.length,ce=H.length/2;le{const H=Kt(X),{left:Z,right:le,up:ce,down:ge}=Ce;if([Z,le].includes(H)){N(H===Z?-1:1),X.preventDefault();return}if([ce,ge].includes(H)){const me=H===ce?-1:1;ue[`${z.value[0]{const Z=f?f(X):[],le=X==="start",ce=(H||(le?b.value:y.value)).hour();return Qf(Z,le?o(ce+1,23):o(0,ce-1))},W=(X,H,Z)=>{const le=h?h(X,H):[],ce=H==="start",ge=Z||(ce?b.value:y.value);if(X!==ge.hour())return le;const me=ge.minute();return Qf(le,ce?o(me+1,59):o(0,me-1))},K=(X,H,Z,le)=>{const ce=g?g(X,H,Z):[],ge=Z==="start",me=le||(ge?b.value:y.value),Ae=me.hour(),Ne=me.minute();if(X!==Ae||H!==Ne)return ce;const Re=me.second();return Qf(ce,ge?o(Re+1,59):o(0,Re-1))},j=([X,H])=>[ne(X,"start",!0,H),ne(H,"end",!1,X)],{getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}=mb(B,W,K),{timePickerOptions:ue,getAvailableTime:ne,onSetOption:de}=hb({getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}),se=X=>X?be(X)?X.map(H=>st(H,n.format).locale(r.value)):st(X,n.format).locale(r.value):null,Y=()=>{if(be(p))return p.map(H=>st(H).locale(r.value));const X=st(p).locale(r.value);return[X,X.add(60,"m")]};return a("set-picker-option",["parseUserInput",se]),a("set-picker-option",["isValidValue",O]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["handleCancel",C]),(X,H)=>X.actualVisible?(_(),$("div",{key:0,class:R([i(s).b("range-picker"),i(u).b("panel")])},[E("div",{class:R(i(s).be("range-picker","content"))},[E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.startTime")),3),E("div",{class:R(v.value)},[Q(E2,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":y.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:M,onSetOption:i(de),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.endTime")),3),E("div",{class:R(m.value)},[Q(E2,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:A,onSetOption:i(de),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:R(i(s).be("panel","footer"))},[E("button",{type:"button",class:R([i(s).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=Z=>C())},Se(i(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(s).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=Z=>T())},Se(i(l)("el.datepicker.confirm")),11,RW)],2)],2)):re("v-if",!0)}}),PW=NW,yb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(y){this[m]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],h=function(m){var y=u[m];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(m,y){var b,w=u.meridiem;if(w){for(var C=1;C<=24;C+=1)if(m.indexOf(w(C,0,y))>-1){b=C>12;break}}else b=m===(y?"pm":"PM");return b},p={A:[s,function(m){this.afternoon=g(m,!1)}],a:[s,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(m){var y=u.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[r,d("week")],ww:[l,d("week")],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(m){var y=h("months"),b=(h("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var y,b;y=m,b=u&&u.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,L){var z=L&&L.toUpperCase();return I||b[L]||n[L]||b[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,U,F){return U||F.slice(1)})})).match(a),C=w.length,S=0;S-1)return new Date((P==="X"?1e3:1)*N);var K=v(P)(N),j=K.year,G=K.month,ee=K.day,te=K.hours,ue=K.minutes,ne=K.seconds,de=K.milliseconds,se=K.zone,Y=K.week,X=new Date,H=ee||(j||G?1:X.getDate()),Z=j||X.getFullYear(),le=0;j&&!G||(le=G>0?G-1:X.getMonth());var ce,ge=te||0,me=ue||0,Ae=ne||0,Ne=de||0;return se?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne+60*se.offset*1e3)):B?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne)):(ce=new Date(Z,le,H,ge,me,Ae,Ne),Y&&(ce=W(ce).week(Y).toDate()),ce)}catch{return new Date("")}}(k,A,T,b),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&k!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var q=A.length,U=1;U<=q;U+=1){M[1]=A[U-1];var F=b.apply(this,M);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}U===q&&(this.$d=new Date(""))}else C.call(this,S)}}})})(yb);var IW=yb.exports;const Ah=xl(IW);st.extend(Ah);var LW=D({name:"ElTimePicker",install:null,props:{...$h,isRange:Boolean},emits:[ot],setup(e,t){const n=V(),[a,o]=e.isRange?["timerange",PW]:["time",dd],l=r=>t.emit(ot,r);return wt(Mh,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{const r=e.format??Lr;return Q(pb,ht(e,{ref:n,type:a,format:r,"onUpdate:modelValue":l}),{default:s=>Q(o,s,null)})}}});const VW=it(LW),hl=_e({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:io},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),BW={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zW=["aria-label"],DW=["aria-label"];var HW=D({name:"ElTag",__name:"tag",props:hl,emits:BW,setup(e,{emit:t}){const n=e,a=t,o=_n(),{t:l}=kt(),r=ve("tag"),s=x(()=>{const{type:f,hit:h,effect:g,closable:p,round:v}=n;return[r.b(),r.is("closable",p),r.m(f||"primary"),r.m(o.value),r.m(g),r.is("hit",h),r.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{var h,g,p;(p=(g=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:g.component)!=null&&p.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(_(),$("span",{key:0,class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,zW)):re("v-if",!0)],6)):(_(),ie(Fn,{key:1,name:`${i(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ae(()=>[E("span",{class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,DW)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),FW=HW;const ll=it(FW),bb=Symbol("ElSelectGroup"),zu=Symbol("ElSelect"),fd={label:"label",value:"value",disabled:"disabled",options:"options"};function Du(e){const t=V({...fd,...e.props});let n={...e.props};return fe(()=>e.props,s=>{on(s,n)||(t.value={...fd,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>bn(s,t.value.label),getValue:s=>bn(s,t.value.value),getDisabled:s=>bn(s,t.value.disabled),getOptions:s=>bn(s,t.value.options)}}const wb=_e({name:String,id:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:kn,effect:{type:J(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:J(Function)},filterMethod:{type:J(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ft,default:ho},fitInputWidth:Boolean,suffixIcon:{type:Ft,default:po},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,options:{type:J(Array)},props:{type:J(Object),default:()=>fd},...jr,...oa(["ariaLabel"])});Uy.scroll;const T2="ElOption",KW=_e({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function WW(e,t){const n=Pe(zu);n||tn(T2,"usage: ");const a=Pe(bb,{disabled:!1}),o=x(()=>d($n(n.props.modelValue),e.value)),l=x(()=>{if(n.props.multiple){const g=$n(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>e.label??(lt(e.value)?"":e.value)),s=x(()=>e.value||e.label||""),u=x(()=>e.disabled||t.groupDisabled||l.value),c=vt(),d=(g=[],p)=>{if(lt(e.value)){const v=n.props.valueKey;return g&&g.some(m=>jt(bn(m,v))===bn(p,v))}else return g&&g.includes(p)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=g=>{t.visible=new RegExp(Xp(g),"i").test(String(r.value))||e.created};return fe(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),fe(()=>e.value,(g,p)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==p:!on(g,p))&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&<(g)&<(p)&&g[m]===p[m])return;n.setSelected()}}),fe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:s,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:h}}var jW=D({name:T2,componentName:T2,props:KW,setup(e){const t=ve("select"),n=Kn(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",i(s)),t.is("selected",i(r)),t.is("hovering",i(h))]),o=Nt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:s,select:u,hoverItem:c,updateOption:d}=WW(e,o),{visible:f,hover:h}=Nn(o),g=vt().proxy;u.onOptionCreate(g),Lt(()=>{const m=g.value;Le(()=>{const{selected:y}=u.states,b=y.some(w=>w.value===g.value);u.states.cachedOptions.get(m)===g&&!b&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function p(){s.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:l,itemSelected:r,isDisabled:s,select:u,visible:f,hover:h,states:o,hoverItem:c,handleMousedown:m=>{let y=m.target;const b=m.currentTarget;for(;y&&y!==b;){if(Rr(y))return;y=y.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:p}}});const qW=["id","aria-disabled","aria-selected"];function UW(e,t,n,a,o,l){return ft((_(),$("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{},()=>[E("span",null,Se(e.currentLabel),1)])],42,qW)),[[At,e.visible]])}var Rh=En(jW,[["render",UW]]),YW=D({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ve("select"),n=V(),a=vt(),o=V([]);wt(bb,Nt({...Nn(e)}));const l=x(()=>o.value.some(c=>c.visible===!0)),r=c=>{var d;return c.type.name==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},s=c=>{const d=$n(c),f=[];return d.forEach(h=>{var g;Wt(h)&&(r(h)?f.push(h.component.proxy):be(h.children)&&h.children.length?f.push(...s(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...s(h.component.subTree)))}),f},u=()=>{o.value=s(a.subTree)};return gt(()=>{u()}),bu(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function GW(e,t,n,a,o,l){return ft((_(),$("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},Se(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[At,e.visible]])}var Nh=En(YW,[["render",GW]]),XW=D({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Pe(zu),t=ve("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),o=x(()=>e.props.fitInputWidth),l=V("");function r(){var u;const s=(u=e.selectRef)==null?void 0:u.offsetWidth;s?l.value=`${s-y6}px`:l.value=""}return gt(()=>{r(),Zt(e.selectRef,r)}),{ns:t,minWidth:l,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function JW(e,t,n,a,o,l){return _(),$("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),$("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(_(),$("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var ZW=En(XW,[["render",JW]]);const QW=(e,t)=>{const{t:n}=kt(),a=vn(),o=Kn(),l=ve("select"),r=ve("input"),s=Nt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=V(),c=V(),d=V(),f=V(),h=V(),g=V(),p=V(),v=V(),m=V(),y=V(),b=V(),w=V(!1),C=V(),S=V(!1),{form:k,formItem:T}=Bn(),{inputId:M}=Pa(e,{formItemContext:T}),{valueOnClear:A,isEmptyValue:O}=Iu(e),{isComposing:I,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q}=Pu({afterComposition:xe=>Ge(xe)}),U=sn(),{wrapperRef:F,isFocused:N,handleBlur:P}=Cl(h,{disabled:U,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(xe){var Qe,Tt;return((Qe=d.value)==null?void 0:Qe.isFocusInsideContent(xe))||((Tt=f.value)==null?void 0:Tt.isFocusInsideContent(xe))},afterBlur(){var xe;w.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((xe=T==null?void 0:T.validate)==null||xe.call(T,"blur").catch(Qe=>pt(Qe)))}}),B=x(()=>be(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),W=x(()=>(k==null?void 0:k.statusIcon)??!1),K=x(()=>e.clearable&&!U.value&&B.value&&(N.value||s.inputHovering)),j=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=x(()=>l.is("reverse",!!(j.value&&w.value))),ee=x(()=>(T==null?void 0:T.validateState)||""),te=x(()=>ee.value&&hf[ee.value]),ue=x(()=>e.remote?e.debounce:0),ne=x(()=>e.remote&&!s.inputValue&&s.options.size===0),de=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&se.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),se=x(()=>Y.value.filter(xe=>xe.visible).length),Y=x(()=>{const xe=Array.from(s.options.values()),Qe=[];return s.optionValues.forEach(Tt=>{const Jt=xe.findIndex(Cn=>Cn.value===Tt);Jt>-1&&Qe.push(xe[Jt])}),Qe.length>=xe.length?Qe:xe}),X=x(()=>Array.from(s.cachedOptions.values())),H=x(()=>{const xe=Y.value.filter(Qe=>!Qe.created).some(Qe=>Qe.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!xe}),Z=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||Y.value.forEach(xe=>{var Qe;(Qe=xe.updateOption)==null||Qe.call(xe,s.inputValue)})},le=_n(),ce=x(()=>["small"].includes(le.value)?"small":"default"),ge=x({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!a.empty)&&(!S.value||!ca(s.previousQuery)||s.options.size>0)},set(xe){w.value=xe}}),me=x(()=>{if(e.multiple&&!Et(e.modelValue))return $n(e.modelValue).length===0&&!s.inputValue;const xe=be(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Et(xe)?!s.inputValue:!0}),Ae=x(()=>{const xe=e.placeholder??n("el.select.placeholder");return e.multiple||!B.value?xe:s.selectedLabel}),Ne=x(()=>td?null:"mouseenter");fe(()=>e.modelValue,(xe,Qe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Re("")),Ee(),!on(xe,Qe)&&e.validateEvent&&(T==null||T.validate("change").catch(Tt=>pt(Tt)))},{flush:"post",deep:!0}),fe(()=>w.value,xe=>{xe?Re(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0,s.menuVisibleOnFocus=!1)}),fe(()=>s.options.entries(),()=>{Rt&&(Ee(),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value&&ye())},{flush:"post"}),fe([()=>s.hoveringIndex,Y],([xe])=>{He(xe)&&xe>-1?C.value=Y.value[xe]||{}:C.value={},Y.value.forEach(Qe=>{Qe.hover=C.value===Qe})}),da(()=>{s.isBeforeHide||Z()});const Re=xe=>{s.previousQuery===xe||I.value||(s.previousQuery=xe,e.filterable&&Fe(e.filterMethod)?e.filterMethod(xe):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(xe),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value?Le(ye):Le(Ie))},ye=()=>{const xe=Y.value.filter(Jt=>Jt.visible&&!Jt.disabled&&!Jt.states.groupDisabled),Qe=xe.find(Jt=>Jt.created),Tt=xe[0];s.hoveringIndex=Te(Y.value.map(Jt=>Jt.value),Qe||Tt)},Ee=()=>{if(e.multiple)s.selectedLabel="";else{const Qe=we(be(e.modelValue)?e.modelValue[0]:e.modelValue);s.selectedLabel=Qe.currentLabel,s.selected=[Qe];return}const xe=[];Et(e.modelValue)||$n(e.modelValue).forEach(Qe=>{xe.push(we(Qe))}),s.selected=xe},we=xe=>{let Qe;const Tt=Bi(xe);for(let Jt=s.cachedOptions.size-1;Jt>=0;Jt--){const Cn=X.value[Jt];if(Tt?bn(Cn.value,e.valueKey)===bn(xe,e.valueKey):Cn.value===xe){Qe={index:Y.value.filter(Pn=>!Pn.created).indexOf(Cn),value:xe,currentLabel:Cn.currentLabel,get isDisabled(){return Cn.isDisabled}};break}}return Qe||{index:-1,value:xe,currentLabel:Tt?xe.label:xe??""}},Ie=()=>{const xe=s.selected.length;if(xe>0){const Qe=s.selected[xe-1];s.hoveringIndex=Y.value.findIndex(Tt=>Mn(Qe)===Mn(Tt))}else s.hoveringIndex=-1},ze=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},et=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},nt=()=>{var xe,Qe;(Qe=(xe=d.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},at=()=>{var xe,Qe;(Qe=(xe=f.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},Me=()=>{s.inputValue.length>0&&!w.value&&(w.value=!0),Re(s.inputValue)},Ge=xe=>{if(s.inputValue=xe.target.value,e.remote)S.value=!0,ut();else return Me()},ut=yu(()=>{Me(),S.value=!1},ue),je=xe=>{on(e.modelValue,xe)||t(bt,xe)},tt=xe=>s8(xe,Qe=>{const Tt=s.cachedOptions.get(Qe);return!(Tt!=null&&Tt.disabled)&&!(Tt!=null&&Tt.states.groupDisabled)}),yt=xe=>{const Qe=Kt(xe);if(e.multiple&&Qe!==Ce.delete&&xe.target.value.length<=0){const Tt=$n(e.modelValue).slice(),Jt=tt(Tt);if(Jt<0)return;const Cn=Tt[Jt];Tt.splice(Jt,1),t(ot,Tt),je(Tt),t("remove-tag",Cn)}},he=(xe,Qe)=>{const Tt=s.selected.indexOf(Qe);if(Tt>-1&&!U.value){const Jt=$n(e.modelValue).slice();Jt.splice(Tt,1),t(ot,Jt),je(Jt),t("remove-tag",Qe.value)}xe.stopPropagation(),Ze()},Ve=xe=>{xe.stopPropagation();const Qe=e.multiple?[]:A.value;if(e.multiple)for(const Tt of s.selected)Tt.isDisabled&&Qe.push(Tt.value);t(ot,Qe),je(Qe),s.hoveringIndex=-1,w.value=!1,t("clear"),Ze()},pe=xe=>{if(e.multiple){const Qe=$n(e.modelValue??[]).slice(),Tt=Te(Qe,xe);Tt>-1?Qe.splice(Tt,1):(e.multipleLimit<=0||Qe.length{ct(xe)})},Te=(xe,Qe)=>Et(Qe)?-1:lt(Qe.value)?xe.findIndex(Tt=>on(bn(Tt,e.valueKey),Mn(Qe))):xe.indexOf(Qe.value),ct=xe=>{var Jt,Cn,Pn,Wo,ti;const Qe=be(xe)?xe[xe.length-1]:xe;let Tt=null;if(!yn(Qe==null?void 0:Qe.value)){const Jl=Y.value.filter(Ur=>Ur.value===Qe.value);Jl.length>0&&(Tt=Jl[0].$el)}if(d.value&&Tt){const Jl=(Wo=(Pn=(Cn=(Jt=d.value)==null?void 0:Jt.popperRef)==null?void 0:Cn.contentRef)==null?void 0:Pn.querySelector)==null?void 0:Wo.call(Pn,`.${l.be("dropdown","wrap")}`);Jl&&Qp(Jl,Tt)}(ti=b.value)==null||ti.handleScroll()},Pt=xe=>{s.options.set(xe.value,xe),s.cachedOptions.set(xe.value,xe)},Gt=(xe,Qe)=>{s.options.get(xe)===Qe&&s.options.delete(xe)},$e=x(()=>{var xe,Qe;return(Qe=(xe=d.value)==null?void 0:xe.popperRef)==null?void 0:Qe.contentRef}),We=()=>{s.isBeforeHide=!1,Le(()=>{var xe;(xe=b.value)==null||xe.update(),ct(s.selected)})},Ze=()=>{var xe;(xe=h.value)==null||xe.focus()},dn=()=>{var xe;if(w.value){w.value=!1,Le(()=>{var Qe;return(Qe=h.value)==null?void 0:Qe.blur()});return}(xe=h.value)==null||xe.blur()},zt=xe=>{Ve(xe)},Xt=xe=>{if(w.value=!1,N.value){const Qe=new FocusEvent("blur",xe);Le(()=>P(Qe))}},Ue=()=>{s.inputValue.length>0?s.inputValue="":w.value=!1},Xe=xe=>{var Qe;U.value||e.filterable&&w.value&&xe&&!((Qe=p.value)!=null&&Qe.contains(xe.target))||(td&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:w.value=!w.value)},mt=()=>{if(!w.value)Xe();else{const xe=Y.value[s.hoveringIndex];xe&&!xe.isDisabled&&pe(xe)}},Mn=xe=>lt(xe.value)?bn(xe.value,e.valueKey):xe.value,go=x(()=>Y.value.filter(xe=>xe.visible).every(xe=>xe.isDisabled)),ja=x(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Gu=x(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Xl=xe=>{if(!w.value){w.value=!0;return}if(!(s.options.size===0||se.value===0||I.value)&&!go.value){xe==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):xe==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Qe=Y.value[s.hoveringIndex];(Qe.isDisabled||!Qe.visible)&&Xl(xe),Le(()=>ct(C.value))}},Xu=(xe,Qe,Tt,Jt)=>{for(let Cn=Qe;Cn>=0&&Cn{const Tt=s.options.size;if(Tt===0)return;const Jt=pr(xe,0,Tt-1),Cn=Y.value,Pn=Qe==="up"?-1:1,Wo=Xu(Cn,Jt,Pn,Tt)??Xu(Cn,Jt-Pn,-Pn,Tt);Wo!=null&&(s.hoveringIndex=Wo,Le(()=>ct(C.value)))},Nf=xe=>{const Qe=Kt(xe);let Tt=!0;switch(Qe){case Ce.up:Xl("prev");break;case Ce.down:Xl("next");break;case Ce.enter:case Ce.numpadEnter:I.value||mt();break;case Ce.esc:Ue();break;case Ce.backspace:Tt=!1,yt(xe);return;case Ce.home:if(!w.value)return;Ko(0,"down");break;case Ce.end:if(!w.value)return;Ko(s.options.size-1,"up");break;case Ce.pageUp:if(!w.value)return;Ko(s.hoveringIndex-10,"up");break;case Ce.pageDown:if(!w.value)return;Ko(s.hoveringIndex+10,"down");break;default:Tt=!1;break}Tt&&(xe.preventDefault(),xe.stopPropagation())},Pf=()=>{if(!c.value)return 0;const xe=window.getComputedStyle(c.value);return Number.parseFloat(xe.gap||"6px")},If=x(()=>{const xe=Pf(),Qe=e.filterable?xe+jd:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-xe-Qe:s.selectionWidth-Qe}px`}}),Lf=x(()=>({maxWidth:`${s.selectionWidth}px`})),Vf=xe=>{t("popup-scroll",xe)};Zt(c,ze),Zt(F,nt),Zt(m,at),Zt(y,et);let kl;return fe(()=>ge.value,xe=>{xe?kl=Zt(v,nt).stop:(kl==null||kl(),kl=void 0),t("visible-change",xe)}),gt(()=>{Ee()}),{inputId:M,contentId:o,nsSelect:l,nsInput:r,states:s,isFocused:N,expanded:w,optionsArray:Y,hoverOption:C,selectSize:le,filteredOptionsCount:se,updateTooltip:nt,updateTagTooltip:at,debouncedOnInputChange:ut,onInput:Ge,deletePrevTag:yt,deleteTag:he,deleteSelected:Ve,handleOptionSelect:pe,scrollToOption:ct,hasModelValue:B,shouldShowPlaceholder:me,currentPlaceholder:Ae,mouseEnterEventName:Ne,needStatusIcon:W,showClearBtn:K,iconComponent:j,iconReverse:G,validateState:ee,validateIcon:te,showNewOption:H,updateOptions:Z,collapseTagSize:ce,setSelected:Ee,selectDisabled:U,emptyText:de,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q,handleKeydown:Nf,onOptionCreate:Pt,onOptionDestroy:Gt,handleMenuEnter:We,focus:Ze,blur:dn,handleClearClick:zt,handleClickOutside:Xt,handleEsc:Ue,toggleMenu:Xe,selectOption:mt,getValueKey:Mn,navigateOptions:Xl,dropdownMenuVisible:ge,showTagList:ja,collapseTagList:Gu,popupScroll:Vf,getOption:we,tagStyle:If,collapseTagStyle:Lf,popperRef:$e,inputRef:h,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:p,selectRef:u,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:v,tagMenuRef:m,collapseItemRef:y}};var ej=D({name:"ElOptions",setup(e,{slots:t}){const n=Pe(zu);let a=[];return()=>{var s,u;const o=(s=t.default)==null?void 0:s.call(t),l=[];function r(c){be(c)&&c.forEach(d=>{var h,g,p,v;const f=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;f==="ElOptionGroup"?r(!Be(d.children)&&!be(d.children)&&Fe((g=d.children)==null?void 0:g.default)?(p=d.children)==null?void 0:p.default():d.children):f==="ElOption"?l.push((v=d.props)==null?void 0:v.value):be(d.children)&&r(d.children)})}return o.length&&r((u=o[0])==null?void 0:u.children),on(l,a)||(a=l,n&&(n.states.optionValues=l)),o}}});const lg="ElSelect",tu=new WeakMap,tj=e=>(...t)=>{var o,l;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((o=t[2])!=null&&o.includes("ElTreeSelect")))return;const a=(l=tu.get(e))==null?void 0:l.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},nj=e=>{let t=tu.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:tj(e),count:0},tu.set(e,t)),t};var aj=D({name:lg,componentName:lg,components:{ElSelectMenu:ZW,ElOption:Rh,ElOptions:ej,ElOptionGroup:Nh,ElTag:ll,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:wb,emits:[ot,bt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=vt(),o=nj(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const l=x(()=>{const{modelValue:b,multiple:w}=e,C=w?[]:void 0;return be(b)?w?b:C:w?C:b}),r=Nt({...Nn(e),modelValue:l}),s=QW(r,t),{calculatorRef:u,inputStyle:c}=Gp(),{getLabel:d,getValue:f,getOptions:h,getDisabled:g}=Du(e),p=b=>({label:d(b),value:f(b),disabled:g(b)}),v=b=>b.reduce((w,C)=>(w.push(C),C.children&&C.children.length>0&&w.push(...v(C.children)),w),[]),m=b=>{Ta(b||[]).forEach(w=>{var C;if(lt(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const S=w.type.name;if(S==="ElTree")v(((C=w.props)==null?void 0:C.data)||[]).forEach(k=>{k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)});else if(S==="ElOption"){const k={...w.props};k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)}}})};fe(()=>{var b;return[e.persistent||s.expanded.value||!n.default||(b=n.default)==null?void 0:b.call(n),l.value]},()=>{var b;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),m((b=n.default)==null?void 0:b.call(n)))},{immediate:!0}),wt(zu,Nt({props:r,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=x(()=>e.multiple?s.states.selected.map(b=>b.currentLabel):s.states.selectedLabel);return Lt(()=>{const b=tu.get(a.appContext);b&&(b.count-=1,b.count<=0&&(a.appContext.config.warnHandler=b.originalWarnHandler,tu.delete(a.appContext)))}),{...s,modelValue:l,selectedLabel:y,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:h,getDisabled:g,getOptionProps:p}}});const oj=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],lj=["textContent"],rj={key:1};function sj(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-option"),d=$t("el-option-group"),f=$t("el-options"),h=$t("el-scrollbar"),g=$t("el-select-menu"),p=kp("click-outside");return ft((_(),$("div",ht({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Si(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ae(()=>{var v;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var m,y,b,w,C,S,k,T,M,A,O,I,L;return[(_(!0),$(Ke,null,_t(e.showTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((m=e.tagTooltip)==null?void 0:m.fallbackPlacements)??["bottom","top","right","left"],effect:((y=e.tagTooltip)==null?void 0:y.effect)??e.effect,placement:((b=e.tagTooltip)==null?void 0:b.placement)??"bottom","popper-class":((w=e.tagTooltip)==null?void 0:w.popperClass)??e.popperClass,"popper-style":((C=e.tagTooltip)==null?void 0:C.popperStyle)??e.popperStyle,teleported:((S=e.tagTooltip)==null?void 0:S.teleported)??e.teleported,"append-to":((k=e.tagTooltip)==null?void 0:k.appendTo)??e.appendTo,"popper-options":((T=e.tagTooltip)==null?void 0:T.popperOptions)??e.popperOptions,transition:(M=e.tagTooltip)==null?void 0:M.transition,"show-after":(A=e.tagTooltip)==null?void 0:A.showAfter,"hide-after":(O=e.tagTooltip)==null?void 0:O.hideAfter,"auto-close":(I=e.tagTooltip)==null?void 0:I.autoClose,offset:(L=e.tagTooltip)==null?void 0:L.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.collapseTagStyle)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(Ke,null,_t(e.collapseTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:qe(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...m)=>e.handleKeydown&&e.handleKeydown(...m)),onCompositionstart:t[1]||(t[1]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[2]||(t[2]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[3]||(t[3]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onChange:t[5]||(t[5]=Je(()=>{},["stop"])),onClick:t[6]||(t[6]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,oj),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,lj)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(_(),$("span",rj,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(g,{ref:"menuRef"},{default:ae(()=>[e.$slots.header?(_(),$("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),ft(Q(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ae(()=>[e.showNewOption?(_(),ie(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Q(f,null,{default:ae(()=>[oe(e.$slots,"default",{},()=>[(_(!0),$(Ke,null,_t(e.options,(v,m)=>{var y;return _(),$(Ke,{key:m},[(y=e.getOptions(v))!=null&&y.length?(_(),ie(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ae(()=>[(_(!0),$(Ke,null,_t(e.getOptions(v),b=>(_(),ie(c,ht({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(_(),ie(c,ht({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[At,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),$("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),$("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(_(),$("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[p,e.handleClickOutside,e.popperRef]])}var ij=En(aj,[["render",sj]]);const Yl=it(ij,{Option:Rh,OptionGroup:Nh}),pd=nn(Rh),uj=nn(Nh),cj=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Hl(t).map((a,o)=>n-(t-o-1))},dj=e=>Hl(e.daysInMonth()).map((t,n)=>n+1),fj=e=>Hl(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),pj=_e({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),hj={pick:e=>lt(e)};var Cb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){var l=a.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,h,g,p,v){var m=f.name?f:f.$locale(),y=r(m[h]),b=r(m[g]),w=y||b.map(function(S){return S.slice(0,p)});if(!v)return w;var C=m.weekStart;return w.map(function(S,k){return w[(k+(C||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,m){return v||m.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):s(f,"months")},monthsShort:function(h){return h?h.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(f){return s(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(Cb);var vj=Cb.exports;const _b=xl(vj),mj=(e,t)=>{st.extend(_b);const n=st.localeData().firstDayOfWeek(),{t:a,lang:o}=kt(),l=st().locale(o.value),r=x(()=>!!e.range&&!!e.range.length),s=x(()=>{let h=[];if(r.value){const[g,p]=e.range,v=Hl(p.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const y=Hl(m).map((b,w)=>({text:w+1,type:"next"}));h=v.concat(y)}else{const g=e.date.startOf("month").day(),p=cj(e.date,(g-n+7)%7).map(y=>({text:y,type:"prev"})),v=dj(e.date).map(y=>({text:y,type:"current"}));h=[...p,...v];const m=Hl(7-(h.length%7||7)).map((y,b)=>({text:b+1,type:"next"}));h=h.concat(m)}return fj(h)}),u=x(()=>{const h=n;return h===0?Yf.map(g=>a(`el.datepicker.weeks.${g}`)):Yf.slice(h).concat(Yf.slice(0,h)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(h,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:l,isInRange:r,rows:s,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:g})=>{t("pick",c(h,g))},getSlotData:({text:h,type:g})=>{const p=c(h,g);return{isSelected:p.isSame(e.selectedDay),type:`${g}-month`,day:p.format(Qo),date:p.toDate()}}}},gj={key:0},yj=["onClick"];var bj=D({name:"DateTable",__name:"date-table",props:pj,emits:hj,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:l,rows:r,weekDays:s,getFormattedDate:u,handlePickDay:c,getSlotData:d}=mj(a,n),f=ve("calendar-table"),h=ve("calendar-day"),g=({text:p,type:v})=>{const m=[v];if(v==="current"){const y=u(p,v);y.isSame(a.selectedDay,"day")&&m.push(h.is("selected")),y.isSame(l,"day")&&m.push(h.is("today"))}return m};return t({getFormattedDate:u}),(p,v)=>(_(),$("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(_(),$("thead",gj,[E("tr",null,[(_(!0),$(Ke,null,_t(i(s),m=>(_(),$("th",{key:m,scope:"col"},Se(m),1))),128))])])),E("tbody",null,[(_(!0),$(Ke,null,_t(i(r),(m,y)=>(_(),$("tr",{key:y,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:y===0&&e.hideHeader})},[(_(!0),$(Ke,null,_t(m,(b,w)=>(_(),$("td",{key:w,class:R(g(b)),onClick:C=>i(c)(b)},[E("div",{class:R(i(h).b())},[oe(p.$slots,"date-cell",{data:i(d)(b)},()=>[E("span",null,Se(b.text),1)])],2)],10,yj))),128))],2))),128))])],2))}}),rg=bj;const wj=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},Cj=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,l=o.endOf("month"),r=t.startOf("month"),s=l.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),l],[s.startOf("week"),t]]},_j=(e,t,n)=>{const{lang:a}=kt(),o=V(),l=st().locale(a.value),r=x({get(){return e.modelValue?u.value:o.value},set(y){if(!y)return;o.value=y;const b=y.toDate();t(wn,b),t(ot,b)}}),s=x(()=>{if(!e.range||!be(e.range)||e.range.length!==2||e.range.some(w=>!Fl(w)))return[];const[y,b]=e.range.map(w=>st(w).locale(a.value));return y.isAfter(b)?(pt(n,"end time should be greater than start time"),[]):y.isSame(b,"month")?g(y,b):y.add(1,"month").month()!==b.month()?(pt(n,"start time and end time interval must not exceed two months"),[]):g(y,b)}),u=x(()=>e.modelValue?st(e.modelValue).locale(a.value):r.value||(s.value.length?s.value[0][0]:l)),c=x(()=>u.value.subtract(1,"month").date(1)),d=x(()=>u.value.add(1,"month").date(1)),f=x(()=>u.value.subtract(1,"year").date(1)),h=x(()=>u.value.add(1,"year").date(1)),g=(y,b)=>{const w=y.startOf("week"),C=b.endOf("week"),S=w.get("month"),k=C.get("month");return S===k?[[w,C]]:(S+1)%12===k?wj(w,C):S+2===k||(S+1)%11===k?Cj(w,C):(pt(n,"start time and end time interval must not exceed two months"),[])},p=y=>{r.value=y},v=y=>{const b={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:l}[y];b.isSame(u.value,"day")||p(b)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:r,pickDay:p,selectDate:v,validatedRange:s,handleDateChange:y=>{y==="today"?v("today"):p(y)}}},Sj=_e({date:{type:J(Object),required:!0},formatter:{type:J(Function)}}),xj={"date-change":e=>lt(e)||Be(e)};var kj=D({name:"SelectController",__name:"select-controller",props:Sj,emits:xj,setup(e,{emit:t}){const n=e,a=t,o=ve("calendar-select"),{t:l,lang:r}=kt(),s=Array.from({length:12},(p,v)=>{const m=v+1;return{value:m,label:Fe(n.formatter)?n.formatter(m,"month"):m}}),u=x(()=>n.date.year()),c=x(()=>n.date.month()+1),d=x(()=>{const p=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const y=Fe(n.formatter)?n.formatter(m,"year"):m;p.push({value:m,label:y})}}return p}),f=p=>{a("date-change",st(new Date(p,c.value-1,1)).locale(r.value))},h=p=>{a("date-change",st(new Date(u.value,p-1,1)).locale(r.value))},g=()=>{a("date-change","today")};return(p,v)=>(_(),$(Ke,null,[Q(i(Yl),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),Q(i(Yl),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(s),onChange:h},null,8,["model-value","class","options"]),Q(i(An),{size:"small",onClick:g},{default:ae(()=>[St(Se(i(l)("el.datepicker.today")),1)]),_:1})],64))}}),Ej=kj;const sg="ElCalendar";var Tj=D({name:sg,__name:"calendar",props:vW,emits:mW,setup(e,{expose:t,emit:n}){const a=ve("calendar"),{calculateValidatedDateRange:o,date:l,pickDay:r,realSelectedDay:s,selectDate:u,validatedRange:c,handleDateChange:d}=_j(e,n,sg),{t:f}=kt(),h=x(()=>{const g=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:s,pickDay:r,selectDate:u,calculateValidatedDateRange:o}),(g,p)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:h.value},()=>[E("div",{class:R(i(a).e("title"))},Se(h.value),3),i(c).length===0&&e.controllerType==="button"?(_(),$("div",{key:0,class:R(i(a).e("button-group"))},[Q(i(lb),null,{default:ae(()=>[Q(i(An),{size:"small",onClick:p[0]||(p[0]=v=>i(u)("prev-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.prevMonth")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[1]||(p[1]=v=>i(u)("today"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.today")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[2]||(p[2]=v=>i(u)("next-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(_(),$("div",{key:1,class:R(i(a).e("select-controller"))},[Q(Ej,{date:i(l),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(_(),$("div",{key:0,class:R(i(a).e("body"))},[Q(rg,{date:i(l),"selected-day":i(s),onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(v=>[oe(g.$slots,"date-cell",nl(al(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),$("div",{key:1,class:R(i(a).e("body"))},[(_(!0),$(Ke,null,_t(i(c),(v,m)=>(_(),ie(rg,{key:m,date:v[0],"selected-day":i(s),range:v,"hide-header":m!==0,onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(y=>[oe(g.$slots,"date-cell",ht({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),Mj=Tj;const Oj=it(Mj),$j=_e({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var Aj=D({name:"ElCard",__name:"card",props:$j,setup(e){const t=_l("card"),n=ve("card");return(a,o)=>{var l;return _(),$("div",{class:R([i(n).b(),i(n).is(`${e.shadow||((l=i(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(_(),$("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[St(Se(e.header),1)])],2)):re("v-if",!0),E("div",{class:R([i(n).e("body"),e.bodyClass]),style:qe(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(_(),$("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[St(Se(e.footer),1)])],2)):re("v-if",!0)],2)}}}),Rj=Aj;const Nj=it(Rj),Pj=_e({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Ij={change:(e,t)=>[e,t].every(He)},Sb=Symbol("carouselContextKey"),nu="ElCarouselItem",Lj=_e({name:{type:String,default:""},label:{type:[String,Number],default:""}}),ig=300,Vj=(e,t,n)=>{const{children:a,addChild:o,removeChild:l,ChildrenSorter:r}=df(vt(),nu),s=vn(),u=V(-1),c=V(null),d=V(!1),f=V(),h=V(0),g=V(!0),p=x(()=>e.arrow!=="never"&&!i(y)),v=x(()=>a.value.some(te=>te.props.label.toString().length>0)),m=x(()=>e.type==="card"),y=x(()=>e.direction==="vertical"),b=x(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Il(te=>{A(te)},ig,{trailing:!0}),C=Il(te=>{N(te)},ig),S=te=>g.value?u.value<=1?te<=1:te>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>M(),e.interval))}const M=()=>{u.valuese.props.name===te);de.length>0&&(te=a.value.indexOf(de[0]))}if(te=Number(te),Number.isNaN(te)||te!==Math.floor(te)){pt(n,"index must be integer.");return}const ue=a.value.length,ne=u.value;te<0?u.value=e.loop?ue-1:0:te>=ue?u.value=e.loop?0:ue-1:u.value=te,ne===u.value&&O(ne),W()}function O(te){a.value.forEach((ue,ne)=>{ue.translateItem(ne,u.value,te)})}function I(te,ue){var ge,me,Ae,Ne;const ne=i(a),de=ne.length;if(de===0||!te.states.inStage)return!1;const se=ue+1,Y=ue-1,X=de-1,H=ne[X].states.active,Z=ne[0].states.active,le=(me=(ge=ne[se])==null?void 0:ge.states)==null?void 0:me.active,ce=(Ne=(Ae=ne[Y])==null?void 0:Ae.states)==null?void 0:Ne.active;return ue===X&&Z||le?"left":ue===0&&H||ce?"right":!1}function L(){d.value=!0,e.pauseOnHover&&k()}function z(){d.value=!1,T()}function q(te){i(y)||a.value.forEach((ue,ne)=>{te===I(ue,ne)&&(ue.states.hover=!0)})}function U(){i(y)||a.value.forEach(te=>{te.states.hover=!1})}function F(te){u.value=te}function N(te){e.trigger==="hover"&&te!==u.value&&(u.value=te)}function P(){A(u.value-1)}function B(){A(u.value+1)}function W(){k(),(!e.pauseOnHover||!d.value)&&T()}function K(te){e.height==="auto"&&(h.value=te)}function j(){var ne;const te=(ne=s.default)==null?void 0:ne.call(s);if(!te)return null;const ue=Ta(te).filter(de=>Wt(de)&&de.type.name===nu);return(ue==null?void 0:ue.length)===2&&e.loop&&!m.value?(g.value=!0,ue):(g.value=!1,null)}fe(()=>u.value,(te,ue)=>{O(ue),g.value&&(te=te%2,ue=ue%2),ue>-1&&t(bt,te,ue)});const G=x({get:()=>g.value?u.value%2:u.value,set:te=>u.value=te});fe(()=>e.autoplay,te=>{te?T():k()}),fe(()=>e.loop,()=>{A(u.value)}),fe(()=>e.interval,()=>{W()});const ee=qt();return gt(()=>{fe(()=>a.value,()=>{a.value.length>0&&A(e.initialIndex)},{immediate:!0}),ee.value=Zt(f.value,()=>{O()}),T()}),Lt(()=>{k(),f.value&&ee.value&&ee.value.stop()}),wt(Sb,{root:f,isCardType:m,isVertical:y,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:l,setActiveItem:A,setContainerHeight:K}),{root:f,activeIndex:u,exposeActiveIndex:G,arrowDisplay:p,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:y,containerStyle:b,isItemsTwoLength:g,handleButtonEnter:q,handleButtonLeave:U,handleIndicatorClick:F,handleMouseEnter:L,handleMouseLeave:z,setActiveItem:A,prev:P,next:B,PlaceholderItem:j,isTwoLengthShow:S,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:C}},Bj=["aria-label"],zj=["aria-label"],Dj=["onMouseenter","onClick"],Hj=["aria-label"],Fj={key:0},Kj={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},ug="ElCarousel";var Wj=D({name:ug,__name:"carousel",props:Pj,emits:Ij,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:l,exposeActiveIndex:r,arrowDisplay:s,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:h,containerStyle:g,handleButtonEnter:p,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:C,next:S,PlaceholderItem:k,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:A,throttledIndicatorHover:O}=Vj(a,n,ug),I=ve("carousel"),{t:L}=kt(),z=x(()=>{const N=[I.b(),I.m(a.direction)];return i(d)&&N.push(I.m("card")),N.push(I.is("vertical-outside",i(h)&&a.indicatorPosition==="outside")),N}),q=x(()=>{const N=[I.e("indicators"),I.em("indicators",a.direction)];return i(u)&&N.push(I.em("indicators","labels")),a.indicatorPosition==="outside"&&N.push(I.em("indicators","outside")),i(h)&&N.push(I.em("indicators","right")),N});function U(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function F(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:r,setActiveItem:w,prev:C,next:S}),(N,P)=>(_(),$("div",{ref_key:"root",ref:o,class:R(z.value),onMouseenter:P[6]||(P[6]=Je((...B)=>i(y)&&i(y)(...B),["stop"])),onMouseleave:P[7]||(P[7]=Je((...B)=>i(b)&&i(b)(...B),["stop"]))},[i(s)?(_(),ie(Fn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","left")]),"aria-label":i(L)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=B=>i(p)("left")),onMouseleave:P[1]||(P[1]=(...B)=>i(v)&&i(v)(...B)),onClick:P[2]||(P[2]=Je(B=>i(A)(i(l)-1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],42,Bj),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)>0)]])]),_:1})):re("v-if",!0),i(s)?(_(),ie(Fn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","right")]),"aria-label":i(L)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=B=>i(p)("right")),onMouseleave:P[4]||(P[4]=(...B)=>i(v)&&i(v)(...B)),onClick:P[5]||(P[5]=Je(B=>i(A)(i(l)+1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],42,zj),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)[e.indicatorPosition!=="none"?(_(),$("ul",{key:0,class:R(q.value)},[(_(!0),$(Ke,null,_t(i(f),(B,W)=>ft((_(),$("li",{key:W,class:R([i(I).e("indicator"),i(I).em("indicator",e.direction),i(I).is("active",W===i(l))]),onMouseenter:K=>i(O)(W),onClick:Je(K=>i(m)(W),["stop"])},[E("button",{class:R(i(I).e("button")),"aria-label":i(L)("el.carousel.indicator",{index:W+1})},[i(u)?(_(),$("span",Fj,Se(B.props.label),1)):re("v-if",!0)],10,Hj)],42,Dj)),[[At,i(T)(W)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(_(),$("svg",Kj,[...P[8]||(P[8]=[E("defs",null,[E("filter",{id:"elCarouselHorizontal"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),E("filter",{id:"elCarouselVertical"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),jj=Wj;const qj=e=>{const t=Pe(Sb),n=vt();t||pt(nu,"usage: "),n||pt(nu,"compositional hook can only be invoked inside setups");const a=V(),o=V(!1),l=V(0),r=V(1),s=V(!1),u=V(!1),c=V(!1),d=V(!1),{isCardType:f,isVertical:h,cardScale:g}=t;function p(C,S,k){const T=k-1,M=S-1,A=S+1,O=k/2;return S===0&&C===T?-1:S===T&&C===0?k:C=O?k+1:C>A&&C-S>=O?-2:C}function v(C,S){var T,M;const k=i(h)?((T=t.root.value)==null?void 0:T.offsetHeight)||0:((M=t.root.value)==null?void 0:M.offsetWidth)||0;return c.value?k*((2-g)*(C-S)+1)/4:C{const T=i(f),M=t.items.value.length??NaN,A=C===S;!T&&!Et(k)&&(d.value=A||C===k),!A&&M>2&&t.loop&&(C=p(C,S,M));const O=i(h);s.value=A,T?(c.value=Math.round(Math.abs(C-S))<=1,l.value=v(C,S),r.value=i(s)?1:g):l.value=m(C,S,O),u.value=!0,A&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function b(){if(t&&i(f)){const C=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(C)}}const w={props:e,states:Nt({hover:o,translate:l,scale:r,active:s,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(w),Lt(()=>{t.removeItem(w)}),{carouselItemRef:a,active:s,animating:d,hover:o,inStage:c,isVertical:h,translate:l,isCardType:f,scale:r,ready:u,handleItemClick:b}};var Uj=D({name:nu,__name:"carousel-item",props:Lj,setup(e){const t=e,n=ve("carousel"),{carouselItemRef:a,active:o,animating:l,hover:r,inStage:s,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:g}=qj(t),p=x(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",r.value),n.is("animating",l.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=x(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,y)=>ft((_(),$("div",{ref_key:"carouselItemRef",ref:a,class:R(p.value),style:qe(v.value),onClick:y[0]||(y[0]=(...b)=>i(g)&&i(g)(...b))},[i(d)?ft((_(),$("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[At,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[At,i(h)]])}}),xb=Uj;const Yj=it(jj,{CarouselItem:xb}),Gj=nn(xb),kb=_e({modelValue:{type:J([Number,String,Array,Object])},options:{type:J(Array),default:()=>[]},props:{type:J(Object),default:()=>({})}}),Xj={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:It,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Jj=_e({...kb,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),cg=e=>!0,Zj={[ot]:cg,[bt]:cg,close:()=>!0,"expand-change":e=>e},Qj=e=>x(()=>({...Xj,...e.props})),Eb={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:kn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...oa(["ariaControls"])},Tb={[ot]:e=>Be(e)||He(e)||Dt(e),change:e=>Be(e)||He(e)||Dt(e)},Zs=Symbol("checkboxGroupContextKey"),eq=_e({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:kn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Mb},type:{type:String,values:["checkbox","button"],default:"checkbox"},...oa(["ariaLabel"])}),tq={[ot]:e=>be(e),change:e=>be(e)},Mb={label:"label",value:"value",disabled:"disabled"},nq=({model:e,isChecked:t})=>{const n=Pe(Zs,void 0),a=Pe(qr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(l)&&e.value.length>=l&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:sn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},aq=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Pe(Zs,void 0),{formItem:s}=Bn(),{emit:u}=vt();function c(p){return[!0,e.trueValue,e.trueLabel].includes(p)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(p,v){u(bt,c(p),v)}function f(p){if(n.value)return;const v=p.target;u(bt,c(v.checked),p)}async function h(p){n.value||!a.value&&!o.value&&l.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Le(),d(t.value,p)))}const g=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(p=>pt(p)))}),{handleChange:f,onClickRoot:h}},oq=e=>{const t=V(!1),{emit:n,vnode:a}=vt(),o=Pe(Zs,void 0),l=x(()=>Et(o)===!1),r=V(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&be(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(ot,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},lq=(e,t,{model:n})=>{const a=Pe(Zs,void 0),o=V(!1),l=x(()=>ya(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Dt(s)?s:be(s)?lt(l.value)?s.map(jt).some(u=>on(u,l.value)):s.map(jt).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!ya(l.value)),actualValue:l}},Ob=(e,t)=>{const{formItem:n}=Bn(),{model:a,isGroup:o,isLimitExceeded:l}=oq(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=lq(e,t,{model:a}),{isDisabled:h}=nq({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:p}=Pa(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=aq(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){be(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),$o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>o.value&&ya(e.value))),$o({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),$o({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:p,isChecked:s,isDisabled:h,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},rq=["id","indeterminate","name","tabindex","disabled"];var sq=D({name:"ElCheckbox",__name:"checkbox",props:Eb,emits:Tb,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:l,isFocused:r,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Ob(t,vn()),g=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),p=ve("checkbox"),v=x(()=>[p.b(),p.m(s.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=x(()=>[p.e("input"),p.is("disabled",l.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(y,b)=>(_(),ie(dt(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(h)},{default:ae(()=>[E("span",{class:R(m.value)},[ft(E("input",ht({id:i(n),"onUpdate:modelValue":b[0]||(b[0]=w=>Yt(c)?c.value=w:null),class:i(p).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(l)},g.value,{onChange:b[1]||(b[1]=(...w)=>i(f)&&i(f)(...w)),onFocus:b[2]||(b[2]=w=>r.value=!0),onBlur:b[3]||(b[3]=w=>r.value=!1),onClick:b[4]||(b[4]=Je(()=>{},["stop"]))}),null,16,rq),[[f6,i(c)]]),E("span",{class:R(i(p).e("inner"))},null,2)],2),i(u)?(_(),$("span",{key:0,class:R(i(p).e("label"))},[oe(y.$slots,"default"),y.$slots.default?re("v-if",!0):(_(),$(Ke,{key:0},[St(Se(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),$b=sq;const iq=["name","tabindex","disabled"];var uq=D({name:"ElCheckboxButton",__name:"checkbox-button",props:Eb,emits:Tb,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:l,model:r,actualValue:s,handleChange:u}=Ob(t,vn()),c=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:s.value}),d=Pe(Zs,void 0),f=ve("checkbox"),h=x(()=>{var v,m;const p=((v=d==null?void 0:d.fill)==null?void 0:v.value)??"";return{backgroundColor:p,borderColor:p,color:((m=d==null?void 0:d.textColor)==null?void 0:m.value)??"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),g=x(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(p,v)=>(_(),$("label",{class:R(g.value)},[ft(E("input",ht({"onUpdate:modelValue":v[0]||(v[0]=m=>Yt(r)?r.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Je(()=>{},["stop"]))}),null,16,iq),[[f6,i(r)]]),p.$slots.default||e.label?(_(),$("span",{key:0,class:R(i(f).be("button","inner")),style:qe(i(a)?h.value:void 0)},[oe(p.$slots,"default",{},()=>[St(Se(e.label),1)])],6)):re("v-if",!0)],2))}}),Ph=uq,cq=D({name:"ElCheckboxGroup",__name:"checkbox-group",props:eq,emits:tq,setup(e,{emit:t}){const n=e,a=t,o=ve("checkbox"),l=sn(),{formItem:r}=Bn(),{inputId:s,isLabeledByFormItem:u}=Pa(n,{formItemContext:r}),c=async p=>{a(ot,p),await Le(),a(bt,p)},d=x({get(){return n.modelValue},set(p){c(p)}}),f=x(()=>({...Mb,...n.props})),h=p=>{const{label:v,value:m,disabled:y}=f.value,b={label:p[v],value:p[m],disabled:p[y]};return{...xu(p,[v,m,y]),...b}},g=x(()=>n.type==="button"?Ph:$b);return wt(Zs,{...ul(Nn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:d,changeEvent:c}),fe(()=>n.modelValue,(p,v)=>{n.validateEvent&&!on(p,v)&&(r==null||r.validate("change").catch(m=>pt(m)))}),(p,v)=>{var m;return _(),ie(dt(e.tag),{id:i(s),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?(m=i(r))==null?void 0:m.labelId:void 0},{default:ae(()=>[oe(p.$slots,"default",{},()=>[(_(!0),$(Ke,null,_t(e.options,(y,b)=>(_(),ie(dt(g.value),ht({key:b},{ref_for:!0},h(y)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),Ab=cq;const lo=it($b,{CheckboxButton:Ph,CheckboxGroup:Ab}),dq=nn(Ph),Ih=nn(Ab),Rb=_e({modelValue:{type:[String,Number,Boolean],default:void 0},size:kn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),fq=_e({...Rb,border:Boolean}),Nb={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Pb=Symbol("radioGroupKey"),pq=_e({...Rb}),Ib={label:"label",value:"value",disabled:"disabled"},hq=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Ib},type:{type:String,values:["radio","button"],default:"radio"},...oa(["ariaLabel"])}),vq=Nb,Lb=(e,t)=>{const n=V(),a=Pe(Pb,void 0),o=x(()=>!!a),l=x(()=>ya(e.value)?e.label:e.value),r=x({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t(ot,f),n.value.checked=e.modelValue===l.value}}),s=_n(x(()=>a==null?void 0:a.size)),u=sn(x(()=>a==null?void 0:a.disabled)),c=V(!1),d=x(()=>u.value||o.value&&r.value!==l.value?-1:0);return $o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>o.value&&ya(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:s,disabled:u,tabIndex:d,modelValue:r,actualValue:l}},mq=["value","name","disabled","checked"];var gq=D({name:"ElRadio",__name:"radio",props:fq,emits:Nb,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),{radioRef:l,radioGroup:r,focus:s,size:u,disabled:c,modelValue:d,actualValue:f}=Lb(n,a);function h(){Le(()=>a(bt,d.value))}return(g,p)=>{var v;return _(),$("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(s)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[E("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[ft(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=m=>Yt(d)?d.value=m:null),class:R(i(o).e("original")),value:i(f),name:e.name||((v=i(r))==null?void 0:v.name),disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:h,onClick:p[3]||(p[3]=Je(()=>{},["stop"]))},null,42,mq),[[p6,i(d)]]),E("span",{class:R(i(o).e("inner"))},null,2)],2),E("span",{class:R(i(o).e("label")),onKeydown:p[4]||(p[4]=Je(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[St(Se(e.label),1)])],34)],2)}}}),Vb=gq;const yq=["value","name","disabled"];var bq=D({name:"ElRadioButton",__name:"radio-button",props:pq,setup(e){const t=e,n=ve("radio"),{radioRef:a,focus:o,size:l,disabled:r,modelValue:s,radioGroup:u,actualValue:c}=Lb(t),d=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var g;return _(),$("label",{class:R([i(n).b("button"),i(n).is("active",i(s)===i(c)),i(n).is("disabled",i(r)),i(n).is("focus",i(o)),i(n).bm("button",i(l))])},[ft(E("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>Yt(s)?s.value=p:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||((g=i(u))==null?void 0:g.name),disabled:i(r),onFocus:h[1]||(h[1]=p=>o.value=!0),onBlur:h[2]||(h[2]=p=>o.value=!1),onClick:h[3]||(h[3]=Je(()=>{},["stop"]))},null,42,yq),[[p6,i(s)]]),E("span",{class:R(i(n).be("button","inner")),style:qe(i(s)===i(c)?d.value:{}),onKeydown:h[4]||(h[4]=Je(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[St(Se(e.label),1)])],38)],2)}}}),Lh=bq;const wq=["id","aria-label","aria-labelledby"];var Cq=D({name:"ElRadioGroup",__name:"radio-group",props:hq,emits:vq,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),l=Kn(),r=V(),{formItem:s}=Bn(),{inputId:u,isLabeledByFormItem:c}=Pa(n,{formItemContext:s}),d=v=>{a(ot,v),Le(()=>a(bt,v))};gt(()=>{const v=r.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=x(()=>n.name||l.value),h=x(()=>({...Ib,...n.props})),g=v=>{const{label:m,value:y,disabled:b}=h.value,w={label:v[m],value:v[y],disabled:v[b]};return{...xu(v,[m,y,b]),...w}},p=x(()=>n.type==="button"?Lh:Vb);return wt(Pb,Nt({...Nn(n),changeEvent:d,name:f})),fe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!on(v,m)&&(s==null||s.validate("change").catch(y=>pt(y)))}),(v,m)=>(_(),$("div",{id:i(u),ref_key:"radioGroupRef",ref:r,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(s).labelId:void 0},[oe(v.$slots,"default",{},()=>[(_(!0),$(Ke,null,_t(e.options,(y,b)=>(_(),ie(dt(p.value),ht({key:b},{ref_for:!0},g(y)),null,16))),128))])],10,wq))}}),Bb=Cq;const zb=it(Vb,{RadioButton:Lh,RadioGroup:Bb}),_q=nn(Bb),Sq=nn(Lh),gf=Symbol();function xq(e){return!!(be(e)?e.every(({type:t})=>t===gn):(e==null?void 0:e.type)===gn)}var kq=D({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ve("cascader-node"),{renderLabelFn:n}=Pe(gf),{node:a}=e,{data:o,label:l}=a,r=()=>{const s=n==null?void 0:n({node:a,data:o});return xq(s)?l:s??l};return()=>Q("span",{class:t.e("label")},[r()])}});const Eq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var Tq=D({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=Pe(gf),l=ve("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),u=x(()=>o.config.checkStrictly),c=x(()=>o.config.showPrefix),d=x(()=>{var A;return(A=o.checkedNodes[0])==null?void 0:A.uid}),f=x(()=>n.node.isDisabled),h=x(()=>n.node.isLeaf),g=x(()=>u.value&&!h.value||!f.value),p=x(()=>m(o.expandingNode)),v=x(()=>u.value&&o.checkedNodes.some(m)),m=A=>{var L;const{level:O,uid:I}=n.node;return((L=A==null?void 0:A.pathNodes[O-1])==null?void 0:L.uid)===I},y=()=>{p.value||o.expandNode(n.node)},b=A=>{const{node:O}=n;A!==O.checked&&o.handleCheckChange(O,A)},w=()=>{o.lazyLoad(n.node,()=>{h.value||y()})},C=A=>{r.value&&(S(),!h.value&&a("expand",A))},S=()=>{const{node:A}=n;!g.value||A.loading||(A.loaded?y():w())},k=()=>{h.value&&!f.value&&!u.value&&!s.value?M(!0):(o.config.checkOnClickNode&&(s.value||u.value)||h.value&&o.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||S()},T=A=>{u.value?(b(A),n.node.loaded&&y()):M(A)},M=A=>{n.node.loaded?(b(A),!u.value&&y()):w()};return(A,O)=>(_(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":p.value,tabindex:g.value?-1:void 0,class:R([i(l).b(),i(l).is("selectable",u.value),i(l).is("active",e.node.checked),i(l).is("disabled",!g.value),p.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:C,onFocus:C,onClick:k},[re(" prefix "),s.value&&c.value?(_(),ie(i(lo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:O[0]||(O[0]=Je(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(_(),ie(i(zb),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:O[1]||(O[1]=Je(()=>{},["stop"]))},{default:ae(()=>[re(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),O[2]||(O[2]=E("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(C(),ie(i(De),{key:2,class:R(i(l).e("prefix"))},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(kq),{node:e.node},null,8,["node"]),re(" postfix "),h.value?re("v-if",!0):(C(),$(Ke,{key:3},[e.node.loading?(C(),ie(i(De),{key:0,class:R([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):(C(),ie(i(De),{key:1,class:R(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Q(i(Un))]),_:1},8,["class"]))],64))],42,Eq))}}),Mq=Tq,Oq=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=vt(),a=ve("cascader-menu"),{t:o}=kt(),l=Kn();let r,s;const u=Pe(mf),c=V(),d=x(()=>!t.nodes.length),f=x(()=>!u.initialLoaded),h=x(()=>`${l.value}-${t.index}`),g=y=>{r=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!r||!c.value))if(r.contains(y.target)){v();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:S,offsetHeight:k}=w,T=y.clientX-_,M=r.offsetTop,A=M+r.offsetHeight,O=((b=w.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=` + `),O[2]||(O[2]=E("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(_(),ie(i(De),{key:2,class:R(i(l).e("prefix"))},{default:ae(()=>[Q(i(Xs))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(kq),{node:e.node},null,8,["node"]),re(" postfix "),h.value?re("v-if",!0):(_(),$(Ke,{key:3},[e.node.loading?(_(),ie(i(De),{key:0,class:R([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):(_(),ie(i(De),{key:1,class:R(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Q(i(Un))]),_:1},8,["class"]))],64))],42,Eq))}}),Mq=Tq,Oq=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=vt(),a=ve("cascader-menu"),{t:o}=kt(),l=Kn();let r,s;const u=Pe(gf),c=V(),d=x(()=>!t.nodes.length),f=x(()=>!u.initialLoaded),h=x(()=>`${l.value}-${t.index}`),g=y=>{r=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!r||!c.value))if(r.contains(y.target)){v();const w=n.vnode.el,{left:C}=w.getBoundingClientRect(),{offsetWidth:S,offsetHeight:k}=w,T=y.clientX-C,M=r.offsetTop,A=M+r.offsetHeight,O=((b=w.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=` - `}else s||(s=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(C(),ie(i(ao),{key:h.value,tag:"ul",role:"menu",class:R(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:ae(()=>{var w;return[(C(!0),$(Ke,null,_t(e.nodes,_=>(C(),ie(Mq,{key:_.uid,node:_,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(C(),$("div",{key:0,class:R(i(a).e("empty-text"))},[Q(i(De),{size:"14",class:R(i(a).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"]),St(" "+Se(i(o)("el.cascader.loading")),1)],2)):d.value?(C(),$("div",{key:1,class:R(i(a).e("empty-text"))},[oe(y.$slots,"empty",{},()=>[St(Se(i(o)("el.cascader.noData")),1)])],2)):(w=i(u))!=null&&w.isHoverMenu?(C(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(C(),$("svg",{ref_key:"hoverZone",ref:c,class:R(i(a).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),$q=Oq;let Aq=0;const Rq=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var E2=class T2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=Aq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=Rq(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new T2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ca(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(Fe(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:r}=n,s=Fe(r)?r(t,this):t[r];return Et(s)?l&&!o?!1:!(be(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new T2(t,this.config,this);return be(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const M2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(M2(a.children,t))),n),[]);var cg=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new E2(a,this.config));this.nodes=n,this.allNodes=M2(n,!1),this.leafNodes=M2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new E2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return ya(e)?null:this.getFlattedNodes(t).find(n=>an(n.value,e)||an(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>an(e.value,t)&&e.level===n)||null}};const dg=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Nq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():d8(e)&&e.click()},Pq=(e,t)=>{const n=t.slice(0),a=n.map(l=>l.uid),o=e.reduce((l,r)=>{const s=a.indexOf(r.uid);return s>-1&&(l.push(r),n.splice(s,1),a.splice(s,1)),l},[]);return o.push(...n),o};var Iq=D({name:"ElCascaderPanel",__name:"index",props:Jj,emits:Zj,setup(e,{expose:t,emit:n}){const a=e,o=n;let l=!1;const r=ve("cascader"),s=Qj(a),u=hn();let c;const d=V(!0),f=V(!1),h=V([]),g=V(),p=V([]),v=V(),m=V([]),y=x(()=>s.value.expandTrigger==="hover"),b=x(()=>a.renderLabel||u.default),w=()=>{const{options:N}=a,P=s.value;l=!1,c=new cg(N,P),p.value=[c.getNodes()],P.lazy&&ca(a.options)?(d.value=!1,_(void 0,B=>{B&&(c=new cg(B,P),p.value=[c.getNodes()]),d.value=!0,L(!1,!0)})):L(!1,!0)},_=(N,P)=>{const B=s.value;N=N||new E2({},B,void 0,!0),N.loading=!0;const K=j=>{const G=N,ee=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],j&&(c==null||c.appendNodes(j,ee)),j&&(P==null||P(j)),N.level===0&&(f.value=!0)},W=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(d.value=!0)};B.lazyLoad(N,K,W)},S=(N,P)=>{var j;const{level:B}=N,K=p.value.slice(0,B);let W;N.isLeaf?W=N.pathNodes[B-2]:(W=N,K.push(N.children)),((j=v.value)==null?void 0:j.uid)!==(W==null?void 0:W.uid)&&(v.value=N,p.value=K,!P&&o("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,P,B=!0)=>{const{checkStrictly:K,multiple:W}=s.value,j=m.value[0];l=!0,!W&&(j==null||j.doCheck(!1)),N.doCheck(P),I(),B&&!W&&!K&&o("close"),!B&&!W&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&S(N))},M=N=>c==null?void 0:c.getFlattedNodes(N),A=N=>{var P;return(P=M(N))==null?void 0:P.filter(({checked:B})=>B!==!1)},O=()=>{m.value.forEach(N=>N.doCheck(!1)),I(),p.value=p.value.slice(0,1),v.value=void 0,o("expand-change",[])},I=()=>{const{checkStrictly:N,multiple:P}=s.value,B=m.value,K=Pq(B,A(!N)),W=K.map(j=>j.valueByOption);m.value=K,g.value=P?W:W[0]??null},L=(N=!1,P=!1)=>{const{modelValue:B}=a,{lazy:K,multiple:W,checkStrictly:j}=s.value,G=!j;if(!(!d.value||l||!P&&an(B,g.value)))if(K&&!N){const ee=Om(DT(ta(B))).map(te=>c==null?void 0:c.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);ee.length?ee.forEach(te=>{_(te,()=>L(!1,P))}):L(!0,P)}else z(Om((W?ta(B):[B]).map(ee=>c==null?void 0:c.getNodeByValue(ee,G))),P),g.value=Eo(B??void 0)},z=(N,P=!0)=>{const{checkStrictly:B}=s.value,K=m.value,W=N.filter(ee=>!!ee&&(B||ee.isLeaf)),j=c==null?void 0:c.getSameNode(v.value),G=P&&j||W[0];G?G.pathNodes.forEach(ee=>S(ee,!0)):v.value=void 0,K.forEach(ee=>ee.doCheck(!1)),Rt(W).forEach(ee=>ee.doCheck(!0)),m.value=W,Le(q)},q=()=>{At&&h.value.forEach(N=>{const P=N==null?void 0:N.$el;if(P){const B=P.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let K=P.querySelector(`.${r.b("node")}.in-active-path`);if(!K){const W=P.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);K=W[W.length-1]}Jp(B,K)}})},U=N=>{var K,W;const P=N.target,B=Kt(N);switch(B){case Ce.up:case Ce.down:N.preventDefault(),Ec(f8(P,B===Ce.up?-1:1,`.${r.b("node")}[tabindex="-1"]`));break;case Ce.left:{N.preventDefault();const j=(K=h.value[dg(P)-1])==null?void 0:K.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Ec(j);break}case Ce.right:{N.preventDefault();const j=(W=h.value[dg(P)+1])==null?void 0:W.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Ec(j);break}case Ce.enter:case Ce.numpadEnter:Nq(P);break}};wt(mf,Rt({config:s,expandingNode:v,checkedNodes:m,isHoverMenu:y,initialLoaded:d,renderLabelFn:b,lazyLoad:_,expandNode:S,handleCheckChange:k})),fe(s,(N,P)=>{an(N,P)||w()},{immediate:!0}),fe(()=>a.options,w,{deep:!0}),fe(()=>a.modelValue,()=>{l=!1,L()},{deep:!0}),fe(()=>g.value,N=>{an(N,a.modelValue)||(o(ot,N),o(bt,N))});const F=()=>{f.value||w()};return Cp(()=>h.value=[]),gt(()=>!ca(a.modelValue)&&L()),t({menuList:h,menus:p,checkedNodes:m,handleKeyDown:U,handleCheckChange:k,getFlattedNodes:M,getCheckedNodes:A,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:q,loadLazyRootNodes:F}),(N,P)=>(C(),$("div",{class:R([i(r).b("panel"),i(r).is("bordered",e.border)]),onKeydown:U},[(C(!0),$(Ke,null,_t(p.value,(B,K)=>(C(),ie($q,{key:K,ref_for:!0,ref:W=>h.value[K]=W,index:K,nodes:[...B]},{empty:ae(()=>[oe(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),Lq=Iq;const zb=it(Lq),Vq=_e({...xb,size:kn,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ft,default:ho},filterable:Boolean,filterMethod:{type:J(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:J(Function),default:()=>!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,teleported:Ht.teleported,effect:{type:J(String),default:"light"},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Wr}),fg=e=>!0,Bq={[ot]:fg,[bt]:fg,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Dt(e),expandChange:e=>!!e,removeTag:e=>!!e},zq=["placeholder"],Dq=["onClick"];var Hq=D({name:"ElCascader",__name:"cascader",props:Vq,emits:Bq,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:We,placement:Ze}=Oe;["right","left","bottom","top"].includes(Ze)||We.arrow&&(We.arrow.x=35)},requires:["arrow"]}]},o=e,l=n,r=gl(),s=hn();let u=0,c=0;const d=ve("cascader"),f=ve("input"),h={small:7,default:11,large:15},{t:g}=kt(),{formItem:p}=Bn(),v=rn(),{valueOnClear:m}=Pu(o),{isComposing:y,handleComposition:b}=Nu({afterComposition(Oe){var Ze;const We=(Ze=Oe.target)==null?void 0:Ze.value;Te(We)}}),w=V(),_=V(),S=V(),k=V(),T=V(),M=V(),A=V(!1),O=V(!1),I=V(!1),L=V(""),z=V(""),q=V([]),U=V([]),F=x(()=>o.props.multiple?o.collapseTags?q.value.slice(0,o.maxCollapseTags):q.value:[]),N=x(()=>o.props.multiple?o.collapseTags?q.value.slice(o.maxCollapseTags):[]:[]),P=x(()=>r.style),B=x(()=>o.placeholder??g("el.cascader.placeholder")),K=x(()=>z.value||q.value.length>0||y.value?"":B.value),W=_n(),j=x(()=>W.value==="small"?"small":"default"),G=x(()=>!!o.props.multiple),ee=x(()=>!o.filterable||G.value),te=x(()=>G.value?z.value:L.value),ue=x(()=>{var Oe;return((Oe=T.value)==null?void 0:Oe.checkedNodes)||[]}),{wrapperRef:ne,isFocused:de,handleBlur:se}=Cl(S,{disabled:v,beforeBlur(Oe){var We,Ze;return((We=w.value)==null?void 0:We.isFocusInsideContent(Oe))||((Ze=_.value)==null?void 0:Ze.isFocusInsideContent(Oe))},afterBlur(){var Oe;o.validateEvent&&((Oe=p==null?void 0:p.validate)==null||Oe.call(p,"blur").catch(We=>pt(We)))}}),Y=x(()=>!o.clearable||v.value||I.value||!O.value&&!de.value?!1:!!ue.value.length),X=x(()=>{const{showAllLevels:Oe,separator:We}=o,Ze=ue.value;return Ze.length?G.value?"":Ze[0].calcText(Oe,We):""}),H=x(()=>(p==null?void 0:p.validateState)||""),Z=x({get(){return Eo(o.modelValue)},set(Oe){const We=Oe??m.value;l(ot,We),l(bt,We),o.validateEvent&&(p==null||p.validate("change").catch(Ze=>pt(Ze)))}}),le=x(()=>[d.b(),d.m(W.value),d.is("disabled",v.value),r.class]),ce=x(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",A.value)]),ge=x(()=>d.is("focus",de.value)),me=x(()=>{var Oe,We;return(We=(Oe=w.value)==null?void 0:Oe.popperRef)==null?void 0:We.contentRef}),Ae=Oe=>{de.value&&se(new FocusEvent("blur",Oe)),Ne(!1)},Ne=Oe=>{var We,Ze;v.value||(Oe=Oe??!A.value,Oe!==A.value&&(A.value=Oe,(Ze=(We=S.value)==null?void 0:We.input)==null||Ze.setAttribute("aria-expanded",`${Oe}`),Oe?(Re(),T.value&&Le(T.value.scrollToExpandingNode)):o.filterable&&tt(),l("visibleChange",Oe)))},Re=()=>{Le(()=>{var Oe;(Oe=w.value)==null||Oe.updatePopper()})},ye=()=>{I.value=!1},Ee=Oe=>{const{showAllLevels:We,separator:Ze}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(We,Ze),hitState:!1,closable:!v.value&&!Oe.isDisabled}},we=Oe=>{var Ze;const We=Oe.node;We.doCheck(!1),(Ze=T.value)==null||Ze.calculateCheckedValue(),l("removeTag",We.valueByOption)},Ie=()=>{switch(o.showCheckedStrategy){case"child":return ue.value;case"parent":{const Oe=Me(!1),We=Oe.map(Ze=>Ze.value);return Oe.filter(Ze=>!Ze.parent||!We.includes(Ze.parent.value))}default:return[]}},ze=()=>{if(!G.value)return;const Oe=Ie(),We=[];Oe.forEach(Ze=>We.push(Ee(Ze))),q.value=We},et=()=>{var zt,Xt;const{filterMethod:Oe,showAllLevels:We,separator:Ze}=o,cn=(Xt=(zt=T.value)==null?void 0:zt.getFlattedNodes(!o.props.checkStrictly))==null?void 0:Xt.filter(Ue=>Ue.isDisabled?!1:(Ue.calcText(We,Ze),Oe(Ue,te.value)));G.value&&q.value.forEach(Ue=>{Ue.hitState=!1}),I.value=!0,U.value=cn,Re()},nt=()=>{var We;let Oe;I.value&&M.value?Oe=M.value.$el.querySelector(`.${d.e("suggestion-item")}`):Oe=(We=T.value)==null?void 0:We.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!I.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},at=()=>{var cn,zt,Xt;const Oe=(cn=S.value)==null?void 0:cn.input,We=k.value,Ze=(zt=M.value)==null?void 0:zt.$el;if(!(!At||!Oe)){if(Ze){const Ue=Ze.querySelector(`.${d.e("suggestion-list")}`);Ue.style.minWidth=`${Oe.offsetWidth}px`}if(We){const{offsetHeight:Ue}=We,Xe=q.value.length>0?`${Math.max(Ue,u)-2}px`:`${u}px`;if(Oe.style.height=Xe,s.prefix){const mt=(Xt=S.value)==null?void 0:Xt.$el.querySelector(`.${f.e("prefix")}`);let Mn=0;mt&&(Mn=mt.offsetWidth,Mn>0&&(Mn+=h[W.value||"default"])),We.style.left=`${Mn}px`}else We.style.left="0";Re()}}},Me=Oe=>{var We;return(We=T.value)==null?void 0:We.getCheckedNodes(Oe)},Ge=Oe=>{Re(),l("expandChange",Oe)},ut=Oe=>{if(!y.value)switch(Kt(Oe)){case Ce.enter:case Ce.numpadEnter:Ne();break;case Ce.down:Ne(!0),Le(nt),Oe.preventDefault();break;case Ce.esc:A.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),Ne(!1));break;case Ce.tab:Ne(!1);break}},je=()=>{var Oe;(Oe=T.value)==null||Oe.clearCheckedNodes(),!A.value&&o.filterable&&tt(),Ne(!1),l("clear")},tt=()=>{const{value:Oe}=X;L.value=Oe,z.value=Oe},yt=Oe=>{var Ze,cn;const{checked:We}=Oe;G.value?(Ze=T.value)==null||Ze.handleCheckChange(Oe,!We,!1):(!We&&((cn=T.value)==null||cn.handleCheckChange(Oe,!0,!1)),Ne(!1))},he=Oe=>{const We=Oe.target,Ze=Kt(Oe);switch(Ze){case Ce.up:case Ce.down:Oe.preventDefault(),Ec(f8(We,Ze===Ce.up?-1:1,`.${d.e("suggestion-item")}[tabindex="-1"]`));break;case Ce.enter:case Ce.numpadEnter:We.click();break}},Ve=()=>{const Oe=q.value[q.value.length-1];c=z.value?0:c+1,!(!Oe||!c||o.collapseTags&&q.value.length>1)&&(Oe.hitState?we(Oe):Oe.hitState=!0)},pe=gu(()=>{const{value:Oe}=te;if(!Oe)return;const We=o.beforeFilter(Oe);Kl(We)?We.then(et).catch(()=>{}):We!==!1?et():ye()},x(()=>o.debounce)),Te=(Oe,We)=>{if(!A.value&&Ne(!0),!(We!=null&&We.isComposing))if(Oe)pe();else{const Ze=o.beforeFilter("");Kl(Ze)&&Ze.catch(()=>{}),ye()}},ct=Oe=>Number.parseFloat($S(f.cssVarName("input-height"),Oe).value)-2,Pt=()=>{var Oe;(Oe=S.value)==null||Oe.focus()},Gt=()=>{var Oe;(Oe=S.value)==null||Oe.blur()};return fe(I,Re),fe([ue,v,()=>o.collapseTags,()=>o.maxCollapseTags],ze),fe(q,()=>{Le(()=>at())}),fe(W,async()=>{await Le();const Oe=S.value.input;u=ct(Oe)||u,at()}),fe(X,tt,{immediate:!0}),fe(()=>A.value,Oe=>{var We;Oe&&o.props.lazy&&o.props.lazyLoad&&((We=T.value)==null||We.loadLazyRootNodes())}),gt(()=>{const Oe=S.value.input,We=ct(Oe);u=Oe.offsetHeight||We,Zt(Oe,at)}),t({getCheckedNodes:Me,cascaderPanelRef:T,togglePopperVisible:Ne,contentRef:me,presentText:X,focus:Pt,blur:Gt}),(Oe,We)=>(C(),ie(i(Vn),{ref_key:"tooltipRef",ref:w,visible:A.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:ye},{default:ae(()=>[ft((C(),$("div",{ref_key:"wrapperRef",ref:ne,class:R(le.value),style:qe(P.value),onClick:We[8]||(We[8]=()=>Ne(ee.value?void 0:!0)),onKeydown:ut,onMouseenter:We[9]||(We[9]=Ze=>O.value=!0),onMouseleave:We[10]||(We[10]=Ze=>O.value=!1)},[Q(i(Dn),{ref_key:"inputRef",ref:S,modelValue:L.value,"onUpdate:modelValue":We[1]||(We[1]=Ze=>L.value=Ze),placeholder:K.value,readonly:ee.value,disabled:i(v),"validate-event":!1,size:i(W),class:R(ge.value),tabindex:G.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(b),onCompositionupdate:i(b),onCompositionend:i(b),onInput:Te},fa({suffix:ae(()=>[Y.value?(C(),ie(i(De),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Je(je,["stop"])},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class"])):(C(),ie(i(De),{key:"arrow-down",class:R(ce.value),onClick:We[0]||(We[0]=Je(Ze=>Ne(),["stop"]))},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),G.value?(C(),$("div",{key:0,ref_key:"tagWrapper",ref:k,class:R([i(d).e("tags"),i(d).is("validate",!!H.value)])},[oe(Oe.$slots,"tag",{data:q.value,deleteTag:we},()=>[(C(!0),$(Ke,null,_t(F.value,Ze=>(C(),ie(i(ll),{key:Ze.key,type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:cn=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(C(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:_,disabled:A.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ae(()=>[Q(i(ll),{closable:!1,size:j.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[E("span",{class:R(i(d).e("tags-text"))}," + "+Se(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ae(()=>[Q(i(ao),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ae(()=>[E("div",{class:R(i(d).e("collapse-tags"))},[(C(!0),$(Ke,null,_t(N.value,(Ze,cn)=>(C(),$("div",{key:cn,class:R(i(d).e("collapse-tag"))},[(C(),ie(i(ll),{key:Ze.key,class:"in-tooltip",type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:zt=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?ft((C(),$("input",{key:1,"onUpdate:modelValue":We[2]||(We[2]=Ze=>z.value=Ze),type:"text",class:R(i(d).e("search-input")),placeholder:X.value?"":B.value,onInput:We[3]||(We[3]=Ze=>Te(z.value,Ze)),onClick:We[4]||(We[4]=Je(Ze=>Ne(!0),["stop"])),onKeydown:nn(Ve,["delete"]),onCompositionstart:We[5]||(We[5]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionupdate:We[6]||(We[6]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionend:We[7]||(We[7]=(...Ze)=>i(b)&&i(b)(...Ze))},null,42,zq)),[[c6,z.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(jl),Ae,me.value]])]),content:ae(()=>[Oe.$slots.header?(C(),$("div",{key:0,class:R(i(d).e("header")),onClick:We[11]||(We[11]=Je(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),ft(Q(i(zb),{ref_key:"cascaderPanelRef",ref:T,modelValue:Z.value,"onUpdate:modelValue":We[12]||(We[12]=Ze=>Z.value=Ze),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,onExpandChange:Ge,onClose:We[13]||(We[13]=Ze=>Oe.$nextTick(()=>Ne(!1)))},{empty:ae(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[$t,!I.value]]),e.filterable?ft((C(),ie(i(ao),{key:1,ref_key:"suggestionPanel",ref:M,tag:"ul",class:R(i(d).e("suggestion-panel")),"view-class":i(d).e("suggestion-list"),onKeydown:he},{default:ae(()=>[U.value.length?(C(!0),$(Ke,{key:0},_t(U.value,Ze=>(C(),$("li",{key:Ze.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",Ze.checked)]),tabindex:-1,onClick:cn=>yt(Ze)},[oe(Oe.$slots,"suggestion-item",{item:Ze},()=>[E("span",null,Se(Ze.text),1),Ze.checked?(C(),ie(i(De),{key:0},{default:ae(()=>[Q(i(Gs))]),_:1})):re("v-if",!0)])],10,Dq))),128)):oe(Oe.$slots,"empty",{key:1},()=>[E("li",{class:R(i(d).e("empty-text"))},Se(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[$t,I.value]]):re("v-if",!0),Oe.$slots.footer?(C(),$("div",{key:2,class:R(i(d).e("footer")),onClick:We[14]||(We[14]=Je(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),Fq=Hq;const Kq=it(Fq),Wq=_e({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),jq={"update:checked":e=>Dt(e),[bt]:e=>Dt(e)};var qq=D({name:"ElCheckTag",__name:"check-tag",props:Wq,emits:jq,setup(e,{emit:t}){const n=e,a=t,o=ve("check-tag"),l=x(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const s=!n.checked;a(bt,s),a("update:checked",s)};return(s,u)=>(C(),$("span",{class:R(l.value),onClick:r},[oe(s.$slots,"default")],2))}}),Uq=qq;const Yq=it(Uq),Gq=_e({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:J([Number,Object]),default:()=>on({})},sm:{type:J([Number,Object]),default:()=>on({})},md:{type:J([Number,Object]),default:()=>on({})},lg:{type:J([Number,Object]),default:()=>on({})},xl:{type:J([Number,Object]),default:()=>on({})}}),Xq=["start","center","end","space-around","space-between","space-evenly"],Jq=["top","middle","bottom"],Zq=_e({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Xq,default:"start"},align:{type:String,values:Jq}}),Db=Symbol("rowContextKey");var Qq=D({name:"ElRow",__name:"row",props:Zq,setup(e){const t=e,n=ve("row");wt(Db,{gutter:x(()=>t.gutter)});const a=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(l,r)=>(C(),ie(dt(e.tag),{class:R(o.value),style:qe(a.value)},{default:ae(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),eU=Qq;const tU=it(eU);var nU=D({name:"ElCol",__name:"col",props:Gq,setup(e){const t=e,{gutter:n}=Pe(Db,{gutter:x(()=>0)}),a=ve("col"),o=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=x(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const u=t[s];He(u)&&(s==="span"?r.push(a.b(`${t[s]}`)):u>0&&r.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{He(t[s])?r.push(a.b(`${s}-${t[s]}`)):lt(t[s])&&Object.entries(t[s]).forEach(([u,c])=>{r.push(u!=="span"?a.b(`${s}-${u}-${c}`):a.b(`${s}-${c}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,s)=>(C(),ie(dt(e.tag),{class:R(l.value),style:qe(o.value)},{default:ae(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),aU=nU;const oU=it(aU),pg=e=>He(e)||Be(e)||be(e),lU=_e({accordion:Boolean,modelValue:{type:J([Array,String,Number]),default:()=>on([])},expandIconPosition:{type:J([String]),default:"right"},beforeCollapse:{type:J(Function)}}),rU={[ot]:pg,[bt]:pg},Hb=Symbol("collapseContextKey"),sU=_e({title:{type:String,default:""},name:{type:J([String,Number]),default:void 0},icon:{type:Ft,default:Un},disabled:Boolean});var iU=D({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ve("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,l)=>(C(),ie(Fn,ht({name:i(t).b()},GC(a)),{default:ae(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),uU=iU;const gf=it(uU),hg="ElCollapse",cU=(e,t)=>{const n=V($n(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(ot,s),t(bt,s)},o=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],u=s.indexOf(r);u>-1?s.splice(u,1):s.push(r),a(s)}},l=async r=>{const{beforeCollapse:s}=e;if(!s){o(r);return}const u=s(r);[Kl(u),Dt(u)].includes(!0)||en(hg,"beforeCollapse must return type `Promise` or `boolean`"),Kl(u)?u.then(c=>{c!==!1&&o(r)}).catch(c=>{pt(hg,`some error occurred: ${c}`)}):u&&o(r)};return fe(()=>e.modelValue,()=>n.value=$n(e.modelValue),{deep:!0}),wt(Hb,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},dU=e=>{const t=ve("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var fU=D({name:"ElCollapse",__name:"collapse",props:lU,emits:rU,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:l}=cU(a,n),{rootKls:r}=dU(a);return t({activeNames:o,setActiveNames:l}),(s,u)=>(C(),$("div",{class:R(i(r))},[oe(s.$slots,"default")],2))}}),pU=fU;const hU=e=>{const t=Pe(Hb),{namespace:n}=ve("collapse"),a=V(!1),o=V(!1),l=sh(),r=x(()=>l.current++),s=x(()=>e.name??`${n.value}-id-${l.prefix}-${i(r)}`),u=x(()=>t==null?void 0:t.activeNames.value.includes(i(s)));return{focusing:a,id:r,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:h=>{var g;e.disabled||(g=h.target)!=null&&g.closest("input, textarea, select")||(t==null||t.handleItemClick(i(s)),a.value=!1,o.value=!0)},handleEnterClick:h=>{var g;(g=h.target)!=null&&g.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(i(s)))}}},vU=(e,{focusing:t,isActive:n,id:a})=>{const o=ve("collapse"),l=x(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),r=x(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),s=x(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:x(()=>[o.be("item","title")]),arrowKls:s,headKls:r,rootKls:l,itemWrapperKls:x(()=>o.be("item","wrap")),itemContentKls:x(()=>o.be("item","content")),scopedContentId:x(()=>o.b(`content-${i(a)}`)),scopedHeadId:x(()=>o.b(`head-${i(a)}`))}},mU=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],gU=["id","aria-hidden","aria-labelledby"];var yU=D({name:"ElCollapseItem",__name:"collapse-item",props:sU,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:l,handleFocus:r,handleHeaderClick:s,handleEnterClick:u}=hU(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:h,itemWrapperKls:g,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=vU(n,{focusing:a,isActive:l,id:o});return t({isActive:l}),(y,b)=>(C(),$("div",{class:R(i(f))},[E("div",{id:i(m),class:R(i(d)),"aria-expanded":i(l),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:b[0]||(b[0]=(...w)=>i(s)&&i(s)(...w)),onKeydown:b[1]||(b[1]=nn(Je((...w)=>i(u)&&i(u)(...w),["stop"]),["space","enter"])),onFocus:b[2]||(b[2]=(...w)=>i(r)&&i(r)(...w)),onBlur:b[3]||(b[3]=w=>a.value=!1)},[E("span",{class:R(i(h))},[oe(y.$slots,"title",{isActive:i(l)},()=>[St(Se(e.title),1)])],2),oe(y.$slots,"icon",{isActive:i(l)},()=>[Q(i(De),{class:R(i(c))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])])],42,mU),Q(i(gf),null,{default:ae(()=>[ft(E("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(l),"aria-labelledby":i(m)},[E("div",{class:R(i(p))},[oe(y.$slots,"default")],2)],10,gU),[[$t,i(l)]])]),_:3})],2))}}),Fb=yU;const bU=it(pU,{CollapseItem:Fb}),wU=tn(Fb),Kb=_e({modelValue:{type:J(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:J(String)},disabled:Boolean,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:J([String,Array,Object])},hueSliderStyle:{type:J([String,Array,Object])}}),CU={[ot]:e=>Be(e)||gn(e)},Wb=Symbol("colorCommonPickerKey"),jb=Symbol("colorPickerPanelContextKey"),qb=_e({color:{type:J(Object),required:!0},vertical:Boolean,disabled:Boolean}),_U=qb,vg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},O2=(e,t)=>Math.abs(vg(e)-vg(t)),Ub=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let d0=!1;function $2(e,t){if(!At)return;const n=function(l){var r;(r=t.drag)==null||r.call(t,l)},a=function(l){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,d0=!1,(r=t.end)==null||r.call(t,l)},o=function(l){var r;d0||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),d0=!0,(r=t.start)==null||r.call(t,l))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const Yb=(e,{key:t,minValue:n,maxValue:a})=>{const o=vt(),l=qt(),r=qt(),s=x(()=>e.color.get(t));function u(h){var g;e.disabled||(h.target!==l.value&&c(h),(g=l.value)==null||g.focus())}function c(h){if(!r.value||!l.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=Ub(h);let m;if(e.vertical){let y=v-g.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,g.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*a)}else{let y=p-g.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,g.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*a)}e.color.set(t,m)}function d(h){if(e.disabled)return;const{shiftKey:g}=h,p=Kt(h),v=g?10:1,m=t==="hue"?-1:1;let y=!0;switch(p){case Ce.left:case Ce.down:f(-v*m);break;case Ce.right:case Ce.up:f(v*m);break;case Ce.home:e.color.set(t,t==="hue"?a:n);break;case Ce.end:e.color.set(t,t==="hue"?n:a);break;case Ce.pageDown:f(-4*m);break;case Ce.pageUp:f(4*m);break;default:y=!1;break}y&&h.preventDefault()}function f(h){let g=s.value+h;g=ga?a:g,e.color.set(t,g)}return{thumb:l,bar:r,currentValue:s,handleDrag:c,handleClick:u,handleKeydown:d}},Gb=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:l,handleDrag:r,getBackground:s})=>{const u=vt(),c=ve(t),d=V(0),f=V(0),h=V();function g(){if(!o.value||e.vertical)return 0;const w=u.vnode.el,_=l.value;return w?Math.round(_*(w.offsetWidth-o.value.offsetWidth/2)/n):0}function p(){if(!o.value)return 0;const w=u.vnode.el;if(!e.vertical)return 0;const _=l.value;return w?Math.round(_*(w.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=p(),h.value=s==null?void 0:s()}gt(()=>{if(!a.value||!o.value)return;const w={drag:_=>{r(_)},end:_=>{r(_)}};$2(a.value,w),$2(o.value,w),v()}),fe(l,()=>v()),fe(()=>e.color.value,()=>v());const m=x(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),y=x(()=>c.e("bar")),b=x(()=>c.e("thumb"));return{rootKls:m,barKls:y,barStyle:x(()=>({background:h.value})),thumbKls:b,thumbStyle:x(()=>({left:ln(d.value),top:ln(f.value)})),thumbLeft:d,thumbTop:f,update:v}},SU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],mg=0,f0=100;var xU=D({name:"ElColorAlphaSlider",__name:"alpha-slider",props:qb,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Yb(n,{key:"alpha",minValue:mg,maxValue:f0}),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:g,update:p}=Gb(n,{namespace:"color-alpha-slider",maxValue:f0,currentValue:a,bar:o,thumb:l,handleDrag:r,getBackground:b}),{t:v}=kt(),m=x(()=>v("el.colorpicker.alphaLabel")),y=x(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:w,g:_,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${_}, ${S}, 0) 0%, rgba(${w}, ${_}, ${S}, 1) 100%)`}return""}return t({update:p,bar:o,thumb:l}),(w,_)=>(C(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),style:qe(i(f)),onClick:_[0]||(_[0]=(...S)=>i(s)&&i(s)(...S))},null,6),E("div",{ref_key:"thumb",ref:l,class:R(i(h)),style:qe(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":mg,"aria-valuemax":f0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...S)=>i(u)&&i(u)(...S))},null,46,SU)],2))}}),kU=xU;const EU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],gg=0,p0=360;var TU=D({name:"ElColorHueSlider",__name:"hue-slider",props:_U,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Yb(n,{key:"hue",minValue:gg,maxValue:p0}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:h,thumbTop:g,update:p}=Gb(n,{namespace:"color-hue-slider",maxValue:p0,currentValue:a,bar:o,thumb:l,handleDrag:r}),{t:v}=kt(),m=x(()=>v("el.colorpicker.hueLabel")),y=x(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:l,thumbTop:g,update:p}),(b,w)=>(C(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:w[0]||(w[0]=(..._)=>i(s)&&i(s)(..._))},null,2),E("div",{ref_key:"thumb",ref:l,class:R(i(f)),style:qe(i(h)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":gg,"aria-valuemax":p0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(..._)=>i(u)&&i(u)(..._))},null,46,EU)],2))}}),MU=TU;const OU=_e({colors:{type:J(Array),required:!0},color:{type:J(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var pd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new fn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Mt(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)Mt(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new fn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:l}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=l*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new fn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:l}=this;let r=o||(l?"rgb":"hex");o==="hex"&&l&&(r="hex8"),this._tiny=new fn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(r):""}};const $U=e=>{const{currentColor:t}=Pe(jb),n=V(o(e.colors,e.color));fe(()=>t.value,l=>{const r=new pd({value:l,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=r.compare(s)})}),da(()=>{n.value=o(e.colors,e.color)});function a(l){e.color.fromString(e.colors[l])}function o(l,r){return l.map(s=>{const u=new pd({value:s,enableAlpha:e.enableAlpha});return u.selected=u.compare(r),u})}return{rgbaColors:n,handleSelect:a}},AU=e=>{const t=ve("color-predefine"),n=x(()=>[t.b(),t.is("disabled",e.disabled)]),a=x(()=>t.e("colors"));function o(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},RU=["disabled","aria-label","onClick"];var NU=D({name:"ElColorPredefine",__name:"predefine",props:OU,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=$U(t),{rootKls:o,colorsKls:l,colorSelectorKls:r}=AU(t),{t:s}=kt(),u=c=>s("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(C(),$("div",{class:R(i(o))},[E("div",{class:R(i(l))},[(C(!0),$(Ke,null,_t(i(n),(f,h)=>(C(),$("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(r)(f)),onClick:g=>i(a)(h)},[E("div",{style:qe({backgroundColor:f.value})},null,4)],10,RU))),128))],2)],2))}}),PU=NU;const IU=_e({color:{type:J(Object),required:!0},disabled:Boolean}),LU=e=>{const t=vt(),n=V(),a=V(0),o=V(0),l=V("hsl(0, 100%, 50%)"),r=x(()=>e.color.get("saturation")),s=x(()=>e.color.get("value")),u=x(()=>e.color.get("hue"));function c(p){var v;e.disabled||(p.target!==n.value&&d(p),(v=n.value)==null||v.focus({preventScroll:!0}))}function d(p){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=Ub(p);let b=m-v.left,w=y-v.top;b=Math.max(0,b),b=Math.min(b,v.width),w=Math.max(0,w),w=Math.min(w,v.height),o.value=b,a.value=w,e.color.set({saturation:b/v.width*100,value:100-w/v.height*100})}function f(p){if(e.disabled)return;const{shiftKey:v}=p,m=Kt(p),y=v?10:1;let b=!0;switch(m){case Ce.left:h(-y);break;case Ce.right:h(y);break;case Ce.up:g(y);break;case Ce.down:g(-y);break;default:b=!1;break}b&&p.preventDefault()}function h(p){let v=r.value+p;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(p){let v=s.value+p;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:l,saturation:r,brightness:s,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},VU=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const l=vt(),r=ve("color-svpanel");function s(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=l.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return gt(()=>{$2(l.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),s()}),fe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s()),{rootKls:x(()=>r.b()),cursorKls:x(()=>r.e("cursor")),rootStyle:x(()=>({backgroundColor:a.value})),cursorStyle:x(()=>({top:ln(t.value),left:ln(n.value)})),update:s}},BU=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var zU=D({name:"ElSvPanel",__name:"sv-panel",props:IU,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:l,background:r,saturation:s,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=LU(n),{rootKls:h,cursorKls:g,rootStyle:p,cursorStyle:v,update:m}=VU(n,{cursorTop:o,cursorLeft:l,background:r,handleDrag:d}),{t:y}=kt(),b=x(()=>y("el.colorpicker.svLabel")),w=x(()=>y("el.colorpicker.svDescription",{saturation:s.value,brightness:u.value,color:n.color.value}));return t({update:m}),(_,S)=>(C(),$("div",{class:R(i(h)),style:qe(i(p)),onClick:S[1]||(S[1]=(...k)=>i(c)&&i(c)(...k))},[E("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:qe(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${i(s)},${i(u)}`,"aria-valuetext":w.value,onKeydown:S[0]||(S[0]=(...k)=>i(f)&&i(f)(...k))},null,46,BU)],6))}}),DU=zU;const Xb=(e,t)=>{const n=Rt(new pd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return fe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(ot,n.value)}),{color:n}};var HU=D({name:"ElColorPickerPanel",__name:"color-picker-panel",props:Kb,emits:CU,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("color-picker-panel"),{formItem:r}=Bn(),s=rn(),u=V(),c=V(),d=V(),f=V(),h=V(""),{color:g}=Pe(Wb,()=>Xb(a,o),!0);function p(){g.fromString(h.value),g.value!==h.value&&(h.value=g.value)}function v(){var y;a.validateEvent&&((y=r==null?void 0:r.validate)==null||y.call(r,"blur").catch(b=>pt(b)))}function m(){var y,b,w;(y=u.value)==null||y.update(),(b=c.value)==null||b.update(),(w=d.value)==null||w.update()}return gt(()=>{a.modelValue&&(h.value=g.value),Le(m)}),fe(()=>a.modelValue,y=>{y!==g.value&&(y?g.fromString(y):g.clear())}),fe(()=>g.value,y=>{o(ot,y),h.value=y,a.validateEvent&&(r==null||r.validate("change").catch(b=>pt(b)))}),wt(jb,{currentColor:x(()=>g.value)}),t({color:g,inputRef:f,update:m}),(y,b)=>(C(),$("div",{class:R([i(l).b(),i(l).is("disabled",i(s)),i(l).is("border",e.border)]),onFocusout:v},[E("div",{class:R(i(l).e("wrapper"))},[Q(MU,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(s),class:R(["hue-slider",e.hueSliderClass]),style:qe(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Q(DU,{ref_key:"svRef",ref:c,color:i(g),disabled:i(s)},null,8,["color","disabled"])],2),e.showAlpha?(C(),ie(kU,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(s)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(C(),ie(PU,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(s)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),E("div",{class:R(i(l).e("footer"))},[Q(i(Dn),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:i(s),onChange:p},null,8,["modelValue","disabled"]),oe(y.$slots,"footer")],2)],34))}}),FU=HU;const Jb=it(FU),KU=_e({persistent:{type:Boolean,default:!0},modelValue:{type:J(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:J(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:kn,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ht.teleported,appendTo:Ht.appendTo,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},...Wr,...oa(["ariaLabel"])}),WU={[ot]:e=>Be(e)||gn(e),[bt]:e=>Be(e)||gn(e),activeChange:e=>Be(e)||gn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jU=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var qU=D({name:"ElColorPicker",__name:"color-picker",props:KU,emits:WU,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("color"),{formItem:s}=Bn(),u=_n(),c=rn(),{valueOnClear:d,isEmptyValue:f}=Pu(a,null),h=Xb(a,o),{inputId:g,isLabeledByFormItem:p}=Pa(a,{formItemContext:s}),v=V(),m=V(),y=V(),b=V(!1),w=V(!1);let _=!0;const{isFocused:S,handleFocus:k,handleBlur:T}=Cl(m,{disabled:c,beforeBlur(Y){var X;return(X=v.value)==null?void 0:X.isFocusInsideContent(Y)},afterBlur(){var Y;F(!1),K(),a.validateEvent&&((Y=s==null?void 0:s.validate)==null||Y.call(s,"blur").catch(X=>pt(X)))}}),M=mS(()=>{var Y;return((Y=y.value)==null?void 0:Y.color)??h.color}),A=x(()=>ul(a,Object.keys(Kb))),O=x(()=>!a.modelValue&&!w.value?"transparent":U(M,a.showAlpha)),I=x(()=>!a.modelValue&&!w.value?"":M.value),L=x(()=>p.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),z=x(()=>p.value?s==null?void 0:s.labelId:void 0),q=x(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",u.value),r.is("focused",S.value)]);function U(Y,X){const{r:H,g:Z,b:le,a:ce}=Y.toRgb();return X?`rgba(${H}, ${Z}, ${le}, ${ce})`:`rgb(${H}, ${Z}, ${le})`}function F(Y){b.value=Y}const N=Vo(F,100,{leading:!0});function P(){c.value||F(!0)}function B(){N(!1),K()}function K(){Le(()=>{a.modelValue?M.fromString(a.modelValue):(M.value="",Le(()=>{w.value=!1}))})}function W(){c.value||(b.value&&K(),N(!b.value))}function j(){const Y=f(M.value)?d.value:M.value;o(ot,Y),o(bt,Y),a.validateEvent&&(s==null||s.validate("change").catch(X=>pt(X))),N(!1),Le(()=>{const X=new pd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});M.compare(X)||K()})}function G(){N(!1),o(ot,d.value),o(bt,d.value),a.modelValue!==d.value&&a.validateEvent&&(s==null||s.validate("change").catch(Y=>pt(Y))),K(),o("clear")}function ee(){var Y,X;(X=(Y=y==null?void 0:y.value)==null?void 0:Y.inputRef)==null||X.focus()}function te(){b.value&&(B(),S.value&&de())}function ue(Y){Y.preventDefault(),Y.stopPropagation(),F(!1),K()}function ne(Y){switch(Kt(Y)){case Ce.enter:case Ce.numpadEnter:case Ce.space:Y.preventDefault(),Y.stopPropagation(),P();break;case Ce.esc:ue(Y);break}}function de(){m.value.focus()}function se(){m.value.blur()}return fe(()=>I.value,Y=>{_&&o("activeChange",Y),_=!0}),fe(()=>M.value,()=>{!a.modelValue&&!w.value&&(w.value=!0)}),fe(()=>a.modelValue,Y=>{Y?Y&&Y!==M.value&&(_=!1,M.fromString(Y)):w.value=!1}),fe(()=>b.value,()=>{y.value&&Le(y.value.update)}),wt(Wb,h),t({color:M,show:P,hide:B,focus:de,blur:se}),(Y,X)=>(C(),ie(i(Vn),{ref_key:"popper",ref:v,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:X[2]||(X[2]=H=>F(!1))},{content:ae(()=>[ft((C(),ie(i(Jb),ht({ref_key:"pickerPanelRef",ref:y},A.value,{border:!1,"validate-event":!1,onKeydown:nn(ue,["esc"])}),{footer:ae(()=>[E("div",null,[e.clearable?(C(),ie(i(An),{key:0,class:R(i(r).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ae(()=>[St(Se(i(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Q(i(An),{plain:"",size:"small",class:R(i(r).be("footer","btn")),onClick:j},{default:ae(()=>[St(Se(i(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(jl),te,m.value]])]),default:ae(()=>[E("div",ht({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":z.value,"aria-description":i(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:ne,onFocus:X[0]||(X[0]=(...H)=>i(k)&&i(k)(...H)),onBlur:X[1]||(X[1]=(...H)=>i(T)&&i(T)(...H))}),[E("div",{class:R(i(r).be("picker","trigger")),onClick:W},[E("span",{class:R([i(r).be("picker","color"),i(r).is("alpha",e.showAlpha)])},[E("span",{class:R(i(r).be("picker","color-inner")),style:qe({backgroundColor:O.value})},[ft(Q(i(De),{class:R([i(r).be("picker","icon"),i(r).is("icon-arrow-down")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]),[[$t,e.modelValue||w.value]]),ft(Q(i(De),{class:R([i(r).be("picker","empty"),i(r).is("icon-close")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"]),[[$t,!e.modelValue&&!w.value]])],6)],2)],2)],16,jU)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),UU=qU;const YU=it(UU);var GU=D({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=hn(),a=ve("container"),o=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const r=l.type.name;return r==="ElHeader"||r==="ElFooter"}):!1);return(l,r)=>(C(),$("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(l.$slots,"default")],2))}}),XU=GU,JU=D({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,l)=>(C(),$("aside",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),Zb=JU,ZU=D({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(C(),$("footer",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),Qb=ZU,QU=D({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(C(),$("header",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),ew=QU,eY=D({name:"ElMain",__name:"main",setup(e){const t=ve("main");return(n,a)=>(C(),$("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),tw=eY;const tY=it(XU,{Aside:Zb,Footer:Qb,Header:ew,Main:tw}),nY=tn(Zb),aY=tn(Qb),oY=tn(ew),lY=tn(tw),rY=_e({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:J([Date,Array,String,Number]),default:""},defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Th,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:J(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Ih=Symbol("rootPickerContextKey"),Du="ElIsDefaultFormat",sY=["date","dates","year","years","month","months","week","range"],Lh=_e({cellClassName:{type:J(Function)},disabledDate:{type:J(Function)},date:{type:J(Object),required:!0},minDate:{type:J(Object)},maxDate:{type:J(Object)},parsedValue:{type:J([Object,Array])},rangeState:{type:J(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),nw=_e({type:{type:J(String),required:!0,values:hS},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Vh=_e({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:J(Array)}}),Bh=e=>({type:String,values:sY,default:e}),iY=_e({...nw,parsedValue:{type:J([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),nu=e=>{if(!be(e))return!1;const[t,n]=e;return st.isDayjs(t)&&st.isDayjs(n)&&st(t).isValid()&&st(n).isValid()&&t.isSameOrBefore(n)},yf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let l;if(be(e)){let[r,s]=e.map(u=>st(u).locale(t));return o||(s=r.add(n,a)),[r,s]}else e?l=st(e):l=st();return l=l.locale(t),[l,l.add(n,a)]},uY=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:l,unit:r,relativeDateGetter:s,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=st().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return Hl(o.daysInMonth()).map(l=>o.add(l,"day").toDate())},Ps=(e,t,n,a,o)=>{const l=st().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=hd(e,t,n,a).find(s=>!(o!=null&&o(s)));return r?st(r).locale(a):l.locale(a)},vd=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const o=e.month();if(!hd(e,a,o,t).every(n))return Ps(e,a,o,t,n);for(let l=0;l<12;l++)if(!hd(e,a,l,t).every(n))return Ps(e,a,l,t,n);return e},Is=(e,t,n,a)=>{if(be(e))return e.map(o=>Is(o,t,n,a));if(Be(e)){const o=a!=null&&a.value?st(e):st(e,t);if(!o.isValid())return o}return st(e,t).locale(n)},cY=_e({...Lh,showWeekNumber:Boolean,selectionMode:Bh("date")}),dY=["changerange","pick","select"],md=(e="")=>["normal","today"].includes(e),fY=(e,t)=>{const{lang:n}=kt(),a=V(),o=V(),l=V(),r=V(),s=V([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(B=>B.toLowerCase()),f=x(()=>c>3?7-c:-c),h=x(()=>{const B=e.date.startOf("month");return B.subtract(B.day()||7,"day")}),g=x(()=>d.concat(d).slice(c,c+7)),p=x(()=>nd(i(_)).some(B=>B.isCurrent)),v=x(()=>{const B=e.date.startOf("month");return{startOfMonthDay:B.day()||7,dateCountOfMonth:B.daysInMonth(),dateCountOfLastMonth:B.subtract(1,"month").daysInMonth()}}),m=x(()=>e.selectionMode==="dates"?ta(e.parsedValue):[]),y=(B,{count:K,rowIndex:W,columnIndex:j})=>{const{startOfMonthDay:G,dateCountOfMonth:ee,dateCountOfLastMonth:te}=i(v),ue=i(f);if(W>=0&&W<=1){const ne=G+ue<0?7+G+ue:G+ue;if(j+W*7>=ne)return B.text=K,!0;B.text=te-(ne-j%7)+1+W*7,B.type="prev-month"}else return K<=ee?B.text=K:(B.text=K-ee,B.type="next-month"),!0;return!1},b=(B,{columnIndex:K,rowIndex:W},j)=>{const{disabledDate:G,cellClassName:ee}=e,te=i(m),ue=y(B,{count:j,rowIndex:W,columnIndex:K}),ne=B.dayjs.toDate();return B.selected=te.find(de=>de.isSame(B.dayjs,"day")),B.isSelected=!!B.selected,B.isCurrent=k(B),B.disabled=G==null?void 0:G(ne),B.customClass=ee==null?void 0:ee(ne),ue},w=B=>{if(e.selectionMode==="week"){const[K,W]=e.showWeekNumber?[1,7]:[0,6],j=P(B[K+1]);B[K].inRange=j,B[K].start=j,B[W].inRange=j,B[W].end=j}},_=x(()=>{const{minDate:B,maxDate:K,rangeState:W,showWeekNumber:j}=e,G=i(f),ee=i(s),te="day";let ue=1;if(uY({row:6,column:7},ee,{startDate:B,columnIndexOffset:j?1:0,nextEndDate:W.endDate||K||W.selecting&&B||null,now:st().locale(i(n)).startOf(te),unit:te,relativeDateGetter:ne=>i(h).add(ne-G,te),setCellMetadata:(...ne)=>{b(...ne,ue)&&(ue+=1)},setRowMetadata:w}),j)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});fe(()=>e.date,async()=>{var B;(B=i(a))!=null&&B.contains(document.activeElement)&&(await Le(),await S())});const S=async()=>{var B;return(B=i(o))==null?void 0:B.focus()},k=B=>e.selectionMode==="date"&&md(B.type)&&T(B,e.parsedValue),T=(B,K)=>K?st(K).locale(i(n)).isSame(e.date.date(Number(B.text)),"day"):!1,M=(B,K)=>{const W=i(v).startOfMonthDay,j=i(f),G=W+j<0?7+W+j:W+j,ee=B*7+(K-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(G,"day").add(ee,"day")},A=B=>{var G;if(!e.rangeState.selecting)return;let K=B.target;if(K.tagName==="SPAN"&&(K=(G=K.parentNode)==null?void 0:G.parentNode),K.tagName==="DIV"&&(K=K.parentNode),K.tagName!=="TD")return;const W=K.parentNode.rowIndex-1,j=K.cellIndex;i(_)[W][j].disabled||(W!==i(l)||j!==i(r))&&(l.value=W,r.value=j,t("changerange",{selecting:!0,endDate:M(W,j)}))},O=B=>!i(p)&&(B==null?void 0:B.text)===1&&md(B.type)||B.isCurrent,I=B=>{u||i(p)||e.selectionMode!=="date"||N(B,!0)},L=B=>{B.target.closest("td")&&(u=!0)},z=B=>{B.target.closest("td")&&(u=!1)},q=B=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:B,maxDate:null}),t("select",!0)):(B>=e.minDate?t("pick",{minDate:e.minDate,maxDate:B}):t("pick",{minDate:B,maxDate:e.minDate}),t("select",!1))},U=B=>{const K=B.week(),W=`${B.year()}w${K}`;t("pick",{year:B.year(),week:K,value:W,date:B.startOf("week")})},F=(B,K)=>{t("pick",K?ta(e.parsedValue).filter(W=>(W==null?void 0:W.valueOf())!==B.valueOf()):ta(e.parsedValue).concat([B]))},N=(B,K=!1)=>{if(e.disabled)return;const W=B.target.closest("td");if(!W)return;const j=W.parentNode.rowIndex-1,G=W.cellIndex,ee=i(_)[j][G];if(ee.disabled||ee.type==="week")return;const te=M(j,G);switch(e.selectionMode){case"range":q(te);break;case"date":t("pick",te,K);break;case"week":U(te);break;case"dates":F(te,!!ee.selected);break}},P=B=>{if(e.selectionMode!=="week")return!1;let K=e.date.startOf("day");if(B.type==="prev-month"&&(K=K.subtract(1,"month")),B.type==="next-month"&&(K=K.add(1,"month")),K=K.date(Number.parseInt(B.text,10)),e.parsedValue&&!be(e.parsedValue)){const W=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(W,"day").isSame(K,"day")}return!1};return{WEEKS:g,rows:_,tbodyRef:a,currentCellRef:o,focus:S,isCurrent:k,isWeekActive:P,isSelectedCell:O,handlePickDate:N,handleMouseUp:z,handleMouseDown:L,handleMouseMove:A,handleFocus:I}},pY=(e,{isCurrent:t,isWeekActive:n})=>{const a=ve("date-table"),{t:o}=kt(),l=x(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=x(()=>o("el.datepicker.dateTablePrompt")),s=c=>{const d=[];return md(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(md(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:l,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:s,getRowKls:u,t:o}},hY=_e({cell:{type:J(Object)}});var zh=D({name:"ElDatePickerCell",props:hY,setup(e){const t=ve("date-table-cell"),{slots:n}=Pe(Ih);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a==null?void 0:a.renderText)??(a==null?void 0:a.text)])])])}}});const vY=["aria-label"],mY=["aria-label"],gY=["aria-current","aria-selected","tabindex","aria-disabled"];var yY=D({__name:"basic-date-table",props:cY,emits:dY,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:l,tbodyRef:r,currentCellRef:s,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:p,handleMouseMove:v,handleFocus:m}=fY(a,n),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:_,weekHeaderClass:S,t:k}=pY(a,{isCurrent:c,isWeekActive:d});let T=!1;return Lt(()=>{T=!0}),t({focus:u}),(M,A)=>(C(),$("table",{"aria-label":i(y),class:R(i(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...O)=>i(h)&&i(h)(...O)),onMousemove:A[2]||(A[2]=(...O)=>i(v)&&i(v)(...O)),onMousedown:A[3]||(A[3]=(...O)=>i(p)&&i(p)(...O)),onMouseup:A[4]||(A[4]=(...O)=>i(g)&&i(g)(...O))},[E("tbody",{ref_key:"tbodyRef",ref:r},[E("tr",null,[M.showWeekNumber?(C(),$("th",{key:0,scope:"col",class:R(i(S))},null,2)):re("v-if",!0),(C(!0),$(Ke,null,_t(i(o),(O,I)=>(C(),$("th",{key:I,"aria-label":i(k)("el.datepicker.weeksFull."+O),scope:"col"},Se(i(k)("el.datepicker.weeks."+O)),9,mY))),128))]),(C(!0),$(Ke,null,_t(i(l),(O,I)=>(C(),$("tr",{key:I,class:R(i(_)(M.showWeekNumber?O[2]:O[1]))},[(C(!0),$(Ke,null,_t(O,(L,z)=>(C(),$("td",{key:`${I}.${z}`,ref_for:!0,ref:q=>!i(T)&&i(f)(L)&&(s.value=q),class:R(i(w)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:M.disabled?void 0:i(f)(L)?0:-1,"aria-disabled":M.disabled,onFocus:A[0]||(A[0]=(...q)=>i(m)&&i(m)(...q))},[Q(i(zh),{cell:L},null,8,["cell"])],42,gY))),128))],2))),128))],512)],42,vY))}}),A2=yY;const bY=_e({...Lh,selectionMode:Bh("month")}),wY=["aria-label"],CY=["aria-selected","aria-label","tabindex","onKeydown"];var _Y=D({__name:"basic-month-table",props:bY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("month-table"),{t:r,lang:s}=kt(),u=V(),c=V(),d=V(a.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),f=V([[],[],[]]),h=V(),g=V(),p=x(()=>{var k,T,M;const _=f.value,S=st().locale(s.value).startOf("month");for(let A=0;A<3;A++){const O=_[A];for(let I=0;I<4;I++){const L=O[I]||(O[I]={row:A,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});L.type="normal";const z=A*4+I,q=a.date.startOf("year").month(z),U=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;L.inRange=!!(a.minDate&&q.isSameOrAfter(a.minDate,"month")&&U&&q.isSameOrBefore(U,"month"))||!!(a.minDate&&q.isSameOrBefore(a.minDate,"month")&&U&&q.isSameOrAfter(U,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(U)?(L.start=!!(U&&q.isSame(U,"month")),L.end=a.minDate&&q.isSame(a.minDate,"month")):(L.start=!!(a.minDate&&q.isSame(a.minDate,"month")),L.end=!!(U&&q.isSame(U,"month"))),S.isSame(q)&&(L.type="today");const F=q.toDate();L.text=z,L.disabled=((T=a.disabledDate)==null?void 0:T.call(a,F))||!1,L.date=F,L.customClass=(M=a.cellClassName)==null?void 0:M.call(a,F),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=y(L)}}return _}),v=()=>{var _;(_=c.value)==null||_.focus()},m=_=>{const S={},k=a.date.year(),T=new Date,M=_.text;return S.disabled=a.disabled||(a.disabledDate?hd(a.date,k,M,s.value).every(a.disabledDate):!1),S.current=ta(a.parsedValue).some(A=>st.isDayjs(A)&&A.year()===k&&A.month()===M),S.today=T.getFullYear()===k&&T.getMonth()===M,_.customClass&&(S[_.customClass]=!0),_.inRange&&(S["in-range"]=!0,_.start&&(S["start-date"]=!0),_.end&&(S["end-date"]=!0)),S},y=_=>{const S=a.date.year(),k=_.text;return ta(a.date).some(T=>T.year()===S&&T.month()===k)},b=_=>{var M;if(!a.rangeState.selecting)return;let S=_.target;if(S.tagName==="SPAN"&&(S=(M=S.parentNode)==null?void 0:M.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const k=S.parentNode.rowIndex,T=S.cellIndex;p.value[k][T].disabled||(k!==h.value||T!==g.value)&&(h.value=k,g.value=T,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(k*4+T)}))},w=_=>{var A;if(a.disabled)return;const S=(A=_.target)==null?void 0:A.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Ao(S,"disabled"))return;const k=S.cellIndex,T=S.parentNode.rowIndex*4+k,M=a.date.startOf("year").month(T);if(a.selectionMode==="months"){if(_.type==="keydown"){o("pick",ta(a.parsedValue),!1);return}const O=Ps(a.date,a.date.year(),T,s.value,a.disabledDate);o("pick",Ao(S,"current")?ta(a.parsedValue).filter(I=>(I==null?void 0:I.year())!==O.year()||(I==null?void 0:I.month())!==O.month()):ta(a.parsedValue).concat([st(O)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&M>=a.minDate?o("pick",{minDate:a.minDate,maxDate:M}):o("pick",{minDate:M,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:M,maxDate:null}),o("select",!0)):o("pick",T)};return fe(()=>a.date,async()=>{var _,S;(_=u.value)!=null&&_.contains(document.activeElement)&&(await Le(),(S=c.value)==null||S.focus())}),t({focus:v}),(_,S)=>(C(),$("table",{role:"grid","aria-label":i(r)("el.datepicker.monthTablePrompt"),class:R(i(l).b()),onClick:w,onMousemove:b},[E("tbody",{ref_key:"tbodyRef",ref:u},[(C(!0),$(Ke,null,_t(p.value,(k,T)=>(C(),$("tr",{key:T},[(C(!0),$(Ke,null,_t(k,(M,A)=>(C(),$("td",{key:A,ref_for:!0,ref:O=>M.isSelected&&(c.value=O),class:R(m(M)),"aria-selected":!!M.isSelected,"aria-label":i(r)(`el.datepicker.month${+M.text+1}`),tabindex:M.isSelected?0:-1,onKeydown:[nn(Je(w,["prevent","stop"]),["space"]),nn(Je(w,["prevent","stop"]),["enter"])]},[Q(i(zh),{cell:{...M,renderText:i(r)("el.datepicker.months."+d.value[M.text])}},null,8,["cell"])],42,CY))),128))]))),128))],512)],42,wY))}}),au=_Y;const SY=_e({...Lh,selectionMode:Bh("year")}),xY=["aria-label"],kY=["aria-selected","aria-label","tabindex","onKeydown"];var EY=D({__name:"basic-year-table",props:SY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(S,k)=>{const T=st(String(S)).locale(k).startOf("year");return Hl(T.endOf("year").dayOfYear()).map(M=>T.add(M,"day").toDate())},o=e,l=n,r=ve("year-table"),{t:s,lang:u}=kt(),c=V(),d=V(),f=x(()=>Math.floor(o.date.year()/10)*10),h=V([[],[],[]]),g=V(),p=V(),v=x(()=>{var T,M,A;const S=h.value,k=st().locale(u.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let L=0;L<4&&!(O*4+L>=10);L++){let z=I[L];z||(z={row:O,column:L,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),z.type="normal";const q=O*4+L+f.value,U=st().year(q),F=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;z.inRange=!!(o.minDate&&U.isSameOrAfter(o.minDate,"year")&&F&&U.isSameOrBefore(F,"year"))||!!(o.minDate&&U.isSameOrBefore(o.minDate,"year")&&F&&U.isSameOrAfter(F,"year")),(T=o.minDate)!=null&&T.isSameOrAfter(F)?(z.start=!!(F&&U.isSame(F,"year")),z.end=!!(o.minDate&&U.isSame(o.minDate,"year"))):(z.start=!!(o.minDate&&U.isSame(o.minDate,"year")),z.end=!!(F&&U.isSame(F,"year"))),k.isSame(U)&&(z.type="today"),z.text=q;const N=U.toDate();z.disabled=((M=o.disabledDate)==null?void 0:M.call(o,N))||!1,z.date=N,z.customClass=(A=o.cellClassName)==null?void 0:A.call(o,N),z.dayjs=U,z.timestamp=U.valueOf(),z.isSelected=b(z),I[L]=z}}return S}),m=()=>{var S;(S=d.value)==null||S.focus()},y=S=>{const k={},T=st().locale(u.value),M=S.text;return k.disabled=o.disabled||(o.disabledDate?a(M,u.value).every(o.disabledDate):!1),k.today=T.year()===M,k.current=ta(o.parsedValue).some(A=>A.year()===M),S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=S.text;return ta(o.date).some(T=>T.year()===k)},w=S=>{var O;if(o.disabled)return;const k=(O=S.target)==null?void 0:O.closest("td");if(!k||!k.textContent||Ao(k,"disabled"))return;const T=k.cellIndex,M=k.parentNode.rowIndex*4+T+f.value,A=st().year(M);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&A>=o.minDate?l("pick",{minDate:o.minDate,maxDate:A}):l("pick",{minDate:A,maxDate:o.minDate}),l("select",!1)):(l("pick",{minDate:A,maxDate:null}),l("select",!0));else if(o.selectionMode==="years"){if(S.type==="keydown"){l("pick",ta(o.parsedValue),!1);return}const I=vd(A.startOf("year"),u.value,o.disabledDate);l("pick",Ao(k,"current")?ta(o.parsedValue).filter(L=>(L==null?void 0:L.year())!==M):ta(o.parsedValue).concat([I]))}else l("pick",M)},_=S=>{var A;if(!o.rangeState.selecting)return;const k=(A=S.target)==null?void 0:A.closest("td");if(!k)return;const T=k.parentNode.rowIndex,M=k.cellIndex;v.value[T][M].disabled||(T!==g.value||M!==p.value)&&(g.value=T,p.value=M,l("changerange",{selecting:!0,endDate:st().year(f.value).add(T*4+M,"year")}))};return fe(()=>o.date,async()=>{var S,k;(S=c.value)!=null&&S.contains(document.activeElement)&&(await Le(),(k=d.value)==null||k.focus())}),t({focus:m}),(S,k)=>(C(),$("table",{role:"grid","aria-label":i(s)("el.datepicker.yearTablePrompt"),class:R(i(r).b()),onClick:w,onMousemove:_},[E("tbody",{ref_key:"tbodyRef",ref:c},[(C(!0),$(Ke,null,_t(v.value,(T,M)=>(C(),$("tr",{key:M},[(C(!0),$(Ke,null,_t(T,(A,O)=>(C(),$("td",{key:`${M}_${O}`,ref_for:!0,ref:I=>A.isSelected&&(d.value=I),class:R(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[nn(Je(w,["prevent","stop"]),["space"]),nn(Je(w,["prevent","stop"]),["enter"])]},[Q(i(zh),{cell:A},null,8,["cell"])],42,kY))),128))]))),128))],512)],42,xY))}}),ou=EY;const TY=["disabled","onClick"],MY=["aria-label","disabled"],OY=["aria-label","disabled"],$Y=["tabindex","aria-disabled"],AY=["tabindex","aria-disabled"],RY=["aria-label","disabled"],NY=["aria-label","disabled"];var PY=D({__name:"panel-date-pick",props:iY,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(he,Ve,pe)=>!0,a=e,o=t,l=ve("picker-panel"),r=ve("date-picker"),s=gl(),u=hn(),{t:c,lang:d}=kt(),f=Pe(oo),h=Pe(Du,void 0),{shortcuts:g,disabledDate:p,cellClassName:v,defaultTime:m}=f.props,y=Bt(f.props,"defaultValue"),b=V(),w=V(st().locale(d.value)),_=V(!1);let S=!1;const k=x(()=>st(m).locale(d.value)),T=x(()=>w.value.month()),M=x(()=>w.value.year()),A=V([]),O=V(null),I=V(null),L=he=>A.value.length>0?n(he,A.value,a.format||Ir):!0,z=he=>m&&!Ae.value&&!_.value&&!S?k.value.year(he.year()).month(he.month()).date(he.date()):se.value?he.millisecond(0):he.startOf("day"),q=(he,...Ve)=>{he?be(he)?o("pick",he.map(z),...Ve):o("pick",z(he),...Ve):o("pick",he,...Ve),O.value=null,I.value=null,_.value=!1,S=!1},U=async(he,Ve)=>{if(W.value==="date"&&st.isDayjs(he)){const pe=ui(a.parsedValue);let Te=pe?pe.year(he.year()).month(he.month()).date(he.date()):he;L(Te),w.value=Te,q(Te,se.value||Ve)}else W.value==="week"?q(he.date):W.value==="dates"&&q(he,!0)},F=he=>{const Ve=he?"add":"subtract";w.value=w.value[Ve](1,"month"),yt("month")},N=he=>{const Ve=w.value,pe=he?"add":"subtract";w.value=P.value==="year"?Ve[pe](10,"year"):Ve[pe](1,"year"),yt("year")},P=V("date"),B=x(()=>{const he=c("el.datepicker.year");if(P.value==="year"){const Ve=Math.floor(M.value/10)*10;return he?`${Ve} ${he} - ${Ve+9} ${he}`:`${Ve} - ${Ve+9}`}return`${M.value} ${he}`}),K=he=>{const Ve=Fe(he.value)?he.value():he.value;if(Ve){S=!0,q(st(Ve).locale(d.value));return}he.onClick&&he.onClick({attrs:s,slots:u,emit:o})},W=x(()=>{const{type:he}=a;return["week","month","months","year","years","dates"].includes(he)?he:"date"}),j=x(()=>W.value==="dates"||W.value==="months"||W.value==="years"),G=x(()=>W.value==="date"?P.value:W.value),ee=x(()=>!!g.length),te=async(he,Ve)=>{W.value==="month"?(w.value=Ps(w.value,w.value.year(),he,d.value,p),q(w.value,!1)):W.value==="months"?q(he,Ve??!0):(w.value=Ps(w.value,w.value.year(),he,d.value,p),P.value="date",["month","year","date","week"].includes(W.value)&&(q(w.value,!0),await Le(),Ge())),yt("month")},ue=async(he,Ve)=>{W.value==="year"?(w.value=vd(w.value.startOf("year").year(he),d.value,p),q(w.value,!1)):W.value==="years"?q(he,Ve??!0):(w.value=vd(w.value.year(he),d.value,p),P.value="month",["month","year","date","week"].includes(W.value)&&(q(w.value,!0),await Le(),Ge())),yt("year")},ne=rn(),de=async he=>{ne.value||(P.value=he,await Le(),Ge())},se=x(()=>a.type==="datetime"||a.type==="datetimerange"),Y=x(()=>{const he=se.value||W.value==="dates",Ve=W.value==="years",pe=W.value==="months",Te=P.value==="date",ct=P.value==="year",Pt=P.value==="month";return he&&Te||Ve&&ct||pe&&Pt}),X=x(()=>!j.value&&a.showNow||a.showConfirm),H=x(()=>p?a.parsedValue?be(a.parsedValue)?p(a.parsedValue[0].toDate()):p(a.parsedValue.toDate()):!0:!1),Z=()=>{if(j.value)q(a.parsedValue);else{let he=ui(a.parsedValue);if(!he){const Ve=st(m).locale(d.value),pe=Me();he=Ve.year(pe.year()).month(pe.month()).date(pe.date())}w.value=he,q(he)}},le=x(()=>p?p(st().locale(d.value).toDate()):!1),ce=()=>{const he=st().locale(d.value).toDate();_.value=!0,(!p||!p(he))&&L(he)&&(w.value=st().locale(d.value),q(w.value))},ge=x(()=>a.timeFormat||ib(a.format)||Ir),me=x(()=>a.dateFormat||sb(a.format)||Qo),Ae=x(()=>{if(I.value)return I.value;if(!(!a.parsedValue&&!y.value))return(ui(a.parsedValue)||w.value).format(ge.value)}),Ne=x(()=>{if(O.value)return O.value;if(!(!a.parsedValue&&!y.value))return(ui(a.parsedValue)||w.value).format(me.value)}),Re=V(!1),ye=()=>{Re.value=!0},Ee=()=>{Re.value=!1},we=he=>({hour:he.hour(),minute:he.minute(),second:he.second(),year:he.year(),month:he.month(),date:he.date()}),Ie=(he,Ve,pe)=>{const{hour:Te,minute:ct,second:Pt}=we(he),Gt=ui(a.parsedValue);w.value=Gt?Gt.hour(Te).minute(ct).second(Pt):he,q(w.value,!0),pe||(Re.value=Ve)},ze=he=>{const Ve=st(he,ge.value).locale(d.value);if(Ve.isValid()&&L(Ve)){const{year:pe,month:Te,date:ct}=we(w.value);w.value=Ve.year(pe).month(Te).date(ct),I.value=null,Re.value=!1,q(w.value,!0)}},et=he=>{const Ve=Is(he,me.value,d.value,h);if(Ve.isValid()){if(p&&p(Ve.toDate()))return;const{hour:pe,minute:Te,second:ct}=we(w.value);w.value=Ve.hour(pe).minute(Te).second(ct),O.value=null,q(w.value,!0)}},nt=he=>st.isDayjs(he)&&he.isValid()&&(p?!p(he.toDate()):!0),at=he=>Is(he,a.format,d.value,h),Me=()=>{const he=st(y.value).locale(d.value);if(!y.value){const Ve=k.value;return st().hour(Ve.hour()).minute(Ve.minute()).second(Ve.second()).locale(d.value)}return he},Ge=()=>{var he;["week","month","year","date"].includes(W.value)&&((he=b.value)==null||he.focus())},ut=()=>{Ge(),W.value==="week"&&tt(Ce.down)},je=he=>{const Ve=Kt(he);[Ce.up,Ce.down,Ce.left,Ce.right,Ce.home,Ce.end,Ce.pageUp,Ce.pageDown].includes(Ve)&&(tt(Ve),he.stopPropagation(),he.preventDefault()),[Ce.enter,Ce.space,Ce.numpadEnter].includes(Ve)&&O.value===null&&I.value===null&&(he.preventDefault(),q(w.value,!1))},tt=he=>{const{up:Ve,down:pe,left:Te,right:ct,home:Pt,end:Gt,pageUp:Oe,pageDown:We}=Ce,Ze={year:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setFullYear(zt.getFullYear()+Xt)},month:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setMonth(zt.getMonth()+Xt)},week:{[Ve]:-1,[pe]:1,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt*7)},date:{[Ve]:-7,[pe]:7,[Te]:-1,[ct]:1,[Pt]:zt=>-zt.getDay(),[Gt]:zt=>-zt.getDay()+6,[Oe]:zt=>-new Date(zt.getFullYear(),zt.getMonth(),0).getDate(),[We]:zt=>new Date(zt.getFullYear(),zt.getMonth()+1,0).getDate(),offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt)}},cn=w.value.toDate();for(;Math.abs(w.value.diff(cn,"year",!0))<1;){const zt=Ze[G.value];if(!zt)return;if(zt.offset(cn,Fe(zt[he])?zt[he](cn):zt[he]??0),p&&p(cn))break;const Xt=st(cn).locale(d.value);w.value=Xt,o("pick",Xt,!0);break}},yt=he=>{o("panel-change",w.value.toDate(),he,P.value)};return fe(()=>W.value,he=>{if(["month","year"].includes(he)){P.value=he;return}else if(he==="years"){P.value="year";return}else if(he==="months"){P.value="month";return}P.value="date"},{immediate:!0}),fe(()=>y.value,he=>{he&&(w.value=Me())},{immediate:!0}),fe(()=>a.parsedValue,he=>{if(he){if(j.value||be(he))return;w.value=he}else w.value=Me()},{immediate:!0}),o("set-picker-option",["isValidValue",nt]),o("set-picker-option",["parseUserInput",at]),o("set-picker-option",["handleFocusPicker",ut]),(he,Ve)=>(C(),$("div",{class:R([i(l).b(),i(r).b(),i(l).is("border",he.border),i(l).is("disabled",i(ne)),{"has-sidebar":he.$slots.sidebar||ee.value,"has-time":se.value}])},[E("div",{class:R(i(l).e("body-wrapper"))},[oe(he.$slots,"sidebar",{class:R(i(l).e("sidebar"))}),ee.value?(C(),$("div",{key:0,class:R(i(l).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(g),(pe,Te)=>(C(),$("button",{key:Te,type:"button",disabled:i(ne),class:R(i(l).e("shortcut")),onClick:ct=>K(pe)},Se(pe.text),11,TY))),128))],2)):re("v-if",!0),E("div",{class:R(i(l).e("body"))},[se.value?(C(),$("div",{key:0,class:R(i(r).e("time-header"))},[E("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Ne.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onInput:Ve[0]||(Ve[0]=pe=>O.value=pe),onChange:et},null,8,["placeholder","model-value","disabled","readonly"])],2),ft((C(),$("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":Ae.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onFocus:ye,onInput:Ve[1]||(Ve[1]=pe=>I.value=pe),onChange:ze},null,8,["placeholder","model-value","disabled","readonly"]),Q(i(cd),{visible:Re.value,format:ge.value,"parsed-value":w.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ee]])],2)):re("v-if",!0),ft(E("div",{class:R([i(r).e("header"),(P.value==="year"||P.value==="month")&&i(r).em("header","bordered")])},[E("span",{class:R(i(r).e("prev-btn"))},[E("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(l).e("icon-btn")]),disabled:i(ne),onClick:Ve[2]||(Ve[2]=pe=>N(!1))},[oe(he.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,MY),ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(l).e("icon-btn"),"arrow-left"]),disabled:i(ne),onClick:Ve[3]||(Ve[3]=pe=>F(!1))},[oe(he.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,OY),[[$t,P.value==="date"]])],2),E("span",{role:"button",class:R(i(r).e("header-label")),"aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,onKeydown:Ve[4]||(Ve[4]=nn(pe=>de("year"),["enter"])),onClick:Ve[5]||(Ve[5]=pe=>de("year"))},Se(B.value),43,$Y),ft(E("span",{role:"button","aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,class:R([i(r).e("header-label"),{active:P.value==="month"}]),onKeydown:Ve[6]||(Ve[6]=nn(pe=>de("month"),["enter"])),onClick:Ve[7]||(Ve[7]=pe=>de("month"))},Se(i(c)(`el.datepicker.month${T.value+1}`)),43,AY),[[$t,P.value==="date"]]),E("span",{class:R(i(r).e("next-btn"))},[ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(l).e("icon-btn"),"arrow-right"]),disabled:i(ne),onClick:Ve[8]||(Ve[8]=pe=>F(!0))},[oe(he.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,RY),[[$t,P.value==="date"]]),E("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(l).e("icon-btn"),"d-arrow-right"]),disabled:i(ne),onClick:Ve[9]||(Ve[9]=pe=>N(!0))},[oe(he.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,NY)],2)],2),[[$t,P.value!=="time"]]),E("div",{class:R(i(l).e("content")),onKeydown:je},[P.value==="date"?(C(),ie(A2,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),"show-week-number":he.showWeekNumber,onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(C(),ie(ou,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"disabled-date":i(p),disabled:i(ne),"parsed-value":he.parsedValue,"cell-class-name":i(v),onPick:ue},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(C(),ie(au,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),onPick:te},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),he.showFooter&&Y.value&&X.value?(C(),$("div",{key:0,class:R(i(l).e("footer"))},[ft(Q(i(An),{text:"",size:"small",class:R(i(l).e("link-btn")),disabled:le.value,onClick:ce},{default:ae(()=>[St(Se(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[$t,!j.value&&he.showNow]]),he.showConfirm?(C(),ie(i(An),{key:0,plain:"",size:"small",class:R(i(l).e("link-btn")),disabled:H.value,onClick:Z},{default:ae(()=>[St(Se(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),IY=PY;const LY=_e({...nw,...Vh}),VY=e=>{const{emit:t}=vt(),n=gl(),a=hn();return l=>{const r=Fe(l.value)?l.value():l.value;if(r){t("pick",[st(r[0]).locale(e.value),st(r[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:a,emit:t})}},Dh=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:l,unit:r,sortDates:s})=>{const{emit:u}=vt(),{pickerNs:c}=Pe(Ih),d=ve("date-range-picker"),{t:f,lang:h}=kt(),g=VY(h),p=V(),v=V(),m=V({endDate:null,selecting:!1}),y=k=>{m.value=k},b=(k=!1)=>{const T=i(p),M=i(v);nu([T,M])&&u("pick",[T,M],k)},w=k=>{m.value.selecting=k,k||(m.value.endDate=null)},_=k=>{if(be(k)&&k.length===2){const[T,M]=k;p.value=T,a.value=T,v.value=M,s(i(p),i(v))}else S()},S=()=>{let[k,T]=yf(i(t),{lang:i(h),step:l,unit:r,unlinkPanels:e.unlinkPanels});const M=O=>O.diff(O.startOf("d"),"ms"),A=i(n);if(A){let O=0,I=0;if(be(A)){const[L,z]=A.map(st);O=M(L),I=M(z)}else{const L=M(st(A));O=L,I=L}k=k.startOf("d").add(O,"ms"),T=T.startOf("d").add(I,"ms")}p.value=void 0,v.value=void 0,a.value=k,o.value=T};return fe(t,k=>{k&&S()},{immediate:!0}),fe(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!an(k,[p.value,v.value]))&&_(k)},{immediate:!0}),fe(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:p,maxDate:v,rangeState:m,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:b,handleShortcutClick:g,onSelect:w,parseValue:_,t:f}},BY=(e,t,n,a)=>{const o=V("date"),l=V(),r=V("date"),s=V(),{disabledDate:u}=Pe(oo).props,{t:c,lang:d}=kt(),f=x(()=>n.value.year()),h=x(()=>n.value.month()),g=x(()=>a.value.year()),p=x(()=>a.value.month());function v(S,k){const T=c("el.datepicker.year");if(S.value==="year"){const M=Math.floor(k.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${k.value} ${T}`}function m(S){S==null||S.focus()}async function y(S,k){if(e.disabled)return;const T=S==="left"?o:r,M=S==="left"?l:s;T.value=k,await Le(),m(M.value)}async function b(S,k,T){if(e.disabled)return;const M=k==="left",A=M?n:a,O=M?a:n,I=M?o:r,L=M?l:s;S==="year"&&(A.value=vd(A.value.year(T),d.value,u)),S==="month"&&(A.value=Ps(A.value,A.value.year(),T,d.value,u)),e.unlinkPanels||(O.value=k==="left"?A.value.add(1,"month"):A.value.subtract(1,"month")),I.value=S==="year"?"month":"date",await Le(),m(L.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),a.value.toDate()],S)}function _(S,k,T){const M=T?"add":"subtract";return S==="year"?k[M](10,"year"):k[M](1,"year")}return{leftCurrentView:o,rightCurrentView:r,leftCurrentViewRef:l,rightCurrentViewRef:s,leftYear:f,rightYear:g,leftMonth:h,rightMonth:p,leftYearLabel:x(()=>v(o,f)),rightYearLabel:x(()=>v(r,g)),showLeftPicker:S=>y("left",S),showRightPicker:S=>y("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:_}},zY=["disabled","onClick"],DY=["aria-label","disabled"],HY=["aria-label","disabled"],FY=["disabled","aria-label"],KY=["disabled","aria-label"],WY=["tabindex","aria-disabled"],jY=["tabindex","aria-disabled"],qY=["disabled","aria-label"],UY=["disabled","aria-label"],YY=["aria-label","disabled"],GY=["disabled","aria-label"],XY=["tabindex","aria-disabled"],JY=["tabindex","aria-disabled"],pc="month";var ZY=D({__name:"panel-date-range",props:LY,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),l=Pe(Du,void 0),{disabledDate:r,cellClassName:s,defaultTime:u,clearable:c}=o.props,d=Bt(o.props,"format"),f=Bt(o.props,"shortcuts"),h=Bt(o.props,"defaultValue"),{lang:g}=kt(),p=V(st().locale(g.value)),v=V(st().locale(g.value).add(1,pc)),{minDate:m,maxDate:y,rangeState:b,ppNs:w,drpNs:_,handleChangeRange:S,handleRangeConfirm:k,handleShortcutClick:T,onSelect:M,parseValue:A,t:O}=Dh(n,{defaultValue:h,defaultTime:u,leftDate:p,rightDate:v,unit:pc,sortDates:Xt});fe(()=>n.visible,Ue=>{!Ue&&b.value.selecting&&(A(n.parsedValue),M(!1))});const I=V({min:null,max:null}),L=V({min:null,max:null}),{leftCurrentView:z,rightCurrentView:q,leftCurrentViewRef:U,rightCurrentViewRef:F,leftYear:N,rightYear:P,leftMonth:B,rightMonth:K,leftYearLabel:W,rightYearLabel:j,showLeftPicker:G,showRightPicker:ee,handleLeftYearPick:te,handleRightYearPick:ue,handleLeftMonthPick:ne,handleRightMonthPick:de,handlePanelChange:se,adjustDateByView:Y}=BY(n,a,p,v),X=x(()=>!!f.value.length),H=x(()=>I.value.min!==null?I.value.min:m.value?m.value.format(me.value):""),Z=x(()=>I.value.max!==null?I.value.max:y.value||m.value?(y.value||m.value).format(me.value):""),le=x(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ge.value):""),ce=x(()=>L.value.max!==null?L.value.max:y.value||m.value?(y.value||m.value).format(ge.value):""),ge=x(()=>n.timeFormat||ib(d.value||"")||Ir),me=x(()=>n.dateFormat||sb(d.value||"")||Qo),Ae=Ue=>nu(Ue)&&(r?!r(Ue[0].toDate())&&!r(Ue[1].toDate()):!0),Ne=()=>{p.value=Y(z.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("year")},Re=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("month")},ye=()=>{n.unlinkPanels?v.value=Y(q.value,v.value,!0):(p.value=Y(q.value,p.value,!0),v.value=p.value.add(1,"month")),se("year")},Ee=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),se("month")},we=()=>{p.value=Y(z.value,p.value,!0),se("year")},Ie=()=>{p.value=p.value.add(1,"month"),se("month")},ze=()=>{v.value=Y(q.value,v.value,!1),se("year")},et=()=>{v.value=v.value.subtract(1,"month"),se("month")},nt=x(()=>{const Ue=(B.value+1)%12,Xe=B.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+Xe,Ue)n.unlinkPanels&&P.value*12+K.value-(N.value*12+B.value+1)>=12),Me=rn(),Ge=x(()=>!(m.value&&y.value&&!b.value.selecting&&nu([m.value,y.value])&&!Me.value)),ut=x(()=>n.type==="datetime"||n.type==="datetimerange"),je=(Ue,Xe)=>{if(Ue)return u?st(u[Xe]||u).locale(g.value).year(Ue.year()).month(Ue.month()).date(Ue.date()):Ue},tt=(Ue,Xe=!0)=>{const mt=Ue.minDate,Mn=Ue.maxDate,go=je(mt,0),ja=je(Mn,1);y.value===ja&&m.value===go||(a("calendar-change",[mt.toDate(),Mn&&Mn.toDate()]),y.value=ja,m.value=go,!ut.value&&Xe&&(Xe=!go||!ja),k(Xe))},yt=V(!1),he=V(!1),Ve=()=>{yt.value=!1},pe=()=>{he.value=!1},Te=(Ue,Xe)=>{I.value[Xe]=Ue;const mt=st(Ue,me.value).locale(g.value);if(mt.isValid()){if(r&&r(mt.toDate()))return;Xe==="min"?(p.value=mt,m.value=(m.value||p.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(m.value))&&(v.value=mt.add(1,"month"),y.value=m.value.add(1,"month"))):(v.value=mt,y.value=(y.value||v.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(y.value))&&(p.value=mt.subtract(1,"month"),m.value=y.value.subtract(1,"month"))),Xt(m.value,y.value),k(!0)}},ct=(Ue,Xe)=>{I.value[Xe]=null},Pt=(Ue,Xe)=>{L.value[Xe]=Ue;const mt=st(Ue,ge.value).locale(g.value);mt.isValid()&&(Xe==="min"?(yt.value=!0,m.value=(m.value||p.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),p.value=m.value):(he.value=!0,y.value=(y.value||v.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),v.value=y.value))},Gt=(Ue,Xe)=>{L.value[Xe]=null,Xe==="min"?(p.value=m.value,yt.value=!1,(!y.value||y.value.isBefore(m.value))&&(y.value=m.value)):(v.value=y.value,he.value=!1,y.value&&y.value.isBefore(m.value)&&(m.value=y.value)),k(!0)},Oe=(Ue,Xe,mt)=>{L.value.min||(Ue&&(m.value=(m.value||p.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(yt.value=Xe),(!y.value||y.value.isBefore(m.value))&&(y.value=m.value,v.value=Ue,Le(()=>{A(n.parsedValue)})),k(!0))},We=(Ue,Xe,mt)=>{L.value.max||(Ue&&(y.value=(y.value||v.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(he.value=Xe),y.value&&y.value.isBefore(m.value)&&(m.value=y.value),k(!0))},Ze=()=>{cn(),a("clear")},cn=()=>{let Ue=null;o!=null&&o.emptyValues&&(Ue=o.emptyValues.valueOnClear.value),p.value=yf(i(h),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,m.value=void 0,k(!0),a("pick",Ue)},zt=Ue=>Is(Ue,d.value||"",g.value,l);function Xt(Ue,Xe){if(n.unlinkPanels&&Xe){const mt=(Ue==null?void 0:Ue.year())||0,Mn=(Ue==null?void 0:Ue.month())||0,go=Xe.year(),ja=Xe.month();v.value=mt===go&&Mn===ja?Xe.add(1,pc):Xe}else v.value=p.value.add(1,pc),Xe&&(v.value=v.value.hour(Xe.hour()).minute(Xe.minute()).second(Xe.second()))}return a("set-picker-option",["isValidValue",Ae]),a("set-picker-option",["parseUserInput",zt]),a("set-picker-option",["handleClear",cn]),(Ue,Xe)=>(C(),$("div",{class:R([i(w).b(),i(_).b(),i(w).is("border",Ue.border),i(w).is("disabled",i(Me)),{"has-sidebar":Ue.$slots.sidebar||X.value,"has-time":ut.value}])},[E("div",{class:R(i(w).e("body-wrapper"))},[oe(Ue.$slots,"sidebar",{class:R(i(w).e("sidebar"))}),X.value?(C(),$("div",{key:0,class:R(i(w).e("sidebar"))},[(C(!0),$(Ke,null,_t(f.value,(mt,Mn)=>(C(),$("button",{key:Mn,type:"button",disabled:i(Me),class:R(i(w).e("shortcut")),onClick:go=>i(T)(mt)},Se(mt.text),11,zY))),128))],2)):re("v-if",!0),E("div",{class:R(i(w).e("body"))},[ut.value?(C(),$("div",{key:0,class:R(i(_).e("time-header"))},[E("span",{class:R(i(_).e("editors-wrap"))},[E("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startDate"),class:R(i(_).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!Ue.editable,onInput:Xe[0]||(Xe[0]=mt=>Te(mt,"min")),onChange:Xe[1]||(Xe[1]=mt=>ct(mt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),ft((C(),$("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startTime"),"model-value":le.value,"validate-event":!1,readonly:!Ue.editable,onFocus:Xe[2]||(Xe[2]=mt=>yt.value=!0),onInput:Xe[3]||(Xe[3]=mt=>Pt(mt,"min")),onChange:Xe[4]||(Xe[4]=mt=>Gt(mt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(cd),{visible:yt.value,format:ge.value,"datetime-role":"start","parsed-value":i(m)||p.value,onPick:Oe},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ve]])],2),E("span",null,[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),E("span",{class:R([i(_).e("editors-wrap"),"is-right"])},[E("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endDate"),"model-value":Z.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onInput:Xe[5]||(Xe[5]=mt=>Te(mt,"max")),onChange:Xe[6]||(Xe[6]=mt=>ct(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ft((C(),$("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endTime"),"model-value":ce.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onFocus:Xe[7]||(Xe[7]=mt=>i(m)&&(he.value=!0)),onInput:Xe[8]||(Xe[8]=mt=>Pt(mt,"max")),onChange:Xe[9]||(Xe[9]=mt=>Gt(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(cd),{"datetime-role":"end",visible:he.value,format:ge.value,"parsed-value":i(y)||v.value,onPick:We},null,8,["visible","format","parsed-value"])],2)),[[i(jl),pe]])],2)],2)):re("v-if",!0),E("div",{class:R([[i(w).e("content"),i(_).e("content")],"is-left"])},[E("div",{class:R(i(_).e("header"))},[E("button",{type:"button",class:R([i(w).e("icon-btn"),"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),disabled:i(Me),onClick:Ne},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,DY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),disabled:i(Me),onClick:Re},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,HY),[[$t,i(z)==="date"]]),Ue.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-right"]),"aria-label":i(O)("el.datepicker.nextYear"),onClick:we},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,FY)):re("v-if",!0),Ue.unlinkPanels&&i(z)==="date"?(C(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-right"]),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ie},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,KY)):re("v-if",!0),E("div",null,[E("span",{role:"button",class:R(i(_).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[10]||(Xe[10]=nn(mt=>i(G)("year"),["enter"])),onClick:Xe[11]||(Xe[11]=mt=>i(G)("year"))},Se(i(W)),43,WY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(_).e("header-label"),{active:i(z)==="month"}]),onKeydown:Xe[12]||(Xe[12]=nn(mt=>i(G)("month"),["enter"])),onClick:Xe[13]||(Xe[13]=mt=>i(G)("month"))},Se(i(O)(`el.datepicker.month${p.value.month()+1}`)),43,jY),[[$t,i(z)==="date"]])])],2),i(z)==="date"?(C(),ie(A2,{key:0,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"range",date:p.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(z)==="year"?(C(),ie(ou,{key:1,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"year",date:p.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(z)==="month"?(C(),ie(au,{key:2,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"month",date:p.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),E("div",{class:R([[i(w).e("content"),i(_).e("content")],"is-right"])},[E("div",{class:R(i(_).e("header"))},[Ue.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),onClick:ze},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,qY)):re("v-if",!0),Ue.unlinkPanels&&i(q)==="date"?(C(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),onClick:et},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,UY)):re("v-if",!0),E("button",{type:"button","aria-label":i(O)("el.datepicker.nextYear"),class:R([i(w).e("icon-btn"),"d-arrow-right"]),disabled:i(Me),onClick:ye},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,YY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-right"]),disabled:i(Me),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ee},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,GY),[[$t,i(q)==="date"]]),E("div",null,[E("span",{role:"button",class:R(i(_).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[14]||(Xe[14]=nn(mt=>i(ee)("year"),["enter"])),onClick:Xe[15]||(Xe[15]=mt=>i(ee)("year"))},Se(i(j)),43,XY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(_).e("header-label"),{active:i(q)==="month"}]),onKeydown:Xe[16]||(Xe[16]=nn(mt=>i(ee)("month"),["enter"])),onClick:Xe[17]||(Xe[17]=mt=>i(ee)("month"))},Se(i(O)(`el.datepicker.month${v.value.month()+1}`)),43,JY),[[$t,i(q)==="date"]])])],2),i(q)==="date"?(C(),ie(A2,{key:0,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(q)==="year"?(C(),ie(ou,{key:1,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"year",date:v.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(ue)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(q)==="month"?(C(),ie(au,{key:2,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"month",date:v.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2)],2)],2),Ue.showFooter&&ut.value&&(Ue.showConfirm||i(c))?(C(),$("div",{key:0,class:R(i(w).e("footer"))},[i(c)?(C(),ie(i(An),{key:0,text:"",size:"small",class:R(i(w).e("link-btn")),onClick:Ze},{default:ae(()=>[St(Se(i(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Ue.showConfirm?(C(),ie(i(An),{key:1,plain:"",size:"small",class:R(i(w).e("link-btn")),disabled:Ge.value,onClick:Xe[18]||(Xe[18]=mt=>i(k)(!1))},{default:ae(()=>[St(Se(i(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),QY=ZY;const eG=_e({...Vh}),tG=["pick","set-picker-option","calendar-change"],nG=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=kt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:x(()=>t.value.year()),rightYear:x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},aG=["disabled","onClick"],oG=["disabled"],lG=["disabled"],rG=["disabled"],sG=["disabled"],hc="year";var iG=D({name:"DatePickerMonthRange",__name:"panel-month-range",props:eG,emits:tG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=Pe(oo),r=Pe(Du,void 0),{shortcuts:s,disabledDate:u,cellClassName:c}=l.props,d=Bt(l.props,"format"),f=Bt(l.props,"defaultValue"),h=V(st().locale(o.value)),g=V(st().locale(o.value).add(1,hc)),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:S,onSelect:k,parseValue:T}=Dh(n,{defaultValue:f,leftDate:h,rightDate:g,unit:hc,sortDates:W}),M=x(()=>!!s.length),{leftPrevYear:A,rightNextYear:O,leftNextYear:I,rightPrevYear:L,leftLabel:z,rightLabel:q,leftYear:U,rightYear:F}=nG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:h,rightDate:g}),N=x(()=>n.unlinkPanels&&F.value>U.value+1),P=(G,ee=!0)=>{const te=G.minDate,ue=G.maxDate;v.value===ue&&p.value===te||(a("calendar-change",[te.toDate(),ue&&ue.toDate()]),v.value=ue,p.value=te,ee&&_())},B=()=>{let G=null;l!=null&&l.emptyValues&&(G=l.emptyValues.valueOnClear.value),h.value=yf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"year"),a("pick",G)},K=G=>Is(G,d.value,o.value,r);function W(G,ee){n.unlinkPanels&&ee?g.value=((G==null?void 0:G.year())||0)===ee.year()?ee.add(1,hc):ee:g.value=h.value.add(1,hc)}const j=rn();return fe(()=>n.visible,G=>{!G&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",nu]),a("set-picker-option",["parseUserInput",K]),a("set-picker-option",["handleClear",B]),(G,ee)=>(C(),$("div",{class:R([i(y).b(),i(b).b(),i(y).is("border",G.border),i(y).is("disabled",i(j)),{"has-sidebar":!!G.$slots.sidebar||M.value}])},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(G.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),M.value?(C(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(s),(te,ue)=>(C(),$("button",{key:ue,type:"button",class:R(i(y).e("shortcut")),disabled:i(j),onClick:ne=>i(S)(te)},Se(te.text),11,aG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-left"])},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),disabled:i(j),onClick:ee[0]||(ee[0]=(...te)=>i(A)&&i(A)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,oG),G.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...te)=>i(I)&&i(I)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,lG)):re("v-if",!0),E("div",null,Se(i(z)),1)],2),Q(au,{"selection-mode":"range",date:h.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-right"])},[E("div",{class:R(i(b).e("header"))},[G.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...te)=>i(L)&&i(L)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,rG)):re("v-if",!0),E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(j),onClick:ee[3]||(ee[3]=(...te)=>i(O)&&i(O)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,sG),E("div",null,Se(i(q)),1)],2),Q(au,{"selection-mode":"range",date:g.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),uG=iG;const cG=_e({...Vh}),dG=["pick","set-picker-option","calendar-change"],fG=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:x(()=>{const s=Math.floor(t.value.year()/10)*10;return`${s}-${s+9}`}),rightLabel:x(()=>{const s=Math.floor(n.value.year()/10)*10;return`${s}-${s+9}`}),leftYear:x(()=>Math.floor(t.value.year()/10)*10+9),rightYear:x(()=>Math.floor(n.value.year()/10)*10)}),pG=["disabled","onClick"],hG=["disabled"],vG=["disabled"],mG=["disabled"],gG=["disabled"],Zr=10,ci="year";var yG=D({name:"DatePickerYearRange",__name:"panel-year-range",props:cG,emits:dG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=V(st().locale(o.value)),r=V(st().locale(o.value).add(Zr,ci)),s=Pe(Du,void 0),u=Pe(oo),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,h=Bt(u.props,"format"),g=Bt(u.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:S,onSelect:k,parseValue:T}=Dh(n,{defaultValue:g,leftDate:l,rightDate:r,step:Zr,unit:ci,sortDates:ue}),{leftPrevYear:M,rightNextYear:A,leftNextYear:O,rightPrevYear:I,leftLabel:L,rightLabel:z,leftYear:q,rightYear:U}=fG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:l,rightDate:r}),F=rn(),N=x(()=>!!c.length),P=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",F.value),{"has-sidebar":!!hn().sidebar||N.value}]),B=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),y.is("disabled",!W.value||F.value),"d-arrow-right"]})),K=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),y.is("disabled",!W.value||F.value),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),W=x(()=>n.unlinkPanels&&U.value>q.value+1),j=(ne,de=!0)=>{const se=ne.minDate,Y=ne.maxDate;v.value===Y&&p.value===se||(a("calendar-change",[se.toDate(),Y&&Y.toDate()]),v.value=Y,p.value=se,de&&_())},G=ne=>Is(ne,h.value,o.value,s),ee=ne=>nu(ne)&&(d?!d(ne[0].toDate())&&!d(ne[1].toDate()):!0),te=()=>{let ne=null;u!=null&&u.emptyValues&&(ne=u.emptyValues.valueOnClear.value);const de=yf(i(g),{lang:i(o),step:Zr,unit:ci,unlinkPanels:n.unlinkPanels});l.value=de[0],r.value=de[1],a("pick",ne)};function ue(ne,de){if(n.unlinkPanels&&de){const se=(ne==null?void 0:ne.year())||0,Y=de.year();r.value=se+Zr>Y?de.add(Zr,ci):de}else r.value=l.value.add(Zr,ci)}return fe(()=>n.visible,ne=>{!ne&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",G]),a("set-picker-option",["handleClear",te]),(ne,de)=>(C(),$("div",{class:R(P.value)},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(ne.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),N.value?(C(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(c),(se,Y)=>(C(),$("button",{key:Y,type:"button",class:R(i(y).e("shortcut")),disabled:i(F),onClick:X=>i(S)(se)},Se(se.text),11,pG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R(B.value.content)},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R(B.value.arrowLeftBtn),disabled:i(F),onClick:de[0]||(de[0]=(...se)=>i(M)&&i(M)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,hG),ne.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!W.value||i(F),class:R(B.value.arrowRightBtn),onClick:de[1]||(de[1]=(...se)=>i(O)&&i(O)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,vG)):re("v-if",!0),E("div",null,Se(i(L)),1)],2),Q(ou,{"selection-mode":"range",date:l.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R(K.value.content)},[E("div",{class:R(i(b).e("header"))},[ne.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!W.value||i(F),class:R(K.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...se)=>i(I)&&i(I)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,mG)):re("v-if",!0),E("button",{type:"button",class:R(K.value.arrowRightBtn),disabled:i(F),onClick:de[3]||(de[3]=(...se)=>i(A)&&i(A)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,gG),E("div",null,Se(i(z)),1)],2),Q(ou,{"selection-mode":"range",date:r.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),bG=yG;const wG=function(e){switch(e){case"daterange":case"datetimerange":return QY;case"monthrange":return uG;case"yearrange":return bG;default:return IY}};var aw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){var o=a.prototype,l=o.format;o.format=function(r){var s=this,u=this.$locale();if(!this.isValid())return l.bind(this)(r);var c=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return l.bind(this)(d)}}})})(aw);var CG=aw.exports;const _G=xl(CG);var ow={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n="week",a="year";return function(o,l,r){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(c),f=r(this).endOf(n);if(d.isBefore(f))return 1}var h=r(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?r(this).startOf("week").week():Math.ceil(g)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ow);var SG=ow.exports;const xG=xl(SG);var lw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),l=this.week(),r=this.year();return l===1&&o===11?r+1:o===0&&l>=52?r-1:r}}})})(lw);var kG=lw.exports;const EG=xl(kG);var rw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){a.prototype.dayOfYear=function(l){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return l==null?r:this.add(l-r,"day")}}})})(rw);var TG=rw.exports;const MG=xl(TG);var sw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,l){return this.isSame(o,l)||this.isAfter(o,l)}}})})(sw);var OG=sw.exports;const $G=xl(OG);var iw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,l){return this.isSame(o,l)||this.isBefore(o,l)}}})})(iw);var AG=iw.exports;const RG=xl(AG);function NG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}st.extend(Cb);st.extend(_G);st.extend(Oh);st.extend(xG);st.extend(EG);st.extend(MG);st.extend($G);st.extend(RG);var PG=D({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:rY,emits:[ot,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ve("picker-panel");Et(Pe(oo,void 0))&&wt(oo,{props:Rt({...Nn(e)})}),wt(Ih,{slots:t,pickerNs:o});const{parsedValue:l,onCalendarChange:r,onPanelChange:s,onSetPickerOption:u,onPick:c}=Pe(lb,()=>db(e,n),!0);return()=>Q(wG(e.type),ht(Su(a,"onPick"),e,{parsedValue:l.value,"onSet-picker-option":u,"onCalendar-change":r,"onPanel-change":s,onClear:()=>n("clear"),onPick:c}),NG(t)?t:{default:()=>[t]})}});const uw=it(PG),IG=_e({...Mh,type:{type:J(String),default:"date"}});function LG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}var VG=D({name:"ElDatePicker",install:null,props:IG,emits:[ot],setup(e,{expose:t,emit:n,slots:a}){wt(Du,x(()=>!e.format)),wt(Eh,Rt(Bt(e,"popperOptions")));const o=V();t({focus:()=>{var r;(r=o.value)==null||r.focus()},blur:()=>{var r;(r=o.value)==null||r.blur()},handleOpen:()=>{var r;(r=o.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=o.value)==null||r.handleClose()}});const l=r=>{n(ot,r)};return()=>{const r=e.format??(gW[e.type]||Qo);return Q(fb,ht(e,{format:r,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:s=>Q(uw,ht({disabled:e.disabled,editable:e.editable,border:!1},s),LG(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const BG=it(VG),zG=_e({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:kn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),cw="ElDescriptionsItem",DG=_e({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:v1,default:"left"},labelAlign:{type:String,values:v1},className:{type:String,default:""},labelClassName:{type:String,default:""}}),dw=D({name:cw,props:DG}),Hh=Symbol("elDescriptions"),HG=_e({row:{type:J(Array),default:()=>[]}});var di=D({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Pe(Hh,{})}},render(){var v;const e=B$(this.cell),t=(((v=this.cell)==null?void 0:v.dirs)||[]).map(m=>{const{dir:y,arg:b,modifiers:w,value:_}=m;return[y,_,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",l=()=>{var m,y,b;return((b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.label)==null?void 0:b.call(y))||e.label},r=()=>{var m,y,b;return(b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.default)==null?void 0:b.call(y)},s=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,h=e.labelClassName,g={width:ln(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:ln(e.minWidth)},p=ve("descriptions");switch(this.type){case"label":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",n),p.is("vertical-label",o),d,h],colSpan:o?s:1,rowspan:o?1:u},l()),t);case"content":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",n),p.is("vertical-content",o),c,f],colSpan:o?s:s*2-1,rowspan:o?u*2-1:u},r()),t);default:{const m=l(),y={},b=ln(e.labelWidth??this.descriptions.labelWidth);return b&&(y.width=b,y.display="inline-block"),ft(Ye("td",{style:g,class:[p.e("cell"),c],colSpan:s,rowspan:u},[gn(m)?void 0:Ye("span",{style:y,class:[p.e("label"),h]},m),Ye("span",{class:[p.e("content"),f]},r())]),t)}}}});const FG={key:1};var KG=D({name:"ElDescriptionsRow",__name:"descriptions-row",props:HG,setup(e){const t=Pe(Hh,{});return(n,a)=>i(t).direction==="vertical"?(C(),$(Ke,{key:0},[E("tr",null,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),ie(i(di),{key:`tr1-${l}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),ie(i(di),{key:`tr2-${l}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(C(),$("tr",FG,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),$(Ke,{key:`tr3-${l}`},[i(t).border?(C(),$(Ke,{key:0},[Q(i(di),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Q(i(di),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(C(),ie(i(di),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),WG=KG,jG=D({name:"ElDescriptions",__name:"description",props:zG,setup(e){const t=e,n=ve("descriptions"),a=_n(),o=hn();wt(Hh,t);const l=x(()=>[n.b(),n.m(a.value)]),r=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),s=()=>{if(!o.default)return[];const u=Ta(o.default()).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)===cw}),c=[];let d=[],f=t.column,h=0;const g=[];return u.forEach((p,v)=>{var w,_,S;const m=((w=p.props)==null?void 0:w.span)||1,y=((_=p.props)==null?void 0:_.rowspan)||1,b=c.length;if(g[b]||(g[b]=0),y>1)for(let k=1;k0&&(f-=g[b],g[b]=0),vf?f:m),v===u.length-1){const k=t.column-h%t.column;d.push(r(p,k,f,!0)),c.push(d);return}m(C(),$("div",{class:R(l.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(C(),$("div",{key:0,class:R(i(n).e("header"))},[E("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[St(Se(e.title),1)])],2),E("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[St(Se(e.extra),1)])],2)],2)):re("v-if",!0),E("div",{class:R(i(n).e("body"))},[E("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[E("tbody",null,[(C(!0),$(Ke,null,_t(s(),(d,f)=>(C(),ie(WG,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),qG=jG;const UG=it(qG,{DescriptionsItem:dw}),YG=tn(dw),fw=_e({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ft},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),GG={close:()=>!0},pw=_e({...fw,appendToBody:Boolean,appendTo:{type:Eu.to.type,default:"body"},beforeClose:{type:J(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:J([String,Object]),default:void 0}}),hw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ot]:e=>Dt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XG=_e({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:J([String,Array,Object])},zIndex:{type:J([String,Number])}}),JG={click:e=>e instanceof MouseEvent},ZG="overlay";var QG=D({name:"ElOverlay",props:XG,emits:JG,setup(e,{slots:t,emit:n}){const a=ve(ZG),o=u=>{n("click",u)},{onClick:l,onMousedown:r,onMouseup:s}=rh(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:r,onMouseup:s},[oe(t,"default")],qa.STYLE|qa.CLASS|qa.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const Fh=QG,vw=Symbol("dialogInjectionKey"),h0="dialog-fade",eX="ElDialog",mw=(e,t)=>{const n=vt().emit,{nextZIndex:a}=Ou();let o="";const l=Kn(),r=Kn(),s=V(!1),u=V(!1),c=V(!1),d=V(e.zIndex??a()),f=V(!1);let h,g;const p=_l(),v=x(()=>{var j;return((j=p.value)==null?void 0:j.namespace)??Ai}),m=x(()=>{var j;return(j=p.value)==null?void 0:j.dialog}),y=x(()=>{const j={},G=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(j[`${G}-margin-top`]=e.top);const ee=ln(e.width);ee&&(j[`${G}-width`]=ee)}return j}),b=x(()=>{var j;return(e.draggable??((j=m.value)==null?void 0:j.draggable)??!1)&&!e.fullscreen}),w=x(()=>{var j;return e.alignCenter??((j=m.value)==null?void 0:j.alignCenter)??!1}),_=x(()=>{var j;return e.overflow??((j=m.value)==null?void 0:j.overflow)??!1}),S=x(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),k=x(()=>w.value?{display:"flex"}:{}),T=x(()=>{var ee;const j=e.transition??((ee=m.value)==null?void 0:ee.transition)??h0,G={name:j,onAfterEnter:M,onBeforeLeave:O,onAfterLeave:A};if(lt(j)){const te={...j},ue=(ne,de)=>se=>{be(ne)?ne.forEach(Y=>{Fe(Y)&&Y(se)}):Fe(ne)&&ne(se),de()};return te.onAfterEnter=ue(te.onAfterEnter,M),te.onBeforeLeave=ue(te.onBeforeLeave,O),te.onAfterLeave=ue(te.onAfterLeave,A),te.name||(te.name=h0,pt(eX,`transition.name is missing when using object syntax, fallback to '${h0}'`)),te}return G});function M(){n("opened")}function A(){n("closed"),n(ot,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function O(){f.value=!0,n("close")}function I(){g==null||g(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=xs(()=>U(),e.openDelay):U()}function L(){h==null||h(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=xs(()=>F(),e.closeDelay):F()}function z(){function j(G){G||(u.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(j):L()}function q(){e.closeOnClickModal&&z()}function U(){At&&(s.value=!0)}function F(){s.value=!1}function N(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function B(j){var G;((G=j.detail)==null?void 0:G.focusReason)==="pointer"&&j.preventDefault()}e.lockScroll&&af(s);function K(){e.closeOnPressEscape&&z()}function W(){!s.value||!S.value||e.zIndex!==void 0||(d.value=a())}return fe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),fe(()=>e.modelValue,j=>{j?(u.value=!1,f.value=!1,I(),c.value=!0,d.value=e.zIndex??a(),Le(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):s.value&&L()}),fe(()=>e.fullscreen,j=>{t.value&&(j?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),gt(()=>{e.modelValue&&(s.value=!0,c.value=!0,I())}),{afterEnter:M,afterLeave:A,beforeLeave:O,handleClose:z,onModalClick:q,close:L,doClose:F,onOpenAutoFocus:N,onCloseAutoFocus:P,onCloseRequested:K,onFocusoutPrevented:B,bringToFront:W,titleId:l,bodyId:r,closed:u,style:y,overlayDialogStyle:k,rendered:c,visible:s,zIndex:d,transitionConfig:T,_draggable:b,_alignCenter:w,_overflow:_,closing:f,penetrable:S}},Kh=(...e)=>t=>{e.forEach(n=>{n.value=t})},tX=["aria-level"],nX=["aria-label"],aX=["id"];var oX=D({name:"ElDialogContent",__name:"dialog-content",props:fw,emits:GG,setup(e,{expose:t}){const{t:n}=kt(),{Close:a}=Ry,o=e,{dialogRef:l,headerRef:r,bodyId:s,ns:u,style:c}=Pe(vw),{focusTrapRef:d}=Pe(Ky),f=Kh(d,l),h=x(()=>!!o.draggable),{resetPosition:g,updatePosition:p,isDragging:v}=T8(l,r,h,x(()=>!!o.overflow)),m=x(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",h.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:p}),(y,b)=>(C(),$("div",{ref:i(f),class:R(m.value),style:qe(i(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:r,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(y.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},Se(e.title),11,tX)]),e.showClose?(C(),$("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(i(De),{class:R(i(u).e("close"))},{default:ae(()=>[(C(),ie(dt(e.closeIcon||i(a))))]),_:1},8,["class"])],10,nX)):re("v-if",!0)],2),E("div",{id:i(s),class:R([i(u).e("body"),e.bodyClass])},[oe(y.$slots,"default")],10,aX),y.$slots.footer?(C(),$("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(y.$slots,"footer")],2)):re("v-if",!0)],6))}}),lX=oX;const rX=["aria-label","aria-labelledby","aria-describedby"];var sX=D({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:pw,emits:hw,setup(e,{expose:t}){const n=e,a=hn();$o({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const o=ve("dialog"),l=V(),r=V(),s=V(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,transitionConfig:p,zIndex:v,_draggable:m,_alignCenter:y,_overflow:b,penetrable:w,handleClose:_,onModalClick:S,onOpenAutoFocus:k,onCloseAutoFocus:T,onCloseRequested:M,onFocusoutPrevented:A,bringToFront:O,closing:I}=mw(n,l);wt(vw,{dialogRef:l,headerRef:r,bodyId:d,ns:o,rendered:g,style:f});const L=rh(S);return t({visible:u,dialogContentRef:s,resetPosition:()=>{var q;(q=s.value)==null||q.resetPosition()},handleClose:_}),(q,U)=>(C(),ie(i(Ys),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,ht(i(p),{persisted:""}),{default:ae(()=>[ft(Q(i(Fh),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(w))],"z-index":i(v)},{default:ae(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(I))]),style:qe(i(h)),onClick:U[0]||(U[0]=(...F)=>i(L).onClick&&i(L).onClick(...F)),onMousedown:U[1]||(U[1]=(...F)=>i(L).onMousedown&&i(L).onMousedown(...F)),onMouseup:U[2]||(U[2]=(...F)=>i(L).onMouseup&&i(L).onMouseup(...F))},[Q(i(Xs),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(k),onFocusAfterReleased:i(T),onFocusoutPrevented:i(A),onReleaseRequested:i(M)},{default:ae(()=>[i(g)?(C(),ie(lX,ht({key:0,ref_key:"dialogContentRef",ref:s},q.$attrs,{center:e.center,"align-center":i(y),"close-icon":e.closeIcon,draggable:i(m),overflow:i(b),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(_),onMousedown:i(O)}),fa({header:ae(()=>[q.$slots.title?oe(q.$slots,"title",{key:1}):oe(q.$slots,"header",{key:0,close:i(_),titleId:i(c),titleClass:i(o).e("title")})]),default:ae(()=>[oe(q.$slots,"default")]),_:2},[q.$slots.footer?{name:"footer",fn:ae(()=>[oe(q.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,rX)]),_:3},8,["mask","overlay-class","z-index"]),[[$t,i(u)]])]),_:3},16)]),_:3},8,["to","disabled"]))}}),iX=sX;const uX=it(iX),cX=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:J(String),default:"solid"}});var dX=D({name:"ElDivider",__name:"divider",props:cX,setup(e){const t=e,n=ve("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(o,l)=>(C(),$("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:qe(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(C(),$("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),fX=dX;const gw=it(fX),pX=_e({...pw,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),hX={...hw,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function vX(e,t,n){const{width:a,height:o}=Ap(),l=x(()=>["ltr","rtl"].includes(e.direction)),r=x(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=x(()=>l.value?a.value:o.value),u=x(()=>w6(c.value+r.value*d.value,4,s.value)),c=V(0),d=V(0),f=V(!1),h=V(!1);let g=[],p=[];const v=()=>{var S;const _=(S=t.value)==null?void 0:S.closest('[aria-modal="true"]');return _?l.value?_.offsetWidth:_.offsetHeight:100};fe(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,d.value=0,b()});const m=_=>{e.resizable&&(h.value||(c.value=v(),h.value=!0),g=[_.pageX,_.pageY],f.value=!0,n("resize-start",_,c.value),p.push(Vt(window,"mouseup",b),Vt(window,"mousemove",y)))},y=_=>{const{pageX:S,pageY:k}=_,T=S-g[0],M=k-g[1];d.value=l.value?T:M,n("resize",_,u.value)},b=_=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,p.forEach(S=>S==null?void 0:S()),p=[],_&&n("resize-end",_,c.value))},w=Vt(t,"mousedown",m);return Lt(()=>{w(),b()}),{size:x(()=>h.value?`${u.value}px`:ln(e.size)),isResizing:f,isHorizontal:l}}const mX=["aria-label","aria-labelledby","aria-describedby"],gX=["id","aria-level"],yX=["aria-label"],bX=["id"];var wX=D({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:pX,emits:hX,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn();$o({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!l.title));const r=V(),s=V(),u=V(),c=ve("drawer"),{t:d}=kt(),{afterEnter:f,afterLeave:h,beforeLeave:g,visible:p,rendered:v,titleId:m,bodyId:y,zIndex:b,onModalClick:w,onOpenAutoFocus:_,onCloseAutoFocus:S,onFocusoutPrevented:k,onCloseRequested:T,handleClose:M}=mw(a,r),{isHorizontal:A,size:O,isResizing:I}=vX(a,u,o),L=x(()=>a.modalPenetrable&&!a.modal);return t({handleClose:M,afterEnter:f,afterLeave:h}),(z,q)=>(C(),ie(i(Ys),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(h),onBeforeLeave:i(g),persisted:""},{default:ae(()=>[ft(Q(i(Fh),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",L.value)],"z-index":i(b),onClick:i(w)},{default:ae(()=>[Q(i(Xs),{loop:"",trapped:i(p),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:i(_),onFocusAfterReleased:i(S),onFocusoutPrevented:i(k),onReleaseRequested:i(T)},{default:ae(()=>[E("div",ht({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(y)},z.$attrs,{class:[i(c).b(),e.direction,i(p)&&"open",i(c).is("dragging",i(I))],style:{[i(A)?"width":"height"]:i(O)},role:"dialog",onClick:q[1]||(q[1]=Je(()=>{},["stop"]))}),[E("span",{ref_key:"focusStartRef",ref:s,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(C(),$("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[z.$slots.title?oe(z.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(z.$slots,"header",{key:0,close:i(M),titleId:i(m),titleClass:i(c).e("title")},()=>[E("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},Se(e.title),11,gX)]),e.showClose?(C(),$("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...U)=>i(M)&&i(M)(...U))},[Q(i(De),{class:R(i(c).e("close"))},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])],10,yX)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(C(),$("div",{key:1,id:i(y),class:R([i(c).e("body"),e.bodyClass])},[oe(z.$slots,"default")],10,bX)):re("v-if",!0),z.$slots.footer?(C(),$("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(z.$slots,"footer")],2)):re("v-if",!0),e.resizable?(C(),$("div",{key:3,ref_key:"draggerRef",ref:u,style:qe({zIndex:i(b)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,mX)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[$t,i(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),CX=wX;const _X=it(CX),Pc=_e({trigger:{...Po.trigger,type:J([String,Array])},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space,Ce.down]},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef,effect:{...Ht.effect,default:"light"},type:{type:J(String)},placement:{type:J(String),default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:J([Number,String]),default:0},maxHeight:{type:J([Number,String]),default:""},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,disabled:Boolean,role:{type:String,values:Ny,default:"menu"},buttonProps:{type:J(Object)},teleported:Ht.teleported,appendTo:Ht.appendTo,persistent:{type:Boolean,default:!0}}),yw=_e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ft}}),SX=_e({onKeydown:{type:J(Function)}}),bf=Symbol("elDropdown"),bw="elDropdown";var xX=D({inheritAttrs:!1});function kX(e,t,n,a,o,l){return oe(e.$slots,"default")}var EX=En(xX,[["render",kX]]),TX=D({name:"ElCollectionItem",inheritAttrs:!1});function MX(e,t,n,a,o,l){return oe(e.$slots,"default")}var OX=En(TX,[["render",MX]]);const ww="data-el-collection-item",$X=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},EX,{name:t,setup(){const l=V(),r=new Map;wt(a,{itemMap:r,getItems:()=>{const u=i(l);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${ww}]`));return[...r.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:l})}}),ElCollectionItem:Object.assign({},OX,{name:n,setup(l,{attrs:r}){const s=V(),u=Pe(a,void 0);wt(o,{collectionItemRef:s}),gt(()=>{const c=i(s);c&&u.itemMap.set(c,{ref:c,...r})}),Lt(()=>{const c=i(s);u.itemMap.delete(c)})}})}},AX=_e({style:{type:J([String,Array,Object])},currentTabId:{type:J(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:J(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:RX,ElCollectionItem:NX,COLLECTION_INJECTION_KEY:Cw,COLLECTION_ITEM_INJECTION_KEY:PX}=$X("RovingFocusGroup"),Wh=Symbol("elRovingFocusGroup"),_w=Symbol("elRovingFocusGroupItem"),IX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},LX=(e,t)=>e,VX=(e,t,n)=>{const a=LX(Kt(e));return IX[a]},BX=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),yg=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},bg="currentTabIdChange",wg="rovingFocusGroup.entryFocus",zX={bubbles:!1,cancelable:!0};var DX=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:AX,emits:[bg,"entryFocus"],setup(e,{emit:t}){const n=V((e.currentTabId||e.defaultCurrentTabId)??null),a=V(!1),o=V(!1),l=V(),{getItems:r}=Pe(Cw,void 0),s=x(()=>[{outline:"none"},e.style]),u=v=>{t(bg,v)},c=()=>{a.value=!0},d=On(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{o.value=!0}),f=On(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i(o),{target:y,currentTarget:b}=v;if(y===b&&m&&!i(a)){const w=new Event(wg,zX);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const _=r().filter(S=>S.focusable);yg([_.find(S=>S.active),_.find(S=>S.id===i(n)),..._].filter(Boolean).map(S=>S.ref))}}o.value=!1}),h=On(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},p=v=>{const m=VX(v);if(m){v.preventDefault();let y=r().filter(b=>b.focusable).map(b=>b.ref);switch(m){case"last":y.reverse();break;case"prev":case"next":{m==="prev"&&y.reverse();const b=y.indexOf(v.currentTarget);y=e.loop?BX(y,b+1):y.slice(b+1);break}}Le(()=>{yg(y)})}};wt(Wh,{currentTabbedId:Tr(n),loop:Bt(e,"loop"),tabIndex:x(()=>i(a)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:s,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:f,onMousedown:d,onKeydown:p}),fe(()=>e.currentTabId,v=>{n.value=v??null}),Vt(l,wg,g)}});function HX(e,t,n,a,o,l){return oe(e.$slots,"default")}var FX=En(DX,[["render",HX]]),KX=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:RX,ElRovingFocusGroupImpl:FX}});function WX(e,t,n,a,o,l){const r=Ot("el-roving-focus-group-impl"),s=Ot("el-focus-group-collection");return C(),ie(s,null,{default:ae(()=>[Q(r,nl(al(e.$attrs)),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var jX=En(KX,[["render",WX]]),qX=D({components:{ElRovingFocusCollectionItem:NX},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:l}=Pe(Wh,void 0),r=Kn(),s=V(),u=On(h=>{t("mousedown",h)},h=>{e.focusable?a(i(r)):h.preventDefault()}),c=On(h=>{t("focus",h)},()=>{a(i(r))}),d=On(h=>{t("keydown",h)},h=>{const{shiftKey:g,target:p,currentTarget:v}=h;if(Kt(h)===Ce.tab&&g){o();return}p===v&&l(h)}),f=x(()=>n.value===i(r));return wt(_w,{rovingFocusGroupItemRef:s,tabIndex:x(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:r,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function UX(e,t,n,a,o,l){const r=Ot("el-roving-focus-collection-item");return C(),ie(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var YX=En(qX,[["render",UX]]),GX=jX;const{ButtonGroup:XX}=An;var JX=D({name:"ElDropdown",components:{ElButton:An,ElButtonGroup:XX,ElScrollbar:ao,ElTooltip:Vn,ElRovingFocusGroup:GX,ElOnlyChild:Vy,ElIcon:De,ArrowDown:po},props:Pc,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vt(),a=ve("dropdown"),{t:o}=kt(),l=V(),r=V(),s=V(),u=V(),c=V(null),d=V(null),f=V(!1),h=x(()=>({maxHeight:ln(e.maxHeight)})),g=x(()=>[a.m(_.value)]),p=x(()=>$n(e.trigger)),v=Kn().value,m=x(()=>e.id||v);function y(){var z;(z=s.value)==null||z.onClose(void 0,0)}function b(){var z;(z=s.value)==null||z.onClose()}function w(){var z;(z=s.value)==null||z.onOpen()}const _=_n();function S(...z){t("command",...z)}function k(){}function T(){const z=i(u);p.value.includes("hover")&&(z==null||z.focus({preventScroll:!0})),d.value=null}function M(z){d.value=z}function A(){t("visible-change",!0)}function O(z){var q;f.value=(z==null?void 0:z.type)==="keydown",(q=u.value)==null||q.focus()}function I(){t("visible-change",!1)}return wt(bf,{contentRef:u,role:x(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:b}),wt(bw,{instance:n,dropdownSize:_,handleClick:y,commandHandler:S,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:_,triggerId:m,currentTabId:d,handleCurrentTabIdChange:M,handlerMainButtonClick:z=>{t("click",z)},handleClose:b,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:O,handleBeforeHideTooltip:I,popperRef:s,contentRef:u,triggeringElementRef:l,referenceElementRef:r}}});function ZX(e,t,n,a,o,l){const r=Ot("el-roving-focus-group"),s=Ot("el-scrollbar"),u=Ot("el-only-child"),c=Ot("el-tooltip"),d=Ot("el-button"),f=Ot("arrow-down"),h=Ot("el-icon"),g=Ot("el-button-group");return C(),$("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},fa({content:ae(()=>[Q(s,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[Q(r,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ae(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(C(),ie(g,{key:0},{default:ae(()=>[Q(d,ht({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(d,ht({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ae(()=>[Q(h,{class:R(e.ns.e("icon"))},{default:ae(()=>[Q(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var QX=En(JX,[["render",ZX]]),eJ=D({name:"DropdownItemImpl",components:{ElIcon:De},props:yw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ve("dropdown"),{role:a}=Pe(bf,void 0),{collectionItemRef:o}=Pe(PX,void 0),{rovingFocusGroupItemRef:l,tabIndex:r,handleFocus:s,handleKeydown:u,handleMousedown:c}=Pe(_w,void 0),d=Kh(o,l),f=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=On(g=>{const p=Kt(g);if([Ce.enter,Ce.numpadEnter,Ce.space].includes(p))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[ww]:""},role:f,tabIndex:r,handleFocus:s,handleKeydown:h,handleMousedown:c}}});const tJ=["aria-disabled","tabindex","role"];function nJ(e,t,n,a,o,l){const r=Ot("el-icon");return C(),$(Ke,null,[e.divided?(C(),$("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),E("li",ht({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=Je((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon||e.$slots.icon?(C(),ie(r,{key:0},{default:ae(()=>[oe(e.$slots,"icon",{},()=>[(C(),ie(dt(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,tJ)],64)}var aJ=En(eJ,[["render",nJ]]);const Sw=()=>{const e=Pe(bw,{});return{elDropdown:e,_elDropdownSize:x(()=>e==null?void 0:e.dropdownSize)}};var oJ=D({name:"ElDropdownItem",components:{ElRovingFocusItem:YX,ElDropdownItemImpl:aJ},inheritAttrs:!1,props:yw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Sw(),o=vt(),{onItemEnter:l,onItemLeave:r}=Pe(bf,void 0),s=On(c=>(t("pointermove",c),c.defaultPrevented),J1(c=>{if(e.disabled){r(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(l(c),c.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),u=On(c=>(t("pointerleave",c),c.defaultPrevented),J1(r));return{handleClick:On(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,f,h;if(e.disabled){c.stopImmediatePropagation();return}(d=a==null?void 0:a.hideOnClick)!=null&&d.value&&((f=a.handleClick)==null||f.call(a)),(h=a.commandHandler)==null||h.call(a,e.command,o,c)}),handlePointerMove:s,handlePointerLeave:u,propsAndAttrs:x(()=>({...e,...n}))}}});function lJ(e,t,n,a,o,l){const r=Ot("el-dropdown-item-impl"),s=Ot("el-roving-focus-item");return C(),ie(s,{focusable:!e.disabled},{default:ae(()=>[Q(r,ht(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),fa({default:ae(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ae(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var xw=En(oJ,[["render",lJ]]),rJ=D({name:"ElDropdownMenu",props:SX,setup(e){const t=ve("dropdown"),{_elDropdownSize:n}=Sw(),a=n.value,{contentRef:o,role:l,triggerId:r,isUsingKeyboard:s,handleClose:u}=Pe(bf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:h,onKeydown:g,onMousedown:p}=Pe(Wh,void 0),{collectionRef:v}=Pe(Cw,void 0),m=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),y=Kh(o,c,v),b=On(_=>{var S;(S=e.onKeydown)==null||S.call(e,_)},_=>{const{currentTarget:S,target:k}=_,T=Kt(_);if(S.contains(k),Ce.tab===T)return u();g(_)});function w(_){s.value&&h(_)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:l,triggerId:r,dropdownListWrapperRef:y,handleKeydown:b,onBlur:f,handleFocus:w,onMousedown:p}}});const sJ=["role","aria-labelledby"];function iJ(e,t,n,a,o,l){return C(),$("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=Je((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=Je((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[oe(e.$slots,"default")],46,sJ)}var kw=En(rJ,[["render",iJ]]);const uJ=it(QX,{DropdownItem:xw,DropdownMenu:kw}),cJ=tn(xw),dJ=tn(kw),fJ=_e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),pJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},hJ=["id"],vJ=["stop-color"],mJ=["stop-color"],gJ=["id"],yJ=["stop-color"],bJ=["stop-color"],wJ=["id"],CJ={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_J={transform:"translate(-1268.000000, -535.000000)"},SJ={transform:"translate(1268.000000, 535.000000)"},xJ=["fill"],kJ=["fill"],EJ={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TJ=["fill"],MJ=["fill"],OJ=["fill"],$J=["fill"],AJ=["fill"],RJ={transform:"translate(53.000000, 45.000000)"},NJ=["fill","xlink:href"],PJ=["fill","mask"],IJ=["fill"];var LJ=D({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ve("empty"),n=Kn();return(a,o)=>(C(),$("svg",pJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,vJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,mJ)],8,hJ),E("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,yJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,bJ)],8,gJ),E("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,wJ)]),E("g",CJ,[E("g",_J,[E("g",SJ,[E("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,xJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,kJ),E("g",EJ,[E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,TJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,MJ),E("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,OJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,$J)]),E("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,AJ),E("g",RJ,[E("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,NJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,PJ)]),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,IJ)])])])]))}}),VJ=LJ;const BJ=["src"],zJ={key:1};var DJ=D({name:"ElEmpty",__name:"empty",props:fJ,setup(e){const t=e,{t:n}=kt(),a=ve("empty"),o=x(()=>t.description||n("el.table.emptyText")),l=x(()=>({width:ln(t.imageSize)}));return(r,s)=>(C(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("image")),style:qe(l.value)},[e.image?(C(),$("img",{key:0,src:e.image,ondragstart:"return false"},null,8,BJ)):oe(r.$slots,"image",{key:1},()=>[Q(VJ)])],6),E("div",{class:R(i(a).e("description"))},[r.$slots.description?oe(r.$slots,"description",{key:0}):(C(),$("p",zJ,Se(o.value),1))],2),r.$slots.default?(C(),$("div",{key:0,class:R(i(a).e("bottom"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),HJ=DJ;const Ew=it(HJ),FJ=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:J([String,Object])},previewSrcList:{type:J(Array),default:()=>on([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),KJ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>He(e),close:()=>!0,show:()=>!0},WJ=_e({urlList:{type:J(Array),default:()=>on([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),jJ={close:()=>!0,error:e=>e instanceof Event,switch:e=>He(e),rotate:e=>He(e)},qJ=["src","crossorigin"];var UJ=D({name:"ElImageViewer",__name:"image-viewer",props:WJ,emits:jJ,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Oo(gy)},ORIGINAL:{name:"original",icon:Oo(ky)}},o=e,l=n;let r;const{t:s}=kt(),u=ve("image-viewer"),{nextZIndex:c}=Ou(),d=V(),f=V(),h=aC(),g=x(()=>{const{scale:se,minScale:Y,maxScale:X}=o;return w6(se,Y,X)}),p=V(!0),v=V(!1),m=V(!1),y=V(o.initialIndex),b=qt(a.CONTAIN),w=V({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),_=V(o.zIndex??c());af(m,{ns:u});const S=x(()=>{const{urlList:se}=o;return se.length<=1}),k=x(()=>y.value===0),T=x(()=>y.value===o.urlList.length-1),M=x(()=>o.urlList[y.value]),A=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&k.value)]),O=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),I=x(()=>{const{scale:se,deg:Y,offsetX:X,offsetY:H,enableTransition:Z}=w.value;let le=X/se,ce=H/se;const ge=Y*Math.PI/180,me=Math.cos(ge),Ae=Math.sin(ge);le=le*me+ce*Ae,ce=ce*me-X/se*Ae;const Ne={transform:`scale(${se}) rotate(${Y}deg) translate(${le}px, ${ce}px)`,transition:Z?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne}),L=x(()=>`${y.value+1} / ${o.urlList.length}`);function z(){U(),r==null||r(),m.value=!1,l("close")}function q(){const se=Il(X=>{switch(Kt(X)){case Ce.esc:o.closeOnPressEscape&&z();break;case Ce.space:W();break;case Ce.left:G();break;case Ce.up:te("zoomIn");break;case Ce.right:ee();break;case Ce.down:te("zoomOut");break}}),Y=Il(X=>{te((X.deltaY||X.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Vt(document,"keydown",se),Vt(d,"wheel",Y)})}function U(){h.stop()}function F(){p.value=!1}function N(se){v.value=!0,p.value=!1,l("error",se),se.target.alt=s("el.image.error")}function P(se){if(p.value||se.button!==0||!d.value)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,H=se.pageX,Z=se.pageY,le=Il(me=>{w.value={...w.value,offsetX:Y+me.pageX-H,offsetY:X+me.pageY-Z}}),ce=Vt(document,"mousemove",le),ge=Vt(document,"mouseup",()=>{ce(),ge()});se.preventDefault()}function B(se){if(p.value||!d.value||se.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,{pageX:H,pageY:Z}=se.touches[0],le=Il(me=>{const Ae=me.touches[0];w.value={...w.value,offsetX:Y+Ae.pageX-H,offsetY:X+Ae.pageY-Z}}),ce=Vt(document,"touchmove",le),ge=Vt(document,"touchend",()=>{ce(),ge()});se.preventDefault()}function K(){w.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function W(){if(p.value||v.value)return;const se=Gi(a),Y=Object.values(a),X=b.value.name;b.value=a[se[(Y.findIndex(H=>H.name===X)+1)%se.length]],K()}function j(se){v.value=!1;const Y=o.urlList.length;y.value=(se+Y)%Y}function G(){k.value&&!o.infinite||j(y.value-1)}function ee(){T.value&&!o.infinite||j(y.value+1)}function te(se,Y={}){if(p.value||v.value)return;const{minScale:X,maxScale:H}=o,{zoomRate:Z,rotateDeg:le,enableTransition:ce}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(se){case"zoomOut":w.value.scale>X&&(w.value.scale=Number.parseFloat((w.value.scale/Z).toFixed(3)));break;case"zoomIn":w.value.scale0)return se.preventDefault(),!1}}return fe(()=>g.value,se=>{w.value.scale=se}),fe(M,()=>{Le(()=>{var se;(se=f.value)!=null&&se.complete||(p.value=!0)})}),fe(y,se=>{K(),l("switch",se)}),gt(()=>{m.value=!0,q(),r=Vt("wheel",de,{passive:!1})}),t({setActiveItem:j}),(se,Y)=>(C(),ie(i(Ys),{to:"body",disabled:!e.teleported},{default:ae(()=>[Q(Fn,{name:"viewer-fade",appear:""},{default:ae(()=>[E("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:qe({zIndex:_.value})},[Q(i(Xs),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ue,onReleaseRequested:ne},{default:ae(()=>[E("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Je(X=>e.hideOnClickModal&&z(),["self"]))},null,2),re(" CLOSE "),E("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:z},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],2),re(" ARROW "),S.value?re("v-if",!0):(C(),$(Ke,{key:0},[E("span",{class:R(A.value),onClick:G},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],2),E("span",{class:R(O.value),onClick:ee},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],2)],64)),se.$slots.progress||e.showProgress?(C(),$("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(se.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[St(Se(L.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),E("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[E("div",{class:R(i(u).e("actions__inner"))},[oe(se.$slots,"toolbar",{actions:te,prev:G,next:ee,reset:W,activeIndex:y.value,setActiveItem:j},()=>[Q(i(De),{onClick:Y[1]||(Y[1]=X=>te("zoomOut"))},{default:ae(()=>[Q(i(Ay))]),_:1}),Q(i(De),{onClick:Y[2]||(Y[2]=X=>te("zoomIn"))},{default:ae(()=>[Q(i(gh))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:W},{default:ae(()=>[(C(),ie(dt(b.value.icon)))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:Y[3]||(Y[3]=X=>te("anticlockwise"))},{default:ae(()=>[Q(i(Sy))]),_:1}),Q(i(De),{onClick:Y[4]||(Y[4]=X=>te("clockwise"))},{default:ae(()=>[Q(i(xy))]),_:1})])],2)],2),re(" CANVAS "),E("div",{class:R(i(u).e("canvas"))},[v.value&&se.$slots["viewer-error"]?oe(se.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(C(),$("img",{ref_key:"imgRef",ref:f,key:M.value,src:M.value,style:qe(I.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:F,onError:N,onMousedown:P,onTouchstart:B},null,46,qJ))],2),oe(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),YJ=UJ;const Tw=it(YJ),GJ=["src","loading","crossorigin"],XJ={key:0};var JJ=D({name:"ElImage",inheritAttrs:!1,__name:"image",props:FJ,emits:KJ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("image"),s=gl(),u=x(()=>Es(Object.entries(s).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=nf({excludeListeners:!0,excludeKeys:x(()=>Object.keys(u.value))}),d=V(),f=V(!1),h=V(!0),g=V(!1),p=V(),v=V(),m=At&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[r.e("inner"),_.value&&r.e("preview"),h.value&&r.is("loading")]),w=x(()=>{const{fit:N}=a;return At&&N?{objectFit:N}:{}}),_=x(()=>{const{previewSrcList:N}=a;return be(N)&&N.length>0}),S=x(()=>{const{previewSrcList:N,initialIndex:P}=a;let B=P;return P>N.length-1&&(B=0),B}),k=x(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),T=()=>{At&&(h.value=!0,f.value=!1,d.value=a.src)};function M(N){h.value=!1,f.value=!1,o("load",N)}function A(N){h.value=!1,f.value=!0,o("error",N)}function O(N){N&&(T(),z())}const I=_6(O,200,!0);async function L(){if(!At)return;await Le();const{scrollContainer:N}=a;if(ga(N))v.value=N;else if(Be(N)&&N!=="")v.value=document.querySelector(N)??void 0;else if(p.value){const B=Xp(p.value);v.value=xu(B)?void 0:B}const{stop:P}=RS(p,([B])=>{I(B.isIntersecting)},{root:v});y=P}function z(){!At||!I||(y==null||y(),v.value=void 0,y=void 0)}function q(){_.value&&(g.value=!0,o("show"))}function U(){g.value=!1,o("close")}function F(N){o("switch",N)}return fe(()=>a.src,()=>{k.value?(h.value=!0,f.value=!1,z(),L()):T()}),gt(()=>{k.value?L():T()}),t({showPreview:q}),(N,P)=>(C(),$("div",ht({ref_key:"container",ref:p},u.value,{class:[i(r).b(),N.$attrs.class]}),[f.value?oe(N.$slots,"error",{key:0},()=>[E("div",{class:R(i(r).e("error"))},Se(i(l)("el.image.error")),3)]):(C(),$(Ke,{key:1},[d.value!==void 0?(C(),$("img",ht({key:0},i(c),{src:d.value,loading:e.loading,style:w.value,class:b.value,crossorigin:e.crossorigin,onClick:q,onLoad:M,onError:A}),null,16,GJ)):re("v-if",!0),h.value?(C(),$("div",{key:1,class:R(i(r).e("wrapper"))},[oe(N.$slots,"placeholder",{},()=>[E("div",{class:R(i(r).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),_.value?(C(),$(Ke,{key:2},[g.value?(C(),ie(i(Tw),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:U,onSwitch:F},fa({toolbar:ae(B=>[oe(N.$slots,"toolbar",nl(al(B)))]),default:ae(()=>[N.$slots.viewer?(C(),$("div",XJ,[oe(N.$slots,"viewer")])):re("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:ae(B=>[oe(N.$slots,"progress",nl(al(B)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:ae(B=>[oe(N.$slots,"viewer-error",nl(al(B)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),ZJ=JJ;const QJ=it(ZJ),eZ=_e({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:kn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:J([String,Number,null]),validator:e=>e===null||He(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},align:{type:J(String),default:"center"},disabledScientific:Boolean}),tZ={[bt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[wn]:e=>He(e)||gn(e),[ot]:e=>He(e)||gn(e)},nZ=["aria-label"],aZ=["aria-label"];var oZ=D({name:"ElInputNumber",__name:"input-number",props:eZ,emits:tZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("input-number"),s=V(),u=Rt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Bn(),d=x(()=>He(a.modelValue)&&a.modelValue<=a.min),f=x(()=>He(a.modelValue)&&a.modelValue>=a.max),h=x(()=>{const N=b(a.step);return Et(a.precision)?Math.max(b(a.modelValue),N):(N>a.precision&&pt("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=x(()=>a.controls&&a.controlsPosition==="right"),p=_n(),v=rn(),m=x(()=>{if(u.userInput!==null)return u.userInput;let N=u.currentValue;if(gn(N))return"";if(He(N)){if(Number.isNaN(N))return"";Et(a.precision)||(N=N.toFixed(a.precision))}return N}),y=(N,P)=>{if(Et(P)&&(P=h.value),P===0)return Math.round(N);let B=String(N);const K=B.indexOf(".");if(K===-1||!B.replace(".","").split("")[K+P])return N;const W=B.length;return B.charAt(W-1)==="5"&&(B=`${B.slice(0,Math.max(0,W-1))}6`),Number.parseFloat(Number(B).toFixed(P))},b=N=>{if(gn(N))return 0;const P=N.toString(),B=P.indexOf(".");let K=0;return B!==-1&&(K=P.length-B-1),K},w=(N,P=1)=>He(N)?N>=Number.MAX_SAFE_INTEGER&&P===1?(pt("InputNumber","The value has reached the maximum safe integer limit."),N):N<=Number.MIN_SAFE_INTEGER&&P===-1?(pt("InputNumber","The value has reached the minimum safe integer limit."),N):y(N+a.step*P):u.currentValue,_=N=>{const P=Kt(N),B=p8(N);if(a.disabledScientific&&["e","E"].includes(B)){N.preventDefault();return}switch(P){case Ce.up:N.preventDefault(),S();break;case Ce.down:N.preventDefault(),k();break}},S=()=>{a.readonly||v.value||f.value||(M(w(Number(m.value)||0)),o(wn,u.currentValue),U())},k=()=>{a.readonly||v.value||d.value||(M(w(Number(m.value)||0,-1)),o(wn,u.currentValue),U())},T=(N,P)=>{const{max:B,min:K,step:W,precision:j,stepStrictly:G,valueOnClear:ee}=a;BB||teB?B:K,P&&o(ot,te)),te},M=(N,P=!0)=>{var W;const B=u.currentValue,K=T(N);if(!P){o(ot,K);return}u.userInput=null,!(B===K&&N)&&(o(ot,K),B!==K&&o(bt,K,B),a.validateEvent&&((W=c==null?void 0:c.validate)==null||W.call(c,"change").catch(j=>pt(j))),u.currentValue=K)},A=N=>{u.userInput=N;const P=N===""?null:Number(N);o(wn,P),M(P,!1)},O=N=>{const P=N!==""?Number(N):"";(He(P)&&!Number.isNaN(P)||N==="")&&M(P),U(),u.userInput=null},I=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},L=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},z=N=>{o("focus",N)},q=N=>{var P,B;u.userInput=null,u.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),o("blur",N),a.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(K=>pt(K)))},U=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},F=N=>{document.activeElement===N.target&&N.preventDefault()};return fe(()=>a.modelValue,(N,P)=>{const B=T(N,!0);u.userInput===null&&B!==P&&(u.currentValue=B)},{immediate:!0}),fe(()=>a.precision,()=>{u.currentValue=T(a.modelValue)}),gt(()=>{var W;const{min:N,max:P,modelValue:B}=a,K=(W=s.value)==null?void 0:W.input;if(K.setAttribute("role","spinbutton"),Number.isFinite(P)?K.setAttribute("aria-valuemax",String(P)):K.removeAttribute("aria-valuemax"),Number.isFinite(N)?K.setAttribute("aria-valuemin",String(N)):K.removeAttribute("aria-valuemin"),K.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),K.setAttribute("aria-disabled",String(v.value)),!He(B)&&B!=null){let j=Number(B);Number.isNaN(j)&&(j=null),o(ot,j)}K.addEventListener("wheel",F,{passive:!1})}),so(()=>{var N,P;(P=(N=s.value)==null?void 0:N.input)==null||P.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:I,blur:L}),(N,P)=>(C(),$("div",{class:R([i(r).b(),i(r).m(i(p)),i(r).is("disabled",i(v)),i(r).is("without-controls",!e.controls),i(r).is("controls-right",g.value),i(r).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Je(()=>{},["prevent"]))},[e.controls?ft((C(),$("span",{key:0,role:"button","aria-label":i(l)("el.inputNumber.decrease"),class:R([i(r).e("decrease"),i(r).is("disabled",d.value)]),onKeydown:nn(k,["enter"])},[oe(N.$slots,"decrease-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(C(),ie(i(po),{key:0})):(C(),ie(i(by),{key:1}))]),_:1})])],42,nZ)),[[i(od),k]]):re("v-if",!0),e.controls?ft((C(),$("span",{key:1,role:"button","aria-label":i(l)("el.inputNumber.increase"),class:R([i(r).e("increase"),i(r).is("disabled",f.value)]),onKeydown:nn(S,["enter"])},[oe(N.$slots,"increase-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(C(),ie(i(Iu),{key:0})):(C(),ie(i(vh),{key:1}))]),_:1})])],42,aZ)),[[i(od),S]]):re("v-if",!0),Q(i(Dn),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(p),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:q,onFocus:z,onInput:A,onChange:O},fa({_:2},[N.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),lZ=oZ;const Mw=it(lZ),rZ=_e({modelValue:{type:J(Array)},max:Number,tagType:{...hl.type,default:"info"},tagEffect:hl.effect,effect:{type:J(String),default:"light"},trigger:{type:J(String),default:Ce.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:kn,clearable:Boolean,clearIcon:{type:Ft,default:ho},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:J(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),sZ={[ot]:e=>be(e)||Et(e),[bt]:e=>be(e)||Et(e),[wn]:e=>Be(e),"add-tag":e=>Be(e)||be(e),"remove-tag":(e,t)=>Be(e)&&He(t),"drag-tag":(e,t,n)=>He(e)&&He(t)&&Be(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function iZ({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ve("input-tag"),o=qt(),l=V(!1);let r,s,u,c;function d(p){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${p+1})`}function f(p,v){r=v,s=e.value.querySelector(d(v)),s&&(s.style.opacity="0.5"),p.dataTransfer.effectAllowed="move"}function h(p,v){if(u=v,p.preventDefault(),p.dataTransfer.dropEffect="move",Et(r)||r===v){l.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),y=r+1!==v,b=r-1!==v,w=p.clientX-m.left,_=y?b?.5:1:-1,S=b?y?.5:0:1;w<=m.width*_?c="before":w>m.width*S?c="after":c=void 0;const k=e.value.querySelector(`.${a.e("inner")}`),T=k.getBoundingClientRect(),M=Number.parseFloat(Zo(k,"gap"))/2,A=m.top-T.top;let O=-9999;if(c==="before")O=Math.max(m.left-T.left-M,Math.floor(-M/2));else if(c==="after"){const I=m.right-T.left;O=I+(T.width===I?Math.floor(M/2):M)}E8(o.value,{top:`${A}px`,left:`${O}px`}),l.value=!!c}function g(p){p.preventDefault(),s&&(s.style.opacity=""),c&&!Et(r)&&!Et(u)&&r!==u&&t(r,u,c),l.value=!1,r=void 0,s=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:o,showDropIndicator:l,handleDragStart:f,handleDragOver:h,handleDragEnd:g}}function uZ(){const e=V(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function cZ({props:e,emit:t,formItem:n}){const a=rn(),o=_n(),l=qt(),r=V(),s=V(),u=x(()=>["small"].includes(o.value)?"small":"default"),c=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),f=x(()=>{var F;return Et(e.max)?!1:(((F=e.modelValue)==null?void 0:F.length)??0)>=e.max}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),g=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),p=F=>{const N=[...e.modelValue??[],...$n(F)];t(ot,N),t(bt,N),t("add-tag",F),r.value=void 0},v=F=>{var B;const N=F.split(e.delimiter),P=N.length>1?N.map(K=>K.trim()).filter(Boolean):[];if(e.max){const K=e.max-(((B=e.modelValue)==null?void 0:B.length)??0);P.splice(K)}return P.length===1?P[0]:P},m=F=>{var G;const N=(G=F.clipboardData)==null?void 0:G.getData("text");if(e.readonly||f.value||!e.delimiter||!N)return;const{selectionStart:P=0,selectionEnd:B=0,value:K}=F.target,W=K.slice(0,P)+N+K.slice(B),j=v(W);j.length&&(p(j),t(wn,W),F.preventDefault())},y=F=>{if(f.value){r.value=void 0;return}if(!L.value){if(e.delimiter&&r.value){const N=v(r.value);N.length&&p(N)}t(wn,F.target.value)}},b=F=>{var N;if(!L.value)switch(Kt(F)){case e.trigger:F.preventDefault(),F.stopPropagation(),_();break;case Ce.numpadEnter:e.trigger===Ce.enter&&(F.preventDefault(),F.stopPropagation(),_());break;case Ce.backspace:!r.value&&((N=e.modelValue)!=null&&N.length)&&(F.preventDefault(),F.stopPropagation(),S(e.modelValue.length-1));break}},w=F=>{if(!(L.value||!x6()))switch(Kt(F)){case Ce.space:e.trigger===Ce.space&&(F.preventDefault(),F.stopPropagation(),_());break}},_=()=>{var N;const F=(N=r.value)==null?void 0:N.trim();!F||f.value||p(F)},S=F=>{const N=(e.modelValue??[]).slice(),[P]=N.splice(F,1);t(ot,N),t(bt,N),t("remove-tag",P,F)},k=()=>{r.value=void 0,t(ot,void 0),t(bt,void 0),t("clear")},T=(F,N,P)=>{const B=(e.modelValue??[]).slice(),[K]=B.splice(F,1),W=N>F&&P==="before"?-1:N{var F;(F=l.value)==null||F.focus()},A=()=>{var F;(F=l.value)==null||F.blur()},{wrapperRef:O,isFocused:I}=Cl(l,{disabled:a,beforeBlur(F){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?_():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(N=>pt(N)))}}),{isComposing:L,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U}=Nu({afterComposition:y});return fe(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,bt).catch(N=>pt(N)))}),{inputRef:l,wrapperRef:O,tagTooltipRef:s,isFocused:I,isComposing:L,inputValue:r,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:h,collapseTagList:g,handleDragged:T,handlePaste:m,handleInput:y,handleKeydown:b,handleKeyup:w,handleAddTag:_,handleRemoveTag:S,handleClear:k,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U,focus:M,blur:A}}function dZ({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:l,validateState:r,validateIcon:s,needStatusIcon:u}){const c=gl(),d=hn(),f=ve("input-tag"),h=ve("input"),g=V(),p=V(),v=x(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(l.value),f.e("wrapper"),c.class]),m=x(()=>[c.style]),y=x(()=>{var A,O;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((A=e.modelValue)!=null&&A.length)&&!d.prefix),f.is("right-space",!((O=e.modelValue)!=null&&O.length)&&!w.value)]}),b=x(()=>{var A;return e.clearable&&!a.value&&!e.readonly&&(((A=e.modelValue)==null?void 0:A.length)||o.value)&&(t.value||n.value)}),w=x(()=>d.suffix||b.value||r.value&&s.value&&u.value),_=Rt({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!p.value)return 0;const A=window.getComputedStyle(p.value);return Number.parseFloat(A.gap||"6px")},k=()=>{_.innerWidth=Number.parseFloat(window.getComputedStyle(p.value).width)},T=()=>{_.collapseItemWidth=g.value.getBoundingClientRect().width},M=x(()=>{if(!e.collapseTags)return{};const A=S(),O=A+Wd,I=g.value&&e.maxCollapseTags===1?_.innerWidth-_.collapseItemWidth-A-O:_.innerWidth-O;return{maxWidth:`${Math.max(I,0)}px`}});return Zt(p,k),Zt(g,T),{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:y,showClear:b,showSuffix:w,tagStyle:M,collapseItemRef:g,innerRef:p}}const fZ=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],pZ=["textContent"];var hZ=D({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:rZ,emits:sZ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=nf(),r=hn(),{form:s,formItem:u}=Bn(),{inputId:c}=Pa(a,{formItemContext:u}),d=x(()=>(s==null?void 0:s.statusIcon)??!1),f=x(()=>(u==null?void 0:u.validateState)||""),h=x(()=>f.value&&pf[f.value]),{inputRef:g,wrapperRef:p,tagTooltipRef:v,isFocused:m,inputValue:y,size:b,tagSize:w,placeholder:_,closable:S,disabled:k,showTagList:T,collapseTagList:M,handleDragged:A,handlePaste:O,handleInput:I,handleKeydown:L,handleKeyup:z,handleRemoveTag:q,handleClear:U,handleCompositionStart:F,handleCompositionUpdate:N,handleCompositionEnd:P,focus:B,blur:K}=cZ({props:a,emit:o,formItem:u}),{hovering:W,handleMouseEnter:j,handleMouseLeave:G}=uZ(),{calculatorRef:ee,inputStyle:te}=Up(),{dropIndicatorRef:ue,showDropIndicator:ne,handleDragStart:de,handleDragOver:se,handleDragEnd:Y}=iZ({wrapperRef:p,handleDragged:A,afterDragged:B}),{ns:X,nsInput:H,containerKls:Z,containerStyle:le,innerKls:ce,showClear:ge,showSuffix:me,tagStyle:Ae,collapseItemRef:Ne,innerRef:Re}=dZ({props:a,hovering:W,isFocused:m,inputValue:y,disabled:k,size:b,validateState:f,validateIcon:h,needStatusIcon:d});return t({focus:B,blur:K}),(ye,Ee)=>(C(),$("div",{ref_key:"wrapperRef",ref:p,class:R(i(Z)),style:qe(i(le)),onMouseenter:Ee[9]||(Ee[9]=(...we)=>i(j)&&i(j)(...we)),onMouseleave:Ee[10]||(Ee[10]=(...we)=>i(G)&&i(G)(...we))},[i(r).prefix?(C(),$("div",{key:0,class:R(i(X).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref_key:"innerRef",ref:Re,class:R(i(ce))},[(C(!0),$(Ke,null,_t(i(T),(we,Ie)=>(C(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,draggable:i(S)&&e.draggable,style:qe(i(Ae)),"disable-transitions":"",onClose:ze=>i(q)(Ie),onDragstart:ze=>i(de)(ze,Ie),onDragover:ze=>i(se)(ze,Ie),onDragend:i(Y),onDrop:Ee[0]||(Ee[0]=Je(()=>{},["stop"]))},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(C(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ae(()=>[E("div",{ref_key:"collapseItemRef",ref:Ne,class:R(i(X).e("collapse-tag"))},[Q(i(ll),{closable:!1,size:i(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[St(" + "+Se(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ae(()=>[E("div",{class:R(i(X).e("input-tag-list"))},[(C(!0),$(Ke,null,_t(i(M),(we,Ie)=>(C(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:ze=>i(q)(Ie+e.maxCollapseTags)},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie+e.maxCollapseTags},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),E("div",{class:R(i(X).e("input-wrapper"))},[ft(E("input",ht({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":Ee[1]||(Ee[1]=we=>Yt(y)?y.value=we:null)},i(l),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(_),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(X).e("input"),style:i(te),onCompositionstart:Ee[2]||(Ee[2]=(...we)=>i(F)&&i(F)(...we)),onCompositionupdate:Ee[3]||(Ee[3]=(...we)=>i(N)&&i(N)(...we)),onCompositionend:Ee[4]||(Ee[4]=(...we)=>i(P)&&i(P)(...we)),onPaste:Ee[5]||(Ee[5]=(...we)=>i(O)&&i(O)(...we)),onInput:Ee[6]||(Ee[6]=(...we)=>i(I)&&i(I)(...we)),onKeydown:Ee[7]||(Ee[7]=(...we)=>i(L)&&i(L)(...we)),onKeyup:Ee[8]||(Ee[8]=(...we)=>i(z)&&i(z)(...we))}),null,16,fZ),[[c6,i(y)]]),E("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(X).e("input-calculator")),textContent:Se(i(y))},null,10,pZ)],2),ft(E("div",{ref_key:"dropIndicatorRef",ref:ue,class:R(i(X).e("drop-indicator"))},null,2),[[$t,i(ne)]])],2),i(me)?(C(),$("div",{key:1,class:R(i(X).e("suffix"))},[oe(ye.$slots,"suffix"),i(ge)?(C(),ie(i(De),{key:0,class:R([i(X).e("icon"),i(X).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:i(U)},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&h.value&&d.value?(C(),ie(i(De),{key:1,class:R([i(H).e("icon"),i(H).e("validateIcon"),i(H).is("loading",f.value==="validating")])},{default:ae(()=>[(C(),ie(dt(h.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),vZ=hZ;const mZ=it(vZ),gZ=_e({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ft}}),yZ={click:e=>e instanceof MouseEvent},bZ=["href","target"];var wZ=D({name:"ElLink",__name:"link",props:gZ,emits:yZ,setup(e,{emit:t}){const n=e,a=t,o=_l("link");$o({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>Dt(n.underline)));const l=ve("link"),r=x(()=>{var c;return[l.b(),l.m(n.type??((c=o.value)==null?void 0:c.type)??"default"),l.is("disabled",n.disabled),l.is("underline",s.value==="always"),l.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=x(()=>{var c;return Dt(n.underline)?n.underline?"hover":"never":n.underline??((c=o.value)==null?void 0:c.underline)??"hover"});function u(c){n.disabled||a("click",c)}return(c,d)=>(C(),$("a",{class:R(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(C(),$("span",{key:1,class:R(i(l).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,bZ))}}),CZ=wZ;const _Z=it(CZ),jh="rootMenu",gd="subMenu:";function Ow(e,t){const n=x(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:x(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function SZ(e){return x(()=>{const t=e.backgroundColor;return t?new fn(t).shade(20).toString():""})}const $w=(e,t)=>{const n=ve("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":SZ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},xZ=_e({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ft},expandOpenIcon:{type:Ft},collapseCloseIcon:{type:Ft},collapseOpenIcon:{type:Ft}}),v0="ElSubMenu";var qh=D({name:v0,props:xZ,setup(e,{slots:t,expose:n}){const a=vt(),{indexPath:o,parentMenu:l}=Ow(a,x(()=>e.index)),r=ve("menu"),s=ve("sub-menu"),u=Pe(jh);u||en(v0,"can not inject root menu");const c=Pe(`${gd}${l.value.uid}`);c||en(v0,"can not inject sub menu");const d=V({}),f=V({});let h;const g=V(!1),p=V(),v=V(),m=x(()=>c.level===0),y=x(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),b=x(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:po:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Un),w=x(()=>{const j=e.teleported;return Et(j)?m.value:j}),_=x(()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),S=x(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=x(()=>u.openedMenus.includes(e.index)),T=x(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:j})=>j)),M=x(()=>u.props.mode),A=x(()=>u.props.persistent),O=Rt({index:e.index,indexPath:o,active:T}),I=$w(u.props,c.level+1),L=x(()=>e.popperOffset??u.props.popperOffset),z=x(()=>e.popperClass??u.props.popperClass),q=x(()=>e.popperStyle??u.props.popperStyle),U=x(()=>e.showTimeout??u.props.showTimeout),F=x(()=>e.hideTimeout??u.props.hideTimeout),N=()=>{var j,G,ee;return(ee=(G=(j=v.value)==null?void 0:j.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:ee.destroy()},P=j=>{j||N()},B=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},K=(j,G=U.value)=>{var ee;if(j.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=xs(()=>{u.openMenu(e.index,o.value)},G),w.value&&((ee=l.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),j.type==="mouseenter"&&j.target&&Le(()=>{ku(j.target,{preventScroll:!0})})}},W=(j=!1)=>{var G;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=xs(()=>!g.value&&u.closeMenu(e.index,o.value),F.value),w.value&&j&&((G=c.handleMouseleave)==null||G.call(c,!0))};fe(()=>u.props.collapse,j=>P(!!j));{const j=ee=>{f.value[ee.index]=ee},G=ee=>{delete f.value[ee.index]};wt(`${gd}${a.uid}`,{addSubMenu:j,removeSubMenu:G,handleMouseleave:W,mouseInChild:g,level:c.level+1})}return n({opened:k}),gt(()=>{u.addSubMenu(O),c.addSubMenu(O)}),Lt(()=>{c.removeSubMenu(O),u.removeSubMenu(O)}),()=>{var ee;const j=[(ee=t.title)==null?void 0:ee.call(t),Ye(De,{class:s.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Be(b.value)?Ye(a.appContext.components[b.value]):Ye(b.value)})],G=u.isMenuPopup?Ye(Vn,{ref:v,visible:k.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:A.value,popperClass:z.value,popperStyle:q.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var te;return Ye("div",{class:[r.m(M.value),r.m("popup-container"),z.value],onMouseenter:ue=>K(ue,100),onMouseleave:()=>W(!0),onFocus:ue=>K(ue,100)},[Ye("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:I.value},[(te=t.default)==null?void 0:te.call(t)])])},default:()=>Ye("div",{class:s.e("title"),onClick:B},j)}):Ye(Ke,{},[Ye("div",{class:s.e("title"),ref:p,onClick:B},j),Ye(gf,{},{default:()=>{var te;return ft(Ye("ul",{role:"menu",class:[r.b(),r.m("inline")],style:I.value},[(te=t.default)==null?void 0:te.call(t)]),[[$t,k.value]])}})]);return Ye("li",{class:[s.b(),s.is("active",T.value),s.is("opened",k.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:K,onMouseleave:()=>W(),onFocus:K},[G])}}}),kZ=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener("keydown",n=>{const a=Kt(n);let o=!1;switch(a){case Ce.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case Ce.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case Ce.tab:kc(e,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},EZ=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new kZ(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Kt(e);let n=!1;switch(t){case Ce.down:kc(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case Ce.up:kc(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Ce.tab:kc(e.currentTarget,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},TZ=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new EZ(n,e)})}},MZ=D({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ve("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ba(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){aa(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Ao(a,t.m("collapse"))?(aa(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ba(a,t.m("collapse"))):(Ba(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),aa(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ba(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(C(),ie(Fn,ht({mode:"out-in"},n),{default:ae(()=>[oe(a.$slots,"default")]),_:3},16))}}),OZ=MZ;const $Z=_e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:J(Array),default:()=>on([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ft,default:()=>wy},popperEffect:{type:J(String),default:"dark"},popperClass:String,popperStyle:{type:J([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),m0=e=>be(e)&&e.every(t=>Be(t)),AZ={close:(e,t)=>Be(e)&&m0(t),open:(e,t)=>Be(e)&&m0(t),select:(e,t,n,a)=>Be(e)&&m0(t)&<(n)&&(Et(a)||a instanceof Promise)},Cg=64;var RZ=D({name:"ElMenu",props:$Z,emits:AZ,setup(e,{emit:t,slots:n,expose:a}){const o=vt(),l=o.appContext.config.globalProperties.$router,r=V(),s=V(),u=ve("menu"),c=ve("sub-menu");let d=Cg;const f=V(-1),h=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=V(e.defaultActive),p=V({}),v=V({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const N=g.value&&p.value[g.value];!N||e.mode==="horizontal"||e.collapse||N.indexPath.forEach(P=>{const B=v.value[P];B&&b(P,B.indexPath)})},b=(N,P)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(B=>P.includes(B))),h.value.push(N),t("open",N,P))},w=N=>{const P=h.value.indexOf(N);P!==-1&&h.value.splice(P,1)},_=(N,P)=>{w(N),t("close",N,P)},S=({index:N,indexPath:P})=>{h.value.includes(N)?_(N,P):b(N,P)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:P,indexPath:B}=N;if(!(gn(P)||gn(B)))if(e.router&&l){const K=N.route||P,W=l.push(K).then(j=>(j||(g.value=P),j));t("select",P,B,{index:P,indexPath:B,route:K},W)}else g.value=P,t("select",P,B,{index:P,indexPath:B})},T=N=>{var B;const P=p.value;g.value=((B=P[N]||g.value&&P[g.value]||P[e.defaultActive])==null?void 0:B.index)??N},M=N=>{const P=getComputedStyle(N),B=Number.parseInt(P.marginLeft,10),K=Number.parseInt(P.marginRight,10);return N.offsetWidth+B+K||0},A=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(r.value),B=Number.parseInt(P.paddingLeft,10),K=Number.parseInt(P.paddingRight,10),W=r.value.clientWidth-B-K;let j=0,G=0;return N.forEach((ee,te)=>{j+=M(ee),j<=W-d&&(G=te+1)}),G===N.length?-1:G},O=N=>v.value[N].indexPath,I=(N,P=33.34)=>{let B;return()=>{B&&clearTimeout(B),B=setTimeout(()=>{N()},P)}};let L=!0;const z=()=>{const N=xn(s);if(N&&(d=M(N)||Cg),f.value===A())return;const P=()=>{f.value=-1,Le(()=>{f.value=A()})};L?P():I(P)(),L=!1};fe(()=>e.defaultActive,N=>{p.value[N]||(g.value=""),T(N)}),fe(()=>e.collapse,N=>{N&&(h.value=[])}),fe(p.value,y);let q;da(()=>{e.mode==="horizontal"&&e.ellipsis?q=Zt(r,z).stop:q==null||q()});const U=V(!1);{const N=W=>{v.value[W.index]=W},P=W=>{delete v.value[W.index]};wt(jh,Rt({props:e,openedMenus:h,items:p,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:W=>{p.value[W.index]=W},removeMenuItem:W=>{delete p.value[W.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:_,handleMenuItemClick:k,handleSubMenuClick:S})),wt(`${gd}${o.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:U,level:0})}gt(()=>{e.mode==="horizontal"&&new TZ(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:B}=v.value[P];B.forEach(K=>b(K,B))},close:w,updateActiveIndex:T,handleResize:z});const F=$w(e,0);return()=>{var W;let N=((W=n.default)==null?void 0:W.call(n))??[];const P=[];if(e.mode==="horizontal"&&r.value){const j=Ta(N).filter(te=>(te==null?void 0:te.shapeFlag)!==8),G=f.value===-1?j:j.slice(0,f.value),ee=f.value===-1?[]:j.slice(f.value);ee!=null&&ee.length&&e.ellipsis&&(N=G,P.push(Ye(qh,{ref:s,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ye(De,{class:c.e("icon-more")},{default:()=>Ye(e.ellipsisIcon)}),default:()=>ee})))}const B=e.closeOnClickOutside?[[jl,()=>{h.value.length&&(U.value||(h.value.forEach(j=>t("close",j,O(j))),h.value=[]))}]]:[],K=ft(Ye("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...N,...P]),B);return e.collapseTransition&&e.mode==="vertical"?Ye(OZ,()=>K):K}}});const NZ=_e({index:{type:J([String,null]),default:null},route:{type:J([String,Object])},disabled:Boolean}),PZ={click:e=>Be(e.index)&&be(e.indexPath)},IZ={title:String},vc="ElMenuItem";var LZ=D({name:vc,__name:"menu-item",props:NZ,emits:PZ,setup(e,{expose:t,emit:n}){const a=e,o=n;ya(a.index)&&pt(vc,'Missing required prop: "index"');const l=vt(),r=Pe(jh),s=ve("menu"),u=ve("menu-item");r||en(vc,"can not inject root menu");const{parentMenu:c,indexPath:d}=Ow(l,Bt(a,"index")),f=Pe(`${gd}${c.value.uid}`);f||en(vc,"can not inject sub menu");const h=x(()=>a.index===r.activeIndex),g=Rt({index:a.index,indexPath:d,active:h}),p=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return gt(()=>{f.addSubMenu(g),r.addMenuItem(g)}),Lt(()=>{f.removeSubMenu(g),r.removeMenuItem(g)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:s,nsMenuItem:u,handleClick:p}),(v,m)=>(C(),$("li",{class:R([i(u).b(),i(u).is("active",h.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[i(c).type.name==="ElMenu"&&i(r).props.collapse&&v.$slots.title?(C(),ie(i(Vn),{key:0,effect:i(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(r).props.popperClass,"popper-style":i(r).props.popperStyle,persistent:i(r).props.persistent,"focus-on-target":""},{content:ae(()=>[oe(v.$slots,"title")]),default:ae(()=>[E("div",{class:R(i(s).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(C(),$(Ke,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),Aw=LZ,VZ=D({name:"ElMenuItemGroup",__name:"menu-item-group",props:IZ,setup(e){const t=ve("menu-item-group");return(n,a)=>(C(),$("li",{class:R(i(t).b())},[E("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(C(),$(Ke,{key:0},[St(Se(e.title),1)],64))],2),E("ul",null,[oe(n.$slots,"default")])],2))}}),Rw=VZ;const BZ=it(RZ,{MenuItem:Aw,MenuItemGroup:Rw,SubMenu:qh}),zZ=tn(Aw),DZ=tn(Rw),HZ=tn(qh),FZ=_e({icon:{type:Ft,default:()=>dy},title:String,content:{type:String,default:""}}),KZ={back:()=>!0},WZ=["aria-label"];var jZ=D({name:"ElPageHeader",__name:"page-header",props:FZ,emits:KZ,setup(e,{emit:t}){const n=t,{t:a}=kt(),o=ve("page-header");function l(){n("back")}return(r,s)=>(C(),$("div",{class:R([i(o).b(),i(o).is("contentful",!!r.$slots.default),{[i(o).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[i(o).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(C(),$("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(r.$slots,"breadcrumb")],2)):re("v-if",!0),E("div",{class:R(i(o).e("header"))},[E("div",{class:R(i(o).e("left"))},[E("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:l},[e.icon||r.$slots.icon?(C(),$("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(r.$slots,"icon",{},()=>[e.icon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):re("v-if",!0)])],10,WZ)):re("v-if",!0),E("div",{class:R(i(o).e("title"))},[oe(r.$slots,"title",{},()=>[St(Se(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),Q(i(gw),{direction:"vertical"}),E("div",{class:R(i(o).e("content"))},[oe(r.$slots,"content",{},()=>[St(Se(e.content),1)])],2)],2),r.$slots.extra?(C(),$("div",{key:0,class:R(i(o).e("extra"))},[oe(r.$slots,"extra")],2)):re("v-if",!0)],2),r.$slots.default?(C(),$("div",{key:1,class:R(i(o).e("main"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),qZ=jZ;const UZ=it(qZ),Nw=Symbol("elPaginationKey"),YZ=_e({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ft}}),GZ={click:e=>e instanceof MouseEvent},XZ=["disabled","aria-label","aria-disabled"],JZ={key:0};var ZZ=D({name:"ElPaginationPrev",__name:"prev",props:YZ,emits:GZ,setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage<=1);return(o,l)=>(C(),$("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.prevText?(C(),$("span",JZ,Se(o.prevText),1)):(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(o.prevIcon)))]),_:1}))],8,XZ))}}),QZ=ZZ;const eQ=_e({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ft}}),tQ=["disabled","aria-label","aria-disabled"],nQ={key:0};var aQ=D({name:"ElPaginationNext",__name:"next",props:eQ,emits:["click"],setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(C(),$("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.nextText?(C(),$("span",nQ,Se(o.nextText),1)):(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(o.nextIcon)))]),_:1}))],8,tQ))}}),oQ=aQ;const Uh=()=>Pe(Nw,{}),lQ=_e({pageSize:{type:Number,required:!0},pageSizes:{type:J(Array),default:()=>on([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:io},appendSizeTo:String});var rQ=D({name:"ElPaginationSizes",__name:"sizes",props:lQ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("pagination"),r=Uh(),s=V(n.pageSize);fe(()=>n.pageSizes,(d,f)=>{an(d,f)||be(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),fe(()=>n.pageSize,d=>{s.value=d});const u=x(()=>n.pageSizes);function c(d){var f;d!==s.value&&(s.value=d,(f=r.handleSizeChange)==null||f.call(r,Number(d)))}return(d,f)=>(C(),$("span",{class:R(i(l).e("sizes"))},[Q(i(Yl),{"model-value":s.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ae(()=>[(C(!0),$(Ke,null,_t(u.value,h=>(C(),ie(i(fd),{key:h,value:h,label:h+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),sQ=rQ;const iQ=_e({size:{type:String,values:io}}),uQ=["disabled"];var cQ=D({name:"ElPaginationJumper",__name:"jumper",props:iQ,setup(e){const{t}=kt(),n=ve("pagination"),{pageCount:a,disabled:o,currentPage:l,changeEvent:r}=Uh(),s=V(),u=x(()=>s.value??(l==null?void 0:l.value));function c(f){s.value=f?+f:""}function d(f){f=Math.trunc(+f),r==null||r(f),s.value=void 0}return(f,h)=>(C(),$("span",{class:R(i(n).e("jump")),disabled:i(o)},[E("span",{class:R([i(n).e("goto")])},Se(i(t)("el.pagination.goto")),3),Q(i(Dn),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),E("span",{class:R([i(n).e("classifier")])},Se(i(t)("el.pagination.pageClassifier")),3)],10,uQ))}}),dQ=cQ;const fQ=_e({total:{type:Number,default:1e3}}),pQ=["disabled"];var hQ=D({name:"ElPaginationTotal",__name:"total",props:fQ,setup(e){const{t}=kt(),n=ve("pagination"),{disabled:a}=Uh();return(o,l)=>(C(),$("span",{class:R(i(n).e("total")),disabled:i(a)},Se(i(t)("el.pagination.total",{total:o.total})),11,pQ))}}),vQ=hQ;const mQ=_e({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),gQ=["aria-current","aria-label","tabindex"],yQ=["tabindex","aria-label"],bQ=["aria-current","aria-label","tabindex"],wQ=["tabindex","aria-label"],CQ=["aria-current","aria-label","tabindex"];var _Q=D({name:"ElPaginationPager",__name:"pager",props:mQ,emits:[bt],setup(e,{emit:t}){const n=e,a=t,o=ve("pager"),l=ve("icon"),{t:r}=kt(),s=V(!1),u=V(!1),c=V(!1),d=V(!1),f=V(!1),h=V(!1),g=x(()=>{const S=n.pagerCount,k=(S-1)/2,T=Number(n.currentPage),M=Number(n.pageCount);let A=!1,O=!1;M>S&&(T>S-k&&(A=!0),T["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),v=x(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),m=x(()=>n.disabled?-1:0);fe(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,k,T])=>{const M=(k-1)/2;let A=!1,O=!1;S>k&&(A=T>k-M,O=TM&&(T=M)),T!==A&&a(bt,T)}return(S,k)=>(C(),$("ul",{class:R(i(o).b()),onClick:_,onKeyup:nn(w,["enter"])},[S.pageCount>0?(C(),$("li",{key:0,class:R([[i(o).is("active",S.currentPage===1),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":i(r)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,gQ)):re("v-if",!0),s.value?(C(),$("li",{key:1,class:R(p.value),tabindex:m.value,"aria-label":i(r)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>y(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>b(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!S.disabled?(C(),ie(i(fl),{key:0})):(C(),ie(i(h2),{key:1}))],42,yQ)):re("v-if",!0),(C(!0),$(Ke,null,_t(g.value,T=>(C(),$("li",{key:T,class:R([[i(o).is("active",S.currentPage===T),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":i(r)("el.pagination.currentPage",{pager:T}),tabindex:m.value},Se(T),11,bQ))),128)),u.value?(C(),$("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(r)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>y()),onMouseleave:k[5]||(k[5]=T=>d.value=!1),onFocus:k[6]||(k[6]=T=>b()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(d.value||h.value)&&!S.disabled?(C(),ie(i(pl),{key:0})):(C(),ie(i(h2),{key:1}))],42,wQ)):re("v-if",!0),S.pageCount>1?(C(),$("li",{key:3,class:R([[i(o).is("active",S.currentPage===S.pageCount),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":i(r)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:m.value},Se(S.pageCount),11,CQ)):re("v-if",!0)],34))}}),SQ=_Q;const la=e=>typeof e!="number",xQ=_e({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>He(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:J(Array),default:()=>on([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ft,default:()=>zo},nextText:{type:String,default:""},nextIcon:{type:Ft,default:()=>Un},teleported:{type:Boolean,default:!0},small:Boolean,size:kn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),kQ={"update:current-page":e=>He(e),"update:page-size":e=>He(e),"size-change":e=>He(e),change:(e,t)=>He(e)&&He(t),"current-change":e=>He(e),"prev-click":e=>He(e),"next-click":e=>He(e)},_g="ElPagination";var EQ=D({name:_g,props:xQ,emits:kQ,setup(e,{emit:t,slots:n}){const{t:a}=kt(),o=ve("pagination"),l=vt().vnode.props||{},r=sy(),s=x(()=>e.small?"small":e.size??r.value);$o({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,d=x(()=>{if(la(e.total)&&la(e.pageCount)||!la(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(la(e.pageCount)){if(!la(e.total)&&!la(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=V(la(e.defaultPageSize)?10:e.defaultPageSize),h=V(la(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=x({get(){return la(e.pageSize)?f.value:e.pageSize},set(S){la(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),p=x(()=>{let S=0;return la(e.pageCount)?la(e.total)||(S=Math.max(1,Math.ceil(e.total/g.value))):S=e.pageCount,S}),v=x({get(){return la(e.currentPage)?h.value:e.currentPage},set(S){let k=S;S<1?k=1:S>p.value&&(k=p.value),la(e.currentPage)&&(h.value=k),u&&(t("update:current-page",k),t("current-change",k))}});fe(p,S=>{v.value>S&&(v.value=S)}),fe([v,g],S=>{t(bt,...S)},{flush:"post"});function m(S){v.value=S}function y(S){g.value=S;const k=p.value;v.value>k&&(v.value=k)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function w(){e.disabled||(v.value+=1,t("next-click",v.value))}function _(S,k){S&&(S.props||(S.props={}),S.props.class=[S.props.class,k].join(" "))}return wt(Nw,{pageCount:p,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:y}),()=>{var I;if(!d.value)return pt(_g,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const S=[],k=[],T=Ye("div",{class:o.e("rightwrapper")},k),M={prev:Ye(QZ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Ye(dQ,{size:s.value}),pager:Ye(SQ,{currentPage:v.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Ye(oQ,{disabled:e.disabled,currentPage:v.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:Ye(sQ,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:((I=n==null?void 0:n.default)==null?void 0:I.call(n))??null,total:Ye(vQ,{total:la(e.total)?0:e.total})},A=e.layout.split(",").map(L=>L.trim());let O=!1;return A.forEach(L=>{if(L==="->"){O=!0;return}O?k.push(M[L]):S.push(M[L])}),_(S[0],o.is("first")),_(S[S.length-1],o.is("last")),O&&k.length>0&&(_(k[0],o.is("first")),_(k[k.length-1],o.is("last")),S.push(T)),Ye("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},S)}}});const TQ=it(EQ),MQ=_e({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:C2,default:"primary"},cancelButtonType:{type:String,values:C2,default:"text"},icon:{type:Ft,default:()=>_y},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,persistent:Ht.persistent,width:{type:[String,Number],default:150},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef}),OQ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var $Q=D({name:"ElPopconfirm",__name:"popconfirm",props:MQ,emits:OQ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("popconfirm"),s=V(),u=V(),c=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),d=()=>{var y,b;(b=(y=u.value)==null?void 0:y.focus)==null||b.call(y)},f=()=>{var y,b;(b=(y=s.value)==null?void 0:y.onClose)==null||b.call(y)},h=x(()=>({width:ln(a.width)})),g=y=>{o("confirm",y),f()},p=y=>{o("cancel",y),f()},v=x(()=>a.confirmButtonText||l("el.popconfirm.confirmButtonText")),m=x(()=>a.cancelButtonText||l("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(y,b)=>(C(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s,trigger:"click",effect:e.effect},y.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ae(()=>[E("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(r).b())},[E("div",{class:R(i(r).e("main"))},[!e.hideIcon&&e.icon?(C(),ie(i(De),{key:0,class:R(i(r).e("icon")),style:qe({color:e.iconColor})},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),St(" "+Se(e.title),1)],2),E("div",{class:R(i(r).e("action"))},[oe(y.$slots,"actions",{confirm:g,cancel:p},()=>[Q(i(An),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:p},{default:ae(()=>[St(Se(m.value),1)]),_:1},8,["type","text"]),Q(i(An),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ae(()=>[St(Se(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),AQ=$Q;const RQ=it(AQ),NQ=_e({trigger:Po.trigger,triggerKeys:Po.triggerKeys,placement:Pc.placement,disabled:Po.disabled,visible:Ht.visible,transition:Ht.transition,popperOptions:Pc.popperOptions,tabindex:Pc.tabindex,content:Ht.content,popperStyle:Ht.popperStyle,popperClass:Ht.popperClass,enterable:{...Ht.enterable,default:!0},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,appendTo:Ht.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),PQ={"update:visible":e=>Dt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},IQ="onUpdate:visible";var LQ=D({name:"ElPopover",__name:"popover",props:NQ,emits:PQ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>a[IQ]),r=ve("popover"),s=V(),u=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),c=x(()=>[{width:ln(a.width)},a.popperStyle]),d=x(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),f=x(()=>a.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var y;(y=s.value)==null||y.hide()},g=()=>{o("before-enter")},p=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:h}),(y,b)=>(C(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":l.value,onBeforeShow:g,onBeforeHide:p,onShow:v,onHide:m}),{content:ae(()=>[e.title?(C(),$("div",{key:0,class:R(i(r).e("title")),role:"title"},Se(e.title),3)):re("v-if",!0),oe(y.$slots,"default",{hide:h},()=>[St(Se(e.content),1)])]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),VQ=LQ;const Sg=(e,t)=>{var a;const n=(a=t.arg||t.value)==null?void 0:a.popperRef;n&&(n.triggerRef=e)};var BQ={mounted(e,t){Sg(e,t)},updated(e,t){Sg(e,t)}};const zQ="popover",Pw=W$(BQ,zQ),DQ=it(VQ,{directive:Pw}),HQ=_e({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:J(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:J([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:J(Function),default:e=>`${e}%`}}),FQ=["aria-valuenow"],KQ={viewBox:"0 0 100 100"},WQ=["d","stroke","stroke-linecap","stroke-width"],jQ=["d","stroke","opacity","stroke-linecap","stroke-width"],qQ={key:0};var UQ=D({name:"ElProgress",__name:"progress",props:HQ,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ve("progress"),o=x(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=b(n.percentage);return _.includes("gradient")?w.background=_:w.backgroundColor=_,w}),l=x(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),s=x(()=>{const w=r.value,_=n.type==="dashboard";return` + `}else s||(s=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(_(),ie(i(ao),{key:h.value,tag:"ul",role:"menu",class:R(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:ae(()=>{var w;return[(_(!0),$(Ke,null,_t(e.nodes,C=>(_(),ie(Mq,{key:C.uid,node:C,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(_(),$("div",{key:0,class:R(i(a).e("empty-text"))},[Q(i(De),{size:"14",class:R(i(a).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"]),St(" "+Se(i(o)("el.cascader.loading")),1)],2)):d.value?(_(),$("div",{key:1,class:R(i(a).e("empty-text"))},[oe(y.$slots,"empty",{},()=>[St(Se(i(o)("el.cascader.noData")),1)])],2)):(w=i(u))!=null&&w.isHoverMenu?(_(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(_(),$("svg",{ref_key:"hoverZone",ref:c,class:R(i(a).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),$q=Oq;let Aq=0;const Rq=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var M2=class O2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=Aq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=Rq(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new O2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ca(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(Fe(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:r}=n,s=Fe(r)?r(t,this):t[r];return Et(s)?l&&!o?!1:!(be(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new O2(t,this.config,this);return be(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const $2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat($2(a.children,t))),n),[]);var dg=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new M2(a,this.config));this.nodes=n,this.allNodes=$2(n,!1),this.leafNodes=$2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new M2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return ya(e)?null:this.getFlattedNodes(t).find(n=>on(n.value,e)||on(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>on(e.value,t)&&e.level===n)||null}};const fg=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Nq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():f8(e)&&e.click()},Pq=(e,t)=>{const n=t.slice(0),a=n.map(l=>l.uid),o=e.reduce((l,r)=>{const s=a.indexOf(r.uid);return s>-1&&(l.push(r),n.splice(s,1),a.splice(s,1)),l},[]);return o.push(...n),o};var Iq=D({name:"ElCascaderPanel",__name:"index",props:Jj,emits:Zj,setup(e,{expose:t,emit:n}){const a=e,o=n;let l=!1;const r=ve("cascader"),s=Qj(a),u=vn();let c;const d=V(!0),f=V(!1),h=V([]),g=V(),p=V([]),v=V(),m=V([]),y=x(()=>s.value.expandTrigger==="hover"),b=x(()=>a.renderLabel||u.default),w=()=>{const{options:N}=a,P=s.value;l=!1,c=new dg(N,P),p.value=[c.getNodes()],P.lazy&&ca(a.options)?(d.value=!1,C(void 0,B=>{B&&(c=new dg(B,P),p.value=[c.getNodes()]),d.value=!0,L(!1,!0)})):L(!1,!0)},C=(N,P)=>{const B=s.value;N=N||new M2({},B,void 0,!0),N.loading=!0;const W=j=>{const G=N,ee=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],j&&(c==null||c.appendNodes(j,ee)),j&&(P==null||P(j)),N.level===0&&(f.value=!0)},K=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(d.value=!0)};B.lazyLoad(N,W,K)},S=(N,P)=>{var j;const{level:B}=N,W=p.value.slice(0,B);let K;N.isLeaf?K=N.pathNodes[B-2]:(K=N,W.push(N.children)),((j=v.value)==null?void 0:j.uid)!==(K==null?void 0:K.uid)&&(v.value=N,p.value=W,!P&&o("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,P,B=!0)=>{const{checkStrictly:W,multiple:K}=s.value,j=m.value[0];l=!0,!K&&(j==null||j.doCheck(!1)),N.doCheck(P),I(),B&&!K&&!W&&o("close"),!B&&!K&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&S(N))},M=N=>c==null?void 0:c.getFlattedNodes(N),A=N=>{var P;return(P=M(N))==null?void 0:P.filter(({checked:B})=>B!==!1)},O=()=>{m.value.forEach(N=>N.doCheck(!1)),I(),p.value=p.value.slice(0,1),v.value=void 0,o("expand-change",[])},I=()=>{const{checkStrictly:N,multiple:P}=s.value,B=m.value,W=Pq(B,A(!N)),K=W.map(j=>j.valueByOption);m.value=W,g.value=P?K:K[0]??null},L=(N=!1,P=!1)=>{const{modelValue:B}=a,{lazy:W,multiple:K,checkStrictly:j}=s.value,G=!j;if(!(!d.value||l||!P&&on(B,g.value)))if(W&&!N){const ee=$m(DT(ta(B))).map(te=>c==null?void 0:c.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);ee.length?ee.forEach(te=>{C(te,()=>L(!1,P))}):L(!0,P)}else z($m((K?ta(B):[B]).map(ee=>c==null?void 0:c.getNodeByValue(ee,G))),P),g.value=Eo(B??void 0)},z=(N,P=!0)=>{const{checkStrictly:B}=s.value,W=m.value,K=N.filter(ee=>!!ee&&(B||ee.isLeaf)),j=c==null?void 0:c.getSameNode(v.value),G=P&&j||K[0];G?G.pathNodes.forEach(ee=>S(ee,!0)):v.value=void 0,W.forEach(ee=>ee.doCheck(!1)),Nt(K).forEach(ee=>ee.doCheck(!0)),m.value=K,Le(q)},q=()=>{Rt&&h.value.forEach(N=>{const P=N==null?void 0:N.$el;if(P){const B=P.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let W=P.querySelector(`.${r.b("node")}.in-active-path`);if(!W){const K=P.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);W=K[K.length-1]}Qp(B,W)}})},U=N=>{var W,K;const P=N.target,B=Kt(N);switch(B){case Ce.up:case Ce.down:N.preventDefault(),Tc(p8(P,B===Ce.up?-1:1,`.${r.b("node")}[tabindex="-1"]`));break;case Ce.left:{N.preventDefault();const j=(W=h.value[fg(P)-1])==null?void 0:W.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Tc(j);break}case Ce.right:{N.preventDefault();const j=(K=h.value[fg(P)+1])==null?void 0:K.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Tc(j);break}case Ce.enter:case Ce.numpadEnter:Nq(P);break}};wt(gf,Nt({config:s,expandingNode:v,checkedNodes:m,isHoverMenu:y,initialLoaded:d,renderLabelFn:b,lazyLoad:C,expandNode:S,handleCheckChange:k})),fe(s,(N,P)=>{on(N,P)||w()},{immediate:!0}),fe(()=>a.options,w,{deep:!0}),fe(()=>a.modelValue,()=>{l=!1,L()},{deep:!0}),fe(()=>g.value,N=>{on(N,a.modelValue)||(o(ot,N),o(bt,N))});const F=()=>{f.value||w()};return Sp(()=>h.value=[]),gt(()=>!ca(a.modelValue)&&L()),t({menuList:h,menus:p,checkedNodes:m,handleKeyDown:U,handleCheckChange:k,getFlattedNodes:M,getCheckedNodes:A,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:q,loadLazyRootNodes:F}),(N,P)=>(_(),$("div",{class:R([i(r).b("panel"),i(r).is("bordered",e.border)]),onKeydown:U},[(_(!0),$(Ke,null,_t(p.value,(B,W)=>(_(),ie($q,{key:W,ref_for:!0,ref:K=>h.value[W]=K,index:W,nodes:[...B]},{empty:ae(()=>[oe(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),Lq=Iq;const Db=it(Lq),Vq=_e({...kb,size:kn,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ft,default:ho},filterable:Boolean,filterMethod:{type:J(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:J(Function),default:()=>!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,teleported:Ht.teleported,effect:{type:J(String),default:"light"},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...jr}),pg=e=>!0,Bq={[ot]:pg,[bt]:pg,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Dt(e),expandChange:e=>!!e,removeTag:e=>!!e},zq=["placeholder"],Dq=["onClick"];var Hq=D({name:"ElCascader",__name:"cascader",props:Vq,emits:Bq,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:$e})=>{const{modifiersData:We,placement:Ze}=$e;["right","left","bottom","top"].includes(Ze)||We.arrow&&(We.arrow.x=35)},requires:["arrow"]}]},o=e,l=n,r=gl(),s=vn();let u=0,c=0;const d=ve("cascader"),f=ve("input"),h={small:7,default:11,large:15},{t:g}=kt(),{formItem:p}=Bn(),v=sn(),{valueOnClear:m}=Iu(o),{isComposing:y,handleComposition:b}=Pu({afterComposition($e){var Ze;const We=(Ze=$e.target)==null?void 0:Ze.value;Te(We)}}),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(!1),O=V(!1),I=V(!1),L=V(""),z=V(""),q=V([]),U=V([]),F=x(()=>o.props.multiple?o.collapseTags?q.value.slice(0,o.maxCollapseTags):q.value:[]),N=x(()=>o.props.multiple?o.collapseTags?q.value.slice(o.maxCollapseTags):[]:[]),P=x(()=>r.style),B=x(()=>o.placeholder??g("el.cascader.placeholder")),W=x(()=>z.value||q.value.length>0||y.value?"":B.value),K=_n(),j=x(()=>K.value==="small"?"small":"default"),G=x(()=>!!o.props.multiple),ee=x(()=>!o.filterable||G.value),te=x(()=>G.value?z.value:L.value),ue=x(()=>{var $e;return(($e=T.value)==null?void 0:$e.checkedNodes)||[]}),{wrapperRef:ne,isFocused:de,handleBlur:se}=Cl(S,{disabled:v,beforeBlur($e){var We,Ze;return((We=w.value)==null?void 0:We.isFocusInsideContent($e))||((Ze=C.value)==null?void 0:Ze.isFocusInsideContent($e))},afterBlur(){var $e;o.validateEvent&&(($e=p==null?void 0:p.validate)==null||$e.call(p,"blur").catch(We=>pt(We)))}}),Y=x(()=>!o.clearable||v.value||I.value||!O.value&&!de.value?!1:!!ue.value.length),X=x(()=>{const{showAllLevels:$e,separator:We}=o,Ze=ue.value;return Ze.length?G.value?"":Ze[0].calcText($e,We):""}),H=x(()=>(p==null?void 0:p.validateState)||""),Z=x({get(){return Eo(o.modelValue)},set($e){const We=$e??m.value;l(ot,We),l(bt,We),o.validateEvent&&(p==null||p.validate("change").catch(Ze=>pt(Ze)))}}),le=x(()=>[d.b(),d.m(K.value),d.is("disabled",v.value),r.class]),ce=x(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",A.value)]),ge=x(()=>d.is("focus",de.value)),me=x(()=>{var $e,We;return(We=($e=w.value)==null?void 0:$e.popperRef)==null?void 0:We.contentRef}),Ae=$e=>{de.value&&se(new FocusEvent("blur",$e)),Ne(!1)},Ne=$e=>{var We,Ze;v.value||($e=$e??!A.value,$e!==A.value&&(A.value=$e,(Ze=(We=S.value)==null?void 0:We.input)==null||Ze.setAttribute("aria-expanded",`${$e}`),$e?(Re(),T.value&&Le(T.value.scrollToExpandingNode)):o.filterable&&tt(),l("visibleChange",$e)))},Re=()=>{Le(()=>{var $e;($e=w.value)==null||$e.updatePopper()})},ye=()=>{I.value=!1},Ee=$e=>{const{showAllLevels:We,separator:Ze}=o;return{node:$e,key:$e.uid,text:$e.calcText(We,Ze),hitState:!1,closable:!v.value&&!$e.isDisabled}},we=$e=>{var Ze;const We=$e.node;We.doCheck(!1),(Ze=T.value)==null||Ze.calculateCheckedValue(),l("removeTag",We.valueByOption)},Ie=()=>{switch(o.showCheckedStrategy){case"child":return ue.value;case"parent":{const $e=Me(!1),We=$e.map(Ze=>Ze.value);return $e.filter(Ze=>!Ze.parent||!We.includes(Ze.parent.value))}default:return[]}},ze=()=>{if(!G.value)return;const $e=Ie(),We=[];$e.forEach(Ze=>We.push(Ee(Ze))),q.value=We},et=()=>{var zt,Xt;const{filterMethod:$e,showAllLevels:We,separator:Ze}=o,dn=(Xt=(zt=T.value)==null?void 0:zt.getFlattedNodes(!o.props.checkStrictly))==null?void 0:Xt.filter(Ue=>Ue.isDisabled?!1:(Ue.calcText(We,Ze),$e(Ue,te.value)));G.value&&q.value.forEach(Ue=>{Ue.hitState=!1}),I.value=!0,U.value=dn,Re()},nt=()=>{var We;let $e;I.value&&M.value?$e=M.value.$el.querySelector(`.${d.e("suggestion-item")}`):$e=(We=T.value)==null?void 0:We.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),$e&&($e.focus(),!I.value&&$e.getAttribute("aria-haspopup")==="true"&&$e.click())},at=()=>{var dn,zt,Xt;const $e=(dn=S.value)==null?void 0:dn.input,We=k.value,Ze=(zt=M.value)==null?void 0:zt.$el;if(!(!Rt||!$e)){if(Ze){const Ue=Ze.querySelector(`.${d.e("suggestion-list")}`);Ue.style.minWidth=`${$e.offsetWidth}px`}if(We){const{offsetHeight:Ue}=We,Xe=q.value.length>0?`${Math.max(Ue,u)-2}px`:`${u}px`;if($e.style.height=Xe,s.prefix){const mt=(Xt=S.value)==null?void 0:Xt.$el.querySelector(`.${f.e("prefix")}`);let Mn=0;mt&&(Mn=mt.offsetWidth,Mn>0&&(Mn+=h[K.value||"default"])),We.style.left=`${Mn}px`}else We.style.left="0";Re()}}},Me=$e=>{var We;return(We=T.value)==null?void 0:We.getCheckedNodes($e)},Ge=$e=>{Re(),l("expandChange",$e)},ut=$e=>{if(!y.value)switch(Kt($e)){case Ce.enter:case Ce.numpadEnter:Ne();break;case Ce.down:Ne(!0),Le(nt),$e.preventDefault();break;case Ce.esc:A.value===!0&&($e.preventDefault(),$e.stopPropagation(),Ne(!1));break;case Ce.tab:Ne(!1);break}},je=()=>{var $e;($e=T.value)==null||$e.clearCheckedNodes(),!A.value&&o.filterable&&tt(),Ne(!1),l("clear")},tt=()=>{const{value:$e}=X;L.value=$e,z.value=$e},yt=$e=>{var Ze,dn;const{checked:We}=$e;G.value?(Ze=T.value)==null||Ze.handleCheckChange($e,!We,!1):(!We&&((dn=T.value)==null||dn.handleCheckChange($e,!0,!1)),Ne(!1))},he=$e=>{const We=$e.target,Ze=Kt($e);switch(Ze){case Ce.up:case Ce.down:$e.preventDefault(),Tc(p8(We,Ze===Ce.up?-1:1,`.${d.e("suggestion-item")}[tabindex="-1"]`));break;case Ce.enter:case Ce.numpadEnter:We.click();break}},Ve=()=>{const $e=q.value[q.value.length-1];c=z.value?0:c+1,!(!$e||!c||o.collapseTags&&q.value.length>1)&&($e.hitState?we($e):$e.hitState=!0)},pe=yu(()=>{const{value:$e}=te;if(!$e)return;const We=o.beforeFilter($e);Kl(We)?We.then(et).catch(()=>{}):We!==!1?et():ye()},x(()=>o.debounce)),Te=($e,We)=>{if(!A.value&&Ne(!0),!(We!=null&&We.isComposing))if($e)pe();else{const Ze=o.beforeFilter("");Kl(Ze)&&Ze.catch(()=>{}),ye()}},ct=$e=>Number.parseFloat($S(f.cssVarName("input-height"),$e).value)-2,Pt=()=>{var $e;($e=S.value)==null||$e.focus()},Gt=()=>{var $e;($e=S.value)==null||$e.blur()};return fe(I,Re),fe([ue,v,()=>o.collapseTags,()=>o.maxCollapseTags],ze),fe(q,()=>{Le(()=>at())}),fe(K,async()=>{await Le();const $e=S.value.input;u=ct($e)||u,at()}),fe(X,tt,{immediate:!0}),fe(()=>A.value,$e=>{var We;$e&&o.props.lazy&&o.props.lazyLoad&&((We=T.value)==null||We.loadLazyRootNodes())}),gt(()=>{const $e=S.value.input,We=ct($e);u=$e.offsetHeight||We,Zt($e,at)}),t({getCheckedNodes:Me,cascaderPanelRef:T,togglePopperVisible:Ne,contentRef:me,presentText:X,focus:Pt,blur:Gt}),($e,We)=>(_(),ie(i(Vn),{ref_key:"tooltipRef",ref:w,visible:A.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:ye},{default:ae(()=>[ft((_(),$("div",{ref_key:"wrapperRef",ref:ne,class:R(le.value),style:qe(P.value),onClick:We[8]||(We[8]=()=>Ne(ee.value?void 0:!0)),onKeydown:ut,onMouseenter:We[9]||(We[9]=Ze=>O.value=!0),onMouseleave:We[10]||(We[10]=Ze=>O.value=!1)},[Q(i(Dn),{ref_key:"inputRef",ref:S,modelValue:L.value,"onUpdate:modelValue":We[1]||(We[1]=Ze=>L.value=Ze),placeholder:W.value,readonly:ee.value,disabled:i(v),"validate-event":!1,size:i(K),class:R(ge.value),tabindex:G.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(b),onCompositionupdate:i(b),onCompositionend:i(b),onInput:Te},fa({suffix:ae(()=>[Y.value?(_(),ie(i(De),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Je(je,["stop"])},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class"])):(_(),ie(i(De),{key:"arrow-down",class:R(ce.value),onClick:We[0]||(We[0]=Je(Ze=>Ne(),["stop"]))},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]))]),_:2},[$e.$slots.prefix?{name:"prefix",fn:ae(()=>[oe($e.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),G.value?(_(),$("div",{key:0,ref_key:"tagWrapper",ref:k,class:R([i(d).e("tags"),i(d).is("validate",!!H.value)])},[oe($e.$slots,"tag",{data:q.value,deleteTag:we},()=>[(_(!0),$(Ke,null,_t(F.value,Ze=>(_(),ie(i(ll),{key:Ze.key,type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:dn=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(_(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:C,disabled:A.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ae(()=>[Q(i(ll),{closable:!1,size:j.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[E("span",{class:R(i(d).e("tags-text"))}," + "+Se(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ae(()=>[Q(i(ao),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ae(()=>[E("div",{class:R(i(d).e("collapse-tags"))},[(_(!0),$(Ke,null,_t(N.value,(Ze,dn)=>(_(),$("div",{key:dn,class:R(i(d).e("collapse-tag"))},[(_(),ie(i(ll),{key:Ze.key,class:"in-tooltip",type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:zt=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?ft((_(),$("input",{key:1,"onUpdate:modelValue":We[2]||(We[2]=Ze=>z.value=Ze),type:"text",class:R(i(d).e("search-input")),placeholder:X.value?"":B.value,onInput:We[3]||(We[3]=Ze=>Te(z.value,Ze)),onClick:We[4]||(We[4]=Je(Ze=>Ne(!0),["stop"])),onKeydown:an(Ve,["delete"]),onCompositionstart:We[5]||(We[5]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionupdate:We[6]||(We[6]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionend:We[7]||(We[7]=(...Ze)=>i(b)&&i(b)(...Ze))},null,42,zq)),[[d6,z.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(jl),Ae,me.value]])]),content:ae(()=>[$e.$slots.header?(_(),$("div",{key:0,class:R(i(d).e("header")),onClick:We[11]||(We[11]=Je(()=>{},["stop"]))},[oe($e.$slots,"header")],2)):re("v-if",!0),ft(Q(i(Db),{ref_key:"cascaderPanelRef",ref:T,modelValue:Z.value,"onUpdate:modelValue":We[12]||(We[12]=Ze=>Z.value=Ze),options:e.options,props:o.props,border:!1,"render-label":$e.$slots.default,onExpandChange:Ge,onClose:We[13]||(We[13]=Ze=>$e.$nextTick(()=>Ne(!1)))},{empty:ae(()=>[oe($e.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[At,!I.value]]),e.filterable?ft((_(),ie(i(ao),{key:1,ref_key:"suggestionPanel",ref:M,tag:"ul",class:R(i(d).e("suggestion-panel")),"view-class":i(d).e("suggestion-list"),onKeydown:he},{default:ae(()=>[U.value.length?(_(!0),$(Ke,{key:0},_t(U.value,Ze=>(_(),$("li",{key:Ze.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",Ze.checked)]),tabindex:-1,onClick:dn=>yt(Ze)},[oe($e.$slots,"suggestion-item",{item:Ze},()=>[E("span",null,Se(Ze.text),1),Ze.checked?(_(),ie(i(De),{key:0},{default:ae(()=>[Q(i(Xs))]),_:1})):re("v-if",!0)])],10,Dq))),128)):oe($e.$slots,"empty",{key:1},()=>[E("li",{class:R(i(d).e("empty-text"))},Se(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[At,I.value]]):re("v-if",!0),$e.$slots.footer?(_(),$("div",{key:2,class:R(i(d).e("footer")),onClick:We[14]||(We[14]=Je(()=>{},["stop"]))},[oe($e.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),Fq=Hq;const Kq=it(Fq),Wq=_e({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),jq={"update:checked":e=>Dt(e),[bt]:e=>Dt(e)};var qq=D({name:"ElCheckTag",__name:"check-tag",props:Wq,emits:jq,setup(e,{emit:t}){const n=e,a=t,o=ve("check-tag"),l=x(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const s=!n.checked;a(bt,s),a("update:checked",s)};return(s,u)=>(_(),$("span",{class:R(l.value),onClick:r},[oe(s.$slots,"default")],2))}}),Uq=qq;const Yq=it(Uq),Gq=_e({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:J([Number,Object]),default:()=>ln({})},sm:{type:J([Number,Object]),default:()=>ln({})},md:{type:J([Number,Object]),default:()=>ln({})},lg:{type:J([Number,Object]),default:()=>ln({})},xl:{type:J([Number,Object]),default:()=>ln({})}}),Xq=["start","center","end","space-around","space-between","space-evenly"],Jq=["top","middle","bottom"],Zq=_e({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Xq,default:"start"},align:{type:String,values:Jq}}),Hb=Symbol("rowContextKey");var Qq=D({name:"ElRow",__name:"row",props:Zq,setup(e){const t=e,n=ve("row");wt(Hb,{gutter:x(()=>t.gutter)});const a=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(l,r)=>(_(),ie(dt(e.tag),{class:R(o.value),style:qe(a.value)},{default:ae(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),eU=Qq;const tU=it(eU);var nU=D({name:"ElCol",__name:"col",props:Gq,setup(e){const t=e,{gutter:n}=Pe(Hb,{gutter:x(()=>0)}),a=ve("col"),o=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=x(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const u=t[s];He(u)&&(s==="span"?r.push(a.b(`${t[s]}`)):u>0&&r.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{He(t[s])?r.push(a.b(`${s}-${t[s]}`)):lt(t[s])&&Object.entries(t[s]).forEach(([u,c])=>{r.push(u!=="span"?a.b(`${s}-${u}-${c}`):a.b(`${s}-${c}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,s)=>(_(),ie(dt(e.tag),{class:R(l.value),style:qe(o.value)},{default:ae(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),aU=nU;const oU=it(aU),hg=e=>He(e)||Be(e)||be(e),lU=_e({accordion:Boolean,modelValue:{type:J([Array,String,Number]),default:()=>ln([])},expandIconPosition:{type:J([String]),default:"right"},beforeCollapse:{type:J(Function)}}),rU={[ot]:hg,[bt]:hg},Fb=Symbol("collapseContextKey"),sU=_e({title:{type:String,default:""},name:{type:J([String,Number]),default:void 0},icon:{type:Ft,default:Un},disabled:Boolean});var iU=D({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ve("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,l)=>(_(),ie(Fn,ht({name:i(t).b()},GC(a)),{default:ae(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),uU=iU;const yf=it(uU),vg="ElCollapse",cU=(e,t)=>{const n=V($n(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(ot,s),t(bt,s)},o=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],u=s.indexOf(r);u>-1?s.splice(u,1):s.push(r),a(s)}},l=async r=>{const{beforeCollapse:s}=e;if(!s){o(r);return}const u=s(r);[Kl(u),Dt(u)].includes(!0)||tn(vg,"beforeCollapse must return type `Promise` or `boolean`"),Kl(u)?u.then(c=>{c!==!1&&o(r)}).catch(c=>{pt(vg,`some error occurred: ${c}`)}):u&&o(r)};return fe(()=>e.modelValue,()=>n.value=$n(e.modelValue),{deep:!0}),wt(Fb,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},dU=e=>{const t=ve("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var fU=D({name:"ElCollapse",__name:"collapse",props:lU,emits:rU,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:l}=cU(a,n),{rootKls:r}=dU(a);return t({activeNames:o,setActiveNames:l}),(s,u)=>(_(),$("div",{class:R(i(r))},[oe(s.$slots,"default")],2))}}),pU=fU;const hU=e=>{const t=Pe(Fb),{namespace:n}=ve("collapse"),a=V(!1),o=V(!1),l=uh(),r=x(()=>l.current++),s=x(()=>e.name??`${n.value}-id-${l.prefix}-${i(r)}`),u=x(()=>t==null?void 0:t.activeNames.value.includes(i(s)));return{focusing:a,id:r,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:h=>{var g;e.disabled||(g=h.target)!=null&&g.closest("input, textarea, select")||(t==null||t.handleItemClick(i(s)),a.value=!1,o.value=!0)},handleEnterClick:h=>{var g;(g=h.target)!=null&&g.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(i(s)))}}},vU=(e,{focusing:t,isActive:n,id:a})=>{const o=ve("collapse"),l=x(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),r=x(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),s=x(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:x(()=>[o.be("item","title")]),arrowKls:s,headKls:r,rootKls:l,itemWrapperKls:x(()=>o.be("item","wrap")),itemContentKls:x(()=>o.be("item","content")),scopedContentId:x(()=>o.b(`content-${i(a)}`)),scopedHeadId:x(()=>o.b(`head-${i(a)}`))}},mU=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],gU=["id","aria-hidden","aria-labelledby"];var yU=D({name:"ElCollapseItem",__name:"collapse-item",props:sU,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:l,handleFocus:r,handleHeaderClick:s,handleEnterClick:u}=hU(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:h,itemWrapperKls:g,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=vU(n,{focusing:a,isActive:l,id:o});return t({isActive:l}),(y,b)=>(_(),$("div",{class:R(i(f))},[E("div",{id:i(m),class:R(i(d)),"aria-expanded":i(l),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:b[0]||(b[0]=(...w)=>i(s)&&i(s)(...w)),onKeydown:b[1]||(b[1]=an(Je((...w)=>i(u)&&i(u)(...w),["stop"]),["space","enter"])),onFocus:b[2]||(b[2]=(...w)=>i(r)&&i(r)(...w)),onBlur:b[3]||(b[3]=w=>a.value=!1)},[E("span",{class:R(i(h))},[oe(y.$slots,"title",{isActive:i(l)},()=>[St(Se(e.title),1)])],2),oe(y.$slots,"icon",{isActive:i(l)},()=>[Q(i(De),{class:R(i(c))},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1},8,["class"])])],42,mU),Q(i(yf),null,{default:ae(()=>[ft(E("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(l),"aria-labelledby":i(m)},[E("div",{class:R(i(p))},[oe(y.$slots,"default")],2)],10,gU),[[At,i(l)]])]),_:3})],2))}}),Kb=yU;const bU=it(pU,{CollapseItem:Kb}),wU=nn(Kb),Wb=_e({modelValue:{type:J(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:J(String)},disabled:Boolean,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:J([String,Array,Object])},hueSliderStyle:{type:J([String,Array,Object])}}),CU={[ot]:e=>Be(e)||yn(e)},jb=Symbol("colorCommonPickerKey"),qb=Symbol("colorPickerPanelContextKey"),Ub=_e({color:{type:J(Object),required:!0},vertical:Boolean,disabled:Boolean}),_U=Ub,mg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},A2=(e,t)=>Math.abs(mg(e)-mg(t)),Yb=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let p0=!1;function R2(e,t){if(!Rt)return;const n=function(l){var r;(r=t.drag)==null||r.call(t,l)},a=function(l){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,p0=!1,(r=t.end)==null||r.call(t,l)},o=function(l){var r;p0||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),p0=!0,(r=t.start)==null||r.call(t,l))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const Gb=(e,{key:t,minValue:n,maxValue:a})=>{const o=vt(),l=qt(),r=qt(),s=x(()=>e.color.get(t));function u(h){var g;e.disabled||(h.target!==l.value&&c(h),(g=l.value)==null||g.focus())}function c(h){if(!r.value||!l.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=Yb(h);let m;if(e.vertical){let y=v-g.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,g.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*a)}else{let y=p-g.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,g.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*a)}e.color.set(t,m)}function d(h){if(e.disabled)return;const{shiftKey:g}=h,p=Kt(h),v=g?10:1,m=t==="hue"?-1:1;let y=!0;switch(p){case Ce.left:case Ce.down:f(-v*m);break;case Ce.right:case Ce.up:f(v*m);break;case Ce.home:e.color.set(t,t==="hue"?a:n);break;case Ce.end:e.color.set(t,t==="hue"?n:a);break;case Ce.pageDown:f(-4*m);break;case Ce.pageUp:f(4*m);break;default:y=!1;break}y&&h.preventDefault()}function f(h){let g=s.value+h;g=ga?a:g,e.color.set(t,g)}return{thumb:l,bar:r,currentValue:s,handleDrag:c,handleClick:u,handleKeydown:d}},Xb=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:l,handleDrag:r,getBackground:s})=>{const u=vt(),c=ve(t),d=V(0),f=V(0),h=V();function g(){if(!o.value||e.vertical)return 0;const w=u.vnode.el,C=l.value;return w?Math.round(C*(w.offsetWidth-o.value.offsetWidth/2)/n):0}function p(){if(!o.value)return 0;const w=u.vnode.el;if(!e.vertical)return 0;const C=l.value;return w?Math.round(C*(w.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=p(),h.value=s==null?void 0:s()}gt(()=>{if(!a.value||!o.value)return;const w={drag:C=>{r(C)},end:C=>{r(C)}};R2(a.value,w),R2(o.value,w),v()}),fe(l,()=>v()),fe(()=>e.color.value,()=>v());const m=x(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),y=x(()=>c.e("bar")),b=x(()=>c.e("thumb"));return{rootKls:m,barKls:y,barStyle:x(()=>({background:h.value})),thumbKls:b,thumbStyle:x(()=>({left:rn(d.value),top:rn(f.value)})),thumbLeft:d,thumbTop:f,update:v}},SU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],gg=0,h0=100;var xU=D({name:"ElColorAlphaSlider",__name:"alpha-slider",props:Ub,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Gb(n,{key:"alpha",minValue:gg,maxValue:h0}),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:g,update:p}=Xb(n,{namespace:"color-alpha-slider",maxValue:h0,currentValue:a,bar:o,thumb:l,handleDrag:r,getBackground:b}),{t:v}=kt(),m=x(()=>v("el.colorpicker.alphaLabel")),y=x(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:w,g:C,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${C}, ${S}, 0) 0%, rgba(${w}, ${C}, ${S}, 1) 100%)`}return""}return t({update:p,bar:o,thumb:l}),(w,C)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),style:qe(i(f)),onClick:C[0]||(C[0]=(...S)=>i(s)&&i(s)(...S))},null,6),E("div",{ref_key:"thumb",ref:l,class:R(i(h)),style:qe(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":gg,"aria-valuemax":h0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:C[1]||(C[1]=(...S)=>i(u)&&i(u)(...S))},null,46,SU)],2))}}),kU=xU;const EU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],yg=0,v0=360;var TU=D({name:"ElColorHueSlider",__name:"hue-slider",props:_U,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Gb(n,{key:"hue",minValue:yg,maxValue:v0}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:h,thumbTop:g,update:p}=Xb(n,{namespace:"color-hue-slider",maxValue:v0,currentValue:a,bar:o,thumb:l,handleDrag:r}),{t:v}=kt(),m=x(()=>v("el.colorpicker.hueLabel")),y=x(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:l,thumbTop:g,update:p}),(b,w)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:w[0]||(w[0]=(...C)=>i(s)&&i(s)(...C))},null,2),E("div",{ref_key:"thumb",ref:l,class:R(i(f)),style:qe(i(h)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":yg,"aria-valuemax":v0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(...C)=>i(u)&&i(u)(...C))},null,46,EU)],2))}}),MU=TU;const OU=_e({colors:{type:J(Array),required:!0},color:{type:J(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var hd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new pn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Mt(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)Mt(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new pn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:l}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=l*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new pn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:l}=this;let r=o||(l?"rgb":"hex");o==="hex"&&l&&(r="hex8"),this._tiny=new pn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(r):""}};const $U=e=>{const{currentColor:t}=Pe(qb),n=V(o(e.colors,e.color));fe(()=>t.value,l=>{const r=new hd({value:l,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=r.compare(s)})}),da(()=>{n.value=o(e.colors,e.color)});function a(l){e.color.fromString(e.colors[l])}function o(l,r){return l.map(s=>{const u=new hd({value:s,enableAlpha:e.enableAlpha});return u.selected=u.compare(r),u})}return{rgbaColors:n,handleSelect:a}},AU=e=>{const t=ve("color-predefine"),n=x(()=>[t.b(),t.is("disabled",e.disabled)]),a=x(()=>t.e("colors"));function o(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},RU=["disabled","aria-label","onClick"];var NU=D({name:"ElColorPredefine",__name:"predefine",props:OU,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=$U(t),{rootKls:o,colorsKls:l,colorSelectorKls:r}=AU(t),{t:s}=kt(),u=c=>s("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(_(),$("div",{class:R(i(o))},[E("div",{class:R(i(l))},[(_(!0),$(Ke,null,_t(i(n),(f,h)=>(_(),$("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(r)(f)),onClick:g=>i(a)(h)},[E("div",{style:qe({backgroundColor:f.value})},null,4)],10,RU))),128))],2)],2))}}),PU=NU;const IU=_e({color:{type:J(Object),required:!0},disabled:Boolean}),LU=e=>{const t=vt(),n=V(),a=V(0),o=V(0),l=V("hsl(0, 100%, 50%)"),r=x(()=>e.color.get("saturation")),s=x(()=>e.color.get("value")),u=x(()=>e.color.get("hue"));function c(p){var v;e.disabled||(p.target!==n.value&&d(p),(v=n.value)==null||v.focus({preventScroll:!0}))}function d(p){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=Yb(p);let b=m-v.left,w=y-v.top;b=Math.max(0,b),b=Math.min(b,v.width),w=Math.max(0,w),w=Math.min(w,v.height),o.value=b,a.value=w,e.color.set({saturation:b/v.width*100,value:100-w/v.height*100})}function f(p){if(e.disabled)return;const{shiftKey:v}=p,m=Kt(p),y=v?10:1;let b=!0;switch(m){case Ce.left:h(-y);break;case Ce.right:h(y);break;case Ce.up:g(y);break;case Ce.down:g(-y);break;default:b=!1;break}b&&p.preventDefault()}function h(p){let v=r.value+p;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(p){let v=s.value+p;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:l,saturation:r,brightness:s,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},VU=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const l=vt(),r=ve("color-svpanel");function s(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=l.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return gt(()=>{R2(l.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),s()}),fe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s()),{rootKls:x(()=>r.b()),cursorKls:x(()=>r.e("cursor")),rootStyle:x(()=>({backgroundColor:a.value})),cursorStyle:x(()=>({top:rn(t.value),left:rn(n.value)})),update:s}},BU=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var zU=D({name:"ElSvPanel",__name:"sv-panel",props:IU,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:l,background:r,saturation:s,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=LU(n),{rootKls:h,cursorKls:g,rootStyle:p,cursorStyle:v,update:m}=VU(n,{cursorTop:o,cursorLeft:l,background:r,handleDrag:d}),{t:y}=kt(),b=x(()=>y("el.colorpicker.svLabel")),w=x(()=>y("el.colorpicker.svDescription",{saturation:s.value,brightness:u.value,color:n.color.value}));return t({update:m}),(C,S)=>(_(),$("div",{class:R(i(h)),style:qe(i(p)),onClick:S[1]||(S[1]=(...k)=>i(c)&&i(c)(...k))},[E("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:qe(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${i(s)},${i(u)}`,"aria-valuetext":w.value,onKeydown:S[0]||(S[0]=(...k)=>i(f)&&i(f)(...k))},null,46,BU)],6))}}),DU=zU;const Jb=(e,t)=>{const n=Nt(new hd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return fe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(ot,n.value)}),{color:n}};var HU=D({name:"ElColorPickerPanel",__name:"color-picker-panel",props:Wb,emits:CU,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("color-picker-panel"),{formItem:r}=Bn(),s=sn(),u=V(),c=V(),d=V(),f=V(),h=V(""),{color:g}=Pe(jb,()=>Jb(a,o),!0);function p(){g.fromString(h.value),g.value!==h.value&&(h.value=g.value)}function v(){var y;a.validateEvent&&((y=r==null?void 0:r.validate)==null||y.call(r,"blur").catch(b=>pt(b)))}function m(){var y,b,w;(y=u.value)==null||y.update(),(b=c.value)==null||b.update(),(w=d.value)==null||w.update()}return gt(()=>{a.modelValue&&(h.value=g.value),Le(m)}),fe(()=>a.modelValue,y=>{y!==g.value&&(y?g.fromString(y):g.clear())}),fe(()=>g.value,y=>{o(ot,y),h.value=y,a.validateEvent&&(r==null||r.validate("change").catch(b=>pt(b)))}),wt(qb,{currentColor:x(()=>g.value)}),t({color:g,inputRef:f,update:m}),(y,b)=>(_(),$("div",{class:R([i(l).b(),i(l).is("disabled",i(s)),i(l).is("border",e.border)]),onFocusout:v},[E("div",{class:R(i(l).e("wrapper"))},[Q(MU,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(s),class:R(["hue-slider",e.hueSliderClass]),style:qe(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Q(DU,{ref_key:"svRef",ref:c,color:i(g),disabled:i(s)},null,8,["color","disabled"])],2),e.showAlpha?(_(),ie(kU,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(s)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(_(),ie(PU,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(s)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),E("div",{class:R(i(l).e("footer"))},[Q(i(Dn),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:i(s),onChange:p},null,8,["modelValue","disabled"]),oe(y.$slots,"footer")],2)],34))}}),FU=HU;const Zb=it(FU),KU=_e({persistent:{type:Boolean,default:!0},modelValue:{type:J(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:J(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:kn,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ht.teleported,appendTo:Ht.appendTo,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},...jr,...oa(["ariaLabel"])}),WU={[ot]:e=>Be(e)||yn(e),[bt]:e=>Be(e)||yn(e),activeChange:e=>Be(e)||yn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jU=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var qU=D({name:"ElColorPicker",__name:"color-picker",props:KU,emits:WU,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("color"),{formItem:s}=Bn(),u=_n(),c=sn(),{valueOnClear:d,isEmptyValue:f}=Iu(a,null),h=Jb(a,o),{inputId:g,isLabeledByFormItem:p}=Pa(a,{formItemContext:s}),v=V(),m=V(),y=V(),b=V(!1),w=V(!1);let C=!0;const{isFocused:S,handleFocus:k,handleBlur:T}=Cl(m,{disabled:c,beforeBlur(Y){var X;return(X=v.value)==null?void 0:X.isFocusInsideContent(Y)},afterBlur(){var Y;F(!1),W(),a.validateEvent&&((Y=s==null?void 0:s.validate)==null||Y.call(s,"blur").catch(X=>pt(X)))}}),M=mS(()=>{var Y;return((Y=y.value)==null?void 0:Y.color)??h.color}),A=x(()=>ul(a,Object.keys(Wb))),O=x(()=>!a.modelValue&&!w.value?"transparent":U(M,a.showAlpha)),I=x(()=>!a.modelValue&&!w.value?"":M.value),L=x(()=>p.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),z=x(()=>p.value?s==null?void 0:s.labelId:void 0),q=x(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",u.value),r.is("focused",S.value)]);function U(Y,X){const{r:H,g:Z,b:le,a:ce}=Y.toRgb();return X?`rgba(${H}, ${Z}, ${le}, ${ce})`:`rgb(${H}, ${Z}, ${le})`}function F(Y){b.value=Y}const N=Vo(F,100,{leading:!0});function P(){c.value||F(!0)}function B(){N(!1),W()}function W(){Le(()=>{a.modelValue?M.fromString(a.modelValue):(M.value="",Le(()=>{w.value=!1}))})}function K(){c.value||(b.value&&W(),N(!b.value))}function j(){const Y=f(M.value)?d.value:M.value;o(ot,Y),o(bt,Y),a.validateEvent&&(s==null||s.validate("change").catch(X=>pt(X))),N(!1),Le(()=>{const X=new hd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});M.compare(X)||W()})}function G(){N(!1),o(ot,d.value),o(bt,d.value),a.modelValue!==d.value&&a.validateEvent&&(s==null||s.validate("change").catch(Y=>pt(Y))),W(),o("clear")}function ee(){var Y,X;(X=(Y=y==null?void 0:y.value)==null?void 0:Y.inputRef)==null||X.focus()}function te(){b.value&&(B(),S.value&&de())}function ue(Y){Y.preventDefault(),Y.stopPropagation(),F(!1),W()}function ne(Y){switch(Kt(Y)){case Ce.enter:case Ce.numpadEnter:case Ce.space:Y.preventDefault(),Y.stopPropagation(),P();break;case Ce.esc:ue(Y);break}}function de(){m.value.focus()}function se(){m.value.blur()}return fe(()=>I.value,Y=>{C&&o("activeChange",Y),C=!0}),fe(()=>M.value,()=>{!a.modelValue&&!w.value&&(w.value=!0)}),fe(()=>a.modelValue,Y=>{Y?Y&&Y!==M.value&&(C=!1,M.fromString(Y)):w.value=!1}),fe(()=>b.value,()=>{y.value&&Le(y.value.update)}),wt(jb,h),t({color:M,show:P,hide:B,focus:de,blur:se}),(Y,X)=>(_(),ie(i(Vn),{ref_key:"popper",ref:v,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:X[2]||(X[2]=H=>F(!1))},{content:ae(()=>[ft((_(),ie(i(Zb),ht({ref_key:"pickerPanelRef",ref:y},A.value,{border:!1,"validate-event":!1,onKeydown:an(ue,["esc"])}),{footer:ae(()=>[E("div",null,[e.clearable?(_(),ie(i(An),{key:0,class:R(i(r).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ae(()=>[St(Se(i(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Q(i(An),{plain:"",size:"small",class:R(i(r).be("footer","btn")),onClick:j},{default:ae(()=>[St(Se(i(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(jl),te,m.value]])]),default:ae(()=>[E("div",ht({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":z.value,"aria-description":i(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:ne,onFocus:X[0]||(X[0]=(...H)=>i(k)&&i(k)(...H)),onBlur:X[1]||(X[1]=(...H)=>i(T)&&i(T)(...H))}),[E("div",{class:R(i(r).be("picker","trigger")),onClick:K},[E("span",{class:R([i(r).be("picker","color"),i(r).is("alpha",e.showAlpha)])},[E("span",{class:R(i(r).be("picker","color-inner")),style:qe({backgroundColor:O.value})},[ft(Q(i(De),{class:R([i(r).be("picker","icon"),i(r).is("icon-arrow-down")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]),[[At,e.modelValue||w.value]]),ft(Q(i(De),{class:R([i(r).be("picker","empty"),i(r).is("icon-close")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"]),[[At,!e.modelValue&&!w.value]])],6)],2)],2)],16,jU)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),UU=qU;const YU=it(UU);var GU=D({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=vn(),a=ve("container"),o=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const r=l.type.name;return r==="ElHeader"||r==="ElFooter"}):!1);return(l,r)=>(_(),$("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(l.$slots,"default")],2))}}),XU=GU,JU=D({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,l)=>(_(),$("aside",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),Qb=JU,ZU=D({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("footer",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),ew=ZU,QU=D({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("header",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),tw=QU,eY=D({name:"ElMain",__name:"main",setup(e){const t=ve("main");return(n,a)=>(_(),$("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),nw=eY;const tY=it(XU,{Aside:Qb,Footer:ew,Header:tw,Main:nw}),nY=nn(Qb),aY=nn(ew),oY=nn(tw),lY=nn(nw),rY=_e({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:J([Date,Array,String,Number]),default:""},defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Oh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:J(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Vh=Symbol("rootPickerContextKey"),Hu="ElIsDefaultFormat",sY=["date","dates","year","years","month","months","week","range"],Bh=_e({cellClassName:{type:J(Function)},disabledDate:{type:J(Function)},date:{type:J(Object),required:!0},minDate:{type:J(Object)},maxDate:{type:J(Object)},parsedValue:{type:J([Object,Array])},rangeState:{type:J(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),aw=_e({type:{type:J(String),required:!0,values:hS},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),zh=_e({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:J(Array)}}),Dh=e=>({type:String,values:sY,default:e}),iY=_e({...aw,parsedValue:{type:J([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),au=e=>{if(!be(e))return!1;const[t,n]=e;return st.isDayjs(t)&&st.isDayjs(n)&&st(t).isValid()&&st(n).isValid()&&t.isSameOrBefore(n)},bf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let l;if(be(e)){let[r,s]=e.map(u=>st(u).locale(t));return o||(s=r.add(n,a)),[r,s]}else e?l=st(e):l=st();return l=l.locale(t),[l,l.add(n,a)]},uY=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:l,unit:r,relativeDateGetter:s,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=st().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return Hl(o.daysInMonth()).map(l=>o.add(l,"day").toDate())},Is=(e,t,n,a,o)=>{const l=st().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=vd(e,t,n,a).find(s=>!(o!=null&&o(s)));return r?st(r).locale(a):l.locale(a)},md=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const o=e.month();if(!vd(e,a,o,t).every(n))return Is(e,a,o,t,n);for(let l=0;l<12;l++)if(!vd(e,a,l,t).every(n))return Is(e,a,l,t,n);return e},Ls=(e,t,n,a)=>{if(be(e))return e.map(o=>Ls(o,t,n,a));if(Be(e)){const o=a!=null&&a.value?st(e):st(e,t);if(!o.isValid())return o}return st(e,t).locale(n)},cY=_e({...Bh,showWeekNumber:Boolean,selectionMode:Dh("date")}),dY=["changerange","pick","select"],gd=(e="")=>["normal","today"].includes(e),fY=(e,t)=>{const{lang:n}=kt(),a=V(),o=V(),l=V(),r=V(),s=V([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(B=>B.toLowerCase()),f=x(()=>c>3?7-c:-c),h=x(()=>{const B=e.date.startOf("month");return B.subtract(B.day()||7,"day")}),g=x(()=>d.concat(d).slice(c,c+7)),p=x(()=>ad(i(C)).some(B=>B.isCurrent)),v=x(()=>{const B=e.date.startOf("month");return{startOfMonthDay:B.day()||7,dateCountOfMonth:B.daysInMonth(),dateCountOfLastMonth:B.subtract(1,"month").daysInMonth()}}),m=x(()=>e.selectionMode==="dates"?ta(e.parsedValue):[]),y=(B,{count:W,rowIndex:K,columnIndex:j})=>{const{startOfMonthDay:G,dateCountOfMonth:ee,dateCountOfLastMonth:te}=i(v),ue=i(f);if(K>=0&&K<=1){const ne=G+ue<0?7+G+ue:G+ue;if(j+K*7>=ne)return B.text=W,!0;B.text=te-(ne-j%7)+1+K*7,B.type="prev-month"}else return W<=ee?B.text=W:(B.text=W-ee,B.type="next-month"),!0;return!1},b=(B,{columnIndex:W,rowIndex:K},j)=>{const{disabledDate:G,cellClassName:ee}=e,te=i(m),ue=y(B,{count:j,rowIndex:K,columnIndex:W}),ne=B.dayjs.toDate();return B.selected=te.find(de=>de.isSame(B.dayjs,"day")),B.isSelected=!!B.selected,B.isCurrent=k(B),B.disabled=G==null?void 0:G(ne),B.customClass=ee==null?void 0:ee(ne),ue},w=B=>{if(e.selectionMode==="week"){const[W,K]=e.showWeekNumber?[1,7]:[0,6],j=P(B[W+1]);B[W].inRange=j,B[W].start=j,B[K].inRange=j,B[K].end=j}},C=x(()=>{const{minDate:B,maxDate:W,rangeState:K,showWeekNumber:j}=e,G=i(f),ee=i(s),te="day";let ue=1;if(uY({row:6,column:7},ee,{startDate:B,columnIndexOffset:j?1:0,nextEndDate:K.endDate||W||K.selecting&&B||null,now:st().locale(i(n)).startOf(te),unit:te,relativeDateGetter:ne=>i(h).add(ne-G,te),setCellMetadata:(...ne)=>{b(...ne,ue)&&(ue+=1)},setRowMetadata:w}),j)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});fe(()=>e.date,async()=>{var B;(B=i(a))!=null&&B.contains(document.activeElement)&&(await Le(),await S())});const S=async()=>{var B;return(B=i(o))==null?void 0:B.focus()},k=B=>e.selectionMode==="date"&&gd(B.type)&&T(B,e.parsedValue),T=(B,W)=>W?st(W).locale(i(n)).isSame(e.date.date(Number(B.text)),"day"):!1,M=(B,W)=>{const K=i(v).startOfMonthDay,j=i(f),G=K+j<0?7+K+j:K+j,ee=B*7+(W-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(G,"day").add(ee,"day")},A=B=>{var G;if(!e.rangeState.selecting)return;let W=B.target;if(W.tagName==="SPAN"&&(W=(G=W.parentNode)==null?void 0:G.parentNode),W.tagName==="DIV"&&(W=W.parentNode),W.tagName!=="TD")return;const K=W.parentNode.rowIndex-1,j=W.cellIndex;i(C)[K][j].disabled||(K!==i(l)||j!==i(r))&&(l.value=K,r.value=j,t("changerange",{selecting:!0,endDate:M(K,j)}))},O=B=>!i(p)&&(B==null?void 0:B.text)===1&&gd(B.type)||B.isCurrent,I=B=>{u||i(p)||e.selectionMode!=="date"||N(B,!0)},L=B=>{B.target.closest("td")&&(u=!0)},z=B=>{B.target.closest("td")&&(u=!1)},q=B=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:B,maxDate:null}),t("select",!0)):(B>=e.minDate?t("pick",{minDate:e.minDate,maxDate:B}):t("pick",{minDate:B,maxDate:e.minDate}),t("select",!1))},U=B=>{const W=B.week(),K=`${B.year()}w${W}`;t("pick",{year:B.year(),week:W,value:K,date:B.startOf("week")})},F=(B,W)=>{t("pick",W?ta(e.parsedValue).filter(K=>(K==null?void 0:K.valueOf())!==B.valueOf()):ta(e.parsedValue).concat([B]))},N=(B,W=!1)=>{if(e.disabled)return;const K=B.target.closest("td");if(!K)return;const j=K.parentNode.rowIndex-1,G=K.cellIndex,ee=i(C)[j][G];if(ee.disabled||ee.type==="week")return;const te=M(j,G);switch(e.selectionMode){case"range":q(te);break;case"date":t("pick",te,W);break;case"week":U(te);break;case"dates":F(te,!!ee.selected);break}},P=B=>{if(e.selectionMode!=="week")return!1;let W=e.date.startOf("day");if(B.type==="prev-month"&&(W=W.subtract(1,"month")),B.type==="next-month"&&(W=W.add(1,"month")),W=W.date(Number.parseInt(B.text,10)),e.parsedValue&&!be(e.parsedValue)){const K=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(K,"day").isSame(W,"day")}return!1};return{WEEKS:g,rows:C,tbodyRef:a,currentCellRef:o,focus:S,isCurrent:k,isWeekActive:P,isSelectedCell:O,handlePickDate:N,handleMouseUp:z,handleMouseDown:L,handleMouseMove:A,handleFocus:I}},pY=(e,{isCurrent:t,isWeekActive:n})=>{const a=ve("date-table"),{t:o}=kt(),l=x(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=x(()=>o("el.datepicker.dateTablePrompt")),s=c=>{const d=[];return gd(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(gd(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:l,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:s,getRowKls:u,t:o}},hY=_e({cell:{type:J(Object)}});var Hh=D({name:"ElDatePickerCell",props:hY,setup(e){const t=ve("date-table-cell"),{slots:n}=Pe(Vh);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a==null?void 0:a.renderText)??(a==null?void 0:a.text)])])])}}});const vY=["aria-label"],mY=["aria-label"],gY=["aria-current","aria-selected","tabindex","aria-disabled"];var yY=D({__name:"basic-date-table",props:cY,emits:dY,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:l,tbodyRef:r,currentCellRef:s,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:p,handleMouseMove:v,handleFocus:m}=fY(a,n),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:C,weekHeaderClass:S,t:k}=pY(a,{isCurrent:c,isWeekActive:d});let T=!1;return Lt(()=>{T=!0}),t({focus:u}),(M,A)=>(_(),$("table",{"aria-label":i(y),class:R(i(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...O)=>i(h)&&i(h)(...O)),onMousemove:A[2]||(A[2]=(...O)=>i(v)&&i(v)(...O)),onMousedown:A[3]||(A[3]=(...O)=>i(p)&&i(p)(...O)),onMouseup:A[4]||(A[4]=(...O)=>i(g)&&i(g)(...O))},[E("tbody",{ref_key:"tbodyRef",ref:r},[E("tr",null,[M.showWeekNumber?(_(),$("th",{key:0,scope:"col",class:R(i(S))},null,2)):re("v-if",!0),(_(!0),$(Ke,null,_t(i(o),(O,I)=>(_(),$("th",{key:I,"aria-label":i(k)("el.datepicker.weeksFull."+O),scope:"col"},Se(i(k)("el.datepicker.weeks."+O)),9,mY))),128))]),(_(!0),$(Ke,null,_t(i(l),(O,I)=>(_(),$("tr",{key:I,class:R(i(C)(M.showWeekNumber?O[2]:O[1]))},[(_(!0),$(Ke,null,_t(O,(L,z)=>(_(),$("td",{key:`${I}.${z}`,ref_for:!0,ref:q=>!i(T)&&i(f)(L)&&(s.value=q),class:R(i(w)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:M.disabled?void 0:i(f)(L)?0:-1,"aria-disabled":M.disabled,onFocus:A[0]||(A[0]=(...q)=>i(m)&&i(m)(...q))},[Q(i(Hh),{cell:L},null,8,["cell"])],42,gY))),128))],2))),128))],512)],42,vY))}}),N2=yY;const bY=_e({...Bh,selectionMode:Dh("month")}),wY=["aria-label"],CY=["aria-selected","aria-label","tabindex","onKeydown"];var _Y=D({__name:"basic-month-table",props:bY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("month-table"),{t:r,lang:s}=kt(),u=V(),c=V(),d=V(a.date.locale("en").localeData().monthsShort().map(C=>C.toLowerCase())),f=V([[],[],[]]),h=V(),g=V(),p=x(()=>{var k,T,M;const C=f.value,S=st().locale(s.value).startOf("month");for(let A=0;A<3;A++){const O=C[A];for(let I=0;I<4;I++){const L=O[I]||(O[I]={row:A,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});L.type="normal";const z=A*4+I,q=a.date.startOf("year").month(z),U=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;L.inRange=!!(a.minDate&&q.isSameOrAfter(a.minDate,"month")&&U&&q.isSameOrBefore(U,"month"))||!!(a.minDate&&q.isSameOrBefore(a.minDate,"month")&&U&&q.isSameOrAfter(U,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(U)?(L.start=!!(U&&q.isSame(U,"month")),L.end=a.minDate&&q.isSame(a.minDate,"month")):(L.start=!!(a.minDate&&q.isSame(a.minDate,"month")),L.end=!!(U&&q.isSame(U,"month"))),S.isSame(q)&&(L.type="today");const F=q.toDate();L.text=z,L.disabled=((T=a.disabledDate)==null?void 0:T.call(a,F))||!1,L.date=F,L.customClass=(M=a.cellClassName)==null?void 0:M.call(a,F),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=y(L)}}return C}),v=()=>{var C;(C=c.value)==null||C.focus()},m=C=>{const S={},k=a.date.year(),T=new Date,M=C.text;return S.disabled=a.disabled||(a.disabledDate?vd(a.date,k,M,s.value).every(a.disabledDate):!1),S.current=ta(a.parsedValue).some(A=>st.isDayjs(A)&&A.year()===k&&A.month()===M),S.today=T.getFullYear()===k&&T.getMonth()===M,C.customClass&&(S[C.customClass]=!0),C.inRange&&(S["in-range"]=!0,C.start&&(S["start-date"]=!0),C.end&&(S["end-date"]=!0)),S},y=C=>{const S=a.date.year(),k=C.text;return ta(a.date).some(T=>T.year()===S&&T.month()===k)},b=C=>{var M;if(!a.rangeState.selecting)return;let S=C.target;if(S.tagName==="SPAN"&&(S=(M=S.parentNode)==null?void 0:M.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const k=S.parentNode.rowIndex,T=S.cellIndex;p.value[k][T].disabled||(k!==h.value||T!==g.value)&&(h.value=k,g.value=T,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(k*4+T)}))},w=C=>{var A;if(a.disabled)return;const S=(A=C.target)==null?void 0:A.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Ao(S,"disabled"))return;const k=S.cellIndex,T=S.parentNode.rowIndex*4+k,M=a.date.startOf("year").month(T);if(a.selectionMode==="months"){if(C.type==="keydown"){o("pick",ta(a.parsedValue),!1);return}const O=Is(a.date,a.date.year(),T,s.value,a.disabledDate);o("pick",Ao(S,"current")?ta(a.parsedValue).filter(I=>(I==null?void 0:I.year())!==O.year()||(I==null?void 0:I.month())!==O.month()):ta(a.parsedValue).concat([st(O)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&M>=a.minDate?o("pick",{minDate:a.minDate,maxDate:M}):o("pick",{minDate:M,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:M,maxDate:null}),o("select",!0)):o("pick",T)};return fe(()=>a.date,async()=>{var C,S;(C=u.value)!=null&&C.contains(document.activeElement)&&(await Le(),(S=c.value)==null||S.focus())}),t({focus:v}),(C,S)=>(_(),$("table",{role:"grid","aria-label":i(r)("el.datepicker.monthTablePrompt"),class:R(i(l).b()),onClick:w,onMousemove:b},[E("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),$(Ke,null,_t(p.value,(k,T)=>(_(),$("tr",{key:T},[(_(!0),$(Ke,null,_t(k,(M,A)=>(_(),$("td",{key:A,ref_for:!0,ref:O=>M.isSelected&&(c.value=O),class:R(m(M)),"aria-selected":!!M.isSelected,"aria-label":i(r)(`el.datepicker.month${+M.text+1}`),tabindex:M.isSelected?0:-1,onKeydown:[an(Je(w,["prevent","stop"]),["space"]),an(Je(w,["prevent","stop"]),["enter"])]},[Q(i(Hh),{cell:{...M,renderText:i(r)("el.datepicker.months."+d.value[M.text])}},null,8,["cell"])],42,CY))),128))]))),128))],512)],42,wY))}}),ou=_Y;const SY=_e({...Bh,selectionMode:Dh("year")}),xY=["aria-label"],kY=["aria-selected","aria-label","tabindex","onKeydown"];var EY=D({__name:"basic-year-table",props:SY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(S,k)=>{const T=st(String(S)).locale(k).startOf("year");return Hl(T.endOf("year").dayOfYear()).map(M=>T.add(M,"day").toDate())},o=e,l=n,r=ve("year-table"),{t:s,lang:u}=kt(),c=V(),d=V(),f=x(()=>Math.floor(o.date.year()/10)*10),h=V([[],[],[]]),g=V(),p=V(),v=x(()=>{var T,M,A;const S=h.value,k=st().locale(u.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let L=0;L<4&&!(O*4+L>=10);L++){let z=I[L];z||(z={row:O,column:L,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),z.type="normal";const q=O*4+L+f.value,U=st().year(q),F=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;z.inRange=!!(o.minDate&&U.isSameOrAfter(o.minDate,"year")&&F&&U.isSameOrBefore(F,"year"))||!!(o.minDate&&U.isSameOrBefore(o.minDate,"year")&&F&&U.isSameOrAfter(F,"year")),(T=o.minDate)!=null&&T.isSameOrAfter(F)?(z.start=!!(F&&U.isSame(F,"year")),z.end=!!(o.minDate&&U.isSame(o.minDate,"year"))):(z.start=!!(o.minDate&&U.isSame(o.minDate,"year")),z.end=!!(F&&U.isSame(F,"year"))),k.isSame(U)&&(z.type="today"),z.text=q;const N=U.toDate();z.disabled=((M=o.disabledDate)==null?void 0:M.call(o,N))||!1,z.date=N,z.customClass=(A=o.cellClassName)==null?void 0:A.call(o,N),z.dayjs=U,z.timestamp=U.valueOf(),z.isSelected=b(z),I[L]=z}}return S}),m=()=>{var S;(S=d.value)==null||S.focus()},y=S=>{const k={},T=st().locale(u.value),M=S.text;return k.disabled=o.disabled||(o.disabledDate?a(M,u.value).every(o.disabledDate):!1),k.today=T.year()===M,k.current=ta(o.parsedValue).some(A=>A.year()===M),S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=S.text;return ta(o.date).some(T=>T.year()===k)},w=S=>{var O;if(o.disabled)return;const k=(O=S.target)==null?void 0:O.closest("td");if(!k||!k.textContent||Ao(k,"disabled"))return;const T=k.cellIndex,M=k.parentNode.rowIndex*4+T+f.value,A=st().year(M);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&A>=o.minDate?l("pick",{minDate:o.minDate,maxDate:A}):l("pick",{minDate:A,maxDate:o.minDate}),l("select",!1)):(l("pick",{minDate:A,maxDate:null}),l("select",!0));else if(o.selectionMode==="years"){if(S.type==="keydown"){l("pick",ta(o.parsedValue),!1);return}const I=md(A.startOf("year"),u.value,o.disabledDate);l("pick",Ao(k,"current")?ta(o.parsedValue).filter(L=>(L==null?void 0:L.year())!==M):ta(o.parsedValue).concat([I]))}else l("pick",M)},C=S=>{var A;if(!o.rangeState.selecting)return;const k=(A=S.target)==null?void 0:A.closest("td");if(!k)return;const T=k.parentNode.rowIndex,M=k.cellIndex;v.value[T][M].disabled||(T!==g.value||M!==p.value)&&(g.value=T,p.value=M,l("changerange",{selecting:!0,endDate:st().year(f.value).add(T*4+M,"year")}))};return fe(()=>o.date,async()=>{var S,k;(S=c.value)!=null&&S.contains(document.activeElement)&&(await Le(),(k=d.value)==null||k.focus())}),t({focus:m}),(S,k)=>(_(),$("table",{role:"grid","aria-label":i(s)("el.datepicker.yearTablePrompt"),class:R(i(r).b()),onClick:w,onMousemove:C},[E("tbody",{ref_key:"tbodyRef",ref:c},[(_(!0),$(Ke,null,_t(v.value,(T,M)=>(_(),$("tr",{key:M},[(_(!0),$(Ke,null,_t(T,(A,O)=>(_(),$("td",{key:`${M}_${O}`,ref_for:!0,ref:I=>A.isSelected&&(d.value=I),class:R(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[an(Je(w,["prevent","stop"]),["space"]),an(Je(w,["prevent","stop"]),["enter"])]},[Q(i(Hh),{cell:A},null,8,["cell"])],42,kY))),128))]))),128))],512)],42,xY))}}),lu=EY;const TY=["disabled","onClick"],MY=["aria-label","disabled"],OY=["aria-label","disabled"],$Y=["tabindex","aria-disabled"],AY=["tabindex","aria-disabled"],RY=["aria-label","disabled"],NY=["aria-label","disabled"];var PY=D({__name:"panel-date-pick",props:iY,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(he,Ve,pe)=>!0,a=e,o=t,l=ve("picker-panel"),r=ve("date-picker"),s=gl(),u=vn(),{t:c,lang:d}=kt(),f=Pe(oo),h=Pe(Hu,void 0),{shortcuts:g,disabledDate:p,cellClassName:v,defaultTime:m}=f.props,y=Bt(f.props,"defaultValue"),b=V(),w=V(st().locale(d.value)),C=V(!1);let S=!1;const k=x(()=>st(m).locale(d.value)),T=x(()=>w.value.month()),M=x(()=>w.value.year()),A=V([]),O=V(null),I=V(null),L=he=>A.value.length>0?n(he,A.value,a.format||Lr):!0,z=he=>m&&!Ae.value&&!C.value&&!S?k.value.year(he.year()).month(he.month()).date(he.date()):se.value?he.millisecond(0):he.startOf("day"),q=(he,...Ve)=>{he?be(he)?o("pick",he.map(z),...Ve):o("pick",z(he),...Ve):o("pick",he,...Ve),O.value=null,I.value=null,C.value=!1,S=!1},U=async(he,Ve)=>{if(K.value==="date"&&st.isDayjs(he)){const pe=ci(a.parsedValue);let Te=pe?pe.year(he.year()).month(he.month()).date(he.date()):he;L(Te),w.value=Te,q(Te,se.value||Ve)}else K.value==="week"?q(he.date):K.value==="dates"&&q(he,!0)},F=he=>{const Ve=he?"add":"subtract";w.value=w.value[Ve](1,"month"),yt("month")},N=he=>{const Ve=w.value,pe=he?"add":"subtract";w.value=P.value==="year"?Ve[pe](10,"year"):Ve[pe](1,"year"),yt("year")},P=V("date"),B=x(()=>{const he=c("el.datepicker.year");if(P.value==="year"){const Ve=Math.floor(M.value/10)*10;return he?`${Ve} ${he} - ${Ve+9} ${he}`:`${Ve} - ${Ve+9}`}return`${M.value} ${he}`}),W=he=>{const Ve=Fe(he.value)?he.value():he.value;if(Ve){S=!0,q(st(Ve).locale(d.value));return}he.onClick&&he.onClick({attrs:s,slots:u,emit:o})},K=x(()=>{const{type:he}=a;return["week","month","months","year","years","dates"].includes(he)?he:"date"}),j=x(()=>K.value==="dates"||K.value==="months"||K.value==="years"),G=x(()=>K.value==="date"?P.value:K.value),ee=x(()=>!!g.length),te=async(he,Ve)=>{K.value==="month"?(w.value=Is(w.value,w.value.year(),he,d.value,p),q(w.value,!1)):K.value==="months"?q(he,Ve??!0):(w.value=Is(w.value,w.value.year(),he,d.value,p),P.value="date",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Le(),Ge())),yt("month")},ue=async(he,Ve)=>{K.value==="year"?(w.value=md(w.value.startOf("year").year(he),d.value,p),q(w.value,!1)):K.value==="years"?q(he,Ve??!0):(w.value=md(w.value.year(he),d.value,p),P.value="month",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Le(),Ge())),yt("year")},ne=sn(),de=async he=>{ne.value||(P.value=he,await Le(),Ge())},se=x(()=>a.type==="datetime"||a.type==="datetimerange"),Y=x(()=>{const he=se.value||K.value==="dates",Ve=K.value==="years",pe=K.value==="months",Te=P.value==="date",ct=P.value==="year",Pt=P.value==="month";return he&&Te||Ve&&ct||pe&&Pt}),X=x(()=>!j.value&&a.showNow||a.showConfirm),H=x(()=>p?a.parsedValue?be(a.parsedValue)?p(a.parsedValue[0].toDate()):p(a.parsedValue.toDate()):!0:!1),Z=()=>{if(j.value)q(a.parsedValue);else{let he=ci(a.parsedValue);if(!he){const Ve=st(m).locale(d.value),pe=Me();he=Ve.year(pe.year()).month(pe.month()).date(pe.date())}w.value=he,q(he)}},le=x(()=>p?p(st().locale(d.value).toDate()):!1),ce=()=>{const he=st().locale(d.value).toDate();C.value=!0,(!p||!p(he))&&L(he)&&(w.value=st().locale(d.value),q(w.value))},ge=x(()=>a.timeFormat||ub(a.format)||Lr),me=x(()=>a.dateFormat||ib(a.format)||Qo),Ae=x(()=>{if(I.value)return I.value;if(!(!a.parsedValue&&!y.value))return(ci(a.parsedValue)||w.value).format(ge.value)}),Ne=x(()=>{if(O.value)return O.value;if(!(!a.parsedValue&&!y.value))return(ci(a.parsedValue)||w.value).format(me.value)}),Re=V(!1),ye=()=>{Re.value=!0},Ee=()=>{Re.value=!1},we=he=>({hour:he.hour(),minute:he.minute(),second:he.second(),year:he.year(),month:he.month(),date:he.date()}),Ie=(he,Ve,pe)=>{const{hour:Te,minute:ct,second:Pt}=we(he),Gt=ci(a.parsedValue);w.value=Gt?Gt.hour(Te).minute(ct).second(Pt):he,q(w.value,!0),pe||(Re.value=Ve)},ze=he=>{const Ve=st(he,ge.value).locale(d.value);if(Ve.isValid()&&L(Ve)){const{year:pe,month:Te,date:ct}=we(w.value);w.value=Ve.year(pe).month(Te).date(ct),I.value=null,Re.value=!1,q(w.value,!0)}},et=he=>{const Ve=Ls(he,me.value,d.value,h);if(Ve.isValid()){if(p&&p(Ve.toDate()))return;const{hour:pe,minute:Te,second:ct}=we(w.value);w.value=Ve.hour(pe).minute(Te).second(ct),O.value=null,q(w.value,!0)}},nt=he=>st.isDayjs(he)&&he.isValid()&&(p?!p(he.toDate()):!0),at=he=>Ls(he,a.format,d.value,h),Me=()=>{const he=st(y.value).locale(d.value);if(!y.value){const Ve=k.value;return st().hour(Ve.hour()).minute(Ve.minute()).second(Ve.second()).locale(d.value)}return he},Ge=()=>{var he;["week","month","year","date"].includes(K.value)&&((he=b.value)==null||he.focus())},ut=()=>{Ge(),K.value==="week"&&tt(Ce.down)},je=he=>{const Ve=Kt(he);[Ce.up,Ce.down,Ce.left,Ce.right,Ce.home,Ce.end,Ce.pageUp,Ce.pageDown].includes(Ve)&&(tt(Ve),he.stopPropagation(),he.preventDefault()),[Ce.enter,Ce.space,Ce.numpadEnter].includes(Ve)&&O.value===null&&I.value===null&&(he.preventDefault(),q(w.value,!1))},tt=he=>{const{up:Ve,down:pe,left:Te,right:ct,home:Pt,end:Gt,pageUp:$e,pageDown:We}=Ce,Ze={year:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setFullYear(zt.getFullYear()+Xt)},month:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setMonth(zt.getMonth()+Xt)},week:{[Ve]:-1,[pe]:1,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt*7)},date:{[Ve]:-7,[pe]:7,[Te]:-1,[ct]:1,[Pt]:zt=>-zt.getDay(),[Gt]:zt=>-zt.getDay()+6,[$e]:zt=>-new Date(zt.getFullYear(),zt.getMonth(),0).getDate(),[We]:zt=>new Date(zt.getFullYear(),zt.getMonth()+1,0).getDate(),offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt)}},dn=w.value.toDate();for(;Math.abs(w.value.diff(dn,"year",!0))<1;){const zt=Ze[G.value];if(!zt)return;if(zt.offset(dn,Fe(zt[he])?zt[he](dn):zt[he]??0),p&&p(dn))break;const Xt=st(dn).locale(d.value);w.value=Xt,o("pick",Xt,!0);break}},yt=he=>{o("panel-change",w.value.toDate(),he,P.value)};return fe(()=>K.value,he=>{if(["month","year"].includes(he)){P.value=he;return}else if(he==="years"){P.value="year";return}else if(he==="months"){P.value="month";return}P.value="date"},{immediate:!0}),fe(()=>y.value,he=>{he&&(w.value=Me())},{immediate:!0}),fe(()=>a.parsedValue,he=>{if(he){if(j.value||be(he))return;w.value=he}else w.value=Me()},{immediate:!0}),o("set-picker-option",["isValidValue",nt]),o("set-picker-option",["parseUserInput",at]),o("set-picker-option",["handleFocusPicker",ut]),(he,Ve)=>(_(),$("div",{class:R([i(l).b(),i(r).b(),i(l).is("border",he.border),i(l).is("disabled",i(ne)),{"has-sidebar":he.$slots.sidebar||ee.value,"has-time":se.value}])},[E("div",{class:R(i(l).e("body-wrapper"))},[oe(he.$slots,"sidebar",{class:R(i(l).e("sidebar"))}),ee.value?(_(),$("div",{key:0,class:R(i(l).e("sidebar"))},[(_(!0),$(Ke,null,_t(i(g),(pe,Te)=>(_(),$("button",{key:Te,type:"button",disabled:i(ne),class:R(i(l).e("shortcut")),onClick:ct=>W(pe)},Se(pe.text),11,TY))),128))],2)):re("v-if",!0),E("div",{class:R(i(l).e("body"))},[se.value?(_(),$("div",{key:0,class:R(i(r).e("time-header"))},[E("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Ne.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onInput:Ve[0]||(Ve[0]=pe=>O.value=pe),onChange:et},null,8,["placeholder","model-value","disabled","readonly"])],2),ft((_(),$("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":Ae.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onFocus:ye,onInput:Ve[1]||(Ve[1]=pe=>I.value=pe),onChange:ze},null,8,["placeholder","model-value","disabled","readonly"]),Q(i(dd),{visible:Re.value,format:ge.value,"parsed-value":w.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ee]])],2)):re("v-if",!0),ft(E("div",{class:R([i(r).e("header"),(P.value==="year"||P.value==="month")&&i(r).em("header","bordered")])},[E("span",{class:R(i(r).e("prev-btn"))},[E("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(l).e("icon-btn")]),disabled:i(ne),onClick:Ve[2]||(Ve[2]=pe=>N(!1))},[oe(he.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,MY),ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(l).e("icon-btn"),"arrow-left"]),disabled:i(ne),onClick:Ve[3]||(Ve[3]=pe=>F(!1))},[oe(he.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,OY),[[At,P.value==="date"]])],2),E("span",{role:"button",class:R(i(r).e("header-label")),"aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,onKeydown:Ve[4]||(Ve[4]=an(pe=>de("year"),["enter"])),onClick:Ve[5]||(Ve[5]=pe=>de("year"))},Se(B.value),43,$Y),ft(E("span",{role:"button","aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,class:R([i(r).e("header-label"),{active:P.value==="month"}]),onKeydown:Ve[6]||(Ve[6]=an(pe=>de("month"),["enter"])),onClick:Ve[7]||(Ve[7]=pe=>de("month"))},Se(i(c)(`el.datepicker.month${T.value+1}`)),43,AY),[[At,P.value==="date"]]),E("span",{class:R(i(r).e("next-btn"))},[ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(l).e("icon-btn"),"arrow-right"]),disabled:i(ne),onClick:Ve[8]||(Ve[8]=pe=>F(!0))},[oe(he.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,RY),[[At,P.value==="date"]]),E("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(l).e("icon-btn"),"d-arrow-right"]),disabled:i(ne),onClick:Ve[9]||(Ve[9]=pe=>N(!0))},[oe(he.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,NY)],2)],2),[[At,P.value!=="time"]]),E("div",{class:R(i(l).e("content")),onKeydown:je},[P.value==="date"?(_(),ie(N2,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),"show-week-number":he.showWeekNumber,onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(_(),ie(lu,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"disabled-date":i(p),disabled:i(ne),"parsed-value":he.parsedValue,"cell-class-name":i(v),onPick:ue},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(_(),ie(ou,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),onPick:te},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),he.showFooter&&Y.value&&X.value?(_(),$("div",{key:0,class:R(i(l).e("footer"))},[ft(Q(i(An),{text:"",size:"small",class:R(i(l).e("link-btn")),disabled:le.value,onClick:ce},{default:ae(()=>[St(Se(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[At,!j.value&&he.showNow]]),he.showConfirm?(_(),ie(i(An),{key:0,plain:"",size:"small",class:R(i(l).e("link-btn")),disabled:H.value,onClick:Z},{default:ae(()=>[St(Se(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),IY=PY;const LY=_e({...aw,...zh}),VY=e=>{const{emit:t}=vt(),n=gl(),a=vn();return l=>{const r=Fe(l.value)?l.value():l.value;if(r){t("pick",[st(r[0]).locale(e.value),st(r[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:a,emit:t})}},Fh=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:l,unit:r,sortDates:s})=>{const{emit:u}=vt(),{pickerNs:c}=Pe(Vh),d=ve("date-range-picker"),{t:f,lang:h}=kt(),g=VY(h),p=V(),v=V(),m=V({endDate:null,selecting:!1}),y=k=>{m.value=k},b=(k=!1)=>{const T=i(p),M=i(v);au([T,M])&&u("pick",[T,M],k)},w=k=>{m.value.selecting=k,k||(m.value.endDate=null)},C=k=>{if(be(k)&&k.length===2){const[T,M]=k;p.value=T,a.value=T,v.value=M,s(i(p),i(v))}else S()},S=()=>{let[k,T]=bf(i(t),{lang:i(h),step:l,unit:r,unlinkPanels:e.unlinkPanels});const M=O=>O.diff(O.startOf("d"),"ms"),A=i(n);if(A){let O=0,I=0;if(be(A)){const[L,z]=A.map(st);O=M(L),I=M(z)}else{const L=M(st(A));O=L,I=L}k=k.startOf("d").add(O,"ms"),T=T.startOf("d").add(I,"ms")}p.value=void 0,v.value=void 0,a.value=k,o.value=T};return fe(t,k=>{k&&S()},{immediate:!0}),fe(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!on(k,[p.value,v.value]))&&C(k)},{immediate:!0}),fe(()=>e.visible,()=>{e.visible&&C(e.parsedValue)},{immediate:!0}),{minDate:p,maxDate:v,rangeState:m,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:b,handleShortcutClick:g,onSelect:w,parseValue:C,t:f}},BY=(e,t,n,a)=>{const o=V("date"),l=V(),r=V("date"),s=V(),{disabledDate:u}=Pe(oo).props,{t:c,lang:d}=kt(),f=x(()=>n.value.year()),h=x(()=>n.value.month()),g=x(()=>a.value.year()),p=x(()=>a.value.month());function v(S,k){const T=c("el.datepicker.year");if(S.value==="year"){const M=Math.floor(k.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${k.value} ${T}`}function m(S){S==null||S.focus()}async function y(S,k){if(e.disabled)return;const T=S==="left"?o:r,M=S==="left"?l:s;T.value=k,await Le(),m(M.value)}async function b(S,k,T){if(e.disabled)return;const M=k==="left",A=M?n:a,O=M?a:n,I=M?o:r,L=M?l:s;S==="year"&&(A.value=md(A.value.year(T),d.value,u)),S==="month"&&(A.value=Is(A.value,A.value.year(),T,d.value,u)),e.unlinkPanels||(O.value=k==="left"?A.value.add(1,"month"):A.value.subtract(1,"month")),I.value=S==="year"?"month":"date",await Le(),m(L.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),a.value.toDate()],S)}function C(S,k,T){const M=T?"add":"subtract";return S==="year"?k[M](10,"year"):k[M](1,"year")}return{leftCurrentView:o,rightCurrentView:r,leftCurrentViewRef:l,rightCurrentViewRef:s,leftYear:f,rightYear:g,leftMonth:h,rightMonth:p,leftYearLabel:x(()=>v(o,f)),rightYearLabel:x(()=>v(r,g)),showLeftPicker:S=>y("left",S),showRightPicker:S=>y("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:C}},zY=["disabled","onClick"],DY=["aria-label","disabled"],HY=["aria-label","disabled"],FY=["disabled","aria-label"],KY=["disabled","aria-label"],WY=["tabindex","aria-disabled"],jY=["tabindex","aria-disabled"],qY=["disabled","aria-label"],UY=["disabled","aria-label"],YY=["aria-label","disabled"],GY=["disabled","aria-label"],XY=["tabindex","aria-disabled"],JY=["tabindex","aria-disabled"],hc="month";var ZY=D({__name:"panel-date-range",props:LY,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),l=Pe(Hu,void 0),{disabledDate:r,cellClassName:s,defaultTime:u,clearable:c}=o.props,d=Bt(o.props,"format"),f=Bt(o.props,"shortcuts"),h=Bt(o.props,"defaultValue"),{lang:g}=kt(),p=V(st().locale(g.value)),v=V(st().locale(g.value).add(1,hc)),{minDate:m,maxDate:y,rangeState:b,ppNs:w,drpNs:C,handleChangeRange:S,handleRangeConfirm:k,handleShortcutClick:T,onSelect:M,parseValue:A,t:O}=Fh(n,{defaultValue:h,defaultTime:u,leftDate:p,rightDate:v,unit:hc,sortDates:Xt});fe(()=>n.visible,Ue=>{!Ue&&b.value.selecting&&(A(n.parsedValue),M(!1))});const I=V({min:null,max:null}),L=V({min:null,max:null}),{leftCurrentView:z,rightCurrentView:q,leftCurrentViewRef:U,rightCurrentViewRef:F,leftYear:N,rightYear:P,leftMonth:B,rightMonth:W,leftYearLabel:K,rightYearLabel:j,showLeftPicker:G,showRightPicker:ee,handleLeftYearPick:te,handleRightYearPick:ue,handleLeftMonthPick:ne,handleRightMonthPick:de,handlePanelChange:se,adjustDateByView:Y}=BY(n,a,p,v),X=x(()=>!!f.value.length),H=x(()=>I.value.min!==null?I.value.min:m.value?m.value.format(me.value):""),Z=x(()=>I.value.max!==null?I.value.max:y.value||m.value?(y.value||m.value).format(me.value):""),le=x(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ge.value):""),ce=x(()=>L.value.max!==null?L.value.max:y.value||m.value?(y.value||m.value).format(ge.value):""),ge=x(()=>n.timeFormat||ub(d.value||"")||Lr),me=x(()=>n.dateFormat||ib(d.value||"")||Qo),Ae=Ue=>au(Ue)&&(r?!r(Ue[0].toDate())&&!r(Ue[1].toDate()):!0),Ne=()=>{p.value=Y(z.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("year")},Re=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("month")},ye=()=>{n.unlinkPanels?v.value=Y(q.value,v.value,!0):(p.value=Y(q.value,p.value,!0),v.value=p.value.add(1,"month")),se("year")},Ee=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),se("month")},we=()=>{p.value=Y(z.value,p.value,!0),se("year")},Ie=()=>{p.value=p.value.add(1,"month"),se("month")},ze=()=>{v.value=Y(q.value,v.value,!1),se("year")},et=()=>{v.value=v.value.subtract(1,"month"),se("month")},nt=x(()=>{const Ue=(B.value+1)%12,Xe=B.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+Xe,Ue)n.unlinkPanels&&P.value*12+W.value-(N.value*12+B.value+1)>=12),Me=sn(),Ge=x(()=>!(m.value&&y.value&&!b.value.selecting&&au([m.value,y.value])&&!Me.value)),ut=x(()=>n.type==="datetime"||n.type==="datetimerange"),je=(Ue,Xe)=>{if(Ue)return u?st(u[Xe]||u).locale(g.value).year(Ue.year()).month(Ue.month()).date(Ue.date()):Ue},tt=(Ue,Xe=!0)=>{const mt=Ue.minDate,Mn=Ue.maxDate,go=je(mt,0),ja=je(Mn,1);y.value===ja&&m.value===go||(a("calendar-change",[mt.toDate(),Mn&&Mn.toDate()]),y.value=ja,m.value=go,!ut.value&&Xe&&(Xe=!go||!ja),k(Xe))},yt=V(!1),he=V(!1),Ve=()=>{yt.value=!1},pe=()=>{he.value=!1},Te=(Ue,Xe)=>{I.value[Xe]=Ue;const mt=st(Ue,me.value).locale(g.value);if(mt.isValid()){if(r&&r(mt.toDate()))return;Xe==="min"?(p.value=mt,m.value=(m.value||p.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(m.value))&&(v.value=mt.add(1,"month"),y.value=m.value.add(1,"month"))):(v.value=mt,y.value=(y.value||v.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(y.value))&&(p.value=mt.subtract(1,"month"),m.value=y.value.subtract(1,"month"))),Xt(m.value,y.value),k(!0)}},ct=(Ue,Xe)=>{I.value[Xe]=null},Pt=(Ue,Xe)=>{L.value[Xe]=Ue;const mt=st(Ue,ge.value).locale(g.value);mt.isValid()&&(Xe==="min"?(yt.value=!0,m.value=(m.value||p.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),p.value=m.value):(he.value=!0,y.value=(y.value||v.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),v.value=y.value))},Gt=(Ue,Xe)=>{L.value[Xe]=null,Xe==="min"?(p.value=m.value,yt.value=!1,(!y.value||y.value.isBefore(m.value))&&(y.value=m.value)):(v.value=y.value,he.value=!1,y.value&&y.value.isBefore(m.value)&&(m.value=y.value)),k(!0)},$e=(Ue,Xe,mt)=>{L.value.min||(Ue&&(m.value=(m.value||p.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(yt.value=Xe),(!y.value||y.value.isBefore(m.value))&&(y.value=m.value,v.value=Ue,Le(()=>{A(n.parsedValue)})),k(!0))},We=(Ue,Xe,mt)=>{L.value.max||(Ue&&(y.value=(y.value||v.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(he.value=Xe),y.value&&y.value.isBefore(m.value)&&(m.value=y.value),k(!0))},Ze=()=>{dn(),a("clear")},dn=()=>{let Ue=null;o!=null&&o.emptyValues&&(Ue=o.emptyValues.valueOnClear.value),p.value=bf(i(h),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,m.value=void 0,k(!0),a("pick",Ue)},zt=Ue=>Ls(Ue,d.value||"",g.value,l);function Xt(Ue,Xe){if(n.unlinkPanels&&Xe){const mt=(Ue==null?void 0:Ue.year())||0,Mn=(Ue==null?void 0:Ue.month())||0,go=Xe.year(),ja=Xe.month();v.value=mt===go&&Mn===ja?Xe.add(1,hc):Xe}else v.value=p.value.add(1,hc),Xe&&(v.value=v.value.hour(Xe.hour()).minute(Xe.minute()).second(Xe.second()))}return a("set-picker-option",["isValidValue",Ae]),a("set-picker-option",["parseUserInput",zt]),a("set-picker-option",["handleClear",dn]),(Ue,Xe)=>(_(),$("div",{class:R([i(w).b(),i(C).b(),i(w).is("border",Ue.border),i(w).is("disabled",i(Me)),{"has-sidebar":Ue.$slots.sidebar||X.value,"has-time":ut.value}])},[E("div",{class:R(i(w).e("body-wrapper"))},[oe(Ue.$slots,"sidebar",{class:R(i(w).e("sidebar"))}),X.value?(_(),$("div",{key:0,class:R(i(w).e("sidebar"))},[(_(!0),$(Ke,null,_t(f.value,(mt,Mn)=>(_(),$("button",{key:Mn,type:"button",disabled:i(Me),class:R(i(w).e("shortcut")),onClick:go=>i(T)(mt)},Se(mt.text),11,zY))),128))],2)):re("v-if",!0),E("div",{class:R(i(w).e("body"))},[ut.value?(_(),$("div",{key:0,class:R(i(C).e("time-header"))},[E("span",{class:R(i(C).e("editors-wrap"))},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startDate"),class:R(i(C).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!Ue.editable,onInput:Xe[0]||(Xe[0]=mt=>Te(mt,"min")),onChange:Xe[1]||(Xe[1]=mt=>ct(mt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),ft((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startTime"),"model-value":le.value,"validate-event":!1,readonly:!Ue.editable,onFocus:Xe[2]||(Xe[2]=mt=>yt.value=!0),onInput:Xe[3]||(Xe[3]=mt=>Pt(mt,"min")),onChange:Xe[4]||(Xe[4]=mt=>Gt(mt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(dd),{visible:yt.value,format:ge.value,"datetime-role":"start","parsed-value":i(m)||p.value,onPick:$e},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ve]])],2),E("span",null,[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),E("span",{class:R([i(C).e("editors-wrap"),"is-right"])},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endDate"),"model-value":Z.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onInput:Xe[5]||(Xe[5]=mt=>Te(mt,"max")),onChange:Xe[6]||(Xe[6]=mt=>ct(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ft((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endTime"),"model-value":ce.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onFocus:Xe[7]||(Xe[7]=mt=>i(m)&&(he.value=!0)),onInput:Xe[8]||(Xe[8]=mt=>Pt(mt,"max")),onChange:Xe[9]||(Xe[9]=mt=>Gt(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(dd),{"datetime-role":"end",visible:he.value,format:ge.value,"parsed-value":i(y)||v.value,onPick:We},null,8,["visible","format","parsed-value"])],2)),[[i(jl),pe]])],2)],2)):re("v-if",!0),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-left"])},[E("div",{class:R(i(C).e("header"))},[E("button",{type:"button",class:R([i(w).e("icon-btn"),"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),disabled:i(Me),onClick:Ne},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,DY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),disabled:i(Me),onClick:Re},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,HY),[[At,i(z)==="date"]]),Ue.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-right"]),"aria-label":i(O)("el.datepicker.nextYear"),onClick:we},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,FY)):re("v-if",!0),Ue.unlinkPanels&&i(z)==="date"?(_(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-right"]),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ie},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,KY)):re("v-if",!0),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[10]||(Xe[10]=an(mt=>i(G)("year"),["enter"])),onClick:Xe[11]||(Xe[11]=mt=>i(G)("year"))},Se(i(K)),43,WY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(C).e("header-label"),{active:i(z)==="month"}]),onKeydown:Xe[12]||(Xe[12]=an(mt=>i(G)("month"),["enter"])),onClick:Xe[13]||(Xe[13]=mt=>i(G)("month"))},Se(i(O)(`el.datepicker.month${p.value.month()+1}`)),43,jY),[[At,i(z)==="date"]])])],2),i(z)==="date"?(_(),ie(N2,{key:0,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"range",date:p.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(z)==="year"?(_(),ie(lu,{key:1,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"year",date:p.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(z)==="month"?(_(),ie(ou,{key:2,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"month",date:p.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-right"])},[E("div",{class:R(i(C).e("header"))},[Ue.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),onClick:ze},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,qY)):re("v-if",!0),Ue.unlinkPanels&&i(q)==="date"?(_(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),onClick:et},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,UY)):re("v-if",!0),E("button",{type:"button","aria-label":i(O)("el.datepicker.nextYear"),class:R([i(w).e("icon-btn"),"d-arrow-right"]),disabled:i(Me),onClick:ye},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,YY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-right"]),disabled:i(Me),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ee},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,GY),[[At,i(q)==="date"]]),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[14]||(Xe[14]=an(mt=>i(ee)("year"),["enter"])),onClick:Xe[15]||(Xe[15]=mt=>i(ee)("year"))},Se(i(j)),43,XY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(C).e("header-label"),{active:i(q)==="month"}]),onKeydown:Xe[16]||(Xe[16]=an(mt=>i(ee)("month"),["enter"])),onClick:Xe[17]||(Xe[17]=mt=>i(ee)("month"))},Se(i(O)(`el.datepicker.month${v.value.month()+1}`)),43,JY),[[At,i(q)==="date"]])])],2),i(q)==="date"?(_(),ie(N2,{key:0,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(q)==="year"?(_(),ie(lu,{key:1,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"year",date:v.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(ue)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(q)==="month"?(_(),ie(ou,{key:2,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"month",date:v.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2)],2)],2),Ue.showFooter&&ut.value&&(Ue.showConfirm||i(c))?(_(),$("div",{key:0,class:R(i(w).e("footer"))},[i(c)?(_(),ie(i(An),{key:0,text:"",size:"small",class:R(i(w).e("link-btn")),onClick:Ze},{default:ae(()=>[St(Se(i(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Ue.showConfirm?(_(),ie(i(An),{key:1,plain:"",size:"small",class:R(i(w).e("link-btn")),disabled:Ge.value,onClick:Xe[18]||(Xe[18]=mt=>i(k)(!1))},{default:ae(()=>[St(Se(i(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),QY=ZY;const eG=_e({...zh}),tG=["pick","set-picker-option","calendar-change"],nG=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=kt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:x(()=>t.value.year()),rightYear:x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},aG=["disabled","onClick"],oG=["disabled"],lG=["disabled"],rG=["disabled"],sG=["disabled"],vc="year";var iG=D({name:"DatePickerMonthRange",__name:"panel-month-range",props:eG,emits:tG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=Pe(oo),r=Pe(Hu,void 0),{shortcuts:s,disabledDate:u,cellClassName:c}=l.props,d=Bt(l.props,"format"),f=Bt(l.props,"defaultValue"),h=V(st().locale(o.value)),g=V(st().locale(o.value).add(1,vc)),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Fh(n,{defaultValue:f,leftDate:h,rightDate:g,unit:vc,sortDates:K}),M=x(()=>!!s.length),{leftPrevYear:A,rightNextYear:O,leftNextYear:I,rightPrevYear:L,leftLabel:z,rightLabel:q,leftYear:U,rightYear:F}=nG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:h,rightDate:g}),N=x(()=>n.unlinkPanels&&F.value>U.value+1),P=(G,ee=!0)=>{const te=G.minDate,ue=G.maxDate;v.value===ue&&p.value===te||(a("calendar-change",[te.toDate(),ue&&ue.toDate()]),v.value=ue,p.value=te,ee&&C())},B=()=>{let G=null;l!=null&&l.emptyValues&&(G=l.emptyValues.valueOnClear.value),h.value=bf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"year"),a("pick",G)},W=G=>Ls(G,d.value,o.value,r);function K(G,ee){n.unlinkPanels&&ee?g.value=((G==null?void 0:G.year())||0)===ee.year()?ee.add(1,vc):ee:g.value=h.value.add(1,vc)}const j=sn();return fe(()=>n.visible,G=>{!G&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",au]),a("set-picker-option",["parseUserInput",W]),a("set-picker-option",["handleClear",B]),(G,ee)=>(_(),$("div",{class:R([i(y).b(),i(b).b(),i(y).is("border",G.border),i(y).is("disabled",i(j)),{"has-sidebar":!!G.$slots.sidebar||M.value}])},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(G.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),M.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(Ke,null,_t(i(s),(te,ue)=>(_(),$("button",{key:ue,type:"button",class:R(i(y).e("shortcut")),disabled:i(j),onClick:ne=>i(S)(te)},Se(te.text),11,aG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-left"])},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),disabled:i(j),onClick:ee[0]||(ee[0]=(...te)=>i(A)&&i(A)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,oG),G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...te)=>i(I)&&i(I)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,lG)):re("v-if",!0),E("div",null,Se(i(z)),1)],2),Q(ou,{"selection-mode":"range",date:h.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-right"])},[E("div",{class:R(i(b).e("header"))},[G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...te)=>i(L)&&i(L)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,rG)):re("v-if",!0),E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(j),onClick:ee[3]||(ee[3]=(...te)=>i(O)&&i(O)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,sG),E("div",null,Se(i(q)),1)],2),Q(ou,{"selection-mode":"range",date:g.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),uG=iG;const cG=_e({...zh}),dG=["pick","set-picker-option","calendar-change"],fG=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:x(()=>{const s=Math.floor(t.value.year()/10)*10;return`${s}-${s+9}`}),rightLabel:x(()=>{const s=Math.floor(n.value.year()/10)*10;return`${s}-${s+9}`}),leftYear:x(()=>Math.floor(t.value.year()/10)*10+9),rightYear:x(()=>Math.floor(n.value.year()/10)*10)}),pG=["disabled","onClick"],hG=["disabled"],vG=["disabled"],mG=["disabled"],gG=["disabled"],Qr=10,di="year";var yG=D({name:"DatePickerYearRange",__name:"panel-year-range",props:cG,emits:dG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=V(st().locale(o.value)),r=V(st().locale(o.value).add(Qr,di)),s=Pe(Hu,void 0),u=Pe(oo),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,h=Bt(u.props,"format"),g=Bt(u.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Fh(n,{defaultValue:g,leftDate:l,rightDate:r,step:Qr,unit:di,sortDates:ue}),{leftPrevYear:M,rightNextYear:A,leftNextYear:O,rightPrevYear:I,leftLabel:L,rightLabel:z,leftYear:q,rightYear:U}=fG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:l,rightDate:r}),F=sn(),N=x(()=>!!c.length),P=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",F.value),{"has-sidebar":!!vn().sidebar||N.value}]),B=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-right"]})),W=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),K=x(()=>n.unlinkPanels&&U.value>q.value+1),j=(ne,de=!0)=>{const se=ne.minDate,Y=ne.maxDate;v.value===Y&&p.value===se||(a("calendar-change",[se.toDate(),Y&&Y.toDate()]),v.value=Y,p.value=se,de&&C())},G=ne=>Ls(ne,h.value,o.value,s),ee=ne=>au(ne)&&(d?!d(ne[0].toDate())&&!d(ne[1].toDate()):!0),te=()=>{let ne=null;u!=null&&u.emptyValues&&(ne=u.emptyValues.valueOnClear.value);const de=bf(i(g),{lang:i(o),step:Qr,unit:di,unlinkPanels:n.unlinkPanels});l.value=de[0],r.value=de[1],a("pick",ne)};function ue(ne,de){if(n.unlinkPanels&&de){const se=(ne==null?void 0:ne.year())||0,Y=de.year();r.value=se+Qr>Y?de.add(Qr,di):de}else r.value=l.value.add(Qr,di)}return fe(()=>n.visible,ne=>{!ne&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",G]),a("set-picker-option",["handleClear",te]),(ne,de)=>(_(),$("div",{class:R(P.value)},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(ne.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),N.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(Ke,null,_t(i(c),(se,Y)=>(_(),$("button",{key:Y,type:"button",class:R(i(y).e("shortcut")),disabled:i(F),onClick:X=>i(S)(se)},Se(se.text),11,pG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R(B.value.content)},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R(B.value.arrowLeftBtn),disabled:i(F),onClick:de[0]||(de[0]=(...se)=>i(M)&&i(M)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,hG),ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(B.value.arrowRightBtn),onClick:de[1]||(de[1]=(...se)=>i(O)&&i(O)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,vG)):re("v-if",!0),E("div",null,Se(i(L)),1)],2),Q(lu,{"selection-mode":"range",date:l.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R(W.value.content)},[E("div",{class:R(i(b).e("header"))},[ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(W.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...se)=>i(I)&&i(I)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,mG)):re("v-if",!0),E("button",{type:"button",class:R(W.value.arrowRightBtn),disabled:i(F),onClick:de[3]||(de[3]=(...se)=>i(A)&&i(A)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,gG),E("div",null,Se(i(z)),1)],2),Q(lu,{"selection-mode":"range",date:r.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),bG=yG;const wG=function(e){switch(e){case"daterange":case"datetimerange":return QY;case"monthrange":return uG;case"yearrange":return bG;default:return IY}};var ow={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){var o=a.prototype,l=o.format;o.format=function(r){var s=this,u=this.$locale();if(!this.isValid())return l.bind(this)(r);var c=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return l.bind(this)(d)}}})})(ow);var CG=ow.exports;const _G=xl(CG);var lw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n="week",a="year";return function(o,l,r){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(c),f=r(this).endOf(n);if(d.isBefore(f))return 1}var h=r(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?r(this).startOf("week").week():Math.ceil(g)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(lw);var SG=lw.exports;const xG=xl(SG);var rw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),l=this.week(),r=this.year();return l===1&&o===11?r+1:o===0&&l>=52?r-1:r}}})})(rw);var kG=rw.exports;const EG=xl(kG);var sw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){a.prototype.dayOfYear=function(l){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return l==null?r:this.add(l-r,"day")}}})})(sw);var TG=sw.exports;const MG=xl(TG);var iw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,l){return this.isSame(o,l)||this.isAfter(o,l)}}})})(iw);var OG=iw.exports;const $G=xl(OG);var uw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,l){return this.isSame(o,l)||this.isBefore(o,l)}}})})(uw);var AG=uw.exports;const RG=xl(AG);function NG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}st.extend(_b);st.extend(_G);st.extend(Ah);st.extend(xG);st.extend(EG);st.extend(MG);st.extend($G);st.extend(RG);var PG=D({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:rY,emits:[ot,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ve("picker-panel");Et(Pe(oo,void 0))&&wt(oo,{props:Nt({...Nn(e)})}),wt(Vh,{slots:t,pickerNs:o});const{parsedValue:l,onCalendarChange:r,onPanelChange:s,onSetPickerOption:u,onPick:c}=Pe(rb,()=>fb(e,n),!0);return()=>Q(wG(e.type),ht(xu(a,"onPick"),e,{parsedValue:l.value,"onSet-picker-option":u,"onCalendar-change":r,"onPanel-change":s,onClear:()=>n("clear"),onPick:c}),NG(t)?t:{default:()=>[t]})}});const cw=it(PG),IG=_e({...$h,type:{type:J(String),default:"date"}});function LG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}var VG=D({name:"ElDatePicker",install:null,props:IG,emits:[ot],setup(e,{expose:t,emit:n,slots:a}){wt(Hu,x(()=>!e.format)),wt(Mh,Nt(Bt(e,"popperOptions")));const o=V();t({focus:()=>{var r;(r=o.value)==null||r.focus()},blur:()=>{var r;(r=o.value)==null||r.blur()},handleOpen:()=>{var r;(r=o.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=o.value)==null||r.handleClose()}});const l=r=>{n(ot,r)};return()=>{const r=e.format??(gW[e.type]||Qo);return Q(pb,ht(e,{format:r,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:s=>Q(cw,ht({disabled:e.disabled,editable:e.editable,border:!1},s),LG(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const BG=it(VG),zG=_e({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:kn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),dw="ElDescriptionsItem",DG=_e({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:m1,default:"left"},labelAlign:{type:String,values:m1},className:{type:String,default:""},labelClassName:{type:String,default:""}}),fw=D({name:dw,props:DG}),Kh=Symbol("elDescriptions"),HG=_e({row:{type:J(Array),default:()=>[]}});var fi=D({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Pe(Kh,{})}},render(){var v;const e=B$(this.cell),t=(((v=this.cell)==null?void 0:v.dirs)||[]).map(m=>{const{dir:y,arg:b,modifiers:w,value:C}=m;return[y,C,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",l=()=>{var m,y,b;return((b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.label)==null?void 0:b.call(y))||e.label},r=()=>{var m,y,b;return(b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.default)==null?void 0:b.call(y)},s=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,h=e.labelClassName,g={width:rn(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:rn(e.minWidth)},p=ve("descriptions");switch(this.type){case"label":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",n),p.is("vertical-label",o),d,h],colSpan:o?s:1,rowspan:o?1:u},l()),t);case"content":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",n),p.is("vertical-content",o),c,f],colSpan:o?s:s*2-1,rowspan:o?u*2-1:u},r()),t);default:{const m=l(),y={},b=rn(e.labelWidth??this.descriptions.labelWidth);return b&&(y.width=b,y.display="inline-block"),ft(Ye("td",{style:g,class:[p.e("cell"),c],colSpan:s,rowspan:u},[yn(m)?void 0:Ye("span",{style:y,class:[p.e("label"),h]},m),Ye("span",{class:[p.e("content"),f]},r())]),t)}}}});const FG={key:1};var KG=D({name:"ElDescriptionsRow",__name:"descriptions-row",props:HG,setup(e){const t=Pe(Kh,{});return(n,a)=>i(t).direction==="vertical"?(_(),$(Ke,{key:0},[E("tr",null,[(_(!0),$(Ke,null,_t(e.row,(o,l)=>(_(),ie(i(fi),{key:`tr1-${l}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(_(!0),$(Ke,null,_t(e.row,(o,l)=>(_(),ie(i(fi),{key:`tr2-${l}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),$("tr",FG,[(_(!0),$(Ke,null,_t(e.row,(o,l)=>(_(),$(Ke,{key:`tr3-${l}`},[i(t).border?(_(),$(Ke,{key:0},[Q(i(fi),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Q(i(fi),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ie(i(fi),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),WG=KG,jG=D({name:"ElDescriptions",__name:"description",props:zG,setup(e){const t=e,n=ve("descriptions"),a=_n(),o=vn();wt(Kh,t);const l=x(()=>[n.b(),n.m(a.value)]),r=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),s=()=>{if(!o.default)return[];const u=Ta(o.default()).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)===dw}),c=[];let d=[],f=t.column,h=0;const g=[];return u.forEach((p,v)=>{var w,C,S;const m=((w=p.props)==null?void 0:w.span)||1,y=((C=p.props)==null?void 0:C.rowspan)||1,b=c.length;if(g[b]||(g[b]=0),y>1)for(let k=1;k0&&(f-=g[b],g[b]=0),vf?f:m),v===u.length-1){const k=t.column-h%t.column;d.push(r(p,k,f,!0)),c.push(d);return}m(_(),$("div",{class:R(l.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(_(),$("div",{key:0,class:R(i(n).e("header"))},[E("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[St(Se(e.title),1)])],2),E("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[St(Se(e.extra),1)])],2)],2)):re("v-if",!0),E("div",{class:R(i(n).e("body"))},[E("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[E("tbody",null,[(_(!0),$(Ke,null,_t(s(),(d,f)=>(_(),ie(WG,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),qG=jG;const UG=it(qG,{DescriptionsItem:fw}),YG=nn(fw),pw=_e({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ft},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),GG={close:()=>!0},hw=_e({...pw,appendToBody:Boolean,appendTo:{type:Tu.to.type,default:"body"},beforeClose:{type:J(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:J([String,Object]),default:void 0}}),vw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ot]:e=>Dt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XG=_e({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:J([String,Array,Object])},zIndex:{type:J([String,Number])}}),JG={click:e=>e instanceof MouseEvent},ZG="overlay";var QG=D({name:"ElOverlay",props:XG,emits:JG,setup(e,{slots:t,emit:n}){const a=ve(ZG),o=u=>{n("click",u)},{onClick:l,onMousedown:r,onMouseup:s}=ih(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:r,onMouseup:s},[oe(t,"default")],qa.STYLE|qa.CLASS|qa.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const Wh=QG,mw=Symbol("dialogInjectionKey"),m0="dialog-fade",eX="ElDialog",gw=(e,t)=>{const n=vt().emit,{nextZIndex:a}=$u();let o="";const l=Kn(),r=Kn(),s=V(!1),u=V(!1),c=V(!1),d=V(e.zIndex??a()),f=V(!1);let h,g;const p=_l(),v=x(()=>{var j;return((j=p.value)==null?void 0:j.namespace)??Ri}),m=x(()=>{var j;return(j=p.value)==null?void 0:j.dialog}),y=x(()=>{const j={},G=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(j[`${G}-margin-top`]=e.top);const ee=rn(e.width);ee&&(j[`${G}-width`]=ee)}return j}),b=x(()=>{var j;return(e.draggable??((j=m.value)==null?void 0:j.draggable)??!1)&&!e.fullscreen}),w=x(()=>{var j;return e.alignCenter??((j=m.value)==null?void 0:j.alignCenter)??!1}),C=x(()=>{var j;return e.overflow??((j=m.value)==null?void 0:j.overflow)??!1}),S=x(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),k=x(()=>w.value?{display:"flex"}:{}),T=x(()=>{var ee;const j=e.transition??((ee=m.value)==null?void 0:ee.transition)??m0,G={name:j,onAfterEnter:M,onBeforeLeave:O,onAfterLeave:A};if(lt(j)){const te={...j},ue=(ne,de)=>se=>{be(ne)?ne.forEach(Y=>{Fe(Y)&&Y(se)}):Fe(ne)&&ne(se),de()};return te.onAfterEnter=ue(te.onAfterEnter,M),te.onBeforeLeave=ue(te.onBeforeLeave,O),te.onAfterLeave=ue(te.onAfterLeave,A),te.name||(te.name=m0,pt(eX,`transition.name is missing when using object syntax, fallback to '${m0}'`)),te}return G});function M(){n("opened")}function A(){n("closed"),n(ot,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function O(){f.value=!0,n("close")}function I(){g==null||g(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=ks(()=>U(),e.openDelay):U()}function L(){h==null||h(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=ks(()=>F(),e.closeDelay):F()}function z(){function j(G){G||(u.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(j):L()}function q(){e.closeOnClickModal&&z()}function U(){Rt&&(s.value=!0)}function F(){s.value=!1}function N(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function B(j){var G;((G=j.detail)==null?void 0:G.focusReason)==="pointer"&&j.preventDefault()}e.lockScroll&&of(s);function W(){e.closeOnPressEscape&&z()}function K(){!s.value||!S.value||e.zIndex!==void 0||(d.value=a())}return fe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),fe(()=>e.modelValue,j=>{j?(u.value=!1,f.value=!1,I(),c.value=!0,d.value=e.zIndex??a(),Le(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):s.value&&L()}),fe(()=>e.fullscreen,j=>{t.value&&(j?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),gt(()=>{e.modelValue&&(s.value=!0,c.value=!0,I())}),{afterEnter:M,afterLeave:A,beforeLeave:O,handleClose:z,onModalClick:q,close:L,doClose:F,onOpenAutoFocus:N,onCloseAutoFocus:P,onCloseRequested:W,onFocusoutPrevented:B,bringToFront:K,titleId:l,bodyId:r,closed:u,style:y,overlayDialogStyle:k,rendered:c,visible:s,zIndex:d,transitionConfig:T,_draggable:b,_alignCenter:w,_overflow:C,closing:f,penetrable:S}},jh=(...e)=>t=>{e.forEach(n=>{n.value=t})},tX=["aria-level"],nX=["aria-label"],aX=["id"];var oX=D({name:"ElDialogContent",__name:"dialog-content",props:pw,emits:GG,setup(e,{expose:t}){const{t:n}=kt(),{Close:a}=Ny,o=e,{dialogRef:l,headerRef:r,bodyId:s,ns:u,style:c}=Pe(mw),{focusTrapRef:d}=Pe(Wy),f=jh(d,l),h=x(()=>!!o.draggable),{resetPosition:g,updatePosition:p,isDragging:v}=M8(l,r,h,x(()=>!!o.overflow)),m=x(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",h.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:p}),(y,b)=>(_(),$("div",{ref:i(f),class:R(m.value),style:qe(i(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:r,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(y.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},Se(e.title),11,tX)]),e.showClose?(_(),$("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(i(De),{class:R(i(u).e("close"))},{default:ae(()=>[(_(),ie(dt(e.closeIcon||i(a))))]),_:1},8,["class"])],10,nX)):re("v-if",!0)],2),E("div",{id:i(s),class:R([i(u).e("body"),e.bodyClass])},[oe(y.$slots,"default")],10,aX),y.$slots.footer?(_(),$("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(y.$slots,"footer")],2)):re("v-if",!0)],6))}}),lX=oX;const rX=["aria-label","aria-labelledby","aria-describedby"];var sX=D({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:hw,emits:vw,setup(e,{expose:t}){const n=e,a=vn();$o({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const o=ve("dialog"),l=V(),r=V(),s=V(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,transitionConfig:p,zIndex:v,_draggable:m,_alignCenter:y,_overflow:b,penetrable:w,handleClose:C,onModalClick:S,onOpenAutoFocus:k,onCloseAutoFocus:T,onCloseRequested:M,onFocusoutPrevented:A,bringToFront:O,closing:I}=gw(n,l);wt(mw,{dialogRef:l,headerRef:r,bodyId:d,ns:o,rendered:g,style:f});const L=ih(S);return t({visible:u,dialogContentRef:s,resetPosition:()=>{var q;(q=s.value)==null||q.resetPosition()},handleClose:C}),(q,U)=>(_(),ie(i(Gs),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,ht(i(p),{persisted:""}),{default:ae(()=>[ft(Q(i(Wh),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(w))],"z-index":i(v)},{default:ae(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(I))]),style:qe(i(h)),onClick:U[0]||(U[0]=(...F)=>i(L).onClick&&i(L).onClick(...F)),onMousedown:U[1]||(U[1]=(...F)=>i(L).onMousedown&&i(L).onMousedown(...F)),onMouseup:U[2]||(U[2]=(...F)=>i(L).onMouseup&&i(L).onMouseup(...F))},[Q(i(Js),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(k),onFocusAfterReleased:i(T),onFocusoutPrevented:i(A),onReleaseRequested:i(M)},{default:ae(()=>[i(g)?(_(),ie(lX,ht({key:0,ref_key:"dialogContentRef",ref:s},q.$attrs,{center:e.center,"align-center":i(y),"close-icon":e.closeIcon,draggable:i(m),overflow:i(b),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(C),onMousedown:i(O)}),fa({header:ae(()=>[q.$slots.title?oe(q.$slots,"title",{key:1}):oe(q.$slots,"header",{key:0,close:i(C),titleId:i(c),titleClass:i(o).e("title")})]),default:ae(()=>[oe(q.$slots,"default")]),_:2},[q.$slots.footer?{name:"footer",fn:ae(()=>[oe(q.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,rX)]),_:3},8,["mask","overlay-class","z-index"]),[[At,i(u)]])]),_:3},16)]),_:3},8,["to","disabled"]))}}),iX=sX;const uX=it(iX),cX=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:J(String),default:"solid"}});var dX=D({name:"ElDivider",__name:"divider",props:cX,setup(e){const t=e,n=ve("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(o,l)=>(_(),$("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:qe(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(_(),$("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),fX=dX;const yw=it(fX),pX=_e({...hw,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),hX={...vw,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function vX(e,t,n){const{width:a,height:o}=Np(),l=x(()=>["ltr","rtl"].includes(e.direction)),r=x(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=x(()=>l.value?a.value:o.value),u=x(()=>C6(c.value+r.value*d.value,4,s.value)),c=V(0),d=V(0),f=V(!1),h=V(!1);let g=[],p=[];const v=()=>{var S;const C=(S=t.value)==null?void 0:S.closest('[aria-modal="true"]');return C?l.value?C.offsetWidth:C.offsetHeight:100};fe(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,d.value=0,b()});const m=C=>{e.resizable&&(h.value||(c.value=v(),h.value=!0),g=[C.pageX,C.pageY],f.value=!0,n("resize-start",C,c.value),p.push(Vt(window,"mouseup",b),Vt(window,"mousemove",y)))},y=C=>{const{pageX:S,pageY:k}=C,T=S-g[0],M=k-g[1];d.value=l.value?T:M,n("resize",C,u.value)},b=C=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,p.forEach(S=>S==null?void 0:S()),p=[],C&&n("resize-end",C,c.value))},w=Vt(t,"mousedown",m);return Lt(()=>{w(),b()}),{size:x(()=>h.value?`${u.value}px`:rn(e.size)),isResizing:f,isHorizontal:l}}const mX=["aria-label","aria-labelledby","aria-describedby"],gX=["id","aria-level"],yX=["aria-label"],bX=["id"];var wX=D({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:pX,emits:hX,setup(e,{expose:t,emit:n}){const a=e,o=n,l=vn();$o({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!l.title));const r=V(),s=V(),u=V(),c=ve("drawer"),{t:d}=kt(),{afterEnter:f,afterLeave:h,beforeLeave:g,visible:p,rendered:v,titleId:m,bodyId:y,zIndex:b,onModalClick:w,onOpenAutoFocus:C,onCloseAutoFocus:S,onFocusoutPrevented:k,onCloseRequested:T,handleClose:M}=gw(a,r),{isHorizontal:A,size:O,isResizing:I}=vX(a,u,o),L=x(()=>a.modalPenetrable&&!a.modal);return t({handleClose:M,afterEnter:f,afterLeave:h}),(z,q)=>(_(),ie(i(Gs),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(h),onBeforeLeave:i(g),persisted:""},{default:ae(()=>[ft(Q(i(Wh),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",L.value)],"z-index":i(b),onClick:i(w)},{default:ae(()=>[Q(i(Js),{loop:"",trapped:i(p),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:i(C),onFocusAfterReleased:i(S),onFocusoutPrevented:i(k),onReleaseRequested:i(T)},{default:ae(()=>[E("div",ht({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(y)},z.$attrs,{class:[i(c).b(),e.direction,i(p)&&"open",i(c).is("dragging",i(I))],style:{[i(A)?"width":"height"]:i(O)},role:"dialog",onClick:q[1]||(q[1]=Je(()=>{},["stop"]))}),[E("span",{ref_key:"focusStartRef",ref:s,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(_(),$("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[z.$slots.title?oe(z.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(z.$slots,"header",{key:0,close:i(M),titleId:i(m),titleClass:i(c).e("title")},()=>[E("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},Se(e.title),11,gX)]),e.showClose?(_(),$("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...U)=>i(M)&&i(M)(...U))},[Q(i(De),{class:R(i(c).e("close"))},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])],10,yX)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(_(),$("div",{key:1,id:i(y),class:R([i(c).e("body"),e.bodyClass])},[oe(z.$slots,"default")],10,bX)):re("v-if",!0),z.$slots.footer?(_(),$("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(z.$slots,"footer")],2)):re("v-if",!0),e.resizable?(_(),$("div",{key:3,ref_key:"draggerRef",ref:u,style:qe({zIndex:i(b)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,mX)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[At,i(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),CX=wX;const _X=it(CX),Ic=_e({trigger:{...Po.trigger,type:J([String,Array])},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space,Ce.down]},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef,effect:{...Ht.effect,default:"light"},type:{type:J(String)},placement:{type:J(String),default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:J([Number,String]),default:0},maxHeight:{type:J([Number,String]),default:""},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,disabled:Boolean,role:{type:String,values:Py,default:"menu"},buttonProps:{type:J(Object)},teleported:Ht.teleported,appendTo:Ht.appendTo,persistent:{type:Boolean,default:!0}}),bw=_e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ft}}),SX=_e({onKeydown:{type:J(Function)}}),wf=Symbol("elDropdown"),ww="elDropdown";var xX=D({inheritAttrs:!1});function kX(e,t,n,a,o,l){return oe(e.$slots,"default")}var EX=En(xX,[["render",kX]]),TX=D({name:"ElCollectionItem",inheritAttrs:!1});function MX(e,t,n,a,o,l){return oe(e.$slots,"default")}var OX=En(TX,[["render",MX]]);const Cw="data-el-collection-item",$X=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},EX,{name:t,setup(){const l=V(),r=new Map;wt(a,{itemMap:r,getItems:()=>{const u=i(l);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${Cw}]`));return[...r.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:l})}}),ElCollectionItem:Object.assign({},OX,{name:n,setup(l,{attrs:r}){const s=V(),u=Pe(a,void 0);wt(o,{collectionItemRef:s}),gt(()=>{const c=i(s);c&&u.itemMap.set(c,{ref:c,...r})}),Lt(()=>{const c=i(s);u.itemMap.delete(c)})}})}},AX=_e({style:{type:J([String,Array,Object])},currentTabId:{type:J(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:J(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:RX,ElCollectionItem:NX,COLLECTION_INJECTION_KEY:_w,COLLECTION_ITEM_INJECTION_KEY:PX}=$X("RovingFocusGroup"),qh=Symbol("elRovingFocusGroup"),Sw=Symbol("elRovingFocusGroupItem"),IX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},LX=(e,t)=>e,VX=(e,t,n)=>{const a=LX(Kt(e));return IX[a]},BX=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),bg=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},wg="currentTabIdChange",Cg="rovingFocusGroup.entryFocus",zX={bubbles:!1,cancelable:!0};var DX=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:AX,emits:[wg,"entryFocus"],setup(e,{emit:t}){const n=V((e.currentTabId||e.defaultCurrentTabId)??null),a=V(!1),o=V(!1),l=V(),{getItems:r}=Pe(_w,void 0),s=x(()=>[{outline:"none"},e.style]),u=v=>{t(wg,v)},c=()=>{a.value=!0},d=On(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{o.value=!0}),f=On(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i(o),{target:y,currentTarget:b}=v;if(y===b&&m&&!i(a)){const w=new Event(Cg,zX);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const C=r().filter(S=>S.focusable);bg([C.find(S=>S.active),C.find(S=>S.id===i(n)),...C].filter(Boolean).map(S=>S.ref))}}o.value=!1}),h=On(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},p=v=>{const m=VX(v);if(m){v.preventDefault();let y=r().filter(b=>b.focusable).map(b=>b.ref);switch(m){case"last":y.reverse();break;case"prev":case"next":{m==="prev"&&y.reverse();const b=y.indexOf(v.currentTarget);y=e.loop?BX(y,b+1):y.slice(b+1);break}}Le(()=>{bg(y)})}};wt(qh,{currentTabbedId:Mr(n),loop:Bt(e,"loop"),tabIndex:x(()=>i(a)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:s,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:f,onMousedown:d,onKeydown:p}),fe(()=>e.currentTabId,v=>{n.value=v??null}),Vt(l,Cg,g)}});function HX(e,t,n,a,o,l){return oe(e.$slots,"default")}var FX=En(DX,[["render",HX]]),KX=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:RX,ElRovingFocusGroupImpl:FX}});function WX(e,t,n,a,o,l){const r=$t("el-roving-focus-group-impl"),s=$t("el-focus-group-collection");return _(),ie(s,null,{default:ae(()=>[Q(r,nl(al(e.$attrs)),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var jX=En(KX,[["render",WX]]),qX=D({components:{ElRovingFocusCollectionItem:NX},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:l}=Pe(qh,void 0),r=Kn(),s=V(),u=On(h=>{t("mousedown",h)},h=>{e.focusable?a(i(r)):h.preventDefault()}),c=On(h=>{t("focus",h)},()=>{a(i(r))}),d=On(h=>{t("keydown",h)},h=>{const{shiftKey:g,target:p,currentTarget:v}=h;if(Kt(h)===Ce.tab&&g){o();return}p===v&&l(h)}),f=x(()=>n.value===i(r));return wt(Sw,{rovingFocusGroupItemRef:s,tabIndex:x(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:r,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function UX(e,t,n,a,o,l){const r=$t("el-roving-focus-collection-item");return _(),ie(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var YX=En(qX,[["render",UX]]),GX=jX;const{ButtonGroup:XX}=An;var JX=D({name:"ElDropdown",components:{ElButton:An,ElButtonGroup:XX,ElScrollbar:ao,ElTooltip:Vn,ElRovingFocusGroup:GX,ElOnlyChild:By,ElIcon:De,ArrowDown:po},props:Ic,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vt(),a=ve("dropdown"),{t:o}=kt(),l=V(),r=V(),s=V(),u=V(),c=V(null),d=V(null),f=V(!1),h=x(()=>({maxHeight:rn(e.maxHeight)})),g=x(()=>[a.m(C.value)]),p=x(()=>$n(e.trigger)),v=Kn().value,m=x(()=>e.id||v);function y(){var z;(z=s.value)==null||z.onClose(void 0,0)}function b(){var z;(z=s.value)==null||z.onClose()}function w(){var z;(z=s.value)==null||z.onOpen()}const C=_n();function S(...z){t("command",...z)}function k(){}function T(){const z=i(u);p.value.includes("hover")&&(z==null||z.focus({preventScroll:!0})),d.value=null}function M(z){d.value=z}function A(){t("visible-change",!0)}function O(z){var q;f.value=(z==null?void 0:z.type)==="keydown",(q=u.value)==null||q.focus()}function I(){t("visible-change",!1)}return wt(wf,{contentRef:u,role:x(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:b}),wt(ww,{instance:n,dropdownSize:C,handleClick:y,commandHandler:S,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:C,triggerId:m,currentTabId:d,handleCurrentTabIdChange:M,handlerMainButtonClick:z=>{t("click",z)},handleClose:b,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:O,handleBeforeHideTooltip:I,popperRef:s,contentRef:u,triggeringElementRef:l,referenceElementRef:r}}});function ZX(e,t,n,a,o,l){const r=$t("el-roving-focus-group"),s=$t("el-scrollbar"),u=$t("el-only-child"),c=$t("el-tooltip"),d=$t("el-button"),f=$t("arrow-down"),h=$t("el-icon"),g=$t("el-button-group");return _(),$("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},fa({content:ae(()=>[Q(s,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[Q(r,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ae(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ie(g,{key:0},{default:ae(()=>[Q(d,ht({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(d,ht({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ae(()=>[Q(h,{class:R(e.ns.e("icon"))},{default:ae(()=>[Q(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var QX=En(JX,[["render",ZX]]),eJ=D({name:"DropdownItemImpl",components:{ElIcon:De},props:bw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ve("dropdown"),{role:a}=Pe(wf,void 0),{collectionItemRef:o}=Pe(PX,void 0),{rovingFocusGroupItemRef:l,tabIndex:r,handleFocus:s,handleKeydown:u,handleMousedown:c}=Pe(Sw,void 0),d=jh(o,l),f=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=On(g=>{const p=Kt(g);if([Ce.enter,Ce.numpadEnter,Ce.space].includes(p))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[Cw]:""},role:f,tabIndex:r,handleFocus:s,handleKeydown:h,handleMousedown:c}}});const tJ=["aria-disabled","tabindex","role"];function nJ(e,t,n,a,o,l){const r=$t("el-icon");return _(),$(Ke,null,[e.divided?(_(),$("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),E("li",ht({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=Je((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon||e.$slots.icon?(_(),ie(r,{key:0},{default:ae(()=>[oe(e.$slots,"icon",{},()=>[(_(),ie(dt(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,tJ)],64)}var aJ=En(eJ,[["render",nJ]]);const xw=()=>{const e=Pe(ww,{});return{elDropdown:e,_elDropdownSize:x(()=>e==null?void 0:e.dropdownSize)}};var oJ=D({name:"ElDropdownItem",components:{ElRovingFocusItem:YX,ElDropdownItemImpl:aJ},inheritAttrs:!1,props:bw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=xw(),o=vt(),{onItemEnter:l,onItemLeave:r}=Pe(wf,void 0),s=On(c=>(t("pointermove",c),c.defaultPrevented),Z1(c=>{if(e.disabled){r(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(l(c),c.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),u=On(c=>(t("pointerleave",c),c.defaultPrevented),Z1(r));return{handleClick:On(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,f,h;if(e.disabled){c.stopImmediatePropagation();return}(d=a==null?void 0:a.hideOnClick)!=null&&d.value&&((f=a.handleClick)==null||f.call(a)),(h=a.commandHandler)==null||h.call(a,e.command,o,c)}),handlePointerMove:s,handlePointerLeave:u,propsAndAttrs:x(()=>({...e,...n}))}}});function lJ(e,t,n,a,o,l){const r=$t("el-dropdown-item-impl"),s=$t("el-roving-focus-item");return _(),ie(s,{focusable:!e.disabled},{default:ae(()=>[Q(r,ht(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),fa({default:ae(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ae(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var kw=En(oJ,[["render",lJ]]),rJ=D({name:"ElDropdownMenu",props:SX,setup(e){const t=ve("dropdown"),{_elDropdownSize:n}=xw(),a=n.value,{contentRef:o,role:l,triggerId:r,isUsingKeyboard:s,handleClose:u}=Pe(wf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:h,onKeydown:g,onMousedown:p}=Pe(qh,void 0),{collectionRef:v}=Pe(_w,void 0),m=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),y=jh(o,c,v),b=On(C=>{var S;(S=e.onKeydown)==null||S.call(e,C)},C=>{const{currentTarget:S,target:k}=C,T=Kt(C);if(S.contains(k),Ce.tab===T)return u();g(C)});function w(C){s.value&&h(C)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:l,triggerId:r,dropdownListWrapperRef:y,handleKeydown:b,onBlur:f,handleFocus:w,onMousedown:p}}});const sJ=["role","aria-labelledby"];function iJ(e,t,n,a,o,l){return _(),$("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=Je((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=Je((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[oe(e.$slots,"default")],46,sJ)}var Ew=En(rJ,[["render",iJ]]);const uJ=it(QX,{DropdownItem:kw,DropdownMenu:Ew}),cJ=nn(kw),dJ=nn(Ew),fJ=_e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),pJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},hJ=["id"],vJ=["stop-color"],mJ=["stop-color"],gJ=["id"],yJ=["stop-color"],bJ=["stop-color"],wJ=["id"],CJ={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_J={transform:"translate(-1268.000000, -535.000000)"},SJ={transform:"translate(1268.000000, 535.000000)"},xJ=["fill"],kJ=["fill"],EJ={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TJ=["fill"],MJ=["fill"],OJ=["fill"],$J=["fill"],AJ=["fill"],RJ={transform:"translate(53.000000, 45.000000)"},NJ=["fill","xlink:href"],PJ=["fill","mask"],IJ=["fill"];var LJ=D({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ve("empty"),n=Kn();return(a,o)=>(_(),$("svg",pJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,vJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,mJ)],8,hJ),E("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,yJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,bJ)],8,gJ),E("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,wJ)]),E("g",CJ,[E("g",_J,[E("g",SJ,[E("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,xJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,kJ),E("g",EJ,[E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,TJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,MJ),E("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,OJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,$J)]),E("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,AJ),E("g",RJ,[E("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,NJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,PJ)]),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,IJ)])])])]))}}),VJ=LJ;const BJ=["src"],zJ={key:1};var DJ=D({name:"ElEmpty",__name:"empty",props:fJ,setup(e){const t=e,{t:n}=kt(),a=ve("empty"),o=x(()=>t.description||n("el.table.emptyText")),l=x(()=>({width:rn(t.imageSize)}));return(r,s)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("image")),style:qe(l.value)},[e.image?(_(),$("img",{key:0,src:e.image,ondragstart:"return false"},null,8,BJ)):oe(r.$slots,"image",{key:1},()=>[Q(VJ)])],6),E("div",{class:R(i(a).e("description"))},[r.$slots.description?oe(r.$slots,"description",{key:0}):(_(),$("p",zJ,Se(o.value),1))],2),r.$slots.default?(_(),$("div",{key:0,class:R(i(a).e("bottom"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),HJ=DJ;const Tw=it(HJ),FJ=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:J([String,Object])},previewSrcList:{type:J(Array),default:()=>ln([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),KJ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>He(e),close:()=>!0,show:()=>!0},WJ=_e({urlList:{type:J(Array),default:()=>ln([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),jJ={close:()=>!0,error:e=>e instanceof Event,switch:e=>He(e),rotate:e=>He(e)},qJ=["src","crossorigin"];var UJ=D({name:"ElImageViewer",__name:"image-viewer",props:WJ,emits:jJ,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Oo(yy)},ORIGINAL:{name:"original",icon:Oo(Ey)}},o=e,l=n;let r;const{t:s}=kt(),u=ve("image-viewer"),{nextZIndex:c}=$u(),d=V(),f=V(),h=aC(),g=x(()=>{const{scale:se,minScale:Y,maxScale:X}=o;return C6(se,Y,X)}),p=V(!0),v=V(!1),m=V(!1),y=V(o.initialIndex),b=qt(a.CONTAIN),w=V({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=V(o.zIndex??c());of(m,{ns:u});const S=x(()=>{const{urlList:se}=o;return se.length<=1}),k=x(()=>y.value===0),T=x(()=>y.value===o.urlList.length-1),M=x(()=>o.urlList[y.value]),A=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&k.value)]),O=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),I=x(()=>{const{scale:se,deg:Y,offsetX:X,offsetY:H,enableTransition:Z}=w.value;let le=X/se,ce=H/se;const ge=Y*Math.PI/180,me=Math.cos(ge),Ae=Math.sin(ge);le=le*me+ce*Ae,ce=ce*me-X/se*Ae;const Ne={transform:`scale(${se}) rotate(${Y}deg) translate(${le}px, ${ce}px)`,transition:Z?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne}),L=x(()=>`${y.value+1} / ${o.urlList.length}`);function z(){U(),r==null||r(),m.value=!1,l("close")}function q(){const se=Il(X=>{switch(Kt(X)){case Ce.esc:o.closeOnPressEscape&&z();break;case Ce.space:K();break;case Ce.left:G();break;case Ce.up:te("zoomIn");break;case Ce.right:ee();break;case Ce.down:te("zoomOut");break}}),Y=Il(X=>{te((X.deltaY||X.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Vt(document,"keydown",se),Vt(d,"wheel",Y)})}function U(){h.stop()}function F(){p.value=!1}function N(se){v.value=!0,p.value=!1,l("error",se),se.target.alt=s("el.image.error")}function P(se){if(p.value||se.button!==0||!d.value)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,H=se.pageX,Z=se.pageY,le=Il(me=>{w.value={...w.value,offsetX:Y+me.pageX-H,offsetY:X+me.pageY-Z}}),ce=Vt(document,"mousemove",le),ge=Vt(document,"mouseup",()=>{ce(),ge()});se.preventDefault()}function B(se){if(p.value||!d.value||se.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,{pageX:H,pageY:Z}=se.touches[0],le=Il(me=>{const Ae=me.touches[0];w.value={...w.value,offsetX:Y+Ae.pageX-H,offsetY:X+Ae.pageY-Z}}),ce=Vt(document,"touchmove",le),ge=Vt(document,"touchend",()=>{ce(),ge()});se.preventDefault()}function W(){w.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(p.value||v.value)return;const se=Xi(a),Y=Object.values(a),X=b.value.name;b.value=a[se[(Y.findIndex(H=>H.name===X)+1)%se.length]],W()}function j(se){v.value=!1;const Y=o.urlList.length;y.value=(se+Y)%Y}function G(){k.value&&!o.infinite||j(y.value-1)}function ee(){T.value&&!o.infinite||j(y.value+1)}function te(se,Y={}){if(p.value||v.value)return;const{minScale:X,maxScale:H}=o,{zoomRate:Z,rotateDeg:le,enableTransition:ce}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(se){case"zoomOut":w.value.scale>X&&(w.value.scale=Number.parseFloat((w.value.scale/Z).toFixed(3)));break;case"zoomIn":w.value.scale0)return se.preventDefault(),!1}}return fe(()=>g.value,se=>{w.value.scale=se}),fe(M,()=>{Le(()=>{var se;(se=f.value)!=null&&se.complete||(p.value=!0)})}),fe(y,se=>{W(),l("switch",se)}),gt(()=>{m.value=!0,q(),r=Vt("wheel",de,{passive:!1})}),t({setActiveItem:j}),(se,Y)=>(_(),ie(i(Gs),{to:"body",disabled:!e.teleported},{default:ae(()=>[Q(Fn,{name:"viewer-fade",appear:""},{default:ae(()=>[E("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:qe({zIndex:C.value})},[Q(i(Js),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ue,onReleaseRequested:ne},{default:ae(()=>[E("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Je(X=>e.hideOnClickModal&&z(),["self"]))},null,2),re(" CLOSE "),E("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:z},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],2),re(" ARROW "),S.value?re("v-if",!0):(_(),$(Ke,{key:0},[E("span",{class:R(A.value),onClick:G},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],2),E("span",{class:R(O.value),onClick:ee},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],2)],64)),se.$slots.progress||e.showProgress?(_(),$("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(se.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[St(Se(L.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),E("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[E("div",{class:R(i(u).e("actions__inner"))},[oe(se.$slots,"toolbar",{actions:te,prev:G,next:ee,reset:K,activeIndex:y.value,setActiveItem:j},()=>[Q(i(De),{onClick:Y[1]||(Y[1]=X=>te("zoomOut"))},{default:ae(()=>[Q(i(Ry))]),_:1}),Q(i(De),{onClick:Y[2]||(Y[2]=X=>te("zoomIn"))},{default:ae(()=>[Q(i(bh))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:K},{default:ae(()=>[(_(),ie(dt(b.value.icon)))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:Y[3]||(Y[3]=X=>te("anticlockwise"))},{default:ae(()=>[Q(i(xy))]),_:1}),Q(i(De),{onClick:Y[4]||(Y[4]=X=>te("clockwise"))},{default:ae(()=>[Q(i(ky))]),_:1})])],2)],2),re(" CANVAS "),E("div",{class:R(i(u).e("canvas"))},[v.value&&se.$slots["viewer-error"]?oe(se.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(_(),$("img",{ref_key:"imgRef",ref:f,key:M.value,src:M.value,style:qe(I.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:F,onError:N,onMousedown:P,onTouchstart:B},null,46,qJ))],2),oe(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),YJ=UJ;const Mw=it(YJ),GJ=["src","loading","crossorigin"],XJ={key:0};var JJ=D({name:"ElImage",inheritAttrs:!1,__name:"image",props:FJ,emits:KJ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("image"),s=gl(),u=x(()=>Ts(Object.entries(s).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=af({excludeListeners:!0,excludeKeys:x(()=>Object.keys(u.value))}),d=V(),f=V(!1),h=V(!0),g=V(!1),p=V(),v=V(),m=Rt&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[r.e("inner"),C.value&&r.e("preview"),h.value&&r.is("loading")]),w=x(()=>{const{fit:N}=a;return Rt&&N?{objectFit:N}:{}}),C=x(()=>{const{previewSrcList:N}=a;return be(N)&&N.length>0}),S=x(()=>{const{previewSrcList:N,initialIndex:P}=a;let B=P;return P>N.length-1&&(B=0),B}),k=x(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),T=()=>{Rt&&(h.value=!0,f.value=!1,d.value=a.src)};function M(N){h.value=!1,f.value=!1,o("load",N)}function A(N){h.value=!1,f.value=!0,o("error",N)}function O(N){N&&(T(),z())}const I=S6(O,200,!0);async function L(){if(!Rt)return;await Le();const{scrollContainer:N}=a;if(ga(N))v.value=N;else if(Be(N)&&N!=="")v.value=document.querySelector(N)??void 0;else if(p.value){const B=Zp(p.value);v.value=ku(B)?void 0:B}const{stop:P}=RS(p,([B])=>{I(B.isIntersecting)},{root:v});y=P}function z(){!Rt||!I||(y==null||y(),v.value=void 0,y=void 0)}function q(){C.value&&(g.value=!0,o("show"))}function U(){g.value=!1,o("close")}function F(N){o("switch",N)}return fe(()=>a.src,()=>{k.value?(h.value=!0,f.value=!1,z(),L()):T()}),gt(()=>{k.value?L():T()}),t({showPreview:q}),(N,P)=>(_(),$("div",ht({ref_key:"container",ref:p},u.value,{class:[i(r).b(),N.$attrs.class]}),[f.value?oe(N.$slots,"error",{key:0},()=>[E("div",{class:R(i(r).e("error"))},Se(i(l)("el.image.error")),3)]):(_(),$(Ke,{key:1},[d.value!==void 0?(_(),$("img",ht({key:0},i(c),{src:d.value,loading:e.loading,style:w.value,class:b.value,crossorigin:e.crossorigin,onClick:q,onLoad:M,onError:A}),null,16,GJ)):re("v-if",!0),h.value?(_(),$("div",{key:1,class:R(i(r).e("wrapper"))},[oe(N.$slots,"placeholder",{},()=>[E("div",{class:R(i(r).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),C.value?(_(),$(Ke,{key:2},[g.value?(_(),ie(i(Mw),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:U,onSwitch:F},fa({toolbar:ae(B=>[oe(N.$slots,"toolbar",nl(al(B)))]),default:ae(()=>[N.$slots.viewer?(_(),$("div",XJ,[oe(N.$slots,"viewer")])):re("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:ae(B=>[oe(N.$slots,"progress",nl(al(B)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:ae(B=>[oe(N.$slots,"viewer-error",nl(al(B)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),ZJ=JJ;const QJ=it(ZJ),eZ=_e({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:kn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:J([String,Number,null]),validator:e=>e===null||He(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},align:{type:J(String),default:"center"},disabledScientific:Boolean}),tZ={[bt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[wn]:e=>He(e)||yn(e),[ot]:e=>He(e)||yn(e)},nZ=["aria-label"],aZ=["aria-label"];var oZ=D({name:"ElInputNumber",__name:"input-number",props:eZ,emits:tZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("input-number"),s=V(),u=Nt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Bn(),d=x(()=>He(a.modelValue)&&a.modelValue<=a.min),f=x(()=>He(a.modelValue)&&a.modelValue>=a.max),h=x(()=>{const N=b(a.step);return Et(a.precision)?Math.max(b(a.modelValue),N):(N>a.precision&&pt("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=x(()=>a.controls&&a.controlsPosition==="right"),p=_n(),v=sn(),m=x(()=>{if(u.userInput!==null)return u.userInput;let N=u.currentValue;if(yn(N))return"";if(He(N)){if(Number.isNaN(N))return"";Et(a.precision)||(N=N.toFixed(a.precision))}return N}),y=(N,P)=>{if(Et(P)&&(P=h.value),P===0)return Math.round(N);let B=String(N);const W=B.indexOf(".");if(W===-1||!B.replace(".","").split("")[W+P])return N;const K=B.length;return B.charAt(K-1)==="5"&&(B=`${B.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(B).toFixed(P))},b=N=>{if(yn(N))return 0;const P=N.toString(),B=P.indexOf(".");let W=0;return B!==-1&&(W=P.length-B-1),W},w=(N,P=1)=>He(N)?N>=Number.MAX_SAFE_INTEGER&&P===1?(pt("InputNumber","The value has reached the maximum safe integer limit."),N):N<=Number.MIN_SAFE_INTEGER&&P===-1?(pt("InputNumber","The value has reached the minimum safe integer limit."),N):y(N+a.step*P):u.currentValue,C=N=>{const P=Kt(N),B=h8(N);if(a.disabledScientific&&["e","E"].includes(B)){N.preventDefault();return}switch(P){case Ce.up:N.preventDefault(),S();break;case Ce.down:N.preventDefault(),k();break}},S=()=>{a.readonly||v.value||f.value||(M(w(Number(m.value)||0)),o(wn,u.currentValue),U())},k=()=>{a.readonly||v.value||d.value||(M(w(Number(m.value)||0,-1)),o(wn,u.currentValue),U())},T=(N,P)=>{const{max:B,min:W,step:K,precision:j,stepStrictly:G,valueOnClear:ee}=a;BB||teB?B:W,P&&o(ot,te)),te},M=(N,P=!0)=>{var K;const B=u.currentValue,W=T(N);if(!P){o(ot,W);return}u.userInput=null,!(B===W&&N)&&(o(ot,W),B!==W&&o(bt,W,B),a.validateEvent&&((K=c==null?void 0:c.validate)==null||K.call(c,"change").catch(j=>pt(j))),u.currentValue=W)},A=N=>{u.userInput=N;const P=N===""?null:Number(N);o(wn,P),M(P,!1)},O=N=>{const P=N!==""?Number(N):"";(He(P)&&!Number.isNaN(P)||N==="")&&M(P),U(),u.userInput=null},I=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},L=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},z=N=>{o("focus",N)},q=N=>{var P,B;u.userInput=null,u.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),o("blur",N),a.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(W=>pt(W)))},U=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},F=N=>{document.activeElement===N.target&&N.preventDefault()};return fe(()=>a.modelValue,(N,P)=>{const B=T(N,!0);u.userInput===null&&B!==P&&(u.currentValue=B)},{immediate:!0}),fe(()=>a.precision,()=>{u.currentValue=T(a.modelValue)}),gt(()=>{var K;const{min:N,max:P,modelValue:B}=a,W=(K=s.value)==null?void 0:K.input;if(W.setAttribute("role","spinbutton"),Number.isFinite(P)?W.setAttribute("aria-valuemax",String(P)):W.removeAttribute("aria-valuemax"),Number.isFinite(N)?W.setAttribute("aria-valuemin",String(N)):W.removeAttribute("aria-valuemin"),W.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),W.setAttribute("aria-disabled",String(v.value)),!He(B)&&B!=null){let j=Number(B);Number.isNaN(j)&&(j=null),o(ot,j)}W.addEventListener("wheel",F,{passive:!1})}),so(()=>{var N,P;(P=(N=s.value)==null?void 0:N.input)==null||P.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:I,blur:L}),(N,P)=>(_(),$("div",{class:R([i(r).b(),i(r).m(i(p)),i(r).is("disabled",i(v)),i(r).is("without-controls",!e.controls),i(r).is("controls-right",g.value),i(r).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Je(()=>{},["prevent"]))},[e.controls?ft((_(),$("span",{key:0,role:"button","aria-label":i(l)("el.inputNumber.decrease"),class:R([i(r).e("decrease"),i(r).is("disabled",d.value)]),onKeydown:an(k,["enter"])},[oe(N.$slots,"decrease-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(_(),ie(i(po),{key:0})):(_(),ie(i(wy),{key:1}))]),_:1})])],42,nZ)),[[i(ld),k]]):re("v-if",!0),e.controls?ft((_(),$("span",{key:1,role:"button","aria-label":i(l)("el.inputNumber.increase"),class:R([i(r).e("increase"),i(r).is("disabled",f.value)]),onKeydown:an(S,["enter"])},[oe(N.$slots,"increase-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(_(),ie(i(Lu),{key:0})):(_(),ie(i(gh),{key:1}))]),_:1})])],42,aZ)),[[i(ld),S]]):re("v-if",!0),Q(i(Dn),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(p),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:C,onBlur:q,onFocus:z,onInput:A,onChange:O},fa({_:2},[N.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),lZ=oZ;const Ow=it(lZ),rZ=_e({modelValue:{type:J(Array)},max:Number,tagType:{...hl.type,default:"info"},tagEffect:hl.effect,effect:{type:J(String),default:"light"},trigger:{type:J(String),default:Ce.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:kn,clearable:Boolean,clearIcon:{type:Ft,default:ho},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:J(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),sZ={[ot]:e=>be(e)||Et(e),[bt]:e=>be(e)||Et(e),[wn]:e=>Be(e),"add-tag":e=>Be(e)||be(e),"remove-tag":(e,t)=>Be(e)&&He(t),"drag-tag":(e,t,n)=>He(e)&&He(t)&&Be(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function iZ({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ve("input-tag"),o=qt(),l=V(!1);let r,s,u,c;function d(p){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${p+1})`}function f(p,v){r=v,s=e.value.querySelector(d(v)),s&&(s.style.opacity="0.5"),p.dataTransfer.effectAllowed="move"}function h(p,v){if(u=v,p.preventDefault(),p.dataTransfer.dropEffect="move",Et(r)||r===v){l.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),y=r+1!==v,b=r-1!==v,w=p.clientX-m.left,C=y?b?.5:1:-1,S=b?y?.5:0:1;w<=m.width*C?c="before":w>m.width*S?c="after":c=void 0;const k=e.value.querySelector(`.${a.e("inner")}`),T=k.getBoundingClientRect(),M=Number.parseFloat(Zo(k,"gap"))/2,A=m.top-T.top;let O=-9999;if(c==="before")O=Math.max(m.left-T.left-M,Math.floor(-M/2));else if(c==="after"){const I=m.right-T.left;O=I+(T.width===I?Math.floor(M/2):M)}T8(o.value,{top:`${A}px`,left:`${O}px`}),l.value=!!c}function g(p){p.preventDefault(),s&&(s.style.opacity=""),c&&!Et(r)&&!Et(u)&&r!==u&&t(r,u,c),l.value=!1,r=void 0,s=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:o,showDropIndicator:l,handleDragStart:f,handleDragOver:h,handleDragEnd:g}}function uZ(){const e=V(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function cZ({props:e,emit:t,formItem:n}){const a=sn(),o=_n(),l=qt(),r=V(),s=V(),u=x(()=>["small"].includes(o.value)?"small":"default"),c=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),f=x(()=>{var F;return Et(e.max)?!1:(((F=e.modelValue)==null?void 0:F.length)??0)>=e.max}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),g=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),p=F=>{const N=[...e.modelValue??[],...$n(F)];t(ot,N),t(bt,N),t("add-tag",F),r.value=void 0},v=F=>{var B;const N=F.split(e.delimiter),P=N.length>1?N.map(W=>W.trim()).filter(Boolean):[];if(e.max){const W=e.max-(((B=e.modelValue)==null?void 0:B.length)??0);P.splice(W)}return P.length===1?P[0]:P},m=F=>{var G;const N=(G=F.clipboardData)==null?void 0:G.getData("text");if(e.readonly||f.value||!e.delimiter||!N)return;const{selectionStart:P=0,selectionEnd:B=0,value:W}=F.target,K=W.slice(0,P)+N+W.slice(B),j=v(K);j.length&&(p(j),t(wn,K),F.preventDefault())},y=F=>{if(f.value){r.value=void 0;return}if(!L.value){if(e.delimiter&&r.value){const N=v(r.value);N.length&&p(N)}t(wn,F.target.value)}},b=F=>{var N;if(!L.value)switch(Kt(F)){case e.trigger:F.preventDefault(),F.stopPropagation(),C();break;case Ce.numpadEnter:e.trigger===Ce.enter&&(F.preventDefault(),F.stopPropagation(),C());break;case Ce.backspace:!r.value&&((N=e.modelValue)!=null&&N.length)&&(F.preventDefault(),F.stopPropagation(),S(e.modelValue.length-1));break}},w=F=>{if(!(L.value||!k6()))switch(Kt(F)){case Ce.space:e.trigger===Ce.space&&(F.preventDefault(),F.stopPropagation(),C());break}},C=()=>{var N;const F=(N=r.value)==null?void 0:N.trim();!F||f.value||p(F)},S=F=>{const N=(e.modelValue??[]).slice(),[P]=N.splice(F,1);t(ot,N),t(bt,N),t("remove-tag",P,F)},k=()=>{r.value=void 0,t(ot,void 0),t(bt,void 0),t("clear")},T=(F,N,P)=>{const B=(e.modelValue??[]).slice(),[W]=B.splice(F,1),K=N>F&&P==="before"?-1:N{var F;(F=l.value)==null||F.focus()},A=()=>{var F;(F=l.value)==null||F.blur()},{wrapperRef:O,isFocused:I}=Cl(l,{disabled:a,beforeBlur(F){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?C():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(N=>pt(N)))}}),{isComposing:L,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U}=Pu({afterComposition:y});return fe(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,bt).catch(N=>pt(N)))}),{inputRef:l,wrapperRef:O,tagTooltipRef:s,isFocused:I,isComposing:L,inputValue:r,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:h,collapseTagList:g,handleDragged:T,handlePaste:m,handleInput:y,handleKeydown:b,handleKeyup:w,handleAddTag:C,handleRemoveTag:S,handleClear:k,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U,focus:M,blur:A}}function dZ({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:l,validateState:r,validateIcon:s,needStatusIcon:u}){const c=gl(),d=vn(),f=ve("input-tag"),h=ve("input"),g=V(),p=V(),v=x(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(l.value),f.e("wrapper"),c.class]),m=x(()=>[c.style]),y=x(()=>{var A,O;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((A=e.modelValue)!=null&&A.length)&&!d.prefix),f.is("right-space",!((O=e.modelValue)!=null&&O.length)&&!w.value)]}),b=x(()=>{var A;return e.clearable&&!a.value&&!e.readonly&&(((A=e.modelValue)==null?void 0:A.length)||o.value)&&(t.value||n.value)}),w=x(()=>d.suffix||b.value||r.value&&s.value&&u.value),C=Nt({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!p.value)return 0;const A=window.getComputedStyle(p.value);return Number.parseFloat(A.gap||"6px")},k=()=>{C.innerWidth=Number.parseFloat(window.getComputedStyle(p.value).width)},T=()=>{C.collapseItemWidth=g.value.getBoundingClientRect().width},M=x(()=>{if(!e.collapseTags)return{};const A=S(),O=A+jd,I=g.value&&e.maxCollapseTags===1?C.innerWidth-C.collapseItemWidth-A-O:C.innerWidth-O;return{maxWidth:`${Math.max(I,0)}px`}});return Zt(p,k),Zt(g,T),{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:y,showClear:b,showSuffix:w,tagStyle:M,collapseItemRef:g,innerRef:p}}const fZ=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],pZ=["textContent"];var hZ=D({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:rZ,emits:sZ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=af(),r=vn(),{form:s,formItem:u}=Bn(),{inputId:c}=Pa(a,{formItemContext:u}),d=x(()=>(s==null?void 0:s.statusIcon)??!1),f=x(()=>(u==null?void 0:u.validateState)||""),h=x(()=>f.value&&hf[f.value]),{inputRef:g,wrapperRef:p,tagTooltipRef:v,isFocused:m,inputValue:y,size:b,tagSize:w,placeholder:C,closable:S,disabled:k,showTagList:T,collapseTagList:M,handleDragged:A,handlePaste:O,handleInput:I,handleKeydown:L,handleKeyup:z,handleRemoveTag:q,handleClear:U,handleCompositionStart:F,handleCompositionUpdate:N,handleCompositionEnd:P,focus:B,blur:W}=cZ({props:a,emit:o,formItem:u}),{hovering:K,handleMouseEnter:j,handleMouseLeave:G}=uZ(),{calculatorRef:ee,inputStyle:te}=Gp(),{dropIndicatorRef:ue,showDropIndicator:ne,handleDragStart:de,handleDragOver:se,handleDragEnd:Y}=iZ({wrapperRef:p,handleDragged:A,afterDragged:B}),{ns:X,nsInput:H,containerKls:Z,containerStyle:le,innerKls:ce,showClear:ge,showSuffix:me,tagStyle:Ae,collapseItemRef:Ne,innerRef:Re}=dZ({props:a,hovering:K,isFocused:m,inputValue:y,disabled:k,size:b,validateState:f,validateIcon:h,needStatusIcon:d});return t({focus:B,blur:W}),(ye,Ee)=>(_(),$("div",{ref_key:"wrapperRef",ref:p,class:R(i(Z)),style:qe(i(le)),onMouseenter:Ee[9]||(Ee[9]=(...we)=>i(j)&&i(j)(...we)),onMouseleave:Ee[10]||(Ee[10]=(...we)=>i(G)&&i(G)(...we))},[i(r).prefix?(_(),$("div",{key:0,class:R(i(X).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref_key:"innerRef",ref:Re,class:R(i(ce))},[(_(!0),$(Ke,null,_t(i(T),(we,Ie)=>(_(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,draggable:i(S)&&e.draggable,style:qe(i(Ae)),"disable-transitions":"",onClose:ze=>i(q)(Ie),onDragstart:ze=>i(de)(ze,Ie),onDragover:ze=>i(se)(ze,Ie),onDragend:i(Y),onDrop:Ee[0]||(Ee[0]=Je(()=>{},["stop"]))},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(_(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ae(()=>[E("div",{ref_key:"collapseItemRef",ref:Ne,class:R(i(X).e("collapse-tag"))},[Q(i(ll),{closable:!1,size:i(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[St(" + "+Se(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ae(()=>[E("div",{class:R(i(X).e("input-tag-list"))},[(_(!0),$(Ke,null,_t(i(M),(we,Ie)=>(_(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:ze=>i(q)(Ie+e.maxCollapseTags)},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie+e.maxCollapseTags},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),E("div",{class:R(i(X).e("input-wrapper"))},[ft(E("input",ht({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":Ee[1]||(Ee[1]=we=>Yt(y)?y.value=we:null)},i(l),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(C),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(X).e("input"),style:i(te),onCompositionstart:Ee[2]||(Ee[2]=(...we)=>i(F)&&i(F)(...we)),onCompositionupdate:Ee[3]||(Ee[3]=(...we)=>i(N)&&i(N)(...we)),onCompositionend:Ee[4]||(Ee[4]=(...we)=>i(P)&&i(P)(...we)),onPaste:Ee[5]||(Ee[5]=(...we)=>i(O)&&i(O)(...we)),onInput:Ee[6]||(Ee[6]=(...we)=>i(I)&&i(I)(...we)),onKeydown:Ee[7]||(Ee[7]=(...we)=>i(L)&&i(L)(...we)),onKeyup:Ee[8]||(Ee[8]=(...we)=>i(z)&&i(z)(...we))}),null,16,fZ),[[d6,i(y)]]),E("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(X).e("input-calculator")),textContent:Se(i(y))},null,10,pZ)],2),ft(E("div",{ref_key:"dropIndicatorRef",ref:ue,class:R(i(X).e("drop-indicator"))},null,2),[[At,i(ne)]])],2),i(me)?(_(),$("div",{key:1,class:R(i(X).e("suffix"))},[oe(ye.$slots,"suffix"),i(ge)?(_(),ie(i(De),{key:0,class:R([i(X).e("icon"),i(X).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:i(U)},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&h.value&&d.value?(_(),ie(i(De),{key:1,class:R([i(H).e("icon"),i(H).e("validateIcon"),i(H).is("loading",f.value==="validating")])},{default:ae(()=>[(_(),ie(dt(h.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),vZ=hZ;const mZ=it(vZ),gZ=_e({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ft}}),yZ={click:e=>e instanceof MouseEvent},bZ=["href","target"];var wZ=D({name:"ElLink",__name:"link",props:gZ,emits:yZ,setup(e,{emit:t}){const n=e,a=t,o=_l("link");$o({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>Dt(n.underline)));const l=ve("link"),r=x(()=>{var c;return[l.b(),l.m(n.type??((c=o.value)==null?void 0:c.type)??"default"),l.is("disabled",n.disabled),l.is("underline",s.value==="always"),l.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=x(()=>{var c;return Dt(n.underline)?n.underline?"hover":"never":n.underline??((c=o.value)==null?void 0:c.underline)??"hover"});function u(c){n.disabled||a("click",c)}return(c,d)=>(_(),$("a",{class:R(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(_(),$("span",{key:1,class:R(i(l).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,bZ))}}),CZ=wZ;const _Z=it(CZ),Uh="rootMenu",yd="subMenu:";function $w(e,t){const n=x(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:x(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function SZ(e){return x(()=>{const t=e.backgroundColor;return t?new pn(t).shade(20).toString():""})}const Aw=(e,t)=>{const n=ve("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":SZ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},xZ=_e({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ft},expandOpenIcon:{type:Ft},collapseCloseIcon:{type:Ft},collapseOpenIcon:{type:Ft}}),g0="ElSubMenu";var Yh=D({name:g0,props:xZ,setup(e,{slots:t,expose:n}){const a=vt(),{indexPath:o,parentMenu:l}=$w(a,x(()=>e.index)),r=ve("menu"),s=ve("sub-menu"),u=Pe(Uh);u||tn(g0,"can not inject root menu");const c=Pe(`${yd}${l.value.uid}`);c||tn(g0,"can not inject sub menu");const d=V({}),f=V({});let h;const g=V(!1),p=V(),v=V(),m=x(()=>c.level===0),y=x(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),b=x(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:po:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Un),w=x(()=>{const j=e.teleported;return Et(j)?m.value:j}),C=x(()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),S=x(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=x(()=>u.openedMenus.includes(e.index)),T=x(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:j})=>j)),M=x(()=>u.props.mode),A=x(()=>u.props.persistent),O=Nt({index:e.index,indexPath:o,active:T}),I=Aw(u.props,c.level+1),L=x(()=>e.popperOffset??u.props.popperOffset),z=x(()=>e.popperClass??u.props.popperClass),q=x(()=>e.popperStyle??u.props.popperStyle),U=x(()=>e.showTimeout??u.props.showTimeout),F=x(()=>e.hideTimeout??u.props.hideTimeout),N=()=>{var j,G,ee;return(ee=(G=(j=v.value)==null?void 0:j.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:ee.destroy()},P=j=>{j||N()},B=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},W=(j,G=U.value)=>{var ee;if(j.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=ks(()=>{u.openMenu(e.index,o.value)},G),w.value&&((ee=l.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),j.type==="mouseenter"&&j.target&&Le(()=>{Eu(j.target,{preventScroll:!0})})}},K=(j=!1)=>{var G;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=ks(()=>!g.value&&u.closeMenu(e.index,o.value),F.value),w.value&&j&&((G=c.handleMouseleave)==null||G.call(c,!0))};fe(()=>u.props.collapse,j=>P(!!j));{const j=ee=>{f.value[ee.index]=ee},G=ee=>{delete f.value[ee.index]};wt(`${yd}${a.uid}`,{addSubMenu:j,removeSubMenu:G,handleMouseleave:K,mouseInChild:g,level:c.level+1})}return n({opened:k}),gt(()=>{u.addSubMenu(O),c.addSubMenu(O)}),Lt(()=>{c.removeSubMenu(O),u.removeSubMenu(O)}),()=>{var ee;const j=[(ee=t.title)==null?void 0:ee.call(t),Ye(De,{class:s.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Be(b.value)?Ye(a.appContext.components[b.value]):Ye(b.value)})],G=u.isMenuPopup?Ye(Vn,{ref:v,visible:k.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:A.value,popperClass:z.value,popperStyle:q.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:C.value,gpuAcceleration:!1},{content:()=>{var te;return Ye("div",{class:[r.m(M.value),r.m("popup-container"),z.value],onMouseenter:ue=>W(ue,100),onMouseleave:()=>K(!0),onFocus:ue=>W(ue,100)},[Ye("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:I.value},[(te=t.default)==null?void 0:te.call(t)])])},default:()=>Ye("div",{class:s.e("title"),onClick:B},j)}):Ye(Ke,{},[Ye("div",{class:s.e("title"),ref:p,onClick:B},j),Ye(yf,{},{default:()=>{var te;return ft(Ye("ul",{role:"menu",class:[r.b(),r.m("inline")],style:I.value},[(te=t.default)==null?void 0:te.call(t)]),[[At,k.value]])}})]);return Ye("li",{class:[s.b(),s.is("active",T.value),s.is("opened",k.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:W,onMouseleave:()=>K(),onFocus:W},[G])}}}),kZ=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener("keydown",n=>{const a=Kt(n);let o=!1;switch(a){case Ce.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case Ce.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case Ce.tab:Ec(e,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},EZ=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new kZ(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Kt(e);let n=!1;switch(t){case Ce.down:Ec(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case Ce.up:Ec(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Ce.tab:Ec(e.currentTarget,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},TZ=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new EZ(n,e)})}},MZ=D({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ve("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ba(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){aa(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Ao(a,t.m("collapse"))?(aa(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ba(a,t.m("collapse"))):(Ba(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),aa(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ba(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(_(),ie(Fn,ht({mode:"out-in"},n),{default:ae(()=>[oe(a.$slots,"default")]),_:3},16))}}),OZ=MZ;const $Z=_e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:J(Array),default:()=>ln([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ft,default:()=>Cy},popperEffect:{type:J(String),default:"dark"},popperClass:String,popperStyle:{type:J([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),y0=e=>be(e)&&e.every(t=>Be(t)),AZ={close:(e,t)=>Be(e)&&y0(t),open:(e,t)=>Be(e)&&y0(t),select:(e,t,n,a)=>Be(e)&&y0(t)&<(n)&&(Et(a)||a instanceof Promise)},_g=64;var RZ=D({name:"ElMenu",props:$Z,emits:AZ,setup(e,{emit:t,slots:n,expose:a}){const o=vt(),l=o.appContext.config.globalProperties.$router,r=V(),s=V(),u=ve("menu"),c=ve("sub-menu");let d=_g;const f=V(-1),h=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=V(e.defaultActive),p=V({}),v=V({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const N=g.value&&p.value[g.value];!N||e.mode==="horizontal"||e.collapse||N.indexPath.forEach(P=>{const B=v.value[P];B&&b(P,B.indexPath)})},b=(N,P)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(B=>P.includes(B))),h.value.push(N),t("open",N,P))},w=N=>{const P=h.value.indexOf(N);P!==-1&&h.value.splice(P,1)},C=(N,P)=>{w(N),t("close",N,P)},S=({index:N,indexPath:P})=>{h.value.includes(N)?C(N,P):b(N,P)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:P,indexPath:B}=N;if(!(yn(P)||yn(B)))if(e.router&&l){const W=N.route||P,K=l.push(W).then(j=>(j||(g.value=P),j));t("select",P,B,{index:P,indexPath:B,route:W},K)}else g.value=P,t("select",P,B,{index:P,indexPath:B})},T=N=>{var B;const P=p.value;g.value=((B=P[N]||g.value&&P[g.value]||P[e.defaultActive])==null?void 0:B.index)??N},M=N=>{const P=getComputedStyle(N),B=Number.parseInt(P.marginLeft,10),W=Number.parseInt(P.marginRight,10);return N.offsetWidth+B+W||0},A=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(r.value),B=Number.parseInt(P.paddingLeft,10),W=Number.parseInt(P.paddingRight,10),K=r.value.clientWidth-B-W;let j=0,G=0;return N.forEach((ee,te)=>{j+=M(ee),j<=K-d&&(G=te+1)}),G===N.length?-1:G},O=N=>v.value[N].indexPath,I=(N,P=33.34)=>{let B;return()=>{B&&clearTimeout(B),B=setTimeout(()=>{N()},P)}};let L=!0;const z=()=>{const N=xn(s);if(N&&(d=M(N)||_g),f.value===A())return;const P=()=>{f.value=-1,Le(()=>{f.value=A()})};L?P():I(P)(),L=!1};fe(()=>e.defaultActive,N=>{p.value[N]||(g.value=""),T(N)}),fe(()=>e.collapse,N=>{N&&(h.value=[])}),fe(p.value,y);let q;da(()=>{e.mode==="horizontal"&&e.ellipsis?q=Zt(r,z).stop:q==null||q()});const U=V(!1);{const N=K=>{v.value[K.index]=K},P=K=>{delete v.value[K.index]};wt(Uh,Nt({props:e,openedMenus:h,items:p,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:K=>{p.value[K.index]=K},removeMenuItem:K=>{delete p.value[K.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:C,handleMenuItemClick:k,handleSubMenuClick:S})),wt(`${yd}${o.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:U,level:0})}gt(()=>{e.mode==="horizontal"&&new TZ(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:B}=v.value[P];B.forEach(W=>b(W,B))},close:w,updateActiveIndex:T,handleResize:z});const F=Aw(e,0);return()=>{var K;let N=((K=n.default)==null?void 0:K.call(n))??[];const P=[];if(e.mode==="horizontal"&&r.value){const j=Ta(N).filter(te=>(te==null?void 0:te.shapeFlag)!==8),G=f.value===-1?j:j.slice(0,f.value),ee=f.value===-1?[]:j.slice(f.value);ee!=null&&ee.length&&e.ellipsis&&(N=G,P.push(Ye(Yh,{ref:s,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ye(De,{class:c.e("icon-more")},{default:()=>Ye(e.ellipsisIcon)}),default:()=>ee})))}const B=e.closeOnClickOutside?[[jl,()=>{h.value.length&&(U.value||(h.value.forEach(j=>t("close",j,O(j))),h.value=[]))}]]:[],W=ft(Ye("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...N,...P]),B);return e.collapseTransition&&e.mode==="vertical"?Ye(OZ,()=>W):W}}});const NZ=_e({index:{type:J([String,null]),default:null},route:{type:J([String,Object])},disabled:Boolean}),PZ={click:e=>Be(e.index)&&be(e.indexPath)},IZ={title:String},mc="ElMenuItem";var LZ=D({name:mc,__name:"menu-item",props:NZ,emits:PZ,setup(e,{expose:t,emit:n}){const a=e,o=n;ya(a.index)&&pt(mc,'Missing required prop: "index"');const l=vt(),r=Pe(Uh),s=ve("menu"),u=ve("menu-item");r||tn(mc,"can not inject root menu");const{parentMenu:c,indexPath:d}=$w(l,Bt(a,"index")),f=Pe(`${yd}${c.value.uid}`);f||tn(mc,"can not inject sub menu");const h=x(()=>a.index===r.activeIndex),g=Nt({index:a.index,indexPath:d,active:h}),p=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return gt(()=>{f.addSubMenu(g),r.addMenuItem(g)}),Lt(()=>{f.removeSubMenu(g),r.removeMenuItem(g)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:s,nsMenuItem:u,handleClick:p}),(v,m)=>(_(),$("li",{class:R([i(u).b(),i(u).is("active",h.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[i(c).type.name==="ElMenu"&&i(r).props.collapse&&v.$slots.title?(_(),ie(i(Vn),{key:0,effect:i(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(r).props.popperClass,"popper-style":i(r).props.popperStyle,persistent:i(r).props.persistent,"focus-on-target":""},{content:ae(()=>[oe(v.$slots,"title")]),default:ae(()=>[E("div",{class:R(i(s).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(_(),$(Ke,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),Rw=LZ,VZ=D({name:"ElMenuItemGroup",__name:"menu-item-group",props:IZ,setup(e){const t=ve("menu-item-group");return(n,a)=>(_(),$("li",{class:R(i(t).b())},[E("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(_(),$(Ke,{key:0},[St(Se(e.title),1)],64))],2),E("ul",null,[oe(n.$slots,"default")])],2))}}),Nw=VZ;const BZ=it(RZ,{MenuItem:Rw,MenuItemGroup:Nw,SubMenu:Yh}),zZ=nn(Rw),DZ=nn(Nw),HZ=nn(Yh),FZ=_e({icon:{type:Ft,default:()=>fy},title:String,content:{type:String,default:""}}),KZ={back:()=>!0},WZ=["aria-label"];var jZ=D({name:"ElPageHeader",__name:"page-header",props:FZ,emits:KZ,setup(e,{emit:t}){const n=t,{t:a}=kt(),o=ve("page-header");function l(){n("back")}return(r,s)=>(_(),$("div",{class:R([i(o).b(),i(o).is("contentful",!!r.$slots.default),{[i(o).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[i(o).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(_(),$("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(r.$slots,"breadcrumb")],2)):re("v-if",!0),E("div",{class:R(i(o).e("header"))},[E("div",{class:R(i(o).e("left"))},[E("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:l},[e.icon||r.$slots.icon?(_(),$("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(r.$slots,"icon",{},()=>[e.icon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1})):re("v-if",!0)])],10,WZ)):re("v-if",!0),E("div",{class:R(i(o).e("title"))},[oe(r.$slots,"title",{},()=>[St(Se(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),Q(i(yw),{direction:"vertical"}),E("div",{class:R(i(o).e("content"))},[oe(r.$slots,"content",{},()=>[St(Se(e.content),1)])],2)],2),r.$slots.extra?(_(),$("div",{key:0,class:R(i(o).e("extra"))},[oe(r.$slots,"extra")],2)):re("v-if",!0)],2),r.$slots.default?(_(),$("div",{key:1,class:R(i(o).e("main"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),qZ=jZ;const UZ=it(qZ),Pw=Symbol("elPaginationKey"),YZ=_e({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ft}}),GZ={click:e=>e instanceof MouseEvent},XZ=["disabled","aria-label","aria-disabled"],JZ={key:0};var ZZ=D({name:"ElPaginationPrev",__name:"prev",props:YZ,emits:GZ,setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage<=1);return(o,l)=>(_(),$("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.prevText?(_(),$("span",JZ,Se(o.prevText),1)):(_(),ie(i(De),{key:1},{default:ae(()=>[(_(),ie(dt(o.prevIcon)))]),_:1}))],8,XZ))}}),QZ=ZZ;const eQ=_e({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ft}}),tQ=["disabled","aria-label","aria-disabled"],nQ={key:0};var aQ=D({name:"ElPaginationNext",__name:"next",props:eQ,emits:["click"],setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(_(),$("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.nextText?(_(),$("span",nQ,Se(o.nextText),1)):(_(),ie(i(De),{key:1},{default:ae(()=>[(_(),ie(dt(o.nextIcon)))]),_:1}))],8,tQ))}}),oQ=aQ;const Gh=()=>Pe(Pw,{}),lQ=_e({pageSize:{type:Number,required:!0},pageSizes:{type:J(Array),default:()=>ln([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:io},appendSizeTo:String});var rQ=D({name:"ElPaginationSizes",__name:"sizes",props:lQ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("pagination"),r=Gh(),s=V(n.pageSize);fe(()=>n.pageSizes,(d,f)=>{on(d,f)||be(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),fe(()=>n.pageSize,d=>{s.value=d});const u=x(()=>n.pageSizes);function c(d){var f;d!==s.value&&(s.value=d,(f=r.handleSizeChange)==null||f.call(r,Number(d)))}return(d,f)=>(_(),$("span",{class:R(i(l).e("sizes"))},[Q(i(Yl),{"model-value":s.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ae(()=>[(_(!0),$(Ke,null,_t(u.value,h=>(_(),ie(i(pd),{key:h,value:h,label:h+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),sQ=rQ;const iQ=_e({size:{type:String,values:io}}),uQ=["disabled"];var cQ=D({name:"ElPaginationJumper",__name:"jumper",props:iQ,setup(e){const{t}=kt(),n=ve("pagination"),{pageCount:a,disabled:o,currentPage:l,changeEvent:r}=Gh(),s=V(),u=x(()=>s.value??(l==null?void 0:l.value));function c(f){s.value=f?+f:""}function d(f){f=Math.trunc(+f),r==null||r(f),s.value=void 0}return(f,h)=>(_(),$("span",{class:R(i(n).e("jump")),disabled:i(o)},[E("span",{class:R([i(n).e("goto")])},Se(i(t)("el.pagination.goto")),3),Q(i(Dn),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),E("span",{class:R([i(n).e("classifier")])},Se(i(t)("el.pagination.pageClassifier")),3)],10,uQ))}}),dQ=cQ;const fQ=_e({total:{type:Number,default:1e3}}),pQ=["disabled"];var hQ=D({name:"ElPaginationTotal",__name:"total",props:fQ,setup(e){const{t}=kt(),n=ve("pagination"),{disabled:a}=Gh();return(o,l)=>(_(),$("span",{class:R(i(n).e("total")),disabled:i(a)},Se(i(t)("el.pagination.total",{total:o.total})),11,pQ))}}),vQ=hQ;const mQ=_e({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),gQ=["aria-current","aria-label","tabindex"],yQ=["tabindex","aria-label"],bQ=["aria-current","aria-label","tabindex"],wQ=["tabindex","aria-label"],CQ=["aria-current","aria-label","tabindex"];var _Q=D({name:"ElPaginationPager",__name:"pager",props:mQ,emits:[bt],setup(e,{emit:t}){const n=e,a=t,o=ve("pager"),l=ve("icon"),{t:r}=kt(),s=V(!1),u=V(!1),c=V(!1),d=V(!1),f=V(!1),h=V(!1),g=x(()=>{const S=n.pagerCount,k=(S-1)/2,T=Number(n.currentPage),M=Number(n.pageCount);let A=!1,O=!1;M>S&&(T>S-k&&(A=!0),T["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),v=x(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),m=x(()=>n.disabled?-1:0);fe(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,k,T])=>{const M=(k-1)/2;let A=!1,O=!1;S>k&&(A=T>k-M,O=TM&&(T=M)),T!==A&&a(bt,T)}return(S,k)=>(_(),$("ul",{class:R(i(o).b()),onClick:C,onKeyup:an(w,["enter"])},[S.pageCount>0?(_(),$("li",{key:0,class:R([[i(o).is("active",S.currentPage===1),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":i(r)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,gQ)):re("v-if",!0),s.value?(_(),$("li",{key:1,class:R(p.value),tabindex:m.value,"aria-label":i(r)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>y(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>b(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!S.disabled?(_(),ie(i(fl),{key:0})):(_(),ie(i(m2),{key:1}))],42,yQ)):re("v-if",!0),(_(!0),$(Ke,null,_t(g.value,T=>(_(),$("li",{key:T,class:R([[i(o).is("active",S.currentPage===T),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":i(r)("el.pagination.currentPage",{pager:T}),tabindex:m.value},Se(T),11,bQ))),128)),u.value?(_(),$("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(r)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>y()),onMouseleave:k[5]||(k[5]=T=>d.value=!1),onFocus:k[6]||(k[6]=T=>b()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(d.value||h.value)&&!S.disabled?(_(),ie(i(pl),{key:0})):(_(),ie(i(m2),{key:1}))],42,wQ)):re("v-if",!0),S.pageCount>1?(_(),$("li",{key:3,class:R([[i(o).is("active",S.currentPage===S.pageCount),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":i(r)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:m.value},Se(S.pageCount),11,CQ)):re("v-if",!0)],34))}}),SQ=_Q;const la=e=>typeof e!="number",xQ=_e({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>He(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:J(Array),default:()=>ln([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ft,default:()=>zo},nextText:{type:String,default:""},nextIcon:{type:Ft,default:()=>Un},teleported:{type:Boolean,default:!0},small:Boolean,size:kn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),kQ={"update:current-page":e=>He(e),"update:page-size":e=>He(e),"size-change":e=>He(e),change:(e,t)=>He(e)&&He(t),"current-change":e=>He(e),"prev-click":e=>He(e),"next-click":e=>He(e)},Sg="ElPagination";var EQ=D({name:Sg,props:xQ,emits:kQ,setup(e,{emit:t,slots:n}){const{t:a}=kt(),o=ve("pagination"),l=vt().vnode.props||{},r=iy(),s=x(()=>e.small?"small":e.size??r.value);$o({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,d=x(()=>{if(la(e.total)&&la(e.pageCount)||!la(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(la(e.pageCount)){if(!la(e.total)&&!la(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=V(la(e.defaultPageSize)?10:e.defaultPageSize),h=V(la(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=x({get(){return la(e.pageSize)?f.value:e.pageSize},set(S){la(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),p=x(()=>{let S=0;return la(e.pageCount)?la(e.total)||(S=Math.max(1,Math.ceil(e.total/g.value))):S=e.pageCount,S}),v=x({get(){return la(e.currentPage)?h.value:e.currentPage},set(S){let k=S;S<1?k=1:S>p.value&&(k=p.value),la(e.currentPage)&&(h.value=k),u&&(t("update:current-page",k),t("current-change",k))}});fe(p,S=>{v.value>S&&(v.value=S)}),fe([v,g],S=>{t(bt,...S)},{flush:"post"});function m(S){v.value=S}function y(S){g.value=S;const k=p.value;v.value>k&&(v.value=k)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function w(){e.disabled||(v.value+=1,t("next-click",v.value))}function C(S,k){S&&(S.props||(S.props={}),S.props.class=[S.props.class,k].join(" "))}return wt(Pw,{pageCount:p,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:y}),()=>{var I;if(!d.value)return pt(Sg,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const S=[],k=[],T=Ye("div",{class:o.e("rightwrapper")},k),M={prev:Ye(QZ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Ye(dQ,{size:s.value}),pager:Ye(SQ,{currentPage:v.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Ye(oQ,{disabled:e.disabled,currentPage:v.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:Ye(sQ,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:((I=n==null?void 0:n.default)==null?void 0:I.call(n))??null,total:Ye(vQ,{total:la(e.total)?0:e.total})},A=e.layout.split(",").map(L=>L.trim());let O=!1;return A.forEach(L=>{if(L==="->"){O=!0;return}O?k.push(M[L]):S.push(M[L])}),C(S[0],o.is("first")),C(S[S.length-1],o.is("last")),O&&k.length>0&&(C(k[0],o.is("first")),C(k[k.length-1],o.is("last")),S.push(T)),Ye("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},S)}}});const TQ=it(EQ),MQ=_e({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:S2,default:"primary"},cancelButtonType:{type:String,values:S2,default:"text"},icon:{type:Ft,default:()=>Sy},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,persistent:Ht.persistent,width:{type:[String,Number],default:150},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef}),OQ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var $Q=D({name:"ElPopconfirm",__name:"popconfirm",props:MQ,emits:OQ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("popconfirm"),s=V(),u=V(),c=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),d=()=>{var y,b;(b=(y=u.value)==null?void 0:y.focus)==null||b.call(y)},f=()=>{var y,b;(b=(y=s.value)==null?void 0:y.onClose)==null||b.call(y)},h=x(()=>({width:rn(a.width)})),g=y=>{o("confirm",y),f()},p=y=>{o("cancel",y),f()},v=x(()=>a.confirmButtonText||l("el.popconfirm.confirmButtonText")),m=x(()=>a.cancelButtonText||l("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(y,b)=>(_(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s,trigger:"click",effect:e.effect},y.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ae(()=>[E("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(r).b())},[E("div",{class:R(i(r).e("main"))},[!e.hideIcon&&e.icon?(_(),ie(i(De),{key:0,class:R(i(r).e("icon")),style:qe({color:e.iconColor})},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),St(" "+Se(e.title),1)],2),E("div",{class:R(i(r).e("action"))},[oe(y.$slots,"actions",{confirm:g,cancel:p},()=>[Q(i(An),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:p},{default:ae(()=>[St(Se(m.value),1)]),_:1},8,["type","text"]),Q(i(An),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ae(()=>[St(Se(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),AQ=$Q;const RQ=it(AQ),NQ=_e({trigger:Po.trigger,triggerKeys:Po.triggerKeys,placement:Ic.placement,disabled:Po.disabled,visible:Ht.visible,transition:Ht.transition,popperOptions:Ic.popperOptions,tabindex:Ic.tabindex,content:Ht.content,popperStyle:Ht.popperStyle,popperClass:Ht.popperClass,enterable:{...Ht.enterable,default:!0},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,appendTo:Ht.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),PQ={"update:visible":e=>Dt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},IQ="onUpdate:visible";var LQ=D({name:"ElPopover",__name:"popover",props:NQ,emits:PQ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>a[IQ]),r=ve("popover"),s=V(),u=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),c=x(()=>[{width:rn(a.width)},a.popperStyle]),d=x(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),f=x(()=>a.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var y;(y=s.value)==null||y.hide()},g=()=>{o("before-enter")},p=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:h}),(y,b)=>(_(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":l.value,onBeforeShow:g,onBeforeHide:p,onShow:v,onHide:m}),{content:ae(()=>[e.title?(_(),$("div",{key:0,class:R(i(r).e("title")),role:"title"},Se(e.title),3)):re("v-if",!0),oe(y.$slots,"default",{hide:h},()=>[St(Se(e.content),1)])]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),VQ=LQ;const xg=(e,t)=>{var a;const n=(a=t.arg||t.value)==null?void 0:a.popperRef;n&&(n.triggerRef=e)};var BQ={mounted(e,t){xg(e,t)},updated(e,t){xg(e,t)}};const zQ="popover",Iw=W$(BQ,zQ),DQ=it(VQ,{directive:Iw}),HQ=_e({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:J(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:J([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:J(Function),default:e=>`${e}%`}}),FQ=["aria-valuenow"],KQ={viewBox:"0 0 100 100"},WQ=["d","stroke","stroke-linecap","stroke-width"],jQ=["d","stroke","opacity","stroke-linecap","stroke-width"],qQ={key:0};var UQ=D({name:"ElProgress",__name:"progress",props:HQ,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ve("progress"),o=x(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},C=b(n.percentage);return C.includes("gradient")?w.background=C:w.backgroundColor=C,w}),l=x(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),s=x(()=>{const w=r.value,C=n.type==="dashboard";return` M 50 50 - m 0 ${_?"":"-"}${w} - a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2} - a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2} - `}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),p=x(()=>n.status==="warning"?Lu:n.type==="line"?n.status==="success"?df:ho:n.status==="success"?Gs:Na),v=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=x(()=>n.format(n.percentage));function y(w){const _=100/w.length;return w.map((S,k)=>Be(S)?{color:S,percentage:(k+1)*_}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:_}=n;if(Fe(_))return _(w);if(Be(_))return _;{const k=y(_);for(const T of k)if(T.percentage>w)return T.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,_)=>(C(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(C(),$("div",{key:0,class:R(i(a).b("bar"))},[E("div",{class:R(i(a).be("bar","outer")),style:qe({height:`${e.strokeWidth}px`})},[E("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:qe(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(C(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(w.$slots,"default",{percentage:e.percentage},()=>[E("span",null,Se(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(C(),$("div",{key:1,class:R(i(a).b("circle")),style:qe({height:`${e.width}px`,width:`${e.width}px`})},[(C(),$("svg",KQ,[E("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:qe(f.value)},null,14,WQ),E("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:qe(h.value)},null,14,jQ)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(C(),$("div",{key:2,class:R(i(a).e("text")),style:qe({fontSize:`${v.value}px`})},[oe(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(p.value)))]),_:1})):(C(),$("span",qQ,Se(m.value),1))])],6)):re("v-if",!0)],10,FQ))}}),YQ=UQ;const Iw=it(YQ),GQ=_e({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>on(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[gi,gi,gi]},voidIcon:{type:Ft,default:()=>Oy},disabledVoidIcon:{type:Ft,default:()=>gi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>on(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:kn,clearable:Boolean,...oa(["ariaLabel"])}),XQ={[bt]:e=>He(e),[ot]:e=>He(e)},JQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],ZQ=["onMousemove","onClick"];var QQ=D({name:"ElRate",__name:"rate",props:GQ,emits:XQ,setup(e,{expose:t,emit:n}){function a(P,B){const K=j=>lt(j),W=B[Object.keys(B).map(j=>+j).filter(j=>{const G=B[j];return K(G)&&G.excluded?Pj-G)[0]];return K(W)&&W.value||W}const o=e,l=n,r=Pe(Do,void 0),s=_n(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=Pa(o,{formItemContext:r}),f=V(fr(o.modelValue,0,o.max)),h=V(-1),g=V(!0),p=V([]),v=x(()=>p.value.map(P=>P.$el.clientWidth)),m=x(()=>[u.b(),u.m(s.value)]),y=rn(),b=x(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":k.value})),w=x(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),_=x(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=x(()=>be(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),k=x(()=>{const P=a(f.value,S.value);return lt(P)?"":P}),T=x(()=>{let P="";return y.value?P=`${_.value}%`:o.allowHalf&&(P="50%"),{color:k.value,width:P}}),M=x(()=>{let P=be(o.icons)?[...o.icons]:{...o.icons};return P=Oo(P),be(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),A=x(()=>a(o.modelValue,M.value)),O=x(()=>y.value?Be(o.disabledVoidIcon)?o.disabledVoidIcon:Oo(o.disabledVoidIcon):Be(o.voidIcon)?o.voidIcon:Oo(o.voidIcon)),I=x(()=>a(f.value,M.value));function L(P){const B=y.value&&_.value>0&&P-1o.modelValue,K=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return B||K}function z(P){o.clearable&&P===o.modelValue&&(P=0),l(ot,P),o.modelValue!==P&&l(bt,P)}function q(P){y.value||(o.allowHalf&&g.value?z(f.value):z(P))}function U(P){if(y.value)return;const B=Kt(P),K=o.allowHalf?.5:1;let W=f.value;switch(B){case Ce.up:case Ce.right:W+=K;break;case Ce.left:case Ce.down:W-=K;break}if(W=fr(W,0,o.max),W!==f.value)return P.stopPropagation(),P.preventDefault(),l(ot,W),l(bt,W),W}function F(P,B){y.value||(o.allowHalf&&B?(g.value=B.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,h.value=P)}function N(){y.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=fr(o.modelValue,0,o.max),h.value=-1)}return fe(()=>o.modelValue,P=>{f.value=fr(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||l(ot,0),t({setCurrentValue:F,resetCurrentValue:N}),(P,B)=>{var K;return C(),$("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(y))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?(K=i(r))==null?void 0:K.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:qe(b.value),tabindex:i(y)?void 0:0,"aria-disabled":i(y),onKeydown:U},[(C(!0),$(Ke,null,_t(e.max,(W,j)=>(C(),$("span",{key:j,class:R(i(u).e("item")),onMousemove:G=>F(W,G),onMouseleave:N,onClick:G=>q(W)},[Q(i(De),{ref_for:!0,ref_key:"iconRefs",ref:p,class:R([i(u).e("icon"),{hover:h.value===W},i(u).is("active",W<=f.value),i(u).is("focus-visible",W===Math.ceil(f.value||1))])},{default:ae(()=>[ft((C(),ie(dt(I.value),null,null,512)),[[$t,!L(W)&&W<=f.value]]),ft((C(),ie(dt(O.value),null,null,512)),[[$t,!L(W)&&W>f.value]]),ft((C(),ie(dt(O.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[$t,L(W)]]),ft(Q(i(De),{style:qe(T.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ae(()=>[(C(),ie(dt(A.value)))]),_:1},8,["style","class"]),[[$t,L(W)]])]),_:2},1032,["class"])],42,ZQ))),128)),e.showText||e.showScore?(C(),$("span",{key:0,class:R(i(u).e("text")),style:qe({color:e.textColor})},Se(w.value),7)):re("v-if",!0)],46,JQ)}}}),eee=QQ;const tee=it(eee),ur={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},xg={[ur.primary]:Ns,[ur.success]:hy,[ur.warning]:Lu,[ur.error]:ff,[ur.info]:Ns},nee=_e({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var aee=D({name:"ElResult",__name:"result",props:nee,setup(e){const t=e,n=ve("result"),a=x(()=>{const o=t.icon,l=o&&ur[o]?ur[o]:"icon-info";return{class:l,component:xg[l]||xg["icon-info"]}});return(o,l)=>(C(),$("div",{class:R(i(n).b())},[E("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(C(),ie(dt(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(C(),$("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[E("p",null,Se(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(C(),$("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[E("p",null,Se(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(C(),$("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),oee=aee;const lee=it(oee),R2=50,yd="itemRendered",bd="scroll",ss="forward",wd="backward",za="auto",wf="smart",lu="start",To="center",ru="end",Ls="horizontal",Lw="vertical",ree="ltr",ms="rtl",su="negative",Yh="positive-ascending",Gh="positive-descending",see={[Ls]:"left",[Lw]:"top"},iee=20,N2=fo({type:J([Number,Function]),required:!0}),P2=fo({type:Number}),I2=fo({type:Number,default:2}),uee=fo({type:String,values:["ltr","rtl"],default:"ltr"}),L2=fo({type:Number,default:0}),Cd=fo({type:Number,required:!0}),Vw=fo({type:String,values:["horizontal","vertical"],default:Lw}),Bw=_e({className:{type:String,default:""},containerElement:{type:J([String,Object]),default:"div"},data:{type:J(Array),default:()=>on([])},direction:uee,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:J(Object),default:()=>({})},style:{type:J([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),zw=_e({cache:I2,estimatedItemSize:P2,layout:Vw,initScrollOffset:L2,total:Cd,itemSize:N2,...Bw}),V2={type:Number,default:6},Dw={type:Number,default:0},Hw={type:Number,default:2},xr=_e({columnCache:I2,columnWidth:N2,estimatedColumnWidth:P2,estimatedRowHeight:P2,initScrollLeft:L2,initScrollTop:L2,itemKey:{type:J(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:I2,rowHeight:N2,totalColumn:Cd,totalRow:Cd,hScrollbarSize:V2,vScrollbarSize:V2,scrollbarStartGap:Dw,scrollbarEndGap:Hw,role:String,...Bw}),Fw=_e({alwaysOn:Boolean,class:String,layout:Vw,total:Cd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:V2,startGap:Dw,endGap:Hw,visible:Boolean}),mr=(e,t)=>ee===ree||e===ms||e===Ls,kg=e=>e===ms;let Qr=null;function _d(e=!1){if(Qr===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Qr=Gh:(t.scrollLeft=1,t.scrollLeft===0?Qr=su:Qr=Yh),document.body.removeChild(t),Qr}return Qr}function cee({move:e,size:t,bar:n},a){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,a==="horizontal"?o.height="100%":o.width="100%",o}var Eg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dee(e,t){return!!(e===t||Eg(e)&&Eg(t))}function fee(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=vt().proxy.$props;return x(()=>{const t=(n,a,o)=>({});return e.perfMode?Zd(t):pee(t)})},Ww=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{cl(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===Ls?c:d;r(f)||(l+=f,!qd()&&f!==0&&u.preventDefault(),o=Fa(()=>{a(l),l=0}))}}},B2=D({name:"ElVirtualScrollBar",props:Fw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=ve("virtual-scrollbar"),o=ve("scrollbar"),l=V(),r=V();let s=null,u=null;const c=Rt({isDragging:!1,traveled:0}),d=x(()=>Uy[e.layout]),f=x(()=>e.clientSize-i(n)),h=x(()=>({position:"absolute",width:`${Ls===e.layout?f.value:e.scrollbarSize}px`,height:`${Ls===e.layout?e.scrollbarSize:f.value}px`,[see[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=x(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,iee),T))}),p=x(()=>{if(!Number.isFinite(g.value))return{display:"none"};const k=`${g.value}px`;return cee({bar:d.value,size:k,move:c.traveled},e.layout)}),v=x(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",w);const k=i(r);k&&(u=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",_,{passive:!0}),k.addEventListener("touchend",w))},y=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const k=i(r);k&&(k.removeEventListener("touchmove",_),k.removeEventListener("touchend",w))},b=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[d.value.axis]=k.currentTarget[d.value.offset]-(k[d.value.client]-k.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),y()},_=k=>{const{isDragging:T}=c;if(!T||!r.value||!l.value)return;const M=c[d.value.axis];if(!M)return;cl(s);const A=(l.value.getBoundingClientRect()[d.value.direction]-k[d.value.client])*-1-(r.value[d.value.offset]-M);s=Fa(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=k=>{const T=Math.abs(k.target.getBoundingClientRect()[d.value.direction]-k[d.value.client])-r.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(T,v.value)),t("scroll",T,v.value)};return fe(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*v.value))}),Lt(()=>{y()}),()=>Ye("div",{role:"presentation",ref:l,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Je(S,["stop","prevent"]),onTouchstartPrevent:b},Ye("div",{ref:r,class:o.e("thumb"),style:p.value,onMousedown:b},[]))}}),jw=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:s,clearCache:u,validateProps:c})=>D({name:e??"ElVirtualList",props:zw,emits:[yd,bd],setup(d,{emit:f,expose:h}){c(d);const g=vt(),p=ve("vl"),v=V(s(d,g)),m=Kw(),y=V(),b=V(),w=V(),_=V({isScrolling:!1,scrollDir:"forward",scrollOffset:He(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=x(()=>{const{total:G,cache:ee}=d,{isScrolling:te,scrollDir:ue,scrollOffset:ne}=i(_);if(G===0)return[0,0,0,0];const de=l(d,ne,i(v)),se=r(d,de,ne,i(v)),Y=!te||ue===wd?Math.max(1,ee):1,X=!te||ue===ss?Math.max(1,ee):1;return[Math.max(0,de-Y),Math.max(0,Math.min(G-1,se+X)),de,se]}),k=x(()=>o(d,i(v))),T=x(()=>iu(d.layout)),M=x(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:He(d.height)?`${d.height}px`:d.height,width:He(d.width)?`${d.width}px`:d.width},d.style]),A=x(()=>{const G=i(k),ee=i(T);return{height:ee?"100%":`${G}px`,pointerEvents:i(_).isScrolling?"none":void 0,width:ee?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),O=x(()=>T.value?d.width:d.height),{onWheel:I}=Ww({atStartEdge:x(()=>_.value.scrollOffset<=0),atEndEdge:x(()=>_.value.scrollOffset>=k.value),layout:x(()=>d.layout)},G=>{var ee,te;(te=(ee=w.value).onMouseUp)==null||te.call(ee),N(Math.min(_.value.scrollOffset+G,k.value-O.value))});Vt(y,"wheel",I,{passive:!1});const L=()=>{const{total:G}=d;if(G>0){const[ne,de,se,Y]=i(S);f(yd,ne,de,se,Y)}const{scrollDir:ee,scrollOffset:te,updateRequested:ue}=i(_);f(bd,ee,te,ue)},z=G=>{const{clientHeight:ee,scrollHeight:te,scrollTop:ue}=G.currentTarget,ne=i(_);if(ne.scrollOffset===ue)return;const de=Math.max(0,Math.min(ue,te-ee));_.value={...ne,isScrolling:!0,scrollDir:mr(ne.scrollOffset,de),scrollOffset:de,updateRequested:!1},Le(K)},q=G=>{const{clientWidth:ee,scrollLeft:te,scrollWidth:ue}=G.currentTarget,ne=i(_);if(ne.scrollOffset===te)return;const{direction:de}=d;let se=te;if(de===ms)switch(_d()){case su:se=-te;break;case Gh:se=ue-ee-te;break}se=Math.max(0,Math.min(se,ue-ee)),_.value={...ne,isScrolling:!0,scrollDir:mr(ne.scrollOffset,se),scrollOffset:se,updateRequested:!1},Le(K)},U=G=>{i(T)?q(G):z(G),L()},F=(G,ee)=>{const te=(k.value-O.value)/ee*G;N(Math.min(k.value-O.value,te))},N=G=>{G=Math.max(G,0),G!==i(_).scrollOffset&&(_.value={...i(_),scrollOffset:G,scrollDir:mr(i(_).scrollOffset,G),updateRequested:!0},Le(K))},P=(G,ee=za)=>{const{scrollOffset:te}=i(_);G=Math.max(0,Math.min(G,d.total-1)),N(t(d,G,ee,te,i(v)))},B=G=>{const{direction:ee,itemSize:te,layout:ue}=d,ne=m.value(u&&te,u&&ue,u&&ee);let de;if(Mt(ne,String(G)))de=ne[G];else{const se=a(d,G,i(v)),Y=n(d,G,i(v)),X=i(T),H=ee===ms,Z=X?se:0;ne[G]=de={position:"absolute",left:H?void 0:`${Z}px`,right:H?`${Z}px`:void 0,top:X?0:`${se}px`,height:X?"100%":`${Y}px`,width:X?`${Y}px`:"100%"}}return de},K=()=>{_.value.isScrolling=!1,Le(()=>{m.value(-1,null,null)})},W=()=>{const G=y.value;G&&(G.scrollTop=0)};gt(()=>{if(!At)return;const{initScrollOffset:G}=d,ee=i(y);He(G)&&ee&&(i(T)?ee.scrollLeft=G:ee.scrollTop=G),L()}),so(()=>{const{direction:G,layout:ee}=d,{scrollOffset:te,updateRequested:ue}=i(_),ne=i(y);if(ue&&ne)if(ee===Ls)if(G===ms)switch(_d()){case su:ne.scrollLeft=-te;break;case Yh:ne.scrollLeft=te;break;default:{const{clientWidth:de,scrollWidth:se}=ne;ne.scrollLeft=se-de-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te}),vu(()=>{i(y).scrollTop=i(_).scrollOffset});const j={ns:p,clientSize:O,estimatedTotalSize:k,windowStyle:M,windowRef:y,innerRef:b,innerStyle:A,itemsToRender:S,scrollbarRef:w,states:_,getItemStyle:B,onScroll:U,onScrollbarScroll:F,onWheel:I,scrollTo:N,scrollToItem:P,resetScrollTop:W};return h({windowRef:y,innerRef:b,getItemStyleCache:m,scrollTo:N,scrollToItem:P,resetScrollTop:W,states:_}),j},render(d){var K;const{$slots:f,className:h,clientSize:g,containerElement:p,data:v,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:_,total:S,onScroll:k,onScrollbarScroll:T,states:M,useIsScrolling:A,windowStyle:O,ns:I}=d,[L,z]=b,q=dt(p),U=dt(y),F=[];if(S>0)for(let W=L;W<=z;W++)F.push(Ye(Ke,{key:W},(K=f.default)==null?void 0:K.call(f,{data:v,index:W,isScrolling:A?M.isScrolling:void 0,style:m(W)})));const N=[Ye(U,ht(d.innerProps,{style:w,ref:"innerRef"}),Be(U)?F:{default:()=>F})],P=Ye(B2,{ref:"scrollbarRef",clientSize:g,layout:_,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-g),total:S,alwaysOn:M.scrollbarAlwaysOn}),B=Ye(q,{class:[I.e("window"),h],style:O,onScroll:k,ref:"windowRef",key:0},Be(q)?[N]:{default:()=>[N]});return Ye("div",{key:0,class:[I.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,P])}}),qw=jw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},l,r,s)=>{const u=iu(a)?o:e;Be(u)&&en("[ElVirtualList]",` + m 0 ${C?"":"-"}${w} + a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2} + a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2} + `}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),p=x(()=>n.status==="warning"?Vu:n.type==="line"?n.status==="success"?ff:ho:n.status==="success"?Xs:Na),v=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=x(()=>n.format(n.percentage));function y(w){const C=100/w.length;return w.map((S,k)=>Be(S)?{color:S,percentage:(k+1)*C}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:C}=n;if(Fe(C))return C(w);if(Be(C))return C;{const k=y(C);for(const T of k)if(T.percentage>w)return T.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,C)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(_(),$("div",{key:0,class:R(i(a).b("bar"))},[E("div",{class:R(i(a).be("bar","outer")),style:qe({height:`${e.strokeWidth}px`})},[E("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:qe(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(_(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(w.$slots,"default",{percentage:e.percentage},()=>[E("span",null,Se(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(_(),$("div",{key:1,class:R(i(a).b("circle")),style:qe({height:`${e.width}px`,width:`${e.width}px`})},[(_(),$("svg",KQ,[E("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:qe(f.value)},null,14,WQ),E("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:qe(h.value)},null,14,jQ)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(_(),$("div",{key:2,class:R(i(a).e("text")),style:qe({fontSize:`${v.value}px`})},[oe(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(_(),ie(i(De),{key:1},{default:ae(()=>[(_(),ie(dt(p.value)))]),_:1})):(_(),$("span",qQ,Se(m.value),1))])],6)):re("v-if",!0)],10,FQ))}}),YQ=UQ;const Lw=it(YQ),GQ=_e({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>ln(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[yi,yi,yi]},voidIcon:{type:Ft,default:()=>$y},disabledVoidIcon:{type:Ft,default:()=>yi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>ln(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:kn,clearable:Boolean,...oa(["ariaLabel"])}),XQ={[bt]:e=>He(e),[ot]:e=>He(e)},JQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],ZQ=["onMousemove","onClick"];var QQ=D({name:"ElRate",__name:"rate",props:GQ,emits:XQ,setup(e,{expose:t,emit:n}){function a(P,B){const W=j=>lt(j),K=B[Object.keys(B).map(j=>+j).filter(j=>{const G=B[j];return W(G)&&G.excluded?Pj-G)[0]];return W(K)&&K.value||K}const o=e,l=n,r=Pe(Do,void 0),s=_n(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=Pa(o,{formItemContext:r}),f=V(pr(o.modelValue,0,o.max)),h=V(-1),g=V(!0),p=V([]),v=x(()=>p.value.map(P=>P.$el.clientWidth)),m=x(()=>[u.b(),u.m(s.value)]),y=sn(),b=x(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":k.value})),w=x(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),C=x(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=x(()=>be(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),k=x(()=>{const P=a(f.value,S.value);return lt(P)?"":P}),T=x(()=>{let P="";return y.value?P=`${C.value}%`:o.allowHalf&&(P="50%"),{color:k.value,width:P}}),M=x(()=>{let P=be(o.icons)?[...o.icons]:{...o.icons};return P=Oo(P),be(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),A=x(()=>a(o.modelValue,M.value)),O=x(()=>y.value?Be(o.disabledVoidIcon)?o.disabledVoidIcon:Oo(o.disabledVoidIcon):Be(o.voidIcon)?o.voidIcon:Oo(o.voidIcon)),I=x(()=>a(f.value,M.value));function L(P){const B=y.value&&C.value>0&&P-1o.modelValue,W=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return B||W}function z(P){o.clearable&&P===o.modelValue&&(P=0),l(ot,P),o.modelValue!==P&&l(bt,P)}function q(P){y.value||(o.allowHalf&&g.value?z(f.value):z(P))}function U(P){if(y.value)return;const B=Kt(P),W=o.allowHalf?.5:1;let K=f.value;switch(B){case Ce.up:case Ce.right:K+=W;break;case Ce.left:case Ce.down:K-=W;break}if(K=pr(K,0,o.max),K!==f.value)return P.stopPropagation(),P.preventDefault(),l(ot,K),l(bt,K),K}function F(P,B){y.value||(o.allowHalf&&B?(g.value=B.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,h.value=P)}function N(){y.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=pr(o.modelValue,0,o.max),h.value=-1)}return fe(()=>o.modelValue,P=>{f.value=pr(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||l(ot,0),t({setCurrentValue:F,resetCurrentValue:N}),(P,B)=>{var W;return _(),$("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(y))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?(W=i(r))==null?void 0:W.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:qe(b.value),tabindex:i(y)?void 0:0,"aria-disabled":i(y),onKeydown:U},[(_(!0),$(Ke,null,_t(e.max,(K,j)=>(_(),$("span",{key:j,class:R(i(u).e("item")),onMousemove:G=>F(K,G),onMouseleave:N,onClick:G=>q(K)},[Q(i(De),{ref_for:!0,ref_key:"iconRefs",ref:p,class:R([i(u).e("icon"),{hover:h.value===K},i(u).is("active",K<=f.value),i(u).is("focus-visible",K===Math.ceil(f.value||1))])},{default:ae(()=>[ft((_(),ie(dt(I.value),null,null,512)),[[At,!L(K)&&K<=f.value]]),ft((_(),ie(dt(O.value),null,null,512)),[[At,!L(K)&&K>f.value]]),ft((_(),ie(dt(O.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[At,L(K)]]),ft(Q(i(De),{style:qe(T.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ae(()=>[(_(),ie(dt(A.value)))]),_:1},8,["style","class"]),[[At,L(K)]])]),_:2},1032,["class"])],42,ZQ))),128)),e.showText||e.showScore?(_(),$("span",{key:0,class:R(i(u).e("text")),style:qe({color:e.textColor})},Se(w.value),7)):re("v-if",!0)],46,JQ)}}}),eee=QQ;const tee=it(eee),cr={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},kg={[cr.primary]:Ps,[cr.success]:vy,[cr.warning]:Vu,[cr.error]:pf,[cr.info]:Ps},nee=_e({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var aee=D({name:"ElResult",__name:"result",props:nee,setup(e){const t=e,n=ve("result"),a=x(()=>{const o=t.icon,l=o&&cr[o]?cr[o]:"icon-info";return{class:l,component:kg[l]||kg["icon-info"]}});return(o,l)=>(_(),$("div",{class:R(i(n).b())},[E("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(_(),ie(dt(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(_(),$("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[E("p",null,Se(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(_(),$("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[E("p",null,Se(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(_(),$("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),oee=aee;const lee=it(oee),P2=50,bd="itemRendered",wd="scroll",is="forward",Cd="backward",za="auto",Cf="smart",ru="start",To="center",su="end",Vs="horizontal",Vw="vertical",ree="ltr",gs="rtl",iu="negative",Xh="positive-ascending",Jh="positive-descending",see={[Vs]:"left",[Vw]:"top"},iee=20,I2=fo({type:J([Number,Function]),required:!0}),L2=fo({type:Number}),V2=fo({type:Number,default:2}),uee=fo({type:String,values:["ltr","rtl"],default:"ltr"}),B2=fo({type:Number,default:0}),_d=fo({type:Number,required:!0}),Bw=fo({type:String,values:["horizontal","vertical"],default:Vw}),zw=_e({className:{type:String,default:""},containerElement:{type:J([String,Object]),default:"div"},data:{type:J(Array),default:()=>ln([])},direction:uee,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:J(Object),default:()=>({})},style:{type:J([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Dw=_e({cache:V2,estimatedItemSize:L2,layout:Bw,initScrollOffset:B2,total:_d,itemSize:I2,...zw}),z2={type:Number,default:6},Hw={type:Number,default:0},Fw={type:Number,default:2},kr=_e({columnCache:V2,columnWidth:I2,estimatedColumnWidth:L2,estimatedRowHeight:L2,initScrollLeft:B2,initScrollTop:B2,itemKey:{type:J(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:V2,rowHeight:I2,totalColumn:_d,totalRow:_d,hScrollbarSize:z2,vScrollbarSize:z2,scrollbarStartGap:Hw,scrollbarEndGap:Fw,role:String,...zw}),Kw=_e({alwaysOn:Boolean,class:String,layout:Bw,total:_d,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:z2,startGap:Hw,endGap:Fw,visible:Boolean}),gr=(e,t)=>ee===ree||e===gs||e===Vs,Eg=e=>e===gs;let es=null;function Sd(e=!1){if(es===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?es=Jh:(t.scrollLeft=1,t.scrollLeft===0?es=iu:es=Xh),document.body.removeChild(t),es}return es}function cee({move:e,size:t,bar:n},a){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,a==="horizontal"?o.height="100%":o.width="100%",o}var Tg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dee(e,t){return!!(e===t||Tg(e)&&Tg(t))}function fee(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=vt().proxy.$props;return x(()=>{const t=(n,a,o)=>({});return e.perfMode?Qd(t):pee(t)})},jw=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{cl(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===Vs?c:d;r(f)||(l+=f,!Ud()&&f!==0&&u.preventDefault(),o=Fa(()=>{a(l),l=0}))}}},D2=D({name:"ElVirtualScrollBar",props:Kw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=ve("virtual-scrollbar"),o=ve("scrollbar"),l=V(),r=V();let s=null,u=null;const c=Nt({isDragging:!1,traveled:0}),d=x(()=>Yy[e.layout]),f=x(()=>e.clientSize-i(n)),h=x(()=>({position:"absolute",width:`${Vs===e.layout?f.value:e.scrollbarSize}px`,height:`${Vs===e.layout?e.scrollbarSize:f.value}px`,[see[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=x(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,iee),T))}),p=x(()=>{if(!Number.isFinite(g.value))return{display:"none"};const k=`${g.value}px`;return cee({bar:d.value,size:k,move:c.traveled},e.layout)}),v=x(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",w);const k=i(r);k&&(u=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",C,{passive:!0}),k.addEventListener("touchend",w))},y=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const k=i(r);k&&(k.removeEventListener("touchmove",C),k.removeEventListener("touchend",w))},b=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[d.value.axis]=k.currentTarget[d.value.offset]-(k[d.value.client]-k.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),y()},C=k=>{const{isDragging:T}=c;if(!T||!r.value||!l.value)return;const M=c[d.value.axis];if(!M)return;cl(s);const A=(l.value.getBoundingClientRect()[d.value.direction]-k[d.value.client])*-1-(r.value[d.value.offset]-M);s=Fa(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=k=>{const T=Math.abs(k.target.getBoundingClientRect()[d.value.direction]-k[d.value.client])-r.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(T,v.value)),t("scroll",T,v.value)};return fe(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*v.value))}),Lt(()=>{y()}),()=>Ye("div",{role:"presentation",ref:l,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Je(S,["stop","prevent"]),onTouchstartPrevent:b},Ye("div",{ref:r,class:o.e("thumb"),style:p.value,onMousedown:b},[]))}}),qw=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:s,clearCache:u,validateProps:c})=>D({name:e??"ElVirtualList",props:Dw,emits:[bd,wd],setup(d,{emit:f,expose:h}){c(d);const g=vt(),p=ve("vl"),v=V(s(d,g)),m=Ww(),y=V(),b=V(),w=V(),C=V({isScrolling:!1,scrollDir:"forward",scrollOffset:He(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=x(()=>{const{total:G,cache:ee}=d,{isScrolling:te,scrollDir:ue,scrollOffset:ne}=i(C);if(G===0)return[0,0,0,0];const de=l(d,ne,i(v)),se=r(d,de,ne,i(v)),Y=!te||ue===Cd?Math.max(1,ee):1,X=!te||ue===is?Math.max(1,ee):1;return[Math.max(0,de-Y),Math.max(0,Math.min(G-1,se+X)),de,se]}),k=x(()=>o(d,i(v))),T=x(()=>uu(d.layout)),M=x(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:He(d.height)?`${d.height}px`:d.height,width:He(d.width)?`${d.width}px`:d.width},d.style]),A=x(()=>{const G=i(k),ee=i(T);return{height:ee?"100%":`${G}px`,pointerEvents:i(C).isScrolling?"none":void 0,width:ee?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),O=x(()=>T.value?d.width:d.height),{onWheel:I}=jw({atStartEdge:x(()=>C.value.scrollOffset<=0),atEndEdge:x(()=>C.value.scrollOffset>=k.value),layout:x(()=>d.layout)},G=>{var ee,te;(te=(ee=w.value).onMouseUp)==null||te.call(ee),N(Math.min(C.value.scrollOffset+G,k.value-O.value))});Vt(y,"wheel",I,{passive:!1});const L=()=>{const{total:G}=d;if(G>0){const[ne,de,se,Y]=i(S);f(bd,ne,de,se,Y)}const{scrollDir:ee,scrollOffset:te,updateRequested:ue}=i(C);f(wd,ee,te,ue)},z=G=>{const{clientHeight:ee,scrollHeight:te,scrollTop:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===ue)return;const de=Math.max(0,Math.min(ue,te-ee));C.value={...ne,isScrolling:!0,scrollDir:gr(ne.scrollOffset,de),scrollOffset:de,updateRequested:!1},Le(W)},q=G=>{const{clientWidth:ee,scrollLeft:te,scrollWidth:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===te)return;const{direction:de}=d;let se=te;if(de===gs)switch(Sd()){case iu:se=-te;break;case Jh:se=ue-ee-te;break}se=Math.max(0,Math.min(se,ue-ee)),C.value={...ne,isScrolling:!0,scrollDir:gr(ne.scrollOffset,se),scrollOffset:se,updateRequested:!1},Le(W)},U=G=>{i(T)?q(G):z(G),L()},F=(G,ee)=>{const te=(k.value-O.value)/ee*G;N(Math.min(k.value-O.value,te))},N=G=>{G=Math.max(G,0),G!==i(C).scrollOffset&&(C.value={...i(C),scrollOffset:G,scrollDir:gr(i(C).scrollOffset,G),updateRequested:!0},Le(W))},P=(G,ee=za)=>{const{scrollOffset:te}=i(C);G=Math.max(0,Math.min(G,d.total-1)),N(t(d,G,ee,te,i(v)))},B=G=>{const{direction:ee,itemSize:te,layout:ue}=d,ne=m.value(u&&te,u&&ue,u&&ee);let de;if(Mt(ne,String(G)))de=ne[G];else{const se=a(d,G,i(v)),Y=n(d,G,i(v)),X=i(T),H=ee===gs,Z=X?se:0;ne[G]=de={position:"absolute",left:H?void 0:`${Z}px`,right:H?`${Z}px`:void 0,top:X?0:`${se}px`,height:X?"100%":`${Y}px`,width:X?`${Y}px`:"100%"}}return de},W=()=>{C.value.isScrolling=!1,Le(()=>{m.value(-1,null,null)})},K=()=>{const G=y.value;G&&(G.scrollTop=0)};gt(()=>{if(!Rt)return;const{initScrollOffset:G}=d,ee=i(y);He(G)&&ee&&(i(T)?ee.scrollLeft=G:ee.scrollTop=G),L()}),so(()=>{const{direction:G,layout:ee}=d,{scrollOffset:te,updateRequested:ue}=i(C),ne=i(y);if(ue&&ne)if(ee===Vs)if(G===gs)switch(Sd()){case iu:ne.scrollLeft=-te;break;case Xh:ne.scrollLeft=te;break;default:{const{clientWidth:de,scrollWidth:se}=ne;ne.scrollLeft=se-de-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te}),mu(()=>{i(y).scrollTop=i(C).scrollOffset});const j={ns:p,clientSize:O,estimatedTotalSize:k,windowStyle:M,windowRef:y,innerRef:b,innerStyle:A,itemsToRender:S,scrollbarRef:w,states:C,getItemStyle:B,onScroll:U,onScrollbarScroll:F,onWheel:I,scrollTo:N,scrollToItem:P,resetScrollTop:K};return h({windowRef:y,innerRef:b,getItemStyleCache:m,scrollTo:N,scrollToItem:P,resetScrollTop:K,states:C}),j},render(d){var W;const{$slots:f,className:h,clientSize:g,containerElement:p,data:v,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:C,total:S,onScroll:k,onScrollbarScroll:T,states:M,useIsScrolling:A,windowStyle:O,ns:I}=d,[L,z]=b,q=dt(p),U=dt(y),F=[];if(S>0)for(let K=L;K<=z;K++)F.push(Ye(Ke,{key:K},(W=f.default)==null?void 0:W.call(f,{data:v,index:K,isScrolling:A?M.isScrolling:void 0,style:m(K)})));const N=[Ye(U,ht(d.innerProps,{style:w,ref:"innerRef"}),Be(U)?F:{default:()=>F})],P=Ye(D2,{ref:"scrollbarRef",clientSize:g,layout:C,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-g),total:S,alwaysOn:M.scrollbarAlwaysOn}),B=Ye(q,{class:[I.e("window"),h],style:O,onScroll:k,ref:"windowRef",key:0},Be(q)?[N]:{default:()=>[N]});return Ye("div",{key:0,class:[I.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,P])}}),Uw=qw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},l,r,s)=>{const u=uu(a)?o:e;Be(u)&&tn("[ElVirtualList]",` You should set width/height to number when your layout is horizontal/vertical - `);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===wf&&(s>=f-u&&s<=d+u?r=za:r=To),r){case lu:return d;case ru:return f;case To:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case za:default:return s>=f&&s<=d?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,r)=>{const s=l*n,u=iu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),hee="ElDynamicSizeList",is=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},vee=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Uw(e,t,0,o,n):mee(e,t,Math.max(0,o),n)},Uw=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=is(e,l,t).offset;if(r===o)return l;ro&&(a=l-1)}return Math.max(0,n-1)},mee=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},gee=jw({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>is(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Tg,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=iu(r)?s:l,c=is(e,t,o),d=Tg(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===wf&&(a>=h-u&&a<=f+u?n=za:n=To),n){case lu:return f;case ru:return h;case To:return Math.round(h+(f-h)/2);case za:default:return a>=h&&a<=f?a:avee(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=iu(r)?s:o,c=is(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&en(hee,` + `);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===Cf&&(s>=f-u&&s<=d+u?r=za:r=To),r){case ru:return d;case su:return f;case To:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case za:default:return s>=f&&s<=d?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,r)=>{const s=l*n,u=uu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),hee="ElDynamicSizeList",us=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},vee=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Yw(e,t,0,o,n):mee(e,t,Math.max(0,o),n)},Yw=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=us(e,l,t).offset;if(r===o)return l;ro&&(a=l-1)}return Math.max(0,n-1)},mee=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},gee=qw({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>us(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Mg,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=uu(r)?s:l,c=us(e,t,o),d=Mg(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===Cf&&(a>=h-u&&a<=f+u?n=za:n=To),n){case ru:return f;case su:return h;case To:return Math.round(h+(f-h)/2);case za:default:return a>=h&&a<=f?a:avee(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=uu(r)?s:o,c=us(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&tn(hee,` itemSize is required as function, but the given value was ${typeof e} - `)}}),yee=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{cl(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=h,d.preventDefault(),l=Fa(()=>{o(r,s),r=0,s=0})}}},bee=(e,t,n,a,o,l,r)=>{const s=V(0),u=V(0);let c,d=0,f=0;const h=p=>{cl(c),s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),cl(c),d+=s.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Fa(()=>{const v=a.value-i(l),m=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Vt(e,"touchstart",h,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},Yw=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>D({name:e??"ElVirtualList",props:xr,emits:[yd,bd],setup(v,{emit:m,expose:y,slots:b}){const w=ve("vl");p(v);const _=vt(),S=V(h(v,_));g==null||g(_,S);const k=V(),T=V(),M=V(),A=V(),O=V({isScrolling:!1,scrollLeft:He(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:He(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ss,yAxisScrollDir:ss}),I=Kw(),L=x(()=>Number.parseInt(`${v.height}`,10)),z=x(()=>Number.parseInt(`${v.width}`,10)),q=x(()=>{const{totalColumn:ye,totalRow:Ee,columnCache:we}=v,{isScrolling:Ie,xAxisScrollDir:ze,scrollLeft:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=a(v,et,i(S)),at=o(v,nt,et,i(S)),Me=!Ie||ze===wd?Math.max(1,we):1,Ge=!Ie||ze===ss?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(ye-1,at+Ge)),nt,at]}),U=x(()=>{const{totalColumn:ye,totalRow:Ee,rowCache:we}=v,{isScrolling:Ie,yAxisScrollDir:ze,scrollTop:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=d(v,et,i(S)),at=f(v,nt,et,i(S)),Me=!Ie||ze===wd?Math.max(1,we):1,Ge=!Ie||ze===ss?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(Ee-1,at+Ge)),nt,at]}),F=x(()=>l(v,i(S))),N=x(()=>r(v,i(S))),P=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:He(v.height)?`${v.height}px`:v.height,width:He(v.width)?`${v.width}px`:v.width},v.style??{}]),B=x(()=>{const ye=`${i(N)}px`;return{height:`${i(F)}px`,pointerEvents:i(O).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:ye,totalRow:Ee}=v;if(ye>0&&Ee>0){const[at,Me,Ge,ut]=i(q),[je,tt,yt,he]=i(U);m(yd,{columnCacheStart:at,columnCacheEnd:Me,rowCacheStart:je,rowCacheEnd:tt,columnVisibleStart:Ge,columnVisibleEnd:ut,rowVisibleStart:yt,rowVisibleEnd:he})}const{scrollLeft:we,scrollTop:Ie,updateRequested:ze,xAxisScrollDir:et,yAxisScrollDir:nt}=i(O);m(bd,{xAxisScrollDir:et,scrollLeft:we,yAxisScrollDir:nt,scrollTop:Ie,updateRequested:ze})},W=ye=>{const{clientHeight:Ee,clientWidth:we,scrollHeight:Ie,scrollLeft:ze,scrollTop:et,scrollWidth:nt}=ye.currentTarget,at=i(O);if(at.scrollTop===et&&at.scrollLeft===ze)return;let Me=ze;if(kg(v.direction))switch(_d()){case su:Me=-ze;break;case Gh:Me=nt-we-ze;break}O.value={...at,isScrolling:!0,scrollLeft:Me,scrollTop:Math.max(0,Math.min(et,Ie-Ee)),updateRequested:!0,xAxisScrollDir:mr(at.scrollLeft,Me),yAxisScrollDir:mr(at.scrollTop,et)},Le(()=>H()),Z(),K()},j=(ye,Ee)=>{const we=i(L),Ie=(F.value-we)/Ee*ye;te({scrollTop:Math.min(F.value-we,Ie)})},G=(ye,Ee)=>{const we=i(z),Ie=(N.value-we)/Ee*ye;te({scrollLeft:Math.min(N.value-we,Ie)})},{onWheel:ee}=yee({atXStartEdge:x(()=>O.value.scrollLeft<=0),atXEndEdge:x(()=>O.value.scrollLeft>=N.value-i(z)),atYStartEdge:x(()=>O.value.scrollTop<=0),atYEndEdge:x(()=>O.value.scrollTop>=F.value-i(L))},(ye,Ee)=>{var ze,et,nt,at;(et=(ze=T.value)==null?void 0:ze.onMouseUp)==null||et.call(ze),(at=(nt=M.value)==null?void 0:nt.onMouseUp)==null||at.call(nt);const we=i(z),Ie=i(L);te({scrollLeft:Math.min(O.value.scrollLeft+ye,N.value-we),scrollTop:Math.min(O.value.scrollTop+Ee,F.value-Ie)})});Vt(k,"wheel",ee,{passive:!1});const te=({scrollLeft:ye=O.value.scrollLeft,scrollTop:Ee=O.value.scrollTop})=>{ye=Math.max(ye,0),Ee=Math.max(Ee,0);const we=i(O);Ee===we.scrollTop&&ye===we.scrollLeft||(O.value={...we,xAxisScrollDir:mr(we.scrollLeft,ye),yAxisScrollDir:mr(we.scrollTop,Ee),scrollLeft:ye,scrollTop:Ee,updateRequested:!0},Le(()=>H()),Z(),K())},{touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se}=bee(k,O,te,N,F,z,L),Y=(ye=0,Ee=0,we=za)=>{const Ie=i(O);Ee=Math.max(0,Math.min(Ee,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const ze=$8(w.namespace.value),et=i(S),nt=l(v,et),at=r(v,et);te({scrollLeft:s(v,Ee,we,Ie.scrollLeft,et,at>v.width?ze:0),scrollTop:u(v,ye,we,Ie.scrollTop,et,nt>v.height?ze:0)})},X=(ye,Ee)=>{const{columnWidth:we,direction:Ie,rowHeight:ze}=v,et=I.value(t&&we,t&&ze,t&&Ie),nt=`${ye},${Ee}`;if(Mt(et,nt))return et[nt];{const[,at]=n(v,Ee,i(S)),Me=i(S),Ge=kg(Ie),[ut,je]=c(v,ye,Me),[tt]=n(v,Ee,Me);return et[nt]={position:"absolute",left:Ge?void 0:`${at}px`,right:Ge?`${at}px`:void 0,top:`${je}px`,height:`${ut}px`,width:`${tt}px`},et[nt]}},H=()=>{O.value.isScrolling=!1,Le(()=>{I.value(-1,null,null)})};gt(()=>{if(!At)return;const{initScrollLeft:ye,initScrollTop:Ee}=v,we=i(k);we&&(He(ye)&&(we.scrollLeft=ye),He(Ee)&&(we.scrollTop=Ee)),K()});const Z=()=>{const{direction:ye}=v,{scrollLeft:Ee,scrollTop:we,updateRequested:Ie}=i(O),ze=i(k);if(Ie&&ze){if(ye===ms)switch(_d()){case su:ze.scrollLeft=-Ee;break;case Yh:ze.scrollLeft=Ee;break;default:{const{clientWidth:et,scrollWidth:nt}=ze;ze.scrollLeft=nt-et-Ee;break}}else ze.scrollLeft=Math.max(0,Ee);ze.scrollTop=Math.max(0,we)}},{resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge}=_.proxy;y({windowRef:k,innerRef:A,getItemStyleCache:I,touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se,scrollTo:te,scrollToItem:Y,states:O,resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge});const me=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Ee,scrollbarEndGap:we,totalColumn:Ie,totalRow:ze}=v,et=i(z),nt=i(L),at=i(N),Me=i(F),{scrollLeft:Ge,scrollTop:ut}=i(O);return{horizontalScrollbar:Ye(B2,{ref:T,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("horizontal"),clientSize:et,layout:"horizontal",onScroll:G,ratio:et*100/at,scrollFrom:Ge/(at-et),total:ze,visible:!0}),verticalScrollbar:Ye(B2,{ref:M,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:j,ratio:nt*100/Me,scrollFrom:ut/(Me-nt),total:Ie,visible:!0})}},Ae=()=>{var ut;const[ye,Ee]=i(q),[we,Ie]=i(U),{data:ze,totalColumn:et,totalRow:nt,useIsScrolling:at,itemKey:Me}=v,Ge=[];if(nt>0&&et>0)for(let je=we;je<=Ie;je++)for(let tt=ye;tt<=Ee;tt++){const yt=Me({columnIndex:tt,data:ze,rowIndex:je});Ge.push(Ye(Ke,{key:yt},(ut=b.default)==null?void 0:ut.call(b,{columnIndex:tt,data:ze,isScrolling:at?i(O).isScrolling:void 0,style:X(je,tt),rowIndex:je})))}return Ge},Ne=()=>{const ye=dt(v.innerElement),Ee=Ae();return[Ye(ye,ht(v.innerProps,{style:i(B),ref:A}),Be(ye)?Ee:{default:()=>Ee})]};return()=>{const ye=dt(v.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:we}=me(),Ie=Ne();return Ye("div",{key:0,class:w.e("wrapper"),role:v.role},[Ye(ye,{class:v.className,style:i(P),onScroll:W,ref:k},Be(ye)?Ie:{default:()=>Ie}),Ee,we])}}}),Mg="ElFixedSizeGrid",wee=Yw({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,s)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+s+t);switch(o==="smart"&&(l>=d-n&&l<=c+n?o=za:o=To),o){case lu:return c;case ru:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||l{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+s+e);switch(o===wf&&(l>=d-t&&l<=c+t?o=za:o=To),o){case lu:return c;case ru:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{He(e)||en(Mg,` + `)}}),yee=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{cl(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=h,d.preventDefault(),l=Fa(()=>{o(r,s),r=0,s=0})}}},bee=(e,t,n,a,o,l,r)=>{const s=V(0),u=V(0);let c,d=0,f=0;const h=p=>{cl(c),s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),cl(c),d+=s.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Fa(()=>{const v=a.value-i(l),m=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Vt(e,"touchstart",h,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},Gw=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>D({name:e??"ElVirtualList",props:kr,emits:[bd,wd],setup(v,{emit:m,expose:y,slots:b}){const w=ve("vl");p(v);const C=vt(),S=V(h(v,C));g==null||g(C,S);const k=V(),T=V(),M=V(),A=V(),O=V({isScrolling:!1,scrollLeft:He(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:He(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:is,yAxisScrollDir:is}),I=Ww(),L=x(()=>Number.parseInt(`${v.height}`,10)),z=x(()=>Number.parseInt(`${v.width}`,10)),q=x(()=>{const{totalColumn:ye,totalRow:Ee,columnCache:we}=v,{isScrolling:Ie,xAxisScrollDir:ze,scrollLeft:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=a(v,et,i(S)),at=o(v,nt,et,i(S)),Me=!Ie||ze===Cd?Math.max(1,we):1,Ge=!Ie||ze===is?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(ye-1,at+Ge)),nt,at]}),U=x(()=>{const{totalColumn:ye,totalRow:Ee,rowCache:we}=v,{isScrolling:Ie,yAxisScrollDir:ze,scrollTop:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=d(v,et,i(S)),at=f(v,nt,et,i(S)),Me=!Ie||ze===Cd?Math.max(1,we):1,Ge=!Ie||ze===is?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(Ee-1,at+Ge)),nt,at]}),F=x(()=>l(v,i(S))),N=x(()=>r(v,i(S))),P=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:He(v.height)?`${v.height}px`:v.height,width:He(v.width)?`${v.width}px`:v.width},v.style??{}]),B=x(()=>{const ye=`${i(N)}px`;return{height:`${i(F)}px`,pointerEvents:i(O).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),W=()=>{const{totalColumn:ye,totalRow:Ee}=v;if(ye>0&&Ee>0){const[at,Me,Ge,ut]=i(q),[je,tt,yt,he]=i(U);m(bd,{columnCacheStart:at,columnCacheEnd:Me,rowCacheStart:je,rowCacheEnd:tt,columnVisibleStart:Ge,columnVisibleEnd:ut,rowVisibleStart:yt,rowVisibleEnd:he})}const{scrollLeft:we,scrollTop:Ie,updateRequested:ze,xAxisScrollDir:et,yAxisScrollDir:nt}=i(O);m(wd,{xAxisScrollDir:et,scrollLeft:we,yAxisScrollDir:nt,scrollTop:Ie,updateRequested:ze})},K=ye=>{const{clientHeight:Ee,clientWidth:we,scrollHeight:Ie,scrollLeft:ze,scrollTop:et,scrollWidth:nt}=ye.currentTarget,at=i(O);if(at.scrollTop===et&&at.scrollLeft===ze)return;let Me=ze;if(Eg(v.direction))switch(Sd()){case iu:Me=-ze;break;case Jh:Me=nt-we-ze;break}O.value={...at,isScrolling:!0,scrollLeft:Me,scrollTop:Math.max(0,Math.min(et,Ie-Ee)),updateRequested:!0,xAxisScrollDir:gr(at.scrollLeft,Me),yAxisScrollDir:gr(at.scrollTop,et)},Le(()=>H()),Z(),W()},j=(ye,Ee)=>{const we=i(L),Ie=(F.value-we)/Ee*ye;te({scrollTop:Math.min(F.value-we,Ie)})},G=(ye,Ee)=>{const we=i(z),Ie=(N.value-we)/Ee*ye;te({scrollLeft:Math.min(N.value-we,Ie)})},{onWheel:ee}=yee({atXStartEdge:x(()=>O.value.scrollLeft<=0),atXEndEdge:x(()=>O.value.scrollLeft>=N.value-i(z)),atYStartEdge:x(()=>O.value.scrollTop<=0),atYEndEdge:x(()=>O.value.scrollTop>=F.value-i(L))},(ye,Ee)=>{var ze,et,nt,at;(et=(ze=T.value)==null?void 0:ze.onMouseUp)==null||et.call(ze),(at=(nt=M.value)==null?void 0:nt.onMouseUp)==null||at.call(nt);const we=i(z),Ie=i(L);te({scrollLeft:Math.min(O.value.scrollLeft+ye,N.value-we),scrollTop:Math.min(O.value.scrollTop+Ee,F.value-Ie)})});Vt(k,"wheel",ee,{passive:!1});const te=({scrollLeft:ye=O.value.scrollLeft,scrollTop:Ee=O.value.scrollTop})=>{ye=Math.max(ye,0),Ee=Math.max(Ee,0);const we=i(O);Ee===we.scrollTop&&ye===we.scrollLeft||(O.value={...we,xAxisScrollDir:gr(we.scrollLeft,ye),yAxisScrollDir:gr(we.scrollTop,Ee),scrollLeft:ye,scrollTop:Ee,updateRequested:!0},Le(()=>H()),Z(),W())},{touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se}=bee(k,O,te,N,F,z,L),Y=(ye=0,Ee=0,we=za)=>{const Ie=i(O);Ee=Math.max(0,Math.min(Ee,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const ze=A8(w.namespace.value),et=i(S),nt=l(v,et),at=r(v,et);te({scrollLeft:s(v,Ee,we,Ie.scrollLeft,et,at>v.width?ze:0),scrollTop:u(v,ye,we,Ie.scrollTop,et,nt>v.height?ze:0)})},X=(ye,Ee)=>{const{columnWidth:we,direction:Ie,rowHeight:ze}=v,et=I.value(t&&we,t&&ze,t&&Ie),nt=`${ye},${Ee}`;if(Mt(et,nt))return et[nt];{const[,at]=n(v,Ee,i(S)),Me=i(S),Ge=Eg(Ie),[ut,je]=c(v,ye,Me),[tt]=n(v,Ee,Me);return et[nt]={position:"absolute",left:Ge?void 0:`${at}px`,right:Ge?`${at}px`:void 0,top:`${je}px`,height:`${ut}px`,width:`${tt}px`},et[nt]}},H=()=>{O.value.isScrolling=!1,Le(()=>{I.value(-1,null,null)})};gt(()=>{if(!Rt)return;const{initScrollLeft:ye,initScrollTop:Ee}=v,we=i(k);we&&(He(ye)&&(we.scrollLeft=ye),He(Ee)&&(we.scrollTop=Ee)),W()});const Z=()=>{const{direction:ye}=v,{scrollLeft:Ee,scrollTop:we,updateRequested:Ie}=i(O),ze=i(k);if(Ie&&ze){if(ye===gs)switch(Sd()){case iu:ze.scrollLeft=-Ee;break;case Xh:ze.scrollLeft=Ee;break;default:{const{clientWidth:et,scrollWidth:nt}=ze;ze.scrollLeft=nt-et-Ee;break}}else ze.scrollLeft=Math.max(0,Ee);ze.scrollTop=Math.max(0,we)}},{resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge}=C.proxy;y({windowRef:k,innerRef:A,getItemStyleCache:I,touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se,scrollTo:te,scrollToItem:Y,states:O,resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge});const me=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Ee,scrollbarEndGap:we,totalColumn:Ie,totalRow:ze}=v,et=i(z),nt=i(L),at=i(N),Me=i(F),{scrollLeft:Ge,scrollTop:ut}=i(O);return{horizontalScrollbar:Ye(D2,{ref:T,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("horizontal"),clientSize:et,layout:"horizontal",onScroll:G,ratio:et*100/at,scrollFrom:Ge/(at-et),total:ze,visible:!0}),verticalScrollbar:Ye(D2,{ref:M,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:j,ratio:nt*100/Me,scrollFrom:ut/(Me-nt),total:Ie,visible:!0})}},Ae=()=>{var ut;const[ye,Ee]=i(q),[we,Ie]=i(U),{data:ze,totalColumn:et,totalRow:nt,useIsScrolling:at,itemKey:Me}=v,Ge=[];if(nt>0&&et>0)for(let je=we;je<=Ie;je++)for(let tt=ye;tt<=Ee;tt++){const yt=Me({columnIndex:tt,data:ze,rowIndex:je});Ge.push(Ye(Ke,{key:yt},(ut=b.default)==null?void 0:ut.call(b,{columnIndex:tt,data:ze,isScrolling:at?i(O).isScrolling:void 0,style:X(je,tt),rowIndex:je})))}return Ge},Ne=()=>{const ye=dt(v.innerElement),Ee=Ae();return[Ye(ye,ht(v.innerProps,{style:i(B),ref:A}),Be(ye)?Ee:{default:()=>Ee})]};return()=>{const ye=dt(v.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:we}=me(),Ie=Ne();return Ye("div",{key:0,class:w.e("wrapper"),role:v.role},[Ye(ye,{class:v.className,style:i(P),onScroll:K,ref:k},Be(ye)?Ie:{default:()=>Ie}),Ee,we])}}}),Og="ElFixedSizeGrid",wee=Gw({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,s)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+s+t);switch(o==="smart"&&(l>=d-n&&l<=c+n?o=za:o=To),o){case ru:return c;case su:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||l{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+s+e);switch(o===Cf&&(l>=d-t&&l<=c+t?o=za:o=To),o){case ru:return c;case su:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{He(e)||tn(Og,` "columnWidth" must be passed as number, instead ${typeof e} was given. - `),He(t)||en(Mg,` + `),He(t)||tn(Og,` "columnWidth" must be passed as number, instead ${typeof t} was given. - `)}}),{max:Sd,min:Gw,floor:Xw}=Math,Og="ElDynamicSizeGrid",Cee={column:"columnWidth",row:"rowHeight"},z2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Go=(e,t,n,a)=>{const[o,l,r]=[n[a],e[Cee[a]],n[z2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[z2[a]]=t}return o[t]},Jw=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+Xw((a-n)/2),s=Go(e,r,t,l).offset;if(s===o)return r;s{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[o,l]=[t[a],t[z2[a]]];return(l>0?o[l].offset:0)>=n?Jw(e,t,0,l,n,a):_ee(e,t,Sd(0,l),n,a)},Zw=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},Qw=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},See={column:Qw,row:Zw},Ag=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,See[l]],c=Go(e,t,o,l),d=Sd(0,Gw(u(e,o)-s,c.offset)),f=Sd(0,c.offset-s+r+c.size);switch(n===wf&&(a>=f-s&&a<=d+s?n=za:n=To),n){case lu:return d;case ru:return f;case To:return Math.round(f+(d-f)/2);case za:default:return a>=f&&a<=d?a:f>d||a{const a=Go(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Go(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>Ag(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>Ag(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>$g(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=Go(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;s$g(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=Go(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=R2,estimatedRowHeight:t=R2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Fe(e)||en(Og,` + `)}}),{max:xd,min:Xw,floor:Jw}=Math,$g="ElDynamicSizeGrid",Cee={column:"columnWidth",row:"rowHeight"},H2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Go=(e,t,n,a)=>{const[o,l,r]=[n[a],e[Cee[a]],n[H2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[H2[a]]=t}return o[t]},Zw=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+Jw((a-n)/2),s=Go(e,r,t,l).offset;if(s===o)return r;s{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[o,l]=[t[a],t[H2[a]]];return(l>0?o[l].offset:0)>=n?Zw(e,t,0,l,n,a):_ee(e,t,xd(0,l),n,a)},Qw=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},e5=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},See={column:e5,row:Qw},Rg=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,See[l]],c=Go(e,t,o,l),d=xd(0,Xw(u(e,o)-s,c.offset)),f=xd(0,c.offset-s+r+c.size);switch(n===Cf&&(a>=f-s&&a<=d+s?n=za:n=To),n){case ru:return d;case su:return f;case To:return Math.round(f+(d-f)/2);case za:default:return a>=f&&a<=d?a:f>d||a{const a=Go(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Go(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>Rg(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>Rg(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>Ag(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=Go(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;sAg(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=Go(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=P2,estimatedRowHeight:t=P2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Fe(e)||tn($g,` "columnWidth" must be passed as function, instead ${typeof e} was given. - `),Fe(t)||en(Og,` + `),Fe(t)||tn($g,` "rowHeight" must be passed as function, instead ${typeof t} was given. - `)}}),Xh=Symbol("ElSelectV2Injection"),kee=_e({allowCreate:Boolean,autocomplete:{type:J(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},effect:{type:J(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:J(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:J(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:J(Array),required:!0},placeholder:{type:String},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:kn,props:{type:J(Object),default:()=>dd},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||He(e)}},suffixIcon:{type:Ft,default:po},...Wr,...oa(["ariaLabel"])}),Eee=_e({data:Array,disabled:Boolean,hovering:Boolean,item:{type:J(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),Tee={[ot]:e=>!0,[bt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Mee={hover:e=>He(e),select:(e,t)=>!0};var Oee=D({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function $ee(e,t,n,a,o,l){return C(),$("div",{class:R(e.ns.be("group","title")),style:qe({...e.style,lineHeight:`${e.height}px`})},Se(e.item.label),7)}var Aee=En(Oee,[["render",$ee]]);function Ree(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Nee=D({props:Eee,emits:Mee,setup(e,{emit:t}){const n=Pe(Xh),a=ve("select"),{hoverItem:o,selectOptionClick:l}=Ree(e,{emit:t}),{getLabel:r}=zu(n.props),s=n.contentId;return{ns:a,contentId:s,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Ar(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:l,getLabel:r}}});const Pee=["id","aria-selected","aria-disabled"];function Iee(e,t,n,a,o,l){return C(),$("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:qe(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,Se(e.getLabel(e.item)),1)])],46,Pee)}var Lee=En(Nee,[["render",Iee]]);const Vee={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var Bee=D({name:"ElSelectDropdown",props:Vee,setup(e,{slots:t,expose:n}){const a=Pe(Xh),o=ve("select"),{getLabel:l,getValue:r,getDisabled:s}=zu(a.props),u=V([]),c=V(),d=x(()=>e.data.length);fe(()=>d.value,()=>{var O,I;(I=(O=a.tooltipRef.value)==null?void 0:O.updatePopper)==null||I.call(O)});const f=x(()=>Et(a.props.estimatedOptionHeight)),h=x(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:O=>u.value[O]}),g=(O=[],I)=>{const{props:{valueKey:L}}=a;return lt(I)?O&&O.some(z=>jt(bn(z,L))===bn(I,L)):O.includes(I)},p=(O,I)=>{if(lt(I)){const{valueKey:L}=a.props;return bn(O,L)===bn(I,L)}else return O===I},v=(O,I)=>a.props.multiple?g(O,r(I)):p(O,r(I)),m=(O,I)=>{const{disabled:L,multiple:z,multipleLimit:q}=a.props;return L||!I&&(z?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:c,isSized:f,isItemDisabled:m,isItemHovering:y,isItemSelected:v,scrollToItem:O=>{const I=c.value;I&&I.scrollToItem(O)},resetScrollTop:()=>{const O=c.value;O&&O.resetScrollTop()}});const _=O=>{const{index:I,data:L,style:z}=O,q=i(f),{itemSize:U,estimatedSize:F}=i(h),{modelValue:N}=a.props,{onSelect:P,onHover:B}=a,K=L[I];if(K.type==="Group")return Q(Aee,{item:K,style:z,height:q?U:F},null);const W=v(N,K),j=m(N,W),G=y(I);return Q(Lee,ht(O,{selected:W,disabled:s(K)||j,created:!!K.created,hovering:G,item:K,onSelect:P,onHover:B}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Q("span",null,[l(K)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=a,T=()=>{S("forward")},M=()=>{S("backward")},A=O=>{const I=Kt(O),{tab:L,esc:z,down:q,up:U,enter:F,numpadEnter:N}=Ce;switch([z,q,U,F,N].includes(I)&&(O.preventDefault(),O.stopPropagation()),I){case L:case z:break;case q:T();break;case U:M();break;case F:case N:k();break}};return()=>{var N,P,B,K;const{data:O,width:I}=e,{height:L,multiple:z,scrollbarAlwaysOn:q}=a.props,U=x(()=>ed?!0:q),F=i(f)?qw:gee;return Q("div",{class:[o.b("dropdown"),o.is("multiple",z)],style:{width:`${I}px`}},[(N=t.header)==null?void 0:N.call(t),((P=t.loading)==null?void 0:P.call(t))||((B=t.empty)==null?void 0:B.call(t))||Q(F,ht({ref:c},i(h),{className:o.be("dropdown","list"),scrollbarAlwaysOn:U.value,data:O,height:L,width:I,total:O.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:A}),{default:W=>Q(_,W,null)}),(K=t.footer)==null?void 0:K.call(t)])}}});function zee(e,t){const{aliasProps:n,getLabel:a,getValue:o}=zu(e),l=V(0),r=V(),s=x(()=>e.allowCreate&&e.filterable);fe(()=>e.options,g=>{const p=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(a(v)))});function u(g){const p=v=>a(v)===g;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(g){s.value&&(e.multiple&&g.created?l.value++:r.value=g)}function d(g){if(s.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const p={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(g){if(!s.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const p=t.createdOptions.findIndex(v=>o(v)===o(g));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){s.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const Dee=(e,t)=>{const{t:n}=kt(),a=hn(),o=ve("select"),l=ve("input"),{form:r,formItem:s}=Bn(),{inputId:u}=Pa(e,{formItemContext:s}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:g}=zu(e),{valueOnClear:p,isEmptyValue:v}=Pu(e),m=Rt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=V(-1),b=V(!1),w=V(),_=V(),S=V(),k=V(),T=V(),M=V(),A=V(),O=V(),I=V(),L=V(),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}=Nu({afterComposition:ke=>Jt(ke)}),N=rn(),{wrapperRef:P,isFocused:B,handleBlur:K}=Cl(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(ke){var rt,Ct;return((rt=S.value)==null?void 0:rt.isFocusInsideContent(ke))||((Ct=k.value)==null?void 0:Ct.isFocusInsideContent(ke))},afterBlur(){var ke;ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&((ke=s==null?void 0:s.validate)==null||ke.call(s,"blur").catch(rt=>pt(rt)))}}),W=x(()=>Ae("")),j=x(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),G=V([]),ee=V(!1),te=x(()=>(r==null?void 0:r.statusIcon)??!1),ue=x(()=>{const ke=G.value.length*e.itemHeight;return ke>e.height?e.height:ke}),ne=x(()=>e.multiple?be(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=x(()=>e.clearable&&!N.value&&ne.value&&(B.value||m.inputHovering)),se=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=x(()=>se.value&&o.is("reverse",ee.value)),X=x(()=>(s==null?void 0:s.validateState)||""),H=x(()=>{if(X.value)return pf[X.value]}),Z=x(()=>e.remote?e.debounce:0),le=x(()=>e.remote&&!m.inputValue&&!j.value),ce=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&j.value&&G.value.length===0?e.noMatchText||n("el.select.noMatch"):j.value?null:e.noDataText||n("el.select.noData")),ge=x(()=>e.filterable&&Fe(e.filterMethod)),me=x(()=>e.filterable&&e.remote&&Fe(e.remoteMethod)),Ae=ke=>{const rt=new RegExp(Yp(ke),"i"),Ct=xt=>ge.value||me.value?!0:ke?rt.test(d(xt)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((xt,zn)=>{const va=g(zn);if(be(va)){const ni=va.filter(Ct);ni.length>0&&xt.push({label:d(zn),type:"Group"},...ni)}else(e.remote||Ct(zn))&&xt.push(zn);return xt},[])},Ne=()=>{G.value=Ae(m.inputValue)},Re=x(()=>{const ke=new Map;return W.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),ye=x(()=>{const ke=new Map;return G.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),Ee=x(()=>G.value.every(ke=>h(ke))),we=_n(),Ie=x(()=>we.value==="small"?"small":"default"),ze=()=>{var rt;if(He(e.fitInputWidth)){y.value=e.fitInputWidth;return}const ke=((rt=w.value)==null?void 0:rt.offsetWidth)||200;!e.fitInputWidth&&j.value?Le(()=>{y.value=Math.max(ke,et())}):y.value=ke},et=()=>{var va,ni;const ke=document.createElement("canvas").getContext("2d"),rt=o.be("dropdown","item"),Ct=(((ni=(va=O.value)==null?void 0:va.listRef)==null?void 0:ni.innerRef)||document).querySelector(`.${rt}`);if(Ct===null||ke===null)return 0;const xt=getComputedStyle(Ct),zn=Number.parseFloat(xt.paddingLeft)+Number.parseFloat(xt.paddingRight);return ke.font=`bold ${xt.font.replace(new RegExp(`\\b${xt.fontWeight}\\b`),"")}`,G.value.reduce((F9,K9)=>{const W9=ke.measureText(d(K9));return Math.max(W9.width,F9)},0)+zn},nt=()=>{if(!_.value)return 0;const ke=window.getComputedStyle(_.value);return Number.parseFloat(ke.gap||"6px")},at=x(()=>{const ke=nt(),rt=e.filterable?ke+Wd:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-ke-rt:m.selectionWidth-rt}px`}}),Me=x(()=>({maxWidth:`${m.selectionWidth}px`})),Ge=x(()=>be(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),ut=x(()=>{const ke=e.placeholder??n("el.select.placeholder");return e.multiple||!ne.value?ke:m.selectedLabel}),je=x(()=>{var ke,rt;return(rt=(ke=S.value)==null?void 0:ke.popperRef)==null?void 0:rt.contentRef}),tt=x(()=>{if(e.multiple){const ke=e.modelValue.length;if(ke>0&&ye.value.has(e.modelValue[ke-1])){const{index:rt}=ye.value.get(e.modelValue[ke-1]);return rt}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:ke}=ye.value.get(e.modelValue);return ke}return-1}),yt=x({get(){return ee.value&&(e.loading||!le.value||e.remote&&!!a.empty)&&(!b.value||!ca(m.previousQuery)||j.value)},set(ke){ee.value=ke}}),he=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Ve=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pe,removeNewOption:Te,selectNewOption:ct,clearAllNewOption:Pt}=zee(e,m),Gt=ke=>{var rt;N.value||e.filterable&&ee.value&&ke&&!((rt=A.value)!=null&&rt.contains(ke.target))||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},Oe=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),pe(m.inputValue),Le(()=>{Ze(m.inputValue)})},We=gu(()=>{Oe(),b.value=!1},Z),Ze=ke=>{m.previousQuery===ke||z.value||(m.previousQuery=ke,e.filterable&&Fe(e.filterMethod)?e.filterMethod(ke):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(ke),e.defaultFirstOption&&(e.filterable||e.remote)&&G.value.length?Le(cn):Le(Tt))},cn=()=>{const ke=G.value.filter(xt=>!xt.disabled&&xt.type!=="Group"),rt=ke.find(xt=>xt.created),Ct=ke[0];m.hoveringIndex=Ue(G.value,rt||Ct)},zt=ke=>{an(e.modelValue,ke)||t(bt,ke)},Xt=ke=>{t(ot,ke),zt(ke),m.previousValue=e.multiple?String(ke):ke,Le(()=>{if(e.multiple&&be(e.modelValue)){const rt=m.cachedOptions.slice(),Ct=e.modelValue.map(xt=>ei(xt,rt));an(m.cachedOptions,Ct)||(m.cachedOptions=Ct)}else qr(!0)})},Ue=(ke=[],rt)=>{if(!lt(rt))return ke.indexOf(rt);const Ct=e.valueKey;let xt=-1;return ke.some((zn,va)=>bn(zn,Ct)===bn(rt,Ct)?(xt=va,!0):!1),xt},Xe=ke=>lt(ke)?bn(ke,e.valueKey):ke,mt=()=>{ze()},Mn=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(_.value).width)},go=()=>{m.collapseItemWidth=L.value.getBoundingClientRect().width},ja=()=>{var ke,rt;(rt=(ke=S.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Yu=()=>{var ke,rt;(rt=(ke=k.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Xl=ke=>{const rt=f(ke);if(e.multiple){let Ct=e.modelValue.slice();const xt=Ue(Ct,rt);xt>-1?(Ct=[...Ct.slice(0,xt),...Ct.slice(xt+1)],m.cachedOptions.splice(xt,1),Te(ke)):(e.multipleLimit<=0||Ct.length{let Ct=e.modelValue.slice();const xt=Ue(Ct,f(rt));xt>-1&&!N.value&&(Ct=[...e.modelValue.slice(0,xt),...e.modelValue.slice(xt+1)],m.cachedOptions.splice(xt,1),Xt(Ct),t("remove-tag",f(rt)),Te(rt)),ke.stopPropagation(),Ko()},Ko=()=>{var ke;(ke=T.value)==null||ke.focus()},Af=()=>{var ke;if(ee.value){ee.value=!1,Le(()=>{var rt;return(rt=T.value)==null?void 0:rt.blur()});return}(ke=T.value)==null||ke.blur()},Rf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Nf=ke=>r8(ke,rt=>!m.cachedOptions.some(Ct=>f(Ct)===rt&&h(Ct))),Pf=ke=>{const rt=Kt(ke);if(e.multiple&&rt!==Ce.delete&&m.inputValue.length===0){ke.preventDefault();const Ct=e.modelValue.slice(),xt=Nf(Ct);if(xt<0)return;const zn=Ct[xt];Ct.splice(xt,1);const va=m.cachedOptions[xt];m.cachedOptions.splice(xt,1),Te(va),Xt(Ct),t("remove-tag",zn)}},If=()=>{let ke;be(e.modelValue)?ke=[]:ke=p.value,m.selectedLabel="",ee.value=!1,Xt(ke),t("clear"),Pt(),Ko()},kl=(ke,rt=void 0)=>{const Ct=G.value;if(!["forward","backward"].includes(ke)||N.value||Ct.length<=0||Ee.value||z.value)return;if(!ee.value)return Gt();Et(rt)&&(rt=m.hoveringIndex);let xt=-1;ke==="forward"?(xt=rt+1,xt>=Ct.length&&(xt=0)):ke==="backward"&&(xt=rt-1,(xt<0||xt>=Ct.length)&&(xt=Ct.length-1));const zn=Ct[xt];if(h(zn)||zn.type==="Group")return kl(ke,xt);m.hoveringIndex=xt,Wo(xt)},xe=()=>{if(ee.value)~m.hoveringIndex&&G.value[m.hoveringIndex]&&Xl(G.value[m.hoveringIndex]);else return Gt()},Qe=ke=>{m.hoveringIndex=ke??-1},Tt=()=>{if(!e.multiple)m.hoveringIndex=G.value.findIndex(ke=>Xe(f(ke))===Xe(e.modelValue));else{const ke=e.modelValue.length;if(ke>0){const rt=e.modelValue[ke-1];m.hoveringIndex=G.value.findIndex(Ct=>Xe(rt)===Xe(f(Ct)))}else m.hoveringIndex=-1}},Jt=ke=>{if(m.inputValue=ke.target.value,e.remote)b.value=!0,We();else return Oe()},Cn=ke=>{ee.value=!1,B.value&&K(new FocusEvent("blur",ke))},Pn=()=>(m.isBeforeHide=!1,Le(()=>{~tt.value&&Wo(tt.value)})),Wo=ke=>{O.value.scrollToItem(ke)},ei=(ke,rt)=>{const Ct=Xe(ke);if(Re.value.has(Ct)){const{option:xt}=Re.value.get(Ct);return xt}if(rt&&rt.length){const xt=rt.find(zn=>Xe(f(zn))===Ct);if(xt)return xt}return{[c.value.value]:ke,[c.value.label]:ke}},Jl=ke=>{var rt;return((rt=Re.value.get(f(ke)))==null?void 0:rt.index)??-1},qr=(ke=!1)=>{if(e.multiple)if(e.modelValue.length>0){const rt=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const Ct of e.modelValue){const xt=ei(Ct,rt);m.cachedOptions.push(xt)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ne.value){m.previousValue=e.modelValue;const rt=G.value,Ct=rt.findIndex(xt=>Xe(f(xt))===Xe(e.modelValue));~Ct?m.selectedLabel=d(rt[Ct]):(!m.selectedLabel||ke)&&(m.selectedLabel=Xe(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Pt(),ze()};fe(()=>e.fitInputWidth,()=>{ze()}),fe(ee,ke=>{ke?(e.persistent||ze(),Ze("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,pe(""))}),fe(()=>e.modelValue,(ke,rt)=>{var Ct;(!ke||be(ke)&&ke.length===0||e.multiple&&!an(ke.toString(),m.previousValue)||!e.multiple&&Xe(ke)!==Xe(m.previousValue))&&qr(!0),!an(ke,rt)&&e.validateEvent&&((Ct=s==null?void 0:s.validate)==null||Ct.call(s,"change").catch(xt=>pt(xt)))},{deep:!0}),fe(()=>e.options,()=>{const ke=T.value;(!ke||ke&&document.activeElement!==ke)&&qr()},{deep:!0,flush:"post"}),fe(()=>G.value,()=>(ze(),O.value&&Le(O.value.resetScrollTop))),da(()=>{m.isBeforeHide||Ne()}),da(()=>{const{valueKey:ke,options:rt}=e,Ct=new Map;for(const xt of rt){const zn=f(xt);let va=zn;if(lt(va)&&(va=bn(zn,ke)),Ct.get(va)){pt("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else Ct.set(va,!0)}}),gt(()=>{qr()}),Zt(w,mt),Zt(_,Mn),Zt(P,ja),Zt(I,Yu),Zt(L,go);let ti;return fe(()=>yt.value,ke=>{ke?ti=Zt(O,ja).stop:(ti==null||ti(),ti=void 0),t("visible-change",ke)}),{inputId:u,collapseTagSize:Ie,currentPlaceholder:ut,expanded:ee,emptyText:ce,popupHeight:ue,debounce:Z,allOptions:W,allOptionsValueMap:Re,filteredOptions:G,iconComponent:se,iconReverse:Y,tagStyle:at,collapseTagStyle:Me,popperSize:y,dropdownMenuVisible:yt,hasModelValue:ne,shouldShowPlaceholder:Ge,selectDisabled:N,selectSize:we,needStatusIcon:te,showClearBtn:de,states:m,isFocused:B,nsSelect:o,nsInput:l,inputRef:T,menuRef:O,tagMenuRef:I,tooltipRef:S,tagTooltipRef:k,selectRef:w,wrapperRef:P,selectionRef:_,prefixRef:M,suffixRef:A,collapseItemRef:L,popperRef:je,validateState:X,validateIcon:H,showTagList:he,collapseTagList:Ve,debouncedOnInputChange:We,deleteTag:Gu,getLabel:d,getValue:f,getDisabled:h,getValueKey:Xe,getIndex:Jl,handleClear:If,handleClickOutside:Cn,handleDel:Pf,handleEsc:Rf,focus:Ko,blur:Af,handleMenuEnter:Pn,handleResize:mt,resetSelectionWidth:Mn,updateTooltip:ja,updateTagTooltip:Yu,updateOptions:Ne,toggleMenu:Gt,scrollTo:Wo,onInput:Jt,onKeyboardNavigate:kl,onKeyboardSelect:xe,onSelect:Xl,onHover:Qe,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}};var Hee=D({name:"ElSelectV2",components:{ElSelectMenu:Bee,ElTag:ll,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:kee,emits:Tee,setup(e,{emit:t}){const n=x(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return be(u)?c?u:d:c?d:u}),a=Dee(Rt({...Nn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:l}=Up(),r=Kn();wt(Xh,{props:Rt({...Nn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:r,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=x(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:g6}}});const Fee=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Kee=["textContent"],Wee={key:1};function jee(e,t,n,a,o,l){const r=Ot("el-tag"),s=Ot("el-tooltip"),u=Ot("el-icon"),c=Ot("el-select-menu"),d=Sp("click-outside");return ft((C(),$("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ae(()=>{var f;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(C(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,g,p,v,m,y,b,w,_,S,k,T,M;return[(C(!0),$(Ke,null,_t(e.showTagList,A=>(C(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(C(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((h=e.tagTooltip)==null?void 0:h.fallbackPlacements)??["bottom","top","right","left"],effect:((g=e.tagTooltip)==null?void 0:g.effect)??e.effect,placement:((p=e.tagTooltip)==null?void 0:p.placement)??"bottom","popper-class":((v=e.tagTooltip)==null?void 0:v.popperClass)??e.popperClass,"popper-style":((m=e.tagTooltip)==null?void 0:m.popperStyle)??e.popperStyle,teleported:((y=e.tagTooltip)==null?void 0:y.teleported)??e.teleported,"append-to":((b=e.tagTooltip)==null?void 0:b.appendTo)??e.appendTo,"popper-options":((w=e.tagTooltip)==null?void 0:w.popperOptions)??e.popperOptions,transition:(_=e.tagTooltip)==null?void 0:_.transition,"show-after":(S=e.tagTooltip)==null?void 0:S.showAfter,"hide-after":(k=e.tagTooltip)==null?void 0:k.hideAfter,"auto-close":(T=e.tagTooltip)==null?void 0:T.autoClose,offset:(M=e.tagTooltip)==null?void 0:M.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:qe(e.collapseTagStyle),"disable-transitions":""},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(C(!0),$(Ke,null,_t(e.collapseTagList,A=>(C(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:qe(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[1]||(t[1]=Je(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[3]||(t[3]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[4]||(t[4]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[5]||(t[5]=nn(Je(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=nn(Je(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=nn(Je((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[8]||(t[8]=nn(Je((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[9]||(t[9]=nn(Je((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,Fee),e.filterable?(C(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,Kee)):re("v-if",!0)],2),e.shouldShowPlaceholder?(C(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:((f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(C(),$("span",Wee,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?ft((C(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])),[[$t,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(C(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Je(e.handleClear,["prevent","stop"])},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(C(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(C(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},fa({default:ae(f=>[oe(e.$slots,"default",nl(al(f)))]),_:2},[e.$slots.header?{name:"header",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var qee=En(Hee,[["render",jee]]);const Uee=it(qee),Yee=_e({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:J([Number,Object])}}),Gee=_e({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var Xee=D({name:"ElSkeletonItem",__name:"skeleton-item",props:Gee,setup(e){const t=ve("skeleton");return(n,a)=>(C(),$("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(C(),ie(i(Cy),{key:0})):re("v-if",!0)],2))}}),xd=Xee,Jee=D({name:"ElSkeleton",__name:"skeleton",props:Yee,setup(e,{expose:t}){const n=e,a=ve("skeleton"),o=BO(Bt(n,"loading"),n.throttle);return t({uiLoading:o}),(l,r)=>i(o)?(C(),$("div",ht({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},l.$attrs),[(C(!0),$(Ke,null,_t(e.count,s=>(C(),$(Ke,{key:s},[i(o)?oe(l.$slots,"template",{key:s},()=>[Q(xd,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(C(!0),$(Ke,null,_t(e.rows,u=>(C(),ie(xd,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(l.$slots,"default",nl(ht({key:1},l.$attrs)))}}),Zee=Jee;const Qee=it(Zee,{SkeletonItem:xd}),ete=tn(xd),e5=Symbol("sliderContextKey"),tte=_e({modelValue:{type:J([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:J([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:kn,inputSize:kn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:J(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:J(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ho,default:"top"},marks:{type:J(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...oa(["ariaLabel"])}),g0=e=>He(e)||be(e)&&e.every(He),nte={[ot]:g0,[wn]:g0,[bt]:g0},ate=(e,t,n)=>{const a=V();return gt(async()=>{e.range?(be(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!He(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Vt(window,"resize",n),await Le(),n()}),{sliderWrapper:a}},ote=e=>{const t=x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return da(()=>{if(e.step==="mark"&&!e.marks&&pt("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(l=>l.point),o=n.filter(l=>{const r=Number.parseFloat(l);return Number.isNaN(r)||!a.includes(r)});o.length>0&&pt("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(l=>`'${l}'`).join(", ")}] and will be ignored.`)}}),t},lte=(e,t,n)=>{const{formItem:a}=Bn(),o=qt(),l=V(),r=V(),s={firstButton:l,secondButton:r},u=rn(),c=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),f=x(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=x(()=>e.vertical?{height:e.height}:{}),p=x(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=I=>{const L=e.min+I*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(c.value-L)t.secondValue?"firstButton":"secondButton",s[z]},y=I=>{const L=m(I);return L.value.setPosition(I),L},b=I=>{t.firstValue=I??e.min,_(e.range?[c.value,d.value]:I??e.min)},w=I=>{t.secondValue=I,e.range&&_([c.value,d.value])},_=I=>{n(ot,I),n(wn,I)},S=async()=>{await Le(),n(bt,e.range?[c.value,d.value]:e.modelValue)},k=I=>{var z,q,U,F;if(u.value||t.dragging)return;v();let L=0;if(e.vertical){const N=((q=(z=I.touches)==null?void 0:z.item(0))==null?void 0:q.clientY)??I.clientY;L=(o.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else L=((((F=(U=I.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)??I.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!(L<0||L>100))return y(L)};return{elFormItem:a,slider:o,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:p,resetSize:v,setPosition:y,emitChange:S,onSliderWrapperPrevent:I=>{var L,z;((L=s.firstButton.value)!=null&&L.dragging||(z=s.secondButton.value)!=null&&z.dragging)&&I.preventDefault()},onSliderClick:I=>{k(I)&&S()},onSliderDown:async I=>{const L=k(I);L&&(await Le(),L.value.onButtonDown(I))},onSliderMarkerDown:I=>{u.value||t.dragging||y(I)&&S()},setFirstValue:b,setSecondValue:w}},rte=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&pt("ElSlider","step should not be 0."),[];const r=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*s);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),ste=(e,t,n,a,o,l)=>{const r=c=>{o(ot,c),o(wn,c)},s=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var d,f;e.min>e.max&&en("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&be(c)?c[1]e.max?r([e.max,e.max]):c[0]e.max?r([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>pt(h))),t.oldValue=c.slice())):!e.range&&He(c)&&!Number.isNaN(c)&&(ce.max?r(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((f=l==null?void 0:l.validate)==null||f.call(l,"change").catch(h=>pt(h))),t.oldValue=c)))};u(),fe(()=>t.dragging,c=>{c||u()}),fe(()=>e.modelValue,(c,d)=>{t.dragging||be(c)&&be(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),fe(()=>[e.min,e.max],()=>{u()})},ite=(e,t,n)=>{const a=V(),o=V(!1),l=x(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:x(()=>l.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Vo(()=>{n.value&&(o.value=!0)},50),hideTooltip:Vo(()=>{n.value&&(o.value=!1)},50)}},ute=(e,t,n)=>{const{disabled:a,min:o,max:l,step:r,showTooltip:s,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:g,updateDragging:p,markList:v}=Pe(e5),{tooltip:m,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:_}=ite(e,f,s),S=V(),k=x(()=>`${(e.modelValue-o.value)/(l.value-o.value)*100}%`),T=x(()=>e.vertical?{bottom:k.value}:{left:k.value}),M=x(()=>r.value==="mark"&&v.value.length>0),A=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||_()},I=ue=>{a.value||(ue.preventDefault(),j(ue),window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},L=ue=>{a.value||(t.newPosition=Number.parseFloat(k.value)+ue/(l.value-o.value)*100,te(t.newPosition),h())},z=ue=>{if(a.value||!v.value.length)return;const ne=e.modelValue,de=Number.EPSILON,se=Math.abs(ue);let Y;if(ue>0){const X=v.value.findIndex(H=>H.point>ne+de);if(X!==-1){const H=Math.min(X+se-1,v.value.length-1);Y=v.value[H].point}}else{let X=-1;for(let H=v.value.length-1;H>=0;H--)if(v.value[H].point{M.value?z(-1):He(r.value)&&L(-r.value)},U=()=>{M.value?z(1):He(r.value)&&L(r.value)},F=()=>{M.value?z(-4):He(r.value)&&L(-r.value*4)},N=()=>{M.value?z(4):He(r.value)&&L(r.value*4)},P=()=>{a.value||(te(0),h())},B=()=>{a.value||(te(100),h())},K=ue=>{const ne=Kt(ue);let de=!0;switch(ne){case Ce.left:case Ce.down:q();break;case Ce.right:case Ce.up:U();break;case Ce.home:P();break;case Ce.end:B();break;case Ce.pageDown:F();break;case Ce.pageUp:N();break;default:de=!1;break}de&&ue.preventDefault()},W=ue=>{let ne,de;return ue.type.startsWith("touch")?(de=ue.touches[0].clientY,ne=ue.touches[0].clientX):(de=ue.clientY,ne=ue.clientX),{clientX:ne,clientY:de}},j=ue=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:de}=W(ue);e.vertical?t.startY=de:t.startX=ne,t.startPosition=Number.parseFloat(k.value),t.newPosition=t.startPosition},G=ue=>{if(t.dragging){t.isClick=!1,w(),g();let ne;const{clientX:de,clientY:se}=W(ue);e.vertical?(t.currentY=se,ne=(t.startY-t.currentY)/d.value*100):(t.currentX=de,ne=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ne,te(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||te(t.newPosition),h()},0),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},te=async ue=>{if(ue===null||Number.isNaN(+ue))return;ue=fr(ue,0,100);let ne;if(r.value==="mark")v.value.length===0?ne=ue<=50?o.value:l.value:ne=v.value.reduce((de,se)=>Math.abs(se.position-ue)t.dragging,ue=>{p(ue)}),Vt(S,"touchstart",I,{passive:!1}),{disabled:a,button:S,tooltip:m,tooltipVisible:y,showTooltip:s,persistent:u,wrapperStyle:T,formatValue:b,handleMouseEnter:A,handleMouseLeave:O,onButtonDown:I,onKeyDown:K,setPosition:te}},cte=_e({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ho,default:"top"}}),dte={[ot]:e=>He(e)},fte=["tabindex"];var pte=D({name:"ElSliderButton",__name:"button",props:cte,emits:dte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),r=Rt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),s=x(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:g,wrapperStyle:p,formatValue:v,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:_}=ute(a,r,o),{hovering:S,dragging:k}=Nn(r);return t({onButtonDown:b,onKeyDown:w,setPosition:_,hovering:S,dragging:k}),(T,M)=>(C(),$("div",{ref_key:"button",ref:c,class:R([i(l).e("button-wrapper"),{hover:i(S),dragging:i(k)}]),style:qe(i(p)),tabindex:i(u)?void 0:0,onMouseenter:M[0]||(M[0]=(...A)=>i(m)&&i(m)(...A)),onMouseleave:M[1]||(M[1]=(...A)=>i(y)&&i(y)(...A)),onMousedown:M[2]||(M[2]=(...A)=>i(b)&&i(b)(...A)),onFocus:M[3]||(M[3]=(...A)=>i(m)&&i(m)(...A)),onBlur:M[4]||(M[4]=(...A)=>i(y)&&i(y)(...A)),onKeydown:M[5]||(M[5]=(...A)=>i(w)&&i(w)(...A))},[Q(i(Vn),{ref_key:"tooltip",ref:d,visible:i(g),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!i(f),persistent:s.value},{content:ae(()=>[E("span",null,Se(i(v)),1)]),default:ae(()=>[E("div",{class:R([i(l).e("button"),{hover:i(S),dragging:i(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,fte))}}),Rg=pte;const hte=_e({mark:{type:J([String,Object]),default:void 0}});var vte=D({name:"ElSliderMarker",props:hte,setup(e){const t=ve("slider"),n=x(()=>Be(e.mark)?e.mark:e.mark.label),a=x(()=>Be(e.mark)?void 0:e.mark.style);return()=>Ye("div",{class:t.e("marks-text"),style:a.value},n.value)}});const mte=["id","role","aria-label","aria-labelledby"],gte={key:1};var yte=D({name:"ElSlider",__name:"slider",props:tte,emits:nte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),{t:r}=kt(),s=Rt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:g,maxValue:p,runwayStyle:v,barStyle:m,resetSize:y,emitChange:b,onSliderWrapperPrevent:w,onSliderClick:_,onSliderDown:S,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:M}=lte(a,s,o),{stops:A,getStopStyle:O}=rte(a,s,g,p),{inputId:I,isLabeledByFormItem:L}=Pa(a,{formItemContext:u}),z=_n(),q=x(()=>a.inputSize||z.value),U=x(()=>a.showInput&&!a.range&&a.step!=="mark"),F=x(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),N=x(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):F.value),P=x(()=>a.formatValueText?a.formatValueText(ue.value):`${ue.value}`),B=x(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),K=x(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),W=x(()=>[l.b(),l.m(z.value),l.is("vertical",a.vertical),{[l.m("with-input")]:U.value}]),j=ote(a);ste(a,s,g,p,o,u);const G=x(()=>He(a.step)?a.step:1),ee=x(()=>{const Y=He(a.step)?a.step:1,X=[a.min,a.max,Y].map(H=>{const Z=`${H}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,X)}),{sliderWrapper:te}=ate(a,s,y),{firstValue:ue,secondValue:ne,sliderSize:de}=Nn(s),se=Y=>{s.dragging=Y};return Vt(te,"touchstart",w,{passive:!1}),Vt(te,"touchmove",w,{passive:!1}),wt(e5,{...Nn(a),sliderSize:de,disabled:h,precision:ee,markList:j,emitChange:b,resetSize:y,updateDragging:se}),t({onSliderClick:_}),(Y,X)=>{var H,Z;return C(),$("div",{id:Y.range?i(I):void 0,ref_key:"sliderWrapper",ref:te,class:R(W.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i(L)?F.value:void 0,"aria-labelledby":Y.range&&i(L)?(H=i(u))==null?void 0:H.labelId:void 0},[E("div",{ref_key:"slider",ref:c,class:R([i(l).e("runway"),{"show-input":U.value},i(l).is("disabled",i(h))]),style:qe(i(v)),onMousedown:X[0]||(X[0]=(...le)=>i(S)&&i(S)(...le)),onTouchstartPassive:X[1]||(X[1]=(...le)=>i(S)&&i(S)(...le))},[E("div",{class:R(i(l).e("bar")),style:qe(i(m))},null,6),Q(Rg,{id:Y.range?void 0:i(I),ref_key:"firstButton",ref:d,"model-value":i(ue),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i(L)?N.value:void 0,"aria-labelledby":!Y.range&&i(L)?(Z=i(u))==null?void 0:Z.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(ne):Y.max,"aria-valuenow":i(ue),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(C(),ie(Rg,{key:0,ref_key:"secondButton",ref:f,"model-value":i(ne),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":B.value,"aria-valuemin":i(ue),"aria-valuemax":Y.max,"aria-valuenow":i(ne),"aria-valuetext":K.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(C(),$("div",gte,[(C(!0),$(Ke,null,_t(i(A),(le,ce)=>(C(),$("div",{key:ce,class:R(i(l).e("stop")),style:qe(i(O)(le))},null,6))),128))])):re("v-if",!0),i(j).length>0?(C(),$(Ke,{key:2},[E("div",null,[(C(!0),$(Ke,null,_t(i(j),(le,ce)=>(C(),$("div",{key:ce,style:qe(i(O)(le.position)),class:R([i(l).e("stop"),i(l).e("marks-stop")])},null,6))),128))]),E("div",{class:R(i(l).e("marks"))},[(C(!0),$(Ke,null,_t(i(j),(le,ce)=>(C(),ie(i(vte),{key:ce,mark:le.mark,style:qe(i(O)(le.position)),onMousedown:Je(ge=>i(k)(le.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),U.value?(C(),ie(i(Mw),{key:0,ref:"input","model-value":i(ue),class:R(i(l).e("input")),step:G.value,disabled:i(h),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:q.value,"onUpdate:modelValue":i(T),onChange:i(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,mte)}}}),bte=yte;const wte=it(bte),Cte=_e({prefixCls:{type:String}}),Ng=D({name:"ElSpaceItem",props:Cte,setup(e,{slots:t}){const n=ve("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>Ye("div",{class:a.value},oe(t,"default"))}}),Pg={small:8,default:12,large:16};function _te(e){const t=ve("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=V(0),o=V(0),l=x(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return da(()=>{const{size:s="small",wrap:u,direction:c,fill:d}=e;if(be(s)){const[f=0,h=0]=s;a.value=f,o.value=h}else{let f;He(s)?f=s:f=Pg[s||"small"]||Pg.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const Ste=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:J([String,Object,Array]),default:""},style:{type:J([String,Array,Object]),default:""},alignment:{type:J(String),default:"center"},prefixCls:{type:String},spacer:{type:J([Object,String,Number,Array]),default:null,validator:e=>Wt(e)||He(e)||Be(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:io,validator:e=>He(e)||be(e)&&e.length===2&&e.every(He)}}),xte=D({name:"ElSpace",props:Ste,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=_te(e);function l(r,s="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{p2(d)?be(d.children)&&d.children.forEach((h,g)=>{p2(h)&&be(h.children)?l(h.children,`${s+g}-`,u):Wt(h)&&(h==null?void 0:h.type)===mn?u.push(h):u.push(Q(Ng,{style:o.value,prefixCls:c,key:`nested-${s+g}`},{default:()=>[h]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}):V$(d)&&u.push(Q(Ng,{style:o.value,prefixCls:c,key:`LoopKey${s+f}`},{default:()=>[d]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}),u}return()=>{const{spacer:r,direction:s}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(be(u.children)){let c=l(u.children);if(r){const d=c.length-1;c=c.reduce((f,h,g)=>{const p=[...f,h];return g!==d&&p.push(Q("span",{style:[o.value,s==="vertical"?"width: 100%":null],key:g},[Wt(r)?r:St(r,qa.TEXT)],qa.STYLE)),p},[])}return Q("div",{class:n.value,style:a.value},c,qa.STYLE|qa.CLASS)}return u.children}}}),kte=it(xte),Ete=_e({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:J([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:J([String,Object,Array])}});var Tte=D({name:"ElStatistic",__name:"statistic",props:Ete,setup(e,{expose:t}){const n=e,a=ve("statistic"),o=x(()=>{const{value:l,formatter:r,precision:s,decimalSeparator:u,groupSeparator:c}=n;if(Fe(r))return r(l);if(!He(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(l,r)=>(C(),$("div",{class:R(i(a).b())},[l.$slots.title||e.title?(C(),$("div",{key:0,class:R(i(a).e("head"))},[oe(l.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[l.$slots.prefix||e.prefix?(C(),$("div",{key:0,class:R(i(a).e("prefix"))},[oe(l.$slots,"prefix",{},()=>[E("span",null,Se(e.prefix),1)])],2)):re("v-if",!0),E("span",{class:R(i(a).e("number")),style:qe(e.valueStyle)},Se(o.value),7),l.$slots.suffix||e.suffix?(C(),$("div",{key:1,class:R(i(a).e("suffix"))},[oe(l.$slots,"suffix",{},()=>[E("span",null,Se(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),Mte=Tte;const t5=it(Mte),Ote=_e({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:J([Number,Object]),default:0},valueStyle:{type:J([String,Object,Array])}}),$te={finish:()=>!0,[bt]:e=>He(e)},Ate=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],Ig=e=>He(e)?new Date(e).getTime():e.valueOf(),Lg=(e,t)=>{let n=e;return Ate.reduce((a,[o,l])=>{const r=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(r.test(a)){const s=Math.floor(n/l);return n-=s*l,a.replace(r,u=>String(s).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var Rte=D({name:"ElCountdown",__name:"countdown",props:Ote,emits:$te,setup(e,{expose:t,emit:n}){const a=e,o=n;let l;const r=V(0),s=x(()=>Lg(r.value,a.format)),u=f=>Lg(f,a.format),c=()=>{l&&(cl(l),l=void 0)},d=()=>{const f=Ig(a.value),h=()=>{let g=f-Date.now();o(bt,g),g<=0?(g=0,c(),o("finish")):l=Fa(h),r.value=g};l=Fa(h)};return gt(()=>{r.value=Ig(a.value)-Date.now(),fe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Lt(()=>{c()}),t({displayValue:s}),(f,h)=>(C(),ie(i(t5),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},fa({_:2},[_t(f.$slots,(g,p)=>({name:p,fn:ae(()=>[oe(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),Nte=Rte;const Pte=it(Nte),Ite=_e({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Lte={[bt]:(e,t)=>[e,t].every(He)},n5="ElSteps",Vte=_e({title:{type:String,default:""},icon:{type:Ft},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var Bte=D({name:"ElSteps",__name:"steps",props:Ite,emits:Lte,setup(e,{emit:t}){const n=e,a=t,o=ve("steps"),{children:l,addChild:r,removeChild:s,ChildrenSorter:u}=cf(vt(),"ElStep");return fe(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),wt(n5,{props:n,steps:l,addStep:r,removeStep:s}),fe(()=>n.active,(c,d)=>{a(bt,c,d)}),(c,d)=>(C(),$("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),Q(i(u))],2))}}),zte=Bte,Dte=D({name:"ElStep",__name:"item",props:Vte,setup(e){const t=e,n=ve("step"),a=V(-1),o=V({}),l=V(""),r=Pe(n5),s=vt();let u=0,c=0;gt(()=>{fe([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([M],[A])=>{c=A||0,u=M-c,k(M)},{immediate:!0})});const d=x(()=>t.status||l.value),f=x(()=>{const M=r.steps.value[a.value-1];return M?M.internalStatus.value:"wait"}),h=x(()=>r.props.alignCenter),g=x(()=>r.props.direction==="vertical"),p=x(()=>r.props.simple),v=x(()=>r.steps.value.length),m=x(()=>{var M;return((M=r.steps.value[v.value-1])==null?void 0:M.uid)===s.uid}),y=x(()=>p.value?"":r.props.space),b=x(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",m.value&&!y.value&&!h.value),n.is("center",h.value&&!g.value&&!p.value)]),w=x(()=>{const M={flexBasis:He(y.value)?`${y.value}px`:y.value?y.value:`${100/(v.value-(h.value?0:1))}%`};return g.value||m.value&&(M.maxWidth=`${100/v.value}%`),M}),_=M=>{a.value=M},S=M=>{const A=M==="wait",O={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-r.props.active)*150}ms`},I=M===r.props.processStatus||A?0:100;O.borderWidth=I&&!p.value?"1px":0,O[r.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},k=M=>{M>a.value?l.value=r.props.finishStatus:M===a.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const A=r.steps.value[a.value-1];A&&A.calcProgress(l.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:l,setIndex:_,calcProgress:S};return r.addStep(T),Lt(()=>{r.removeStep(T)}),(M,A)=>(C(),$("div",{style:qe(w.value),class:R(b.value)},[re(" icon & line "),E("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[p.value?re("v-if",!0):(C(),$("div",{key:0,class:R(i(n).e("line"))},[E("i",{class:R(i(n).e("line-inner")),style:qe(o.value)},null,6)],2)),E("div",{class:R([i(n).e("icon"),i(n).is(e.icon||M.$slots.icon?"icon":"text")])},[oe(M.$slots,"icon",{},()=>[e.icon?(C(),ie(i(De),{key:0,class:R(i(n).e("icon-inner"))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])):d.value==="success"?(C(),ie(i(De),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):d.value==="error"?(C(),ie(i(De),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])):p.value?re("v-if",!0):(C(),$("div",{key:3,class:R(i(n).e("icon-inner"))},Se(a.value+1),3))])],2)],2),re(" title & description "),E("div",{class:R(i(n).e("main"))},[E("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(M.$slots,"title",{},()=>[St(Se(e.title),1)])],2),p.value?(C(),$("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(C(),$("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(M.$slots,"description",{},()=>[St(Se(e.description),1)])],2))],2)],6))}}),a5=Dte;const Hte=it(zte,{Step:a5}),Fte=tn(a5),o5=e=>["",...io].includes(e),Kte=_e({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:o5},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ft},activeActionIcon:{type:Ft},activeIcon:{type:Ft},inactiveIcon:{type:Ft},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:J(Function)},id:String,tabindex:{type:[String,Number]},...oa(["ariaLabel"])}),Wte={[ot]:e=>Dt(e)||Be(e)||He(e),[bt]:e=>Dt(e)||Be(e)||He(e),[wn]:e=>Dt(e)||Be(e)||He(e)},jte=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],qte=["aria-hidden"],Ute={key:1},Yte={key:1},Gte=["aria-hidden"],y0="ElSwitch";var Xte=D({name:y0,__name:"switch",props:Kte,emits:Wte,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),r=_n(),s=ve("switch"),{inputId:u}=Pa(a,{formItemContext:l}),c=rn(x(()=>{if(a.loading)return!0})),d=V(a.modelValue!==!1),f=qt(),h=x(()=>[s.b(),s.m(r.value),s.is("disabled",c.value),s.is("checked",y.value)]),g=x(()=>[s.e("label"),s.em("label","left"),s.is("active",!y.value)]),p=x(()=>[s.e("label"),s.em("label","right"),s.is("active",y.value)]),v=x(()=>({width:ln(a.width)}));fe(()=>a.modelValue,()=>{d.value=!0});const m=x(()=>d.value?a.modelValue:!1),y=x(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(ot,a.inactiveValue),o(bt,a.inactiveValue),o(wn,a.inactiveValue)),fe(y,S=>{var k;f.value.checked=S,a.validateEvent&&((k=l==null?void 0:l.validate)==null||k.call(l,"change").catch(T=>pt(T)))});const b=()=>{const S=y.value?a.inactiveValue:a.activeValue;o(ot,S),o(bt,S),o(wn,S),Le(()=>{f.value.checked=y.value})},w=()=>{if(c.value)return;const{beforeChange:S}=a;if(!S){b();return}const k=S();[Kl(k),Dt(k)].includes(!0)||en(y0,"beforeChange must return type `Promise` or `boolean`"),Kl(k)?k.then(T=>{T&&b()}).catch(T=>{pt(y0,`some error occurred: ${T}`)}):k&&b()},_=()=>{var S,k;(k=(S=f.value)==null?void 0:S.focus)==null||k.call(S)};return gt(()=>{f.value.checked=y.value}),t({focus:_,checked:y}),(S,k)=>(C(),$("div",{class:R(h.value),onClick:Je(w,["prevent"])},[E("input",{id:i(u),ref_key:"input",ref:f,class:R(i(s).e("input")),type:"checkbox",role:"switch","aria-checked":y.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:b,onKeydown:nn(w,["enter"])},null,42,jte),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(C(),$("span",{key:0,class:R(g.value)},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(C(),$("span",{key:1,"aria-hidden":y.value},Se(e.inactiveText),9,qte)):re("v-if",!0)])],2)):re("v-if",!0),E("span",{class:R(i(s).e("core")),style:qe(v.value)},[e.inlinePrompt?(C(),$("div",{key:0,class:R(i(s).e("inner"))},[y.value?(C(),$("div",{key:1,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"active",{},()=>[e.activeIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(C(),$("span",Yte,Se(e.activeText),1)):re("v-if",!0)])],2)):(C(),$("div",{key:0,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(C(),$("span",Ute,Se(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),E("div",{class:R(i(s).e("action"))},[e.loading?(C(),ie(i(De),{key:0,class:R(i(s).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):y.value?oe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):y.value?re("v-if",!0):oe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(C(),$("span",{key:1,class:R(p.value)},[oe(S.$slots,"active",{},()=>[e.activeIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(C(),$("span",{key:1,"aria-hidden":!y.value},Se(e.activeText),9,Gte)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),Jte=Xte;const Zte=it(Jte),b0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Qte=function(e,t,n,a,o){if(!t&&!a&&(!o||be(o)&&!o.length))return e;Be(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=a?null:function(s,u){return o?s8($n(o),c=>Be(c)?bn(s,c):c(s,u,e)):(t!=="$key"&<(s)&&"$value"in s&&(s=s.$value),[lt(s)?t?bn(s,t):null:s])},r=function(s,u){var c,d,f,h,g;if(a)return a(s.value,u.value);for(let p=0,v=((c=s.key)==null?void 0:c.length)??0;p((g=u.key)==null?void 0:g[p]))return 1}return 0};return e.map((s,u)=>({value:s,index:u,key:l?l(s,u):null})).sort((s,u)=>{let c=r(s,u);return c||(c=s.index-u.index),c*+n}).map(s=>s.value)},l5=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},ene=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Be(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(Fe(t))return t.call(null,e);return""},gs=function(e,t,n=!1,a="children"){const o=e||[],l={};return o.forEach((r,s)=>{if(l[Wn(r,t)]={row:r,index:s},n){const u=r[a];be(u)&&Object.assign(l,gs(u,t,!0,a))}}),l};function tne(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(Mt(t,a)){const o=t[a];Et(o)||(n[a]=o)}return n}function Jh(e){return e===""||Et(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function r5(e){return e===""||Et(e)||(e=Jh(e),Number.isNaN(e)&&(e=80)),e}function nne(e){return He(e)?e:Be(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function ane(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function kd(e,t,n,a,o,l,r){let s=l??0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Wn(t,r);return e.findIndex(m=>Wn(m,r)===v)})(),f=d!==-1,h=o==null?void 0:o.call(null,t,s),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let m=0;const y=(a==null?void 0:a.children)&&v[a.children];return y&&be(y)&&(m+=y.length,y.forEach(b=>{m+=p(b)})),m};return(!o||h)&&(Dt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&be(t[a.children])&&t[a.children].forEach(v=>{const m=kd(e,v,n??!f,a,o,s+1,r);s+=p(v)+1,m&&(u=m)}),u}function one(e,t,n="children",a="hasChildren",o=!1){const l=s=>!(be(s)&&s.length);function r(s,u,c){t(s,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(s=>{if(s[a]&&o){t(s,null,0);return}const u=s[n];l(u)||r(s,u,0)})}const lne=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},l=Fe(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:zl(n,a.property).value}):void 0;return Wt(l)?{slotContent:l,content:null,...e,popperOptions:o}:{slotContent:null,content:l??t,...e,popperOptions:o}};let sn=null;function rne(e,t,n,a,o,l){var g;const r=lne(e,t,n,a),s={...r,slotContent:void 0};if((sn==null?void 0:sn.trigger)===o){const p=(g=sn.vm)==null?void 0:g.component;i8(p==null?void 0:p.props,s),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}sn==null||sn();const u=l==null?void 0:l.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,d=Q(Vn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...s},r.slotContent?{content:()=>r.slotContent}:void 0);d.appContext={...l.appContext,...l};const f=document.createElement("div");Wl(d,f),d.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);sn=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),Wl(null,f);const p=sn;h==null||h.removeEventListener("scroll",p),p.trigger=void 0,p.vm=void 0,sn=null},sn.trigger=o??void 0,sn.vm=d,h==null||h.addEventListener("scroll",sn)}function s5(e){return e.children?s8(e.children,s5):[e]}function Bg(e,t){return e+t.colSpan}const i5=(e,t,n,a)=>{let o=0,l=e;const r=n.states.columns.value;if(a){const u=s5(a[e]);o=r.slice(0,r.indexOf(u[0])).reduce(Bg,0),l=o+u.reduce(Bg,0)-1}else o=e;let s;switch(t){case"left":l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:l}:{}},Zh=(e,t,n,a,o,l=0)=>{const r=[],{direction:s,start:u,after:c}=i5(t,n,a,o);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&c+l===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function zg(e,t){return e+(tf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Qh=(e,t,n,a)=>{const{direction:o,start:l=0,after:r=0}=i5(e,t,n,a);if(!o)return;const s={},u=o==="left",c=n.states.columns.value;return u?s.left=c.slice(0,l).reduce(zg,0):s.right=c.slice(r+1).reverse().reduce(zg,0),s},Vs=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function u5(e){return e.some(t=>Wt(t)?!(t.type===mn||t.type===Ke&&!u5(t.children)):!0)?e:null}function sne(e){const t=vt(),n=V(!1),a=V([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return(f==null?void 0:f(c,d))??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=gs(a.value,d);a.value=c.filter((h,g)=>!!f[Wn(h,d)]&&o(h,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||kd(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,h=gs(d,f);a.value=c.reduce((g,p)=>{const v=h[p];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!gs(a.value,d)[Wn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function ine(e){const t=vt(),n=V(null),a=V(null),o=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{const{data:d,rowKey:f}=e,h=a.value;let g=null;f.value&&(g=(i(d)||[]).find(p=>Wn(p,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,h)};return{setCurrentRowKey:o,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?r(Wn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:a}}}function une(e){const t=V([]),n=V({}),a=V(16),o=V(!1),l=V({}),r=V("hasChildren"),s=V("children"),u=V(!1),c=vt(),d=x(()=>e.rowKey.value?h(e.data.value||[]):{}),f=x(()=>{const _=e.rowKey.value,S=Object.keys(l.value),k={};return S.length&&S.forEach(T=>{if(l.value[T].length){const M={children:[]};l.value[T].forEach(A=>{const O=Wn(A,_);M.children.push(O),A[r.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=M}}),k}),h=_=>{const S=e.rowKey.value,k={};return one(_,(T,M,A)=>{const O=Wn(T,S);be(M)?k[O]={children:M.map(I=>Wn(I,S)),level:A}:o.value&&(k[O]={children:[],lazy:!0,level:A})},s.value,r.value,o.value),k},g=(_=!1,S)=>{var O,I;S||(S=(O=c.store)==null?void 0:O.states.defaultExpandAll.value);const k=d.value,T=f.value,M=Object.keys(k),A={};if(M.length){const L=i(n),z=[],q=(F,N)=>{if(_)return t.value?S||t.value.includes(N):!!(S||F!=null&&F.expanded);{const P=S||t.value&&t.value.includes(N);return!!(F!=null&&F.expanded||P)}};M.forEach(F=>{const N=L[F],P={...k[F]};if(P.expanded=q(N,F),P.lazy){const{loaded:B=!1,loading:K=!1}=N||{};P.loaded=!!B,P.loading=!!K,z.push(F)}A[F]=P});const U=Object.keys(T);o.value&&U.length&&z.length&&U.forEach(F=>{var B;const N=L[F],P=T[F].children;if(z.includes(F)){if(((B=A[F].children)==null?void 0:B.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[F].children=P}else{const{loaded:K=!1,loading:W=!1}=N||{};A[F]={lazy:!0,loaded:!!K,loading:!!W,expanded:q(N,F),children:P,level:void 0}}})}n.value=A,(I=c.store)==null||I.updateTableScrollY()};fe(()=>t.value,()=>{g(!0)},{deep:!0}),fe(()=>d.value,()=>{g()}),fe(()=>f.value,()=>{g()});const p=_=>{t.value=_,g()},v=_=>o.value&&_&&"loaded"in _&&!_.loaded,m=(_,S)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Wn(_,k),M=T&&n.value[T];if(T&&M&&"expanded"in M){const A=M.expanded;S=Et(S)?!M.expanded:S,n.value[T].expanded=S,A!==S&&c.emit("expand-change",_,S),S&&v(M)&&b(_,T,M),c.store.updateTableScrollY()}},y=_=>{c.store.assertRowKey();const S=e.rowKey.value,k=Wn(_,S),T=n.value[k];v(T)?b(_,k,T):m(_,void 0)},b=(_,S,k)=>{const{load:T}=c.props;T&&!n.value[S].loaded&&(n.value[S].loading=!0,T(_,k,M=>{if(!be(M))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,M.length&&(l.value[S]=M),c.emit("expand-change",_,!0)}))};return{loadData:b,loadOrToggle:y,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:g,updateKeyChildren:(_,S)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[_]&&(l.value[_]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:s,checkStrictly:u}}}const cne=(e,t)=>{const n=t.sortingColumn;return!n||Be(n.sortable)?e:Qte(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Ic=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Ic(n.children)):t.push(n)}),t};function dne(){var ut;const e=vt(),{size:t}=Nn((ut=e.proxy)==null?void 0:ut.$props),n=V(null),a=V([]),o=V([]),l=V(!1),r=V([]),s=V([]),u=V([]),c=V([]),d=V([]),f=V([]),h=V([]),g=V([]),p=[],v=V(0),m=V(0),y=V(0),b=V(!1),w=V([]),_=V(!1),S=V(!1),k=V(null),T=V(null),M=V({}),A=V(null),O=V(null),I=V(null),L=V(null),z=V(null),q=x(()=>n.value?gs(w.value,n.value):void 0);fe(a,()=>{var je;e.state&&(P(!1),e.props.tableLayout==="auto"&&((je=e.refs.tableHeaderRef)==null||je.updateFixedColumnStyle()))},{deep:!0});const U=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},F=je=>{var tt;(tt=je.children)==null||tt.forEach(yt=>{yt.fixed=je.fixed,F(yt)})},N=()=>{r.value.forEach(Te=>{F(Te)}),c.value=r.value.filter(Te=>[!0,"left"].includes(Te.fixed));const je=r.value.find(Te=>Te.type==="selection");let tt;je&&je.fixed!=="right"&&!c.value.includes(je)&&r.value.indexOf(je)===0&&c.value.length&&(c.value.unshift(je),tt=!0),d.value=r.value.filter(Te=>Te.fixed==="right");const yt=r.value.filter(Te=>(tt?Te.type!=="selection":!0)&&!Te.fixed);s.value=Array.from(c.value).concat(yt).concat(d.value);const he=Ic(yt),Ve=Ic(c.value),pe=Ic(d.value);v.value=he.length,m.value=Ve.length,y.value=pe.length,u.value=Array.from(Ve).concat(he).concat(pe),l.value=c.value.length>0||d.value.length>0},P=(je,tt=!1)=>{je&&N(),tt?e.state.doLayout():e.state.debouncedUpdateLayout()},B=je=>q.value?!!q.value[Wn(je,n.value)]:w.value.includes(je),K=()=>{b.value=!1;const je=w.value;w.value=[],je.length&&e.emit("selection-change",[])},W=()=>{var tt,yt;let je;if(n.value){je=[];const he=(yt=(tt=e==null?void 0:e.store)==null?void 0:tt.states)==null?void 0:yt.childrenColumnName.value,Ve=gs(a.value,n.value,!0,he);for(const pe in q.value)Mt(q.value,pe)&&!Ve[pe]&&je.push(q.value[pe].row)}else je=w.value.filter(he=>!a.value.includes(he));if(je.length){const he=w.value.filter(Ve=>!je.includes(Ve));w.value=he,e.emit("selection-change",he.slice())}},j=()=>(w.value||[]).slice(),G=(je,tt,yt=!0,he=!1)=>{var pe,Te,ct,Pt;const Ve={children:(Te=(pe=e==null?void 0:e.store)==null?void 0:pe.states)==null?void 0:Te.childrenColumnName.value,checkStrictly:(Pt=(ct=e==null?void 0:e.store)==null?void 0:ct.states)==null?void 0:Pt.checkStrictly.value};if(kd(w.value,je,tt,Ve,he?void 0:k.value,a.value.indexOf(je),n.value)){const Gt=(w.value||[]).slice();yt&&e.emit("select",Gt,je),e.emit("selection-change",Gt)}},ee=()=>{var Te,ct;const je=S.value?!b.value:!(b.value||w.value.length);b.value=je;let tt=!1,yt=0;const he=(ct=(Te=e==null?void 0:e.store)==null?void 0:Te.states)==null?void 0:ct.rowKey.value,{childrenColumnName:Ve}=e.store.states,pe={children:Ve.value,checkStrictly:!1};a.value.forEach((Pt,Gt)=>{const Oe=Gt+yt;kd(w.value,Pt,je,pe,k.value,Oe,he)&&(tt=!0),yt+=ue(Wn(Pt,he))}),tt&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},te=()=>{var pe;if(((pe=a.value)==null?void 0:pe.length)===0){b.value=!1;return}const{childrenColumnName:je}=e.store.states;let tt=0,yt=0;const he=Te=>{var ct;for(const Pt of Te){const Gt=k.value&&k.value.call(null,Pt,tt);if(B(Pt))yt++;else if(!k.value||Gt)return!1;if(tt++,(ct=Pt[je.value])!=null&&ct.length&&!he(Pt[je.value]))return!1}return!0},Ve=he(a.value||[]);b.value=yt===0?!1:Ve},ue=je=>{var Ve;if(!e||!e.store)return 0;const{treeData:tt}=e.store.states;let yt=0;const he=(Ve=tt.value[je])==null?void 0:Ve.children;return he&&(yt+=he.length,he.forEach(pe=>{yt+=ue(pe)})),yt},ne=(je,tt)=>{const yt={};return $n(je).forEach(he=>{M.value[he.id]=tt,yt[he.columnKey||he.id]=tt}),yt},de=(je,tt,yt)=>{O.value&&O.value!==je&&(O.value.order=null),O.value=je,I.value=tt,L.value=yt},se=()=>{let je=i(o);Object.keys(M.value).forEach(tt=>{const yt=M.value[tt];if(!yt||yt.length===0)return;const he=l5({columns:u.value},tt);he&&he.filterMethod&&(je=je.filter(Ve=>yt.some(pe=>he.filterMethod.call(null,pe,Ve,he))))}),A.value=je},Y=()=>{a.value=cne(A.value??[],{sortingColumn:O.value,sortProp:I.value,sortOrder:L.value})},X=(je=void 0)=>{je!=null&&je.filter||se(),Y()},H=je=>{const{tableHeaderRef:tt}=e.refs;if(!tt)return;const yt=Object.assign({},tt.filterPanels),he=Object.keys(yt);if(he.length)if(Be(je)&&(je=[je]),be(je)){const Ve=je.map(pe=>ene({columns:u.value},pe));he.forEach(pe=>{const Te=Ve.find(ct=>ct.id===pe);Te&&(Te.filteredValue=[])}),e.store.commit("filterChange",{column:Ve,values:[],silent:!0,multi:!0})}else he.forEach(Ve=>{const pe=u.value.find(Te=>Te.id===Ve);pe&&(pe.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{O.value&&(de(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:le,toggleRowExpansion:ce,updateExpandRows:ge,states:me,isRowExpanded:Ae}=sne({data:a,rowKey:n}),{updateTreeExpandKeys:Ne,toggleTreeExpansion:Re,updateTreeData:ye,updateKeyChildren:Ee,loadOrToggle:we,states:Ie}=une({data:a,rowKey:n}),{updateCurrentRowData:ze,updateCurrentRow:et,setCurrentRowKey:nt,states:at}=ine({data:a,rowKey:n});return{assertRowKey:U,updateColumns:N,scheduleLayout:P,isSelected:B,clearSelection:K,cleanSelection:W,getSelectionRows:j,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:te,updateFilters:ne,updateCurrentRow:et,updateSort:de,execFilter:se,execSort:Y,execQuery:X,clearFilter:H,clearSort:Z,toggleRowExpansion:ce,setExpandRowKeysAdapter:je=>{le(je),Ne(je)},setCurrentRowKey:nt,toggleRowExpansionAdapter:(je,tt)=>{u.value.some(({type:yt})=>yt==="expand")?ce(je,tt):Re(je,tt)},isRowExpanded:Ae,updateExpandRows:ge,updateCurrentRowData:ze,loadOrToggle:we,updateTreeData:ye,updateKeyChildren:Ee,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:l,_columns:r,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:_,selectOnIndeterminate:S,selectable:k,rowExpandable:T,filters:M,filteredData:A,sortingColumn:O,sortProp:I,sortOrder:L,hoverRow:z,...me,...Ie,...at}}}function D2(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=D2(n.children,t)),n)})}function H2(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&H2(t.children)}),e.sort((t,n)=>t.no-n.no)}function fne(){const e=vt(),t=dne(),n=ve("table"),{t:a}=kt();return{ns:n,t:a,...t,mutations:{setData(s,u){const c=i(s._data)!==u;s.data.value=u,s._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(s.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,u,c,d){var g;const f=i(s._columns);let h=[];c?(c&&!c.children&&(c.children=[]),(g=c.children)==null||g.push(u),h=D2(f,c)):(f.push(u),h=f),H2(h),s._columns.value=h,s.updateOrderFns.push(d),u.type==="selection"&&(s.selectable.value=u.selectable,s.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(H2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,u,c,d){var g;const f=i(s._columns)||[];if(c)(g=c.children)==null||g.splice(c.children.findIndex(p=>p.id===u.id),1),Le(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),s._columns.value=D2(f,c);else{const p=f.indexOf(u);p>-1&&(f.splice(p,1),s._columns.value=f)}const h=s.updateOrderFns.indexOf(d);h>-1&&s.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,u){const{prop:c,order:d,init:f}=u;if(c){const h=i(s.columns).find(g=>g.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=s,h=i(c),g=i(d),p=i(f);tf(p)&&(s.sortingColumn.value=null,s.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:g,order:p}),e.store.updateTableScrollY()},filterChange(s,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var s,u;(u=(s=e.store).toggleAllSelection)==null||u.call(s)},rowSelectedChanged(s,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(s,u){s.hoverRow.value=u},setCurrentRow(s,u){e.store.updateCurrentRow(u)}},commit:function(s,...u){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Le(()=>e.layout.updateScrollY.apply(e.layout))}}}const ev={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function pne(e,t){if(!e)throw new Error("Table is required.");const n=fne();return n.toggleAllSelection=Vo(n._toggleAllSelection,10),Object.keys(ev).forEach(a=>{c5(d5(t,a),a,n)}),hne(n,t),n}function hne(e,t){Object.keys(ev).forEach(n=>{fe(()=>d5(t,n),a=>{c5(a,n,e)})})}function c5(e,t,n){let a=e,o=ev[t];lt(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function d5(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var vne=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)Mt(e,t)&&(Yt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(tf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!At)return;const n=this.table.vnode.el;if(e=nne(e),this.height.value=Number(e),!n&&(e||e===0)){Le(()=>this.setHeight(e,t));return}n&&He(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Be(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){var s;if(!At)return;const e=this.fit,t=(s=this.table.vnode.el)==null?void 0:s.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(u=>!He(u.width));if(a.forEach(u=>{He(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&e){if(a.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=t){this.scrollX.value=!1;const u=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=u/o.reduce((f,h)=>f+Number(h.minWidth||80),0);let d=0;o.forEach((f,h)=>{if(h===0)return;const g=Math.floor(Number(f.minWidth||80)*c);d+=g,f.realWidth=Number(f.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let u=0;r.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var n,a;switch(e){case"columns":(n=t.state)==null||n.onColumnsChange(this);break;case"scrollable":(a=t.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const vo=Symbol("ElTable"),f5=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,f5(n.children))):t.push(n)}),t},p5=e=>{let t=1;const n=(o,l)=>{if(l&&(o.level=l.level+1,t{n(s,o),r+=s.colSpan}),o.colSpan=r}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(l=>l.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function mne(e){const t=Pe(vo),n=x(()=>p5(e.store.states.originColumns.value));return{isGroup:x(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var gne=D({name:"ElTableFilterPanel",components:{ElCheckbox:lo,ElCheckboxGroup:Nh,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De,ArrowDown:po,ArrowUp:Iu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Ht.appendTo},setup(e){const t=vt(),{t:n}=kt(),a=ve("table-filter"),o=t==null?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const l=V(null),r=V(null),s=V(0),u=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=x({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(ya(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=x({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var M;e.column&&((M=e.upDataColumn)==null||M.call(e,"filteredValue",T))}}),h=x(()=>e.column?e.column.filterMultiple:!0),g=T=>T.value===d.value,p=()=>{var T;(T=l.value)==null||T.onClose()},v=()=>{b(f.value),p()},m=()=>{f.value=[],b(f.value),p()},y=(T,M)=>{d.value=T,s.value=M,ya(T)?b([]):b(f.value),p()},b=T=>{var M,A;(M=e.store)==null||M.commit("filterChange",{column:e.column,values:T}),(A=e.store)==null||A.updateAllSelected()},w=()=>{var T,M;(T=r.value)==null||T.focus(),!h.value&&S(),e.column&&((M=e.upDataColumn)==null||M.call(e,"filterOpened",!0))},_=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},S=()=>{if(ya(d)){s.value=0;return}const T=(u.value||[]).findIndex(M=>M.value===d.value);s.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:y,isPropAbsent:ya,isActive:g,t:n,ns:a,tooltipRef:l,rootRef:r,checkedIndex:s,handleShowTooltip:w,handleHideTooltip:_,handleKeydown:T=>{var L,z;const M=Kt(T),A=(u.value?u.value.length:0)+1;let O=s.value,I=!0;switch(M){case Ce.down:case Ce.right:O=(O+1)%A;break;case Ce.up:case Ce.left:O=(O-1+A)%A;break;case Ce.tab:p(),I=!1;break;case Ce.enter:case Ce.space:if(O===0)y(null,0);else{const q=(u.value||[])[O-1];q.value&&y(q.value,O)}break;default:I=!1;break}I&&T.preventDefault(),s.value=O,(z=(L=r.value)==null?void 0:L.querySelector(`.${a.e("list-item")}:nth-child(${O+1})`))==null||z.focus()}}}});const yne=["disabled"],bne=["tabindex","aria-checked"],wne=["tabindex","aria-checked","onClick"],Cne=["aria-label"];function _ne(e,t,n,a,o,l){const r=Ot("el-checkbox"),s=Ot("el-checkbox-group"),u=Ot("el-scrollbar"),c=Ot("arrow-up"),d=Ot("arrow-down"),f=Ot("el-icon"),h=Ot("el-tooltip");return C(),ie(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ae(()=>[e.multiple?(C(),$("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[E("div",{class:R(e.ns.e("content"))},[Q(u,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.filters,g=>(C(),ie(r,{key:g.value,value:g.value},{default:ae(()=>[St(Se(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Se(e.t("el.table.confirmFilter")),11,yne),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Se(e.t("el.table.resetFilter")),1)],2)],2)):(C(),$("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[E("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},Se(e.t("el.table.clearFilter")),11,bne),(C(!0),$(Ke,null,_t(e.filters,(g,p)=>(C(),$("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,p+1)},Se(g.text),11,wne))),128))],34))]),default:ae(()=>{var g;return[E("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((g=e.column)==null?void 0:g.label)||""})},[Q(f,null,{default:ae(()=>[oe(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(C(),ie(c,{key:0})):(C(),ie(d,{key:1}))]})]),_:3})],10,Cne)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Sne=En(gne,[["render",_ne]]);function tv(e){const t=vt();Hd(()=>{n.value.addObserver(t)}),gt(()=>{a(n.value),o(n.value)}),so(()=>{a(n.value),o(n.value)}),Fs(()=>{n.value.removeObserver(t)});const n=x(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),a=l=>{var c;const r=((c=e.vnode.el)==null?void 0:c.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const s=l.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=r.length;d{var u,c;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=r.length;d{v.stopPropagation()},l=(v,m)=>{!m.filters&&m.sortable?p(v,m,!1):m.filterable&&!m.sortable&&o(v),a==null||a.emit("header-click",m,v)},r=(v,m)=>{a==null||a.emit("header-contextmenu",m,v)},s=V(null),u=V(!1),c=V(),d=(v,m)=>{var y,b,w;if(At&&!(m.children&&m.children.length>0)&&s.value&&e.border&&s.value.id===m.id){u.value=!0;const _=a;t("set-drag-visible",!0);const S=(y=_==null?void 0:_.vnode.el)==null?void 0:y.getBoundingClientRect().left,k=(w=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:w.querySelector(`th.${m.id}`),T=k.getBoundingClientRect(),M=T.left-S+30;Ba(k,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-S,startColumnLeft:T.left-S,tableLeft:S};const A=_==null?void 0:_.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=L=>{const z=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+z;A.style.left=`${Math.max(M,q)}px`},I=()=>{if(u.value){const{startColumnLeft:L,startLeft:z}=c.value;m.width=m.realWidth=Number.parseInt(A.style.left,10)-L,_==null||_.emit("header-dragend",m.width,z-L,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,s.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{aa(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)}},f=(v,m)=>{var A;if(!e.border||m.children&&m.children.length>0)return;const y=v.target,b=ga(y)?y.closest("th"):null;if(!b)return;const w=Ao(b,"is-sortable");if(w){const O=u.value?"col-resize":"";b.style.cursor=O;const I=b.querySelector(".caret-wrapper");I&&(I.style.cursor=O)}if(!m.resizable||u.value){s.value=null;return}const _=b.getBoundingClientRect(),S=((A=b.parentNode)==null?void 0:A.lastElementChild)===b,k=e.allowDragLastColumn||!S,T=_.width>12&&_.right-v.clientX<8&&k,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?m:null,w&&(b.style.cursor=M)},h=()=>{!At||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},p=(v,m,y)=>{var A;v.stopPropagation();const b=m.order===y?null:y||g(m),w=(A=v.target)==null?void 0:A.closest("th");if(w&&Ao(w,"noclick")){aa(w,"noclick");return}if(!m.sortable)return;const _=v.currentTarget;if(["ascending","descending"].some(O=>Ao(_,O)&&!m.sortOrders.includes(O)))return;const S=e.store.states;let k=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&tf(M.order))&&(M&&(M.order=null),S.sortingColumn.value=m,k=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=k,S.sortOrder.value=T,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:o}}function kne(e){const t=Pe(vo),n=ve("table");return{getHeaderRowStyle:s=>{const u=t==null?void 0:t.props.headerRowStyle;return Fe(u)?u.call(null,{rowIndex:s}):u},getHeaderRowClass:s=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Be(c)?u.push(c):Fe(c)&&u.push(c.call(null,{rowIndex:s})),u.join(" ")},getHeaderCellStyle:(s,u,c,d)=>{let f=(t==null?void 0:t.props.headerCellStyle)??{};Fe(f)&&(f=f.call(null,{rowIndex:s,columnIndex:u,row:c,column:d}));const h=Qh(u,d.fixed,e.store,c);return Vs(h,"left"),Vs(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(s,u,c,d)=>{const f=Zh(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{rowIndex:s,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>!!p).join(" ")}}}var Ene=D({name:"ElTableHeader",components:{ElCheckbox:lo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=vt(),a=Pe(vo),o=ve("table"),l=V({}),{onColumnsChange:r,onScrollableChange:s}=tv(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=Rt(new Map),d=V();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((L,z)=>{const q=d.value.querySelector(`.${z.replace(/\s/g,".")}`);q&&(L.width=q.getBoundingClientRect().width||L.width)}),c.clear())})};fe(c,h),Lt(()=>{f&&(clearTimeout(f),f=void 0)}),gt(async()=>{await Le(),await Le();const{prop:L,order:z}=e.defaultSort;a==null||a.store.commit("sort",{prop:L,order:z,init:!0}),h()});const{handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w}=xne(e,t),{getHeaderRowStyle:_,getHeaderRowClass:S,getHeaderCellStyle:k,getHeaderCellClass:T}=kne(e),{isGroup:M,toggleAllSelection:A,columnRows:O}=mne(e),{t:I}=kt();return n.state={onColumnsChange:r,onScrollableChange:s},n.filterPanels=l,{ns:o,t:I,filterPanels:l,onColumnsChange:r,onScrollableChange:s,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:_,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w,isGroup:M,toggleAllSelection:A,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:g,store:p,$parent:v,saveIndexSelection:m,isTableLayoutAuto:y}=this;let b=1;return Ye("thead",{ref:"theadRef",class:e.is("group",n)},a.map((w,_)=>Ye("tr",{class:r(_),key:_,style:s(_)},w.map((S,k)=>{S.rowSpan>b&&(b=S.rowSpan);const T=l(_,k,w,S);return y&&S.fixed&&m.set(T,S),Ye("th",{class:T,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:o(_,k,w,S),onClick:M=>{var A;(A=M.currentTarget)!=null&&A.classList.contains("noclick")||u(M,S)},onContextmenu:M=>c(M,S),onMousedown:M=>d(M,S),onMousemove:M=>f(M,S),onMouseout:g},[Ye("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:k,store:p,_self:v}):S.label,S.sortable&&Ye("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:M=>h(M,S)},[Ye("i",{onClick:M=>h(M,S,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:M=>h(M,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Ye(Sne,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(M,A)=>{S[M]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Tne(e){const t=Pe(vo),n=V(""),a=V(Ye("div")),o=(p,v,m)=>{var S,k;const y=t,b=b0(p);let w=null;const _=(S=y==null?void 0:y.vnode.el)==null?void 0:S.dataset.prefix;b&&(w=Vg({columns:((k=e.store)==null?void 0:k.states.columns.value)??[]},b,_),w&&(y==null||y.emit(`cell-${m}`,v,w,b,p))),y==null||y.emit(`row-${m}`,v,w,p)},l=(p,v)=>{o(p,v,"dblclick")},r=(p,v)=>{var m;(m=e.store)==null||m.commit("setCurrentRow",v),o(p,v,"click")},s=(p,v)=>{o(p,v,"contextmenu")},u=Vo(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=Vo(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(p,v,m)=>{var b;let y=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)m(y,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:s,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,m)=>{var N,P,B;if(!t)return;const y=t,b=b0(p),w=(N=y==null?void 0:y.vnode.el)==null?void 0:N.dataset.prefix;let _=null;if(b){if(_=Vg({columns:((P=e.store)==null?void 0:P.states.columns.value)??[]},b,w),!_)return;b.rowSpan>1&&f(b.rowSpan,p,Ba);const K=y.hoverState={cell:b,column:_,row:v};y==null||y.emit("cell-mouse-enter",K.row,K.column,K.cell,p)}if(!m){(sn==null?void 0:sn.trigger)===b&&(sn==null||sn());return}const S=p.target.querySelector(".cell");if(!(Ao(S,`${w}-tooltip`)&&S.childNodes.length&&((B=S.textContent)!=null&&B.trim())))return;const k=document.createRange();k.setStart(S,0),k.setEnd(S,S.childNodes.length);const{width:T,height:M}=k.getBoundingClientRect(),{width:A,height:O}=S.getBoundingClientRect(),{top:I,left:L,right:z,bottom:q}=d(S),U=L+z,F=I+q;Dl(T+U,A)||Dl(M+F,O)||Dl(S.scrollWidth,A)?rne(m,((b==null?void 0:b.innerText)||(b==null?void 0:b.textContent))??"",v,_,b,y):(sn==null?void 0:sn.trigger)===b&&(sn==null||sn())},handleCellMouseLeave:p=>{const v=b0(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,aa);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:a}}function Mne(e){const t=Pe(vo),n=ve("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return Fe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var p;const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((p=e.store)==null?void 0:p.states.currentRow.value)&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let p=g??{};Fe(g)&&(p=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=Qh(d,e==null?void 0:e.fixed,e.store);return Vs(v,"left"),Vs(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,g)=>{const p=Zh(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),v=[h.id,h.align,h.className,...p],m=t==null?void 0:t.props.cellClassName;return Be(m)?v.push(m):Fe(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,f,h)=>{let g=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(Fe(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:h});be(m)?(g=m[0],p=m[1]):lt(m)&&(g=m.rowspan,p=m.colspan)}return{rowspan:g,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:g,width:p})=>g||p).slice(f,f+d);return Number(h.reduce((g,p)=>Number(g)+Number(p),-1))}}}const One=["colspan","rowspan"];var $ne=D({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(C(),$("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,One))}}),Ane=$ne;function Rne(e){const t=Pe(vo),n=ve("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:s,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=Tne(e),{getRowStyle:h,getRowClass:g,getCellStyle:p,getCellClass:v,getSpan:m,getColspanRealWidth:y}=Mne(e);let b=-1;const w=x(()=>{var M;return(M=e.store)==null?void 0:M.states.columns.value.findIndex(({type:A})=>A==="default")}),_=(M,A)=>{var I;const O=(I=t==null?void 0:t.props)==null?void 0:I.rowKey;return O?Wn(M,O):A},S=(M,A,O,I=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:U,columns:F}=q.states,N=[];let P=!0;return O&&(N.push(n.em("row",`level-${O.level}`)),P=!!O.display),A===0&&(b=-1),e.stripe&&P&&b++,N.push(...g(M,A,b)),Ye("tr",{style:[P?null:{display:"none"},h(M,A)],class:N,key:_(M,A),onDblclick:B=>a(B,M),onClick:B=>o(B,M),onContextmenu:B=>l(B,M),onMouseenter:()=>r(A),onMouseleave:s},F.value.map((B,K)=>{const{rowspan:W,colspan:j}=m(M,B,A,K);if(!W||!j)return null;const G=Object.assign({},B);G.realWidth=y(F.value,j,K);const ee={store:q,_self:e.context||t,column:G,row:M,$index:A,cellIndex:K,expanded:I};K===w.value&&O&&(ee.treeNode={indent:O.level&&O.level*U.value,level:O.level},Dt(O.expanded)&&(ee.treeNode.expanded=O.expanded,"loading"in O&&(ee.treeNode.loading=O.loading),"noLazyChildren"in O&&(ee.treeNode.noLazyChildren=O.noLazyChildren)));const te=`${_(M,A)},${K}`,ue=G.columnKey||G.rawColumnKey||"",ne=B.showOverflowTooltip&&i8({effect:L},z,B.showOverflowTooltip);return Ye(Ane,{style:p(A,K,M,B),class:v(A,K,M,B,j-1),key:`${ue}${te}`,rowspan:W,colspan:j,onMouseenter:de=>u(de,M,ne),onMouseleave:c},{default:()=>k(K,B,ee)})}))},k=(M,A,O)=>A.renderCell(O);return{wrappedRowRender:(M,A)=>{const O=e.store,{isRowExpanded:I,assertRowKey:L}=O,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:U,rowKey:F}=O.states,N=O.states.columns.value;if(N.some(({type:P})=>P==="expand")){const P=I(M),B=S(M,A,void 0,P),K=t==null?void 0:t.renderExpanded;if(!K)return console.error("[Element Error]renderExpanded is required."),B;const W=[[B]];return(t.props.preserveExpandedContent||P)&&W[0].push(Ye("tr",{key:`expanded-row__${B.key}`,style:{display:P?"":"none"}},[Ye("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[K({row:M,$index:A,store:O,expanded:P})])])),W}else if(Object.keys(z.value).length){L();const P=Wn(M,F.value);let B=z.value[P],K=null;B&&(K={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Dt(B.lazy)&&(K&&Dt(B.loaded)&&B.loaded&&(K.noLazyChildren=!(B.children&&B.children.length)),K.loading=B.loading));const W=[S(M,A,K??void 0)];if(B){let j=0;const G=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(ue=>{const ne={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Wn(ue,F.value);if(ya(de))throw new Error("For nested data item, row-key is required.");B={...z.value[de]},B&&(ne.expanded=B.expanded,B.level=B.level||ne.level,B.display=!!(B.expanded&&ne.display),Dt(B.lazy)&&(Dt(B.loaded)&&B.loaded&&(ne.noLazyChildren=!(B.children&&B.children.length)),ne.loading=B.loading)),j++,W.push(S(ue,A+j,ne)),B&&G(q.value[de]||ue[U.value],B)})};B.display=!0,G(q.value[P]||M[U.value],B)}return W}else return S(M,A,void 0)},tooltipContent:d,tooltipTrigger:f}}const Nne={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Pne=D({name:"ElTableBody",props:Nne,setup(e){var d;const t=vt(),n=Pe(vo),a=ve("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}=Rne(e),{onColumnsChange:s,onScrollableChange:u}=tv(n),c=[];return fe((d=e.store)==null?void 0:d.states.hoverRow,(f,h)=>{var y,b;const g=t==null?void 0:t.vnode.el,p=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let v=f;const m=(y=p[v])==null?void 0:y.childNodes;if(m!=null&&m.length){let w=0;Array.from(m).reduce((_,S,k)=>{var T,M;return((T=m[k])==null?void 0:T.colSpan)>1&&(w=(M=m[k])==null?void 0:M.colSpan),S.nodeName!=="TD"&&w===0&&_.push(k),w>0&&w--,_},[]).forEach(_=>{var S;for(v=f;v>0;){const k=(S=p[v-1])==null?void 0:S.childNodes;if(k[_]&&k[_].nodeName==="TD"&&k[_].rowSpan>1){Ba(k[_],"hover-cell"),c.push(k[_]);break}v--}})}else c.forEach(w=>aa(w,"hover-cell")),c.length=0;!((b=e.store)!=null&&b.states.isComplex.value)||!At||Fa(()=>{const w=p[h],_=p[f];w&&!w.classList.contains("hover-fixed-row")&&aa(w,"hover-row"),_&&Ba(_,"hover-row")})}),Fs(()=>{sn==null||sn()}),{ns:a,onColumnsChange:s,onScrollableChange:u,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return Ye("tbody",{tabIndex:-1},[((t==null?void 0:t.states.data.value)||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function Ine(){var t;const e=(t=Pe(vo))==null?void 0:t.store;return{leftFixedLeafCount:x(()=>(e==null?void 0:e.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columnsCount:x(()=>(e==null?void 0:e.states.columns.value.length)??0),leftFixedCount:x(()=>(e==null?void 0:e.states.fixedColumns.value.length)??0),rightFixedCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columns:x(()=>(e==null?void 0:e.states.columns.value)??[])}}function Lne(e){const{columns:t}=Ine(),n=ve("table");return{getCellClasses:(l,r)=>{const s=l[r],u=[n.e("cell"),s.id,s.align,s.labelClassName,...Zh(n.b(),r,s.fixed,e.store)];return s.className&&u.push(s.className),s.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const s=Qh(r,l.fixed,e.store);return Vs(s,"left"),Vs(s,"right"),s},columns:t}}var Vne=D({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Pe(vo),n=ve("table"),{getCellClasses:a,getCellStyles:o,columns:l}=Lne(e),{onScrollableChange:r,onColumnsChange:s}=tv(t);return{ns:n,onScrollableChange:r,onColumnsChange:s,getCellClasses:a,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,l=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:l}):e.forEach((s,u)=>{if(u===0){r[u]=o;return}const c=l.map(g=>Number(g[s.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const p=`${g}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((g,p)=>{const v=Number(p);return Number.isNaN(+v)?g:Number.parseFloat((g+p).toFixed(Math.min(h,20)))},0)}),Ye(Ye("tfoot",[Ye("tr",{},[...e.map((s,u)=>Ye("td",{key:u,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,u),style:t(s,u)},[Ye("div",{class:["cell",s.labelClassName]},[r[u]])]))])]))}});function Bne(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function zne(e,t,n,a){const o=V(!1),l=V(null),r=V(!1),s=U=>{r.value=U},u=V({width:null,height:null,headerHeight:null}),c=V(!1),d={display:"inline-block",verticalAlign:"middle"},f=V(),h=V(0),g=V(0),p=V(0),v=V(0),m=V(0);fe(()=>e.height,U=>{t.setHeight(U??null)},{immediate:!0}),fe(()=>e.maxHeight,U=>{t.setMaxHeight(U??null)},{immediate:!0}),fe(()=>[e.currentRowKey,n.states.rowKey],([U,F])=>{!i(F)||!i(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),fe(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),da(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},b=(U,F)=>{const{pixelX:N,pixelY:P}=F;Math.abs(N)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A)};gt(async()=>{await Le(),n.updateColumns(),O(),requestAnimationFrame(S);const U=a.vnode.el,F=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),u.value={width:f.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(N=>{N.filteredValue&&N.filteredValue.length&&a.store.commit("filterChange",{column:N,values:N.filteredValue,silent:!0})}),a.$ready=!0});const k=(U,F)=>{if(!U)return;const N=Array.from(U.classList).filter(P=>!P.startsWith("is-scrolling-"));N.push(t.scrollX.value?F:"is-scrolling-none"),U.className=N.join(" ")},T=U=>{const{tableWrapper:F}=a.refs;k(F,U)},M=U=>{const{tableWrapper:F}=a.refs;return!!(F&&F.classList.contains(U))},A=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const W="is-scrolling-none";M(W)||T(W);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:F,offsetWidth:N,scrollWidth:P}=U,{headerWrapper:B,footerWrapper:K}=a.refs;B&&(B.scrollLeft=F),K&&(K.scrollLeft=F),F>=P-N-1?T("is-scrolling-right"):T(F===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Vt(a.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?Zt(a.vnode.el,I):Vt(window,"resize",I),Zt(a.refs.tableInnerWrapper,()=>{var U,F;I(),(F=(U=a.refs)==null?void 0:U.scrollBarRef)==null||F.update()}))},I=()=>{var G,ee,te,ue;const U=a.vnode.el;if(!a.$ready||!U)return;let F=!1;const{width:N,height:P,headerHeight:B}=u.value,K=f.value=U.offsetWidth;N!==K&&(F=!0);const W=U.offsetHeight;(e.height||w.value)&&P!==W&&(F=!0);const j=e.tableLayout==="fixed"?a.refs.headerWrapper:(G=a.refs.tableHeaderRef)==null?void 0:G.$el;e.showHeader&&(j==null?void 0:j.offsetHeight)!==B&&(F=!0),h.value=((ee=a.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,p.value=(j==null?void 0:j.scrollHeight)||0,v.value=((te=a.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((ue=a.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,g.value=h.value-p.value-v.value-m.value,F&&(u.value={width:K,height:W,headerHeight:e.showHeader&&(j==null?void 0:j.offsetHeight)||0},S())},L=_n(),z=x(()=>{const{bodyWidth:U,scrollY:F,gutterWidth:N}=t;return U.value?`${U.value-(F.value?N:0)}px`:""}),q=x(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:l,setDragVisible:s,isGroup:c,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&g.value&&(U=`${g.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:U}}),resizeProxyVisible:r,bodyWidth:z,resizeState:u,doLayout:S,tableBodyStyles:_,tableLayout:q,scrollbarViewStyle:d,scrollbarStyle:x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{})}}function Dne(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t=new MutationObserver(()=>{l.forEach(r=>r())}),t.observe(a,o)};gt(()=>{n()}),Fs(()=>{t==null||t.disconnect()})}var Hne={data:{type:Array,default:()=>[]},size:kn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function h5(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Et(o))&&(n=[]);const a=o=>{const l={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?l.style={width:`${o.width}px`}:l.name=o.id,l};return Ye("colgroup",{},n.map(o=>Ye("col",a(o))))}h5.props=["columns","tableLayout"];const Fne=()=>{const e=V(),t=(l,r)=>{const s=e.value;s&&s.scrollTo(l,r)},n=(l,r)=>{const s=e.value;s&&He(r)&&["Top","Left"].includes(l)&&s[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let Kne=1;var Wne=D({name:"ElTable",directives:{Mousewheel:mM},components:{TableHeader:Ene,TableBody:Pne,TableFooter:Vne,ElScrollbar:ao,hColgroup:h5},props:Hne,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=kt(),n=ve("table"),a=_l("table"),o=vt();wt(vo,o);const l=pne(o,e);o.store=l;const r=new vne({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=r;const s=x(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:y}=Bne(l),{isHidden:b,renderExpanded:w,setDragVisible:_,isGroup:S,handleMouseLeave:k,handleHeaderFooterMousewheel:T,tableSize:M,emptyBlockStyle:A,resizeProxyVisible:O,bodyWidth:I,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N}=zne(e,r,l,o),{scrollBarRef:P,scrollTo:B,setScrollLeft:K,setScrollTop:W}=Fne(),j=Vo(z,50),G=`${n.namespace.value}-table_${Kne++}`;o.tableId=G,o.state={isGroup:S,resizeState:L,doLayout:z,debouncedUpdateLayout:j};const ee=x(()=>e.sumText??t("el.table.sumText")),te=x(()=>e.emptyText??t("el.table.emptyText")),ue=x(()=>{var se;return e.tooltipEffect??((se=a.value)==null?void 0:se.tooltipEffect)}),ne=x(()=>{var se;return e.tooltipOptions??((se=a.value)==null?void 0:se.tooltipOptions)}),de=x(()=>p5(l.states.originColumns.value)[0]);return Dne(o),Lt(()=>{j.cancel()}),{ns:n,layout:r,store:l,columns:de,handleHeaderFooterMousewheel:T,handleMouseLeave:k,tableId:G,tableSize:M,isHidden:b,isEmpty:s,renderExpanded:w,resizeProxyVisible:O,resizeState:L,isGroup:S,bodyWidth:I,tableBodyStyles:q,emptyBlockStyle:A,debouncedUpdateLayout:j,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,doLayout:z,sort:m,updateKeyChildren:y,t,setDragVisible:_,context:o,computedSumText:ee,computedEmptyText:te,computedTooltipEffect:ue,computedTooltipOptions:ne,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N,scrollBarRef:P,scrollTo:B,setScrollLeft:K,setScrollTop:W,allowDragLastColumn:e.allowDragLastColumn}}});const jne=["data-prefix"],qne={ref:"hiddenColumns",class:"hidden-columns"};function Une(e,t,n,a,o,l){const r=Ot("hColgroup"),s=Ot("table-header"),u=Ot("table-body"),c=Ot("table-footer"),d=Ot("el-scrollbar"),f=Sp("mousewheel");return C(),$("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[E("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[E("div",qne,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ft((C(),$("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[Q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:ae(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(C(),ie(s,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),Q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(C(),ie(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(C(),$("div",{key:0,ref:"emptyBlock",style:qe(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[St(Se(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(C(),$("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ft((C(),$("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[E("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:qe(e.tableBodyStyles)},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[$t,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(C(),$("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),ft(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[$t,e.resizeProxyVisible]])],46,jne)}var Yne=En(Wne,[["render",Une]]);const Gne={selection:"table-column--selection",expand:"table__expand-column"},Xne={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Jne=e=>Gne[e]||"",Zne={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ye(lo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return Ye(lo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return He(a)?n=t+a:Fe(a)&&(n=a(t)),Ye("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){var c,d;const{ns:l}=n,r=[l.e("expand-icon")];!e.renderExpand&&a&&r.push(l.em("expand-icon","expanded"));const s=function(f){f.stopPropagation(),n.toggleRowExpansion(t)},u=((d=(c=n.states.rowExpandable).value)==null?void 0:d.call(c,t,o))??!0;return u||r.push(l.is("disabled")),Ye("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:r,onClick:s},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[Ye(De,null,{default:()=>[Ye(Un)]})]})},sortable:!1,resizable:!1}};function Qne({row:e,column:t,$index:n}){var l;const a=t.property,o=a&&zl(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((l=o==null?void 0:o.toString)==null?void 0:l.call(o))||""}function eae({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[Ye("span",{class:o.e("placeholder")})]:null;const l=[],r=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(Ye("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dt(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=Un;t.loading&&(u=no),l.push(Ye("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:r},{default:()=>[Ye(De,{class:o.is("loading",t.loading)},{default:()=>[Ye(u)]})]}))}else l.push(Ye("span",{class:o.e("placeholder")}));return l}function Dg(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function tae(e,t){const n=vt();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},s=Dg(l,r);Object.keys(s).forEach(u=>{const c=r[u];Mt(t,c)&&fe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Jh(d)),c==="minWidth"&&u==="realMinWidth"&&(f=r5(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Dg(l,s);Object.keys(u).forEach(d=>{const f=s[d];Mt(t,f)&&fe(()=>t[f],h=>{n.columnConfig.value[d]=h,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(d=>{Mt(e.value.props,d)&&fe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&Et(t[d])&&(n.columnConfig.value[d]=f)})});const c=_l("table");c.value&&Mt(c.value,"showOverflowTooltip")&&fe(()=>{var d;return(d=c.value)==null?void 0:d.showOverflowTooltip},d=>{n.columnConfig.value.type!=="selection"&&(!Et(t.showOverflowTooltip)||!Et(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function nae(e,t,n){const a=vt(),o=V(""),l=V(!1),r=V(),s=V(),u=ve("table");da(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),da(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:r.value,s.value});const c=x(()=>{let _=a.vnode.vParent||a.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),d=x(()=>{const{store:_}=a.parent;if(!_)return!1;const{treeData:S}=_.states,k=S.value;return k&&Object.keys(k).length>0}),f=V(Jh(e.width)),h=V(r5(e.minWidth)),g=_=>(f.value&&(_.width=f.value),h.value&&(_.minWidth=h.value),!f.value&&h.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Et(_.width)?_.minWidth:_.width),_),p=_=>{const S=_.type,k=Zne[S]||{};Object.keys(k).forEach(M=>{const A=k[M];M!=="className"&&!Et(A)&&(_[M]=A)});const T=Jne(S);if(T){const M=`${i(u.namespace)}-${T}`;_.className=_.className?`${_.className} ${M}`:M}return _},v=_=>{be(_)?_.forEach(k=>S(k)):S(_);function S(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=a)}};return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:p,setColumnRenders:_=>{e.renderHeader?pt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):_.type!=="selection"&&(_.renderHeader=k=>{if(a.columnConfig.value.label,t.header){const T=t.header(k);if(u5(T))return Ye(Ke,T)}return St(_.label)}),t["filter-icon"]&&(_.renderFilterIcon=k=>oe(t,"filter-icon",k)),t.expand&&(_.renderExpand=k=>oe(t,"expand",k));let S=_.renderCell;return _.type==="expand"?(_.renderCell=k=>Ye("div",{class:"cell"},[S(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(S=S||Qne,_.renderCell=k=>{let T=null;if(t.default){const L=t.default(k);T=L.some(z=>z.type!==mn)?L:S(k)}else T=S(k);const{columns:M}=n.value.store.states,A=M.value.findIndex(L=>L.type==="default"),O=eae(k,d.value&&k.cellIndex===A),I={class:"cell",style:{}};return _.showOverflowTooltip&&(I.class=`${I.class} ${i(u.namespace)}-tooltip`,I.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),v(T),Ye("div",I,[O,T])}),_},getPropsData:(..._)=>_.reduce((S,k)=>(be(k)&&k.forEach(T=>{S[T]=e[T]}),S),{}),getColumnElIndex:(_,S)=>Array.prototype.indexOf.call(_,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var aae={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let oae=1;var lae=D({name:"ElTableColumn",components:{ElCheckbox:lo},props:aae,setup(e,{slots:t}){const n=vt(),a=_l("table"),o=V({}),l=x(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:r,registerComplexWatchers:s}=tae(l,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:y,updateColumnOrder:b}=nae(e,t,l),w=f.value;u.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${oae++}`,Hd(()=>{var O,I;c.value=l.value!==w;const _=e.type||"default",S=e.sortable===""?!0:e.sortable,k=_==="selection"?!1:Et(e.showOverflowTooltip)?w.props.showOverflowTooltip??((O=a.value)==null?void 0:O.showOverflowTooltip):e.showOverflowTooltip,T=Et(e.tooltipFormatter)?w.props.tooltipFormatter??((I=a.value)==null?void 0:I.tooltipFormatter):e.tooltipFormatter,M={...Xne[_],id:u.value,type:_,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=tne(M,A),A=ane(p,h,g)(A),o.value=A,r(),s()}),gt(()=>{var T,M;const _=f.value,S=c.value?(T=_.vnode.el)==null?void 0:T.children:(M=_.refs.hiddenColumns)==null?void 0:M.children,k=()=>m(S||[],n.vnode.el);o.value.getColumnIndex=k,k()>-1&&l.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in _&&_.columnConfig.value:null,b)}),Lt(()=>{const _=o.value.getColumnIndex;(_?_():-1)>-1&&l.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in w&&w.columnConfig.value:null,b)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(be(a))for(const l of a)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===Ke&&be(l.children)&&l.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Be(r==null?void 0:r.children)&&o.push(r)});return Ye("div",o)}catch{return Ye("div",[])}}}),v5=lae;const rae=it(Yne,{TableColumn:v5}),sae=tn(v5);let Mo=function(e){return e.ASC="asc",e.DESC="desc",e}({}),Ed=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({}),iae=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const F2={[Mo.ASC]:Mo.DESC,[Mo.DESC]:Mo.ASC},uu=Symbol("placeholder"),m5=String,Hu={type:J(Array),required:!0},nv={type:J(Array)},g5={...nv,required:!0},uae=String,Hg={type:J(Array),default:()=>on([])},cr={type:Number,required:!0},y5={type:J([String,Number,Symbol]),default:"id"},Fg={type:J(Object)},gr=_e({class:String,columns:Hu,columnsStyles:{type:J(Object),required:!0},depth:Number,expandColumnKey:uae,estimatedRowHeight:{...xr.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:J(Function)},onRowHover:{type:J(Function)},onRowHeightChange:{type:J(Function)},rowData:{type:J(Object),required:!0},rowEventHandlers:{type:J(Object)},rowIndex:{type:Number,required:!0},rowKey:y5,style:{type:J(Object)}}),w0={type:Number,required:!0},av=_e({class:String,columns:Hu,fixedHeaderData:{type:J(Array)},headerData:{type:J(Array),required:!0},headerHeight:{type:J([Number,Array]),default:50},rowWidth:w0,rowHeight:{type:Number,default:50},height:w0,width:w0}),Lc=_e({columns:Hu,data:g5,fixedData:nv,estimatedRowHeight:gr.estimatedRowHeight,width:cr,height:cr,headerWidth:cr,headerHeight:av.headerHeight,bodyWidth:cr,rowHeight:cr,cache:zw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:xr.scrollbarAlwaysOn,scrollbarStartGap:xr.scrollbarStartGap,scrollbarEndGap:xr.scrollbarEndGap,class:m5,style:Fg,containerStyle:Fg,getRowHeight:{type:J(Function),required:!0},rowKey:gr.rowKey,onRowsRendered:{type:J(Function)},onScroll:{type:J(Function)}}),cae=_e({cache:Lc.cache,estimatedRowHeight:gr.estimatedRowHeight,rowKey:y5,headerClass:{type:J([String,Function])},headerProps:{type:J([Object,Function])},headerCellProps:{type:J([Object,Function])},headerHeight:av.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:J([String,Function])},rowProps:{type:J([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:J([Object,Function])},columns:Hu,data:g5,dataGetter:{type:J(Function)},fixedData:nv,expandColumnKey:gr.expandColumnKey,expandedRowKeys:Hg,defaultExpandedRowKeys:Hg,class:m5,fixed:Boolean,style:{type:J(Object)},width:cr,height:cr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:xr.hScrollbarSize,vScrollbarSize:xr.vScrollbarSize,scrollbarAlwaysOn:Fw.alwaysOn,sortBy:{type:J(Object),default:()=>({})},sortState:{type:J(Object),default:void 0},onColumnSort:{type:J(Function)},onExpandedRowsChange:{type:J(Function)},onEndReached:{type:J(Function)},onRowExpand:gr.onRowExpand,onScroll:Lc.onScroll,onRowsRendered:Lc.onRowsRendered,rowEventHandlers:gr.rowEventHandlers}),dae=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function fae(e,t,n){const a=x(()=>i(t).map((m,y)=>({...m,key:m.key??m.dataKey??y}))),o=x(()=>i(a).filter(m=>!m.hidden)),l=x(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),r=x(()=>i(o).filter(m=>m.fixed==="right")),s=x(()=>i(o).filter(m=>!m.fixed)),u=x(()=>{const m=[];return i(l).forEach(y=>{m.push({...y,placeholderSign:uu})}),i(s).forEach(y=>{m.push(y)}),i(r).forEach(y=>{m.push({...y,placeholderSign:uu})}),m}),c=x(()=>i(l).length||i(r).length),d=x(()=>i(a).reduce((m,y)=>(m[y.key]=dae(y,i(n),e.fixed),m),{})),f=x(()=>i(o).reduce((m,y)=>m+y.width,0)),h=m=>i(a).find(y=>y.key===m),g=m=>i(d)[m],p=(m,y)=>{m.width=y};function v(m){var S;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let _=Mo.ASC;lt(b)?_=F2[b[y]]:_=F2[w.order],(S=e.onColumnSort)==null||S.call(e,{column:h(y),key:y,order:_})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:s,visibleColumns:o,getColumn:h,getColumnStyle:g,updateColumnWidth:p,onColumnSorted:v}}const pae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=V({scrollLeft:0,scrollTop:0});function r(g){var v,m,y;const{scrollTop:p}=g;(v=t.value)==null||v.scrollTo(g),(m=n.value)==null||m.scrollToTop(p),(y=a.value)==null||y.scrollToTop(p)}function s(g){l.value=g,r(g)}function u(g){l.value.scrollTop=g,r(i(l))}function c(g){var p,v;l.value.scrollLeft=g,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,i(l))}function d(g){var p;s(g),(p=e.onScroll)==null||p.call(e,g)}function f({scrollTop:g}){const{scrollTop:p}=i(l);g!==p&&u(g)}function h(g,p="auto"){var v;(v=t.value)==null||v.scrollToRow(g,p)}return fe(()=>i(l).scrollTop,(g,p)=>{g>p&&o()}),{scrollPos:l,scrollTo:s,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},hae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const s=vt(),{emit:u}=s,c=qt(!1),d=V(e.defaultExpandedRowKeys||[]),f=V(-1),h=qt(null),g=V({}),p=V({}),v=qt({}),m=qt({}),y=qt({}),b=x(()=>He(e.estimatedRowHeight));function w(O){var I;(I=e.onRowsRendered)==null||I.call(e,O),O.rowCacheEnd>i(f)&&(f.value=O.rowCacheEnd)}function _({hovered:O,rowKey:I}){r.value||o.vnode.el.querySelectorAll(`[rowkey="${String(I)}"]`).forEach(L=>{O?L.classList.add(l.is("hovered")):L.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:I,rowIndex:L,rowKey:z}){var F,N;const q=[...i(d)],U=q.indexOf(z);O?U===-1&&q.push(z):U>-1&&q.splice(U,1),d.value=q,u("update:expandedRowKeys",q),(F=e.onRowExpand)==null||F.call(e,{expanded:O,rowData:I,rowIndex:L,rowKey:z}),(N=e.onExpandedRowsChange)==null||N.call(e,q),o.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(z)}"]`)&&Le(()=>_({hovered:!0,rowKey:z}))}const k=Vo(()=>{var O,I,L,z;c.value=!0,g.value={...i(g),...i(p)},T(i(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(I=n.value)==null||I.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(z=s.proxy)==null||z.$forceUpdate(),c.value=!1},0);function T(O,I=!1){i(b)&&[t,n,a].forEach(L=>{const z=i(L);z&&z.resetAfterRowIndex(O,I)})}function M(O,I,L){const z=i(h);(z===null||z>L)&&(h.value=L),p.value[O]=I}function A({rowKey:O,height:I,rowIndex:L},z){z?z===iae.RIGHT?y.value[O]=I:v.value[O]=I:m.value[O]=I;const q=Math.max(...[v,y,m].map(U=>U.value[O]||0));i(g)[O]!==q&&(M(O,q,L),k())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:b,isResetting:c,rowHeights:g,resetAfterIndex:T,onRowExpanded:S,onRowHovered:_,onRowsRendered:w,onRowHeightChange:A}},vae=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=V({}),l=x(()=>{const s={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let g=u.slice();for(g.forEach(p=>s[p[c]]=0);g.length>0;){const p=g.shift();f.push(p),h.has(p[c])&&be(p.children)&&p.children.length>0&&(g=[...p.children,...g],p.children.forEach(v=>s[v[c]]=s[p[c]]+1))}return o.value=s,f}),r=x(()=>{const{data:s,expandColumnKey:u}=e;return u?i(l):s});return fe(r,(s,u)=>{s!==u&&(n.value=-1,a(0,!0))}),{data:r,depthMap:o}},mae=(e,t)=>e+t,Vc=e=>be(e)?e.reduce(mae,0):e,Lr=(e,t,n={})=>Fe(e)?e(t):e??n,Bl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=ln(e[t])}),e),b5=e=>Wt(e)?t=>Ye(e,t):e,gae=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=x(()=>{const{fixed:v,width:m,vScrollbarSize:y}=e,b=m-y;return v?Math.max(Math.round(i(t)),b):b}),r=x(()=>{const{height:v=0,maxHeight:m=0,footerHeight:y,hScrollbarSize:b}=e;if(m>0){const w=i(h),_=i(n),S=i(f)+w+_+b;return Math.min(S,m-y)}return v-y}),s=x(()=>{const{maxHeight:v}=e,m=i(r);if(He(v)&&v>0)return m;const y=i(n)+i(f)+i(h);return Math.min(m,y)}),u=v=>v.width,c=x(()=>Vc(i(a).map(u))),d=x(()=>Vc(i(o).map(u))),f=x(()=>Vc(e.headerHeight)),h=x(()=>{var v;return(((v=e.fixedData)==null?void 0:v.length)||0)*e.rowHeight}),g=x(()=>i(r)-i(f)-i(h)),p=x(()=>{const{style:v={},height:m,width:y}=e;return Bl({...v,height:m,width:y})});return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:x(()=>Bl({height:e.footerHeight})),emptyStyle:x(()=>({top:ln(i(f)),bottom:ln(e.footerHeight),width:ln(e.width)})),rootStyle:p,headerHeight:f}};function yae(e){const t=V(),n=V(),a=V(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=fae(e,Bt(e,"columns"),Bt(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y,scrollPos:b}=pae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:Z}),w=ve("table-v2"),_=vt(),S=qt(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:M,isResetting:A,rowHeights:O,resetAfterIndex:I,onRowExpanded:L,onRowHeightChange:z,onRowHovered:q,onRowsRendered:U}=hae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:_,ns:w,isScrolling:S}),{data:F,depthMap:N}=vae(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:I}),P=x(()=>{const{estimatedRowHeight:le,rowHeight:ce}=e,ge=i(F);return He(le)?Object.values(i(O)).reduce((me,Ae)=>me+Ae,0):ge.length*ce}),{bodyWidth:B,fixedTableHeight:K,mainTableHeight:W,leftTableWidth:j,rightTableWidth:G,windowHeight:ee,footerHeight:te,emptyStyle:ue,rootStyle:ne,headerHeight:de}=gae(e,{columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,rowsHeight:P}),se=V(),Y=x(()=>{const le=i(F).length===0;return be(e.fixedData)?e.fixedData.length===0&&le:le});function X(le){const{estimatedRowHeight:ce,rowHeight:ge,rowKey:me}=e;return ce?i(O)[i(F)[le][me]]||ce:ge}const H=V(!1);function Z(){const{onEndReached:le}=e;if(!le)return;const{scrollTop:ce}=i(b),ge=i(P),me=ge-(ce+i(ee))+e.hScrollbarSize;!H.value&&i(T)>=0&&ge<=ce+i(W)-i(de)?(H.value=!0,le(me)):H.value=!1}return fe(()=>i(P),()=>H.value=!1),fe(()=>e.expandedRowKeys,le=>k.value=le,{deep:!0}),{columns:o,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:A,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:F,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:B,emptyStyle:ue,rootStyle:ne,footerHeight:te,mainTableHeight:W,fixedTableHeight:K,leftTableWidth:j,rightTableWidth:G,showEmpty:Y,getRowHeight:X,onColumnSorted:f,onRowHovered:q,onRowExpanded:L,onRowsRendered:U,onRowHeightChange:z,scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y}}const ov=Symbol("tableV2"),w5="tableV2GridScrollLeft",bae=D({name:"ElTableV2Header",props:av,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),o=Pe(w5),l=V(),r=x(()=>Bl({width:e.width,height:e.height})),s=x(()=>Bl({width:e.rowWidth,height:e.height})),u=x(()=>$n(i(e.headerHeight))),c=h=>{const g=i(l);Le(()=>{g!=null&&g.scroll&&g.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:g,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((m,y)=>{var w;const b=Bl({height:v,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:h,columns:g,rowData:m,rowIndex:-(y+1),style:b})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((p,v)=>{var y;const m=Bl({width:"100%",height:p});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:g,headerIndex:v,style:m})})};return so(()=>{o!=null&&o.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Q("div",{ref:l,class:e.class,style:i(r),role:"rowgroup"},[Q("div",{style:i(s),class:a.e("header")},[f(),d()])])}}}),wae="ElTableV2Grid",Cae=e=>{const t=V(),n=V(),a=V(0),o=x(()=>{const{data:m,rowHeight:y,estimatedRowHeight:b}=e;if(!b)return m.length*y}),l=x(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),r=x(()=>Vc(e.headerHeight)),s=x(()=>{const{height:m}=e;return Math.max(0,m-i(r)-i(l))}),u=x(()=>i(r)+i(l)>0),c=({data:m,rowIndex:y})=>m[y][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w})}function f(m,y){var b;(b=n.value)==null||b.resetAfterRowIndex(m,y)}function h(m,y){const b=i(t),w=i(n);lt(m)?(b==null||b.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,w==null||w.scrollTo(m)):(b==null||b.scrollToLeft(m),a.value=m,w==null||w.scrollTo({scrollLeft:m,scrollTop:y}))}function g(m){var y;(y=i(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){const b=i(n);if(!b)return;const w=a.value;b.scrollToItem(m,0,y),w&&h({scrollLeft:w})}function v(){var m,y;(m=i(n))==null||m.$forceUpdate(),(y=i(t))==null||y.$forceUpdate()}return fe(()=>e.bodyWidth,()=>{var m;He(e.estimatedRowHeight)&&((m=n.value)==null||m.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:s,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:g,scrollToRow:p,scrollLeft:a}},lv=D({name:wae,props:Lc,setup(e,{slots:t,expose:n}){const{ns:a}=Pe(ov),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:s,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:b}=Cae(e);wt(w5,b),vu(async()=>{var S;await Le();const _=(S=o.value)==null?void 0:S.states.scrollTop;_&&m(Math.round(_)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:y,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:_,columns:S,data:k,fixedData:T,useIsScrolling:M,scrollbarAlwaysOn:A,scrollbarEndGap:O,scrollbarStartGap:I,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:U,headerWidth:F,height:N,width:P,getRowHeight:B,onScroll:K}=e,W=He(U),j=W?xee:wee,G=i(c);return Q("div",{role:"table",class:[a.e("table"),e.class],style:L},[Q(j,{ref:o,data:k,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:W?w:q,totalColumn:1,totalRow:k.length,rowCache:_,rowHeight:W?B:z,width:P,height:i(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:O,scrollbarAlwaysOn:A,onScroll:K,onItemRendered:g,perfMode:!1},{default:ee=>{var ue;const te=k[ee.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...ee,columns:S,rowData:te})}}),i(s)&&Q(bae,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:F,rowHeight:z,width:P,height:Math.min(G+i(l),N)},{dynamic:t.header,fixed:t.row})])}}});function _ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Sae=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),_ae(t)?t:{default:()=>[t]})};function xae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const kae=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),xae(t)?t:{default:()=>[t]})};function Eae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Tae=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),Eae(t)?t:{default:()=>[t]})},Mae=e=>{const{isScrolling:t}=Pe(ov),n=V(!1),a=V(),o=x(()=>He(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:g,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Le(()=>{if(u||v!==Number.parseInt(p.height)){const m=d[0],y=(m==null?void 0:m.placeholderSign)===uu;f==null||f({rowKey:h,height:v,rowIndex:g},m&&!y&&m.fixed)}})},r=x(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([p,v])=>{Fe(v)&&(g[p]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const m=g[p];g[p]=y=>{f({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m==null||m(y)}}),g}),s=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return gt(()=>{i(o)&&l(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:r,onExpand:s}},Oae=D({name:"ElTableV2TableRow",props:gr,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:s,rowRef:u,onExpand:c}=Mae(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:g,rowData:p,rowIndex:v,style:m}=e;let y=d.map((b,w)=>{const _=be(p.children)&&p.children.length>0&&b.key===h;return n.cell({column:b,columns:d,columnIndex:w,depth:g,style:f[b.key],rowData:p,rowIndex:v,isScrolling:i(l),expandIconProps:_?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(b=>be(b)&&b.length===1?b[0]:b),style:m,columns:d,depth:g,rowData:p,rowIndex:v,isScrolling:i(l)})),i(r)){const{height:b,...w}=m||{},_=i(s);return Q("div",ht({ref:u,class:e.class,style:_?m:w,role:"row"},a,i(o)),[y])}return Q("div",ht(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[y])}}});function $ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Aae=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:s,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:g,rowClass:p,rowKey:v,rowEventHandlers:m,ns:y,onRowHovered:b,onRowExpanded:w}=e,_=Lr(p,{columns:n,rowData:c,rowIndex:d},""),S=Lr(g,{columns:n,rowData:c,rowIndex:d}),k=c[v],T=o[k]||0,M=!!l,A=d<0,O=[y.e("row"),_,y.is("expanded",M&&r.includes(k)),y.is("fixed",!T&&A),y.is("customized",!!t.row),{[y.e(`row-depth-${T}`)]:M&&d>=0}],I=u?b:void 0,L={...S,columns:n,columnsStyles:a,class:O,depth:T,expandColumnKey:l,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:m,style:f};return Q(Oae,ht(L,{onRowExpand:w,onMouseenter:U=>{I==null||I({hovered:!0,rowKey:k,event:U,rowData:c,rowIndex:d})},onMouseleave:U=>{I==null||I({hovered:!1,rowKey:k,event:U,rowData:c,rowIndex:d})},rowkey:k}),$ae(t)?t:{default:()=>[t]})},rv=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,o=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"",l=oe(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[l])};rv.displayName="ElTableV2Cell";rv.inheritAttrs=!1;const C5=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l,ariaLabel:r}=e;return Q("button",ht({onClick:n?()=>a(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class},{type:"button"}),[Q(De,{size:l,style:o},{default:()=>[Q(Un,null,null)]})])};C5.inheritAttrs=!1;const K2=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:s,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:g,indentSize:p,iconSize:v,rowKey:m},{slots:y})=>{const b=Bl(u);if(t.placeholderSign===uu)return Q("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:_,dataGetter:S}=t,k=Fe(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:s}):bn(r,_??""),T=Lr(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:r}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:s},A=b5(w),O=A?A(M):oe(y,"default",M,()=>[Q(rv,M,null)]),I=[d.e("row-cell"),t.class,t.align===Ed.CENTER&&d.is("align-center"),t.align===Ed.RIGHT&&d.is("align-right")],L=s>=0&&g&&t.key===g,z=s>=0&&c.includes(r[m]);let q;const U=`margin-inline-start: ${a*p}px;`;return L&&(lt(o)?q=Q(C5,ht(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:v,expanded:z,ariaLabel:f(z?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:U,expandable:!0}),null):q=Q("div",{style:[U,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Q("div",ht({class:I,style:b},T,{role:"cell"}),[q,O])};K2.inheritAttrs=!1;const Rae=_e({class:String,columns:Hu,columnsStyles:{type:J(Object),required:!0},headerIndex:Number,style:{type:J(Object)}}),Nae=D({name:"ElTableV2HeaderRow",props:Rae,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map((s,u)=>t.cell({columns:n,column:s,columnIndex:u,headerIndex:o,style:a[s.key]}));return t.header&&(r=t.header({cells:r.map(s=>be(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Q("div",{class:e.class,style:l,role:"row"},[r])}}});function Pae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Iae=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:s})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),Lr(o,u,""),r.is("customized",!!s.header)];return Q(Nae,{...Lr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},Pae(s)?s:{default:()=>[s]})},sv=(e,{slots:t})=>oe(t,"default",e,()=>{var n,a;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});sv.displayName="ElTableV2HeaderCell";sv.inheritAttrs=!1;const Lae=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(De,{size:14},{default:()=>[t===Mo.ASC?Q(My,null,null):Q(Ty,null,null)]})])},Kg=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:l,onColumnSorted:r}=e,s=Bl(l);if(n.placeholderSign===uu)return Q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},h=b5(u),g=h?h(f):oe(t,"default",f,()=>[Q(sv,f,null)]),{sortBy:p,sortState:v,headerCellProps:m}=e;let y,b,w;if(v){const S=v[n.key];y=!!F2[S],b=y?S:Mo.ASC}else y=n.key===p.key,b=y?p.order:Mo.ASC;b===Mo.ASC?w="ascending":b===Mo.DESC?w="descending":w=void 0;const _=[a.e("header-cell"),Lr(c,e,""),n.align===Ed.CENTER&&a.is("align-center"),n.align===Ed.RIGHT&&a.is("align-right"),d&&a.is("sortable")];return Q("div",ht({...Lr(m,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:_,style:s,"data-key":n.key},{role:"columnheader"}),[g,d&&Q(Lae,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},_5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};_5.displayName="ElTableV2Footer";const S5=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[Q(Ew,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};S5.displayName="ElTableV2Empty";const x5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};x5.displayName="ElTableV2Overlay";function fi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Vae=D({name:"ElTableV2",props:cae,slots:Object,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),{t:o}=kt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:g,depthMap:p,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:y,leftTableRef:b,rightTableRef:w,isDynamic:_,isResetting:S,isScrolling:k,bodyWidth:T,emptyStyle:M,rootStyle:A,footerHeight:O,showEmpty:I,scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U,getRowHeight:F,onColumnSorted:N,onRowHeightChange:P,onRowHovered:B,onRowExpanded:K,onRowsRendered:W,onScroll:j,onVerticalScroll:G}=yae(e);return n({scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U}),wt(ov,{ns:a,isResetting:S,isScrolling:k}),()=>{const{cache:ee,cellProps:te,estimatedRowHeight:ue,expandColumnKey:ne,fixedData:de,headerHeight:se,headerClass:Y,headerProps:X,headerCellProps:H,sortBy:Z,sortState:le,rowHeight:ce,rowClass:ge,rowEventHandlers:me,rowKey:Ae,rowProps:Ne,scrollbarAlwaysOn:Re,indentSize:ye,iconSize:Ee,useIsScrolling:we,vScrollbarSize:Ie,width:ze}=e,et=i(g),nt={cache:ee,class:a.e("main"),columns:i(u),data:et,fixedData:de,estimatedRowHeight:ue,bodyWidth:i(T),headerHeight:se,headerWidth:i(T),height:i(c),mainTableRef:y,rowKey:Ae,rowHeight:ce,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:ze,getRowHeight:F,onRowsRendered:W,onScroll:j},at=i(f),Me=i(d),Ge={cache:ee,class:a.e("left"),columns:i(r),data:et,fixedData:de,estimatedRowHeight:ue,leftTableRef:b,rowHeight:ce,bodyWidth:at,headerWidth:at,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:at,getRowHeight:F,onScroll:G},ut=i(h),je={cache:ee,class:a.e("right"),columns:i(s),data:et,fixedData:de,estimatedRowHeight:ue,rightTableRef:w,rowHeight:ce,bodyWidth:ut,headerWidth:ut,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,width:ut,style:`${a.cssVarName("table-scrollbar-size")}: ${Ie}px`,useIsScrolling:we,getRowHeight:F,onScroll:G},tt=i(l),yt={ns:a,depthMap:i(p),columnsStyles:tt,expandColumnKey:ne,expandedRowKeys:i(v),estimatedRowHeight:ue,hasFixedColumns:i(m),rowProps:Ne,rowClass:ge,rowKey:Ae,rowEventHandlers:me,onRowHovered:B,onRowExpanded:K,onRowHeightChange:P},he={cellProps:te,expandColumnKey:ne,indentSize:ye,iconSize:Ee,rowKey:Ae,expandedRowKeys:i(v),ns:a,t:o},Ve={ns:a,headerClass:Y,headerProps:X,columnsStyles:tt},pe={ns:a,t:o,sortBy:Z,sortState:le,headerCellProps:H,onColumnSorted:N},Te={row:Gt=>Q(Aae,ht(Gt,yt),{row:t.row,cell:Oe=>{let We;return t.cell?Q(K2,ht(Oe,he,{style:tt[Oe.column.key]}),fi(We=t.cell(Oe))?We:{default:()=>[We]}):Q(K2,ht(Oe,he,{style:tt[Oe.column.key]}),null)}}),header:Gt=>Q(Iae,ht(Gt,Ve),{header:t.header,cell:Oe=>{let We;return t["header-cell"]?Q(Kg,ht(Oe,pe,{style:tt[Oe.column.key]}),fi(We=t["header-cell"](Oe))?We:{default:()=>[We]}):Q(Kg,ht(Oe,pe,{style:tt[Oe.column.key]}),null)}})},ct=[e.class,a.b(),a.e("root"),a.is("dynamic",i(_))],Pt={class:a.e("footer"),style:i(O)};return Q("div",{class:ct,style:i(A)},[Q(Sae,nt,fi(Te)?Te:{default:()=>[Te]}),Q(kae,Ge,fi(Te)?Te:{default:()=>[Te]}),Q(Tae,je,fi(Te)?Te:{default:()=>[Te]}),t.footer&&Q(_5,Pt,{default:t.footer}),i(I)&&Q(S5,{class:a.e("empty"),style:i(M)},{default:t.empty}),t.overlay&&Q(x5,{class:a.e("overlay")},{default:t.overlay})])}}}),Bae=_e({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:J(Function)}}),zae=e=>{const t=V(),n=V(0),a=V(0);let o;return gt(()=>{o=Zt(t,([l])=>{const{width:r,height:s}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-g,a.value=s-p-v}).stop}),Lt(()=>{o==null||o()}),fe([n,a],([l,r])=>{var s;(s=e.onResize)==null||s.call(e,{width:l,height:r})}),{sizer:t,width:n,height:a}},Dae=D({name:"ElAutoResizer",props:Bae,setup(e,{slots:t}){const n=ve("auto-resizer"),{height:a,width:o,sizer:l}=zae(e),r={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:l,class:n.b(),style:r},[(s=t.default)==null?void 0:s.call(t,{height:a.value,width:o.value})])}}}),Hae=it(Vae),Fae=it(Dae),Cf=Symbol("tabsRootContextKey"),Kae=_e({tabs:{type:J(Array),default:()=>on([])},tabRefs:{type:J(Object),default:()=>on({})}}),Wg="ElTabBar";var Wae=D({name:Wg,__name:"tab-bar",props:Kae,setup(e,{expose:t}){const n=e,a=Pe(Cf);a||en(Wg,"");const o=ve("tabs"),l=V(),r=V(),s=x(()=>{var g;return Et(a.props.defaultValue)||!!((g=r.value)!=null&&g.transform)}),u=()=>{let g=0,p=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(b=>{if(Et(b.paneName))return!1;const w=n.tabRefs[b.paneName];if(!w)return!1;if(!b.active)return!0;g=w[`offset${Zf(y)}`],p=w[`client${Zf(v)}`];const _=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),g+=Number.parseFloat(_.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${Zf(m)}(${g}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(Zt(g,c))})};fe(()=>n.tabs,async()=>{await Le(),c(),f()},{immediate:!0});const h=Zt(l,()=>c());return Lt(()=>{d.forEach(g=>g.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(g,p)=>s.value?(C(),$("div",{key:0,ref_key:"barRef",ref:l,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:qe(r.value)},null,6)):re("v-if",!0)}}),jae=Wae;const qae=_e({panes:{type:J(Array),default:()=>on([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),Uae={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},jg="ElTabNav",Yae=D({name:jg,props:qae,emits:Uae,setup(e,{expose:t,emit:n}){const a=Pe(Cf);a||en(jg,"");const o=ve("tabs"),l=AS(),r=NS(),s=V(),u=V(),c=V(),d=V({}),f=V(),h=V(!1),g=V(0),p=V(!1),v=V(!0),m=V(!1),y=qt(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)),w=x(()=>b.value?"width":"height"),_=x(()=>{const j=w.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${j}(-${g.value}px)`}}),{width:S,height:k}=j0(s),{width:T,height:M}=j0(u,{width:0,height:0},{box:"border-box"}),A=x(()=>b.value?S.value:k.value),O=x(()=>b.value?T.value:M.value),{onWheel:I}=Ww({atStartEdge:x(()=>g.value<=0),atEndEdge:x(()=>O.value-g.value<=A.value),layout:x(()=>b.value?"horizontal":"vertical")},j=>{g.value=fr(g.value+j,0,O.value-A.value)}),L=j=>{m.value=!0,I(j),Fa(()=>{m.value=!1})},z=()=>{if(!s.value)return;const j=s.value.getBoundingClientRect()[w.value],G=g.value;G&&(g.value=G>j?G-j:0)},q=()=>{if(!s.value||!u.value)return;const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;Dl(j-ee,G)&&(g.value=j-ee>G*2?ee+G:j-G)},U=async()=>{const j=u.value;if(!h.value||!c.value||!s.value||!j)return;await Le();const G=d.value[e.currentName];if(!G)return;const ee=s.value,te=G.getBoundingClientRect(),ue=ee.getBoundingClientRect(),ne=ue.left+1,de=ue.right-1,se=j.getBoundingClientRect(),Y=b.value?se.width-ue.width:se.height-ue.height,X=g.value;let H=X;b.value?(te.leftde&&(H=X+te.right-de)):(te.topue.bottom&&(H=X+(te.bottom-ue.bottom))),H=Math.max(H,0),g.value=Math.min(H,Y)},F=()=>{var te;if(!u.value||!s.value)return;e.stretch&&((te=f.value)==null||te.update());const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;G0&&(g.value=0))},N=j=>{const G=Kt(j);let ee=0;switch(G){case Ce.left:case Ce.up:ee=-1;break;case Ce.right:case Ce.down:ee=1;break;default:return}const te=Array.from(j.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ue=te.indexOf(j.target)+ee;ue<0?ue=te.length-1:ue>=te.length&&(ue=0),te[ue].focus({preventScroll:!0}),te[ue].click(),P()},P=()=>{v.value&&(p.value=!0)},B=()=>p.value=!1,K=(j,G)=>{d.value[G]=j},W=async()=>{var j;await Le(),(j=d.value[e.currentName])==null||j.focus({preventScroll:!0})};return fe(l,j=>{j==="hidden"?v.value=!1:j==="visible"&&setTimeout(()=>v.value=!0,50)}),fe(r,j=>{j?setTimeout(()=>v.value=!0,50):v.value=!1}),Zt(c,()=>{Fa(F)}),gt(()=>setTimeout(()=>U(),0)),so(()=>F()),t({scrollToActiveTab:U,removeFocus:B,focusActiveTab:W,tabListRef:u,tabBarRef:f,scheduleRender:()=>Cc(y)}),()=>{const j=h.value?[Q("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:z},[Q(De,null,{default:()=>[Q(zo,null,null)]})]),Q("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:q},[Q(De,null,{default:()=>[Q(Un,null,null)]})])]:null,G=e.panes.map((ee,te)=>{var Z,le;const ue=ee.uid,ne=ee.props.disabled,de=ee.props.name??ee.index??`${te}`,se=!ne&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${te}`;const Y=se?Q(De,{class:"is-icon-close",onClick:ce=>n("tabRemove",ee,ce)},{default:()=>[Q(Na,null,null)]}):null,X=((le=(Z=ee.slots).label)==null?void 0:le.call(Z))||ee.props.label,H=!ne&&ee.active?e.tabindex??a.props.tabindex:-1;return Q("div",{ref:ce=>K(ce,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",ne),o.is("closable",se),o.is("focus",p.value)],id:`tab-${de}`,key:`tab-${ue}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:H,onFocus:()=>P(),onBlur:()=>B(),onClick:ce=>{B(),n("tabClick",ee,de,ce)},onKeydown:ce=>{const ge=Kt(ce);se&&(ge===Ce.delete||ge===Ce.backspace)&&n("tabRemove",ee,ce)}},[X,Y])});return y.value,Q("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(a.props.tabPosition)]},[j,Q("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:_.value,role:"tablist",onKeydown:N,onWheel:L},[e.type?null:Q(jae,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),G]):null])])}}}),Gae=_e({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:J(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),C0=e=>Be(e)||He(e),Xae={[ot]:e=>C0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>C0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>C0(e),tabAdd:()=>!0},Jae=D({name:"ElTabs",props:Gae,emits:Xae,setup(e,{emit:t,slots:n,expose:a}){const o=ve("tabs"),l=x(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:s,removeChild:u,ChildrenSorter:c}=cf(vt(),"ElTabPane"),d=V(),f=V((Et(e.modelValue)?e.defaultValue:e.modelValue)??"0"),h=async(b,w=!1)=>{var _,S,k,T;if(!(f.value===b||Et(b)))try{let M;if(e.beforeLeave){const A=e.beforeLeave(b,f.value);M=A instanceof Promise?await A:A}else M=!0;if(M!==!1){const A=(_=r.value.find(O=>O.paneName===f.value))==null?void 0:_.isFocusInsidePane();f.value=b,w&&(t(ot,b),t("tabChange",b)),(k=(S=d.value)==null?void 0:S.removeFocus)==null||k.call(S),A&&((T=d.value)==null||T.focusActiveTab())}}catch{}},g=(b,w,_)=>{b.props.disabled||(t("tabClick",b,_),h(w,!0))},p=(b,w)=>{b.props.disabled||Et(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=Kt(b);[Ce.enter,Ce.numpadEnter].includes(w)&&v()},y=b=>{const w=b.el.firstChild,_=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==_&&w.before(_)};return fe(()=>e.modelValue,b=>h(b)),fe(f,async()=>{var b;await Le(),(b=d.value)==null||b.scrollToActiveTab()}),wt(Cf,{props:e,currentName:f,registerPane:s,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return Su(d.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),l.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[b?oe(n,"add-icon"):Q(De,{class:o.is("icon-plus")},{default:()=>[Q(vh,null,null)]})]):null,_=()=>Q(Yae,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:g,onTabRemove:p},null),S=Q("div",{class:[o.e("header"),l.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:_,$stable:!0}),w]),k=Q("div",{class:o.e("content")},[oe(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[k,S])}}}),Zae=_e({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Qae=["id","aria-hidden","aria-labelledby"],qg="ElTabPane";var eoe=D({name:qg,__name:"tab-pane",props:Zae,setup(e){const t=e,n=vt(),a=hn(),o=Pe(Cf);o||en(qg,"usage: ");const l=ve("tab-pane"),r=V(),s=V(),u=x(()=>t.closable??o.props.closable),c=x(()=>o.currentName.value===(t.name??s.value)),d=V(c.value),f=x(()=>t.name??s.value),h=x(()=>!t.lazy||d.value||c.value),g=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};fe(c,v=>{v&&(d.value=!0)});const p=Rt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:s,isClosable:u,isFocusInsidePane:g});return o.registerPane(p),Lt(()=>{o.unregisterPane(p)}),Cp(()=>{var v;a.label&&((v=o.nav$.value)==null||v.scheduleRender())}),(v,m)=>h.value?ft((C(),$("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:R(i(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,Qae)),[[$t,c.value]]):re("v-if",!0)}}),k5=eoe;const toe=it(Jae,{TabPane:k5}),noe=tn(k5),aoe=_e({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:io,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var ooe=D({name:"ElText",__name:"text",props:aoe,setup(e){const t=e,n=V(),a=_n(),o=ve("text"),l=x(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!Et(t.lineClamp))]),r=()=>{var c,d,f,h,g,p,v;if(gl().title)return;let s=!1;const u=((c=n.value)==null?void 0:c.textContent)||"";if(t.truncated){const m=(d=n.value)==null?void 0:d.offsetWidth,y=(f=n.value)==null?void 0:f.scrollWidth;m&&y&&y>m&&(s=!0)}else if(!Et(t.lineClamp)){const m=(h=n.value)==null?void 0:h.offsetHeight,y=(g=n.value)==null?void 0:g.scrollHeight;m&&y&&y>m&&(s=!0)}s?(p=n.value)==null||p.setAttribute("title",u):(v=n.value)==null||v.removeAttribute("title")};return gt(r),so(r),(s,u)=>(C(),ie(dt(e.tag),{ref_key:"textRef",ref:n,class:R(l.value),style:qe({"-webkit-line-clamp":e.lineClamp})},{default:ae(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),loe=ooe;const iv=it(loe),W2="00:30",roe=_e({format:{type:String,default:"HH:mm"},modelValue:{type:J(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:J(String),default:"light"},clearable:{type:Boolean,default:!0},size:kn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:W2},minTime:{type:J(String)},maxTime:{type:J(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:J([String,Object]),default:()=>hh},clearIcon:{type:J([String,Object]),default:()=>ho},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},...Wr}),el=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},_0=(e,t)=>{const n=el(e);if(!n)return-1;const a=el(t);if(!a)return-1;const o=n.minutes+n.hours*60,l=a.minutes+a.hours*60;return o===l?0:o>l?1:-1},Ug=e=>`${e}`.padStart(2,"0"),os=e=>`${Ug(e.hours)}:${Ug(e.minutes)}`,soe=(e,t)=>{const n=el(e);if(!n)return"";const a=el(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,os(o)};var ioe=D({name:"ElTimeSelect",__name:"time-select",props:roe,emits:[bt,"blur","focus","clear",ot],setup(e,{expose:t}){st.extend(Oh);const{Option:n}=Yl,a=e,o=ve("input"),l=V(),r=rn(),{lang:s}=kt(),u=x(()=>a.modelValue),c=x(()=>{const y=el(a.start);return y?os(y):null}),d=x(()=>{const y=el(a.end);return y?os(y):null}),f=x(()=>{const y=el(a.minTime||"");return y?os(y):null}),h=x(()=>{const y=el(a.maxTime||"");return y?os(y):null}),g=x(()=>{const y=el(a.step),b=!y||y.hours<0||y.minutes<0||Number.isNaN(y.hours)||Number.isNaN(y.minutes)||y.hours===0&&y.minutes===0;return b&&pt("ElTimeSelect",`invalid step, fallback to default step (${W2}).`),b?W2:os(y)}),p=x(()=>{var w;const y=[],b=(_,S)=>{y.push({value:_,rawValue:S,disabled:_0(S,f.value||"-1:-1")<=0||_0(S,h.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let _=c.value,S;for(;_&&d.value&&_0(_,d.value)<=0;)S=st(_,"HH:mm").locale(s.value).format(a.format),b(S,_),_=soe(_,g.value);a.includeEndTime&&d.value&&((w=y[y.length-1])==null?void 0:w.rawValue)!==d.value&&b(st(d.value,"HH:mm").locale(s.value).format(a.format),d.value)}return y});return t({blur:()=>{var y,b;(b=(y=l.value)==null?void 0:y.blur)==null||b.call(y)},focus:()=>{var y,b;(b=(y=l.value)==null?void 0:y.focus)==null||b.call(y)}}),(y,b)=>(C(),ie(i(Yl),{ref_key:"select",ref:l,name:e.name,"model-value":u.value,disabled:i(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":b[0]||(b[0]=w=>y.$emit(i(ot),w)),onChange:b[1]||(b[1]=w=>y.$emit(i(bt),w)),onBlur:b[2]||(b[2]=w=>y.$emit("blur",w)),onFocus:b[3]||(b[3]=w=>y.$emit("focus",w)),onClear:b[4]||(b[4]=()=>y.$emit("clear"))},{prefix:ae(()=>[e.prefixIcon?(C(),ie(i(De),{key:0,class:R(i(o).e("prefix-icon"))},{default:ae(()=>[(C(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ae(()=>[(C(!0),$(Ke,null,_t(p.value,w=>(C(),ie(i(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),uoe=ioe;const coe=it(uoe),E5="timeline",doe=_e({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),foe=D({name:"ElTimeline",props:doe,setup(e,{slots:t}){const n=ve("timeline");wt(E5,{props:e,slots:t});const a=x(()=>[n.b(),n.is(e.mode)]);return()=>{var l;const o=Ta(((l=t.default)==null?void 0:l.call(t))??[]);return Ye("ul",{class:a.value},e.reverse?o.reverse():o)}}}),poe=_e({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ft},hollow:Boolean});var hoe=D({name:"ElTimelineItem",__name:"timeline-item",props:poe,setup(e){const t=e,{props:n}=Pe(E5),a=ve("timeline-item"),o=x(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),l=x(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(r,s)=>(C(),$("li",{class:R(l.value)},[E("div",{class:R(i(a).e("tail"))},null,2),r.$slots.dot?re("v-if",!0):(C(),$("div",{key:0,class:R(o.value),style:qe({backgroundColor:e.color})},[e.icon?(C(),ie(i(De),{key:0,class:R(i(a).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),r.$slots.dot?(C(),$("div",{key:1,class:R(i(a).e("dot"))},[oe(r.$slots,"dot")],2)):re("v-if",!0),E("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(C(),$("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},Se(e.timestamp),3)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[oe(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(C(),$("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},Se(e.timestamp),3)):re("v-if",!0)],2)],2))}}),T5=hoe;const voe=it(foe,{TimelineItem:T5}),moe=tn(T5),M5="left-check-change",O5="right-check-change",ls=_e({data:{type:J(Array),default:()=>[]},titles:{type:J(Array),default:()=>[]},buttonTexts:{type:J(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:J(Function)},leftDefaultChecked:{type:J(Array),default:()=>[]},rightDefaultChecked:{type:J(Array),default:()=>[]},renderContent:{type:J(Function)},modelValue:{type:J(Array),default:()=>[]},format:{type:J(Object),default:()=>({})},filterable:Boolean,props:{type:J(Object),default:()=>on({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),j2=(e,t)=>[e,t].every(be)||be(e)&&gn(t),goe={[bt]:(e,t,n)=>[e,n].every(be)&&["left","right"].includes(t),[ot]:e=>be(e),[M5]:j2,[O5]:j2},Fu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},yoe=(e,t)=>({onSourceCheckedChange:(o,l)=>{e.leftChecked=o,l&&t(M5,o,l)},onTargetCheckedChange:(o,l)=>{e.rightChecked=o,l&&t(O5,o,l)}}),boe=e=>{const t=Fu(e),n=x(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:x(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:x(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const l=n.value[o];return l&&a.push(l),a},[]))}},woe=(e,t,n)=>{const a=Fu(e),o=(s,u,c)=>{n(ot,s),n(bt,s,u,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=s.indexOf(u);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);s=e.targetOrder==="unshift"?u.concat(s):s.concat(u),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[a.value.key])).map(c=>c[a.value.key])),o(s,"right",t.leftChecked)}}},q2="checked-change",Coe=_e({data:ls.data,optionRender:{type:J(Function)},placeholder:String,title:String,filterable:Boolean,format:ls.format,filterMethod:ls.filterMethod,defaultChecked:ls.leftDefaultChecked,props:ls.props}),_oe={[q2]:j2},Soe=(e,t,n)=>{const a=Fu(e),o=x(()=>e.data.filter(d=>Fe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=x(()=>o.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),s=x(()=>{const d=t.checked.length;return d>0&&d{const d=l.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[a.value.key]):[]};return fe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(q2,d,d.concat(f).filter(h=>!d.includes(h)||!f.includes(h))):(n(q2,d),t.checkChangeByUser=!0)}),fe(l,()=>{u()}),fe(()=>e.data,()=>{const d=[],f=o.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),fe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],g=l.value.map(p=>p[a.value.key]);d.forEach(p=>{g.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:s,updateAllChecked:u,handleAllCheckedChange:c}};var xoe=D({name:"ElTransferPanel",__name:"transfer-panel",props:Coe,emits:_oe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=({option:_})=>_,{t:s}=kt(),u=ve("transfer"),c=Rt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Fu(a),{filteredData:f,checkedSummary:h,isIndeterminate:g,handleAllCheckedChange:p}=Soe(a,c,o),v=x(()=>!ca(c.query)&&ca(f.value)),m=x(()=>!ca(l.default()[0].children)),{checked:y,allChecked:b,query:w}=Nn(c);return t({query:w}),(_,S)=>(C(),$("div",{class:R(i(u).b("panel"))},[E("p",{class:R(i(u).be("panel","header"))},[Q(i(lo),{modelValue:i(b),"onUpdate:modelValue":S[0]||(S[0]=k=>Yt(b)?b.value=k:null),indeterminate:i(g),"validate-event":!1,onChange:i(p)},{default:ae(()=>[E("span",{class:R(i(u).be("panel","header-title"))},Se(e.title),3),E("span",{class:R(i(u).be("panel","header-count"))},Se(i(h)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(C(),ie(i(Dn),{key:0,modelValue:i(w),"onUpdate:modelValue":S[1]||(S[1]=k=>Yt(w)?w.value=k:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(Ey),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),ft(Q(i(Nh),{modelValue:i(y),"onUpdate:modelValue":S[2]||(S[2]=k=>Yt(y)?y.value=k:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ae(()=>[(C(!0),$(Ke,null,_t(i(f),k=>(C(),ie(i(lo),{key:k[i(d).key],class:R(i(u).be("panel","item")),value:k[i(d).key],disabled:k[i(d).disabled],"validate-event":!1},{default:ae(()=>{var T;return[Q(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[$t,!v.value&&!i(ca)(e.data)]]),ft(E("div",{class:R(i(u).be("panel","empty"))},[oe(_.$slots,"empty",{},()=>[St(Se(v.value?i(s)("el.transfer.noMatch"):i(s)("el.transfer.noData")),1)])],2),[[$t,v.value||i(ca)(e.data)]])],2),m.value?(C(),$("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(_.$slots,"default")],2)):re("v-if",!0)],2))}}),Yg=xoe;const koe={key:0},Eoe={key:0};var Toe=D({name:"ElTransfer",__name:"transfer",props:ls,emits:goe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),{t:r}=kt(),s=ve("transfer"),{formItem:u}=Bn(),c=Rt({leftChecked:[],rightChecked:[]}),d=Fu(a),{sourceData:f,targetData:h}=boe(a),{onSourceCheckedChange:g,onTargetCheckedChange:p}=yoe(c,o),{addToLeft:v,addToRight:m}=woe(a,c,o),y=V(),b=V(),w=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},_=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||r("el.transfer.titles.0")),k=x(()=>a.titles[1]||r("el.transfer.titles.1")),T=x(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));fe(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=u==null?void 0:u.validate)==null||A.call(u,"change").catch(O=>pt(O)))});const M=x(()=>A=>{var I;if(a.renderContent)return a.renderContent(Ye,A);const O=(((I=l.default)==null?void 0:I.call(l,{option:A}))||[]).filter(L=>L.type!==mn);return O.length?O:Ye("span",A[d.value.label]||A[d.value.key])});return t({clearQuery:w,leftPanel:y,rightPanel:b}),(A,O)=>(C(),$("div",{class:R(i(s).b())},[Q(Yg,{ref_key:"leftPanel",ref:y,data:i(f),"option-render":M.value,placeholder:T.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ae(()=>[oe(A.$slots,"left-empty")]),default:ae(()=>[oe(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:R(i(s).e("buttons"))},[Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",_.value)]),disabled:i(ca)(c.rightChecked),onClick:i(v)},{default:ae(()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1}),i(Et)(e.buttonTexts[0])?re("v-if",!0):(C(),$("span",koe,Se(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",_.value)]),disabled:i(ca)(c.leftChecked),onClick:i(m)},{default:ae(()=>[i(Et)(e.buttonTexts[1])?re("v-if",!0):(C(),$("span",Eoe,Se(e.buttonTexts[1]),1)),Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(Yg,{ref_key:"rightPanel",ref:b,data:i(h),"option-render":M.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(p)},{empty:ae(()=>[oe(A.$slots,"right-empty")]),default:ae(()=>[oe(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),Moe=Toe;const Ooe=it(Moe),uv="RootTree",$5="NodeInstance",Gg="TreeNodeMap",A5=_e({data:{type:J(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:J(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:J(Function)},allowDrop:{type:J(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ft}}),$oe={"check-change":(e,t,n)=>e&&Dt(t)&&Dt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},ys="$treeNodeId",Xg=function(e,t){!t||t[ys]||Object.defineProperty(t,ys,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},cv=(e,t)=>t==null?void 0:t[e||ys],U2=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},R5=e=>{let t=!0,n=!0,a=!0,o=!0;for(let l=0,r=e.length;l{n.canFocus=t,Y2(n.childNodes,t)})};let Aoe=0;var G2=class Bc{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Aoe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Mt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var l;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=mc(this,"isLeaf");Dt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),be(this.data)||Xg(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!gn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((l=this.parent)==null?void 0:l.expanded)===!0)&&(this.canFocus=!0)}setData(t){be(t)||Xg(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&be(this.data)?n=this.data:n=mc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Bc)){if(!a){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(Et(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Rt(new Bc(t)),t instanceof Bc&&t.initialize()}t.level=this.level+1,Et(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),Y2(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{be(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||bi(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,Y2(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const s=this.childNodes;for(let f=0,h=s.length;f{r(),bi(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||a||bi(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),Et(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),a={},o=[];t.forEach((l,r)=>{const s=l[ys];s&&n.some(u=>(u==null?void 0:u[ys])===s)?a[s]={index:r,data:l}:o.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{a[l==null?void 0:l[ys]]||this.removeChildByData(l)}),o.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||bi(this)}},Roe=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Mt(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new G2({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},It)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[r,s]of l.entries())s.visible=!!(t!=null&&t.call(s,e,s.data,s)),r%80===0&&r>0&&await Le(),await a(s);if(!o.visible&&l.length){let r=!0;r=!l.some(s=>s.visible),o.root?o.root.visible=r===!1:o.visible=r===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof G2)return e;const t=lt(e)?cv(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertBefore({data:e},n)}insertAfter(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=ya(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!gn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;gn(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf)&&n.push(l.data),a(l)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Mt(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const l=a[o];this.remove(l.data)}for(let o=0,l=t.length;os.level-u.level),o=Object.create(null),l=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));const r=s=>{s.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&r(u)})};for(let s=0,u=a.length;s{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),h.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var o;const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(e,t=!0){var a;if(this.currentNodeKey=e,ya(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}};function N5(e){const t=Pe(Gg,null);let n={treeNodeExpand:a=>{var o;e.node!==a&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Lt(()=>{t&&t.children.delete(n),n=null}),wt(Gg,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const P5=Symbol("dragEvents");function Noe({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=ve("tree"),r=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return wt(P5,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(Fe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,g=r.value.dropNode;g&&g.node.id!==h.node.id&&aa(g.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,m=!0,y=!0,b=!0;Fe(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),b=m=e.allowDrop(p.node,h.node,"inner"),y=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",p.node,g.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||m||y?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(y=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(m=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,m=!1,y=!1);const w=h.$el,_=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const M=v?m?.25:y?.45:1:Number.NEGATIVE_INFINITY,A=y?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const I=d.clientY-_.top;I<_.height*M?T="before":I>_.height*A?T="after":m?T="inner":T="none";const L=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),z=a.value;T==="before"?O=L.top-S.top+k:T==="after"&&(O=L.bottom-S.top+k),z.style.top=`${O}px`,z.style.left=`${L.right-S.left}px`,T==="inner"?Ba(w,l.is("drop-inner")):aa(w,l.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||b,r.value.dropType=T,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:f,dropType:h,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f!=null&&f.node.data&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?(p=g.node.parent)==null||p.insertBefore(m,g.node):h==="after"?(v=g.node.parent)==null||v.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(o.value.registerNode(m),o.value.key&&f.node.eachNode(y=>{var b;(b=o.value.nodesMap[y.data[o.value.key]])==null||b.setChecked(y.checked,!o.value.checkStrictly)})),aa(g.$el,l.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,d),h!=="none"&&t.emit("node-drop",f.node,g.node,h,d)}f&&!g&&t.emit("node-drag-end",f.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var Poe=D({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ve("tree"),n=Pe($5),a=Pe(uv);return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(Ye,{_self:n,node:o,data:l,store:r}):oe(a.ctx.slots,"default",{node:o,data:l},()=>[Ye(iv,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),Ioe=Poe,Loe=D({name:"ElTreeNode",components:{ElCollapseTransition:gf,ElCheckbox:lo,NodeContent:Ioe,ElIcon:De,Loading:no},props:{node:{type:G2,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ve("tree"),{broadcastExpanded:a}=N5(e),o=Pe(uv),l=V(!1),r=V(!1),s=V(),u=V(),c=V(),d=Pe(P5),f=vt();wt($5,f),o||pt("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const h=o.props.props.children||"children";fe(()=>{var O;const A=(O=e.node.data)==null?void 0:O[h];return A&&[...A]},()=>{e.node.updateChildren()}),fe(()=>e.node.indeterminate,A=>{v(e.node.checked,A)}),fe(()=>e.node.checked,A=>{v(A,e.node.indeterminate)}),fe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),fe(()=>e.node.expanded,A=>{Le(()=>l.value=A),A&&(r.value=!0)});const g=A=>o.props.nodeKey?cv(o.props.nodeKey,A.data):A.id,p=A=>{const O=e.props.class;if(!O)return{};let I;if(Fe(O)){const{data:L}=A;I=O(L,A)}else I=O;return Be(I)?{[I]:!0}:I},v=(A,O)=>{(s.value!==A||u.value!==O)&&o.ctx.emit("check-change",e.node.data,A,O),s.value=A,u.value=O},m=A=>{U2(o.store,o.ctx.emit,()=>{var O;if((O=o==null?void 0:o.props)!=null&&O.nodeKey){const I=g(e.node);o.store.value.setCurrentNodeKey(I)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,A)},y=A=>{var O;(O=o.instance.vnode.props)!=null&&O.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),o.ctx.emit("node-contextmenu",A,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=A=>{const O=o==null?void 0:o.props.checkStrictly,I=e.node.childNodes;!O&&I.length&&(A=I.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(A,!O),Le(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:l,childNodeRendered:r,oldChecked:s,oldIndeterminate:u,getNodeKey:g,getNodeClass:p,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,O,I)=>{a(O),o.ctx.emit("node-expand",A,O,I)},handleDragStart:A=>{o.props.draggable&&d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:c.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{o.props.draggable&&d.treeNodeDragEnd(A)},CaretRight:ph}}});const Voe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Boe=["aria-expanded"];function zoe(e,t,n,a,o,l){const r=Ot("el-icon"),s=Ot("el-checkbox"),u=Ot("loading"),c=Ot("node-content"),d=Ot("el-tree-node"),f=Ot("el-collapse-transition");return ft((C(),$("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Je((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=Je((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=Je((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=Je((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=Je((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[E("div",{class:R(e.ns.be("node","content")),style:qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(C(),ie(r,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Je(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(C(),ie(dt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(C(),ie(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Je(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(C(),ie(r,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[Q(u)]),_:1},8,["class"])):re("v-if",!0),Q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?ft((C(),$("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Je(()=>{},["stop"]))},[(C(!0),$(Ke,null,_t(e.node.childNodes,h=>(C(),ie(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Boe)),[[$t,e.expanded]]):re("v-if",!0)]),_:1})],42,Voe)),[[$t,e.node.visible]])}var Doe=En(Loe,[["render",zoe]]);function Hoe({el$:e},t){const n=ve("tree");gt(()=>{l()}),so(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(r,s){var c,d;const u=t.value.getNode(r[s].dataset.key);return u.canFocus&&u.visible&&(((c=u.parent)==null?void 0:c.expanded)||((d=u.parent)==null?void 0:d.level)===0)}Vt(e,"keydown",r=>{const s=r.target;if(!s.className.includes(n.b("node")))return;const u=Kt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(s);let f;if([Ce.up,Ce.down].includes(u)){if(r.preventDefault(),u===Ce.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Ce.left,Ce.right].includes(u)&&(r.preventDefault(),s.click());const h=s.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var u;if(!e.value)return;const r=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const s=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(s.length){s[0].setAttribute("tabindex","0");return}(u=r[0])==null||u.setAttribute("tabindex","0")}}var Foe=D({name:"ElTree",components:{ElTreeNode:Doe},props:A5,emits:$oe,setup(e,t){const{t:n}=kt(),a=ve("tree"),o=V(new Roe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=V(o.value.root),r=V(null),s=V(null),u=V(null),{broadcastExpanded:c}=N5(e),{dragState:d}=Noe({props:e,ctx:t,el$:s,dropIndicator$:u,store:o});Hoe({el$:s},o);const f=vt(),h=x(()=>{let K=f==null?void 0:f.parent;for(;K;){if(K.type.name==="ElTreeSelect")return!0;K=K.parent}return!1}),g=x(()=>{const{childNodes:K}=l.value;return(!K||K.length===0||K.every(({visible:W})=>!W))&&!h.value});fe(()=>e.currentNodeKey,K=>{o.value.setCurrentNodeKey(K??null)}),fe(()=>e.defaultCheckedKeys,(K,W)=>{an(K,W)||o.value.setDefaultCheckedKey(K??[])}),fe(()=>e.defaultExpandedKeys,K=>{o.value.setDefaultExpandedKeys(K??[])}),fe(()=>e.data,K=>{o.value.setData(K)},{deep:!0}),fe(()=>e.checkStrictly,K=>{o.value.checkStrictly=K});const p=K=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(K)},v=K=>e.nodeKey?cv(e.nodeKey,K.data):K.id,m=K=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${K}`)},y=K=>{m("getNodePath");const W=o.value.getNode(K);if(!W)return[];const j=[W.data];let G=W.parent;for(;G&&G!==l.value;)j.push(G.data),G=G.parent;return j.reverse()},b=(K,W)=>o.value.getCheckedNodes(K,W),w=K=>o.value.getCheckedKeys(K),_=()=>{const K=o.value.getCurrentNode();return K?K.data:null},S=()=>{m("getCurrentKey");const K=_();return K?K[e.nodeKey]:null},k=(K,W)=>{m("setCheckedNodes"),o.value.setCheckedNodes(K,W)},T=(K,W)=>{m("setCheckedKeys"),o.value.setCheckedKeys(K,W)},M=(K,W,j)=>{o.value.setChecked(K,W,j)},A=()=>o.value.getHalfCheckedNodes(),O=()=>o.value.getHalfCheckedKeys(),I=(K,W=!0)=>{m("setCurrentNode"),U2(o,t.emit,()=>{c(K),o.value.setUserCurrentNode(K,W)})},L=(K=null,W=!0)=>{m("setCurrentKey"),U2(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(K,W)})},z=K=>o.value.getNode(K),q=K=>{o.value.remove(K)},U=(K,W)=>{o.value.append(K,W)},F=(K,W)=>{o.value.insertBefore(K,W)},N=(K,W)=>{o.value.insertAfter(K,W)},P=(K,W,j)=>{c(W),t.emit("node-expand",K,W,j)},B=(K,W)=>{m("updateKeyChildren"),o.value.updateChildren(K,W)};return wt(uv,{ctx:t,props:e,store:o,root:l,currentNode:r,instance:f}),wt(Do,void 0),{ns:a,store:o,root:l,currentNode:r,dragState:d,el$:s,dropIndicator$:u,isEmpty:g,filter:p,getNodeKey:v,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:_,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:T,setChecked:M,getHalfCheckedNodes:A,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:L,t:n,getNode:z,remove:q,append:U,insertBefore:F,insertAfter:N,handleNodeExpand:P,updateKeyChildren:B}}});function Koe(e,t,n,a,o,l){const r=Ot("el-tree-node");return C(),$("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(C(!0),$(Ke,null,_t(e.root.childNodes,s=>(C(),ie(r,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(C(),$("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[E("span",{class:R(e.ns.e("empty-text"))},Se(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),ft(E("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[$t,e.dragState.showDropIndicator]])],2)}var Woe=En(Foe,[["render",Koe]]);const dv=it(Woe),joe=(e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=ve("tree-select");fe(()=>e.data,()=>{e.filterable&&Le(()=>{var u,c;(c=o.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var d,f;const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))s([c.childNodes.at(-1)]);else{(f=(d=o.value.el$)==null?void 0:d.querySelector(`[data-key="${u.at(-1).key}"]`))==null||f.focus({preventScroll:!0});return}};return gt(()=>{Vt(()=>{var u;return(u=a.value)==null?void 0:u.$el},"keydown",async u=>{const c=Kt(u),{dropdownMenuVisible:d}=a.value;[Ce.down,Ce.up].includes(c)&&d&&(await Le(),setTimeout(()=>{var f,h,g;if(Ce.up===c){const p=o.value.store.root.childNodes;s(p);return}(g=(h=(f=a.value.optionsArray[a.value.states.hoveringIndex].$el)==null?void 0:f.parentNode)==null?void 0:h.parentNode)==null||g.focus({preventScroll:!0})}))},{capture:!0})}),{...ul(Nn(e),Object.keys(Yl.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":u=>n(ot,u),valueKey:l,popperClass:x(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}}},qoe=D({extends:fd,setup(e,t){const n=fd.setup(e,t);delete n.selectOptionClick;const a=vt().proxy;return Le(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),fe(()=>t.attrs.visible,o=>{Le(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function X2(e){return e||e===0}function fv(e){return be(e)&&e.length}function es(e){return be(e)?e:X2(e)?[e]:[]}function zc(e,t,n,a,o){for(let l=0;l{fe([()=>e.modelValue,l],()=>{e.showCheckbox&&Le(()=>{const p=l.value;p&&!an(p.getCheckedKeys(),es(e.modelValue))&&p.setCheckedKeys(es(e.modelValue))})},{immediate:!0,deep:!0});const s=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,v)=>{var y;const m=s.value[p];return Fe(m)?m(v,(y=l.value)==null?void 0:y.getNode(u("value",v))):v[m]},c=es(e.modelValue).map(p=>zc(e.data||[],v=>u("value",v)===p,v=>u("children",v),(v,m,y,b)=>b&&u("value",b))).filter(p=>X2(p)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return Dc(e.data.concat(e.cacheData),v=>{const m=u("value",v);p.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),p}),f=()=>{var p;return(p=l.value)==null?void 0:p.getCheckedKeys().filter(v=>{var y;const m=(y=l.value)==null?void 0:y.getNode(v);return!gn(m)&&ca(m.childNodes)})},h=p=>{an(e.modelValue,p)||a(bt,p)};function g(p){a(ot,p),h(p)}return{...ul(Nn(e),Object.keys(dv.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:v,data:m,store:y})=>p(qoe,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:m,store:y}):n.default?()=>n.default({node:v,data:m,store:y}):void 0),filterNodeMethod:(p,v,m)=>e.filterNodeMethod?e.filterNodeMethod(p,v,m):p?new RegExp(Yp(p),"i").test(u("label",v)||""):!0,onNodeClick:(p,v,m)=>{var y,b,w;if((y=t.onNodeClick)==null||y.call(t,p,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",p)){const _=(b=o.value)==null?void 0:b.states.options.get(u("value",p));(w=o.value)==null||w.handleOptionSelect(_)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,v)=>{var S;if(!e.showCheckbox)return;const m=u("value",p),y={};Dc([l.value.store.root],k=>y[k.key]=k,k=>k.childNodes);const b=v.checkedKeys,w=e.multiple?es(e.modelValue).filter(k=>!(k in y)&&!b.includes(k)):[],_=w.concat(b);if(e.checkStrictly)g(e.multiple?_:_.includes(m)?m:void 0);else if(e.multiple){const k=f();g(w.concat(k))}else{const k=zc([p],A=>!fv(u("children",A))&&!u("disabled",A),A=>u("children",A)),T=k?u("value",k):void 0,M=X2(e.modelValue)&&!!zc([p],A=>u("value",A)===e.modelValue,A=>u("children",A));g(T===e.modelValue||M?void 0:T)}Le(()=>{var T;const k=es(e.modelValue);l.value.setCheckedKeys(k),(T=t.onCheck)==null||T.call(t,p,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(S=o.value)==null||S.focus()},onNodeExpand:(p,v,m)=>{var y;(y=t.onNodeExpand)==null||y.call(t,p,v,m),Le(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=l.value.getCheckedKeys();Dc([l.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const _=es(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(_.concat(S))}})},cacheOptions:d}};var Yoe=D({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Pe(Bu);return fe(()=>e.data,()=>{var a;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const n=((a=t.selectRef)==null?void 0:a.querySelectorAll("input"))||[];At&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),Goe=D({name:"ElTreeSelect",inheritAttrs:!1,props:{...bb,...A5,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:l}=t,r={...l,onChange:void 0},s=V(),u=V(),c=x(()=>e.nodeKey||e.valueKey||"value"),d=joe(e,{attrs:l,emit:o},{select:s,tree:u,key:c}),{cacheOptions:f,...h}=Uoe(e,{attrs:r,slots:n,emit:o},{select:s,tree:u,key:c}),g=Rt({});return a(g),gt(()=>{Object.assign(g,{...ul(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ul(s.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:s.value})}),()=>Ye(Yl,Rt({...d,ref:p=>s.value=p}),{...n,default:()=>[Ye(Yoe,{data:f.value}),Ye(dv,Rt({...h,ref:p=>u.value=p}))]})}}),Xoe=Goe;const Joe=it(Xoe),pv=Symbol(),Zoe={key:-1,level:-1,data:{}};let tl=function(e){return e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e}({}),Jg=function(e){return e.ADD="add",e.DELETE="delete",e}({});const I5={type:Number,default:26},Qoe=_e({data:{type:J(Array),default:()=>on([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:J(Object),default:()=>on({children:tl.CHILDREN,label:tl.LABEL,disabled:tl.DISABLED,value:tl.KEY,class:tl.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:J(Array),default:()=>on([])},checkStrictly:Boolean,defaultExpandedKeys:{type:J(Array),default:()=>on([])},indent:{type:Number,default:16},itemSize:I5,icon:{type:Ft},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:J([String,Number])},accordion:Boolean,filterMethod:{type:J(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),ele=_e({node:{type:J(Object),default:()=>on(Zoe)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:I5}),tle=_e({node:{type:J(Object),required:!0}}),L5="node-click",V5="node-drop",B5="node-expand",z5="node-collapse",D5="current-change",H5="check",F5="check-change",K5="node-contextmenu",nle={[L5]:(e,t,n)=>e&&t&&n,[V5]:(e,t,n)=>e&&t&&n,[B5]:(e,t)=>e&&t,[z5]:(e,t)=>e&&t,[D5]:(e,t)=>e&&t,[H5]:(e,t)=>e&&t,[F5]:(e,t)=>e&&Dt(t),[K5]:(e,t,n)=>e&&t&&n},ale={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Dt(t)};function ole(e,t){const n=V(new Set),a=V(new Set),{emit:o}=vt();fe([()=>t.value,()=>e.defaultCheckedKeys],()=>Le(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:_}=t.value,S=n.value,k=new Set;for(let T=_;T>=1;--T){const M=w.get(T);M&&M.forEach(A=>{const O=A.children;let I=!A.isLeaf||A.disabled||S.has(A.key);if(O){let L=!0,z=!1;for(const q of O){const U=q.key;if(q.isEffectivelyChecked||(I=!1),S.has(U))z=!0;else if(k.has(U)){L=!1,z=!0;break}else L=!1}L?S.add(A.key):z?(k.add(A.key),S.delete(A.key)):(S.delete(A.key),k.delete(A.key))}A.isEffectivelyChecked=I})}a.value=k},r=w=>n.value.has(w.key),s=w=>a.value.has(w.key),u=(w,_,S=!0,k=!0)=>{const T=n.value,M=w.children;!e.checkStrictly&&S&&(M!=null&&M.length)&&(_=M.some(O=>!O.isEffectivelyChecked));const A=(O,I)=>{T[I?Jg.ADD:Jg.DELETE](O.key);const L=O.children;!e.checkStrictly&&L&&L.forEach(z=>{(!z.disabled||z.children)&&A(z,I)})};A(w,_),k&&l(),S&&c(w,_)},c=(w,_)=>{const{checkedNodes:S,checkedKeys:k}=p(),{halfCheckedNodes:T,halfCheckedKeys:M}=v();o(H5,w.data,{checkedKeys:k,checkedNodes:S,halfCheckedKeys:M,halfCheckedNodes:T}),o(F5,w.data,_)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function p(w=!1){const _=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const M=k.get(T);M&&(!w||w&&M.isLeaf)&&(S.push(T),_.push(M.data))})}return{checkedKeys:S,checkedNodes:_}}function v(){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(k=>{const T=S.get(k);T&&(_.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:_}}function m(w){n.value.clear(),a.value.clear(),Le(()=>{b(w)})}function y(w,_){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,_,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(w==null?void 0:w.length)>0){for(const S of w){const k=_.get(S);k&&!r(k)&&u(k,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:y,setCheckedKeys:m}}function lle(e,t){const n=V(new Set([])),a=V(new Set([])),o=x(()=>Fe(e.filterMethod));function l(s){var v;if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],h=((v=t.value)==null?void 0:v.treeNodes)||[],g=e.filterMethod;d.clear();function p(m){m.forEach(y=>{f.push(y),g!=null&&g(s,y.data,y)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(y.expanded=!1,y.isLeaf&&d.add(y.key));const b=y.children;if(b&&p(b),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(b){let w=!0;for(const _ of b)if(!d.has(_.key)){w=!1;break}w?c.add(y.key):c.delete(y.key)}}f.pop()})}return p(h),u}function r(s){return a.value.has(s.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function rle(e,t){const n=V(new Set),a=V(),o=qt(),l=V(),{isIndeterminate:r,isChecked:s,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p}=ole(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=lle(e,o),b=x(()=>{var X;return((X=e.props)==null?void 0:X.value)||tl.KEY}),w=x(()=>{var X;return((X=e.props)==null?void 0:X.children)||tl.CHILDREN}),_=x(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||tl.DISABLED}),S=x(()=>{var X;return((X=e.props)==null?void 0:X.label)||tl.LABEL}),k=x(()=>{var ge;const X=n.value,H=m.value,Z=[],le=((ge=o.value)==null?void 0:ge.treeNodes)||[],ce=[];for(let me=le.length-1;me>=0;--me)ce.push(le[me]);for(;ce.length;){const me=ce.pop();if(!H.has(me.key)&&(Z.push(me),me.children&&X.has(me.key)))for(let Ae=me.children.length-1;Ae>=0;--Ae)ce.push(me.children[Ae])}return Z}),T=x(()=>k.value.length>0);function M(X){const H=new Map,Z=new Map;let le=1;function ce(me,Ae=1,Ne=void 0){var ye;const Re=[];for(const Ee of me){const we=I(Ee),Ie={level:Ae,key:we,data:Ee};Ie.label=z(Ee),Ie.parent=Ne;const ze=O(Ee);Ie.disabled=L(Ee),Ie.isLeaf=!ze||ze.length===0,Ie.expanded=n.value.has(we),ze&&ze.length&&(Ie.children=ce(ze,Ae+1,Ie)),Re.push(Ie),H.set(we,Ie),Z.has(Ae)||Z.set(Ae,[]),(ye=Z.get(Ae))==null||ye.push(Ie)}return Ae>le&&(le=Ae),Re}const ge=ce(X);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:le,treeNodes:ge}}function A(X){const H=v(X);H&&(n.value=H)}function O(X){return X[w.value]}function I(X){return X?X[b.value]:""}function L(X){return X[_.value]}function z(X){return X[S.value]}function q(X){n.value.has(X.key)?W(X):K(X)}function U(X){const H=new Set,Z=o.value.treeNodeMap;n.value.forEach(le=>{const ce=Z.get(le);ce&&(ce.expanded=!1)}),X.forEach(le=>{let ce=Z.get(le);for(;ce&&!H.has(ce.key);)H.add(ce.key),ce.expanded=!0,ce=ce.parent}),n.value=H}function F(X,H){t(L5,X.data,X,H),P(X),e.expandOnClickNode&&q(X),e.showCheckbox&&(e.checkOnClickNode||X.isLeaf&&e.checkOnClickLeaf)&&!X.disabled&&u(X,!s(X),!0)}function N(X,H){t(V5,X.data,X,H)}function P(X){G(X)||(a.value=X.key,t(D5,X.data,X))}function B(X,H){u(X,H)}function K(X){const H=n.value;if(o.value&&e.accordion){const{treeNodeMap:le}=o.value;H.forEach(ce=>{const ge=le.get(ce);X&&X.level===(ge==null?void 0:ge.level)&&(H.delete(ce),ge.expanded=!1)})}H.add(X.key);const Z=de(X.key);Z&&(Z.expanded=!0,t(B5,Z.data,Z))}function W(X){n.value.delete(X.key);const H=de(X.key);H&&(H.expanded=!1,t(z5,H.data,H))}function j(X){return!!X.disabled}function G(X){const H=a.value;return H!==void 0&&H===X.key}function ee(){var X,H;if(a.value)return(H=(X=o.value)==null?void 0:X.treeNodeMap.get(a.value))==null?void 0:H.data}function te(){return a.value}function ue(X){a.value=X}function ne(X){o.value=M(X)}function de(X){var Z;const H=lt(X)?I(X):X;return(Z=o.value)==null?void 0:Z.treeNodeMap.get(H)}function se(X,H="auto"){const Z=de(X);Z&&l.value&&l.value.scrollToItem(k.value.indexOf(Z),H)}function Y(X){var H;(H=l.value)==null||H.scrollTo(X)}return fe(()=>e.currentNodeKey,X=>{a.value=X},{immediate:!0}),fe(()=>e.defaultExpandedKeys,X=>{U(X||[])}),fe(()=>e.data,X=>{ne(X),U(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:T,listRef:l,getKey:I,getChildren:O,toggleExpand:q,toggleCheckbox:u,isChecked:s,isIndeterminate:r,isDisabled:j,isCurrent:G,isForceHiddenExpandIcon:y,handleNodeClick:F,handleNodeDrop:N,handleNodeCheck:B,getCurrentNode:ee,getCurrentKey:te,setCurrentKey:ue,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p,filter:A,setData:ne,getNode:de,expandNode:K,collapseNode:W,setExpandedKeys:U,scrollToNode:se,scrollTo:Y}}var sle=D({name:"ElTreeNodeContent",props:tle,setup(e){const t=Pe(pv),n=ve("tree");return()=>{const a=e.node,{data:o}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):Ye(iv,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const ile=["aria-expanded","aria-disabled","aria-checked","data-key"];var ule=D({name:"ElTreeNode",__name:"tree-node",props:ele,emits:ale,setup(e,{emit:t}){const n=e,a=t,o=Pe(pv),l=ve("tree"),r=x(()=>(o==null?void 0:o.props.indent)??16),s=x(()=>(o==null?void 0:o.props.icon)??ph),u=p=>{var y;const v=(y=o==null?void 0:o.props.props)==null?void 0:y.class;if(!v)return{};let m;if(Fe(v)){const{data:b}=p;m=v(b,p)}else m=v;return Be(m)?{[m]:!0}:m},c=p=>{a("click",n.node,p)},d=p=>{a("drop",n.node,p)},f=()=>{a("toggle",n.node)},h=p=>{a("check",n.node,p)},g=p=>{var v,m,y,b;(y=(m=(v=o==null?void 0:o.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),o==null||o.ctx.emit(K5,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var m,y,b;return C(),$("div",{ref:"node$",class:R([i(l).b("node"),i(l).is("expanded",e.expanded),i(l).is("current",e.current),i(l).is("focusable",!e.disabled),i(l).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(m=e.node)==null?void 0:m.key,onClick:Je(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Je(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Je(()=>{},["prevent"])),onDrop:Je(d,["stop"])},[E("div",{class:R(i(l).be("node","content")),style:qe({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[s.value?(C(),ie(i(De),{key:0,class:R([i(l).is("leaf",!!((y=e.node)!=null&&y.isLeaf)),i(l).is("hidden",e.hiddenExpandIcon),{expanded:!((b=e.node)!=null&&b.isLeaf)&&e.expanded},i(l).be("node","expand-icon")]),onClick:Je(f,["stop"])},{default:ae(()=>[(C(),ie(dt(s.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(C(),ie(i(lo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:v[0]||(v[0]=Je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),Q(i(sle),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,ile)}}}),cle=ule,dle=D({name:"ElTreeV2",__name:"tree",props:Qoe,emits:nle,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=x(()=>a.itemSize);wt(pv,{ctx:{emit:o,slots:l},props:a,instance:vt()}),wt(Do,void 0);const{t:s}=kt(),u=ve("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:g,isChecked:p,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:w,handleNodeCheck:_,toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:K,scrollToNode:W,scrollTo:j}=rle(a,o);return t({toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:K,scrollToNode:W,scrollTo:j}),(G,ee)=>(C(),$("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(C(),ie(i(qw),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(({data:te,index:ue,style:ne})=>[(C(),ie(cle,{key:te[ue].key,style:qe(ne),node:te[ue],expanded:te[ue].expanded,"show-checkbox":e.showCheckbox,checked:i(p)(te[ue]),indeterminate:i(g)(te[ue]),"item-size":r.value,disabled:i(v)(te[ue]),current:i(m)(te[ue]),"hidden-expand-icon":i(y)(te[ue]),onClick:i(b),onToggle:i(h),onCheck:i(_),onDrop:i(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(C(),$("div",{key:1,class:R(i(u).e("empty-block"))},[oe(G.$slots,"empty",{},()=>[E("span",{class:R(i(u).e("empty-text"))},Se(e.emptyText??i(s)("el.tree.emptyText")),3)])],2))],2))}}),fle=dle;const ple=it(fle),hle="ElUpload";var vle=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function Zg(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new vle(a,n.status,t.method,e)}function mle(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const gle=e=>{typeof XMLHttpRequest>"u"&&en(hle,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))be(r)?r.length===2&&r[0]instanceof Blob&&Be(r[1])?a.append(l,r[0],r[1]):r.forEach(s=>{a.append(l,s)}):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Zg(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Zg(n,e,t));e.onSuccess(mle(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(o))gn(r)||t.setRequestHeader(l,String(r));return t.send(a),t},W5=["text","picture","picture-card"];let yle=1;const J2=()=>Date.now()+yle++,j5=_e({action:{type:String,default:"#"},headers:{type:J(Object)},method:{type:String,default:"post"},data:{type:J([Object,Function,Promise]),default:()=>on({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:J(Array),default:()=>on([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:W5,default:"text"},httpRequest:{type:J(Function),default:gle},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),ble=_e({...j5,beforeUpload:{type:J(Function),default:It},beforeRemove:{type:J(Function)},onRemove:{type:J(Function),default:It},onChange:{type:J(Function),default:It},onPreview:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It},crossorigin:{type:J(String)}}),q5=Symbol("uploadContextKey"),wle=_e({files:{type:J(Array),default:()=>on([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:J(Function),default:It},listType:{type:String,values:W5,default:"text"},crossorigin:{type:J(String)}}),Cle={remove:e=>!!e},_le=_e({...j5,beforeUpload:{type:J(Function),default:It},onRemove:{type:J(Function),default:It},onStart:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It}}),Sle=_e({disabled:{type:Boolean,default:void 0},directory:Boolean}),xle={file:e=>be(e)},kle=["tabindex","aria-disabled","onKeydown"],Ele=["src","crossorigin"],Tle=["onClick"],Mle=["title"],Ole=["onClick"],$le=["onClick"];var Ale=D({name:"ElUploadList",__name:"upload-list",props:wle,emits:Cle,setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("upload"),r=ve("icon"),s=ve("list"),u=rn(),c=V(!1),d=x(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{a("remove",h)};return(h,g)=>(C(),ie(i6,{tag:"ul",class:R(d.value),name:i(s).b()},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.files,(p,v)=>(C(),$("li",{key:p.uid||p.name,class:R([i(l).be("list","item"),i(l).is(p.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:nn(m=>!i(u)&&f(p),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(h.$slots,"default",{file:p,index:v},()=>[e.listType==="picture"||p.status!=="uploading"&&e.listType==="picture-card"?(C(),$("img",{key:0,class:R(i(l).be("list","item-thumbnail")),src:p.url,crossorigin:e.crossorigin,alt:""},null,10,Ele)):re("v-if",!0),p.status==="uploading"||e.listType!=="picture-card"?(C(),$("div",{key:1,class:R(i(l).be("list","item-info"))},[E("a",{class:R(i(l).be("list","item-name")),onClick:Je(m=>e.handlePreview(p),["prevent"])},[Q(i(De),{class:R(i(r).m("document"))},{default:ae(()=>[Q(i(my))]),_:1},8,["class"]),E("span",{class:R(i(l).be("list","item-file-name")),title:p.name},Se(p.name),11,Mle)],10,Tle),p.status==="uploading"?(C(),ie(i(Iw),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:qe(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),E("label",{class:R(i(l).be("list","item-status-label"))},[e.listType==="text"?(C(),ie(i(De),{key:0,class:R([i(r).m("upload-success"),i(r).m("circle-check")])},{default:ae(()=>[Q(i(df))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(C(),ie(i(De),{key:1,class:R([i(r).m("upload-success"),i(r).m("check")])},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(C(),ie(i(De),{key:2,class:R(i(r).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(p),onKeydown:nn(Je(m=>f(p),["prevent"]),["enter","space"])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(C(),$("i",{key:3,class:R(i(r).m("close-tip"))},Se(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(C(),$("span",{key:4,class:R(i(l).be("list","item-actions"))},[E("span",{class:R(i(l).be("list","item-preview")),onClick:m=>e.handlePreview(p)},[Q(i(De),{class:R(i(r).m("zoom-in"))},{default:ae(()=>[Q(i(gh))]),_:1},8,["class"])],10,Ole),i(u)?re("v-if",!0):(C(),$("span",{key:0,class:R(i(l).be("list","item-delete")),onClick:m=>f(p)},[Q(i(De),{class:R(i(r).m("delete"))},{default:ae(()=>[Q(i(vy))]),_:1},8,["class"])],10,$le))],2)):re("v-if",!0)])],42,kle))),128)),oe(h.$slots,"append")]),_:3},8,["class","name"]))}}),Qg=Ale;const e4="ElUploadDrag";var Rle=D({name:e4,__name:"upload-dragger",props:Sle,emits:xle,setup(e,{emit:t}){const n=e,a=t;Pe(q5)||en(e4,"usage: ");const o=ve("upload"),l=V(!1),r=rn(),s=h=>new Promise((g,p)=>h.file(g,p)),u=async h=>{try{if(h.isFile){const g=await s(h);return g.isDirectory=!1,[g]}if(h.isDirectory){const g=h.createReader(),p=()=>new Promise((b,w)=>g.readEntries(b,w)),v=[];let m=await p();for(;m.length>0;)v.push(...m),m=await p();const y=v.map(b=>u(b).catch(()=>[]));return nd(await Promise.all(y))}}catch{return[]}return[]},c=async h=>{if(r.value)return;l.value=!1,h.stopPropagation();const g=Array.from(h.dataTransfer.files),p=h.dataTransfer.items||[];if(n.directory){const v=Array.from(p).map(m=>{var y;return(y=m==null?void 0:m.webkitGetAsEntry)==null?void 0:y.call(m)}).filter(m=>m);a("file",nd(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{var b,w;const y=(w=(b=p[m])==null?void 0:b.webkitGetAsEntry)==null?void 0:w.call(b);y&&(v.isDirectory=y.isDirectory)}),a("file",g)},d=()=>{r.value||(l.value=!0)},f=h=>{h.currentTarget.contains(h.relatedTarget)||(l.value=!1)};return(h,g)=>(C(),$("div",{class:R([i(o).b("dragger"),i(o).is("dragover",l.value)]),onDrop:Je(c,["prevent"]),onDragover:Je(d,["prevent"]),onDragleave:Je(f,["prevent"])},[oe(h.$slots,"default")],34))}}),Nle=Rle;const Ple=["tabindex","aria-disabled","onKeydown"],Ile=["name","disabled","multiple","accept","webkitdirectory"];var Lle=D({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:_le,setup(e,{expose:t}){const n=e,a=ve("upload"),o=rn(),l=qt({}),r=qt(),s=v=>{if(v.length===0)return;const{autoUpload:m,limit:y,fileList:b,multiple:w,onStart:_,onExceed:S}=n;if(y&&b.length+v.length>y){S(v,b);return}w||(v=v.slice(0,1));for(const k of v){const T=k;T.uid=J2(),_(T),m&&u(T)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let m,y={};try{const w=n.data,_=n.beforeUpload(v);y=Vi(n.data)?Eo(n.data):n.data,m=await _,Vi(n.data)&&an(w,y)&&(y=Eo(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let b=v;m instanceof Blob&&(m instanceof File?b=m:b=new File([m],v.name,{type:v.type})),d(Object.assign(b,{uid:v.uid}),y)},c=async(v,m)=>Fe(v)?v(m):v,d=async(v,m)=>{const{headers:y,data:b,method:w,withCredentials:_,name:S,action:k,onProgress:T,onSuccess:M,onError:A,httpRequest:O}=n;try{m=await c(m??b,v)}catch{n.onRemove(v);return}const{uid:I}=v,L={headers:y||{},withCredentials:_,file:v,data:m,method:w,filename:S,action:k,onProgress:q=>{T(q,v)},onSuccess:q=>{M(q,v),delete l.value[I]},onError:q=>{A(q,v),delete l.value[I]}},z=O(L);l.value[I]=z,z instanceof Promise&&z.then(L.onSuccess,L.onError)},f=v=>{const m=v.target.files;m&&s(Array.from(m))},h=()=>{o.value||(r.value.value="",r.value.click())},g=()=>{h()};return t({abort:v=>{_8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(v,m)=>(C(),$("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:h,onKeydown:nn(Je(g,["self"]),["enter","space"])},[e.drag?(C(),ie(Nle,{key:0,disabled:i(o),directory:e.directory,onFile:s},{default:ae(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:r,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Je(()=>{},["stop"]))},null,42,Ile)],42,Ple))}}),t4=Lle;const n4="ElUpload",a4=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Vle=(e,t)=>{const n=S6(e,"fileList",void 0,{passive:!0}),a=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=p=>{Le(()=>e.onChange(p,n.value))},u=(p,v)=>{const m=a(v);m&&(console.error(p),m.status="fail",r(m),e.onError(p,m,n.value),s(m))},c=(p,v)=>{const m=a(v);m&&(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},d=(p,v)=>{const m=a(v);m&&(m.status="success",m.response=p,e.onSuccess(p,m,n.value),s(m))},f=p=>{gn(p.uid)&&(p.uid=J2());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(m){pt(n4,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],s(v)},h=async p=>{const v=p instanceof File?a(p):p;v||en(n4,"file to be removed not found");const m=y=>{o(y),r(y),e.onRemove(y,n.value),a4(y)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return fe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:y}=v;if(!y&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,n.value)}return v}))}),fe(n,p=>{for(const v of p)v.uid||(v.uid=J2()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:g,revokeFileObjectURL:a4}};var Ble=D({name:"ElUpload",__name:"upload",props:ble,setup(e,{expose:t}){const n=e,a=rn(),o=qt(),{abort:l,submit:r,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:p}=Vle(n,o),v=x(()=>n.listType==="picture-card"),m=x(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return Lt(()=>{u.value.forEach(p)}),wt(q5,{accept:Bt(n,"accept")}),t({abort:l,submit:r,clearFiles:s,handleStart:c,handleRemove:f}),(y,b)=>(C(),$("div",null,[v.value&&e.showFileList?(C(),ie(Qg,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({append:ae(()=>[Q(t4,ht({ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:_})=>[oe(y.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(C(),ie(t4,ht({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),y.$slots.trigger?oe(y.$slots,"default",{key:2}):re("v-if",!0),oe(y.$slots,"tip"),!v.value&&e.showFileList?(C(),ie(Qg,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:_})=>[oe(y.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),zle=Ble;const Dle=it(zle),Hle=_e({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:J([String,Array]),default:"Element Plus"},font:{type:J(Object)},gap:{type:J(Array),default:()=>[100,100]},offset:{type:J(Array)}});function Fle(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Kle(e){return Object.keys(e).map(t=>`${Fle(t)}: ${e[t]};`).join(" ")}function Wle(){return window.devicePixelRatio||1}const jle=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},qle={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function S0(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function Ule(){function e(t,n,a,o,l,r,s,u,c){const[d,f,h,g]=S0(o,l,a);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,g);else{const{color:j,fontSize:G,fontStyle:ee,fontWeight:te,fontFamily:ue,textAlign:ne,textBaseline:de}=r,se=Number(G)*a;d.font=`${ee} normal ${te} ${se}px/${l}px ${ue}`,d.fillStyle=j,d.textAlign=ne,d.textBaseline=de;const Y=be(t)?t:[t];if(de!=="top"&&Y[0]){const X=d.measureText(Y[0]);d.textBaseline="top";const H=d.measureText(Y[0]);p=X.actualBoundingBoxAscent-H.actualBoundingBoxAscent}Y==null||Y.forEach((X,H)=>{const[Z,le]=qle[ne];d.fillText(X??"",h*Z+c*le,H*(se+r.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,l),[y,b,w]=S0(m,m,a);y.translate(w/2,w/2),y.rotate(v),h>0&&g>0&&y.drawImage(f,-h/2,-g/2);function _(j,G){return[j*Math.cos(v)-G*Math.sin(v),j*Math.sin(v)+G*Math.cos(v)]}let S=0,k=0,T=0,M=0;const A=h/2,O=g/2;[[0-A,0-O],[0+A,0-O],[0+A,0+O],[0-A,0+O]].forEach(([j,G])=>{const[ee,te]=_(j,G);S=Math.min(S,ee),k=Math.max(k,ee),T=Math.min(T,te),M=Math.max(M,te)});const I=S+w/2,L=T+w/2,z=k-S,q=M-T,U=s*a,F=u*a,N=(z+U)*2,P=q+F,[B,K]=S0(N,P);function W(j=0,G=0){B.drawImage(b,I,L,z,q,j,G+p,z,q)}return W(),W(z+U,-q/2-F/2),W(z+U,+q/2+F/2),[K.toDataURL(),N/a,P/a]}return e}var Yle=D({name:"ElWatermark",__name:"watermark",props:Hle,setup(e){const t={position:"relative"},n=e,a=x(()=>{var I;return((I=n.font)==null?void 0:I.fontGap)??3}),o=x(()=>{var I;return((I=n.font)==null?void 0:I.color)??"rgba(0,0,0,.15)"}),l=x(()=>{var I;return((I=n.font)==null?void 0:I.fontSize)??16}),r=x(()=>{var I;return((I=n.font)==null?void 0:I.fontWeight)??"normal"}),s=x(()=>{var I;return((I=n.font)==null?void 0:I.fontStyle)??"normal"}),u=x(()=>{var I;return((I=n.font)==null?void 0:I.fontFamily)??"sans-serif"}),c=x(()=>{var I;return((I=n.font)==null?void 0:I.textAlign)??"center"}),d=x(()=>{var I;return((I=n.font)==null?void 0:I.textBaseline)??"hanging"}),f=x(()=>n.gap[0]),h=x(()=>n.gap[1]),g=x(()=>f.value/2),p=x(()=>h.value/2),v=x(()=>{var I;return((I=n.offset)==null?void 0:I[0])??g.value}),m=x(()=>{var I;return((I=n.offset)==null?void 0:I[1])??p.value}),y=()=>{const I={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=v.value-g.value,z=m.value-p.value;return L>0&&(I.left=`${L}px`,I.width=`calc(100% - ${L}px)`,L=0),z>0&&(I.top=`${z}px`,I.height=`calc(100% - ${z}px)`,z=0),I.backgroundPosition=`${L}px ${z}px`,I},b=qt(null),w=qt(),_=V(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=(I,L)=>{var z;b.value&&w.value&&(_.value=!0,w.value.setAttribute("style",Kle({...y(),backgroundImage:`url('${I}')`,backgroundSize:`${Math.floor(L)}px`})),(z=b.value)==null||z.append(w.value),setTimeout(()=>{_.value=!1}))},T=I=>{let L=120,z=64,q=0;const{image:U,content:F,width:N,height:P,rotate:B}=n;if(!U&&I.measureText){I.font=`${Number(l.value)}px ${u.value}`;const K=be(F)?F:[F];let W=0,j=0;K.forEach(ee=>{const{width:te,fontBoundingBoxAscent:ue,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:de,actualBoundingBoxDescent:se}=I.measureText(ee),Y=Et(ue)?de+se:ue+ne;te>W&&(W=Math.ceil(te)),Y>j&&(j=Math.ceil(Y))}),L=W,z=j*K.length+(K.length-1)*a.value;const G=Math.PI/180*Number(B);q=Math.ceil(Math.abs(Math.sin(G)*z)/2),L+=q}return[N??L,P??z,q]},M=Ule(),A=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,z=n.content,q=n.rotate;if(I){w.value||(w.value=document.createElement("div"));const U=Wle(),[F,N,P]=T(I),B=K=>{const[W,j]=M(K||"",q,U,F,N,{color:o.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,P);k(W,j)};if(L){const K=new Image;K.onload=()=>{B(K)},K.onerror=()=>{B(z)},K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=L}else B(z)}};return gt(()=>{A()}),fe(()=>n,()=>{A()},{deep:!0,flush:"post"}),Lt(()=>{S()}),yu(b,I=>{_.value||I.forEach(L=>{jle(L,w.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(I,L)=>(C(),$("div",{ref_key:"containerRef",ref:b,style:qe([t])},[oe(I.$slots,"default")],4))}}),Gle=Yle;const Xle=it(Gle),Jle=["absolute","fixed"],Zle=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],hv=_e({placement:{type:J(String),values:Zle,default:"bottom"},reference:{type:J(Object),default:null},strategy:{type:J(String),values:Jle,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Qle={close:()=>!0},ere=_e({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ft},placement:hv.placement,contentStyle:{type:J([Object])},mask:{type:J([Boolean,Object]),default:!0},gap:{type:J(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:J([Boolean,Object]),default:()=>({block:"center"})},type:{type:J(String)},appendTo:{type:Eu.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),tre={[ot]:e=>Dt(e),"update:current":e=>He(e),close:e=>He(e),finish:()=>!0,change:e=>He(e)},nre=_e({target:{type:J([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ft},showArrow:{type:Boolean,default:void 0},placement:hv.placement,mask:{type:J([Boolean,Object]),default:void 0},contentStyle:{type:J([Object])},prevButtonProps:{type:J(Object)},nextButtonProps:{type:J(Object)},scrollIntoViewOptions:{type:J([Boolean,Object]),default:void 0},type:{type:J(String)}}),are={close:()=>!0},ore=(e,t,n,a,o)=>{const l=V(null),r=()=>{let d;return Be(e.value)?d=document.querySelector(e.value):Fe(e.value)?d=e.value():d=e.value,d},s=()=>{const d=r();if(!d||!t.value){l.value=null;return}lre(d)||d.scrollIntoView(o.value);const{left:f,top:h,width:g,height:p}=d.getBoundingClientRect();l.value={left:f,top:h,width:g,height:p,radius:0}};gt(()=>{fe([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Lt(()=>{window.removeEventListener("resize",s)});const u=d=>(be(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=x(()=>{var g;if(!l.value)return l.value;const d=u(0),f=u(1),h=((g=n.value)==null?void 0:g.radius)||2;return{left:l.value.left-d,top:l.value.top-f,width:l.value.width+d*2,height:l.value.height+f*2,radius:h}});return{mergedPosInfo:c,triggerTarget:x(()=>{const d=r();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var f,h,g,p;return window.DOMRect.fromRect({width:((f=c.value)==null?void 0:f.width)||0,height:((h=c.value)==null?void 0:h.height)||0,x:((g=c.value)==null?void 0:g.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}})}},_f=Symbol("ElTour");function lre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n}const rre=(e,t,n,a,o,l,r,s)=>{const u=V(),c=V(),d=V({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},h=x(()=>{const y=[$$(i(l)),R$(),A$(),sre()];return i(s)&&i(n)&&y.push(N$({element:i(n)})),y}),g=async()=>{if(!At)return;const y=i(e),b=i(t);if(!y||!b)return;const w=await P$(y,b,{placement:i(a),strategy:i(o),middleware:i(h)});Gi(f).forEach(_=>{f[_].value=w[_]})},p=x(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(r)};const{overflow:y}=i(d);return{position:i(o),zIndex:i(r),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),v=x(()=>{if(!i(s))return{};const{arrow:y}=i(d);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let m;return gt(()=>{const y=i(e),b=i(t);y&&b&&(m=M$(y,b,g)),da(()=>{g()})}),Lt(()=>{m&&m()}),{update:g,contentStyle:p,arrowStyle:v}},sre=()=>({name:"overflow",async fn(e){const t=await O$(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),ire=_e({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:J(Object)},targetAreaClickable:{type:Boolean,default:!0}}),ure={style:{width:"100%",height:"100%"}},cre=["d"];var dre=D({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:ire,setup(e){const t=e,{ns:n}=Pe(_f),a=x(()=>{var d;return((d=t.pos)==null?void 0:d.radius)??2}),o=x(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Ap(),s=x(()=>{const d=l.value,f=r.value,h=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=a.value;return t.pos?`${g} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:g}),u=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return af(Bt(t,"visible"),{ns:n}),(d,f)=>e.visible?(C(),$("div",ht({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(C(),$("svg",ure,[E("path",{class:R(i(n).e("hollow")),style:qe(c.value),d:s.value},null,14,cre)]))],16)):re("v-if",!0)}}),fre=dre;const pre=["data-side"];var hre=D({name:"ElTourContent",__name:"content",props:hv,emits:Qle,setup(e,{emit:t}){const n=e,a=t,o=V(n.placement),l=V(n.strategy),r=V(null),s=V(null);fe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=rre(Bt(n,"reference"),r,s,o,l,Bt(n,"offset"),Bt(n,"zIndex"),Bt(n,"showArrow")),d=x(()=>o.value.split("-")[0]),{ns:f}=Pe(_f),h=()=>{a("close")},g=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(C(),$("div",{ref_key:"contentRef",ref:r,style:qe(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[Q(i(Xs),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:g},{default:ae(()=>[oe(p.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(C(),$("span",{key:0,ref_key:"arrowRef",ref:s,style:qe(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,pre))}}),vre=hre,mre=D({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var u,c;const o=(u=t.default)==null?void 0:u.call(t),l=[];let r=0;function s(d){be(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(l.push(f),r+=1)})}return o.length&&s(Ta((c=o[0])==null?void 0:c.children)),a!==r&&(a=r,n("update-total",r)),l.length?l[e.current]:null}}}),gre=D({name:"ElTour",inheritAttrs:!1,__name:"tour",props:ere,emits:tre,setup(e,{emit:t}){const n=e,a=t,o=ve("tour"),l=V(0),r=V(),s=S6(n,"current",a,{passive:!0}),u=x(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=x(()=>[o.b(),y.value==="primary"?o.m("primary"):""]),d=x(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=x(()=>{var O;return((O=r.value)==null?void 0:O.contentStyle)??n.contentStyle}),h=x(()=>{var O;return((O=r.value)==null?void 0:O.mask)??n.mask}),g=x(()=>!!h.value&&n.modelValue),p=x(()=>Dt(h.value)?void 0:h.value),v=x(()=>{var O;return!!u.value&&(((O=r.value)==null?void 0:O.showArrow)??n.showArrow)}),m=x(()=>{var O;return((O=r.value)==null?void 0:O.scrollIntoViewOptions)??n.scrollIntoViewOptions}),y=x(()=>{var O;return((O=r.value)==null?void 0:O.type)??n.type}),{nextZIndex:b}=Ou(),w=b(),_=x(()=>n.zIndex??w),{mergedPosInfo:S,triggerTarget:k}=ore(u,Bt(n,"modelValue"),Bt(n,"gap"),h,m);fe(()=>n.modelValue,O=>{O||(s.value=0)});const T=()=>{n.closeOnPressEscape&&(a(ot,!1),a("close",s.value))},M=O=>{l.value=O},A=hn();return wt(_f,{currentStep:r,current:s,total:l,showClose:Bt(n,"showClose"),closeIcon:Bt(n,"closeIcon"),mergedType:y,ns:o,slots:A,updateModelValue(O){a(ot,O)},onClose(){a("close",s.value)},onFinish(){a("finish")},onChange(){a(bt,s.value)}}),(O,I)=>(C(),$(Ke,null,[Q(i(Ys),{to:e.appendTo},{default:ae(()=>{var L,z;return[E("div",ht({class:c.value},O.$attrs),[Q(fre,{visible:g.value,fill:(L=p.value)==null?void 0:L.color,style:qe((z=p.value)==null?void 0:z.style),pos:i(S),"z-index":_.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(C(),ie(vre,{key:i(s),reference:i(k),placement:d.value,"show-arrow":v.value,"z-index":_.value,style:qe(f.value),onClose:T},{default:ae(()=>[Q(i(mre),{current:i(s),onUpdateTotal:M},{default:ae(()=>[oe(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]}),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}}),yre=gre;const bre=["aria-label"];var wre=D({name:"ElTourStep",__name:"step",props:nre,emits:are,setup(e,{emit:t}){const n=e,a=t,{Close:o}=Ry,{t:l}=kt(),{currentStep:r,current:s,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:g,updateModelValue:p,onClose:v,onFinish:m,onChange:y}=Pe(_f);fe(n,O=>{r.value=O},{immediate:!0});const b=x(()=>n.showClose??c.value),w=x(()=>n.closeIcon??d.value??o),_=O=>{if(O)return Su(O,["children","onClick"])},S=()=>{var O,I;s.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((I=n.prevButtonProps)==null||I.onClick()),y()},k=()=>{var O;s.value>=u.value-1?T():s.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),y()},T=()=>{M(),m()},M=()=>{p(!1),v(),a("close")},A=O=>{var I;if(!((I=O.target)!=null&&I.isContentEditable))switch(Kt(O)){case Ce.left:O.preventDefault(),s.value>0&&S();break;case Ce.right:O.preventDefault(),k();break}};return gt(()=>{window.addEventListener("keydown",A)}),Lt(()=>{window.removeEventListener("keydown",A)}),(O,I)=>(C(),$(Ke,null,[b.value?(C(),$("button",{key:0,"aria-label":i(l)("el.tour.close"),class:R(i(h).e("closebtn")),type:"button",onClick:M},[Q(i(De),{class:R(i(h).e("close"))},{default:ae(()=>[(C(),ie(dt(w.value)))]),_:1},8,["class"])],10,bre)):re("v-if",!0),E("header",{class:R([i(h).e("header"),{"show-close":i(c)}])},[oe(O.$slots,"header",{},()=>[E("span",{role:"heading",class:R(i(h).e("title"))},Se(e.title),3)])],2),E("div",{class:R(i(h).e("body"))},[oe(O.$slots,"default",{},()=>[E("span",null,Se(e.description),1)])],2),E("footer",{class:R(i(h).e("footer"))},[E("div",{class:R(i(h).b("indicators"))},[i(g).indicators?(C(),ie(dt(i(g).indicators),{key:0,current:i(s),total:i(u)},null,8,["current","total"])):(C(!0),$(Ke,{key:1},_t(i(u),(L,z)=>(C(),$("span",{key:L,class:R([i(h).b("indicator"),i(h).is("active",z===i(s))])},null,2))),128))],2),E("div",{class:R(i(h).b("buttons"))},[i(s)>0?(C(),ie(i(An),ht({key:0,size:"small",type:i(f)},_(e.prevButtonProps),{onClick:S}),{default:ae(()=>{var L;return[St(Se(((L=e.prevButtonProps)==null?void 0:L.children)??i(l)("el.tour.previous")),1)]}),_:1},16,["type"])):re("v-if",!0),i(s)<=i(u)-1?(C(),ie(i(An),ht({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},_(e.nextButtonProps),{onClick:k}),{default:ae(()=>{var L;return[St(Se(((L=e.nextButtonProps)==null?void 0:L.children)??(i(s)===i(u)-1?i(l)("el.tour.finish"):i(l)("el.tour.next"))),1)]}),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),U5=wre;const Cre=it(yre,{TourStep:U5}),_re=tn(U5),Sre=_e({container:{type:J([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:J(String),default:"default"},direction:{type:J(String),default:"vertical"},selectScrollTop:Boolean}),xre={change:e=>Be(e),click:(e,t)=>e instanceof MouseEvent&&(Be(t)||Et(t))},gc=e=>{if(!At||e==="")return null;if(Be(e))try{return document.querySelector(e)}catch{return null}return e};function kre(e){let t=0;const n=(...a)=>{t&&cl(t),t=Fa(()=>{e(...a),t=0})};return n.cancel=()=>{cl(t),t=0},n}const Y5=Symbol("anchor");var Ere=D({name:"ElAnchor",__name:"anchor",props:Sre,emits:xre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=V(""),s=V({}),u=V(null),c=V(null),d=V(),f={};let h=!1,g=0;const p=ve("anchor"),v=x(()=>[p.b(),a.type==="underline"?p.m("underline"):"",p.m(a.direction)]),m=L=>{f[L.href]=L.el},y=L=>{delete f[L]},b=L=>{r.value!==L&&(r.value=L,o(bt,L))};let w=null,_="";const S=L=>{if(!d.value)return;const z=gc(L);if(!z)return;if(w){if(_===L)return;w()}_=L,h=!0;const q=om(z,d.value),U=O2(z,q),F=q.scrollHeight-q.clientHeight,N=Math.min(U-a.offset,F);w=$M(d.value,g,N,a.duration,()=>{setTimeout(()=>{h=!1,_=""},20)})},k=L=>{L&&(b(L),S(L))},T=(L,z)=>{o("click",L,z),k(z)},M=kre(()=>{d.value&&(g=lm(d.value));const L=A();h||Et(L)||b(L)}),A=()=>{if(!d.value)return;const L=lm(d.value),z=[];for(const q of Object.keys(f)){const U=gc(q);if(!U)continue;const F=O2(U,om(U,d.value));z.push({top:F-a.offset-a.bound,href:q})}z.sort((q,U)=>q.top-U.top);for(let q=0;qL))return U.href}},O=()=>{const L=gc(a.container);!L||xu(L)?d.value=window:d.value=L};Vt(d,"scroll",M);const I=()=>{Le(()=>{if(!u.value||!c.value||!r.value){s.value={};return}const L=f[r.value];if(!L){s.value={};return}const z=u.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),U=L.getBoundingClientRect();a.direction==="horizontal"?s.value={left:`${U.left-z.left}px`,width:`${U.width}px`,opacity:1}:s.value={top:`${U.top-z.top+(U.height-q.height)/2}px`,opacity:1}})};return fe(r,I),fe(()=>{var L;return(L=l.default)==null?void 0:L.call(l)},I),gt(()=>{O();const L=decodeURIComponent(window.location.hash);gc(L)?k(L):M()}),fe(()=>a.container,()=>{O()}),wt(Y5,{ns:p,direction:a.direction,currentAnchor:r,addLink:m,removeLink:y,handleClick:T}),t({scrollTo:k}),(L,z)=>(C(),$("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(C(),$("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(p).e("marker")),style:qe(s.value)},null,6)):re("v-if",!0),E("div",{class:R(i(p).e("list"))},[oe(L.$slots,"default")],2)],2))}}),Tre=Ere;const Mre=_e({title:String,href:String}),Ore=["href"];var $re=D({name:"ElAnchorLink",__name:"anchor-link",props:Mre,setup(e){const t=e,n=V(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:s,handleClick:u}=Pe(Y5),c=x(()=>[a.e("link"),a.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return fe(()=>t.href,(f,h)=>{Le(()=>{h&&s(h),f&&r({href:f,el:n.value})})}),gt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Lt(()=>{const{href:f}=t;f&&s(f)}),(f,h)=>(C(),$("div",{class:R(i(a).e("item"))},[E("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[St(Se(e.title),1)])],10,Ore),f.$slots["sub-link"]&&i(o)==="vertical"?(C(),$("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),G5=$re;const Are=it(Tre,{AnchorLink:G5}),Rre=tn(G5),X5={label:"label",value:"value",disabled:"disabled"},Nre=_e({direction:{type:J(String),default:"horizontal"},options:{type:J(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:J(Object),default:()=>X5},block:Boolean,size:kn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...oa(["ariaLabel"])}),Pre={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Ire=["id","aria-label","aria-labelledby"],Lre=["name","disabled","checked","onChange"];var Vre=D({name:"ElSegmented",__name:"segmented",props:Nre,emits:Pre,setup(e,{emit:t}){const n=e,a=t,o=ve("segmented"),l=Kn(),r=_n(),s=rn(),{formItem:u}=Bn(),{inputId:c,isLabeledByFormItem:d}=Pa(n,{formItemContext:u}),f=V(null),h=TS(),g=Rt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(I,L)=>{const z=m(L);a(ot,z),a(bt,z),I.target.checked=z===n.modelValue},v=x(()=>({...X5,...n.props})),m=I=>lt(I)?I[v.value.value]:I,y=I=>lt(I)?I[v.value.label]:I,b=I=>!!(s.value||lt(I)&&I[v.value.disabled]),w=I=>n.modelValue===m(I),_=I=>n.options.find(L=>m(L)===I),S=I=>[o.e("item"),o.is("selected",w(I)),o.is("disabled",b(I))],k=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=I.offsetHeight,g.translateY=I.offsetTop):(g.width=I.offsetWidth,g.translateX=I.offsetLeft);try{g.focusVisible=L.matches(":focus-visible")}catch{}},T=x(()=>[o.b(),o.m(r.value),o.is("block",n.block)]),M=x(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),A=x(()=>[o.e("item-selected"),o.is("disabled",b(_(n.modelValue))),o.is("focus-visible",g.focusVisible)]),O=x(()=>n.name||l.value);return Zt(f,k),fe(h,k),fe(()=>n.modelValue,()=>{var I;k(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>pt(L)))},{flush:"post"}),(I,L)=>e.options.length?(C(),$("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(T.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[E("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[E("div",{style:qe(M.value),class:R(A.value)},null,6),(C(!0),$(Ke,null,_t(e.options,(z,q)=>(C(),$("label",{key:q,class:R(S(z))},[E("input",{class:R(i(o).e("item-input")),type:"radio",name:O.value,disabled:b(z),checked:w(z),onChange:U=>p(U,z)},null,42,Lre),E("div",{class:R(i(o).e("item-label"))},[oe(I.$slots,"default",{item:z},()=>[St(Se(y(z)),1)])],2)],2))),128))],2)],10,Ire)):re("v-if",!0)}}),Bre=Vre;const zre=it(Bre),Dre=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Hre=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,l=$n(t);let r=-1,s;for(let u=a-1;u>=0;--u){const c=o[u];if(r===-1&&(c===n||c===` -`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},Fre=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?s.lineHeight=`${g-p}px`:g===v?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[h]=u[h]}),qd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Kre=_e({...Sh,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Be(e)?e.length===1:e.every(t=>Be(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>Dre,validator:e=>e===!1?!0:Fe(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>J5}}),Wre={[ot]:e=>Be(e),"whole-remove":(e,t)=>Be(e)&&Be(t),input:e=>Be(e),search:(e,t)=>Be(e)&&Be(t),select:(e,t)=>lt(e)&&Be(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},J5={value:"value",label:"label",disabled:"disabled"},jre=_e({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),qre={select:e=>Be(e.value)},Ure=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Yre=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:jre,emits:qre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:r}=kt(),s=V(-1),u=V(),c=V(),d=V(),f=(_,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",_.disabled||a.disabled)],h=_=>{_.disabled||a.disabled||o("select",_)},g=_=>{s.value=_},p=x(()=>a.disabled||a.options.every(_=>_.disabled)),v=x(()=>a.options[s.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=_=>{const{options:S}=a;if(S.length===0||p.value)return;_==="next"?(s.value++,s.value===S.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(_);return}Le(()=>b(k))},b=_=>{var M,A,O,I;const{options:S}=a,k=S.findIndex(L=>L.value===_.value),T=(M=c.value)==null?void 0:M[k];if(T){const L=(O=(A=d.value)==null?void 0:A.querySelector)==null?void 0:O.call(A,`.${l.be("dropdown","wrap")}`);L&&Jp(L,T)}(I=u.value)==null||I.handleScroll()};return fe(()=>a.options,()=>{p.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(_=>!_.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:m,hoverOption:v}),(_,S)=>(C(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(l).b("dropdown"))},[_.$slots.header?(C(),$("div",{key:0,class:R(i(l).be("dropdown","header"))},[oe(_.$slots,"header")],2)):re("v-if",!0),ft(Q(i(ao),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(l).be("dropdown","wrap"),"view-class":i(l).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.options,(k,T)=>(C(),$("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:R(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":s.value===T,onMousemove:M=>g(T),onClick:Je(M=>h(k),["stop"])},[oe(_.$slots,"label",{item:k,index:T},()=>[E("span",null,Se(k.label??k.value),1)])],42,Ure))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[$t,e.options.length>0&&!e.loading]]),e.loading?(C(),$("div",{key:1,class:R(i(l).be("dropdown","loading"))},[oe(_.$slots,"loading",{},()=>[St(Se(i(r)("el.mention.loading")),1)])],2)):re("v-if",!0),_.$slots.footer?(C(),$("div",{key:2,class:R(i(l).be("dropdown","footer"))},[oe(_.$slots,"footer")],2)):re("v-if",!0)],2))}}),Gre=Yre,Xre=D({name:"ElMention",inheritAttrs:!1,__name:"mention",props:Kre,emits:Wre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const N=Dn.props??[];return ul(a,be(N)?N:Object.keys(N))}),r=ve("mention"),s=rn(),u=Kn(),c=V(),d=V(),f=V(),h=V(!1),g=V(),p=V(),v=x(()=>a.showArrow?a.placement:`${a.placement}-start`),m=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>({...J5,...a.props})),b=N=>{const P={label:N[y.value.label],value:N[y.value.value],disabled:N[y.value.disabled]};return{...N,...P}},w=x(()=>a.options.map(b)),_=x(()=>{const{filterOption:N}=a;return!p.value||!N?w.value:w.value.filter(P=>N(p.value.pattern,P))}),S=x(()=>h.value&&(!!_.value.length||a.loading)),k=x(()=>{var N;return`${u.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{o(ot,N),o(wn,N),q()},M=N=>{var B,K,W,j;if((B=c.value)!=null&&B.isComposing)return;const P=Kt(N);switch(P){case Ce.left:case Ce.right:q();break;case Ce.up:case Ce.down:if(!h.value)return;N.preventDefault(),(K=f.value)==null||K.navigateOptions(P===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!h.value){a.type!=="textarea"&&q();return}N.preventDefault(),(W=f.value)!=null&&W.hoverOption?(j=f.value)==null||j.selectHoverOption():h.value=!1;break;case Ce.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case Ce.backspace:if(a.whole&&p.value){const{splitIndex:G,selectionEnd:ee,pattern:te,prefixIndex:ue,prefix:ne}=p.value,de=z();if(!de)return;const se=de.value,Y=w.value.find(X=>X.value===te);if((Fe(a.checkIsWhole)?a.checkIsWhole(te,ne):Y)&&G!==-1&&G+1===ee){N.preventDefault();const X=se.slice(0,ue)+se.slice(G+1);o(ot,X),o(wn,X),o("whole-remove",te,ne);const H=ue;Le(()=>{de.selectionStart=H,de.selectionEnd=H,F()})}}}},{wrapperRef:A}=Cl(c,{disabled:s,afterFocus(){q()},beforeBlur(N){var P;return(P=d.value)==null?void 0:P.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),O=()=>{q()},I=N=>a.options.find(P=>N.value===P[y.value.value]),L=N=>{if(!p.value)return;const P=z();if(!P)return;const B=P.value,{split:K}=a,W=B.slice(p.value.end),j=W.startsWith(K),G=`${N.value}${j?"":K}`,ee=B.slice(0,p.value.start)+G+W;o(ot,ee),o(wn,ee),o("select",I(N),p.value.prefix);const te=p.value.start+G.length+(j?1:0);Le(()=>{P.selectionStart=te,P.selectionEnd=te,P.focus(),F()})},z=()=>{var N,P;return a.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(P=c.value)==null?void 0:P.input},q=()=>{setTimeout(()=>{U(),F(),Le(()=>{var N;return(N=d.value)==null?void 0:N.updatePopper()})},0)},U=()=>{const N=z();if(!N)return;const P=Fre(N),B=N.getBoundingClientRect(),K=A.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+B.left-K.left}px`,top:`${P.top+B.top-K.top}px`}},F=()=>{const N=z();if(document.activeElement!==N){h.value=!1;return}const{prefix:P,split:B}=a;if(p.value=Hre(N,P,B),p.value&&p.value.splitIndex===-1){h.value=!0,o("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(N,P)=>(C(),$("div",{ref_key:"wrapperRef",ref:A,class:R(i(r).b())},[Q(i(Dn),ht(ht(l.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?k.value||"":void 0,"aria-controls":S.value?i(u):void 0,"aria-expanded":S.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:T,onKeydown:M,onMousedown:O}),fa({_:2},[_t(N.$slots,(B,K)=>({name:K,fn:ae(W=>[oe(N.$slots,K,nl(al(W)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(i(Vn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[i(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ae(()=>[E("div",{style:qe(g.value)},null,4)]),content:ae(()=>[Q(Gre,{ref_key:"dropdownRef",ref:f,options:_.value,disabled:i(s),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:L,onClick:P[0]||(P[0]=Je(B=>{var K;return(K=c.value)==null?void 0:K.focus()},["stop"]))},fa({_:2},[_t(N.$slots,(B,K)=>({name:K,fn:ae(W=>[oe(N.$slots,K,nl(al(W)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),Jre=Xre;const Zre=it(Jre),Qre=_e({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),ese={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},tse=_e({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),nse={"update:size":e=>typeof e=="number"||typeof e=="string"};function ase(e){const t=V(),{width:n,height:a}=j0(t);return{containerEl:t,containerSize:x(()=>e.value==="horizontal"?n.value:a.value)}}function vv(e){return Number(e.slice(0,-1))/100}function mv(e){return Number(e.slice(0,-2))}function gv(e){return Be(e)&&e.endsWith("%")}function yv(e){return Be(e)&&e.endsWith("px")}function ose(e,t){const n=x(()=>e.value.map(r=>r.size)),a=x(()=>e.value.length),o=V([]);fe([n,a,t],()=>{var c;let r=[],s=0;for(let d=0;dd+(f||0),0);if(u>1||!s){const d=1/u;r=r.map(f=>f===void 0?0:f*d)}else{const d=(1-u)/s;r=r.map(f=>f===void 0?d:f)}o.value=r});const l=r=>r*t.value;return{percentSizes:o,pxSizes:x(()=>o.value.map(l))}}function lse(e,t,n,a){const o=m=>m*t.value||0;function l(m,y){return gv(m)?o(vv(m)):yv(m)?mv(m):m??y}const r=V(0),s=V(null);let u=[],c=It;const d=x(()=>e.value.map(m=>[m.min,m.max]));fe(a,()=>{if(r.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{r.value=0,s.value={index:m,confirmed:!1},u=n.value},h=(m,y)=>{var I;let b=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)b=m,s.value={index:m,confirmed:!0};else for(let L=m;L>=0;L-=1)if(u[L]>0){b=L,s.value={index:L,confirmed:!0};break}}const w=b??((I=s.value)==null?void 0:I.index)??m,_=[...u],S=w+1,k=l(d.value[w][0],0),T=l(d.value[S][0],0),M=l(d.value[w][1],t.value||0),A=l(d.value[S][1],t.value||0);let O=y;_[w]+OM&&(O=M-_[w]),_[S]-O>A&&(O=_[S]-A),_[w]+=O,_[S]-=O,r.value=O,c=()=>{e.value.forEach((L,z)=>{L.size=_[z]}),c=It},a.value||c()},g=()=>{a.value&&c(),r.value=0,s.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:g,movingIndex:s,onCollapse:(m,y)=>{p.length||p.push(...n.value);const b=n.value,w=y==="start"?m:m+1,_=y==="start"?m+1:m,S=b[w],k=b[_];if(S!==0&&k!==0)b[w]=0,b[_]+=S,p[m]=S;else{const T=S+k,M=p[m],A=T-M;b[_]=M,b[w]=A}e.value.forEach((T,M)=>{T.size=b[M]})}}}const Z5=Symbol("splitterRootContextKey");var rse=D({name:"ElSplitter",__name:"splitter",props:Qre,emits:ese,setup(e,{emit:t}){const n=ve("splitter"),a=t,o=e,l=Bt(o,"layout"),r=Bt(o,"lazy"),{containerEl:s,containerSize:u}=ase(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=cf(vt(),"ElSplitterPanel");fe(d,()=>{m.value=null,d.value.forEach((O,I)=>{O.setIndex(I)})});const{percentSizes:g,pxSizes:p}=ose(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:y,onMoving:b,onMoveEnd:w,onCollapse:_}=lse(d,u,p,r),S=x(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return wt(Z5,Rt({panels:d,percentSizes:g,pxSizes:p,layout:l,lazy:r,movingIndex:m,containerSize:u,onMoveStart:O=>{y(O),a("resizeStart",O,p.value)},onMoving:(O,I)=>{b(O,I),r.value||a("resize",O,p.value)},onMoveEnd:async O=>{w(),await Le(),a("resizeEnd",O,p.value)},onCollapse:(O,I)=>{_(O,I),a("collapse",O,I,p.value)},registerPanel:f,unregisterPanel:c})),(O,I)=>(C(),$("div",{ref_key:"containerEl",ref:s,class:R([i(n).b(),i(n).e(l.value)]),style:qe(S.value)},[oe(O.$slots,"default"),Q(i(h)),re(" Prevent iframe touch events from breaking "),i(m)?(C(),$("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${l.value}`)])},null,2)):re("v-if",!0)],6))}}),sse=rse;function ise(e){return e&<(e)?e:{start:!!e,end:!!e}}function o4(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}var use=D({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ve("splitter-bar"),a=e,o=t,l=x(()=>a.layout==="horizontal"),r=x(()=>l.value?{width:0}:{height:0}),s=x(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:a.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=x(()=>{const b=n.e("dragger");return{[`${b}-horizontal`]:l.value,[`${b}-vertical`]:!l.value,[`${b}-active`]:!!c.value}}),c=V(null),d=b=>{a.resizable&&(c.value=[b.pageX,b.pageY],o("moveStart",a.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=b=>{if(a.resizable&&b.touches.length===1){b.preventDefault();const w=b.touches[0];c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},h=b=>{const{pageX:w,pageY:_}=b,S=w-c.value[0],k=_-c.value[1],T=l.value?S:k;o("moving",a.index,T)},g=b=>{if(b.touches.length===1){b.preventDefault();const w=b.touches[0],_=w.pageX-c.value[0],S=w.pageY-c.value[1],k=l.value?_:S;o("moving",a.index,k)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=x(()=>l.value?zo:Iu),y=x(()=>l.value?Un:po);return(b,w)=>(C(),$("div",{class:R([i(n).b()]),style:qe(r.value)},[e.startCollapsible?(C(),$("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=_=>o("collapse",e.index,"start"))},[oe(b.$slots,"start-collapsible",{},()=>[(C(),ie(dt(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),E("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:qe(s.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(C(),$("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=_=>o("collapse",e.index,"end"))},[oe(b.$slots,"end-collapsible",{},()=>[(C(),ie(dt(y.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),cse=use;const l4="ElSplitterPanel";var dse=D({name:l4,__name:"split-panel",props:tse,emits:nse,setup(e,{expose:t,emit:n}){const a=ve("splitter-panel"),o=e,l=n,r=Pe(Z5);r||en(l4,"usage: ");const{panels:s,layout:u,lazy:c,containerSize:d,pxSizes:f}=Nn(r),{registerPanel:h,unregisterPanel:g,onCollapse:p,onMoveEnd:v,onMoveStart:m,onMoving:y}=r,b=V(),w=vt(),_=w.uid,S=V(0),k=x(()=>s.value[S.value]),T=P=>{S.value=P},M=x(()=>k.value?f.value[S.value]??0:0),A=x(()=>k.value?f.value[S.value+1]??0:0),O=x(()=>k.value?s.value[S.value+1]:null),I=x(()=>{var P;return O.value?o.resizable&&((P=O.value)==null?void 0:P.resizable)&&(M.value!==0||!o.min)&&(A.value!==0||!O.value.min):!1}),L=x(()=>k.value?S.value!==s.value.length-1:!1),z=x(()=>o4(k.value,M.value,O.value,A.value)),q=x(()=>o4(O.value,A.value,k.value,M.value));function U(P){return gv(P)?vv(P)*d.value||0:yv(P)?mv(P):P??0}let F=!1;fe(()=>o.size,()=>{if(!F&&k.value){if(!d.value){k.value.size=o.size;return}const P=U(o.size),B=U(o.max),K=U(o.min),W=Math.min(Math.max(P,K||0),B||P);W!==P&&l("update:size",W),k.value.size=W}}),fe(()=>{var P;return(P=k.value)==null?void 0:P.size},P=>{P!==o.size&&(F=!0,l("update:size",P),Le(()=>F=!1))}),fe(()=>o.resizable,P=>{k.value&&(k.value.resizable=P)});const N=Rt({uid:_,getVnode:()=>w.vnode,setIndex:T,...o,collapsible:x(()=>ise(o.collapsible))});return h(N),Lt(()=>g(N)),t({splitterPanelRef:b}),(P,B)=>(C(),$(Ke,null,[E("div",ht({ref_key:"panelEl",ref:b,class:[i(a).b()],style:{flexBasis:`${M.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),L.value?(C(),ie(cse,{key:0,index:S.value,layout:i(u),lazy:i(c),resizable:I.value,"start-collapsible":z.value,"end-collapsible":q.value,onMoveStart:i(m),onMoving:i(y),onMoveEnd:i(v),onCollapse:i(p)},{"start-collapsible":ae(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ae(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),Q5=dse;const fse=it(sse,{SplitPanel:Q5}),pse=tn(Q5),hse="2.13.7",vse=(e=[])=>({version:hse,install:(n,a)=>{n[m1]||(n[m1]=!0,e.forEach(o=>n.use(o)),a&&kh(a,n,!0))}}),ka="ElInfiniteScroll",mse=50,gse=200,yse=0,bse={delay:{type:Number,default:gse},distance:{type:Number,default:yse},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},bv=(e,t)=>Object.entries(bse).reduce((n,[a,o])=>{const{type:l,default:r}=o,s=e.getAttribute(`infinite-scroll-${a}`);let u=t[s]??s??r;return u=u==="false"?!1:u,u=l(u),n[a]=Number.isNaN(u)?r:u,n},{}),e9=e=>{const{observer:t}=e[ka];t&&(t.disconnect(),delete e[ka].observer)},wse=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[ka],{disabled:s,distance:u}=bv(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-r;if(e[ka].lastScrollTop=f,l||s||h<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,m=O2(e,a);g=f+c>=m+p+v-u}g&&t.call(o)};function x0(e,t){const{containerEl:n,instance:a}=e[ka],{disabled:o}=bv(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):e9(e))}const Cse={async mounted(e,t){const{instance:n,value:a}=t;$o({scope:ka,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Fe(a)||en(ka,"'v-infinite-scroll' binding value must be a function"),await Le();const{delay:o,immediate:l}=bv(e,n),r=Xp(e,!0),s=r===window?document.documentElement:r,u=Il(wse.bind(null,e,a),o);if(r){if(e[ka]={instance:n,container:r,containerEl:s,delay:o,cb:a,onScroll:u,lastScrollTop:s.scrollTop},l){const c=new MutationObserver(Il(x0.bind(null,e,a),mse));e[ka].observer=c,c.observe(e,{childList:!0,subtree:!0}),x0(e,a)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[ka])return;const{container:t,onScroll:n}=e[ka];t==null||t.removeEventListener("scroll",n),e9(e)},async updated(e){if(!e[ka])await Le();else{const{containerEl:t,cb:n,observer:a}=e[ka];t.clientHeight&&a&&x0(e,n)}}},Z2=Cse;Z2.install=e=>{e.directive("InfiniteScroll",Z2)};const _se=Z2;function Sse(e,t){let n;const a=V(!1),o=Rt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){o.text=h}function r(){const h=o.parent,g=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(aa(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),aa(h,g.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function u(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!a.value)return;const h=o.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const d=m6(D({name:"ElLoading",setup(h,{expose:g}){const{ns:p,zIndex:v}=vf("loading");return g({ns:p,zIndex:v}),()=>{const m=o.spinner||o.svg,y=Ye("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[Ye("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?Ye("p",{class:p.b("text")},[o.text]):void 0;return Ye(Fn,{name:p.b("fade"),onAfterLeave:c},{default:ae(()=>[ft(Q("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,p.is("fullscreen",o.fullscreen)]},[Ye("div",{class:p.b("spinner")},[y,b])]),[[$t,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Nn(o),setText:l,removeElLoadingChild:s,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let yc;const bs=function(e={},t){if(!At)return;const n=xse(e);if(n.fullscreen&&yc)return yc;const a=Sse({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(yc=void 0)}},t??bs._context);kse(n,n.parent,a),r4(n,n.parent,a),n.parent.vLoadingAddClassList=()=>r4(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Le(()=>a.visible.value=n.visible),n.fullscreen&&(yc=a),a},xse=e=>{let t;return Be(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},kse=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Zo(document.body,"position"),n.originalOverflow.value=Zo(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Zo(document.body,"position"),await Le();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";o[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(Zo(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])o[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=Zo(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},r4=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?aa(t,a.bm("parent","relative")):Ba(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ba(t,a.bm("parent","hidden")):aa(t,a.bm("parent","hidden"))};bs._context=null;const wi=Symbol("ElLoading"),lr=e=>`element-loading-${vl(e)}`,s4=(e,t)=>{const n=t.instance,a=c=>lt(t.value)?t.value[c]:void 0,o=c=>V(Be(c)&&(n==null?void 0:n[c])||c),l=c=>o(a(c)||e.getAttribute(lr(c))),r=a("fullscreen")??t.modifiers.fullscreen,s={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:r,target:a("target")??(r?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=bs(s);u._context=Ii._context,e[wi]={options:s,instance:u}},Ese=(e,t)=>{for(const n of Object.keys(e))Yt(e[n])&&(e[n].value=t[n])},Ii={mounted(e,t){t.value&&s4(e,t)},updated(e,t){const n=e[wi];if(!t.value){n==null||n.instance.close(),e[wi]=null;return}n?Ese(n.options,lt(t.value)?t.value:{text:e.getAttribute(lr("text")),svg:e.getAttribute(lr("svg")),svgViewBox:e.getAttribute(lr("svgViewBox")),spinner:e.getAttribute(lr("spinner")),background:e.getAttribute(lr("background")),customClass:e.getAttribute(lr("customClass"))}):s4(e,t)},unmounted(e){var t;(t=e[wi])==null||t.instance.close(),e[wi]=null}};Ii._context=null;const Tse={install(e){bs._context=e._context,Ii._context=e._context,e.directive("loading",Ii),e.config.globalProperties.$loading=bs},directive:Ii,service:bs},t9=["primary","success","info","warning","error"],n9=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ws="top",Xn=on({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:At?document.body:void 0}),Mse=_e({customClass:{type:String,default:Xn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Xn.dangerouslyUseHTMLString},duration:{type:Number,default:Xn.duration},icon:{type:Ft,default:Xn.icon},id:{type:String,default:Xn.id},message:{type:J([String,Object,Function]),default:Xn.message},onClose:{type:J(Function),default:Xn.onClose},showClose:{type:Boolean,default:Xn.showClose},type:{type:String,values:t9,default:Xn.type},plain:{type:Boolean,default:Xn.plain},offset:{type:Number,default:Xn.offset},placement:{type:String,values:n9,default:Xn.placement},zIndex:{type:Number,default:Xn.zIndex},grouping:{type:Boolean,default:Xn.grouping},repeatNum:{type:Number,default:Xn.repeatNum}}),Ose={destroy:()=>!0},Ja=Ld({}),$se=e=>(Ja[e]||(Ja[e]=Ld([])),Ja[e]),Ase=(e,t)=>{const n=Ja[t]||[],a=n.findIndex(r=>r.id===e),o=n[a];let l;return a>0&&(l=n[a-1]),{current:o,prev:l}},Rse=(e,t)=>{const{prev:n}=Ase(e,t);return n?n.vm.exposed.bottom.value:0},Nse=(e,t,n)=>(Ja[n]||[]).findIndex(a=>a.id===e)>0?16:t,Pse=["id"],Ise=["innerHTML"];var Lse=D({name:"ElMessage",__name:"message",props:Mse,emits:Ose,setup(e,{expose:t,emit:n}){const{Close:a}=yh,o=e,l=n,r=V(!1),{ns:s,zIndex:u}=vf("message"),{currentZIndex:c,nextZIndex:d}=u,f=V(),h=V(!1),g=V(0);let p;const v=x(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=x(()=>{const z=o.type;return{[s.bm("icon",z)]:z&&Ul[z]}}),y=x(()=>o.icon||Ul[o.type]||""),b=x(()=>o.placement||ws),w=x(()=>Rse(o.id,b.value)),_=x(()=>Math.max(Nse(o.id,o.offset,b.value)+w.value,o.offset)),S=x(()=>g.value+_.value),k=x(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),T=x(()=>b.value.startsWith("top")?"top":"bottom"),M=x(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:p}=xs(()=>{I()},o.duration))}function O(){p==null||p()}function I(){h.value=!1,Le(()=>{var z;r.value||((z=o.onClose)==null||z.call(o),l("destroy"))})}function L(z){Kt(z)===Ce.esc&&I()}return gt(()=>{A(),d(),h.value=!0}),fe(()=>o.repeatNum,()=>{O(),A()}),Vt(document,"keydown",L),Zt(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:I}),(z,q)=>(C(),ie(Fn,{name:i(s).b("fade"),onBeforeEnter:q[0]||(q[0]=U=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=U=>z.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(s).b(),{[i(s).m(e.type)]:e.type},i(s).is("closable",e.showClose),i(s).is("plain",e.plain),i(s).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:qe(M.value),role:"alert",onMouseenter:O,onMouseleave:A},[e.repeatNum>1?(C(),ie(i(Jy),{key:0,value:e.repeatNum,type:v.value,class:R(i(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),y.value?(C(),ie(i(De),{key:1,class:R([i(s).e("icon"),m.value])},{default:ae(()=>[(C(),ie(dt(y.value)))]),_:1},8,["class"])):re("v-if",!0),oe(z.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(i(s).e("content")),innerHTML:e.message},null,10,Ise)],2112)):(C(),$("p",{key:0,class:R(i(s).e("content"))},Se(e.message),3))]),e.showClose?(C(),ie(i(De),{key:2,class:R(i(s).e("closeBtn")),onClick:Je(I,["stop"])},{default:ae(()=>[Q(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,Pse),[[$t,h.value]])]),_:3},8,["name","onBeforeLeave"]))}}),Vse=Lse;let Bse=1;const zse=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Be(e.appendTo)){let t=document.querySelector(e.appendTo);ga(t)||(pt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},Dse=e=>{!e.placement&&Be(Zn.placement)&&Zn.placement&&(e.placement=Zn.placement),e.placement||(e.placement=ws),n9.includes(e.placement)||(pt("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${ws}'.`),e.placement=ws)},a9=e=>{const t=!e||Be(e)||Wt(e)||Fe(e)?{message:e}:e,n={...Xn,...t};return zse(n),Dse(n),Dt(Zn.grouping)&&!n.grouping&&(n.grouping=Zn.grouping),He(Zn.duration)&&n.duration===3e3&&(n.duration=Zn.duration),He(Zn.offset)&&n.offset===16&&(n.offset=Zn.offset),Dt(Zn.showClose)&&!n.showClose&&(n.showClose=Zn.showClose),Dt(Zn.plain)&&!n.plain&&(n.plain=Zn.plain),n},Hse=e=>{const t=Ja[e.props.placement||ws],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},Fse=({appendTo:e,...t},n)=>{const a=`message_${Bse++}`,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{o==null||o(),Hse(c)},onDestroy:()=>{Wl(null,l)}},s=Q(Vse,r,Fe(r.message)||Wt(r.message)?{default:Fe(r.message)?r.message:()=>r.message}:null);s.appContext=n||Vr._context,Wl(s,l),e.appendChild(l.firstElementChild);const u=s.component,c={id:a,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return c},Vr=(e={},t)=>{if(!At)return{close:()=>{}};const n=a9(e),a=$se(n.placement||ws);if(n.grouping&&a.length){const l=a.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(He(Zn.max)&&a.length>=Zn.max)return{close:()=>{}};const o=Fse(n,t);return a.push(o),o.handler};t9.forEach(e=>{Vr[e]=(t={},n)=>Vr({...a9(t),type:e},n)});function Kse(e){for(const t in Ja)if(Mt(Ja,t)){const n=[...Ja[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function Wse(e){Ja[e]&&[...Ja[e]].forEach(t=>t.handler.close())}Vr.closeAll=Kse;Vr.closeAllByPlacement=Wse;Vr._context=null;const o9=cy(Vr,"$message");var jse=D({name:"ElMessageBox",directives:{TrapFocus:uM},components:{ElButton:An,ElFocusTrap:Xs,ElInput:Dn,ElOverlay:Fh,ElIcon:De,...yh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:o5},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=vf("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:s}=a,u=V(!1),c=Rt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Oo(no),cancelButtonLoadingIcon:Oo(no),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=x(()=>{const U=c.type;return{[o.bm("icon",U)]:U&&Ul[U]}}),f=Kn(),h=Kn(),g=x(()=>{const U=c.type;return c.icon||U&&Ul[U]||""}),p=x(()=>!!c.message),v=V(),m=V(),y=V(),b=V(),w=V(),_=x(()=>c.confirmButtonClass);fe(()=>c.inputValue,async U=>{await Le(),e.boxType==="prompt"&&U&&I()},{immediate:!0}),fe(()=>u.value,U=>{var F;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=((F=w.value)==null?void 0:F.$el)??v.value:y.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(U?Le().then(()=>{b.value&&b.value.$el&&(c.autofocus?y.value=L()??v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:S}=T8(v,m,x(()=>e.draggable),x(()=>e.overflow));gt(async()=>{await Le(),e.closeOnHashChange&&window.addEventListener("hashchange",k)}),Lt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",k)});function k(){u.value&&(u.value=!1,Le(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=rh(T),A=U=>{var F;if(c.inputType!=="textarea"&&!((F=b.value)!=null&&F.isComposing))return U.preventDefault(),O("confirm")},O=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!I()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,k):k())},I=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(Fe(F)){const N=F(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Be(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{var F;const U=(F=b.value)==null?void 0:F.$refs;return(U==null?void 0:U.input)??(U==null?void 0:U.textarea)},z=()=>{O("close")},q=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&af(u,{ns:o}),{...Nn(c),ns:o,overlayEvent:M,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:g,confirmButtonClasses:_,rootRef:v,focusStartRef:y,headerRef:m,inputRef:b,isDragging:S,confirmRef:w,doClose:k,handleClose:z,onCloseRequested:q,handleWrapperClick:T,handleInputEnter:A,handleAction:O,t:r}}});const qse=["aria-label","aria-describedby"],Use=["aria-label"],Yse=["id"];function Gse(e,t,n,a,o,l){const r=Ot("el-icon"),s=Ot("el-input"),u=Ot("el-button"),c=Ot("el-focus-trap"),d=Ot("el-overlay");return C(),ie(Fn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ae(()=>[ft(Q(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ae(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Je(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(C(),$("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(C(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),E("span",null,Se(e.title),1)],2),e.showClose?(C(),$("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=nn(Je(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(r,{class:R(e.ns.e("close"))},{default:ae(()=>[(C(),ie(dt(e.closeIcon||"close")))]),_:1},8,["class"])],42,Use)):re("v-if",!0)],2)):re("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(C(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(C(),$("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),ie(dt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(C(),ie(dt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Se(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),ft(E("div",{class:R(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:nn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:qe({visibility:e.editorErrorMessage?"visible":"hidden"})},Se(e.editorErrorMessage),7)],2),[[$t,e.showInput]])],10,Yse),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(C(),ie(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=nn(Je(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),ft(Q(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=nn(Je(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[$t,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,qse)]),_:3},8,["z-index","overlay-class","mask"]),[[$t,e.visible]])]),_:3})}var Xse=En(jse,[["render",Gse]]);const cu=new Map,Jse=e=>{let t=document.body;return e.appendTo&&(Be(e.appendTo)&&(t=document.querySelector(e.appendTo)),ga(e.appendTo)&&(t=e.appendTo),ga(t)||(pt("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Zse=(e,t,n=null)=>{const a=Q(Xse,e,Fe(e.message)||Wt(e.message)?{default:Fe(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Wl(a,t),Jse(e).appendChild(t.firstElementChild),a.component},Qse=()=>document.createElement("div"),eie=(e,t)=>{const n=Qse();e.onVanish=()=>{Wl(null,n),cu.delete(o)},e.onAction=l=>{const r=cu.get(o);let s;e.showInput?s={value:o.inputValue,action:l}:s=l,e.callback?e.callback(s,a.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(s)};const a=Zse(e,n,t),o=a.proxy;for(const l in e)Mt(e,l)&&!Mt(o.$props,l)&&(l==="closeIcon"&<(e[l])?o[l]=Oo(e[l]):o[l]=e[l]);return o.visible=!0,o};function Zs(e,t=null){if(!At)return Promise.reject();let n;return Be(e)||Wt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const l=eie(e,t??Zs._context);cu.set(l,{options:e,callback:n,resolve:a,reject:o})})}const tie=["alert","confirm","prompt"],nie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};tie.forEach(e=>{Zs[e]=aie(e)});function aie(e){return(t,n,a,o)=>{let l="";return lt(n)?(a=n,l=""):Et(n)?l="":l=n,Zs(Object.assign({title:l,message:t,type:"",...nie[e]},a,{boxType:e}),o)}}Zs.close=()=>{cu.forEach((e,t)=>{t.doClose()}),cu.clear()};Zs._context=null;const Al=Zs;Al.install=e=>{Al._context=e._context,e.config.globalProperties.$msgbox=Al,e.config.globalProperties.$messageBox=Al,e.config.globalProperties.$alert=Al.alert,e.config.globalProperties.$confirm=Al.confirm,e.config.globalProperties.$prompt=Al.prompt};const oie=Al,l9=["primary","success","info","warning","error"],lie=_e({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ft},id:{type:String,default:""},message:{type:J([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...l9,""],default:""},zIndex:Number,closeIcon:{type:Ft,default:Na}}),rie={destroy:()=>!0},sie=["id"],iie=["textContent"],uie={key:0},cie=["innerHTML"];var die=D({name:"ElNotification",__name:"notification",props:lie,emits:rie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=vf("notification"),{nextZIndex:l,currentZIndex:r}=o,s=V(!1);let u;const c=x(()=>{const b=n.type;return b&&Ul[n.type]?a.m(b):""}),d=x(()=>n.type&&Ul[n.type]||n.icon),f=x(()=>n.position.endsWith("right")?"right":"left"),h=x(()=>n.position.startsWith("top")?"top":"bottom"),g=x(()=>({[h.value]:`${n.offset}px`,zIndex:n.zIndex??r.value}));function p(){n.duration>0&&({stop:u}=xs(()=>{s.value&&m()},n.duration))}function v(){u==null||u()}function m(){s.value=!1}function y(b){switch(Kt(b)){case Ce.delete:case Ce.backspace:v();break;case Ce.esc:s.value&&m();break;default:p();break}}return gt(()=>{p(),l(),s.value=!0}),Vt(document,"keydown",y),t({visible:s,close:m}),(b,w)=>(C(),ie(Fn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=_=>b.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:qe(g.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(..._)=>e.onClick&&e.onClick(..._))},[d.value?(C(),ie(i(De),{key:0,class:R([i(a).e("icon"),c.value])},{default:ae(()=>[(C(),ie(dt(d.value)))]),_:1},8,["class"])):re("v-if",!0),E("div",{class:R(i(a).e("group"))},[E("h2",{class:R(i(a).e("title")),textContent:Se(e.title)},null,10,iie),ft(E("div",{class:R(i(a).e("content")),style:qe(e.title?void 0:{margin:0})},[oe(b.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,cie)],2112)):(C(),$("p",uie,Se(e.message),1))])],6),[[$t,e.message]]),e.showClose?(C(),ie(i(De),{key:0,class:R(i(a).e("closeBtn")),onClick:Je(m,["stop"])},{default:ae(()=>[(C(),ie(dt(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,sie),[[$t,s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),fie=die;const Bs={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Td=16;let pie=1;const Br=function(e={},t){if(!At)return{close:()=>{}};(Be(e)||Wt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;Bs[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Td}),a+=Td;const o=`notification_${pie++}`,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{hie(o,n,l)}};let s=document.body;ga(e.appendTo)?s=e.appendTo:Be(e.appendTo)&&(s=document.querySelector(e.appendTo)),ga(s)||(pt("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const u=document.createElement("div"),c=Q(fie,r,Fe(r.message)?r.message:Wt(r.message)?()=>r.message:null);return c.appContext=Et(t)?Br._context:t,c.props.onDestroy=()=>{Wl(null,u)},Wl(c,u),Bs[n].push({vm:c}),s.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};l9.forEach(e=>{Br[e]=(t={},n)=>((Be(t)||Wt(t))&&(t={message:t}),Br({...t,type:e},n))});function hie(e,t,n){const a=Bs[t],o=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:l}=a[o];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,s=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function mie(e="top-right"){var n,a,o,l;let t=((o=(a=(n=Bs[e][0])==null?void 0:n.vm.component)==null?void 0:a.props)==null?void 0:o.offset)||0;for(const{vm:r}of Bs[e])r.component.props.offset=t,t+=(((l=r.el)==null?void 0:l.offsetHeight)||0)+Td}Br.closeAll=vie;Br.updateOffsets=mie;Br._context=null;const gie=cy(Br,"$notify");var yie=[G$,uH,yK,Fae,xK,kK,AK,Jy,HK,FK,An,ob,Oj,Nj,Yj,Gj,Kq,zb,Yq,lo,dq,Nh,oU,bU,wU,gf,Jb,YU,YK,tY,nY,aY,oY,lY,BG,uw,UG,YG,uX,gw,_X,uJ,cJ,dJ,Ew,sF,iF,De,QJ,Tw,Dn,Mw,mZ,_Z,BZ,zZ,DZ,HZ,UZ,TQ,RQ,DQ,jy,Iw,Bb,Sq,_q,tee,lee,tU,ao,Yl,fd,uj,Uee,Qee,ete,wte,kte,t5,Pte,Hte,Fte,Zte,rae,sae,Hae,toe,noe,ll,iv,VW,coe,voe,moe,Vn,Ooe,dv,Joe,ple,Dle,Xle,Cre,_re,Are,Rre,zre,Zre,fse,pse],bie=[_se,Tse,o9,oie,gie,Pw],wv=vse([...yie,...bie]);wv.install;wv.version;var wie=wv;const Cie={__name:"App",setup(e){return gt(()=>{const t=localStorage.getItem("theme");t?document.documentElement.classList.toggle("dark",t==="dark"):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark")}),(t,n)=>{const a=Ot("router-view");return C(),ie(a)}}},_ie="modulepreload",Sie=function(e){return"/"+e},i4={},ts=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Sie(u),u in i4)return;i4[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":_ie,c||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return o.then(r=>{for(const s of r||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})};/*! + `)}}),Zh=Symbol("ElSelectV2Injection"),kee=_e({allowCreate:Boolean,autocomplete:{type:J(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},effect:{type:J(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:J(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:J(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:J(Array),required:!0},placeholder:{type:String},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:kn,props:{type:J(Object),default:()=>fd},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||He(e)}},suffixIcon:{type:Ft,default:po},...jr,...oa(["ariaLabel"])}),Eee=_e({data:Array,disabled:Boolean,hovering:Boolean,item:{type:J(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),Tee={[ot]:e=>!0,[bt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Mee={hover:e=>He(e),select:(e,t)=>!0};var Oee=D({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function $ee(e,t,n,a,o,l){return _(),$("div",{class:R(e.ns.be("group","title")),style:qe({...e.style,lineHeight:`${e.height}px`})},Se(e.item.label),7)}var Aee=En(Oee,[["render",$ee]]);function Ree(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Nee=D({props:Eee,emits:Mee,setup(e,{emit:t}){const n=Pe(Zh),a=ve("select"),{hoverItem:o,selectOptionClick:l}=Ree(e,{emit:t}),{getLabel:r}=Du(n.props),s=n.contentId;return{ns:a,contentId:s,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Rr(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:l,getLabel:r}}});const Pee=["id","aria-selected","aria-disabled"];function Iee(e,t,n,a,o,l){return _(),$("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:qe(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,Se(e.getLabel(e.item)),1)])],46,Pee)}var Lee=En(Nee,[["render",Iee]]);const Vee={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var Bee=D({name:"ElSelectDropdown",props:Vee,setup(e,{slots:t,expose:n}){const a=Pe(Zh),o=ve("select"),{getLabel:l,getValue:r,getDisabled:s}=Du(a.props),u=V([]),c=V(),d=x(()=>e.data.length);fe(()=>d.value,()=>{var O,I;(I=(O=a.tooltipRef.value)==null?void 0:O.updatePopper)==null||I.call(O)});const f=x(()=>Et(a.props.estimatedOptionHeight)),h=x(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:O=>u.value[O]}),g=(O=[],I)=>{const{props:{valueKey:L}}=a;return lt(I)?O&&O.some(z=>jt(bn(z,L))===bn(I,L)):O.includes(I)},p=(O,I)=>{if(lt(I)){const{valueKey:L}=a.props;return bn(O,L)===bn(I,L)}else return O===I},v=(O,I)=>a.props.multiple?g(O,r(I)):p(O,r(I)),m=(O,I)=>{const{disabled:L,multiple:z,multipleLimit:q}=a.props;return L||!I&&(z?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:c,isSized:f,isItemDisabled:m,isItemHovering:y,isItemSelected:v,scrollToItem:O=>{const I=c.value;I&&I.scrollToItem(O)},resetScrollTop:()=>{const O=c.value;O&&O.resetScrollTop()}});const C=O=>{const{index:I,data:L,style:z}=O,q=i(f),{itemSize:U,estimatedSize:F}=i(h),{modelValue:N}=a.props,{onSelect:P,onHover:B}=a,W=L[I];if(W.type==="Group")return Q(Aee,{item:W,style:z,height:q?U:F},null);const K=v(N,W),j=m(N,K),G=y(I);return Q(Lee,ht(O,{selected:K,disabled:s(W)||j,created:!!W.created,hovering:G,item:W,onSelect:P,onHover:B}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Q("span",null,[l(W)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=a,T=()=>{S("forward")},M=()=>{S("backward")},A=O=>{const I=Kt(O),{tab:L,esc:z,down:q,up:U,enter:F,numpadEnter:N}=Ce;switch([z,q,U,F,N].includes(I)&&(O.preventDefault(),O.stopPropagation()),I){case L:case z:break;case q:T();break;case U:M();break;case F:case N:k();break}};return()=>{var N,P,B,W;const{data:O,width:I}=e,{height:L,multiple:z,scrollbarAlwaysOn:q}=a.props,U=x(()=>td?!0:q),F=i(f)?Uw:gee;return Q("div",{class:[o.b("dropdown"),o.is("multiple",z)],style:{width:`${I}px`}},[(N=t.header)==null?void 0:N.call(t),((P=t.loading)==null?void 0:P.call(t))||((B=t.empty)==null?void 0:B.call(t))||Q(F,ht({ref:c},i(h),{className:o.be("dropdown","list"),scrollbarAlwaysOn:U.value,data:O,height:L,width:I,total:O.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:A}),{default:K=>Q(C,K,null)}),(W=t.footer)==null?void 0:W.call(t)])}}});function zee(e,t){const{aliasProps:n,getLabel:a,getValue:o}=Du(e),l=V(0),r=V(),s=x(()=>e.allowCreate&&e.filterable);fe(()=>e.options,g=>{const p=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(a(v)))});function u(g){const p=v=>a(v)===g;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(g){s.value&&(e.multiple&&g.created?l.value++:r.value=g)}function d(g){if(s.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const p={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(g){if(!s.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const p=t.createdOptions.findIndex(v=>o(v)===o(g));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){s.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const Dee=(e,t)=>{const{t:n}=kt(),a=vn(),o=ve("select"),l=ve("input"),{form:r,formItem:s}=Bn(),{inputId:u}=Pa(e,{formItemContext:s}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:g}=Du(e),{valueOnClear:p,isEmptyValue:v}=Iu(e),m=Nt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=V(-1),b=V(!1),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(),O=V(),I=V(),L=V(),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}=Pu({afterComposition:ke=>Jt(ke)}),N=sn(),{wrapperRef:P,isFocused:B,handleBlur:W}=Cl(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(ke){var rt,Ct;return((rt=S.value)==null?void 0:rt.isFocusInsideContent(ke))||((Ct=k.value)==null?void 0:Ct.isFocusInsideContent(ke))},afterBlur(){var ke;ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&((ke=s==null?void 0:s.validate)==null||ke.call(s,"blur").catch(rt=>pt(rt)))}}),K=x(()=>Ae("")),j=x(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),G=V([]),ee=V(!1),te=x(()=>(r==null?void 0:r.statusIcon)??!1),ue=x(()=>{const ke=G.value.length*e.itemHeight;return ke>e.height?e.height:ke}),ne=x(()=>e.multiple?be(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=x(()=>e.clearable&&!N.value&&ne.value&&(B.value||m.inputHovering)),se=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=x(()=>se.value&&o.is("reverse",ee.value)),X=x(()=>(s==null?void 0:s.validateState)||""),H=x(()=>{if(X.value)return hf[X.value]}),Z=x(()=>e.remote?e.debounce:0),le=x(()=>e.remote&&!m.inputValue&&!j.value),ce=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&j.value&&G.value.length===0?e.noMatchText||n("el.select.noMatch"):j.value?null:e.noDataText||n("el.select.noData")),ge=x(()=>e.filterable&&Fe(e.filterMethod)),me=x(()=>e.filterable&&e.remote&&Fe(e.remoteMethod)),Ae=ke=>{const rt=new RegExp(Xp(ke),"i"),Ct=xt=>ge.value||me.value?!0:ke?rt.test(d(xt)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((xt,zn)=>{const va=g(zn);if(be(va)){const ai=va.filter(Ct);ai.length>0&&xt.push({label:d(zn),type:"Group"},...ai)}else(e.remote||Ct(zn))&&xt.push(zn);return xt},[])},Ne=()=>{G.value=Ae(m.inputValue)},Re=x(()=>{const ke=new Map;return K.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),ye=x(()=>{const ke=new Map;return G.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),Ee=x(()=>G.value.every(ke=>h(ke))),we=_n(),Ie=x(()=>we.value==="small"?"small":"default"),ze=()=>{var rt;if(He(e.fitInputWidth)){y.value=e.fitInputWidth;return}const ke=((rt=w.value)==null?void 0:rt.offsetWidth)||200;!e.fitInputWidth&&j.value?Le(()=>{y.value=Math.max(ke,et())}):y.value=ke},et=()=>{var va,ai;const ke=document.createElement("canvas").getContext("2d"),rt=o.be("dropdown","item"),Ct=(((ai=(va=O.value)==null?void 0:va.listRef)==null?void 0:ai.innerRef)||document).querySelector(`.${rt}`);if(Ct===null||ke===null)return 0;const xt=getComputedStyle(Ct),zn=Number.parseFloat(xt.paddingLeft)+Number.parseFloat(xt.paddingRight);return ke.font=`bold ${xt.font.replace(new RegExp(`\\b${xt.fontWeight}\\b`),"")}`,G.value.reduce((F9,K9)=>{const W9=ke.measureText(d(K9));return Math.max(W9.width,F9)},0)+zn},nt=()=>{if(!C.value)return 0;const ke=window.getComputedStyle(C.value);return Number.parseFloat(ke.gap||"6px")},at=x(()=>{const ke=nt(),rt=e.filterable?ke+jd:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-ke-rt:m.selectionWidth-rt}px`}}),Me=x(()=>({maxWidth:`${m.selectionWidth}px`})),Ge=x(()=>be(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),ut=x(()=>{const ke=e.placeholder??n("el.select.placeholder");return e.multiple||!ne.value?ke:m.selectedLabel}),je=x(()=>{var ke,rt;return(rt=(ke=S.value)==null?void 0:ke.popperRef)==null?void 0:rt.contentRef}),tt=x(()=>{if(e.multiple){const ke=e.modelValue.length;if(ke>0&&ye.value.has(e.modelValue[ke-1])){const{index:rt}=ye.value.get(e.modelValue[ke-1]);return rt}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:ke}=ye.value.get(e.modelValue);return ke}return-1}),yt=x({get(){return ee.value&&(e.loading||!le.value||e.remote&&!!a.empty)&&(!b.value||!ca(m.previousQuery)||j.value)},set(ke){ee.value=ke}}),he=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Ve=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pe,removeNewOption:Te,selectNewOption:ct,clearAllNewOption:Pt}=zee(e,m),Gt=ke=>{var rt;N.value||e.filterable&&ee.value&&ke&&!((rt=A.value)!=null&&rt.contains(ke.target))||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},$e=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),pe(m.inputValue),Le(()=>{Ze(m.inputValue)})},We=yu(()=>{$e(),b.value=!1},Z),Ze=ke=>{m.previousQuery===ke||z.value||(m.previousQuery=ke,e.filterable&&Fe(e.filterMethod)?e.filterMethod(ke):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(ke),e.defaultFirstOption&&(e.filterable||e.remote)&&G.value.length?Le(dn):Le(Tt))},dn=()=>{const ke=G.value.filter(xt=>!xt.disabled&&xt.type!=="Group"),rt=ke.find(xt=>xt.created),Ct=ke[0];m.hoveringIndex=Ue(G.value,rt||Ct)},zt=ke=>{on(e.modelValue,ke)||t(bt,ke)},Xt=ke=>{t(ot,ke),zt(ke),m.previousValue=e.multiple?String(ke):ke,Le(()=>{if(e.multiple&&be(e.modelValue)){const rt=m.cachedOptions.slice(),Ct=e.modelValue.map(xt=>ti(xt,rt));on(m.cachedOptions,Ct)||(m.cachedOptions=Ct)}else Ur(!0)})},Ue=(ke=[],rt)=>{if(!lt(rt))return ke.indexOf(rt);const Ct=e.valueKey;let xt=-1;return ke.some((zn,va)=>bn(zn,Ct)===bn(rt,Ct)?(xt=va,!0):!1),xt},Xe=ke=>lt(ke)?bn(ke,e.valueKey):ke,mt=()=>{ze()},Mn=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},go=()=>{m.collapseItemWidth=L.value.getBoundingClientRect().width},ja=()=>{var ke,rt;(rt=(ke=S.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Gu=()=>{var ke,rt;(rt=(ke=k.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Xl=ke=>{const rt=f(ke);if(e.multiple){let Ct=e.modelValue.slice();const xt=Ue(Ct,rt);xt>-1?(Ct=[...Ct.slice(0,xt),...Ct.slice(xt+1)],m.cachedOptions.splice(xt,1),Te(ke)):(e.multipleLimit<=0||Ct.length{let Ct=e.modelValue.slice();const xt=Ue(Ct,f(rt));xt>-1&&!N.value&&(Ct=[...e.modelValue.slice(0,xt),...e.modelValue.slice(xt+1)],m.cachedOptions.splice(xt,1),Xt(Ct),t("remove-tag",f(rt)),Te(rt)),ke.stopPropagation(),Ko()},Ko=()=>{var ke;(ke=T.value)==null||ke.focus()},Nf=()=>{var ke;if(ee.value){ee.value=!1,Le(()=>{var rt;return(rt=T.value)==null?void 0:rt.blur()});return}(ke=T.value)==null||ke.blur()},Pf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},If=ke=>s8(ke,rt=>!m.cachedOptions.some(Ct=>f(Ct)===rt&&h(Ct))),Lf=ke=>{const rt=Kt(ke);if(e.multiple&&rt!==Ce.delete&&m.inputValue.length===0){ke.preventDefault();const Ct=e.modelValue.slice(),xt=If(Ct);if(xt<0)return;const zn=Ct[xt];Ct.splice(xt,1);const va=m.cachedOptions[xt];m.cachedOptions.splice(xt,1),Te(va),Xt(Ct),t("remove-tag",zn)}},Vf=()=>{let ke;be(e.modelValue)?ke=[]:ke=p.value,m.selectedLabel="",ee.value=!1,Xt(ke),t("clear"),Pt(),Ko()},kl=(ke,rt=void 0)=>{const Ct=G.value;if(!["forward","backward"].includes(ke)||N.value||Ct.length<=0||Ee.value||z.value)return;if(!ee.value)return Gt();Et(rt)&&(rt=m.hoveringIndex);let xt=-1;ke==="forward"?(xt=rt+1,xt>=Ct.length&&(xt=0)):ke==="backward"&&(xt=rt-1,(xt<0||xt>=Ct.length)&&(xt=Ct.length-1));const zn=Ct[xt];if(h(zn)||zn.type==="Group")return kl(ke,xt);m.hoveringIndex=xt,Wo(xt)},xe=()=>{if(ee.value)~m.hoveringIndex&&G.value[m.hoveringIndex]&&Xl(G.value[m.hoveringIndex]);else return Gt()},Qe=ke=>{m.hoveringIndex=ke??-1},Tt=()=>{if(!e.multiple)m.hoveringIndex=G.value.findIndex(ke=>Xe(f(ke))===Xe(e.modelValue));else{const ke=e.modelValue.length;if(ke>0){const rt=e.modelValue[ke-1];m.hoveringIndex=G.value.findIndex(Ct=>Xe(rt)===Xe(f(Ct)))}else m.hoveringIndex=-1}},Jt=ke=>{if(m.inputValue=ke.target.value,e.remote)b.value=!0,We();else return $e()},Cn=ke=>{ee.value=!1,B.value&&W(new FocusEvent("blur",ke))},Pn=()=>(m.isBeforeHide=!1,Le(()=>{~tt.value&&Wo(tt.value)})),Wo=ke=>{O.value.scrollToItem(ke)},ti=(ke,rt)=>{const Ct=Xe(ke);if(Re.value.has(Ct)){const{option:xt}=Re.value.get(Ct);return xt}if(rt&&rt.length){const xt=rt.find(zn=>Xe(f(zn))===Ct);if(xt)return xt}return{[c.value.value]:ke,[c.value.label]:ke}},Jl=ke=>{var rt;return((rt=Re.value.get(f(ke)))==null?void 0:rt.index)??-1},Ur=(ke=!1)=>{if(e.multiple)if(e.modelValue.length>0){const rt=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const Ct of e.modelValue){const xt=ti(Ct,rt);m.cachedOptions.push(xt)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ne.value){m.previousValue=e.modelValue;const rt=G.value,Ct=rt.findIndex(xt=>Xe(f(xt))===Xe(e.modelValue));~Ct?m.selectedLabel=d(rt[Ct]):(!m.selectedLabel||ke)&&(m.selectedLabel=Xe(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Pt(),ze()};fe(()=>e.fitInputWidth,()=>{ze()}),fe(ee,ke=>{ke?(e.persistent||ze(),Ze("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,pe(""))}),fe(()=>e.modelValue,(ke,rt)=>{var Ct;(!ke||be(ke)&&ke.length===0||e.multiple&&!on(ke.toString(),m.previousValue)||!e.multiple&&Xe(ke)!==Xe(m.previousValue))&&Ur(!0),!on(ke,rt)&&e.validateEvent&&((Ct=s==null?void 0:s.validate)==null||Ct.call(s,"change").catch(xt=>pt(xt)))},{deep:!0}),fe(()=>e.options,()=>{const ke=T.value;(!ke||ke&&document.activeElement!==ke)&&Ur()},{deep:!0,flush:"post"}),fe(()=>G.value,()=>(ze(),O.value&&Le(O.value.resetScrollTop))),da(()=>{m.isBeforeHide||Ne()}),da(()=>{const{valueKey:ke,options:rt}=e,Ct=new Map;for(const xt of rt){const zn=f(xt);let va=zn;if(lt(va)&&(va=bn(zn,ke)),Ct.get(va)){pt("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else Ct.set(va,!0)}}),gt(()=>{Ur()}),Zt(w,mt),Zt(C,Mn),Zt(P,ja),Zt(I,Gu),Zt(L,go);let ni;return fe(()=>yt.value,ke=>{ke?ni=Zt(O,ja).stop:(ni==null||ni(),ni=void 0),t("visible-change",ke)}),{inputId:u,collapseTagSize:Ie,currentPlaceholder:ut,expanded:ee,emptyText:ce,popupHeight:ue,debounce:Z,allOptions:K,allOptionsValueMap:Re,filteredOptions:G,iconComponent:se,iconReverse:Y,tagStyle:at,collapseTagStyle:Me,popperSize:y,dropdownMenuVisible:yt,hasModelValue:ne,shouldShowPlaceholder:Ge,selectDisabled:N,selectSize:we,needStatusIcon:te,showClearBtn:de,states:m,isFocused:B,nsSelect:o,nsInput:l,inputRef:T,menuRef:O,tagMenuRef:I,tooltipRef:S,tagTooltipRef:k,selectRef:w,wrapperRef:P,selectionRef:C,prefixRef:M,suffixRef:A,collapseItemRef:L,popperRef:je,validateState:X,validateIcon:H,showTagList:he,collapseTagList:Ve,debouncedOnInputChange:We,deleteTag:Xu,getLabel:d,getValue:f,getDisabled:h,getValueKey:Xe,getIndex:Jl,handleClear:Vf,handleClickOutside:Cn,handleDel:Lf,handleEsc:Pf,focus:Ko,blur:Nf,handleMenuEnter:Pn,handleResize:mt,resetSelectionWidth:Mn,updateTooltip:ja,updateTagTooltip:Gu,updateOptions:Ne,toggleMenu:Gt,scrollTo:Wo,onInput:Jt,onKeyboardNavigate:kl,onKeyboardSelect:xe,onSelect:Xl,onHover:Qe,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}};var Hee=D({name:"ElSelectV2",components:{ElSelectMenu:Bee,ElTag:ll,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:kee,emits:Tee,setup(e,{emit:t}){const n=x(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return be(u)?c?u:d:c?d:u}),a=Dee(Nt({...Nn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:l}=Gp(),r=Kn();wt(Zh,{props:Nt({...Nn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:r,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=x(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:y6}}});const Fee=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Kee=["textContent"],Wee={key:1};function jee(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-select-menu"),d=kp("click-outside");return ft((_(),$("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ae(()=>{var f;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,g,p,v,m,y,b,w,C,S,k,T,M;return[(_(!0),$(Ke,null,_t(e.showTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((h=e.tagTooltip)==null?void 0:h.fallbackPlacements)??["bottom","top","right","left"],effect:((g=e.tagTooltip)==null?void 0:g.effect)??e.effect,placement:((p=e.tagTooltip)==null?void 0:p.placement)??"bottom","popper-class":((v=e.tagTooltip)==null?void 0:v.popperClass)??e.popperClass,"popper-style":((m=e.tagTooltip)==null?void 0:m.popperStyle)??e.popperStyle,teleported:((y=e.tagTooltip)==null?void 0:y.teleported)??e.teleported,"append-to":((b=e.tagTooltip)==null?void 0:b.appendTo)??e.appendTo,"popper-options":((w=e.tagTooltip)==null?void 0:w.popperOptions)??e.popperOptions,transition:(C=e.tagTooltip)==null?void 0:C.transition,"show-after":(S=e.tagTooltip)==null?void 0:S.showAfter,"hide-after":(k=e.tagTooltip)==null?void 0:k.hideAfter,"auto-close":(T=e.tagTooltip)==null?void 0:T.autoClose,offset:(M=e.tagTooltip)==null?void 0:M.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:qe(e.collapseTagStyle),"disable-transitions":""},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(Ke,null,_t(e.collapseTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:qe(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[1]||(t[1]=Je(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[3]||(t[3]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[4]||(t[4]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[5]||(t[5]=an(Je(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=an(Je(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=an(Je((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[8]||(t[8]=an(Je((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[9]||(t[9]=an(Je((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,Fee),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,Kee)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:((f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(_(),$("span",Wee,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?ft((_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(dt(e.iconComponent)))]),_:1},8,["class"])),[[At,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Je(e.handleClear,["prevent","stop"])},{default:ae(()=>[(_(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},fa({default:ae(f=>[oe(e.$slots,"default",nl(al(f)))]),_:2},[e.$slots.header?{name:"header",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var qee=En(Hee,[["render",jee]]);const Uee=it(qee),Yee=_e({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:J([Number,Object])}}),Gee=_e({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var Xee=D({name:"ElSkeletonItem",__name:"skeleton-item",props:Gee,setup(e){const t=ve("skeleton");return(n,a)=>(_(),$("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(_(),ie(i(_y),{key:0})):re("v-if",!0)],2))}}),kd=Xee,Jee=D({name:"ElSkeleton",__name:"skeleton",props:Yee,setup(e,{expose:t}){const n=e,a=ve("skeleton"),o=BO(Bt(n,"loading"),n.throttle);return t({uiLoading:o}),(l,r)=>i(o)?(_(),$("div",ht({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},l.$attrs),[(_(!0),$(Ke,null,_t(e.count,s=>(_(),$(Ke,{key:s},[i(o)?oe(l.$slots,"template",{key:s},()=>[Q(kd,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),$(Ke,null,_t(e.rows,u=>(_(),ie(kd,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(l.$slots,"default",nl(ht({key:1},l.$attrs)))}}),Zee=Jee;const Qee=it(Zee,{SkeletonItem:kd}),ete=nn(kd),t5=Symbol("sliderContextKey"),tte=_e({modelValue:{type:J([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:J([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:kn,inputSize:kn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:J(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:J(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ho,default:"top"},marks:{type:J(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...oa(["ariaLabel"])}),b0=e=>He(e)||be(e)&&e.every(He),nte={[ot]:b0,[wn]:b0,[bt]:b0},ate=(e,t,n)=>{const a=V();return gt(async()=>{e.range?(be(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!He(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Vt(window,"resize",n),await Le(),n()}),{sliderWrapper:a}},ote=e=>{const t=x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return da(()=>{if(e.step==="mark"&&!e.marks&&pt("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(l=>l.point),o=n.filter(l=>{const r=Number.parseFloat(l);return Number.isNaN(r)||!a.includes(r)});o.length>0&&pt("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(l=>`'${l}'`).join(", ")}] and will be ignored.`)}}),t},lte=(e,t,n)=>{const{formItem:a}=Bn(),o=qt(),l=V(),r=V(),s={firstButton:l,secondButton:r},u=sn(),c=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),f=x(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=x(()=>e.vertical?{height:e.height}:{}),p=x(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=I=>{const L=e.min+I*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(c.value-L)t.secondValue?"firstButton":"secondButton",s[z]},y=I=>{const L=m(I);return L.value.setPosition(I),L},b=I=>{t.firstValue=I??e.min,C(e.range?[c.value,d.value]:I??e.min)},w=I=>{t.secondValue=I,e.range&&C([c.value,d.value])},C=I=>{n(ot,I),n(wn,I)},S=async()=>{await Le(),n(bt,e.range?[c.value,d.value]:e.modelValue)},k=I=>{var z,q,U,F;if(u.value||t.dragging)return;v();let L=0;if(e.vertical){const N=((q=(z=I.touches)==null?void 0:z.item(0))==null?void 0:q.clientY)??I.clientY;L=(o.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else L=((((F=(U=I.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)??I.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!(L<0||L>100))return y(L)};return{elFormItem:a,slider:o,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:p,resetSize:v,setPosition:y,emitChange:S,onSliderWrapperPrevent:I=>{var L,z;((L=s.firstButton.value)!=null&&L.dragging||(z=s.secondButton.value)!=null&&z.dragging)&&I.preventDefault()},onSliderClick:I=>{k(I)&&S()},onSliderDown:async I=>{const L=k(I);L&&(await Le(),L.value.onButtonDown(I))},onSliderMarkerDown:I=>{u.value||t.dragging||y(I)&&S()},setFirstValue:b,setSecondValue:w}},rte=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&pt("ElSlider","step should not be 0."),[];const r=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*s);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),ste=(e,t,n,a,o,l)=>{const r=c=>{o(ot,c),o(wn,c)},s=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var d,f;e.min>e.max&&tn("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&be(c)?c[1]e.max?r([e.max,e.max]):c[0]e.max?r([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>pt(h))),t.oldValue=c.slice())):!e.range&&He(c)&&!Number.isNaN(c)&&(ce.max?r(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((f=l==null?void 0:l.validate)==null||f.call(l,"change").catch(h=>pt(h))),t.oldValue=c)))};u(),fe(()=>t.dragging,c=>{c||u()}),fe(()=>e.modelValue,(c,d)=>{t.dragging||be(c)&&be(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),fe(()=>[e.min,e.max],()=>{u()})},ite=(e,t,n)=>{const a=V(),o=V(!1),l=x(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:x(()=>l.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Vo(()=>{n.value&&(o.value=!0)},50),hideTooltip:Vo(()=>{n.value&&(o.value=!1)},50)}},ute=(e,t,n)=>{const{disabled:a,min:o,max:l,step:r,showTooltip:s,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:g,updateDragging:p,markList:v}=Pe(t5),{tooltip:m,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:C}=ite(e,f,s),S=V(),k=x(()=>`${(e.modelValue-o.value)/(l.value-o.value)*100}%`),T=x(()=>e.vertical?{bottom:k.value}:{left:k.value}),M=x(()=>r.value==="mark"&&v.value.length>0),A=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||C()},I=ue=>{a.value||(ue.preventDefault(),j(ue),window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},L=ue=>{a.value||(t.newPosition=Number.parseFloat(k.value)+ue/(l.value-o.value)*100,te(t.newPosition),h())},z=ue=>{if(a.value||!v.value.length)return;const ne=e.modelValue,de=Number.EPSILON,se=Math.abs(ue);let Y;if(ue>0){const X=v.value.findIndex(H=>H.point>ne+de);if(X!==-1){const H=Math.min(X+se-1,v.value.length-1);Y=v.value[H].point}}else{let X=-1;for(let H=v.value.length-1;H>=0;H--)if(v.value[H].point{M.value?z(-1):He(r.value)&&L(-r.value)},U=()=>{M.value?z(1):He(r.value)&&L(r.value)},F=()=>{M.value?z(-4):He(r.value)&&L(-r.value*4)},N=()=>{M.value?z(4):He(r.value)&&L(r.value*4)},P=()=>{a.value||(te(0),h())},B=()=>{a.value||(te(100),h())},W=ue=>{const ne=Kt(ue);let de=!0;switch(ne){case Ce.left:case Ce.down:q();break;case Ce.right:case Ce.up:U();break;case Ce.home:P();break;case Ce.end:B();break;case Ce.pageDown:F();break;case Ce.pageUp:N();break;default:de=!1;break}de&&ue.preventDefault()},K=ue=>{let ne,de;return ue.type.startsWith("touch")?(de=ue.touches[0].clientY,ne=ue.touches[0].clientX):(de=ue.clientY,ne=ue.clientX),{clientX:ne,clientY:de}},j=ue=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:de}=K(ue);e.vertical?t.startY=de:t.startX=ne,t.startPosition=Number.parseFloat(k.value),t.newPosition=t.startPosition},G=ue=>{if(t.dragging){t.isClick=!1,w(),g();let ne;const{clientX:de,clientY:se}=K(ue);e.vertical?(t.currentY=se,ne=(t.startY-t.currentY)/d.value*100):(t.currentX=de,ne=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ne,te(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||te(t.newPosition),h()},0),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},te=async ue=>{if(ue===null||Number.isNaN(+ue))return;ue=pr(ue,0,100);let ne;if(r.value==="mark")v.value.length===0?ne=ue<=50?o.value:l.value:ne=v.value.reduce((de,se)=>Math.abs(se.position-ue)t.dragging,ue=>{p(ue)}),Vt(S,"touchstart",I,{passive:!1}),{disabled:a,button:S,tooltip:m,tooltipVisible:y,showTooltip:s,persistent:u,wrapperStyle:T,formatValue:b,handleMouseEnter:A,handleMouseLeave:O,onButtonDown:I,onKeyDown:W,setPosition:te}},cte=_e({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ho,default:"top"}}),dte={[ot]:e=>He(e)},fte=["tabindex"];var pte=D({name:"ElSliderButton",__name:"button",props:cte,emits:dte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),r=Nt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),s=x(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:g,wrapperStyle:p,formatValue:v,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:C}=ute(a,r,o),{hovering:S,dragging:k}=Nn(r);return t({onButtonDown:b,onKeyDown:w,setPosition:C,hovering:S,dragging:k}),(T,M)=>(_(),$("div",{ref_key:"button",ref:c,class:R([i(l).e("button-wrapper"),{hover:i(S),dragging:i(k)}]),style:qe(i(p)),tabindex:i(u)?void 0:0,onMouseenter:M[0]||(M[0]=(...A)=>i(m)&&i(m)(...A)),onMouseleave:M[1]||(M[1]=(...A)=>i(y)&&i(y)(...A)),onMousedown:M[2]||(M[2]=(...A)=>i(b)&&i(b)(...A)),onFocus:M[3]||(M[3]=(...A)=>i(m)&&i(m)(...A)),onBlur:M[4]||(M[4]=(...A)=>i(y)&&i(y)(...A)),onKeydown:M[5]||(M[5]=(...A)=>i(w)&&i(w)(...A))},[Q(i(Vn),{ref_key:"tooltip",ref:d,visible:i(g),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!i(f),persistent:s.value},{content:ae(()=>[E("span",null,Se(i(v)),1)]),default:ae(()=>[E("div",{class:R([i(l).e("button"),{hover:i(S),dragging:i(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,fte))}}),Ng=pte;const hte=_e({mark:{type:J([String,Object]),default:void 0}});var vte=D({name:"ElSliderMarker",props:hte,setup(e){const t=ve("slider"),n=x(()=>Be(e.mark)?e.mark:e.mark.label),a=x(()=>Be(e.mark)?void 0:e.mark.style);return()=>Ye("div",{class:t.e("marks-text"),style:a.value},n.value)}});const mte=["id","role","aria-label","aria-labelledby"],gte={key:1};var yte=D({name:"ElSlider",__name:"slider",props:tte,emits:nte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),{t:r}=kt(),s=Nt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:g,maxValue:p,runwayStyle:v,barStyle:m,resetSize:y,emitChange:b,onSliderWrapperPrevent:w,onSliderClick:C,onSliderDown:S,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:M}=lte(a,s,o),{stops:A,getStopStyle:O}=rte(a,s,g,p),{inputId:I,isLabeledByFormItem:L}=Pa(a,{formItemContext:u}),z=_n(),q=x(()=>a.inputSize||z.value),U=x(()=>a.showInput&&!a.range&&a.step!=="mark"),F=x(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),N=x(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):F.value),P=x(()=>a.formatValueText?a.formatValueText(ue.value):`${ue.value}`),B=x(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),W=x(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),K=x(()=>[l.b(),l.m(z.value),l.is("vertical",a.vertical),{[l.m("with-input")]:U.value}]),j=ote(a);ste(a,s,g,p,o,u);const G=x(()=>He(a.step)?a.step:1),ee=x(()=>{const Y=He(a.step)?a.step:1,X=[a.min,a.max,Y].map(H=>{const Z=`${H}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,X)}),{sliderWrapper:te}=ate(a,s,y),{firstValue:ue,secondValue:ne,sliderSize:de}=Nn(s),se=Y=>{s.dragging=Y};return Vt(te,"touchstart",w,{passive:!1}),Vt(te,"touchmove",w,{passive:!1}),wt(t5,{...Nn(a),sliderSize:de,disabled:h,precision:ee,markList:j,emitChange:b,resetSize:y,updateDragging:se}),t({onSliderClick:C}),(Y,X)=>{var H,Z;return _(),$("div",{id:Y.range?i(I):void 0,ref_key:"sliderWrapper",ref:te,class:R(K.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i(L)?F.value:void 0,"aria-labelledby":Y.range&&i(L)?(H=i(u))==null?void 0:H.labelId:void 0},[E("div",{ref_key:"slider",ref:c,class:R([i(l).e("runway"),{"show-input":U.value},i(l).is("disabled",i(h))]),style:qe(i(v)),onMousedown:X[0]||(X[0]=(...le)=>i(S)&&i(S)(...le)),onTouchstartPassive:X[1]||(X[1]=(...le)=>i(S)&&i(S)(...le))},[E("div",{class:R(i(l).e("bar")),style:qe(i(m))},null,6),Q(Ng,{id:Y.range?void 0:i(I),ref_key:"firstButton",ref:d,"model-value":i(ue),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i(L)?N.value:void 0,"aria-labelledby":!Y.range&&i(L)?(Z=i(u))==null?void 0:Z.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(ne):Y.max,"aria-valuenow":i(ue),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(_(),ie(Ng,{key:0,ref_key:"secondButton",ref:f,"model-value":i(ne),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":B.value,"aria-valuemin":i(ue),"aria-valuemax":Y.max,"aria-valuenow":i(ne),"aria-valuetext":W.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(_(),$("div",gte,[(_(!0),$(Ke,null,_t(i(A),(le,ce)=>(_(),$("div",{key:ce,class:R(i(l).e("stop")),style:qe(i(O)(le))},null,6))),128))])):re("v-if",!0),i(j).length>0?(_(),$(Ke,{key:2},[E("div",null,[(_(!0),$(Ke,null,_t(i(j),(le,ce)=>(_(),$("div",{key:ce,style:qe(i(O)(le.position)),class:R([i(l).e("stop"),i(l).e("marks-stop")])},null,6))),128))]),E("div",{class:R(i(l).e("marks"))},[(_(!0),$(Ke,null,_t(i(j),(le,ce)=>(_(),ie(i(vte),{key:ce,mark:le.mark,style:qe(i(O)(le.position)),onMousedown:Je(ge=>i(k)(le.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),U.value?(_(),ie(i(Ow),{key:0,ref:"input","model-value":i(ue),class:R(i(l).e("input")),step:G.value,disabled:i(h),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:q.value,"onUpdate:modelValue":i(T),onChange:i(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,mte)}}}),bte=yte;const wte=it(bte),Cte=_e({prefixCls:{type:String}}),Pg=D({name:"ElSpaceItem",props:Cte,setup(e,{slots:t}){const n=ve("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>Ye("div",{class:a.value},oe(t,"default"))}}),Ig={small:8,default:12,large:16};function _te(e){const t=ve("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=V(0),o=V(0),l=x(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return da(()=>{const{size:s="small",wrap:u,direction:c,fill:d}=e;if(be(s)){const[f=0,h=0]=s;a.value=f,o.value=h}else{let f;He(s)?f=s:f=Ig[s||"small"]||Ig.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const Ste=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:J([String,Object,Array]),default:""},style:{type:J([String,Array,Object]),default:""},alignment:{type:J(String),default:"center"},prefixCls:{type:String},spacer:{type:J([Object,String,Number,Array]),default:null,validator:e=>Wt(e)||He(e)||Be(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:io,validator:e=>He(e)||be(e)&&e.length===2&&e.every(He)}}),xte=D({name:"ElSpace",props:Ste,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=_te(e);function l(r,s="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{v2(d)?be(d.children)&&d.children.forEach((h,g)=>{v2(h)&&be(h.children)?l(h.children,`${s+g}-`,u):Wt(h)&&(h==null?void 0:h.type)===gn?u.push(h):u.push(Q(Pg,{style:o.value,prefixCls:c,key:`nested-${s+g}`},{default:()=>[h]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}):V$(d)&&u.push(Q(Pg,{style:o.value,prefixCls:c,key:`LoopKey${s+f}`},{default:()=>[d]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}),u}return()=>{const{spacer:r,direction:s}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(be(u.children)){let c=l(u.children);if(r){const d=c.length-1;c=c.reduce((f,h,g)=>{const p=[...f,h];return g!==d&&p.push(Q("span",{style:[o.value,s==="vertical"?"width: 100%":null],key:g},[Wt(r)?r:St(r,qa.TEXT)],qa.STYLE)),p},[])}return Q("div",{class:n.value,style:a.value},c,qa.STYLE|qa.CLASS)}return u.children}}}),kte=it(xte),Ete=_e({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:J([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:J([String,Object,Array])}});var Tte=D({name:"ElStatistic",__name:"statistic",props:Ete,setup(e,{expose:t}){const n=e,a=ve("statistic"),o=x(()=>{const{value:l,formatter:r,precision:s,decimalSeparator:u,groupSeparator:c}=n;if(Fe(r))return r(l);if(!He(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(l,r)=>(_(),$("div",{class:R(i(a).b())},[l.$slots.title||e.title?(_(),$("div",{key:0,class:R(i(a).e("head"))},[oe(l.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[l.$slots.prefix||e.prefix?(_(),$("div",{key:0,class:R(i(a).e("prefix"))},[oe(l.$slots,"prefix",{},()=>[E("span",null,Se(e.prefix),1)])],2)):re("v-if",!0),E("span",{class:R(i(a).e("number")),style:qe(e.valueStyle)},Se(o.value),7),l.$slots.suffix||e.suffix?(_(),$("div",{key:1,class:R(i(a).e("suffix"))},[oe(l.$slots,"suffix",{},()=>[E("span",null,Se(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),Mte=Tte;const n5=it(Mte),Ote=_e({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:J([Number,Object]),default:0},valueStyle:{type:J([String,Object,Array])}}),$te={finish:()=>!0,[bt]:e=>He(e)},Ate=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],Lg=e=>He(e)?new Date(e).getTime():e.valueOf(),Vg=(e,t)=>{let n=e;return Ate.reduce((a,[o,l])=>{const r=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(r.test(a)){const s=Math.floor(n/l);return n-=s*l,a.replace(r,u=>String(s).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var Rte=D({name:"ElCountdown",__name:"countdown",props:Ote,emits:$te,setup(e,{expose:t,emit:n}){const a=e,o=n;let l;const r=V(0),s=x(()=>Vg(r.value,a.format)),u=f=>Vg(f,a.format),c=()=>{l&&(cl(l),l=void 0)},d=()=>{const f=Lg(a.value),h=()=>{let g=f-Date.now();o(bt,g),g<=0?(g=0,c(),o("finish")):l=Fa(h),r.value=g};l=Fa(h)};return gt(()=>{r.value=Lg(a.value)-Date.now(),fe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Lt(()=>{c()}),t({displayValue:s}),(f,h)=>(_(),ie(i(n5),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},fa({_:2},[_t(f.$slots,(g,p)=>({name:p,fn:ae(()=>[oe(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),Nte=Rte;const Pte=it(Nte),Ite=_e({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Lte={[bt]:(e,t)=>[e,t].every(He)},a5="ElSteps",Vte=_e({title:{type:String,default:""},icon:{type:Ft},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var Bte=D({name:"ElSteps",__name:"steps",props:Ite,emits:Lte,setup(e,{emit:t}){const n=e,a=t,o=ve("steps"),{children:l,addChild:r,removeChild:s,ChildrenSorter:u}=df(vt(),"ElStep");return fe(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),wt(a5,{props:n,steps:l,addStep:r,removeStep:s}),fe(()=>n.active,(c,d)=>{a(bt,c,d)}),(c,d)=>(_(),$("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),Q(i(u))],2))}}),zte=Bte,Dte=D({name:"ElStep",__name:"item",props:Vte,setup(e){const t=e,n=ve("step"),a=V(-1),o=V({}),l=V(""),r=Pe(a5),s=vt();let u=0,c=0;gt(()=>{fe([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([M],[A])=>{c=A||0,u=M-c,k(M)},{immediate:!0})});const d=x(()=>t.status||l.value),f=x(()=>{const M=r.steps.value[a.value-1];return M?M.internalStatus.value:"wait"}),h=x(()=>r.props.alignCenter),g=x(()=>r.props.direction==="vertical"),p=x(()=>r.props.simple),v=x(()=>r.steps.value.length),m=x(()=>{var M;return((M=r.steps.value[v.value-1])==null?void 0:M.uid)===s.uid}),y=x(()=>p.value?"":r.props.space),b=x(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",m.value&&!y.value&&!h.value),n.is("center",h.value&&!g.value&&!p.value)]),w=x(()=>{const M={flexBasis:He(y.value)?`${y.value}px`:y.value?y.value:`${100/(v.value-(h.value?0:1))}%`};return g.value||m.value&&(M.maxWidth=`${100/v.value}%`),M}),C=M=>{a.value=M},S=M=>{const A=M==="wait",O={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-r.props.active)*150}ms`},I=M===r.props.processStatus||A?0:100;O.borderWidth=I&&!p.value?"1px":0,O[r.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},k=M=>{M>a.value?l.value=r.props.finishStatus:M===a.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const A=r.steps.value[a.value-1];A&&A.calcProgress(l.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:l,setIndex:C,calcProgress:S};return r.addStep(T),Lt(()=>{r.removeStep(T)}),(M,A)=>(_(),$("div",{style:qe(w.value),class:R(b.value)},[re(" icon & line "),E("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[p.value?re("v-if",!0):(_(),$("div",{key:0,class:R(i(n).e("line"))},[E("i",{class:R(i(n).e("line-inner")),style:qe(o.value)},null,6)],2)),E("div",{class:R([i(n).e("icon"),i(n).is(e.icon||M.$slots.icon?"icon":"text")])},[oe(M.$slots,"icon",{},()=>[e.icon?(_(),ie(i(De),{key:0,class:R(i(n).e("icon-inner"))},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1},8,["class"])):d.value==="success"?(_(),ie(i(De),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Xs))]),_:1},8,["class"])):d.value==="error"?(_(),ie(i(De),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])):p.value?re("v-if",!0):(_(),$("div",{key:3,class:R(i(n).e("icon-inner"))},Se(a.value+1),3))])],2)],2),re(" title & description "),E("div",{class:R(i(n).e("main"))},[E("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(M.$slots,"title",{},()=>[St(Se(e.title),1)])],2),p.value?(_(),$("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(_(),$("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(M.$slots,"description",{},()=>[St(Se(e.description),1)])],2))],2)],6))}}),o5=Dte;const Hte=it(zte,{Step:o5}),Fte=nn(o5),l5=e=>["",...io].includes(e),Kte=_e({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:l5},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ft},activeActionIcon:{type:Ft},activeIcon:{type:Ft},inactiveIcon:{type:Ft},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:J(Function)},id:String,tabindex:{type:[String,Number]},...oa(["ariaLabel"])}),Wte={[ot]:e=>Dt(e)||Be(e)||He(e),[bt]:e=>Dt(e)||Be(e)||He(e),[wn]:e=>Dt(e)||Be(e)||He(e)},jte=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],qte=["aria-hidden"],Ute={key:1},Yte={key:1},Gte=["aria-hidden"],w0="ElSwitch";var Xte=D({name:w0,__name:"switch",props:Kte,emits:Wte,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),r=_n(),s=ve("switch"),{inputId:u}=Pa(a,{formItemContext:l}),c=sn(x(()=>{if(a.loading)return!0})),d=V(a.modelValue!==!1),f=qt(),h=x(()=>[s.b(),s.m(r.value),s.is("disabled",c.value),s.is("checked",y.value)]),g=x(()=>[s.e("label"),s.em("label","left"),s.is("active",!y.value)]),p=x(()=>[s.e("label"),s.em("label","right"),s.is("active",y.value)]),v=x(()=>({width:rn(a.width)}));fe(()=>a.modelValue,()=>{d.value=!0});const m=x(()=>d.value?a.modelValue:!1),y=x(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(ot,a.inactiveValue),o(bt,a.inactiveValue),o(wn,a.inactiveValue)),fe(y,S=>{var k;f.value.checked=S,a.validateEvent&&((k=l==null?void 0:l.validate)==null||k.call(l,"change").catch(T=>pt(T)))});const b=()=>{const S=y.value?a.inactiveValue:a.activeValue;o(ot,S),o(bt,S),o(wn,S),Le(()=>{f.value.checked=y.value})},w=()=>{if(c.value)return;const{beforeChange:S}=a;if(!S){b();return}const k=S();[Kl(k),Dt(k)].includes(!0)||tn(w0,"beforeChange must return type `Promise` or `boolean`"),Kl(k)?k.then(T=>{T&&b()}).catch(T=>{pt(w0,`some error occurred: ${T}`)}):k&&b()},C=()=>{var S,k;(k=(S=f.value)==null?void 0:S.focus)==null||k.call(S)};return gt(()=>{f.value.checked=y.value}),t({focus:C,checked:y}),(S,k)=>(_(),$("div",{class:R(h.value),onClick:Je(w,["prevent"])},[E("input",{id:i(u),ref_key:"input",ref:f,class:R(i(s).e("input")),type:"checkbox",role:"switch","aria-checked":y.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:b,onKeydown:an(w,["enter"])},null,42,jte),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(_(),$("span",{key:0,class:R(g.value)},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",{key:1,"aria-hidden":y.value},Se(e.inactiveText),9,qte)):re("v-if",!0)])],2)):re("v-if",!0),E("span",{class:R(i(s).e("core")),style:qe(v.value)},[e.inlinePrompt?(_(),$("div",{key:0,class:R(i(s).e("inner"))},[y.value?(_(),$("div",{key:1,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",Yte,Se(e.activeText),1)):re("v-if",!0)])],2)):(_(),$("div",{key:0,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",Ute,Se(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),E("div",{class:R(i(s).e("action"))},[e.loading?(_(),ie(i(De),{key:0,class:R(i(s).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):y.value?oe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):y.value?re("v-if",!0):oe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(_(),$("span",{key:1,class:R(p.value)},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(De),{key:0},{default:ae(()=>[(_(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",{key:1,"aria-hidden":!y.value},Se(e.activeText),9,Gte)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),Jte=Xte;const Zte=it(Jte),C0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Qte=function(e,t,n,a,o){if(!t&&!a&&(!o||be(o)&&!o.length))return e;Be(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=a?null:function(s,u){return o?i8($n(o),c=>Be(c)?bn(s,c):c(s,u,e)):(t!=="$key"&<(s)&&"$value"in s&&(s=s.$value),[lt(s)?t?bn(s,t):null:s])},r=function(s,u){var c,d,f,h,g;if(a)return a(s.value,u.value);for(let p=0,v=((c=s.key)==null?void 0:c.length)??0;p((g=u.key)==null?void 0:g[p]))return 1}return 0};return e.map((s,u)=>({value:s,index:u,key:l?l(s,u):null})).sort((s,u)=>{let c=r(s,u);return c||(c=s.index-u.index),c*+n}).map(s=>s.value)},r5=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},ene=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Be(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(Fe(t))return t.call(null,e);return""},ys=function(e,t,n=!1,a="children"){const o=e||[],l={};return o.forEach((r,s)=>{if(l[Wn(r,t)]={row:r,index:s},n){const u=r[a];be(u)&&Object.assign(l,ys(u,t,!0,a))}}),l};function tne(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(Mt(t,a)){const o=t[a];Et(o)||(n[a]=o)}return n}function Qh(e){return e===""||Et(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function s5(e){return e===""||Et(e)||(e=Qh(e),Number.isNaN(e)&&(e=80)),e}function nne(e){return He(e)?e:Be(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function ane(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function Ed(e,t,n,a,o,l,r){let s=l??0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Wn(t,r);return e.findIndex(m=>Wn(m,r)===v)})(),f=d!==-1,h=o==null?void 0:o.call(null,t,s),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let m=0;const y=(a==null?void 0:a.children)&&v[a.children];return y&&be(y)&&(m+=y.length,y.forEach(b=>{m+=p(b)})),m};return(!o||h)&&(Dt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&be(t[a.children])&&t[a.children].forEach(v=>{const m=Ed(e,v,n??!f,a,o,s+1,r);s+=p(v)+1,m&&(u=m)}),u}function one(e,t,n="children",a="hasChildren",o=!1){const l=s=>!(be(s)&&s.length);function r(s,u,c){t(s,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(s=>{if(s[a]&&o){t(s,null,0);return}const u=s[n];l(u)||r(s,u,0)})}const lne=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},l=Fe(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:zl(n,a.property).value}):void 0;return Wt(l)?{slotContent:l,content:null,...e,popperOptions:o}:{slotContent:null,content:l??t,...e,popperOptions:o}};let un=null;function rne(e,t,n,a,o,l){var g;const r=lne(e,t,n,a),s={...r,slotContent:void 0};if((un==null?void 0:un.trigger)===o){const p=(g=un.vm)==null?void 0:g.component;u8(p==null?void 0:p.props,s),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}un==null||un();const u=l==null?void 0:l.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,d=Q(Vn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...s},r.slotContent?{content:()=>r.slotContent}:void 0);d.appContext={...l.appContext,...l};const f=document.createElement("div");Wl(d,f),d.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);un=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),Wl(null,f);const p=un;h==null||h.removeEventListener("scroll",p),p.trigger=void 0,p.vm=void 0,un=null},un.trigger=o??void 0,un.vm=d,h==null||h.addEventListener("scroll",un)}function i5(e){return e.children?i8(e.children,i5):[e]}function zg(e,t){return e+t.colSpan}const u5=(e,t,n,a)=>{let o=0,l=e;const r=n.states.columns.value;if(a){const u=i5(a[e]);o=r.slice(0,r.indexOf(u[0])).reduce(zg,0),l=o+u.reduce(zg,0)-1}else o=e;let s;switch(t){case"left":l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:l}:{}},ev=(e,t,n,a,o,l=0)=>{const r=[],{direction:s,start:u,after:c}=u5(t,n,a,o);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&c+l===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function Dg(e,t){return e+(nf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const tv=(e,t,n,a)=>{const{direction:o,start:l=0,after:r=0}=u5(e,t,n,a);if(!o)return;const s={},u=o==="left",c=n.states.columns.value;return u?s.left=c.slice(0,l).reduce(Dg,0):s.right=c.slice(r+1).reverse().reduce(Dg,0),s},Bs=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function c5(e){return e.some(t=>Wt(t)?!(t.type===gn||t.type===Ke&&!c5(t.children)):!0)?e:null}function sne(e){const t=vt(),n=V(!1),a=V([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return(f==null?void 0:f(c,d))??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=ys(a.value,d);a.value=c.filter((h,g)=>!!f[Wn(h,d)]&&o(h,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||Ed(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,h=ys(d,f);a.value=c.reduce((g,p)=>{const v=h[p];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!ys(a.value,d)[Wn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function ine(e){const t=vt(),n=V(null),a=V(null),o=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{const{data:d,rowKey:f}=e,h=a.value;let g=null;f.value&&(g=(i(d)||[]).find(p=>Wn(p,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,h)};return{setCurrentRowKey:o,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?r(Wn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:a}}}function une(e){const t=V([]),n=V({}),a=V(16),o=V(!1),l=V({}),r=V("hasChildren"),s=V("children"),u=V(!1),c=vt(),d=x(()=>e.rowKey.value?h(e.data.value||[]):{}),f=x(()=>{const C=e.rowKey.value,S=Object.keys(l.value),k={};return S.length&&S.forEach(T=>{if(l.value[T].length){const M={children:[]};l.value[T].forEach(A=>{const O=Wn(A,C);M.children.push(O),A[r.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=M}}),k}),h=C=>{const S=e.rowKey.value,k={};return one(C,(T,M,A)=>{const O=Wn(T,S);be(M)?k[O]={children:M.map(I=>Wn(I,S)),level:A}:o.value&&(k[O]={children:[],lazy:!0,level:A})},s.value,r.value,o.value),k},g=(C=!1,S)=>{var O,I;S||(S=(O=c.store)==null?void 0:O.states.defaultExpandAll.value);const k=d.value,T=f.value,M=Object.keys(k),A={};if(M.length){const L=i(n),z=[],q=(F,N)=>{if(C)return t.value?S||t.value.includes(N):!!(S||F!=null&&F.expanded);{const P=S||t.value&&t.value.includes(N);return!!(F!=null&&F.expanded||P)}};M.forEach(F=>{const N=L[F],P={...k[F]};if(P.expanded=q(N,F),P.lazy){const{loaded:B=!1,loading:W=!1}=N||{};P.loaded=!!B,P.loading=!!W,z.push(F)}A[F]=P});const U=Object.keys(T);o.value&&U.length&&z.length&&U.forEach(F=>{var B;const N=L[F],P=T[F].children;if(z.includes(F)){if(((B=A[F].children)==null?void 0:B.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[F].children=P}else{const{loaded:W=!1,loading:K=!1}=N||{};A[F]={lazy:!0,loaded:!!W,loading:!!K,expanded:q(N,F),children:P,level:void 0}}})}n.value=A,(I=c.store)==null||I.updateTableScrollY()};fe(()=>t.value,()=>{g(!0)},{deep:!0}),fe(()=>d.value,()=>{g()}),fe(()=>f.value,()=>{g()});const p=C=>{t.value=C,g()},v=C=>o.value&&C&&"loaded"in C&&!C.loaded,m=(C,S)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Wn(C,k),M=T&&n.value[T];if(T&&M&&"expanded"in M){const A=M.expanded;S=Et(S)?!M.expanded:S,n.value[T].expanded=S,A!==S&&c.emit("expand-change",C,S),S&&v(M)&&b(C,T,M),c.store.updateTableScrollY()}},y=C=>{c.store.assertRowKey();const S=e.rowKey.value,k=Wn(C,S),T=n.value[k];v(T)?b(C,k,T):m(C,void 0)},b=(C,S,k)=>{const{load:T}=c.props;T&&!n.value[S].loaded&&(n.value[S].loading=!0,T(C,k,M=>{if(!be(M))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,M.length&&(l.value[S]=M),c.emit("expand-change",C,!0)}))};return{loadData:b,loadOrToggle:y,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:g,updateKeyChildren:(C,S)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[C]&&(l.value[C]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:s,checkStrictly:u}}}const cne=(e,t)=>{const n=t.sortingColumn;return!n||Be(n.sortable)?e:Qte(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Lc=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Lc(n.children)):t.push(n)}),t};function dne(){var ut;const e=vt(),{size:t}=Nn((ut=e.proxy)==null?void 0:ut.$props),n=V(null),a=V([]),o=V([]),l=V(!1),r=V([]),s=V([]),u=V([]),c=V([]),d=V([]),f=V([]),h=V([]),g=V([]),p=[],v=V(0),m=V(0),y=V(0),b=V(!1),w=V([]),C=V(!1),S=V(!1),k=V(null),T=V(null),M=V({}),A=V(null),O=V(null),I=V(null),L=V(null),z=V(null),q=x(()=>n.value?ys(w.value,n.value):void 0);fe(a,()=>{var je;e.state&&(P(!1),e.props.tableLayout==="auto"&&((je=e.refs.tableHeaderRef)==null||je.updateFixedColumnStyle()))},{deep:!0});const U=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},F=je=>{var tt;(tt=je.children)==null||tt.forEach(yt=>{yt.fixed=je.fixed,F(yt)})},N=()=>{r.value.forEach(Te=>{F(Te)}),c.value=r.value.filter(Te=>[!0,"left"].includes(Te.fixed));const je=r.value.find(Te=>Te.type==="selection");let tt;je&&je.fixed!=="right"&&!c.value.includes(je)&&r.value.indexOf(je)===0&&c.value.length&&(c.value.unshift(je),tt=!0),d.value=r.value.filter(Te=>Te.fixed==="right");const yt=r.value.filter(Te=>(tt?Te.type!=="selection":!0)&&!Te.fixed);s.value=Array.from(c.value).concat(yt).concat(d.value);const he=Lc(yt),Ve=Lc(c.value),pe=Lc(d.value);v.value=he.length,m.value=Ve.length,y.value=pe.length,u.value=Array.from(Ve).concat(he).concat(pe),l.value=c.value.length>0||d.value.length>0},P=(je,tt=!1)=>{je&&N(),tt?e.state.doLayout():e.state.debouncedUpdateLayout()},B=je=>q.value?!!q.value[Wn(je,n.value)]:w.value.includes(je),W=()=>{b.value=!1;const je=w.value;w.value=[],je.length&&e.emit("selection-change",[])},K=()=>{var tt,yt;let je;if(n.value){je=[];const he=(yt=(tt=e==null?void 0:e.store)==null?void 0:tt.states)==null?void 0:yt.childrenColumnName.value,Ve=ys(a.value,n.value,!0,he);for(const pe in q.value)Mt(q.value,pe)&&!Ve[pe]&&je.push(q.value[pe].row)}else je=w.value.filter(he=>!a.value.includes(he));if(je.length){const he=w.value.filter(Ve=>!je.includes(Ve));w.value=he,e.emit("selection-change",he.slice())}},j=()=>(w.value||[]).slice(),G=(je,tt,yt=!0,he=!1)=>{var pe,Te,ct,Pt;const Ve={children:(Te=(pe=e==null?void 0:e.store)==null?void 0:pe.states)==null?void 0:Te.childrenColumnName.value,checkStrictly:(Pt=(ct=e==null?void 0:e.store)==null?void 0:ct.states)==null?void 0:Pt.checkStrictly.value};if(Ed(w.value,je,tt,Ve,he?void 0:k.value,a.value.indexOf(je),n.value)){const Gt=(w.value||[]).slice();yt&&e.emit("select",Gt,je),e.emit("selection-change",Gt)}},ee=()=>{var Te,ct;const je=S.value?!b.value:!(b.value||w.value.length);b.value=je;let tt=!1,yt=0;const he=(ct=(Te=e==null?void 0:e.store)==null?void 0:Te.states)==null?void 0:ct.rowKey.value,{childrenColumnName:Ve}=e.store.states,pe={children:Ve.value,checkStrictly:!1};a.value.forEach((Pt,Gt)=>{const $e=Gt+yt;Ed(w.value,Pt,je,pe,k.value,$e,he)&&(tt=!0),yt+=ue(Wn(Pt,he))}),tt&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},te=()=>{var pe;if(((pe=a.value)==null?void 0:pe.length)===0){b.value=!1;return}const{childrenColumnName:je}=e.store.states;let tt=0,yt=0;const he=Te=>{var ct;for(const Pt of Te){const Gt=k.value&&k.value.call(null,Pt,tt);if(B(Pt))yt++;else if(!k.value||Gt)return!1;if(tt++,(ct=Pt[je.value])!=null&&ct.length&&!he(Pt[je.value]))return!1}return!0},Ve=he(a.value||[]);b.value=yt===0?!1:Ve},ue=je=>{var Ve;if(!e||!e.store)return 0;const{treeData:tt}=e.store.states;let yt=0;const he=(Ve=tt.value[je])==null?void 0:Ve.children;return he&&(yt+=he.length,he.forEach(pe=>{yt+=ue(pe)})),yt},ne=(je,tt)=>{const yt={};return $n(je).forEach(he=>{M.value[he.id]=tt,yt[he.columnKey||he.id]=tt}),yt},de=(je,tt,yt)=>{O.value&&O.value!==je&&(O.value.order=null),O.value=je,I.value=tt,L.value=yt},se=()=>{let je=i(o);Object.keys(M.value).forEach(tt=>{const yt=M.value[tt];if(!yt||yt.length===0)return;const he=r5({columns:u.value},tt);he&&he.filterMethod&&(je=je.filter(Ve=>yt.some(pe=>he.filterMethod.call(null,pe,Ve,he))))}),A.value=je},Y=()=>{a.value=cne(A.value??[],{sortingColumn:O.value,sortProp:I.value,sortOrder:L.value})},X=(je=void 0)=>{je!=null&&je.filter||se(),Y()},H=je=>{const{tableHeaderRef:tt}=e.refs;if(!tt)return;const yt=Object.assign({},tt.filterPanels),he=Object.keys(yt);if(he.length)if(Be(je)&&(je=[je]),be(je)){const Ve=je.map(pe=>ene({columns:u.value},pe));he.forEach(pe=>{const Te=Ve.find(ct=>ct.id===pe);Te&&(Te.filteredValue=[])}),e.store.commit("filterChange",{column:Ve,values:[],silent:!0,multi:!0})}else he.forEach(Ve=>{const pe=u.value.find(Te=>Te.id===Ve);pe&&(pe.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{O.value&&(de(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:le,toggleRowExpansion:ce,updateExpandRows:ge,states:me,isRowExpanded:Ae}=sne({data:a,rowKey:n}),{updateTreeExpandKeys:Ne,toggleTreeExpansion:Re,updateTreeData:ye,updateKeyChildren:Ee,loadOrToggle:we,states:Ie}=une({data:a,rowKey:n}),{updateCurrentRowData:ze,updateCurrentRow:et,setCurrentRowKey:nt,states:at}=ine({data:a,rowKey:n});return{assertRowKey:U,updateColumns:N,scheduleLayout:P,isSelected:B,clearSelection:W,cleanSelection:K,getSelectionRows:j,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:te,updateFilters:ne,updateCurrentRow:et,updateSort:de,execFilter:se,execSort:Y,execQuery:X,clearFilter:H,clearSort:Z,toggleRowExpansion:ce,setExpandRowKeysAdapter:je=>{le(je),Ne(je)},setCurrentRowKey:nt,toggleRowExpansionAdapter:(je,tt)=>{u.value.some(({type:yt})=>yt==="expand")?ce(je,tt):Re(je,tt)},isRowExpanded:Ae,updateExpandRows:ge,updateCurrentRowData:ze,loadOrToggle:we,updateTreeData:ye,updateKeyChildren:Ee,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:l,_columns:r,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:k,rowExpandable:T,filters:M,filteredData:A,sortingColumn:O,sortProp:I,sortOrder:L,hoverRow:z,...me,...Ie,...at}}}function F2(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=F2(n.children,t)),n)})}function K2(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&K2(t.children)}),e.sort((t,n)=>t.no-n.no)}function fne(){const e=vt(),t=dne(),n=ve("table"),{t:a}=kt();return{ns:n,t:a,...t,mutations:{setData(s,u){const c=i(s._data)!==u;s.data.value=u,s._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(s.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,u,c,d){var g;const f=i(s._columns);let h=[];c?(c&&!c.children&&(c.children=[]),(g=c.children)==null||g.push(u),h=F2(f,c)):(f.push(u),h=f),K2(h),s._columns.value=h,s.updateOrderFns.push(d),u.type==="selection"&&(s.selectable.value=u.selectable,s.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(K2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,u,c,d){var g;const f=i(s._columns)||[];if(c)(g=c.children)==null||g.splice(c.children.findIndex(p=>p.id===u.id),1),Le(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),s._columns.value=F2(f,c);else{const p=f.indexOf(u);p>-1&&(f.splice(p,1),s._columns.value=f)}const h=s.updateOrderFns.indexOf(d);h>-1&&s.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,u){const{prop:c,order:d,init:f}=u;if(c){const h=i(s.columns).find(g=>g.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=s,h=i(c),g=i(d),p=i(f);nf(p)&&(s.sortingColumn.value=null,s.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:g,order:p}),e.store.updateTableScrollY()},filterChange(s,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var s,u;(u=(s=e.store).toggleAllSelection)==null||u.call(s)},rowSelectedChanged(s,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(s,u){s.hoverRow.value=u},setCurrentRow(s,u){e.store.updateCurrentRow(u)}},commit:function(s,...u){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Le(()=>e.layout.updateScrollY.apply(e.layout))}}}const nv={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function pne(e,t){if(!e)throw new Error("Table is required.");const n=fne();return n.toggleAllSelection=Vo(n._toggleAllSelection,10),Object.keys(nv).forEach(a=>{d5(f5(t,a),a,n)}),hne(n,t),n}function hne(e,t){Object.keys(nv).forEach(n=>{fe(()=>f5(t,n),a=>{d5(a,n,e)})})}function d5(e,t,n){let a=e,o=nv[t];lt(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function f5(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var vne=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)Mt(e,t)&&(Yt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(nf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!Rt)return;const n=this.table.vnode.el;if(e=nne(e),this.height.value=Number(e),!n&&(e||e===0)){Le(()=>this.setHeight(e,t));return}n&&He(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Be(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){var s;if(!Rt)return;const e=this.fit,t=(s=this.table.vnode.el)==null?void 0:s.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(u=>!He(u.width));if(a.forEach(u=>{He(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&e){if(a.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=t){this.scrollX.value=!1;const u=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=u/o.reduce((f,h)=>f+Number(h.minWidth||80),0);let d=0;o.forEach((f,h)=>{if(h===0)return;const g=Math.floor(Number(f.minWidth||80)*c);d+=g,f.realWidth=Number(f.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let u=0;r.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var n,a;switch(e){case"columns":(n=t.state)==null||n.onColumnsChange(this);break;case"scrollable":(a=t.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const vo=Symbol("ElTable"),p5=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,p5(n.children))):t.push(n)}),t},h5=e=>{let t=1;const n=(o,l)=>{if(l&&(o.level=l.level+1,t{n(s,o),r+=s.colSpan}),o.colSpan=r}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(l=>l.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function mne(e){const t=Pe(vo),n=x(()=>h5(e.store.states.originColumns.value));return{isGroup:x(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var gne=D({name:"ElTableFilterPanel",components:{ElCheckbox:lo,ElCheckboxGroup:Ih,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De,ArrowDown:po,ArrowUp:Lu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Ht.appendTo},setup(e){const t=vt(),{t:n}=kt(),a=ve("table-filter"),o=t==null?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const l=V(null),r=V(null),s=V(0),u=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=x({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(ya(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=x({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var M;e.column&&((M=e.upDataColumn)==null||M.call(e,"filteredValue",T))}}),h=x(()=>e.column?e.column.filterMultiple:!0),g=T=>T.value===d.value,p=()=>{var T;(T=l.value)==null||T.onClose()},v=()=>{b(f.value),p()},m=()=>{f.value=[],b(f.value),p()},y=(T,M)=>{d.value=T,s.value=M,ya(T)?b([]):b(f.value),p()},b=T=>{var M,A;(M=e.store)==null||M.commit("filterChange",{column:e.column,values:T}),(A=e.store)==null||A.updateAllSelected()},w=()=>{var T,M;(T=r.value)==null||T.focus(),!h.value&&S(),e.column&&((M=e.upDataColumn)==null||M.call(e,"filterOpened",!0))},C=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},S=()=>{if(ya(d)){s.value=0;return}const T=(u.value||[]).findIndex(M=>M.value===d.value);s.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:y,isPropAbsent:ya,isActive:g,t:n,ns:a,tooltipRef:l,rootRef:r,checkedIndex:s,handleShowTooltip:w,handleHideTooltip:C,handleKeydown:T=>{var L,z;const M=Kt(T),A=(u.value?u.value.length:0)+1;let O=s.value,I=!0;switch(M){case Ce.down:case Ce.right:O=(O+1)%A;break;case Ce.up:case Ce.left:O=(O-1+A)%A;break;case Ce.tab:p(),I=!1;break;case Ce.enter:case Ce.space:if(O===0)y(null,0);else{const q=(u.value||[])[O-1];q.value&&y(q.value,O)}break;default:I=!1;break}I&&T.preventDefault(),s.value=O,(z=(L=r.value)==null?void 0:L.querySelector(`.${a.e("list-item")}:nth-child(${O+1})`))==null||z.focus()}}}});const yne=["disabled"],bne=["tabindex","aria-checked"],wne=["tabindex","aria-checked","onClick"],Cne=["aria-label"];function _ne(e,t,n,a,o,l){const r=$t("el-checkbox"),s=$t("el-checkbox-group"),u=$t("el-scrollbar"),c=$t("arrow-up"),d=$t("arrow-down"),f=$t("el-icon"),h=$t("el-tooltip");return _(),ie(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ae(()=>[e.multiple?(_(),$("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[E("div",{class:R(e.ns.e("content"))},[Q(u,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ae(()=>[(_(!0),$(Ke,null,_t(e.filters,g=>(_(),ie(r,{key:g.value,value:g.value},{default:ae(()=>[St(Se(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Se(e.t("el.table.confirmFilter")),11,yne),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Se(e.t("el.table.resetFilter")),1)],2)],2)):(_(),$("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[E("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},Se(e.t("el.table.clearFilter")),11,bne),(_(!0),$(Ke,null,_t(e.filters,(g,p)=>(_(),$("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,p+1)},Se(g.text),11,wne))),128))],34))]),default:ae(()=>{var g;return[E("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((g=e.column)==null?void 0:g.label)||""})},[Q(f,null,{default:ae(()=>[oe(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(_(),ie(c,{key:0})):(_(),ie(d,{key:1}))]})]),_:3})],10,Cne)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Sne=En(gne,[["render",_ne]]);function av(e){const t=vt();Fd(()=>{n.value.addObserver(t)}),gt(()=>{a(n.value),o(n.value)}),so(()=>{a(n.value),o(n.value)}),Ks(()=>{n.value.removeObserver(t)});const n=x(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),a=l=>{var c;const r=((c=e.vnode.el)==null?void 0:c.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const s=l.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=r.length;d{var u,c;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=r.length;d{v.stopPropagation()},l=(v,m)=>{!m.filters&&m.sortable?p(v,m,!1):m.filterable&&!m.sortable&&o(v),a==null||a.emit("header-click",m,v)},r=(v,m)=>{a==null||a.emit("header-contextmenu",m,v)},s=V(null),u=V(!1),c=V(),d=(v,m)=>{var y,b,w;if(Rt&&!(m.children&&m.children.length>0)&&s.value&&e.border&&s.value.id===m.id){u.value=!0;const C=a;t("set-drag-visible",!0);const S=(y=C==null?void 0:C.vnode.el)==null?void 0:y.getBoundingClientRect().left,k=(w=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:w.querySelector(`th.${m.id}`),T=k.getBoundingClientRect(),M=T.left-S+30;Ba(k,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-S,startColumnLeft:T.left-S,tableLeft:S};const A=C==null?void 0:C.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=L=>{const z=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+z;A.style.left=`${Math.max(M,q)}px`},I=()=>{if(u.value){const{startColumnLeft:L,startLeft:z}=c.value;m.width=m.realWidth=Number.parseInt(A.style.left,10)-L,C==null||C.emit("header-dragend",m.width,z-L,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,s.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{aa(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)}},f=(v,m)=>{var A;if(!e.border||m.children&&m.children.length>0)return;const y=v.target,b=ga(y)?y.closest("th"):null;if(!b)return;const w=Ao(b,"is-sortable");if(w){const O=u.value?"col-resize":"";b.style.cursor=O;const I=b.querySelector(".caret-wrapper");I&&(I.style.cursor=O)}if(!m.resizable||u.value){s.value=null;return}const C=b.getBoundingClientRect(),S=((A=b.parentNode)==null?void 0:A.lastElementChild)===b,k=e.allowDragLastColumn||!S,T=C.width>12&&C.right-v.clientX<8&&k,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?m:null,w&&(b.style.cursor=M)},h=()=>{!Rt||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},p=(v,m,y)=>{var A;v.stopPropagation();const b=m.order===y?null:y||g(m),w=(A=v.target)==null?void 0:A.closest("th");if(w&&Ao(w,"noclick")){aa(w,"noclick");return}if(!m.sortable)return;const C=v.currentTarget;if(["ascending","descending"].some(O=>Ao(C,O)&&!m.sortOrders.includes(O)))return;const S=e.store.states;let k=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&nf(M.order))&&(M&&(M.order=null),S.sortingColumn.value=m,k=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=k,S.sortOrder.value=T,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:o}}function kne(e){const t=Pe(vo),n=ve("table");return{getHeaderRowStyle:s=>{const u=t==null?void 0:t.props.headerRowStyle;return Fe(u)?u.call(null,{rowIndex:s}):u},getHeaderRowClass:s=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Be(c)?u.push(c):Fe(c)&&u.push(c.call(null,{rowIndex:s})),u.join(" ")},getHeaderCellStyle:(s,u,c,d)=>{let f=(t==null?void 0:t.props.headerCellStyle)??{};Fe(f)&&(f=f.call(null,{rowIndex:s,columnIndex:u,row:c,column:d}));const h=tv(u,d.fixed,e.store,c);return Bs(h,"left"),Bs(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(s,u,c,d)=>{const f=ev(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{rowIndex:s,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>!!p).join(" ")}}}var Ene=D({name:"ElTableHeader",components:{ElCheckbox:lo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=vt(),a=Pe(vo),o=ve("table"),l=V({}),{onColumnsChange:r,onScrollableChange:s}=av(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=Nt(new Map),d=V();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((L,z)=>{const q=d.value.querySelector(`.${z.replace(/\s/g,".")}`);q&&(L.width=q.getBoundingClientRect().width||L.width)}),c.clear())})};fe(c,h),Lt(()=>{f&&(clearTimeout(f),f=void 0)}),gt(async()=>{await Le(),await Le();const{prop:L,order:z}=e.defaultSort;a==null||a.store.commit("sort",{prop:L,order:z,init:!0}),h()});const{handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w}=xne(e,t),{getHeaderRowStyle:C,getHeaderRowClass:S,getHeaderCellStyle:k,getHeaderCellClass:T}=kne(e),{isGroup:M,toggleAllSelection:A,columnRows:O}=mne(e),{t:I}=kt();return n.state={onColumnsChange:r,onScrollableChange:s},n.filterPanels=l,{ns:o,t:I,filterPanels:l,onColumnsChange:r,onScrollableChange:s,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:C,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w,isGroup:M,toggleAllSelection:A,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:g,store:p,$parent:v,saveIndexSelection:m,isTableLayoutAuto:y}=this;let b=1;return Ye("thead",{ref:"theadRef",class:e.is("group",n)},a.map((w,C)=>Ye("tr",{class:r(C),key:C,style:s(C)},w.map((S,k)=>{S.rowSpan>b&&(b=S.rowSpan);const T=l(C,k,w,S);return y&&S.fixed&&m.set(T,S),Ye("th",{class:T,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:o(C,k,w,S),onClick:M=>{var A;(A=M.currentTarget)!=null&&A.classList.contains("noclick")||u(M,S)},onContextmenu:M=>c(M,S),onMousedown:M=>d(M,S),onMousemove:M=>f(M,S),onMouseout:g},[Ye("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:k,store:p,_self:v}):S.label,S.sortable&&Ye("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:M=>h(M,S)},[Ye("i",{onClick:M=>h(M,S,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:M=>h(M,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Ye(Sne,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(M,A)=>{S[M]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Tne(e){const t=Pe(vo),n=V(""),a=V(Ye("div")),o=(p,v,m)=>{var S,k;const y=t,b=C0(p);let w=null;const C=(S=y==null?void 0:y.vnode.el)==null?void 0:S.dataset.prefix;b&&(w=Bg({columns:((k=e.store)==null?void 0:k.states.columns.value)??[]},b,C),w&&(y==null||y.emit(`cell-${m}`,v,w,b,p))),y==null||y.emit(`row-${m}`,v,w,p)},l=(p,v)=>{o(p,v,"dblclick")},r=(p,v)=>{var m;(m=e.store)==null||m.commit("setCurrentRow",v),o(p,v,"click")},s=(p,v)=>{o(p,v,"contextmenu")},u=Vo(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=Vo(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(p,v,m)=>{var b;let y=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)m(y,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:s,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,m)=>{var N,P,B;if(!t)return;const y=t,b=C0(p),w=(N=y==null?void 0:y.vnode.el)==null?void 0:N.dataset.prefix;let C=null;if(b){if(C=Bg({columns:((P=e.store)==null?void 0:P.states.columns.value)??[]},b,w),!C)return;b.rowSpan>1&&f(b.rowSpan,p,Ba);const W=y.hoverState={cell:b,column:C,row:v};y==null||y.emit("cell-mouse-enter",W.row,W.column,W.cell,p)}if(!m){(un==null?void 0:un.trigger)===b&&(un==null||un());return}const S=p.target.querySelector(".cell");if(!(Ao(S,`${w}-tooltip`)&&S.childNodes.length&&((B=S.textContent)!=null&&B.trim())))return;const k=document.createRange();k.setStart(S,0),k.setEnd(S,S.childNodes.length);const{width:T,height:M}=k.getBoundingClientRect(),{width:A,height:O}=S.getBoundingClientRect(),{top:I,left:L,right:z,bottom:q}=d(S),U=L+z,F=I+q;Dl(T+U,A)||Dl(M+F,O)||Dl(S.scrollWidth,A)?rne(m,((b==null?void 0:b.innerText)||(b==null?void 0:b.textContent))??"",v,C,b,y):(un==null?void 0:un.trigger)===b&&(un==null||un())},handleCellMouseLeave:p=>{const v=C0(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,aa);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:a}}function Mne(e){const t=Pe(vo),n=ve("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return Fe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var p;const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((p=e.store)==null?void 0:p.states.currentRow.value)&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let p=g??{};Fe(g)&&(p=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=tv(d,e==null?void 0:e.fixed,e.store);return Bs(v,"left"),Bs(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,g)=>{const p=ev(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),v=[h.id,h.align,h.className,...p],m=t==null?void 0:t.props.cellClassName;return Be(m)?v.push(m):Fe(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,f,h)=>{let g=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(Fe(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:h});be(m)?(g=m[0],p=m[1]):lt(m)&&(g=m.rowspan,p=m.colspan)}return{rowspan:g,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:g,width:p})=>g||p).slice(f,f+d);return Number(h.reduce((g,p)=>Number(g)+Number(p),-1))}}}const One=["colspan","rowspan"];var $ne=D({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),$("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,One))}}),Ane=$ne;function Rne(e){const t=Pe(vo),n=ve("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:s,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=Tne(e),{getRowStyle:h,getRowClass:g,getCellStyle:p,getCellClass:v,getSpan:m,getColspanRealWidth:y}=Mne(e);let b=-1;const w=x(()=>{var M;return(M=e.store)==null?void 0:M.states.columns.value.findIndex(({type:A})=>A==="default")}),C=(M,A)=>{var I;const O=(I=t==null?void 0:t.props)==null?void 0:I.rowKey;return O?Wn(M,O):A},S=(M,A,O,I=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:U,columns:F}=q.states,N=[];let P=!0;return O&&(N.push(n.em("row",`level-${O.level}`)),P=!!O.display),A===0&&(b=-1),e.stripe&&P&&b++,N.push(...g(M,A,b)),Ye("tr",{style:[P?null:{display:"none"},h(M,A)],class:N,key:C(M,A),onDblclick:B=>a(B,M),onClick:B=>o(B,M),onContextmenu:B=>l(B,M),onMouseenter:()=>r(A),onMouseleave:s},F.value.map((B,W)=>{const{rowspan:K,colspan:j}=m(M,B,A,W);if(!K||!j)return null;const G=Object.assign({},B);G.realWidth=y(F.value,j,W);const ee={store:q,_self:e.context||t,column:G,row:M,$index:A,cellIndex:W,expanded:I};W===w.value&&O&&(ee.treeNode={indent:O.level&&O.level*U.value,level:O.level},Dt(O.expanded)&&(ee.treeNode.expanded=O.expanded,"loading"in O&&(ee.treeNode.loading=O.loading),"noLazyChildren"in O&&(ee.treeNode.noLazyChildren=O.noLazyChildren)));const te=`${C(M,A)},${W}`,ue=G.columnKey||G.rawColumnKey||"",ne=B.showOverflowTooltip&&u8({effect:L},z,B.showOverflowTooltip);return Ye(Ane,{style:p(A,W,M,B),class:v(A,W,M,B,j-1),key:`${ue}${te}`,rowspan:K,colspan:j,onMouseenter:de=>u(de,M,ne),onMouseleave:c},{default:()=>k(W,B,ee)})}))},k=(M,A,O)=>A.renderCell(O);return{wrappedRowRender:(M,A)=>{const O=e.store,{isRowExpanded:I,assertRowKey:L}=O,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:U,rowKey:F}=O.states,N=O.states.columns.value;if(N.some(({type:P})=>P==="expand")){const P=I(M),B=S(M,A,void 0,P),W=t==null?void 0:t.renderExpanded;if(!W)return console.error("[Element Error]renderExpanded is required."),B;const K=[[B]];return(t.props.preserveExpandedContent||P)&&K[0].push(Ye("tr",{key:`expanded-row__${B.key}`,style:{display:P?"":"none"}},[Ye("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[W({row:M,$index:A,store:O,expanded:P})])])),K}else if(Object.keys(z.value).length){L();const P=Wn(M,F.value);let B=z.value[P],W=null;B&&(W={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Dt(B.lazy)&&(W&&Dt(B.loaded)&&B.loaded&&(W.noLazyChildren=!(B.children&&B.children.length)),W.loading=B.loading));const K=[S(M,A,W??void 0)];if(B){let j=0;const G=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(ue=>{const ne={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Wn(ue,F.value);if(ya(de))throw new Error("For nested data item, row-key is required.");B={...z.value[de]},B&&(ne.expanded=B.expanded,B.level=B.level||ne.level,B.display=!!(B.expanded&&ne.display),Dt(B.lazy)&&(Dt(B.loaded)&&B.loaded&&(ne.noLazyChildren=!(B.children&&B.children.length)),ne.loading=B.loading)),j++,K.push(S(ue,A+j,ne)),B&&G(q.value[de]||ue[U.value],B)})};B.display=!0,G(q.value[P]||M[U.value],B)}return K}else return S(M,A,void 0)},tooltipContent:d,tooltipTrigger:f}}const Nne={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Pne=D({name:"ElTableBody",props:Nne,setup(e){var d;const t=vt(),n=Pe(vo),a=ve("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}=Rne(e),{onColumnsChange:s,onScrollableChange:u}=av(n),c=[];return fe((d=e.store)==null?void 0:d.states.hoverRow,(f,h)=>{var y,b;const g=t==null?void 0:t.vnode.el,p=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let v=f;const m=(y=p[v])==null?void 0:y.childNodes;if(m!=null&&m.length){let w=0;Array.from(m).reduce((C,S,k)=>{var T,M;return((T=m[k])==null?void 0:T.colSpan)>1&&(w=(M=m[k])==null?void 0:M.colSpan),S.nodeName!=="TD"&&w===0&&C.push(k),w>0&&w--,C},[]).forEach(C=>{var S;for(v=f;v>0;){const k=(S=p[v-1])==null?void 0:S.childNodes;if(k[C]&&k[C].nodeName==="TD"&&k[C].rowSpan>1){Ba(k[C],"hover-cell"),c.push(k[C]);break}v--}})}else c.forEach(w=>aa(w,"hover-cell")),c.length=0;!((b=e.store)!=null&&b.states.isComplex.value)||!Rt||Fa(()=>{const w=p[h],C=p[f];w&&!w.classList.contains("hover-fixed-row")&&aa(w,"hover-row"),C&&Ba(C,"hover-row")})}),Ks(()=>{un==null||un()}),{ns:a,onColumnsChange:s,onScrollableChange:u,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return Ye("tbody",{tabIndex:-1},[((t==null?void 0:t.states.data.value)||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function Ine(){var t;const e=(t=Pe(vo))==null?void 0:t.store;return{leftFixedLeafCount:x(()=>(e==null?void 0:e.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columnsCount:x(()=>(e==null?void 0:e.states.columns.value.length)??0),leftFixedCount:x(()=>(e==null?void 0:e.states.fixedColumns.value.length)??0),rightFixedCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columns:x(()=>(e==null?void 0:e.states.columns.value)??[])}}function Lne(e){const{columns:t}=Ine(),n=ve("table");return{getCellClasses:(l,r)=>{const s=l[r],u=[n.e("cell"),s.id,s.align,s.labelClassName,...ev(n.b(),r,s.fixed,e.store)];return s.className&&u.push(s.className),s.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const s=tv(r,l.fixed,e.store);return Bs(s,"left"),Bs(s,"right"),s},columns:t}}var Vne=D({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Pe(vo),n=ve("table"),{getCellClasses:a,getCellStyles:o,columns:l}=Lne(e),{onScrollableChange:r,onColumnsChange:s}=av(t);return{ns:n,onScrollableChange:r,onColumnsChange:s,getCellClasses:a,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,l=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:l}):e.forEach((s,u)=>{if(u===0){r[u]=o;return}const c=l.map(g=>Number(g[s.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const p=`${g}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((g,p)=>{const v=Number(p);return Number.isNaN(+v)?g:Number.parseFloat((g+p).toFixed(Math.min(h,20)))},0)}),Ye(Ye("tfoot",[Ye("tr",{},[...e.map((s,u)=>Ye("td",{key:u,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,u),style:t(s,u)},[Ye("div",{class:["cell",s.labelClassName]},[r[u]])]))])]))}});function Bne(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function zne(e,t,n,a){const o=V(!1),l=V(null),r=V(!1),s=U=>{r.value=U},u=V({width:null,height:null,headerHeight:null}),c=V(!1),d={display:"inline-block",verticalAlign:"middle"},f=V(),h=V(0),g=V(0),p=V(0),v=V(0),m=V(0);fe(()=>e.height,U=>{t.setHeight(U??null)},{immediate:!0}),fe(()=>e.maxHeight,U=>{t.setMaxHeight(U??null)},{immediate:!0}),fe(()=>[e.currentRowKey,n.states.rowKey],([U,F])=>{!i(F)||!i(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),fe(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),da(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},b=(U,F)=>{const{pixelX:N,pixelY:P}=F;Math.abs(N)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),C=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A)};gt(async()=>{await Le(),n.updateColumns(),O(),requestAnimationFrame(S);const U=a.vnode.el,F=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),u.value={width:f.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(N=>{N.filteredValue&&N.filteredValue.length&&a.store.commit("filterChange",{column:N,values:N.filteredValue,silent:!0})}),a.$ready=!0});const k=(U,F)=>{if(!U)return;const N=Array.from(U.classList).filter(P=>!P.startsWith("is-scrolling-"));N.push(t.scrollX.value?F:"is-scrolling-none"),U.className=N.join(" ")},T=U=>{const{tableWrapper:F}=a.refs;k(F,U)},M=U=>{const{tableWrapper:F}=a.refs;return!!(F&&F.classList.contains(U))},A=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const K="is-scrolling-none";M(K)||T(K);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:F,offsetWidth:N,scrollWidth:P}=U,{headerWrapper:B,footerWrapper:W}=a.refs;B&&(B.scrollLeft=F),W&&(W.scrollLeft=F),F>=P-N-1?T("is-scrolling-right"):T(F===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Vt(a.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?Zt(a.vnode.el,I):Vt(window,"resize",I),Zt(a.refs.tableInnerWrapper,()=>{var U,F;I(),(F=(U=a.refs)==null?void 0:U.scrollBarRef)==null||F.update()}))},I=()=>{var G,ee,te,ue;const U=a.vnode.el;if(!a.$ready||!U)return;let F=!1;const{width:N,height:P,headerHeight:B}=u.value,W=f.value=U.offsetWidth;N!==W&&(F=!0);const K=U.offsetHeight;(e.height||w.value)&&P!==K&&(F=!0);const j=e.tableLayout==="fixed"?a.refs.headerWrapper:(G=a.refs.tableHeaderRef)==null?void 0:G.$el;e.showHeader&&(j==null?void 0:j.offsetHeight)!==B&&(F=!0),h.value=((ee=a.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,p.value=(j==null?void 0:j.scrollHeight)||0,v.value=((te=a.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((ue=a.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,g.value=h.value-p.value-v.value-m.value,F&&(u.value={width:W,height:K,headerHeight:e.showHeader&&(j==null?void 0:j.offsetHeight)||0},S())},L=_n(),z=x(()=>{const{bodyWidth:U,scrollY:F,gutterWidth:N}=t;return U.value?`${U.value-(F.value?N:0)}px`:""}),q=x(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:l,setDragVisible:s,isGroup:c,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&g.value&&(U=`${g.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:U}}),resizeProxyVisible:r,bodyWidth:z,resizeState:u,doLayout:S,tableBodyStyles:C,tableLayout:q,scrollbarViewStyle:d,scrollbarStyle:x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{})}}function Dne(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t=new MutationObserver(()=>{l.forEach(r=>r())}),t.observe(a,o)};gt(()=>{n()}),Ks(()=>{t==null||t.disconnect()})}var Hne={data:{type:Array,default:()=>[]},size:kn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function v5(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Et(o))&&(n=[]);const a=o=>{const l={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?l.style={width:`${o.width}px`}:l.name=o.id,l};return Ye("colgroup",{},n.map(o=>Ye("col",a(o))))}v5.props=["columns","tableLayout"];const Fne=()=>{const e=V(),t=(l,r)=>{const s=e.value;s&&s.scrollTo(l,r)},n=(l,r)=>{const s=e.value;s&&He(r)&&["Top","Left"].includes(l)&&s[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let Kne=1;var Wne=D({name:"ElTable",directives:{Mousewheel:mM},components:{TableHeader:Ene,TableBody:Pne,TableFooter:Vne,ElScrollbar:ao,hColgroup:v5},props:Hne,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=kt(),n=ve("table"),a=_l("table"),o=vt();wt(vo,o);const l=pne(o,e);o.store=l;const r=new vne({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=r;const s=x(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:y}=Bne(l),{isHidden:b,renderExpanded:w,setDragVisible:C,isGroup:S,handleMouseLeave:k,handleHeaderFooterMousewheel:T,tableSize:M,emptyBlockStyle:A,resizeProxyVisible:O,bodyWidth:I,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N}=zne(e,r,l,o),{scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K}=Fne(),j=Vo(z,50),G=`${n.namespace.value}-table_${Kne++}`;o.tableId=G,o.state={isGroup:S,resizeState:L,doLayout:z,debouncedUpdateLayout:j};const ee=x(()=>e.sumText??t("el.table.sumText")),te=x(()=>e.emptyText??t("el.table.emptyText")),ue=x(()=>{var se;return e.tooltipEffect??((se=a.value)==null?void 0:se.tooltipEffect)}),ne=x(()=>{var se;return e.tooltipOptions??((se=a.value)==null?void 0:se.tooltipOptions)}),de=x(()=>h5(l.states.originColumns.value)[0]);return Dne(o),Lt(()=>{j.cancel()}),{ns:n,layout:r,store:l,columns:de,handleHeaderFooterMousewheel:T,handleMouseLeave:k,tableId:G,tableSize:M,isHidden:b,isEmpty:s,renderExpanded:w,resizeProxyVisible:O,resizeState:L,isGroup:S,bodyWidth:I,tableBodyStyles:q,emptyBlockStyle:A,debouncedUpdateLayout:j,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,doLayout:z,sort:m,updateKeyChildren:y,t,setDragVisible:C,context:o,computedSumText:ee,computedEmptyText:te,computedTooltipEffect:ue,computedTooltipOptions:ne,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N,scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K,allowDragLastColumn:e.allowDragLastColumn}}});const jne=["data-prefix"],qne={ref:"hiddenColumns",class:"hidden-columns"};function Une(e,t,n,a,o,l){const r=$t("hColgroup"),s=$t("table-header"),u=$t("table-body"),c=$t("table-footer"),d=$t("el-scrollbar"),f=kp("mousewheel");return _(),$("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[E("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[E("div",qne,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ft((_(),$("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[Q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:ae(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ie(s,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),Q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),ie(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(_(),$("div",{key:0,ref:"emptyBlock",style:qe(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[St(Se(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(_(),$("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ft((_(),$("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[E("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:qe(e.tableBodyStyles)},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[At,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(_(),$("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),ft(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[At,e.resizeProxyVisible]])],46,jne)}var Yne=En(Wne,[["render",Une]]);const Gne={selection:"table-column--selection",expand:"table__expand-column"},Xne={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Jne=e=>Gne[e]||"",Zne={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ye(lo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return Ye(lo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return He(a)?n=t+a:Fe(a)&&(n=a(t)),Ye("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){var c,d;const{ns:l}=n,r=[l.e("expand-icon")];!e.renderExpand&&a&&r.push(l.em("expand-icon","expanded"));const s=function(f){f.stopPropagation(),n.toggleRowExpansion(t)},u=((d=(c=n.states.rowExpandable).value)==null?void 0:d.call(c,t,o))??!0;return u||r.push(l.is("disabled")),Ye("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:r,onClick:s},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[Ye(De,null,{default:()=>[Ye(Un)]})]})},sortable:!1,resizable:!1}};function Qne({row:e,column:t,$index:n}){var l;const a=t.property,o=a&&zl(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((l=o==null?void 0:o.toString)==null?void 0:l.call(o))||""}function eae({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[Ye("span",{class:o.e("placeholder")})]:null;const l=[],r=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(Ye("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dt(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=Un;t.loading&&(u=no),l.push(Ye("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:r},{default:()=>[Ye(De,{class:o.is("loading",t.loading)},{default:()=>[Ye(u)]})]}))}else l.push(Ye("span",{class:o.e("placeholder")}));return l}function Hg(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function tae(e,t){const n=vt();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},s=Hg(l,r);Object.keys(s).forEach(u=>{const c=r[u];Mt(t,c)&&fe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Qh(d)),c==="minWidth"&&u==="realMinWidth"&&(f=s5(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Hg(l,s);Object.keys(u).forEach(d=>{const f=s[d];Mt(t,f)&&fe(()=>t[f],h=>{n.columnConfig.value[d]=h,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(d=>{Mt(e.value.props,d)&&fe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&Et(t[d])&&(n.columnConfig.value[d]=f)})});const c=_l("table");c.value&&Mt(c.value,"showOverflowTooltip")&&fe(()=>{var d;return(d=c.value)==null?void 0:d.showOverflowTooltip},d=>{n.columnConfig.value.type!=="selection"&&(!Et(t.showOverflowTooltip)||!Et(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function nae(e,t,n){const a=vt(),o=V(""),l=V(!1),r=V(),s=V(),u=ve("table");da(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),da(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:r.value,s.value});const c=x(()=>{let C=a.vnode.vParent||a.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),d=x(()=>{const{store:C}=a.parent;if(!C)return!1;const{treeData:S}=C.states,k=S.value;return k&&Object.keys(k).length>0}),f=V(Qh(e.width)),h=V(s5(e.minWidth)),g=C=>(f.value&&(C.width=f.value),h.value&&(C.minWidth=h.value),!f.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(Et(C.width)?C.minWidth:C.width),C),p=C=>{const S=C.type,k=Zne[S]||{};Object.keys(k).forEach(M=>{const A=k[M];M!=="className"&&!Et(A)&&(C[M]=A)});const T=Jne(S);if(T){const M=`${i(u.namespace)}-${T}`;C.className=C.className?`${C.className} ${M}`:M}return C},v=C=>{be(C)?C.forEach(k=>S(k)):S(C);function S(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=a)}};return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:p,setColumnRenders:C=>{e.renderHeader?pt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):C.type!=="selection"&&(C.renderHeader=k=>{if(a.columnConfig.value.label,t.header){const T=t.header(k);if(c5(T))return Ye(Ke,T)}return St(C.label)}),t["filter-icon"]&&(C.renderFilterIcon=k=>oe(t,"filter-icon",k)),t.expand&&(C.renderExpand=k=>oe(t,"expand",k));let S=C.renderCell;return C.type==="expand"?(C.renderCell=k=>Ye("div",{class:"cell"},[S(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(S=S||Qne,C.renderCell=k=>{let T=null;if(t.default){const L=t.default(k);T=L.some(z=>z.type!==gn)?L:S(k)}else T=S(k);const{columns:M}=n.value.store.states,A=M.value.findIndex(L=>L.type==="default"),O=eae(k,d.value&&k.cellIndex===A),I={class:"cell",style:{}};return C.showOverflowTooltip&&(I.class=`${I.class} ${i(u.namespace)}-tooltip`,I.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),v(T),Ye("div",I,[O,T])}),C},getPropsData:(...C)=>C.reduce((S,k)=>(be(k)&&k.forEach(T=>{S[T]=e[T]}),S),{}),getColumnElIndex:(C,S)=>Array.prototype.indexOf.call(C,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var aae={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let oae=1;var lae=D({name:"ElTableColumn",components:{ElCheckbox:lo},props:aae,setup(e,{slots:t}){const n=vt(),a=_l("table"),o=V({}),l=x(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:r,registerComplexWatchers:s}=tae(l,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:y,updateColumnOrder:b}=nae(e,t,l),w=f.value;u.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${oae++}`,Fd(()=>{var O,I;c.value=l.value!==w;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,k=C==="selection"?!1:Et(e.showOverflowTooltip)?w.props.showOverflowTooltip??((O=a.value)==null?void 0:O.showOverflowTooltip):e.showOverflowTooltip,T=Et(e.tooltipFormatter)?w.props.tooltipFormatter??((I=a.value)==null?void 0:I.tooltipFormatter):e.tooltipFormatter,M={...Xne[C],id:u.value,type:C,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=tne(M,A),A=ane(p,h,g)(A),o.value=A,r(),s()}),gt(()=>{var T,M;const C=f.value,S=c.value?(T=C.vnode.el)==null?void 0:T.children:(M=C.refs.hiddenColumns)==null?void 0:M.children,k=()=>m(S||[],n.vnode.el);o.value.getColumnIndex=k,k()>-1&&l.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),Lt(()=>{const C=o.value.getColumnIndex;(C?C():-1)>-1&&l.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in w&&w.columnConfig.value:null,b)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(be(a))for(const l of a)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===Ke&&be(l.children)&&l.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Be(r==null?void 0:r.children)&&o.push(r)});return Ye("div",o)}catch{return Ye("div",[])}}}),m5=lae;const rae=it(Yne,{TableColumn:m5}),sae=nn(m5);let Mo=function(e){return e.ASC="asc",e.DESC="desc",e}({}),Td=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({}),iae=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const W2={[Mo.ASC]:Mo.DESC,[Mo.DESC]:Mo.ASC},cu=Symbol("placeholder"),g5=String,Fu={type:J(Array),required:!0},ov={type:J(Array)},y5={...ov,required:!0},uae=String,Fg={type:J(Array),default:()=>ln([])},dr={type:Number,required:!0},b5={type:J([String,Number,Symbol]),default:"id"},Kg={type:J(Object)},yr=_e({class:String,columns:Fu,columnsStyles:{type:J(Object),required:!0},depth:Number,expandColumnKey:uae,estimatedRowHeight:{...kr.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:J(Function)},onRowHover:{type:J(Function)},onRowHeightChange:{type:J(Function)},rowData:{type:J(Object),required:!0},rowEventHandlers:{type:J(Object)},rowIndex:{type:Number,required:!0},rowKey:b5,style:{type:J(Object)}}),_0={type:Number,required:!0},lv=_e({class:String,columns:Fu,fixedHeaderData:{type:J(Array)},headerData:{type:J(Array),required:!0},headerHeight:{type:J([Number,Array]),default:50},rowWidth:_0,rowHeight:{type:Number,default:50},height:_0,width:_0}),Vc=_e({columns:Fu,data:y5,fixedData:ov,estimatedRowHeight:yr.estimatedRowHeight,width:dr,height:dr,headerWidth:dr,headerHeight:lv.headerHeight,bodyWidth:dr,rowHeight:dr,cache:Dw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:kr.scrollbarAlwaysOn,scrollbarStartGap:kr.scrollbarStartGap,scrollbarEndGap:kr.scrollbarEndGap,class:g5,style:Kg,containerStyle:Kg,getRowHeight:{type:J(Function),required:!0},rowKey:yr.rowKey,onRowsRendered:{type:J(Function)},onScroll:{type:J(Function)}}),cae=_e({cache:Vc.cache,estimatedRowHeight:yr.estimatedRowHeight,rowKey:b5,headerClass:{type:J([String,Function])},headerProps:{type:J([Object,Function])},headerCellProps:{type:J([Object,Function])},headerHeight:lv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:J([String,Function])},rowProps:{type:J([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:J([Object,Function])},columns:Fu,data:y5,dataGetter:{type:J(Function)},fixedData:ov,expandColumnKey:yr.expandColumnKey,expandedRowKeys:Fg,defaultExpandedRowKeys:Fg,class:g5,fixed:Boolean,style:{type:J(Object)},width:dr,height:dr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:kr.hScrollbarSize,vScrollbarSize:kr.vScrollbarSize,scrollbarAlwaysOn:Kw.alwaysOn,sortBy:{type:J(Object),default:()=>({})},sortState:{type:J(Object),default:void 0},onColumnSort:{type:J(Function)},onExpandedRowsChange:{type:J(Function)},onEndReached:{type:J(Function)},onRowExpand:yr.onRowExpand,onScroll:Vc.onScroll,onRowsRendered:Vc.onRowsRendered,rowEventHandlers:yr.rowEventHandlers}),dae=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function fae(e,t,n){const a=x(()=>i(t).map((m,y)=>({...m,key:m.key??m.dataKey??y}))),o=x(()=>i(a).filter(m=>!m.hidden)),l=x(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),r=x(()=>i(o).filter(m=>m.fixed==="right")),s=x(()=>i(o).filter(m=>!m.fixed)),u=x(()=>{const m=[];return i(l).forEach(y=>{m.push({...y,placeholderSign:cu})}),i(s).forEach(y=>{m.push(y)}),i(r).forEach(y=>{m.push({...y,placeholderSign:cu})}),m}),c=x(()=>i(l).length||i(r).length),d=x(()=>i(a).reduce((m,y)=>(m[y.key]=dae(y,i(n),e.fixed),m),{})),f=x(()=>i(o).reduce((m,y)=>m+y.width,0)),h=m=>i(a).find(y=>y.key===m),g=m=>i(d)[m],p=(m,y)=>{m.width=y};function v(m){var S;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let C=Mo.ASC;lt(b)?C=W2[b[y]]:C=W2[w.order],(S=e.onColumnSort)==null||S.call(e,{column:h(y),key:y,order:C})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:s,visibleColumns:o,getColumn:h,getColumnStyle:g,updateColumnWidth:p,onColumnSorted:v}}const pae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=V({scrollLeft:0,scrollTop:0});function r(g){var v,m,y;const{scrollTop:p}=g;(v=t.value)==null||v.scrollTo(g),(m=n.value)==null||m.scrollToTop(p),(y=a.value)==null||y.scrollToTop(p)}function s(g){l.value=g,r(g)}function u(g){l.value.scrollTop=g,r(i(l))}function c(g){var p,v;l.value.scrollLeft=g,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,i(l))}function d(g){var p;s(g),(p=e.onScroll)==null||p.call(e,g)}function f({scrollTop:g}){const{scrollTop:p}=i(l);g!==p&&u(g)}function h(g,p="auto"){var v;(v=t.value)==null||v.scrollToRow(g,p)}return fe(()=>i(l).scrollTop,(g,p)=>{g>p&&o()}),{scrollPos:l,scrollTo:s,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},hae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const s=vt(),{emit:u}=s,c=qt(!1),d=V(e.defaultExpandedRowKeys||[]),f=V(-1),h=qt(null),g=V({}),p=V({}),v=qt({}),m=qt({}),y=qt({}),b=x(()=>He(e.estimatedRowHeight));function w(O){var I;(I=e.onRowsRendered)==null||I.call(e,O),O.rowCacheEnd>i(f)&&(f.value=O.rowCacheEnd)}function C({hovered:O,rowKey:I}){r.value||o.vnode.el.querySelectorAll(`[rowkey="${String(I)}"]`).forEach(L=>{O?L.classList.add(l.is("hovered")):L.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:I,rowIndex:L,rowKey:z}){var F,N;const q=[...i(d)],U=q.indexOf(z);O?U===-1&&q.push(z):U>-1&&q.splice(U,1),d.value=q,u("update:expandedRowKeys",q),(F=e.onRowExpand)==null||F.call(e,{expanded:O,rowData:I,rowIndex:L,rowKey:z}),(N=e.onExpandedRowsChange)==null||N.call(e,q),o.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(z)}"]`)&&Le(()=>C({hovered:!0,rowKey:z}))}const k=Vo(()=>{var O,I,L,z;c.value=!0,g.value={...i(g),...i(p)},T(i(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(I=n.value)==null||I.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(z=s.proxy)==null||z.$forceUpdate(),c.value=!1},0);function T(O,I=!1){i(b)&&[t,n,a].forEach(L=>{const z=i(L);z&&z.resetAfterRowIndex(O,I)})}function M(O,I,L){const z=i(h);(z===null||z>L)&&(h.value=L),p.value[O]=I}function A({rowKey:O,height:I,rowIndex:L},z){z?z===iae.RIGHT?y.value[O]=I:v.value[O]=I:m.value[O]=I;const q=Math.max(...[v,y,m].map(U=>U.value[O]||0));i(g)[O]!==q&&(M(O,q,L),k())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:b,isResetting:c,rowHeights:g,resetAfterIndex:T,onRowExpanded:S,onRowHovered:C,onRowsRendered:w,onRowHeightChange:A}},vae=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=V({}),l=x(()=>{const s={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let g=u.slice();for(g.forEach(p=>s[p[c]]=0);g.length>0;){const p=g.shift();f.push(p),h.has(p[c])&&be(p.children)&&p.children.length>0&&(g=[...p.children,...g],p.children.forEach(v=>s[v[c]]=s[p[c]]+1))}return o.value=s,f}),r=x(()=>{const{data:s,expandColumnKey:u}=e;return u?i(l):s});return fe(r,(s,u)=>{s!==u&&(n.value=-1,a(0,!0))}),{data:r,depthMap:o}},mae=(e,t)=>e+t,Bc=e=>be(e)?e.reduce(mae,0):e,Vr=(e,t,n={})=>Fe(e)?e(t):e??n,Bl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=rn(e[t])}),e),w5=e=>Wt(e)?t=>Ye(e,t):e,gae=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=x(()=>{const{fixed:v,width:m,vScrollbarSize:y}=e,b=m-y;return v?Math.max(Math.round(i(t)),b):b}),r=x(()=>{const{height:v=0,maxHeight:m=0,footerHeight:y,hScrollbarSize:b}=e;if(m>0){const w=i(h),C=i(n),S=i(f)+w+C+b;return Math.min(S,m-y)}return v-y}),s=x(()=>{const{maxHeight:v}=e,m=i(r);if(He(v)&&v>0)return m;const y=i(n)+i(f)+i(h);return Math.min(m,y)}),u=v=>v.width,c=x(()=>Bc(i(a).map(u))),d=x(()=>Bc(i(o).map(u))),f=x(()=>Bc(e.headerHeight)),h=x(()=>{var v;return(((v=e.fixedData)==null?void 0:v.length)||0)*e.rowHeight}),g=x(()=>i(r)-i(f)-i(h)),p=x(()=>{const{style:v={},height:m,width:y}=e;return Bl({...v,height:m,width:y})});return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:x(()=>Bl({height:e.footerHeight})),emptyStyle:x(()=>({top:rn(i(f)),bottom:rn(e.footerHeight),width:rn(e.width)})),rootStyle:p,headerHeight:f}};function yae(e){const t=V(),n=V(),a=V(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=fae(e,Bt(e,"columns"),Bt(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y,scrollPos:b}=pae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:Z}),w=ve("table-v2"),C=vt(),S=qt(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:M,isResetting:A,rowHeights:O,resetAfterIndex:I,onRowExpanded:L,onRowHeightChange:z,onRowHovered:q,onRowsRendered:U}=hae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:C,ns:w,isScrolling:S}),{data:F,depthMap:N}=vae(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:I}),P=x(()=>{const{estimatedRowHeight:le,rowHeight:ce}=e,ge=i(F);return He(le)?Object.values(i(O)).reduce((me,Ae)=>me+Ae,0):ge.length*ce}),{bodyWidth:B,fixedTableHeight:W,mainTableHeight:K,leftTableWidth:j,rightTableWidth:G,windowHeight:ee,footerHeight:te,emptyStyle:ue,rootStyle:ne,headerHeight:de}=gae(e,{columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,rowsHeight:P}),se=V(),Y=x(()=>{const le=i(F).length===0;return be(e.fixedData)?e.fixedData.length===0&&le:le});function X(le){const{estimatedRowHeight:ce,rowHeight:ge,rowKey:me}=e;return ce?i(O)[i(F)[le][me]]||ce:ge}const H=V(!1);function Z(){const{onEndReached:le}=e;if(!le)return;const{scrollTop:ce}=i(b),ge=i(P),me=ge-(ce+i(ee))+e.hScrollbarSize;!H.value&&i(T)>=0&&ge<=ce+i(K)-i(de)?(H.value=!0,le(me)):H.value=!1}return fe(()=>i(P),()=>H.value=!1),fe(()=>e.expandedRowKeys,le=>k.value=le,{deep:!0}),{columns:o,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:A,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:F,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:B,emptyStyle:ue,rootStyle:ne,footerHeight:te,mainTableHeight:K,fixedTableHeight:W,leftTableWidth:j,rightTableWidth:G,showEmpty:Y,getRowHeight:X,onColumnSorted:f,onRowHovered:q,onRowExpanded:L,onRowsRendered:U,onRowHeightChange:z,scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y}}const rv=Symbol("tableV2"),C5="tableV2GridScrollLeft",bae=D({name:"ElTableV2Header",props:lv,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),o=Pe(C5),l=V(),r=x(()=>Bl({width:e.width,height:e.height})),s=x(()=>Bl({width:e.rowWidth,height:e.height})),u=x(()=>$n(i(e.headerHeight))),c=h=>{const g=i(l);Le(()=>{g!=null&&g.scroll&&g.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:g,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((m,y)=>{var w;const b=Bl({height:v,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:h,columns:g,rowData:m,rowIndex:-(y+1),style:b})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((p,v)=>{var y;const m=Bl({width:"100%",height:p});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:g,headerIndex:v,style:m})})};return so(()=>{o!=null&&o.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Q("div",{ref:l,class:e.class,style:i(r),role:"rowgroup"},[Q("div",{style:i(s),class:a.e("header")},[f(),d()])])}}}),wae="ElTableV2Grid",Cae=e=>{const t=V(),n=V(),a=V(0),o=x(()=>{const{data:m,rowHeight:y,estimatedRowHeight:b}=e;if(!b)return m.length*y}),l=x(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),r=x(()=>Bc(e.headerHeight)),s=x(()=>{const{height:m}=e;return Math.max(0,m-i(r)-i(l))}),u=x(()=>i(r)+i(l)>0),c=({data:m,rowIndex:y})=>m[y][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w})}function f(m,y){var b;(b=n.value)==null||b.resetAfterRowIndex(m,y)}function h(m,y){const b=i(t),w=i(n);lt(m)?(b==null||b.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,w==null||w.scrollTo(m)):(b==null||b.scrollToLeft(m),a.value=m,w==null||w.scrollTo({scrollLeft:m,scrollTop:y}))}function g(m){var y;(y=i(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){const b=i(n);if(!b)return;const w=a.value;b.scrollToItem(m,0,y),w&&h({scrollLeft:w})}function v(){var m,y;(m=i(n))==null||m.$forceUpdate(),(y=i(t))==null||y.$forceUpdate()}return fe(()=>e.bodyWidth,()=>{var m;He(e.estimatedRowHeight)&&((m=n.value)==null||m.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:s,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:g,scrollToRow:p,scrollLeft:a}},sv=D({name:wae,props:Vc,setup(e,{slots:t,expose:n}){const{ns:a}=Pe(rv),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:s,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:b}=Cae(e);wt(C5,b),mu(async()=>{var S;await Le();const C=(S=o.value)==null?void 0:S.states.scrollTop;C&&m(Math.round(C)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:y,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:C,columns:S,data:k,fixedData:T,useIsScrolling:M,scrollbarAlwaysOn:A,scrollbarEndGap:O,scrollbarStartGap:I,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:U,headerWidth:F,height:N,width:P,getRowHeight:B,onScroll:W}=e,K=He(U),j=K?xee:wee,G=i(c);return Q("div",{role:"table",class:[a.e("table"),e.class],style:L},[Q(j,{ref:o,data:k,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:K?w:q,totalColumn:1,totalRow:k.length,rowCache:C,rowHeight:K?B:z,width:P,height:i(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:O,scrollbarAlwaysOn:A,onScroll:W,onItemRendered:g,perfMode:!1},{default:ee=>{var ue;const te=k[ee.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...ee,columns:S,rowData:te})}}),i(s)&&Q(bae,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:F,rowHeight:z,width:P,height:Math.min(G+i(l),N)},{dynamic:t.header,fixed:t.row})])}}});function _ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Sae=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Q(sv,ht({ref:n},a),_ae(t)?t:{default:()=>[t]})};function xae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const kae=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Q(sv,ht({ref:n},a),xae(t)?t:{default:()=>[t]})};function Eae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Tae=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Q(sv,ht({ref:n},a),Eae(t)?t:{default:()=>[t]})},Mae=e=>{const{isScrolling:t}=Pe(rv),n=V(!1),a=V(),o=x(()=>He(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:g,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Le(()=>{if(u||v!==Number.parseInt(p.height)){const m=d[0],y=(m==null?void 0:m.placeholderSign)===cu;f==null||f({rowKey:h,height:v,rowIndex:g},m&&!y&&m.fixed)}})},r=x(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([p,v])=>{Fe(v)&&(g[p]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const m=g[p];g[p]=y=>{f({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m==null||m(y)}}),g}),s=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return gt(()=>{i(o)&&l(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:r,onExpand:s}},Oae=D({name:"ElTableV2TableRow",props:yr,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:s,rowRef:u,onExpand:c}=Mae(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:g,rowData:p,rowIndex:v,style:m}=e;let y=d.map((b,w)=>{const C=be(p.children)&&p.children.length>0&&b.key===h;return n.cell({column:b,columns:d,columnIndex:w,depth:g,style:f[b.key],rowData:p,rowIndex:v,isScrolling:i(l),expandIconProps:C?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(b=>be(b)&&b.length===1?b[0]:b),style:m,columns:d,depth:g,rowData:p,rowIndex:v,isScrolling:i(l)})),i(r)){const{height:b,...w}=m||{},C=i(s);return Q("div",ht({ref:u,class:e.class,style:C?m:w,role:"row"},a,i(o)),[y])}return Q("div",ht(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[y])}}});function $ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Aae=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:s,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:g,rowClass:p,rowKey:v,rowEventHandlers:m,ns:y,onRowHovered:b,onRowExpanded:w}=e,C=Vr(p,{columns:n,rowData:c,rowIndex:d},""),S=Vr(g,{columns:n,rowData:c,rowIndex:d}),k=c[v],T=o[k]||0,M=!!l,A=d<0,O=[y.e("row"),C,y.is("expanded",M&&r.includes(k)),y.is("fixed",!T&&A),y.is("customized",!!t.row),{[y.e(`row-depth-${T}`)]:M&&d>=0}],I=u?b:void 0,L={...S,columns:n,columnsStyles:a,class:O,depth:T,expandColumnKey:l,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:m,style:f};return Q(Oae,ht(L,{onRowExpand:w,onMouseenter:U=>{I==null||I({hovered:!0,rowKey:k,event:U,rowData:c,rowIndex:d})},onMouseleave:U=>{I==null||I({hovered:!1,rowKey:k,event:U,rowData:c,rowIndex:d})},rowkey:k}),$ae(t)?t:{default:()=>[t]})},iv=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,o=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"",l=oe(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[l])};iv.displayName="ElTableV2Cell";iv.inheritAttrs=!1;const _5=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l,ariaLabel:r}=e;return Q("button",ht({onClick:n?()=>a(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class},{type:"button"}),[Q(De,{size:l,style:o},{default:()=>[Q(Un,null,null)]})])};_5.inheritAttrs=!1;const j2=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:s,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:g,indentSize:p,iconSize:v,rowKey:m},{slots:y})=>{const b=Bl(u);if(t.placeholderSign===cu)return Q("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:C,dataGetter:S}=t,k=Fe(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:s}):bn(r,C??""),T=Vr(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:r}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:s},A=w5(w),O=A?A(M):oe(y,"default",M,()=>[Q(iv,M,null)]),I=[d.e("row-cell"),t.class,t.align===Td.CENTER&&d.is("align-center"),t.align===Td.RIGHT&&d.is("align-right")],L=s>=0&&g&&t.key===g,z=s>=0&&c.includes(r[m]);let q;const U=`margin-inline-start: ${a*p}px;`;return L&&(lt(o)?q=Q(_5,ht(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:v,expanded:z,ariaLabel:f(z?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:U,expandable:!0}),null):q=Q("div",{style:[U,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Q("div",ht({class:I,style:b},T,{role:"cell"}),[q,O])};j2.inheritAttrs=!1;const Rae=_e({class:String,columns:Fu,columnsStyles:{type:J(Object),required:!0},headerIndex:Number,style:{type:J(Object)}}),Nae=D({name:"ElTableV2HeaderRow",props:Rae,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map((s,u)=>t.cell({columns:n,column:s,columnIndex:u,headerIndex:o,style:a[s.key]}));return t.header&&(r=t.header({cells:r.map(s=>be(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Q("div",{class:e.class,style:l,role:"row"},[r])}}});function Pae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Iae=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:s})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),Vr(o,u,""),r.is("customized",!!s.header)];return Q(Nae,{...Vr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},Pae(s)?s:{default:()=>[s]})},uv=(e,{slots:t})=>oe(t,"default",e,()=>{var n,a;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});uv.displayName="ElTableV2HeaderCell";uv.inheritAttrs=!1;const Lae=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(De,{size:14},{default:()=>[t===Mo.ASC?Q(Oy,null,null):Q(My,null,null)]})])},Wg=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:l,onColumnSorted:r}=e,s=Bl(l);if(n.placeholderSign===cu)return Q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},h=w5(u),g=h?h(f):oe(t,"default",f,()=>[Q(uv,f,null)]),{sortBy:p,sortState:v,headerCellProps:m}=e;let y,b,w;if(v){const S=v[n.key];y=!!W2[S],b=y?S:Mo.ASC}else y=n.key===p.key,b=y?p.order:Mo.ASC;b===Mo.ASC?w="ascending":b===Mo.DESC?w="descending":w=void 0;const C=[a.e("header-cell"),Vr(c,e,""),n.align===Td.CENTER&&a.is("align-center"),n.align===Td.RIGHT&&a.is("align-right"),d&&a.is("sortable")];return Q("div",ht({...Vr(m,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:C,style:s,"data-key":n.key},{role:"columnheader"}),[g,d&&Q(Lae,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},S5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};S5.displayName="ElTableV2Footer";const x5=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[Q(Tw,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};x5.displayName="ElTableV2Empty";const k5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};k5.displayName="ElTableV2Overlay";function pi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Vae=D({name:"ElTableV2",props:cae,slots:Object,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),{t:o}=kt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:g,depthMap:p,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:y,leftTableRef:b,rightTableRef:w,isDynamic:C,isResetting:S,isScrolling:k,bodyWidth:T,emptyStyle:M,rootStyle:A,footerHeight:O,showEmpty:I,scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U,getRowHeight:F,onColumnSorted:N,onRowHeightChange:P,onRowHovered:B,onRowExpanded:W,onRowsRendered:K,onScroll:j,onVerticalScroll:G}=yae(e);return n({scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U}),wt(rv,{ns:a,isResetting:S,isScrolling:k}),()=>{const{cache:ee,cellProps:te,estimatedRowHeight:ue,expandColumnKey:ne,fixedData:de,headerHeight:se,headerClass:Y,headerProps:X,headerCellProps:H,sortBy:Z,sortState:le,rowHeight:ce,rowClass:ge,rowEventHandlers:me,rowKey:Ae,rowProps:Ne,scrollbarAlwaysOn:Re,indentSize:ye,iconSize:Ee,useIsScrolling:we,vScrollbarSize:Ie,width:ze}=e,et=i(g),nt={cache:ee,class:a.e("main"),columns:i(u),data:et,fixedData:de,estimatedRowHeight:ue,bodyWidth:i(T),headerHeight:se,headerWidth:i(T),height:i(c),mainTableRef:y,rowKey:Ae,rowHeight:ce,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:ze,getRowHeight:F,onRowsRendered:K,onScroll:j},at=i(f),Me=i(d),Ge={cache:ee,class:a.e("left"),columns:i(r),data:et,fixedData:de,estimatedRowHeight:ue,leftTableRef:b,rowHeight:ce,bodyWidth:at,headerWidth:at,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:at,getRowHeight:F,onScroll:G},ut=i(h),je={cache:ee,class:a.e("right"),columns:i(s),data:et,fixedData:de,estimatedRowHeight:ue,rightTableRef:w,rowHeight:ce,bodyWidth:ut,headerWidth:ut,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,width:ut,style:`${a.cssVarName("table-scrollbar-size")}: ${Ie}px`,useIsScrolling:we,getRowHeight:F,onScroll:G},tt=i(l),yt={ns:a,depthMap:i(p),columnsStyles:tt,expandColumnKey:ne,expandedRowKeys:i(v),estimatedRowHeight:ue,hasFixedColumns:i(m),rowProps:Ne,rowClass:ge,rowKey:Ae,rowEventHandlers:me,onRowHovered:B,onRowExpanded:W,onRowHeightChange:P},he={cellProps:te,expandColumnKey:ne,indentSize:ye,iconSize:Ee,rowKey:Ae,expandedRowKeys:i(v),ns:a,t:o},Ve={ns:a,headerClass:Y,headerProps:X,columnsStyles:tt},pe={ns:a,t:o,sortBy:Z,sortState:le,headerCellProps:H,onColumnSorted:N},Te={row:Gt=>Q(Aae,ht(Gt,yt),{row:t.row,cell:$e=>{let We;return t.cell?Q(j2,ht($e,he,{style:tt[$e.column.key]}),pi(We=t.cell($e))?We:{default:()=>[We]}):Q(j2,ht($e,he,{style:tt[$e.column.key]}),null)}}),header:Gt=>Q(Iae,ht(Gt,Ve),{header:t.header,cell:$e=>{let We;return t["header-cell"]?Q(Wg,ht($e,pe,{style:tt[$e.column.key]}),pi(We=t["header-cell"]($e))?We:{default:()=>[We]}):Q(Wg,ht($e,pe,{style:tt[$e.column.key]}),null)}})},ct=[e.class,a.b(),a.e("root"),a.is("dynamic",i(C))],Pt={class:a.e("footer"),style:i(O)};return Q("div",{class:ct,style:i(A)},[Q(Sae,nt,pi(Te)?Te:{default:()=>[Te]}),Q(kae,Ge,pi(Te)?Te:{default:()=>[Te]}),Q(Tae,je,pi(Te)?Te:{default:()=>[Te]}),t.footer&&Q(S5,Pt,{default:t.footer}),i(I)&&Q(x5,{class:a.e("empty"),style:i(M)},{default:t.empty}),t.overlay&&Q(k5,{class:a.e("overlay")},{default:t.overlay})])}}}),Bae=_e({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:J(Function)}}),zae=e=>{const t=V(),n=V(0),a=V(0);let o;return gt(()=>{o=Zt(t,([l])=>{const{width:r,height:s}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-g,a.value=s-p-v}).stop}),Lt(()=>{o==null||o()}),fe([n,a],([l,r])=>{var s;(s=e.onResize)==null||s.call(e,{width:l,height:r})}),{sizer:t,width:n,height:a}},Dae=D({name:"ElAutoResizer",props:Bae,setup(e,{slots:t}){const n=ve("auto-resizer"),{height:a,width:o,sizer:l}=zae(e),r={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:l,class:n.b(),style:r},[(s=t.default)==null?void 0:s.call(t,{height:a.value,width:o.value})])}}}),Hae=it(Vae),Fae=it(Dae),_f=Symbol("tabsRootContextKey"),Kae=_e({tabs:{type:J(Array),default:()=>ln([])},tabRefs:{type:J(Object),default:()=>ln({})}}),jg="ElTabBar";var Wae=D({name:jg,__name:"tab-bar",props:Kae,setup(e,{expose:t}){const n=e,a=Pe(_f);a||tn(jg,"");const o=ve("tabs"),l=V(),r=V(),s=x(()=>{var g;return Et(a.props.defaultValue)||!!((g=r.value)!=null&&g.transform)}),u=()=>{let g=0,p=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(b=>{if(Et(b.paneName))return!1;const w=n.tabRefs[b.paneName];if(!w)return!1;if(!b.active)return!0;g=w[`offset${e0(y)}`],p=w[`client${e0(v)}`];const C=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),g+=Number.parseFloat(C.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${e0(m)}(${g}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(Zt(g,c))})};fe(()=>n.tabs,async()=>{await Le(),c(),f()},{immediate:!0});const h=Zt(l,()=>c());return Lt(()=>{d.forEach(g=>g.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(g,p)=>s.value?(_(),$("div",{key:0,ref_key:"barRef",ref:l,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:qe(r.value)},null,6)):re("v-if",!0)}}),jae=Wae;const qae=_e({panes:{type:J(Array),default:()=>ln([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),Uae={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},qg="ElTabNav",Yae=D({name:qg,props:qae,emits:Uae,setup(e,{expose:t,emit:n}){const a=Pe(_f);a||tn(qg,"");const o=ve("tabs"),l=AS(),r=NS(),s=V(),u=V(),c=V(),d=V({}),f=V(),h=V(!1),g=V(0),p=V(!1),v=V(!0),m=V(!1),y=qt(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)),w=x(()=>b.value?"width":"height"),C=x(()=>{const j=w.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${j}(-${g.value}px)`}}),{width:S,height:k}=U0(s),{width:T,height:M}=U0(u,{width:0,height:0},{box:"border-box"}),A=x(()=>b.value?S.value:k.value),O=x(()=>b.value?T.value:M.value),{onWheel:I}=jw({atStartEdge:x(()=>g.value<=0),atEndEdge:x(()=>O.value-g.value<=A.value),layout:x(()=>b.value?"horizontal":"vertical")},j=>{g.value=pr(g.value+j,0,O.value-A.value)}),L=j=>{m.value=!0,I(j),Fa(()=>{m.value=!1})},z=()=>{if(!s.value)return;const j=s.value.getBoundingClientRect()[w.value],G=g.value;G&&(g.value=G>j?G-j:0)},q=()=>{if(!s.value||!u.value)return;const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;Dl(j-ee,G)&&(g.value=j-ee>G*2?ee+G:j-G)},U=async()=>{const j=u.value;if(!h.value||!c.value||!s.value||!j)return;await Le();const G=d.value[e.currentName];if(!G)return;const ee=s.value,te=G.getBoundingClientRect(),ue=ee.getBoundingClientRect(),ne=ue.left+1,de=ue.right-1,se=j.getBoundingClientRect(),Y=b.value?se.width-ue.width:se.height-ue.height,X=g.value;let H=X;b.value?(te.leftde&&(H=X+te.right-de)):(te.topue.bottom&&(H=X+(te.bottom-ue.bottom))),H=Math.max(H,0),g.value=Math.min(H,Y)},F=()=>{var te;if(!u.value||!s.value)return;e.stretch&&((te=f.value)==null||te.update());const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;G0&&(g.value=0))},N=j=>{const G=Kt(j);let ee=0;switch(G){case Ce.left:case Ce.up:ee=-1;break;case Ce.right:case Ce.down:ee=1;break;default:return}const te=Array.from(j.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ue=te.indexOf(j.target)+ee;ue<0?ue=te.length-1:ue>=te.length&&(ue=0),te[ue].focus({preventScroll:!0}),te[ue].click(),P()},P=()=>{v.value&&(p.value=!0)},B=()=>p.value=!1,W=(j,G)=>{d.value[G]=j},K=async()=>{var j;await Le(),(j=d.value[e.currentName])==null||j.focus({preventScroll:!0})};return fe(l,j=>{j==="hidden"?v.value=!1:j==="visible"&&setTimeout(()=>v.value=!0,50)}),fe(r,j=>{j?setTimeout(()=>v.value=!0,50):v.value=!1}),Zt(c,()=>{Fa(F)}),gt(()=>setTimeout(()=>U(),0)),so(()=>F()),t({scrollToActiveTab:U,removeFocus:B,focusActiveTab:K,tabListRef:u,tabBarRef:f,scheduleRender:()=>_c(y)}),()=>{const j=h.value?[Q("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:z},[Q(De,null,{default:()=>[Q(zo,null,null)]})]),Q("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:q},[Q(De,null,{default:()=>[Q(Un,null,null)]})])]:null,G=e.panes.map((ee,te)=>{var Z,le;const ue=ee.uid,ne=ee.props.disabled,de=ee.props.name??ee.index??`${te}`,se=!ne&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${te}`;const Y=se?Q(De,{class:"is-icon-close",onClick:ce=>n("tabRemove",ee,ce)},{default:()=>[Q(Na,null,null)]}):null,X=((le=(Z=ee.slots).label)==null?void 0:le.call(Z))||ee.props.label,H=!ne&&ee.active?e.tabindex??a.props.tabindex:-1;return Q("div",{ref:ce=>W(ce,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",ne),o.is("closable",se),o.is("focus",p.value)],id:`tab-${de}`,key:`tab-${ue}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:H,onFocus:()=>P(),onBlur:()=>B(),onClick:ce=>{B(),n("tabClick",ee,de,ce)},onKeydown:ce=>{const ge=Kt(ce);se&&(ge===Ce.delete||ge===Ce.backspace)&&n("tabRemove",ee,ce)}},[X,Y])});return y.value,Q("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(a.props.tabPosition)]},[j,Q("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:N,onWheel:L},[e.type?null:Q(jae,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),G]):null])])}}}),Gae=_e({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:J(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),S0=e=>Be(e)||He(e),Xae={[ot]:e=>S0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>S0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>S0(e),tabAdd:()=>!0},Jae=D({name:"ElTabs",props:Gae,emits:Xae,setup(e,{emit:t,slots:n,expose:a}){const o=ve("tabs"),l=x(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:s,removeChild:u,ChildrenSorter:c}=df(vt(),"ElTabPane"),d=V(),f=V((Et(e.modelValue)?e.defaultValue:e.modelValue)??"0"),h=async(b,w=!1)=>{var C,S,k,T;if(!(f.value===b||Et(b)))try{let M;if(e.beforeLeave){const A=e.beforeLeave(b,f.value);M=A instanceof Promise?await A:A}else M=!0;if(M!==!1){const A=(C=r.value.find(O=>O.paneName===f.value))==null?void 0:C.isFocusInsidePane();f.value=b,w&&(t(ot,b),t("tabChange",b)),(k=(S=d.value)==null?void 0:S.removeFocus)==null||k.call(S),A&&((T=d.value)==null||T.focusActiveTab())}}catch{}},g=(b,w,C)=>{b.props.disabled||(t("tabClick",b,C),h(w,!0))},p=(b,w)=>{b.props.disabled||Et(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=Kt(b);[Ce.enter,Ce.numpadEnter].includes(w)&&v()},y=b=>{const w=b.el.firstChild,C=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==C&&w.before(C)};return fe(()=>e.modelValue,b=>h(b)),fe(f,async()=>{var b;await Le(),(b=d.value)==null||b.scrollToActiveTab()}),wt(_f,{props:e,currentName:f,registerPane:s,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return xu(d.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),l.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[b?oe(n,"add-icon"):Q(De,{class:o.is("icon-plus")},{default:()=>[Q(gh,null,null)]})]):null,C=()=>Q(Yae,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:g,onTabRemove:p},null),S=Q("div",{class:[o.e("header"),l.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:C,$stable:!0}),w]),k=Q("div",{class:o.e("content")},[oe(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[k,S])}}}),Zae=_e({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Qae=["id","aria-hidden","aria-labelledby"],Ug="ElTabPane";var eoe=D({name:Ug,__name:"tab-pane",props:Zae,setup(e){const t=e,n=vt(),a=vn(),o=Pe(_f);o||tn(Ug,"usage: ");const l=ve("tab-pane"),r=V(),s=V(),u=x(()=>t.closable??o.props.closable),c=x(()=>o.currentName.value===(t.name??s.value)),d=V(c.value),f=x(()=>t.name??s.value),h=x(()=>!t.lazy||d.value||c.value),g=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};fe(c,v=>{v&&(d.value=!0)});const p=Nt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:s,isClosable:u,isFocusInsidePane:g});return o.registerPane(p),Lt(()=>{o.unregisterPane(p)}),Sp(()=>{var v;a.label&&((v=o.nav$.value)==null||v.scheduleRender())}),(v,m)=>h.value?ft((_(),$("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:R(i(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,Qae)),[[At,c.value]]):re("v-if",!0)}}),E5=eoe;const toe=it(Jae,{TabPane:E5}),noe=nn(E5),aoe=_e({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:io,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var ooe=D({name:"ElText",__name:"text",props:aoe,setup(e){const t=e,n=V(),a=_n(),o=ve("text"),l=x(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!Et(t.lineClamp))]),r=()=>{var c,d,f,h,g,p,v;if(gl().title)return;let s=!1;const u=((c=n.value)==null?void 0:c.textContent)||"";if(t.truncated){const m=(d=n.value)==null?void 0:d.offsetWidth,y=(f=n.value)==null?void 0:f.scrollWidth;m&&y&&y>m&&(s=!0)}else if(!Et(t.lineClamp)){const m=(h=n.value)==null?void 0:h.offsetHeight,y=(g=n.value)==null?void 0:g.scrollHeight;m&&y&&y>m&&(s=!0)}s?(p=n.value)==null||p.setAttribute("title",u):(v=n.value)==null||v.removeAttribute("title")};return gt(r),so(r),(s,u)=>(_(),ie(dt(e.tag),{ref_key:"textRef",ref:n,class:R(l.value),style:qe({"-webkit-line-clamp":e.lineClamp})},{default:ae(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),loe=ooe;const cv=it(loe),q2="00:30",roe=_e({format:{type:String,default:"HH:mm"},modelValue:{type:J(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:J(String),default:"light"},clearable:{type:Boolean,default:!0},size:kn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:q2},minTime:{type:J(String)},maxTime:{type:J(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:J([String,Object]),default:()=>mh},clearIcon:{type:J([String,Object]),default:()=>ho},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},...jr}),el=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},x0=(e,t)=>{const n=el(e);if(!n)return-1;const a=el(t);if(!a)return-1;const o=n.minutes+n.hours*60,l=a.minutes+a.hours*60;return o===l?0:o>l?1:-1},Yg=e=>`${e}`.padStart(2,"0"),ls=e=>`${Yg(e.hours)}:${Yg(e.minutes)}`,soe=(e,t)=>{const n=el(e);if(!n)return"";const a=el(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,ls(o)};var ioe=D({name:"ElTimeSelect",__name:"time-select",props:roe,emits:[bt,"blur","focus","clear",ot],setup(e,{expose:t}){st.extend(Ah);const{Option:n}=Yl,a=e,o=ve("input"),l=V(),r=sn(),{lang:s}=kt(),u=x(()=>a.modelValue),c=x(()=>{const y=el(a.start);return y?ls(y):null}),d=x(()=>{const y=el(a.end);return y?ls(y):null}),f=x(()=>{const y=el(a.minTime||"");return y?ls(y):null}),h=x(()=>{const y=el(a.maxTime||"");return y?ls(y):null}),g=x(()=>{const y=el(a.step),b=!y||y.hours<0||y.minutes<0||Number.isNaN(y.hours)||Number.isNaN(y.minutes)||y.hours===0&&y.minutes===0;return b&&pt("ElTimeSelect",`invalid step, fallback to default step (${q2}).`),b?q2:ls(y)}),p=x(()=>{var w;const y=[],b=(C,S)=>{y.push({value:C,rawValue:S,disabled:x0(S,f.value||"-1:-1")<=0||x0(S,h.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let C=c.value,S;for(;C&&d.value&&x0(C,d.value)<=0;)S=st(C,"HH:mm").locale(s.value).format(a.format),b(S,C),C=soe(C,g.value);a.includeEndTime&&d.value&&((w=y[y.length-1])==null?void 0:w.rawValue)!==d.value&&b(st(d.value,"HH:mm").locale(s.value).format(a.format),d.value)}return y});return t({blur:()=>{var y,b;(b=(y=l.value)==null?void 0:y.blur)==null||b.call(y)},focus:()=>{var y,b;(b=(y=l.value)==null?void 0:y.focus)==null||b.call(y)}}),(y,b)=>(_(),ie(i(Yl),{ref_key:"select",ref:l,name:e.name,"model-value":u.value,disabled:i(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":b[0]||(b[0]=w=>y.$emit(i(ot),w)),onChange:b[1]||(b[1]=w=>y.$emit(i(bt),w)),onBlur:b[2]||(b[2]=w=>y.$emit("blur",w)),onFocus:b[3]||(b[3]=w=>y.$emit("focus",w)),onClear:b[4]||(b[4]=()=>y.$emit("clear"))},{prefix:ae(()=>[e.prefixIcon?(_(),ie(i(De),{key:0,class:R(i(o).e("prefix-icon"))},{default:ae(()=>[(_(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ae(()=>[(_(!0),$(Ke,null,_t(p.value,w=>(_(),ie(i(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),uoe=ioe;const coe=it(uoe),T5="timeline",doe=_e({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),foe=D({name:"ElTimeline",props:doe,setup(e,{slots:t}){const n=ve("timeline");wt(T5,{props:e,slots:t});const a=x(()=>[n.b(),n.is(e.mode)]);return()=>{var l;const o=Ta(((l=t.default)==null?void 0:l.call(t))??[]);return Ye("ul",{class:a.value},e.reverse?o.reverse():o)}}}),poe=_e({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ft},hollow:Boolean});var hoe=D({name:"ElTimelineItem",__name:"timeline-item",props:poe,setup(e){const t=e,{props:n}=Pe(T5),a=ve("timeline-item"),o=x(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),l=x(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(r,s)=>(_(),$("li",{class:R(l.value)},[E("div",{class:R(i(a).e("tail"))},null,2),r.$slots.dot?re("v-if",!0):(_(),$("div",{key:0,class:R(o.value),style:qe({backgroundColor:e.color})},[e.icon?(_(),ie(i(De),{key:0,class:R(i(a).e("icon"))},{default:ae(()=>[(_(),ie(dt(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),r.$slots.dot?(_(),$("div",{key:1,class:R(i(a).e("dot"))},[oe(r.$slots,"dot")],2)):re("v-if",!0),E("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(_(),$("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},Se(e.timestamp),3)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[oe(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(_(),$("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},Se(e.timestamp),3)):re("v-if",!0)],2)],2))}}),M5=hoe;const voe=it(foe,{TimelineItem:M5}),moe=nn(M5),O5="left-check-change",$5="right-check-change",rs=_e({data:{type:J(Array),default:()=>[]},titles:{type:J(Array),default:()=>[]},buttonTexts:{type:J(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:J(Function)},leftDefaultChecked:{type:J(Array),default:()=>[]},rightDefaultChecked:{type:J(Array),default:()=>[]},renderContent:{type:J(Function)},modelValue:{type:J(Array),default:()=>[]},format:{type:J(Object),default:()=>({})},filterable:Boolean,props:{type:J(Object),default:()=>ln({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),U2=(e,t)=>[e,t].every(be)||be(e)&&yn(t),goe={[bt]:(e,t,n)=>[e,n].every(be)&&["left","right"].includes(t),[ot]:e=>be(e),[O5]:U2,[$5]:U2},Ku=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},yoe=(e,t)=>({onSourceCheckedChange:(o,l)=>{e.leftChecked=o,l&&t(O5,o,l)},onTargetCheckedChange:(o,l)=>{e.rightChecked=o,l&&t($5,o,l)}}),boe=e=>{const t=Ku(e),n=x(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:x(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:x(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const l=n.value[o];return l&&a.push(l),a},[]))}},woe=(e,t,n)=>{const a=Ku(e),o=(s,u,c)=>{n(ot,s),n(bt,s,u,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=s.indexOf(u);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);s=e.targetOrder==="unshift"?u.concat(s):s.concat(u),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[a.value.key])).map(c=>c[a.value.key])),o(s,"right",t.leftChecked)}}},Y2="checked-change",Coe=_e({data:rs.data,optionRender:{type:J(Function)},placeholder:String,title:String,filterable:Boolean,format:rs.format,filterMethod:rs.filterMethod,defaultChecked:rs.leftDefaultChecked,props:rs.props}),_oe={[Y2]:U2},Soe=(e,t,n)=>{const a=Ku(e),o=x(()=>e.data.filter(d=>Fe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=x(()=>o.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),s=x(()=>{const d=t.checked.length;return d>0&&d{const d=l.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[a.value.key]):[]};return fe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(Y2,d,d.concat(f).filter(h=>!d.includes(h)||!f.includes(h))):(n(Y2,d),t.checkChangeByUser=!0)}),fe(l,()=>{u()}),fe(()=>e.data,()=>{const d=[],f=o.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),fe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],g=l.value.map(p=>p[a.value.key]);d.forEach(p=>{g.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:s,updateAllChecked:u,handleAllCheckedChange:c}};var xoe=D({name:"ElTransferPanel",__name:"transfer-panel",props:Coe,emits:_oe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=vn(),r=({option:C})=>C,{t:s}=kt(),u=ve("transfer"),c=Nt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Ku(a),{filteredData:f,checkedSummary:h,isIndeterminate:g,handleAllCheckedChange:p}=Soe(a,c,o),v=x(()=>!ca(c.query)&&ca(f.value)),m=x(()=>!ca(l.default()[0].children)),{checked:y,allChecked:b,query:w}=Nn(c);return t({query:w}),(C,S)=>(_(),$("div",{class:R(i(u).b("panel"))},[E("p",{class:R(i(u).be("panel","header"))},[Q(i(lo),{modelValue:i(b),"onUpdate:modelValue":S[0]||(S[0]=k=>Yt(b)?b.value=k:null),indeterminate:i(g),"validate-event":!1,onChange:i(p)},{default:ae(()=>[E("span",{class:R(i(u).be("panel","header-title"))},Se(e.title),3),E("span",{class:R(i(u).be("panel","header-count"))},Se(i(h)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(_(),ie(i(Dn),{key:0,modelValue:i(w),"onUpdate:modelValue":S[1]||(S[1]=k=>Yt(w)?w.value=k:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(Ty),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),ft(Q(i(Ih),{modelValue:i(y),"onUpdate:modelValue":S[2]||(S[2]=k=>Yt(y)?y.value=k:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ae(()=>[(_(!0),$(Ke,null,_t(i(f),k=>(_(),ie(i(lo),{key:k[i(d).key],class:R(i(u).be("panel","item")),value:k[i(d).key],disabled:k[i(d).disabled],"validate-event":!1},{default:ae(()=>{var T;return[Q(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[At,!v.value&&!i(ca)(e.data)]]),ft(E("div",{class:R(i(u).be("panel","empty"))},[oe(C.$slots,"empty",{},()=>[St(Se(v.value?i(s)("el.transfer.noMatch"):i(s)("el.transfer.noData")),1)])],2),[[At,v.value||i(ca)(e.data)]])],2),m.value?(_(),$("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(C.$slots,"default")],2)):re("v-if",!0)],2))}}),Gg=xoe;const koe={key:0},Eoe={key:0};var Toe=D({name:"ElTransfer",__name:"transfer",props:rs,emits:goe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=vn(),{t:r}=kt(),s=ve("transfer"),{formItem:u}=Bn(),c=Nt({leftChecked:[],rightChecked:[]}),d=Ku(a),{sourceData:f,targetData:h}=boe(a),{onSourceCheckedChange:g,onTargetCheckedChange:p}=yoe(c,o),{addToLeft:v,addToRight:m}=woe(a,c,o),y=V(),b=V(),w=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},C=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||r("el.transfer.titles.0")),k=x(()=>a.titles[1]||r("el.transfer.titles.1")),T=x(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));fe(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=u==null?void 0:u.validate)==null||A.call(u,"change").catch(O=>pt(O)))});const M=x(()=>A=>{var I;if(a.renderContent)return a.renderContent(Ye,A);const O=(((I=l.default)==null?void 0:I.call(l,{option:A}))||[]).filter(L=>L.type!==gn);return O.length?O:Ye("span",A[d.value.label]||A[d.value.key])});return t({clearQuery:w,leftPanel:y,rightPanel:b}),(A,O)=>(_(),$("div",{class:R(i(s).b())},[Q(Gg,{ref_key:"leftPanel",ref:y,data:i(f),"option-render":M.value,placeholder:T.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ae(()=>[oe(A.$slots,"left-empty")]),default:ae(()=>[oe(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:R(i(s).e("buttons"))},[Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ca)(c.rightChecked),onClick:i(v)},{default:ae(()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1}),i(Et)(e.buttonTexts[0])?re("v-if",!0):(_(),$("span",koe,Se(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ca)(c.leftChecked),onClick:i(m)},{default:ae(()=>[i(Et)(e.buttonTexts[1])?re("v-if",!0):(_(),$("span",Eoe,Se(e.buttonTexts[1]),1)),Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(Gg,{ref_key:"rightPanel",ref:b,data:i(h),"option-render":M.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(p)},{empty:ae(()=>[oe(A.$slots,"right-empty")]),default:ae(()=>[oe(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),Moe=Toe;const Ooe=it(Moe),dv="RootTree",A5="NodeInstance",Xg="TreeNodeMap",R5=_e({data:{type:J(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:J(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:J(Function)},allowDrop:{type:J(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ft}}),$oe={"check-change":(e,t,n)=>e&&Dt(t)&&Dt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},bs="$treeNodeId",Jg=function(e,t){!t||t[bs]||Object.defineProperty(t,bs,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},fv=(e,t)=>t==null?void 0:t[e||bs],G2=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},N5=e=>{let t=!0,n=!0,a=!0,o=!0;for(let l=0,r=e.length;l{n.canFocus=t,X2(n.childNodes,t)})};let Aoe=0;var J2=class zc{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Aoe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Mt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var l;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=gc(this,"isLeaf");Dt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),be(this.data)||Jg(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!yn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((l=this.parent)==null?void 0:l.expanded)===!0)&&(this.canFocus=!0)}setData(t){be(t)||Jg(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&be(this.data)?n=this.data:n=gc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof zc)){if(!a){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(Et(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Nt(new zc(t)),t instanceof zc&&t.initialize()}t.level=this.level+1,Et(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),X2(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{be(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||wi(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,X2(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const s=this.childNodes;for(let f=0,h=s.length;f{r(),wi(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||a||wi(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),Et(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),a={},o=[];t.forEach((l,r)=>{const s=l[bs];s&&n.some(u=>(u==null?void 0:u[bs])===s)?a[s]={index:r,data:l}:o.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{a[l==null?void 0:l[bs]]||this.removeChildByData(l)}),o.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||wi(this)}},Roe=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Mt(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new J2({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},It)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[r,s]of l.entries())s.visible=!!(t!=null&&t.call(s,e,s.data,s)),r%80===0&&r>0&&await Le(),await a(s);if(!o.visible&&l.length){let r=!0;r=!l.some(s=>s.visible),o.root?o.root.visible=r===!1:o.visible=r===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof J2)return e;const t=lt(e)?fv(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertBefore({data:e},n)}insertAfter(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=ya(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!yn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;yn(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf)&&n.push(l.data),a(l)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Mt(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const l=a[o];this.remove(l.data)}for(let o=0,l=t.length;os.level-u.level),o=Object.create(null),l=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));const r=s=>{s.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&r(u)})};for(let s=0,u=a.length;s{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),h.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var o;const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(e,t=!0){var a;if(this.currentNodeKey=e,ya(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}};function P5(e){const t=Pe(Xg,null);let n={treeNodeExpand:a=>{var o;e.node!==a&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Lt(()=>{t&&t.children.delete(n),n=null}),wt(Xg,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const I5=Symbol("dragEvents");function Noe({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=ve("tree"),r=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return wt(I5,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(Fe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,g=r.value.dropNode;g&&g.node.id!==h.node.id&&aa(g.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,m=!0,y=!0,b=!0;Fe(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),b=m=e.allowDrop(p.node,h.node,"inner"),y=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",p.node,g.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||m||y?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(y=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(m=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,m=!1,y=!1);const w=h.$el,C=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const M=v?m?.25:y?.45:1:Number.NEGATIVE_INFINITY,A=y?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const I=d.clientY-C.top;IC.height*A?T="after":m?T="inner":T="none";const L=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),z=a.value;T==="before"?O=L.top-S.top+k:T==="after"&&(O=L.bottom-S.top+k),z.style.top=`${O}px`,z.style.left=`${L.right-S.left}px`,T==="inner"?Ba(w,l.is("drop-inner")):aa(w,l.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||b,r.value.dropType=T,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:f,dropType:h,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f!=null&&f.node.data&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?(p=g.node.parent)==null||p.insertBefore(m,g.node):h==="after"?(v=g.node.parent)==null||v.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(o.value.registerNode(m),o.value.key&&f.node.eachNode(y=>{var b;(b=o.value.nodesMap[y.data[o.value.key]])==null||b.setChecked(y.checked,!o.value.checkStrictly)})),aa(g.$el,l.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,d),h!=="none"&&t.emit("node-drop",f.node,g.node,h,d)}f&&!g&&t.emit("node-drag-end",f.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var Poe=D({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ve("tree"),n=Pe(A5),a=Pe(dv);return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(Ye,{_self:n,node:o,data:l,store:r}):oe(a.ctx.slots,"default",{node:o,data:l},()=>[Ye(cv,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),Ioe=Poe,Loe=D({name:"ElTreeNode",components:{ElCollapseTransition:yf,ElCheckbox:lo,NodeContent:Ioe,ElIcon:De,Loading:no},props:{node:{type:J2,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ve("tree"),{broadcastExpanded:a}=P5(e),o=Pe(dv),l=V(!1),r=V(!1),s=V(),u=V(),c=V(),d=Pe(I5),f=vt();wt(A5,f),o||pt("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const h=o.props.props.children||"children";fe(()=>{var O;const A=(O=e.node.data)==null?void 0:O[h];return A&&[...A]},()=>{e.node.updateChildren()}),fe(()=>e.node.indeterminate,A=>{v(e.node.checked,A)}),fe(()=>e.node.checked,A=>{v(A,e.node.indeterminate)}),fe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),fe(()=>e.node.expanded,A=>{Le(()=>l.value=A),A&&(r.value=!0)});const g=A=>o.props.nodeKey?fv(o.props.nodeKey,A.data):A.id,p=A=>{const O=e.props.class;if(!O)return{};let I;if(Fe(O)){const{data:L}=A;I=O(L,A)}else I=O;return Be(I)?{[I]:!0}:I},v=(A,O)=>{(s.value!==A||u.value!==O)&&o.ctx.emit("check-change",e.node.data,A,O),s.value=A,u.value=O},m=A=>{G2(o.store,o.ctx.emit,()=>{var O;if((O=o==null?void 0:o.props)!=null&&O.nodeKey){const I=g(e.node);o.store.value.setCurrentNodeKey(I)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,A)},y=A=>{var O;(O=o.instance.vnode.props)!=null&&O.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),o.ctx.emit("node-contextmenu",A,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=A=>{const O=o==null?void 0:o.props.checkStrictly,I=e.node.childNodes;!O&&I.length&&(A=I.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(A,!O),Le(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:l,childNodeRendered:r,oldChecked:s,oldIndeterminate:u,getNodeKey:g,getNodeClass:p,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,O,I)=>{a(O),o.ctx.emit("node-expand",A,O,I)},handleDragStart:A=>{o.props.draggable&&d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:c.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{o.props.draggable&&d.treeNodeDragEnd(A)},CaretRight:vh}}});const Voe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Boe=["aria-expanded"];function zoe(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-checkbox"),u=$t("loading"),c=$t("node-content"),d=$t("el-tree-node"),f=$t("el-collapse-transition");return ft((_(),$("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Je((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=Je((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=Je((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=Je((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=Je((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[E("div",{class:R(e.ns.be("node","content")),style:qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ie(r,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Je(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(_(),ie(dt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(_(),ie(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Je(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(_(),ie(r,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[Q(u)]),_:1},8,["class"])):re("v-if",!0),Q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?ft((_(),$("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Je(()=>{},["stop"]))},[(_(!0),$(Ke,null,_t(e.node.childNodes,h=>(_(),ie(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Boe)),[[At,e.expanded]]):re("v-if",!0)]),_:1})],42,Voe)),[[At,e.node.visible]])}var Doe=En(Loe,[["render",zoe]]);function Hoe({el$:e},t){const n=ve("tree");gt(()=>{l()}),so(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(r,s){var c,d;const u=t.value.getNode(r[s].dataset.key);return u.canFocus&&u.visible&&(((c=u.parent)==null?void 0:c.expanded)||((d=u.parent)==null?void 0:d.level)===0)}Vt(e,"keydown",r=>{const s=r.target;if(!s.className.includes(n.b("node")))return;const u=Kt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(s);let f;if([Ce.up,Ce.down].includes(u)){if(r.preventDefault(),u===Ce.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Ce.left,Ce.right].includes(u)&&(r.preventDefault(),s.click());const h=s.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var u;if(!e.value)return;const r=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const s=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(s.length){s[0].setAttribute("tabindex","0");return}(u=r[0])==null||u.setAttribute("tabindex","0")}}var Foe=D({name:"ElTree",components:{ElTreeNode:Doe},props:R5,emits:$oe,setup(e,t){const{t:n}=kt(),a=ve("tree"),o=V(new Roe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=V(o.value.root),r=V(null),s=V(null),u=V(null),{broadcastExpanded:c}=P5(e),{dragState:d}=Noe({props:e,ctx:t,el$:s,dropIndicator$:u,store:o});Hoe({el$:s},o);const f=vt(),h=x(()=>{let W=f==null?void 0:f.parent;for(;W;){if(W.type.name==="ElTreeSelect")return!0;W=W.parent}return!1}),g=x(()=>{const{childNodes:W}=l.value;return(!W||W.length===0||W.every(({visible:K})=>!K))&&!h.value});fe(()=>e.currentNodeKey,W=>{o.value.setCurrentNodeKey(W??null)}),fe(()=>e.defaultCheckedKeys,(W,K)=>{on(W,K)||o.value.setDefaultCheckedKey(W??[])}),fe(()=>e.defaultExpandedKeys,W=>{o.value.setDefaultExpandedKeys(W??[])}),fe(()=>e.data,W=>{o.value.setData(W)},{deep:!0}),fe(()=>e.checkStrictly,W=>{o.value.checkStrictly=W});const p=W=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(W)},v=W=>e.nodeKey?fv(e.nodeKey,W.data):W.id,m=W=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${W}`)},y=W=>{m("getNodePath");const K=o.value.getNode(W);if(!K)return[];const j=[K.data];let G=K.parent;for(;G&&G!==l.value;)j.push(G.data),G=G.parent;return j.reverse()},b=(W,K)=>o.value.getCheckedNodes(W,K),w=W=>o.value.getCheckedKeys(W),C=()=>{const W=o.value.getCurrentNode();return W?W.data:null},S=()=>{m("getCurrentKey");const W=C();return W?W[e.nodeKey]:null},k=(W,K)=>{m("setCheckedNodes"),o.value.setCheckedNodes(W,K)},T=(W,K)=>{m("setCheckedKeys"),o.value.setCheckedKeys(W,K)},M=(W,K,j)=>{o.value.setChecked(W,K,j)},A=()=>o.value.getHalfCheckedNodes(),O=()=>o.value.getHalfCheckedKeys(),I=(W,K=!0)=>{m("setCurrentNode"),G2(o,t.emit,()=>{c(W),o.value.setUserCurrentNode(W,K)})},L=(W=null,K=!0)=>{m("setCurrentKey"),G2(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(W,K)})},z=W=>o.value.getNode(W),q=W=>{o.value.remove(W)},U=(W,K)=>{o.value.append(W,K)},F=(W,K)=>{o.value.insertBefore(W,K)},N=(W,K)=>{o.value.insertAfter(W,K)},P=(W,K,j)=>{c(K),t.emit("node-expand",W,K,j)},B=(W,K)=>{m("updateKeyChildren"),o.value.updateChildren(W,K)};return wt(dv,{ctx:t,props:e,store:o,root:l,currentNode:r,instance:f}),wt(Do,void 0),{ns:a,store:o,root:l,currentNode:r,dragState:d,el$:s,dropIndicator$:u,isEmpty:g,filter:p,getNodeKey:v,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:C,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:T,setChecked:M,getHalfCheckedNodes:A,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:L,t:n,getNode:z,remove:q,append:U,insertBefore:F,insertAfter:N,handleNodeExpand:P,updateKeyChildren:B}}});function Koe(e,t,n,a,o,l){const r=$t("el-tree-node");return _(),$("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),$(Ke,null,_t(e.root.childNodes,s=>(_(),ie(r,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),$("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[E("span",{class:R(e.ns.e("empty-text"))},Se(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),ft(E("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[At,e.dragState.showDropIndicator]])],2)}var Woe=En(Foe,[["render",Koe]]);const pv=it(Woe),joe=(e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=ve("tree-select");fe(()=>e.data,()=>{e.filterable&&Le(()=>{var u,c;(c=o.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var d,f;const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))s([c.childNodes.at(-1)]);else{(f=(d=o.value.el$)==null?void 0:d.querySelector(`[data-key="${u.at(-1).key}"]`))==null||f.focus({preventScroll:!0});return}};return gt(()=>{Vt(()=>{var u;return(u=a.value)==null?void 0:u.$el},"keydown",async u=>{const c=Kt(u),{dropdownMenuVisible:d}=a.value;[Ce.down,Ce.up].includes(c)&&d&&(await Le(),setTimeout(()=>{var f,h,g;if(Ce.up===c){const p=o.value.store.root.childNodes;s(p);return}(g=(h=(f=a.value.optionsArray[a.value.states.hoveringIndex].$el)==null?void 0:f.parentNode)==null?void 0:h.parentNode)==null||g.focus({preventScroll:!0})}))},{capture:!0})}),{...ul(Nn(e),Object.keys(Yl.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":u=>n(ot,u),valueKey:l,popperClass:x(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}}},qoe=D({extends:pd,setup(e,t){const n=pd.setup(e,t);delete n.selectOptionClick;const a=vt().proxy;return Le(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),fe(()=>t.attrs.visible,o=>{Le(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Z2(e){return e||e===0}function hv(e){return be(e)&&e.length}function ts(e){return be(e)?e:Z2(e)?[e]:[]}function Dc(e,t,n,a,o){for(let l=0;l{fe([()=>e.modelValue,l],()=>{e.showCheckbox&&Le(()=>{const p=l.value;p&&!on(p.getCheckedKeys(),ts(e.modelValue))&&p.setCheckedKeys(ts(e.modelValue))})},{immediate:!0,deep:!0});const s=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,v)=>{var y;const m=s.value[p];return Fe(m)?m(v,(y=l.value)==null?void 0:y.getNode(u("value",v))):v[m]},c=ts(e.modelValue).map(p=>Dc(e.data||[],v=>u("value",v)===p,v=>u("children",v),(v,m,y,b)=>b&&u("value",b))).filter(p=>Z2(p)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return Hc(e.data.concat(e.cacheData),v=>{const m=u("value",v);p.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),p}),f=()=>{var p;return(p=l.value)==null?void 0:p.getCheckedKeys().filter(v=>{var y;const m=(y=l.value)==null?void 0:y.getNode(v);return!yn(m)&&ca(m.childNodes)})},h=p=>{on(e.modelValue,p)||a(bt,p)};function g(p){a(ot,p),h(p)}return{...ul(Nn(e),Object.keys(pv.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:v,data:m,store:y})=>p(qoe,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:m,store:y}):n.default?()=>n.default({node:v,data:m,store:y}):void 0),filterNodeMethod:(p,v,m)=>e.filterNodeMethod?e.filterNodeMethod(p,v,m):p?new RegExp(Xp(p),"i").test(u("label",v)||""):!0,onNodeClick:(p,v,m)=>{var y,b,w;if((y=t.onNodeClick)==null||y.call(t,p,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",p)){const C=(b=o.value)==null?void 0:b.states.options.get(u("value",p));(w=o.value)==null||w.handleOptionSelect(C)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,v)=>{var S;if(!e.showCheckbox)return;const m=u("value",p),y={};Hc([l.value.store.root],k=>y[k.key]=k,k=>k.childNodes);const b=v.checkedKeys,w=e.multiple?ts(e.modelValue).filter(k=>!(k in y)&&!b.includes(k)):[],C=w.concat(b);if(e.checkStrictly)g(e.multiple?C:C.includes(m)?m:void 0);else if(e.multiple){const k=f();g(w.concat(k))}else{const k=Dc([p],A=>!hv(u("children",A))&&!u("disabled",A),A=>u("children",A)),T=k?u("value",k):void 0,M=Z2(e.modelValue)&&!!Dc([p],A=>u("value",A)===e.modelValue,A=>u("children",A));g(T===e.modelValue||M?void 0:T)}Le(()=>{var T;const k=ts(e.modelValue);l.value.setCheckedKeys(k),(T=t.onCheck)==null||T.call(t,p,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(S=o.value)==null||S.focus()},onNodeExpand:(p,v,m)=>{var y;(y=t.onNodeExpand)==null||y.call(t,p,v,m),Le(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=l.value.getCheckedKeys();Hc([l.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const C=ts(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(C.concat(S))}})},cacheOptions:d}};var Yoe=D({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Pe(zu);return fe(()=>e.data,()=>{var a;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const n=((a=t.selectRef)==null?void 0:a.querySelectorAll("input"))||[];Rt&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),Goe=D({name:"ElTreeSelect",inheritAttrs:!1,props:{...wb,...R5,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:l}=t,r={...l,onChange:void 0},s=V(),u=V(),c=x(()=>e.nodeKey||e.valueKey||"value"),d=joe(e,{attrs:l,emit:o},{select:s,tree:u,key:c}),{cacheOptions:f,...h}=Uoe(e,{attrs:r,slots:n,emit:o},{select:s,tree:u,key:c}),g=Nt({});return a(g),gt(()=>{Object.assign(g,{...ul(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ul(s.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:s.value})}),()=>Ye(Yl,Nt({...d,ref:p=>s.value=p}),{...n,default:()=>[Ye(Yoe,{data:f.value}),Ye(pv,Nt({...h,ref:p=>u.value=p}))]})}}),Xoe=Goe;const Joe=it(Xoe),vv=Symbol(),Zoe={key:-1,level:-1,data:{}};let tl=function(e){return e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e}({}),Zg=function(e){return e.ADD="add",e.DELETE="delete",e}({});const L5={type:Number,default:26},Qoe=_e({data:{type:J(Array),default:()=>ln([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:J(Object),default:()=>ln({children:tl.CHILDREN,label:tl.LABEL,disabled:tl.DISABLED,value:tl.KEY,class:tl.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:J(Array),default:()=>ln([])},checkStrictly:Boolean,defaultExpandedKeys:{type:J(Array),default:()=>ln([])},indent:{type:Number,default:16},itemSize:L5,icon:{type:Ft},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:J([String,Number])},accordion:Boolean,filterMethod:{type:J(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),ele=_e({node:{type:J(Object),default:()=>ln(Zoe)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:L5}),tle=_e({node:{type:J(Object),required:!0}}),V5="node-click",B5="node-drop",z5="node-expand",D5="node-collapse",H5="current-change",F5="check",K5="check-change",W5="node-contextmenu",nle={[V5]:(e,t,n)=>e&&t&&n,[B5]:(e,t,n)=>e&&t&&n,[z5]:(e,t)=>e&&t,[D5]:(e,t)=>e&&t,[H5]:(e,t)=>e&&t,[F5]:(e,t)=>e&&t,[K5]:(e,t)=>e&&Dt(t),[W5]:(e,t,n)=>e&&t&&n},ale={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Dt(t)};function ole(e,t){const n=V(new Set),a=V(new Set),{emit:o}=vt();fe([()=>t.value,()=>e.defaultCheckedKeys],()=>Le(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:C}=t.value,S=n.value,k=new Set;for(let T=C;T>=1;--T){const M=w.get(T);M&&M.forEach(A=>{const O=A.children;let I=!A.isLeaf||A.disabled||S.has(A.key);if(O){let L=!0,z=!1;for(const q of O){const U=q.key;if(q.isEffectivelyChecked||(I=!1),S.has(U))z=!0;else if(k.has(U)){L=!1,z=!0;break}else L=!1}L?S.add(A.key):z?(k.add(A.key),S.delete(A.key)):(S.delete(A.key),k.delete(A.key))}A.isEffectivelyChecked=I})}a.value=k},r=w=>n.value.has(w.key),s=w=>a.value.has(w.key),u=(w,C,S=!0,k=!0)=>{const T=n.value,M=w.children;!e.checkStrictly&&S&&(M!=null&&M.length)&&(C=M.some(O=>!O.isEffectivelyChecked));const A=(O,I)=>{T[I?Zg.ADD:Zg.DELETE](O.key);const L=O.children;!e.checkStrictly&&L&&L.forEach(z=>{(!z.disabled||z.children)&&A(z,I)})};A(w,C),k&&l(),S&&c(w,C)},c=(w,C)=>{const{checkedNodes:S,checkedKeys:k}=p(),{halfCheckedNodes:T,halfCheckedKeys:M}=v();o(F5,w.data,{checkedKeys:k,checkedNodes:S,halfCheckedKeys:M,halfCheckedNodes:T}),o(K5,w.data,C)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function p(w=!1){const C=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const M=k.get(T);M&&(!w||w&&M.isLeaf)&&(S.push(T),C.push(M.data))})}return{checkedKeys:S,checkedNodes:C}}function v(){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(k=>{const T=S.get(k);T&&(C.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:C}}function m(w){n.value.clear(),a.value.clear(),Le(()=>{b(w)})}function y(w,C){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,C,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:C}=t.value;if(e.showCheckbox&&C&&(w==null?void 0:w.length)>0){for(const S of w){const k=C.get(S);k&&!r(k)&&u(k,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:y,setCheckedKeys:m}}function lle(e,t){const n=V(new Set([])),a=V(new Set([])),o=x(()=>Fe(e.filterMethod));function l(s){var v;if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],h=((v=t.value)==null?void 0:v.treeNodes)||[],g=e.filterMethod;d.clear();function p(m){m.forEach(y=>{f.push(y),g!=null&&g(s,y.data,y)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(y.expanded=!1,y.isLeaf&&d.add(y.key));const b=y.children;if(b&&p(b),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(b){let w=!0;for(const C of b)if(!d.has(C.key)){w=!1;break}w?c.add(y.key):c.delete(y.key)}}f.pop()})}return p(h),u}function r(s){return a.value.has(s.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function rle(e,t){const n=V(new Set),a=V(),o=qt(),l=V(),{isIndeterminate:r,isChecked:s,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p}=ole(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=lle(e,o),b=x(()=>{var X;return((X=e.props)==null?void 0:X.value)||tl.KEY}),w=x(()=>{var X;return((X=e.props)==null?void 0:X.children)||tl.CHILDREN}),C=x(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||tl.DISABLED}),S=x(()=>{var X;return((X=e.props)==null?void 0:X.label)||tl.LABEL}),k=x(()=>{var ge;const X=n.value,H=m.value,Z=[],le=((ge=o.value)==null?void 0:ge.treeNodes)||[],ce=[];for(let me=le.length-1;me>=0;--me)ce.push(le[me]);for(;ce.length;){const me=ce.pop();if(!H.has(me.key)&&(Z.push(me),me.children&&X.has(me.key)))for(let Ae=me.children.length-1;Ae>=0;--Ae)ce.push(me.children[Ae])}return Z}),T=x(()=>k.value.length>0);function M(X){const H=new Map,Z=new Map;let le=1;function ce(me,Ae=1,Ne=void 0){var ye;const Re=[];for(const Ee of me){const we=I(Ee),Ie={level:Ae,key:we,data:Ee};Ie.label=z(Ee),Ie.parent=Ne;const ze=O(Ee);Ie.disabled=L(Ee),Ie.isLeaf=!ze||ze.length===0,Ie.expanded=n.value.has(we),ze&&ze.length&&(Ie.children=ce(ze,Ae+1,Ie)),Re.push(Ie),H.set(we,Ie),Z.has(Ae)||Z.set(Ae,[]),(ye=Z.get(Ae))==null||ye.push(Ie)}return Ae>le&&(le=Ae),Re}const ge=ce(X);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:le,treeNodes:ge}}function A(X){const H=v(X);H&&(n.value=H)}function O(X){return X[w.value]}function I(X){return X?X[b.value]:""}function L(X){return X[C.value]}function z(X){return X[S.value]}function q(X){n.value.has(X.key)?K(X):W(X)}function U(X){const H=new Set,Z=o.value.treeNodeMap;n.value.forEach(le=>{const ce=Z.get(le);ce&&(ce.expanded=!1)}),X.forEach(le=>{let ce=Z.get(le);for(;ce&&!H.has(ce.key);)H.add(ce.key),ce.expanded=!0,ce=ce.parent}),n.value=H}function F(X,H){t(V5,X.data,X,H),P(X),e.expandOnClickNode&&q(X),e.showCheckbox&&(e.checkOnClickNode||X.isLeaf&&e.checkOnClickLeaf)&&!X.disabled&&u(X,!s(X),!0)}function N(X,H){t(B5,X.data,X,H)}function P(X){G(X)||(a.value=X.key,t(H5,X.data,X))}function B(X,H){u(X,H)}function W(X){const H=n.value;if(o.value&&e.accordion){const{treeNodeMap:le}=o.value;H.forEach(ce=>{const ge=le.get(ce);X&&X.level===(ge==null?void 0:ge.level)&&(H.delete(ce),ge.expanded=!1)})}H.add(X.key);const Z=de(X.key);Z&&(Z.expanded=!0,t(z5,Z.data,Z))}function K(X){n.value.delete(X.key);const H=de(X.key);H&&(H.expanded=!1,t(D5,H.data,H))}function j(X){return!!X.disabled}function G(X){const H=a.value;return H!==void 0&&H===X.key}function ee(){var X,H;if(a.value)return(H=(X=o.value)==null?void 0:X.treeNodeMap.get(a.value))==null?void 0:H.data}function te(){return a.value}function ue(X){a.value=X}function ne(X){o.value=M(X)}function de(X){var Z;const H=lt(X)?I(X):X;return(Z=o.value)==null?void 0:Z.treeNodeMap.get(H)}function se(X,H="auto"){const Z=de(X);Z&&l.value&&l.value.scrollToItem(k.value.indexOf(Z),H)}function Y(X){var H;(H=l.value)==null||H.scrollTo(X)}return fe(()=>e.currentNodeKey,X=>{a.value=X},{immediate:!0}),fe(()=>e.defaultExpandedKeys,X=>{U(X||[])}),fe(()=>e.data,X=>{ne(X),U(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:T,listRef:l,getKey:I,getChildren:O,toggleExpand:q,toggleCheckbox:u,isChecked:s,isIndeterminate:r,isDisabled:j,isCurrent:G,isForceHiddenExpandIcon:y,handleNodeClick:F,handleNodeDrop:N,handleNodeCheck:B,getCurrentNode:ee,getCurrentKey:te,setCurrentKey:ue,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p,filter:A,setData:ne,getNode:de,expandNode:W,collapseNode:K,setExpandedKeys:U,scrollToNode:se,scrollTo:Y}}var sle=D({name:"ElTreeNodeContent",props:tle,setup(e){const t=Pe(vv),n=ve("tree");return()=>{const a=e.node,{data:o}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):Ye(cv,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const ile=["aria-expanded","aria-disabled","aria-checked","data-key"];var ule=D({name:"ElTreeNode",__name:"tree-node",props:ele,emits:ale,setup(e,{emit:t}){const n=e,a=t,o=Pe(vv),l=ve("tree"),r=x(()=>(o==null?void 0:o.props.indent)??16),s=x(()=>(o==null?void 0:o.props.icon)??vh),u=p=>{var y;const v=(y=o==null?void 0:o.props.props)==null?void 0:y.class;if(!v)return{};let m;if(Fe(v)){const{data:b}=p;m=v(b,p)}else m=v;return Be(m)?{[m]:!0}:m},c=p=>{a("click",n.node,p)},d=p=>{a("drop",n.node,p)},f=()=>{a("toggle",n.node)},h=p=>{a("check",n.node,p)},g=p=>{var v,m,y,b;(y=(m=(v=o==null?void 0:o.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),o==null||o.ctx.emit(W5,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var m,y,b;return _(),$("div",{ref:"node$",class:R([i(l).b("node"),i(l).is("expanded",e.expanded),i(l).is("current",e.current),i(l).is("focusable",!e.disabled),i(l).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(m=e.node)==null?void 0:m.key,onClick:Je(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Je(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Je(()=>{},["prevent"])),onDrop:Je(d,["stop"])},[E("div",{class:R(i(l).be("node","content")),style:qe({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[s.value?(_(),ie(i(De),{key:0,class:R([i(l).is("leaf",!!((y=e.node)!=null&&y.isLeaf)),i(l).is("hidden",e.hiddenExpandIcon),{expanded:!((b=e.node)!=null&&b.isLeaf)&&e.expanded},i(l).be("node","expand-icon")]),onClick:Je(f,["stop"])},{default:ae(()=>[(_(),ie(dt(s.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(_(),ie(i(lo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:v[0]||(v[0]=Je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),Q(i(sle),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,ile)}}}),cle=ule,dle=D({name:"ElTreeV2",__name:"tree",props:Qoe,emits:nle,setup(e,{expose:t,emit:n}){const a=e,o=n,l=vn(),r=x(()=>a.itemSize);wt(vv,{ctx:{emit:o,slots:l},props:a,instance:vt()}),wt(Do,void 0);const{t:s}=kt(),u=ve("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:g,isChecked:p,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:w,handleNodeCheck:C,toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}=rle(a,o);return t({toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}),(G,ee)=>(_(),$("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(_(),ie(i(Uw),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(({data:te,index:ue,style:ne})=>[(_(),ie(cle,{key:te[ue].key,style:qe(ne),node:te[ue],expanded:te[ue].expanded,"show-checkbox":e.showCheckbox,checked:i(p)(te[ue]),indeterminate:i(g)(te[ue]),"item-size":r.value,disabled:i(v)(te[ue]),current:i(m)(te[ue]),"hidden-expand-icon":i(y)(te[ue]),onClick:i(b),onToggle:i(h),onCheck:i(C),onDrop:i(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(_(),$("div",{key:1,class:R(i(u).e("empty-block"))},[oe(G.$slots,"empty",{},()=>[E("span",{class:R(i(u).e("empty-text"))},Se(e.emptyText??i(s)("el.tree.emptyText")),3)])],2))],2))}}),fle=dle;const ple=it(fle),hle="ElUpload";var vle=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function Qg(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new vle(a,n.status,t.method,e)}function mle(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const gle=e=>{typeof XMLHttpRequest>"u"&&tn(hle,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))be(r)?r.length===2&&r[0]instanceof Blob&&Be(r[1])?a.append(l,r[0],r[1]):r.forEach(s=>{a.append(l,s)}):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Qg(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Qg(n,e,t));e.onSuccess(mle(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(o))yn(r)||t.setRequestHeader(l,String(r));return t.send(a),t},j5=["text","picture","picture-card"];let yle=1;const Q2=()=>Date.now()+yle++,q5=_e({action:{type:String,default:"#"},headers:{type:J(Object)},method:{type:String,default:"post"},data:{type:J([Object,Function,Promise]),default:()=>ln({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:J(Array),default:()=>ln([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:j5,default:"text"},httpRequest:{type:J(Function),default:gle},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),ble=_e({...q5,beforeUpload:{type:J(Function),default:It},beforeRemove:{type:J(Function)},onRemove:{type:J(Function),default:It},onChange:{type:J(Function),default:It},onPreview:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It},crossorigin:{type:J(String)}}),U5=Symbol("uploadContextKey"),wle=_e({files:{type:J(Array),default:()=>ln([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:J(Function),default:It},listType:{type:String,values:j5,default:"text"},crossorigin:{type:J(String)}}),Cle={remove:e=>!!e},_le=_e({...q5,beforeUpload:{type:J(Function),default:It},onRemove:{type:J(Function),default:It},onStart:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It}}),Sle=_e({disabled:{type:Boolean,default:void 0},directory:Boolean}),xle={file:e=>be(e)},kle=["tabindex","aria-disabled","onKeydown"],Ele=["src","crossorigin"],Tle=["onClick"],Mle=["title"],Ole=["onClick"],$le=["onClick"];var Ale=D({name:"ElUploadList",__name:"upload-list",props:wle,emits:Cle,setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("upload"),r=ve("icon"),s=ve("list"),u=sn(),c=V(!1),d=x(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{a("remove",h)};return(h,g)=>(_(),ie(u6,{tag:"ul",class:R(d.value),name:i(s).b()},{default:ae(()=>[(_(!0),$(Ke,null,_t(e.files,(p,v)=>(_(),$("li",{key:p.uid||p.name,class:R([i(l).be("list","item"),i(l).is(p.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:an(m=>!i(u)&&f(p),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(h.$slots,"default",{file:p,index:v},()=>[e.listType==="picture"||p.status!=="uploading"&&e.listType==="picture-card"?(_(),$("img",{key:0,class:R(i(l).be("list","item-thumbnail")),src:p.url,crossorigin:e.crossorigin,alt:""},null,10,Ele)):re("v-if",!0),p.status==="uploading"||e.listType!=="picture-card"?(_(),$("div",{key:1,class:R(i(l).be("list","item-info"))},[E("a",{class:R(i(l).be("list","item-name")),onClick:Je(m=>e.handlePreview(p),["prevent"])},[Q(i(De),{class:R(i(r).m("document"))},{default:ae(()=>[Q(i(gy))]),_:1},8,["class"]),E("span",{class:R(i(l).be("list","item-file-name")),title:p.name},Se(p.name),11,Mle)],10,Tle),p.status==="uploading"?(_(),ie(i(Lw),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:qe(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),E("label",{class:R(i(l).be("list","item-status-label"))},[e.listType==="text"?(_(),ie(i(De),{key:0,class:R([i(r).m("upload-success"),i(r).m("circle-check")])},{default:ae(()=>[Q(i(ff))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(_(),ie(i(De),{key:1,class:R([i(r).m("upload-success"),i(r).m("check")])},{default:ae(()=>[Q(i(Xs))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(_(),ie(i(De),{key:2,class:R(i(r).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(p),onKeydown:an(Je(m=>f(p),["prevent"]),["enter","space"])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(_(),$("i",{key:3,class:R(i(r).m("close-tip"))},Se(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(_(),$("span",{key:4,class:R(i(l).be("list","item-actions"))},[E("span",{class:R(i(l).be("list","item-preview")),onClick:m=>e.handlePreview(p)},[Q(i(De),{class:R(i(r).m("zoom-in"))},{default:ae(()=>[Q(i(bh))]),_:1},8,["class"])],10,Ole),i(u)?re("v-if",!0):(_(),$("span",{key:0,class:R(i(l).be("list","item-delete")),onClick:m=>f(p)},[Q(i(De),{class:R(i(r).m("delete"))},{default:ae(()=>[Q(i(my))]),_:1},8,["class"])],10,$le))],2)):re("v-if",!0)])],42,kle))),128)),oe(h.$slots,"append")]),_:3},8,["class","name"]))}}),e4=Ale;const t4="ElUploadDrag";var Rle=D({name:t4,__name:"upload-dragger",props:Sle,emits:xle,setup(e,{emit:t}){const n=e,a=t;Pe(U5)||tn(t4,"usage: ");const o=ve("upload"),l=V(!1),r=sn(),s=h=>new Promise((g,p)=>h.file(g,p)),u=async h=>{try{if(h.isFile){const g=await s(h);return g.isDirectory=!1,[g]}if(h.isDirectory){const g=h.createReader(),p=()=>new Promise((b,w)=>g.readEntries(b,w)),v=[];let m=await p();for(;m.length>0;)v.push(...m),m=await p();const y=v.map(b=>u(b).catch(()=>[]));return ad(await Promise.all(y))}}catch{return[]}return[]},c=async h=>{if(r.value)return;l.value=!1,h.stopPropagation();const g=Array.from(h.dataTransfer.files),p=h.dataTransfer.items||[];if(n.directory){const v=Array.from(p).map(m=>{var y;return(y=m==null?void 0:m.webkitGetAsEntry)==null?void 0:y.call(m)}).filter(m=>m);a("file",ad(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{var b,w;const y=(w=(b=p[m])==null?void 0:b.webkitGetAsEntry)==null?void 0:w.call(b);y&&(v.isDirectory=y.isDirectory)}),a("file",g)},d=()=>{r.value||(l.value=!0)},f=h=>{h.currentTarget.contains(h.relatedTarget)||(l.value=!1)};return(h,g)=>(_(),$("div",{class:R([i(o).b("dragger"),i(o).is("dragover",l.value)]),onDrop:Je(c,["prevent"]),onDragover:Je(d,["prevent"]),onDragleave:Je(f,["prevent"])},[oe(h.$slots,"default")],34))}}),Nle=Rle;const Ple=["tabindex","aria-disabled","onKeydown"],Ile=["name","disabled","multiple","accept","webkitdirectory"];var Lle=D({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:_le,setup(e,{expose:t}){const n=e,a=ve("upload"),o=sn(),l=qt({}),r=qt(),s=v=>{if(v.length===0)return;const{autoUpload:m,limit:y,fileList:b,multiple:w,onStart:C,onExceed:S}=n;if(y&&b.length+v.length>y){S(v,b);return}w||(v=v.slice(0,1));for(const k of v){const T=k;T.uid=Q2(),C(T),m&&u(T)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let m,y={};try{const w=n.data,C=n.beforeUpload(v);y=Bi(n.data)?Eo(n.data):n.data,m=await C,Bi(n.data)&&on(w,y)&&(y=Eo(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let b=v;m instanceof Blob&&(m instanceof File?b=m:b=new File([m],v.name,{type:v.type})),d(Object.assign(b,{uid:v.uid}),y)},c=async(v,m)=>Fe(v)?v(m):v,d=async(v,m)=>{const{headers:y,data:b,method:w,withCredentials:C,name:S,action:k,onProgress:T,onSuccess:M,onError:A,httpRequest:O}=n;try{m=await c(m??b,v)}catch{n.onRemove(v);return}const{uid:I}=v,L={headers:y||{},withCredentials:C,file:v,data:m,method:w,filename:S,action:k,onProgress:q=>{T(q,v)},onSuccess:q=>{M(q,v),delete l.value[I]},onError:q=>{A(q,v),delete l.value[I]}},z=O(L);l.value[I]=z,z instanceof Promise&&z.then(L.onSuccess,L.onError)},f=v=>{const m=v.target.files;m&&s(Array.from(m))},h=()=>{o.value||(r.value.value="",r.value.click())},g=()=>{h()};return t({abort:v=>{S8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(v,m)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:h,onKeydown:an(Je(g,["self"]),["enter","space"])},[e.drag?(_(),ie(Nle,{key:0,disabled:i(o),directory:e.directory,onFile:s},{default:ae(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:r,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Je(()=>{},["stop"]))},null,42,Ile)],42,Ple))}}),n4=Lle;const a4="ElUpload",o4=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Vle=(e,t)=>{const n=x6(e,"fileList",void 0,{passive:!0}),a=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=p=>{Le(()=>e.onChange(p,n.value))},u=(p,v)=>{const m=a(v);m&&(console.error(p),m.status="fail",r(m),e.onError(p,m,n.value),s(m))},c=(p,v)=>{const m=a(v);m&&(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},d=(p,v)=>{const m=a(v);m&&(m.status="success",m.response=p,e.onSuccess(p,m,n.value),s(m))},f=p=>{yn(p.uid)&&(p.uid=Q2());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(m){pt(a4,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],s(v)},h=async p=>{const v=p instanceof File?a(p):p;v||tn(a4,"file to be removed not found");const m=y=>{o(y),r(y),e.onRemove(y,n.value),o4(y)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return fe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:y}=v;if(!y&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,n.value)}return v}))}),fe(n,p=>{for(const v of p)v.uid||(v.uid=Q2()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:g,revokeFileObjectURL:o4}};var Ble=D({name:"ElUpload",__name:"upload",props:ble,setup(e,{expose:t}){const n=e,a=sn(),o=qt(),{abort:l,submit:r,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:p}=Vle(n,o),v=x(()=>n.listType==="picture-card"),m=x(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return Lt(()=>{u.value.forEach(p)}),wt(U5,{accept:Bt(n,"accept")}),t({abort:l,submit:r,clearFiles:s,handleStart:c,handleRemove:f}),(y,b)=>(_(),$("div",null,[v.value&&e.showFileList?(_(),ie(e4,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({append:ae(()=>[Q(n4,ht({ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(_(),ie(n4,ht({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),y.$slots.trigger?oe(y.$slots,"default",{key:2}):re("v-if",!0),oe(y.$slots,"tip"),!v.value&&e.showFileList?(_(),ie(e4,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),zle=Ble;const Dle=it(zle),Hle=_e({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:J([String,Array]),default:"Element Plus"},font:{type:J(Object)},gap:{type:J(Array),default:()=>[100,100]},offset:{type:J(Array)}});function Fle(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Kle(e){return Object.keys(e).map(t=>`${Fle(t)}: ${e[t]};`).join(" ")}function Wle(){return window.devicePixelRatio||1}const jle=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},qle={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function k0(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function Ule(){function e(t,n,a,o,l,r,s,u,c){const[d,f,h,g]=k0(o,l,a);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,g);else{const{color:j,fontSize:G,fontStyle:ee,fontWeight:te,fontFamily:ue,textAlign:ne,textBaseline:de}=r,se=Number(G)*a;d.font=`${ee} normal ${te} ${se}px/${l}px ${ue}`,d.fillStyle=j,d.textAlign=ne,d.textBaseline=de;const Y=be(t)?t:[t];if(de!=="top"&&Y[0]){const X=d.measureText(Y[0]);d.textBaseline="top";const H=d.measureText(Y[0]);p=X.actualBoundingBoxAscent-H.actualBoundingBoxAscent}Y==null||Y.forEach((X,H)=>{const[Z,le]=qle[ne];d.fillText(X??"",h*Z+c*le,H*(se+r.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,l),[y,b,w]=k0(m,m,a);y.translate(w/2,w/2),y.rotate(v),h>0&&g>0&&y.drawImage(f,-h/2,-g/2);function C(j,G){return[j*Math.cos(v)-G*Math.sin(v),j*Math.sin(v)+G*Math.cos(v)]}let S=0,k=0,T=0,M=0;const A=h/2,O=g/2;[[0-A,0-O],[0+A,0-O],[0+A,0+O],[0-A,0+O]].forEach(([j,G])=>{const[ee,te]=C(j,G);S=Math.min(S,ee),k=Math.max(k,ee),T=Math.min(T,te),M=Math.max(M,te)});const I=S+w/2,L=T+w/2,z=k-S,q=M-T,U=s*a,F=u*a,N=(z+U)*2,P=q+F,[B,W]=k0(N,P);function K(j=0,G=0){B.drawImage(b,I,L,z,q,j,G+p,z,q)}return K(),K(z+U,-q/2-F/2),K(z+U,+q/2+F/2),[W.toDataURL(),N/a,P/a]}return e}var Yle=D({name:"ElWatermark",__name:"watermark",props:Hle,setup(e){const t={position:"relative"},n=e,a=x(()=>{var I;return((I=n.font)==null?void 0:I.fontGap)??3}),o=x(()=>{var I;return((I=n.font)==null?void 0:I.color)??"rgba(0,0,0,.15)"}),l=x(()=>{var I;return((I=n.font)==null?void 0:I.fontSize)??16}),r=x(()=>{var I;return((I=n.font)==null?void 0:I.fontWeight)??"normal"}),s=x(()=>{var I;return((I=n.font)==null?void 0:I.fontStyle)??"normal"}),u=x(()=>{var I;return((I=n.font)==null?void 0:I.fontFamily)??"sans-serif"}),c=x(()=>{var I;return((I=n.font)==null?void 0:I.textAlign)??"center"}),d=x(()=>{var I;return((I=n.font)==null?void 0:I.textBaseline)??"hanging"}),f=x(()=>n.gap[0]),h=x(()=>n.gap[1]),g=x(()=>f.value/2),p=x(()=>h.value/2),v=x(()=>{var I;return((I=n.offset)==null?void 0:I[0])??g.value}),m=x(()=>{var I;return((I=n.offset)==null?void 0:I[1])??p.value}),y=()=>{const I={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=v.value-g.value,z=m.value-p.value;return L>0&&(I.left=`${L}px`,I.width=`calc(100% - ${L}px)`,L=0),z>0&&(I.top=`${z}px`,I.height=`calc(100% - ${z}px)`,z=0),I.backgroundPosition=`${L}px ${z}px`,I},b=qt(null),w=qt(),C=V(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=(I,L)=>{var z;b.value&&w.value&&(C.value=!0,w.value.setAttribute("style",Kle({...y(),backgroundImage:`url('${I}')`,backgroundSize:`${Math.floor(L)}px`})),(z=b.value)==null||z.append(w.value),setTimeout(()=>{C.value=!1}))},T=I=>{let L=120,z=64,q=0;const{image:U,content:F,width:N,height:P,rotate:B}=n;if(!U&&I.measureText){I.font=`${Number(l.value)}px ${u.value}`;const W=be(F)?F:[F];let K=0,j=0;W.forEach(ee=>{const{width:te,fontBoundingBoxAscent:ue,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:de,actualBoundingBoxDescent:se}=I.measureText(ee),Y=Et(ue)?de+se:ue+ne;te>K&&(K=Math.ceil(te)),Y>j&&(j=Math.ceil(Y))}),L=K,z=j*W.length+(W.length-1)*a.value;const G=Math.PI/180*Number(B);q=Math.ceil(Math.abs(Math.sin(G)*z)/2),L+=q}return[N??L,P??z,q]},M=Ule(),A=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,z=n.content,q=n.rotate;if(I){w.value||(w.value=document.createElement("div"));const U=Wle(),[F,N,P]=T(I),B=W=>{const[K,j]=M(W||"",q,U,F,N,{color:o.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,P);k(K,j)};if(L){const W=new Image;W.onload=()=>{B(W)},W.onerror=()=>{B(z)},W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=L}else B(z)}};return gt(()=>{A()}),fe(()=>n,()=>{A()},{deep:!0,flush:"post"}),Lt(()=>{S()}),bu(b,I=>{C.value||I.forEach(L=>{jle(L,w.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(I,L)=>(_(),$("div",{ref_key:"containerRef",ref:b,style:qe([t])},[oe(I.$slots,"default")],4))}}),Gle=Yle;const Xle=it(Gle),Jle=["absolute","fixed"],Zle=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],mv=_e({placement:{type:J(String),values:Zle,default:"bottom"},reference:{type:J(Object),default:null},strategy:{type:J(String),values:Jle,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Qle={close:()=>!0},ere=_e({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ft},placement:mv.placement,contentStyle:{type:J([Object])},mask:{type:J([Boolean,Object]),default:!0},gap:{type:J(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:J([Boolean,Object]),default:()=>({block:"center"})},type:{type:J(String)},appendTo:{type:Tu.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),tre={[ot]:e=>Dt(e),"update:current":e=>He(e),close:e=>He(e),finish:()=>!0,change:e=>He(e)},nre=_e({target:{type:J([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ft},showArrow:{type:Boolean,default:void 0},placement:mv.placement,mask:{type:J([Boolean,Object]),default:void 0},contentStyle:{type:J([Object])},prevButtonProps:{type:J(Object)},nextButtonProps:{type:J(Object)},scrollIntoViewOptions:{type:J([Boolean,Object]),default:void 0},type:{type:J(String)}}),are={close:()=>!0},ore=(e,t,n,a,o)=>{const l=V(null),r=()=>{let d;return Be(e.value)?d=document.querySelector(e.value):Fe(e.value)?d=e.value():d=e.value,d},s=()=>{const d=r();if(!d||!t.value){l.value=null;return}lre(d)||d.scrollIntoView(o.value);const{left:f,top:h,width:g,height:p}=d.getBoundingClientRect();l.value={left:f,top:h,width:g,height:p,radius:0}};gt(()=>{fe([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Lt(()=>{window.removeEventListener("resize",s)});const u=d=>(be(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=x(()=>{var g;if(!l.value)return l.value;const d=u(0),f=u(1),h=((g=n.value)==null?void 0:g.radius)||2;return{left:l.value.left-d,top:l.value.top-f,width:l.value.width+d*2,height:l.value.height+f*2,radius:h}});return{mergedPosInfo:c,triggerTarget:x(()=>{const d=r();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var f,h,g,p;return window.DOMRect.fromRect({width:((f=c.value)==null?void 0:f.width)||0,height:((h=c.value)==null?void 0:h.height)||0,x:((g=c.value)==null?void 0:g.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}})}},Sf=Symbol("ElTour");function lre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n}const rre=(e,t,n,a,o,l,r,s)=>{const u=V(),c=V(),d=V({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},h=x(()=>{const y=[$$(i(l)),R$(),A$(),sre()];return i(s)&&i(n)&&y.push(N$({element:i(n)})),y}),g=async()=>{if(!Rt)return;const y=i(e),b=i(t);if(!y||!b)return;const w=await P$(y,b,{placement:i(a),strategy:i(o),middleware:i(h)});Xi(f).forEach(C=>{f[C].value=w[C]})},p=x(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(r)};const{overflow:y}=i(d);return{position:i(o),zIndex:i(r),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),v=x(()=>{if(!i(s))return{};const{arrow:y}=i(d);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let m;return gt(()=>{const y=i(e),b=i(t);y&&b&&(m=M$(y,b,g)),da(()=>{g()})}),Lt(()=>{m&&m()}),{update:g,contentStyle:p,arrowStyle:v}},sre=()=>({name:"overflow",async fn(e){const t=await O$(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),ire=_e({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:J(Object)},targetAreaClickable:{type:Boolean,default:!0}}),ure={style:{width:"100%",height:"100%"}},cre=["d"];var dre=D({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:ire,setup(e){const t=e,{ns:n}=Pe(Sf),a=x(()=>{var d;return((d=t.pos)==null?void 0:d.radius)??2}),o=x(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Np(),s=x(()=>{const d=l.value,f=r.value,h=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=a.value;return t.pos?`${g} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:g}),u=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return of(Bt(t,"visible"),{ns:n}),(d,f)=>e.visible?(_(),$("div",ht({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(_(),$("svg",ure,[E("path",{class:R(i(n).e("hollow")),style:qe(c.value),d:s.value},null,14,cre)]))],16)):re("v-if",!0)}}),fre=dre;const pre=["data-side"];var hre=D({name:"ElTourContent",__name:"content",props:mv,emits:Qle,setup(e,{emit:t}){const n=e,a=t,o=V(n.placement),l=V(n.strategy),r=V(null),s=V(null);fe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=rre(Bt(n,"reference"),r,s,o,l,Bt(n,"offset"),Bt(n,"zIndex"),Bt(n,"showArrow")),d=x(()=>o.value.split("-")[0]),{ns:f}=Pe(Sf),h=()=>{a("close")},g=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(_(),$("div",{ref_key:"contentRef",ref:r,style:qe(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[Q(i(Js),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:g},{default:ae(()=>[oe(p.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(_(),$("span",{key:0,ref_key:"arrowRef",ref:s,style:qe(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,pre))}}),vre=hre,mre=D({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var u,c;const o=(u=t.default)==null?void 0:u.call(t),l=[];let r=0;function s(d){be(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(l.push(f),r+=1)})}return o.length&&s(Ta((c=o[0])==null?void 0:c.children)),a!==r&&(a=r,n("update-total",r)),l.length?l[e.current]:null}}}),gre=D({name:"ElTour",inheritAttrs:!1,__name:"tour",props:ere,emits:tre,setup(e,{emit:t}){const n=e,a=t,o=ve("tour"),l=V(0),r=V(),s=x6(n,"current",a,{passive:!0}),u=x(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=x(()=>[o.b(),y.value==="primary"?o.m("primary"):""]),d=x(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=x(()=>{var O;return((O=r.value)==null?void 0:O.contentStyle)??n.contentStyle}),h=x(()=>{var O;return((O=r.value)==null?void 0:O.mask)??n.mask}),g=x(()=>!!h.value&&n.modelValue),p=x(()=>Dt(h.value)?void 0:h.value),v=x(()=>{var O;return!!u.value&&(((O=r.value)==null?void 0:O.showArrow)??n.showArrow)}),m=x(()=>{var O;return((O=r.value)==null?void 0:O.scrollIntoViewOptions)??n.scrollIntoViewOptions}),y=x(()=>{var O;return((O=r.value)==null?void 0:O.type)??n.type}),{nextZIndex:b}=$u(),w=b(),C=x(()=>n.zIndex??w),{mergedPosInfo:S,triggerTarget:k}=ore(u,Bt(n,"modelValue"),Bt(n,"gap"),h,m);fe(()=>n.modelValue,O=>{O||(s.value=0)});const T=()=>{n.closeOnPressEscape&&(a(ot,!1),a("close",s.value))},M=O=>{l.value=O},A=vn();return wt(Sf,{currentStep:r,current:s,total:l,showClose:Bt(n,"showClose"),closeIcon:Bt(n,"closeIcon"),mergedType:y,ns:o,slots:A,updateModelValue(O){a(ot,O)},onClose(){a("close",s.value)},onFinish(){a("finish")},onChange(){a(bt,s.value)}}),(O,I)=>(_(),$(Ke,null,[Q(i(Gs),{to:e.appendTo},{default:ae(()=>{var L,z;return[E("div",ht({class:c.value},O.$attrs),[Q(fre,{visible:g.value,fill:(L=p.value)==null?void 0:L.color,style:qe((z=p.value)==null?void 0:z.style),pos:i(S),"z-index":C.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(_(),ie(vre,{key:i(s),reference:i(k),placement:d.value,"show-arrow":v.value,"z-index":C.value,style:qe(f.value),onClose:T},{default:ae(()=>[Q(i(mre),{current:i(s),onUpdateTotal:M},{default:ae(()=>[oe(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]}),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}}),yre=gre;const bre=["aria-label"];var wre=D({name:"ElTourStep",__name:"step",props:nre,emits:are,setup(e,{emit:t}){const n=e,a=t,{Close:o}=Ny,{t:l}=kt(),{currentStep:r,current:s,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:g,updateModelValue:p,onClose:v,onFinish:m,onChange:y}=Pe(Sf);fe(n,O=>{r.value=O},{immediate:!0});const b=x(()=>n.showClose??c.value),w=x(()=>n.closeIcon??d.value??o),C=O=>{if(O)return xu(O,["children","onClick"])},S=()=>{var O,I;s.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((I=n.prevButtonProps)==null||I.onClick()),y()},k=()=>{var O;s.value>=u.value-1?T():s.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),y()},T=()=>{M(),m()},M=()=>{p(!1),v(),a("close")},A=O=>{var I;if(!((I=O.target)!=null&&I.isContentEditable))switch(Kt(O)){case Ce.left:O.preventDefault(),s.value>0&&S();break;case Ce.right:O.preventDefault(),k();break}};return gt(()=>{window.addEventListener("keydown",A)}),Lt(()=>{window.removeEventListener("keydown",A)}),(O,I)=>(_(),$(Ke,null,[b.value?(_(),$("button",{key:0,"aria-label":i(l)("el.tour.close"),class:R(i(h).e("closebtn")),type:"button",onClick:M},[Q(i(De),{class:R(i(h).e("close"))},{default:ae(()=>[(_(),ie(dt(w.value)))]),_:1},8,["class"])],10,bre)):re("v-if",!0),E("header",{class:R([i(h).e("header"),{"show-close":i(c)}])},[oe(O.$slots,"header",{},()=>[E("span",{role:"heading",class:R(i(h).e("title"))},Se(e.title),3)])],2),E("div",{class:R(i(h).e("body"))},[oe(O.$slots,"default",{},()=>[E("span",null,Se(e.description),1)])],2),E("footer",{class:R(i(h).e("footer"))},[E("div",{class:R(i(h).b("indicators"))},[i(g).indicators?(_(),ie(dt(i(g).indicators),{key:0,current:i(s),total:i(u)},null,8,["current","total"])):(_(!0),$(Ke,{key:1},_t(i(u),(L,z)=>(_(),$("span",{key:L,class:R([i(h).b("indicator"),i(h).is("active",z===i(s))])},null,2))),128))],2),E("div",{class:R(i(h).b("buttons"))},[i(s)>0?(_(),ie(i(An),ht({key:0,size:"small",type:i(f)},C(e.prevButtonProps),{onClick:S}),{default:ae(()=>{var L;return[St(Se(((L=e.prevButtonProps)==null?void 0:L.children)??i(l)("el.tour.previous")),1)]}),_:1},16,["type"])):re("v-if",!0),i(s)<=i(u)-1?(_(),ie(i(An),ht({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},C(e.nextButtonProps),{onClick:k}),{default:ae(()=>{var L;return[St(Se(((L=e.nextButtonProps)==null?void 0:L.children)??(i(s)===i(u)-1?i(l)("el.tour.finish"):i(l)("el.tour.next"))),1)]}),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),Y5=wre;const Cre=it(yre,{TourStep:Y5}),_re=nn(Y5),Sre=_e({container:{type:J([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:J(String),default:"default"},direction:{type:J(String),default:"vertical"},selectScrollTop:Boolean}),xre={change:e=>Be(e),click:(e,t)=>e instanceof MouseEvent&&(Be(t)||Et(t))},yc=e=>{if(!Rt||e==="")return null;if(Be(e))try{return document.querySelector(e)}catch{return null}return e};function kre(e){let t=0;const n=(...a)=>{t&&cl(t),t=Fa(()=>{e(...a),t=0})};return n.cancel=()=>{cl(t),t=0},n}const G5=Symbol("anchor");var Ere=D({name:"ElAnchor",__name:"anchor",props:Sre,emits:xre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=vn(),r=V(""),s=V({}),u=V(null),c=V(null),d=V(),f={};let h=!1,g=0;const p=ve("anchor"),v=x(()=>[p.b(),a.type==="underline"?p.m("underline"):"",p.m(a.direction)]),m=L=>{f[L.href]=L.el},y=L=>{delete f[L]},b=L=>{r.value!==L&&(r.value=L,o(bt,L))};let w=null,C="";const S=L=>{if(!d.value)return;const z=yc(L);if(!z)return;if(w){if(C===L)return;w()}C=L,h=!0;const q=lm(z,d.value),U=A2(z,q),F=q.scrollHeight-q.clientHeight,N=Math.min(U-a.offset,F);w=$M(d.value,g,N,a.duration,()=>{setTimeout(()=>{h=!1,C=""},20)})},k=L=>{L&&(b(L),S(L))},T=(L,z)=>{o("click",L,z),k(z)},M=kre(()=>{d.value&&(g=rm(d.value));const L=A();h||Et(L)||b(L)}),A=()=>{if(!d.value)return;const L=rm(d.value),z=[];for(const q of Object.keys(f)){const U=yc(q);if(!U)continue;const F=A2(U,lm(U,d.value));z.push({top:F-a.offset-a.bound,href:q})}z.sort((q,U)=>q.top-U.top);for(let q=0;qL))return U.href}},O=()=>{const L=yc(a.container);!L||ku(L)?d.value=window:d.value=L};Vt(d,"scroll",M);const I=()=>{Le(()=>{if(!u.value||!c.value||!r.value){s.value={};return}const L=f[r.value];if(!L){s.value={};return}const z=u.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),U=L.getBoundingClientRect();a.direction==="horizontal"?s.value={left:`${U.left-z.left}px`,width:`${U.width}px`,opacity:1}:s.value={top:`${U.top-z.top+(U.height-q.height)/2}px`,opacity:1}})};return fe(r,I),fe(()=>{var L;return(L=l.default)==null?void 0:L.call(l)},I),gt(()=>{O();const L=decodeURIComponent(window.location.hash);yc(L)?k(L):M()}),fe(()=>a.container,()=>{O()}),wt(G5,{ns:p,direction:a.direction,currentAnchor:r,addLink:m,removeLink:y,handleClick:T}),t({scrollTo:k}),(L,z)=>(_(),$("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(_(),$("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(p).e("marker")),style:qe(s.value)},null,6)):re("v-if",!0),E("div",{class:R(i(p).e("list"))},[oe(L.$slots,"default")],2)],2))}}),Tre=Ere;const Mre=_e({title:String,href:String}),Ore=["href"];var $re=D({name:"ElAnchorLink",__name:"anchor-link",props:Mre,setup(e){const t=e,n=V(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:s,handleClick:u}=Pe(G5),c=x(()=>[a.e("link"),a.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return fe(()=>t.href,(f,h)=>{Le(()=>{h&&s(h),f&&r({href:f,el:n.value})})}),gt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Lt(()=>{const{href:f}=t;f&&s(f)}),(f,h)=>(_(),$("div",{class:R(i(a).e("item"))},[E("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[St(Se(e.title),1)])],10,Ore),f.$slots["sub-link"]&&i(o)==="vertical"?(_(),$("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),X5=$re;const Are=it(Tre,{AnchorLink:X5}),Rre=nn(X5),J5={label:"label",value:"value",disabled:"disabled"},Nre=_e({direction:{type:J(String),default:"horizontal"},options:{type:J(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:J(Object),default:()=>J5},block:Boolean,size:kn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...oa(["ariaLabel"])}),Pre={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Ire=["id","aria-label","aria-labelledby"],Lre=["name","disabled","checked","onChange"];var Vre=D({name:"ElSegmented",__name:"segmented",props:Nre,emits:Pre,setup(e,{emit:t}){const n=e,a=t,o=ve("segmented"),l=Kn(),r=_n(),s=sn(),{formItem:u}=Bn(),{inputId:c,isLabeledByFormItem:d}=Pa(n,{formItemContext:u}),f=V(null),h=TS(),g=Nt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(I,L)=>{const z=m(L);a(ot,z),a(bt,z),I.target.checked=z===n.modelValue},v=x(()=>({...J5,...n.props})),m=I=>lt(I)?I[v.value.value]:I,y=I=>lt(I)?I[v.value.label]:I,b=I=>!!(s.value||lt(I)&&I[v.value.disabled]),w=I=>n.modelValue===m(I),C=I=>n.options.find(L=>m(L)===I),S=I=>[o.e("item"),o.is("selected",w(I)),o.is("disabled",b(I))],k=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=I.offsetHeight,g.translateY=I.offsetTop):(g.width=I.offsetWidth,g.translateX=I.offsetLeft);try{g.focusVisible=L.matches(":focus-visible")}catch{}},T=x(()=>[o.b(),o.m(r.value),o.is("block",n.block)]),M=x(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),A=x(()=>[o.e("item-selected"),o.is("disabled",b(C(n.modelValue))),o.is("focus-visible",g.focusVisible)]),O=x(()=>n.name||l.value);return Zt(f,k),fe(h,k),fe(()=>n.modelValue,()=>{var I;k(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>pt(L)))},{flush:"post"}),(I,L)=>e.options.length?(_(),$("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(T.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[E("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[E("div",{style:qe(M.value),class:R(A.value)},null,6),(_(!0),$(Ke,null,_t(e.options,(z,q)=>(_(),$("label",{key:q,class:R(S(z))},[E("input",{class:R(i(o).e("item-input")),type:"radio",name:O.value,disabled:b(z),checked:w(z),onChange:U=>p(U,z)},null,42,Lre),E("div",{class:R(i(o).e("item-label"))},[oe(I.$slots,"default",{item:z},()=>[St(Se(y(z)),1)])],2)],2))),128))],2)],10,Ire)):re("v-if",!0)}}),Bre=Vre;const zre=it(Bre),Dre=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Hre=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,l=$n(t);let r=-1,s;for(let u=a-1;u>=0;--u){const c=o[u];if(r===-1&&(c===n||c===` +`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},Fre=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?s.lineHeight=`${g-p}px`:g===v?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[h]=u[h]}),Ud()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Kre=_e({...kh,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Be(e)?e.length===1:e.every(t=>Be(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>Dre,validator:e=>e===!1?!0:Fe(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>Z5}}),Wre={[ot]:e=>Be(e),"whole-remove":(e,t)=>Be(e)&&Be(t),input:e=>Be(e),search:(e,t)=>Be(e)&&Be(t),select:(e,t)=>lt(e)&&Be(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Z5={value:"value",label:"label",disabled:"disabled"},jre=_e({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),qre={select:e=>Be(e.value)},Ure=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Yre=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:jre,emits:qre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:r}=kt(),s=V(-1),u=V(),c=V(),d=V(),f=(C,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",C.disabled||a.disabled)],h=C=>{C.disabled||a.disabled||o("select",C)},g=C=>{s.value=C},p=x(()=>a.disabled||a.options.every(C=>C.disabled)),v=x(()=>a.options[s.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=C=>{const{options:S}=a;if(S.length===0||p.value)return;C==="next"?(s.value++,s.value===S.length&&(s.value=0)):C==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(C);return}Le(()=>b(k))},b=C=>{var M,A,O,I;const{options:S}=a,k=S.findIndex(L=>L.value===C.value),T=(M=c.value)==null?void 0:M[k];if(T){const L=(O=(A=d.value)==null?void 0:A.querySelector)==null?void 0:O.call(A,`.${l.be("dropdown","wrap")}`);L&&Qp(L,T)}(I=u.value)==null||I.handleScroll()};return fe(()=>a.options,()=>{p.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(C=>!C.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:m,hoverOption:v}),(C,S)=>(_(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(l).b("dropdown"))},[C.$slots.header?(_(),$("div",{key:0,class:R(i(l).be("dropdown","header"))},[oe(C.$slots,"header")],2)):re("v-if",!0),ft(Q(i(ao),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(l).be("dropdown","wrap"),"view-class":i(l).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(_(!0),$(Ke,null,_t(e.options,(k,T)=>(_(),$("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:R(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":s.value===T,onMousemove:M=>g(T),onClick:Je(M=>h(k),["stop"])},[oe(C.$slots,"label",{item:k,index:T},()=>[E("span",null,Se(k.label??k.value),1)])],42,Ure))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[At,e.options.length>0&&!e.loading]]),e.loading?(_(),$("div",{key:1,class:R(i(l).be("dropdown","loading"))},[oe(C.$slots,"loading",{},()=>[St(Se(i(r)("el.mention.loading")),1)])],2)):re("v-if",!0),C.$slots.footer?(_(),$("div",{key:2,class:R(i(l).be("dropdown","footer"))},[oe(C.$slots,"footer")],2)):re("v-if",!0)],2))}}),Gre=Yre,Xre=D({name:"ElMention",inheritAttrs:!1,__name:"mention",props:Kre,emits:Wre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const N=Dn.props??[];return ul(a,be(N)?N:Object.keys(N))}),r=ve("mention"),s=sn(),u=Kn(),c=V(),d=V(),f=V(),h=V(!1),g=V(),p=V(),v=x(()=>a.showArrow?a.placement:`${a.placement}-start`),m=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>({...Z5,...a.props})),b=N=>{const P={label:N[y.value.label],value:N[y.value.value],disabled:N[y.value.disabled]};return{...N,...P}},w=x(()=>a.options.map(b)),C=x(()=>{const{filterOption:N}=a;return!p.value||!N?w.value:w.value.filter(P=>N(p.value.pattern,P))}),S=x(()=>h.value&&(!!C.value.length||a.loading)),k=x(()=>{var N;return`${u.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{o(ot,N),o(wn,N),q()},M=N=>{var B,W,K,j;if((B=c.value)!=null&&B.isComposing)return;const P=Kt(N);switch(P){case Ce.left:case Ce.right:q();break;case Ce.up:case Ce.down:if(!h.value)return;N.preventDefault(),(W=f.value)==null||W.navigateOptions(P===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!h.value){a.type!=="textarea"&&q();return}N.preventDefault(),(K=f.value)!=null&&K.hoverOption?(j=f.value)==null||j.selectHoverOption():h.value=!1;break;case Ce.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case Ce.backspace:if(a.whole&&p.value){const{splitIndex:G,selectionEnd:ee,pattern:te,prefixIndex:ue,prefix:ne}=p.value,de=z();if(!de)return;const se=de.value,Y=w.value.find(X=>X.value===te);if((Fe(a.checkIsWhole)?a.checkIsWhole(te,ne):Y)&&G!==-1&&G+1===ee){N.preventDefault();const X=se.slice(0,ue)+se.slice(G+1);o(ot,X),o(wn,X),o("whole-remove",te,ne);const H=ue;Le(()=>{de.selectionStart=H,de.selectionEnd=H,F()})}}}},{wrapperRef:A}=Cl(c,{disabled:s,afterFocus(){q()},beforeBlur(N){var P;return(P=d.value)==null?void 0:P.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),O=()=>{q()},I=N=>a.options.find(P=>N.value===P[y.value.value]),L=N=>{if(!p.value)return;const P=z();if(!P)return;const B=P.value,{split:W}=a,K=B.slice(p.value.end),j=K.startsWith(W),G=`${N.value}${j?"":W}`,ee=B.slice(0,p.value.start)+G+K;o(ot,ee),o(wn,ee),o("select",I(N),p.value.prefix);const te=p.value.start+G.length+(j?1:0);Le(()=>{P.selectionStart=te,P.selectionEnd=te,P.focus(),F()})},z=()=>{var N,P;return a.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(P=c.value)==null?void 0:P.input},q=()=>{setTimeout(()=>{U(),F(),Le(()=>{var N;return(N=d.value)==null?void 0:N.updatePopper()})},0)},U=()=>{const N=z();if(!N)return;const P=Fre(N),B=N.getBoundingClientRect(),W=A.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+B.left-W.left}px`,top:`${P.top+B.top-W.top}px`}},F=()=>{const N=z();if(document.activeElement!==N){h.value=!1;return}const{prefix:P,split:B}=a;if(p.value=Hre(N,P,B),p.value&&p.value.splitIndex===-1){h.value=!0,o("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(N,P)=>(_(),$("div",{ref_key:"wrapperRef",ref:A,class:R(i(r).b())},[Q(i(Dn),ht(ht(l.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?k.value||"":void 0,"aria-controls":S.value?i(u):void 0,"aria-expanded":S.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:T,onKeydown:M,onMousedown:O}),fa({_:2},[_t(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,nl(al(K)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(i(Vn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[i(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ae(()=>[E("div",{style:qe(g.value)},null,4)]),content:ae(()=>[Q(Gre,{ref_key:"dropdownRef",ref:f,options:C.value,disabled:i(s),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:L,onClick:P[0]||(P[0]=Je(B=>{var W;return(W=c.value)==null?void 0:W.focus()},["stop"]))},fa({_:2},[_t(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,nl(al(K)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),Jre=Xre;const Zre=it(Jre),Qre=_e({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),ese={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},tse=_e({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),nse={"update:size":e=>typeof e=="number"||typeof e=="string"};function ase(e){const t=V(),{width:n,height:a}=U0(t);return{containerEl:t,containerSize:x(()=>e.value==="horizontal"?n.value:a.value)}}function gv(e){return Number(e.slice(0,-1))/100}function yv(e){return Number(e.slice(0,-2))}function bv(e){return Be(e)&&e.endsWith("%")}function wv(e){return Be(e)&&e.endsWith("px")}function ose(e,t){const n=x(()=>e.value.map(r=>r.size)),a=x(()=>e.value.length),o=V([]);fe([n,a,t],()=>{var c;let r=[],s=0;for(let d=0;dd+(f||0),0);if(u>1||!s){const d=1/u;r=r.map(f=>f===void 0?0:f*d)}else{const d=(1-u)/s;r=r.map(f=>f===void 0?d:f)}o.value=r});const l=r=>r*t.value;return{percentSizes:o,pxSizes:x(()=>o.value.map(l))}}function lse(e,t,n,a){const o=m=>m*t.value||0;function l(m,y){return bv(m)?o(gv(m)):wv(m)?yv(m):m??y}const r=V(0),s=V(null);let u=[],c=It;const d=x(()=>e.value.map(m=>[m.min,m.max]));fe(a,()=>{if(r.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{r.value=0,s.value={index:m,confirmed:!1},u=n.value},h=(m,y)=>{var I;let b=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)b=m,s.value={index:m,confirmed:!0};else for(let L=m;L>=0;L-=1)if(u[L]>0){b=L,s.value={index:L,confirmed:!0};break}}const w=b??((I=s.value)==null?void 0:I.index)??m,C=[...u],S=w+1,k=l(d.value[w][0],0),T=l(d.value[S][0],0),M=l(d.value[w][1],t.value||0),A=l(d.value[S][1],t.value||0);let O=y;C[w]+OM&&(O=M-C[w]),C[S]-O>A&&(O=C[S]-A),C[w]+=O,C[S]-=O,r.value=O,c=()=>{e.value.forEach((L,z)=>{L.size=C[z]}),c=It},a.value||c()},g=()=>{a.value&&c(),r.value=0,s.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:g,movingIndex:s,onCollapse:(m,y)=>{p.length||p.push(...n.value);const b=n.value,w=y==="start"?m:m+1,C=y==="start"?m+1:m,S=b[w],k=b[C];if(S!==0&&k!==0)b[w]=0,b[C]+=S,p[m]=S;else{const T=S+k,M=p[m],A=T-M;b[C]=M,b[w]=A}e.value.forEach((T,M)=>{T.size=b[M]})}}}const Q5=Symbol("splitterRootContextKey");var rse=D({name:"ElSplitter",__name:"splitter",props:Qre,emits:ese,setup(e,{emit:t}){const n=ve("splitter"),a=t,o=e,l=Bt(o,"layout"),r=Bt(o,"lazy"),{containerEl:s,containerSize:u}=ase(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=df(vt(),"ElSplitterPanel");fe(d,()=>{m.value=null,d.value.forEach((O,I)=>{O.setIndex(I)})});const{percentSizes:g,pxSizes:p}=ose(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:y,onMoving:b,onMoveEnd:w,onCollapse:C}=lse(d,u,p,r),S=x(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return wt(Q5,Nt({panels:d,percentSizes:g,pxSizes:p,layout:l,lazy:r,movingIndex:m,containerSize:u,onMoveStart:O=>{y(O),a("resizeStart",O,p.value)},onMoving:(O,I)=>{b(O,I),r.value||a("resize",O,p.value)},onMoveEnd:async O=>{w(),await Le(),a("resizeEnd",O,p.value)},onCollapse:(O,I)=>{C(O,I),a("collapse",O,I,p.value)},registerPanel:f,unregisterPanel:c})),(O,I)=>(_(),$("div",{ref_key:"containerEl",ref:s,class:R([i(n).b(),i(n).e(l.value)]),style:qe(S.value)},[oe(O.$slots,"default"),Q(i(h)),re(" Prevent iframe touch events from breaking "),i(m)?(_(),$("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${l.value}`)])},null,2)):re("v-if",!0)],6))}}),sse=rse;function ise(e){return e&<(e)?e:{start:!!e,end:!!e}}function l4(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}var use=D({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ve("splitter-bar"),a=e,o=t,l=x(()=>a.layout==="horizontal"),r=x(()=>l.value?{width:0}:{height:0}),s=x(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:a.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=x(()=>{const b=n.e("dragger");return{[`${b}-horizontal`]:l.value,[`${b}-vertical`]:!l.value,[`${b}-active`]:!!c.value}}),c=V(null),d=b=>{a.resizable&&(c.value=[b.pageX,b.pageY],o("moveStart",a.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=b=>{if(a.resizable&&b.touches.length===1){b.preventDefault();const w=b.touches[0];c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},h=b=>{const{pageX:w,pageY:C}=b,S=w-c.value[0],k=C-c.value[1],T=l.value?S:k;o("moving",a.index,T)},g=b=>{if(b.touches.length===1){b.preventDefault();const w=b.touches[0],C=w.pageX-c.value[0],S=w.pageY-c.value[1],k=l.value?C:S;o("moving",a.index,k)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=x(()=>l.value?zo:Lu),y=x(()=>l.value?Un:po);return(b,w)=>(_(),$("div",{class:R([i(n).b()]),style:qe(r.value)},[e.startCollapsible?(_(),$("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=C=>o("collapse",e.index,"start"))},[oe(b.$slots,"start-collapsible",{},()=>[(_(),ie(dt(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),E("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:qe(s.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(_(),$("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=C=>o("collapse",e.index,"end"))},[oe(b.$slots,"end-collapsible",{},()=>[(_(),ie(dt(y.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),cse=use;const r4="ElSplitterPanel";var dse=D({name:r4,__name:"split-panel",props:tse,emits:nse,setup(e,{expose:t,emit:n}){const a=ve("splitter-panel"),o=e,l=n,r=Pe(Q5);r||tn(r4,"usage: ");const{panels:s,layout:u,lazy:c,containerSize:d,pxSizes:f}=Nn(r),{registerPanel:h,unregisterPanel:g,onCollapse:p,onMoveEnd:v,onMoveStart:m,onMoving:y}=r,b=V(),w=vt(),C=w.uid,S=V(0),k=x(()=>s.value[S.value]),T=P=>{S.value=P},M=x(()=>k.value?f.value[S.value]??0:0),A=x(()=>k.value?f.value[S.value+1]??0:0),O=x(()=>k.value?s.value[S.value+1]:null),I=x(()=>{var P;return O.value?o.resizable&&((P=O.value)==null?void 0:P.resizable)&&(M.value!==0||!o.min)&&(A.value!==0||!O.value.min):!1}),L=x(()=>k.value?S.value!==s.value.length-1:!1),z=x(()=>l4(k.value,M.value,O.value,A.value)),q=x(()=>l4(O.value,A.value,k.value,M.value));function U(P){return bv(P)?gv(P)*d.value||0:wv(P)?yv(P):P??0}let F=!1;fe(()=>o.size,()=>{if(!F&&k.value){if(!d.value){k.value.size=o.size;return}const P=U(o.size),B=U(o.max),W=U(o.min),K=Math.min(Math.max(P,W||0),B||P);K!==P&&l("update:size",K),k.value.size=K}}),fe(()=>{var P;return(P=k.value)==null?void 0:P.size},P=>{P!==o.size&&(F=!0,l("update:size",P),Le(()=>F=!1))}),fe(()=>o.resizable,P=>{k.value&&(k.value.resizable=P)});const N=Nt({uid:C,getVnode:()=>w.vnode,setIndex:T,...o,collapsible:x(()=>ise(o.collapsible))});return h(N),Lt(()=>g(N)),t({splitterPanelRef:b}),(P,B)=>(_(),$(Ke,null,[E("div",ht({ref_key:"panelEl",ref:b,class:[i(a).b()],style:{flexBasis:`${M.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),L.value?(_(),ie(cse,{key:0,index:S.value,layout:i(u),lazy:i(c),resizable:I.value,"start-collapsible":z.value,"end-collapsible":q.value,onMoveStart:i(m),onMoving:i(y),onMoveEnd:i(v),onCollapse:i(p)},{"start-collapsible":ae(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ae(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),e9=dse;const fse=it(sse,{SplitPanel:e9}),pse=nn(e9),hse="2.13.7",vse=(e=[])=>({version:hse,install:(n,a)=>{n[g1]||(n[g1]=!0,e.forEach(o=>n.use(o)),a&&Th(a,n,!0))}}),ka="ElInfiniteScroll",mse=50,gse=200,yse=0,bse={delay:{type:Number,default:gse},distance:{type:Number,default:yse},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Cv=(e,t)=>Object.entries(bse).reduce((n,[a,o])=>{const{type:l,default:r}=o,s=e.getAttribute(`infinite-scroll-${a}`);let u=t[s]??s??r;return u=u==="false"?!1:u,u=l(u),n[a]=Number.isNaN(u)?r:u,n},{}),t9=e=>{const{observer:t}=e[ka];t&&(t.disconnect(),delete e[ka].observer)},wse=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[ka],{disabled:s,distance:u}=Cv(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-r;if(e[ka].lastScrollTop=f,l||s||h<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,m=A2(e,a);g=f+c>=m+p+v-u}g&&t.call(o)};function E0(e,t){const{containerEl:n,instance:a}=e[ka],{disabled:o}=Cv(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):t9(e))}const Cse={async mounted(e,t){const{instance:n,value:a}=t;$o({scope:ka,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Fe(a)||tn(ka,"'v-infinite-scroll' binding value must be a function"),await Le();const{delay:o,immediate:l}=Cv(e,n),r=Zp(e,!0),s=r===window?document.documentElement:r,u=Il(wse.bind(null,e,a),o);if(r){if(e[ka]={instance:n,container:r,containerEl:s,delay:o,cb:a,onScroll:u,lastScrollTop:s.scrollTop},l){const c=new MutationObserver(Il(E0.bind(null,e,a),mse));e[ka].observer=c,c.observe(e,{childList:!0,subtree:!0}),E0(e,a)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[ka])return;const{container:t,onScroll:n}=e[ka];t==null||t.removeEventListener("scroll",n),t9(e)},async updated(e){if(!e[ka])await Le();else{const{containerEl:t,cb:n,observer:a}=e[ka];t.clientHeight&&a&&E0(e,n)}}},ep=Cse;ep.install=e=>{e.directive("InfiniteScroll",ep)};const _se=ep;function Sse(e,t){let n;const a=V(!1),o=Nt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){o.text=h}function r(){const h=o.parent,g=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(aa(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),aa(h,g.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function u(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!a.value)return;const h=o.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const d=g6(D({name:"ElLoading",setup(h,{expose:g}){const{ns:p,zIndex:v}=mf("loading");return g({ns:p,zIndex:v}),()=>{const m=o.spinner||o.svg,y=Ye("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[Ye("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?Ye("p",{class:p.b("text")},[o.text]):void 0;return Ye(Fn,{name:p.b("fade"),onAfterLeave:c},{default:ae(()=>[ft(Q("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,p.is("fullscreen",o.fullscreen)]},[Ye("div",{class:p.b("spinner")},[y,b])]),[[At,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Nn(o),setText:l,removeElLoadingChild:s,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let bc;const ws=function(e={},t){if(!Rt)return;const n=xse(e);if(n.fullscreen&&bc)return bc;const a=Sse({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(bc=void 0)}},t??ws._context);kse(n,n.parent,a),s4(n,n.parent,a),n.parent.vLoadingAddClassList=()=>s4(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Le(()=>a.visible.value=n.visible),n.fullscreen&&(bc=a),a},xse=e=>{let t;return Be(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},kse=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Zo(document.body,"position"),n.originalOverflow.value=Zo(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Zo(document.body,"position"),await Le();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";o[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(Zo(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])o[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=Zo(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},s4=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?aa(t,a.bm("parent","relative")):Ba(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ba(t,a.bm("parent","hidden")):aa(t,a.bm("parent","hidden"))};ws._context=null;const Ci=Symbol("ElLoading"),rr=e=>`element-loading-${vl(e)}`,i4=(e,t)=>{const n=t.instance,a=c=>lt(t.value)?t.value[c]:void 0,o=c=>V(Be(c)&&(n==null?void 0:n[c])||c),l=c=>o(a(c)||e.getAttribute(rr(c))),r=a("fullscreen")??t.modifiers.fullscreen,s={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:r,target:a("target")??(r?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=ws(s);u._context=Li._context,e[Ci]={options:s,instance:u}},Ese=(e,t)=>{for(const n of Object.keys(e))Yt(e[n])&&(e[n].value=t[n])},Li={mounted(e,t){t.value&&i4(e,t)},updated(e,t){const n=e[Ci];if(!t.value){n==null||n.instance.close(),e[Ci]=null;return}n?Ese(n.options,lt(t.value)?t.value:{text:e.getAttribute(rr("text")),svg:e.getAttribute(rr("svg")),svgViewBox:e.getAttribute(rr("svgViewBox")),spinner:e.getAttribute(rr("spinner")),background:e.getAttribute(rr("background")),customClass:e.getAttribute(rr("customClass"))}):i4(e,t)},unmounted(e){var t;(t=e[Ci])==null||t.instance.close(),e[Ci]=null}};Li._context=null;const Tse={install(e){ws._context=e._context,Li._context=e._context,e.directive("loading",Li),e.config.globalProperties.$loading=ws},directive:Li,service:ws},n9=["primary","success","info","warning","error"],a9=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Cs="top",Xn=ln({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Rt?document.body:void 0}),Mse=_e({customClass:{type:String,default:Xn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Xn.dangerouslyUseHTMLString},duration:{type:Number,default:Xn.duration},icon:{type:Ft,default:Xn.icon},id:{type:String,default:Xn.id},message:{type:J([String,Object,Function]),default:Xn.message},onClose:{type:J(Function),default:Xn.onClose},showClose:{type:Boolean,default:Xn.showClose},type:{type:String,values:n9,default:Xn.type},plain:{type:Boolean,default:Xn.plain},offset:{type:Number,default:Xn.offset},placement:{type:String,values:a9,default:Xn.placement},zIndex:{type:Number,default:Xn.zIndex},grouping:{type:Boolean,default:Xn.grouping},repeatNum:{type:Number,default:Xn.repeatNum}}),Ose={destroy:()=>!0},Ja=Vd({}),$se=e=>(Ja[e]||(Ja[e]=Vd([])),Ja[e]),Ase=(e,t)=>{const n=Ja[t]||[],a=n.findIndex(r=>r.id===e),o=n[a];let l;return a>0&&(l=n[a-1]),{current:o,prev:l}},Rse=(e,t)=>{const{prev:n}=Ase(e,t);return n?n.vm.exposed.bottom.value:0},Nse=(e,t,n)=>(Ja[n]||[]).findIndex(a=>a.id===e)>0?16:t,Pse=["id"],Ise=["innerHTML"];var Lse=D({name:"ElMessage",__name:"message",props:Mse,emits:Ose,setup(e,{expose:t,emit:n}){const{Close:a}=wh,o=e,l=n,r=V(!1),{ns:s,zIndex:u}=mf("message"),{currentZIndex:c,nextZIndex:d}=u,f=V(),h=V(!1),g=V(0);let p;const v=x(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=x(()=>{const z=o.type;return{[s.bm("icon",z)]:z&&Ul[z]}}),y=x(()=>o.icon||Ul[o.type]||""),b=x(()=>o.placement||Cs),w=x(()=>Rse(o.id,b.value)),C=x(()=>Math.max(Nse(o.id,o.offset,b.value)+w.value,o.offset)),S=x(()=>g.value+C.value),k=x(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),T=x(()=>b.value.startsWith("top")?"top":"bottom"),M=x(()=>({[T.value]:`${C.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:p}=ks(()=>{I()},o.duration))}function O(){p==null||p()}function I(){h.value=!1,Le(()=>{var z;r.value||((z=o.onClose)==null||z.call(o),l("destroy"))})}function L(z){Kt(z)===Ce.esc&&I()}return gt(()=>{A(),d(),h.value=!0}),fe(()=>o.repeatNum,()=>{O(),A()}),Vt(document,"keydown",L),Zt(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:I}),(z,q)=>(_(),ie(Fn,{name:i(s).b("fade"),onBeforeEnter:q[0]||(q[0]=U=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=U=>z.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(s).b(),{[i(s).m(e.type)]:e.type},i(s).is("closable",e.showClose),i(s).is("plain",e.plain),i(s).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:qe(M.value),role:"alert",onMouseenter:O,onMouseleave:A},[e.repeatNum>1?(_(),ie(i(Zy),{key:0,value:e.repeatNum,type:v.value,class:R(i(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),y.value?(_(),ie(i(De),{key:1,class:R([i(s).e("icon"),m.value])},{default:ae(()=>[(_(),ie(dt(y.value)))]),_:1},8,["class"])):re("v-if",!0),oe(z.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(i(s).e("content")),innerHTML:e.message},null,10,Ise)],2112)):(_(),$("p",{key:0,class:R(i(s).e("content"))},Se(e.message),3))]),e.showClose?(_(),ie(i(De),{key:2,class:R(i(s).e("closeBtn")),onClick:Je(I,["stop"])},{default:ae(()=>[Q(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,Pse),[[At,h.value]])]),_:3},8,["name","onBeforeLeave"]))}}),Vse=Lse;let Bse=1;const zse=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Be(e.appendTo)){let t=document.querySelector(e.appendTo);ga(t)||(pt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},Dse=e=>{!e.placement&&Be(Zn.placement)&&Zn.placement&&(e.placement=Zn.placement),e.placement||(e.placement=Cs),a9.includes(e.placement)||(pt("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${Cs}'.`),e.placement=Cs)},o9=e=>{const t=!e||Be(e)||Wt(e)||Fe(e)?{message:e}:e,n={...Xn,...t};return zse(n),Dse(n),Dt(Zn.grouping)&&!n.grouping&&(n.grouping=Zn.grouping),He(Zn.duration)&&n.duration===3e3&&(n.duration=Zn.duration),He(Zn.offset)&&n.offset===16&&(n.offset=Zn.offset),Dt(Zn.showClose)&&!n.showClose&&(n.showClose=Zn.showClose),Dt(Zn.plain)&&!n.plain&&(n.plain=Zn.plain),n},Hse=e=>{const t=Ja[e.props.placement||Cs],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},Fse=({appendTo:e,...t},n)=>{const a=`message_${Bse++}`,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{o==null||o(),Hse(c)},onDestroy:()=>{Wl(null,l)}},s=Q(Vse,r,Fe(r.message)||Wt(r.message)?{default:Fe(r.message)?r.message:()=>r.message}:null);s.appContext=n||Br._context,Wl(s,l),e.appendChild(l.firstElementChild);const u=s.component,c={id:a,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return c},Br=(e={},t)=>{if(!Rt)return{close:()=>{}};const n=o9(e),a=$se(n.placement||Cs);if(n.grouping&&a.length){const l=a.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(He(Zn.max)&&a.length>=Zn.max)return{close:()=>{}};const o=Fse(n,t);return a.push(o),o.handler};n9.forEach(e=>{Br[e]=(t={},n)=>Br({...o9(t),type:e},n)});function Kse(e){for(const t in Ja)if(Mt(Ja,t)){const n=[...Ja[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function Wse(e){Ja[e]&&[...Ja[e]].forEach(t=>t.handler.close())}Br.closeAll=Kse;Br.closeAllByPlacement=Wse;Br._context=null;const l9=dy(Br,"$message");var jse=D({name:"ElMessageBox",directives:{TrapFocus:uM},components:{ElButton:An,ElFocusTrap:Js,ElInput:Dn,ElOverlay:Wh,ElIcon:De,...wh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:l5},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=mf("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:s}=a,u=V(!1),c=Nt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Oo(no),cancelButtonLoadingIcon:Oo(no),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=x(()=>{const U=c.type;return{[o.bm("icon",U)]:U&&Ul[U]}}),f=Kn(),h=Kn(),g=x(()=>{const U=c.type;return c.icon||U&&Ul[U]||""}),p=x(()=>!!c.message),v=V(),m=V(),y=V(),b=V(),w=V(),C=x(()=>c.confirmButtonClass);fe(()=>c.inputValue,async U=>{await Le(),e.boxType==="prompt"&&U&&I()},{immediate:!0}),fe(()=>u.value,U=>{var F;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=((F=w.value)==null?void 0:F.$el)??v.value:y.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(U?Le().then(()=>{b.value&&b.value.$el&&(c.autofocus?y.value=L()??v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:S}=M8(v,m,x(()=>e.draggable),x(()=>e.overflow));gt(async()=>{await Le(),e.closeOnHashChange&&window.addEventListener("hashchange",k)}),Lt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",k)});function k(){u.value&&(u.value=!1,Le(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=ih(T),A=U=>{var F;if(c.inputType!=="textarea"&&!((F=b.value)!=null&&F.isComposing))return U.preventDefault(),O("confirm")},O=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!I()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,k):k())},I=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(Fe(F)){const N=F(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Be(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{var F;const U=(F=b.value)==null?void 0:F.$refs;return(U==null?void 0:U.input)??(U==null?void 0:U.textarea)},z=()=>{O("close")},q=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&of(u,{ns:o}),{...Nn(c),ns:o,overlayEvent:M,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:g,confirmButtonClasses:C,rootRef:v,focusStartRef:y,headerRef:m,inputRef:b,isDragging:S,confirmRef:w,doClose:k,handleClose:z,onCloseRequested:q,handleWrapperClick:T,handleInputEnter:A,handleAction:O,t:r}}});const qse=["aria-label","aria-describedby"],Use=["aria-label"],Yse=["id"];function Gse(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-input"),u=$t("el-button"),c=$t("el-focus-trap"),d=$t("el-overlay");return _(),ie(Fn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ae(()=>[ft(Q(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ae(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Je(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),$("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),E("span",null,Se(e.title),1)],2),e.showClose?(_(),$("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=an(Je(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(r,{class:R(e.ns.e("close"))},{default:ae(()=>[(_(),ie(dt(e.closeIcon||"close")))]),_:1},8,["class"])],42,Use)):re("v-if",!0)],2)):re("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(_(),$("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ie(dt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ie(dt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Se(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),ft(E("div",{class:R(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:an(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:qe({visibility:e.editorErrorMessage?"visible":"hidden"})},Se(e.editorErrorMessage),7)],2),[[At,e.showInput]])],10,Yse),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(_(),ie(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=an(Je(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),ft(Q(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=an(Je(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[At,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,qse)]),_:3},8,["z-index","overlay-class","mask"]),[[At,e.visible]])]),_:3})}var Xse=En(jse,[["render",Gse]]);const du=new Map,Jse=e=>{let t=document.body;return e.appendTo&&(Be(e.appendTo)&&(t=document.querySelector(e.appendTo)),ga(e.appendTo)&&(t=e.appendTo),ga(t)||(pt("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Zse=(e,t,n=null)=>{const a=Q(Xse,e,Fe(e.message)||Wt(e.message)?{default:Fe(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Wl(a,t),Jse(e).appendChild(t.firstElementChild),a.component},Qse=()=>document.createElement("div"),eie=(e,t)=>{const n=Qse();e.onVanish=()=>{Wl(null,n),du.delete(o)},e.onAction=l=>{const r=du.get(o);let s;e.showInput?s={value:o.inputValue,action:l}:s=l,e.callback?e.callback(s,a.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(s)};const a=Zse(e,n,t),o=a.proxy;for(const l in e)Mt(e,l)&&!Mt(o.$props,l)&&(l==="closeIcon"&<(e[l])?o[l]=Oo(e[l]):o[l]=e[l]);return o.visible=!0,o};function Qs(e,t=null){if(!Rt)return Promise.reject();let n;return Be(e)||Wt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const l=eie(e,t??Qs._context);du.set(l,{options:e,callback:n,resolve:a,reject:o})})}const tie=["alert","confirm","prompt"],nie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};tie.forEach(e=>{Qs[e]=aie(e)});function aie(e){return(t,n,a,o)=>{let l="";return lt(n)?(a=n,l=""):Et(n)?l="":l=n,Qs(Object.assign({title:l,message:t,type:"",...nie[e]},a,{boxType:e}),o)}}Qs.close=()=>{du.forEach((e,t)=>{t.doClose()}),du.clear()};Qs._context=null;const Al=Qs;Al.install=e=>{Al._context=e._context,e.config.globalProperties.$msgbox=Al,e.config.globalProperties.$messageBox=Al,e.config.globalProperties.$alert=Al.alert,e.config.globalProperties.$confirm=Al.confirm,e.config.globalProperties.$prompt=Al.prompt};const oie=Al,r9=["primary","success","info","warning","error"],lie=_e({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ft},id:{type:String,default:""},message:{type:J([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...r9,""],default:""},zIndex:Number,closeIcon:{type:Ft,default:Na}}),rie={destroy:()=>!0},sie=["id"],iie=["textContent"],uie={key:0},cie=["innerHTML"];var die=D({name:"ElNotification",__name:"notification",props:lie,emits:rie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=mf("notification"),{nextZIndex:l,currentZIndex:r}=o,s=V(!1);let u;const c=x(()=>{const b=n.type;return b&&Ul[n.type]?a.m(b):""}),d=x(()=>n.type&&Ul[n.type]||n.icon),f=x(()=>n.position.endsWith("right")?"right":"left"),h=x(()=>n.position.startsWith("top")?"top":"bottom"),g=x(()=>({[h.value]:`${n.offset}px`,zIndex:n.zIndex??r.value}));function p(){n.duration>0&&({stop:u}=ks(()=>{s.value&&m()},n.duration))}function v(){u==null||u()}function m(){s.value=!1}function y(b){switch(Kt(b)){case Ce.delete:case Ce.backspace:v();break;case Ce.esc:s.value&&m();break;default:p();break}}return gt(()=>{p(),l(),s.value=!0}),Vt(document,"keydown",y),t({visible:s,close:m}),(b,w)=>(_(),ie(Fn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=C=>b.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:qe(g.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>e.onClick&&e.onClick(...C))},[d.value?(_(),ie(i(De),{key:0,class:R([i(a).e("icon"),c.value])},{default:ae(()=>[(_(),ie(dt(d.value)))]),_:1},8,["class"])):re("v-if",!0),E("div",{class:R(i(a).e("group"))},[E("h2",{class:R(i(a).e("title")),textContent:Se(e.title)},null,10,iie),ft(E("div",{class:R(i(a).e("content")),style:qe(e.title?void 0:{margin:0})},[oe(b.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,cie)],2112)):(_(),$("p",uie,Se(e.message),1))])],6),[[At,e.message]]),e.showClose?(_(),ie(i(De),{key:0,class:R(i(a).e("closeBtn")),onClick:Je(m,["stop"])},{default:ae(()=>[(_(),ie(dt(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,sie),[[At,s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),fie=die;const zs={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Md=16;let pie=1;const zr=function(e={},t){if(!Rt)return{close:()=>{}};(Be(e)||Wt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;zs[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Md}),a+=Md;const o=`notification_${pie++}`,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{hie(o,n,l)}};let s=document.body;ga(e.appendTo)?s=e.appendTo:Be(e.appendTo)&&(s=document.querySelector(e.appendTo)),ga(s)||(pt("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const u=document.createElement("div"),c=Q(fie,r,Fe(r.message)?r.message:Wt(r.message)?()=>r.message:null);return c.appContext=Et(t)?zr._context:t,c.props.onDestroy=()=>{Wl(null,u)},Wl(c,u),zs[n].push({vm:c}),s.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};r9.forEach(e=>{zr[e]=(t={},n)=>((Be(t)||Wt(t))&&(t={message:t}),zr({...t,type:e},n))});function hie(e,t,n){const a=zs[t],o=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:l}=a[o];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,s=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function mie(e="top-right"){var n,a,o,l;let t=((o=(a=(n=zs[e][0])==null?void 0:n.vm.component)==null?void 0:a.props)==null?void 0:o.offset)||0;for(const{vm:r}of zs[e])r.component.props.offset=t,t+=(((l=r.el)==null?void 0:l.offsetHeight)||0)+Md}zr.closeAll=vie;zr.updateOffsets=mie;zr._context=null;const gie=dy(zr,"$notify");var yie=[G$,uH,yK,Fae,xK,kK,AK,Zy,HK,FK,An,lb,Oj,Nj,Yj,Gj,Kq,Db,Yq,lo,dq,Ih,oU,bU,wU,yf,Zb,YU,YK,tY,nY,aY,oY,lY,BG,cw,UG,YG,uX,yw,_X,uJ,cJ,dJ,Tw,sF,iF,De,QJ,Mw,Dn,Ow,mZ,_Z,BZ,zZ,DZ,HZ,UZ,TQ,RQ,DQ,qy,Lw,zb,Sq,_q,tee,lee,tU,ao,Yl,pd,uj,Uee,Qee,ete,wte,kte,n5,Pte,Hte,Fte,Zte,rae,sae,Hae,toe,noe,ll,cv,VW,coe,voe,moe,Vn,Ooe,pv,Joe,ple,Dle,Xle,Cre,_re,Are,Rre,zre,Zre,fse,pse],bie=[_se,Tse,l9,oie,gie,Iw],_v=vse([...yie,...bie]);_v.install;_v.version;var wie=_v;const Cie={__name:"App",setup(e){return gt(()=>{const t=localStorage.getItem("theme");t?document.documentElement.classList.toggle("dark",t==="dark"):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark")}),(t,n)=>{const a=$t("router-view");return _(),ie(a)}}},_ie="modulepreload",Sie=function(e){return"/"+e},u4={},or=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Sie(u),u in u4)return;u4[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":_ie,c||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return o.then(r=>{for(const s of r||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})};/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const rs=typeof document<"u";function r9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&r9(e.default)}const Qt=Object.assign;function k0(e,t){const n={};for(const a in t){const o=t[a];n[a]=ro(o)?o.map(e):e(o)}return n}const Li=()=>{},ro=Array.isArray;function u4(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const s9=/#/g,kie=/&/g,Eie=/\//g,Tie=/=/g,Mie=/\?/g,i9=/\+/g,Oie=/%5B/g,$ie=/%5D/g,u9=/%5E/g,Aie=/%60/g,c9=/%7B/g,Rie=/%7C/g,d9=/%7D/g,Nie=/%20/g;function Cv(e){return e==null?"":encodeURI(""+e).replace(Rie,"|").replace(Oie,"[").replace($ie,"]")}function Pie(e){return Cv(e).replace(c9,"{").replace(d9,"}").replace(u9,"^")}function Q2(e){return Cv(e).replace(i9,"%2B").replace(Nie,"+").replace(s9,"%23").replace(kie,"%26").replace(Aie,"`").replace(c9,"{").replace(d9,"}").replace(u9,"^")}function Iie(e){return Q2(e).replace(Tie,"%3D")}function Lie(e){return Cv(e).replace(s9,"%23").replace(Mie,"%3F")}function Vie(e){return Lie(e).replace(Eie,"%2F")}function du(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Bie=/\/$/,zie=e=>e.replace(Bie,"");function E0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Kie(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:du(r)}}function Die(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function c4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hie(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&zs(t.matched[a],n.matched[o])&&f9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function f9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fie(e[n],t[n]))return!1;return!0}function Fie(e,t){return ro(e)?d4(e,t):ro(t)?d4(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function d4(e,t){return ro(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Kie(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Tl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ep=function(e){return e.pop="pop",e.push="push",e}({}),T0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Wie(e){if(!e)if(rs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zie(e)}const jie=/^[^#]+#/;function qie(e,t){return e.replace(jie,"#")+t}function Uie(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Sf=()=>({left:window.scrollX,top:window.scrollY});function Yie(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Uie(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function f4(e,t){return(history.state?history.state.position-t:-1)+e}const tp=new Map;function Gie(e,t){tp.set(e,t)}function Xie(e){const t=tp.get(e);return tp.delete(e),t}function Jie(e){return typeof e=="string"||e&&typeof e=="object"}function p9(e){return typeof e=="string"||typeof e=="symbol"}let Sn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const h9=Symbol("");Sn.MATCHER_NOT_FOUND+"",Sn.NAVIGATION_GUARD_REDIRECT+"",Sn.NAVIGATION_ABORTED+"",Sn.NAVIGATION_CANCELLED+"",Sn.NAVIGATION_DUPLICATED+"";function Ds(e,t){return Qt(new Error,{type:e,[h9]:!0},t)}function qo(e,t){return e instanceof Error&&h9 in e&&(t==null||!!(e.type&t))}const Zie=["params","query","hash"];function Qie(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Zie)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function eue(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&Q2(o)):[a&&Q2(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function tue(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=ro(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const nue=Symbol(""),h4=Symbol(""),xf=Symbol(""),_v=Symbol(""),np=Symbol("");function pi(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Nl(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((s,u)=>{const c=h=>{h===!1?u(Ds(Sn.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):Jie(h)?u(Ds(Sn.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&a.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(h=>u(h))})}function M0(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const s in r.components){let u=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(r9(u)){const c=(u.__vccOpts||u)[t];c&&l.push(Nl(c,n,a,r,s,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${r.path}"`);const f=xie(d)?d.default:d;r.mods[s]=d,r.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Nl(h,n,a,r,s,o)()}))}}return l}function aue(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rzs(c,s))?a.push(s):n.push(s));const u=e.matched[r];u&&(t.matched.find(c=>zs(c,u))||o.push(u))}return[n,a,o]}/*! + */const ss=typeof document<"u";function s9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&s9(e.default)}const en=Object.assign;function T0(e,t){const n={};for(const a in t){const o=t[a];n[a]=ro(o)?o.map(e):e(o)}return n}const Vi=()=>{},ro=Array.isArray;function c4(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const i9=/#/g,kie=/&/g,Eie=/\//g,Tie=/=/g,Mie=/\?/g,u9=/\+/g,Oie=/%5B/g,$ie=/%5D/g,c9=/%5E/g,Aie=/%60/g,d9=/%7B/g,Rie=/%7C/g,f9=/%7D/g,Nie=/%20/g;function Sv(e){return e==null?"":encodeURI(""+e).replace(Rie,"|").replace(Oie,"[").replace($ie,"]")}function Pie(e){return Sv(e).replace(d9,"{").replace(f9,"}").replace(c9,"^")}function tp(e){return Sv(e).replace(u9,"%2B").replace(Nie,"+").replace(i9,"%23").replace(kie,"%26").replace(Aie,"`").replace(d9,"{").replace(f9,"}").replace(c9,"^")}function Iie(e){return tp(e).replace(Tie,"%3D")}function Lie(e){return Sv(e).replace(i9,"%23").replace(Mie,"%3F")}function Vie(e){return Lie(e).replace(Eie,"%2F")}function fu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Bie=/\/$/,zie=e=>e.replace(Bie,"");function M0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Kie(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:fu(r)}}function Die(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function d4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hie(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Ds(t.matched[a],n.matched[o])&&p9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ds(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function p9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fie(e[n],t[n]))return!1;return!0}function Fie(e,t){return ro(e)?f4(e,t):ro(t)?f4(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function f4(e,t){return ro(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Kie(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Tl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let np=function(e){return e.pop="pop",e.push="push",e}({}),O0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Wie(e){if(!e)if(ss){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zie(e)}const jie=/^[^#]+#/;function qie(e,t){return e.replace(jie,"#")+t}function Uie(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const xf=()=>({left:window.scrollX,top:window.scrollY});function Yie(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Uie(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function p4(e,t){return(history.state?history.state.position-t:-1)+e}const ap=new Map;function Gie(e,t){ap.set(e,t)}function Xie(e){const t=ap.get(e);return ap.delete(e),t}function Jie(e){return typeof e=="string"||e&&typeof e=="object"}function h9(e){return typeof e=="string"||typeof e=="symbol"}let Sn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const v9=Symbol("");Sn.MATCHER_NOT_FOUND+"",Sn.NAVIGATION_GUARD_REDIRECT+"",Sn.NAVIGATION_ABORTED+"",Sn.NAVIGATION_CANCELLED+"",Sn.NAVIGATION_DUPLICATED+"";function Hs(e,t){return en(new Error,{type:e,[v9]:!0},t)}function qo(e,t){return e instanceof Error&&v9 in e&&(t==null||!!(e.type&t))}const Zie=["params","query","hash"];function Qie(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Zie)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function eue(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&tp(o)):[a&&tp(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function tue(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=ro(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const nue=Symbol(""),v4=Symbol(""),kf=Symbol(""),xv=Symbol(""),op=Symbol("");function hi(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Nl(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((s,u)=>{const c=h=>{h===!1?u(Hs(Sn.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):Jie(h)?u(Hs(Sn.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&a.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(h=>u(h))})}function $0(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const s in r.components){let u=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(s9(u)){const c=(u.__vccOpts||u)[t];c&&l.push(Nl(c,n,a,r,s,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${r.path}"`);const f=xie(d)?d.default:d;r.mods[s]=d,r.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Nl(h,n,a,r,s,o)()}))}}return l}function aue(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rDs(c,s))?a.push(s):n.push(s));const u=e.matched[r];u&&(t.matched.find(c=>Ds(c,u))||o.push(u))}return[n,a,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let oue=()=>location.protocol+"//"+location.host;function v9(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),c4(s,"")}return c4(n,e)+a+o}function lue(e,t,n,a){let o=[],l=[],r=null;const s=({state:h})=>{const g=v9(e,location),p=n.value,v=t.value;let m=0;if(h){if(n.value=g,t.value=h,r&&r===p){r=null;return}m=v?h.position-v.position:0}else a(g);o.forEach(y=>{y(n.value,p,{delta:m,type:ep.pop,direction:m?m>0?T0.forward:T0.back:T0.unknown})})};function u(){r=n.value}function c(h){o.push(h);const g=()=>{const p=o.indexOf(h);p>-1&&o.splice(p,1)};return l.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Qt({},h.state,{scroll:Sf()}),"")}}function f(){for(const h of l)h();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function v4(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Sf():null}}function rue(e){const{history:t,location:n}=window,a={value:v9(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:oue()+e+u;try{t[d?"replaceState":"pushState"](c,"",h),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function r(u,c){l(u,Qt({},t.state,v4(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=Qt({},o.value,t.state,{forward:u,scroll:Sf()});l(d.current,d,!0),l(u,Qt({},v4(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function sue(e){e=Wie(e);const t=rue(e),n=lue(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=Qt({location:"",base:e,go:a,createHref:qie.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let yr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var In=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(In||{});const iue={type:yr.Static,value:""},uue=/[a-zA-Z0-9_]/;function cue(e){if(!e)return[[]];if(e==="/")return[[iue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=In.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===In.Static?l.push({type:yr.Static,value:c}):n===In.Param||n===In.ParamRegExp||n===In.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:yr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=u}for(;st.length?t.length===1&&t[0]===ia.Static+ia.Segment?1:-1:0}function m9(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vue={strict:!1,end:!0,sensitive:!1};function mue(e,t,n){const a=pue(cue(e.path),n),o=Qt(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gue(e,t){const n=[],a=new Map;t=u4(vue,t);function o(f){return a.get(f)}function l(f,h,g){const p=!g,v=b4(f);v.aliasOf=g&&g.record;const m=u4(t,f),y=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of _)y.push(b4(Qt({},v,{components:g?g.record.components:v.components,path:S,aliasOf:g?g.record:v})))}let b,w;for(const _ of y){const{path:S}=_;if(h&&S[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";_.path=h.record.path+(S&&T+S)}if(b=mue(_,h,m),g?g.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!w4(b)&&r(f.name)),g9(b)&&u(b),v.children){const k=v.children;for(let T=0;T{r(w)}:Li}function r(f){if(p9(f)){const h=a.get(f);h&&(a.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function s(){return n}function u(f){const h=wue(f,n);n.splice(h,0,f),f.record.name&&!w4(f)&&a.set(f.record.name,f)}function c(f,h){let g,p={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Ds(Sn.MATCHER_NOT_FOUND,{location:f});m=g.record.name,p=Qt(y4(h.params,g.keys.filter(w=>!w.optional).concat(g.parent?g.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&y4(f.params,g.keys.map(w=>w.name))),v=g.stringify(p)}else if(f.path!=null)v=f.path,g=n.find(w=>w.re.test(v)),g&&(p=g.parse(v),m=g.record.name);else{if(g=h.name?a.get(h.name):n.find(w=>w.re.test(h.path)),!g)throw Ds(Sn.MATCHER_NOT_FOUND,{location:f,currentLocation:h});m=g.record.name,p=Qt({},h.params,f.params),v=g.stringify(p)}const y=[];let b=g;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:v,params:p,matched:y,meta:bue(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function y4(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function b4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function w4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bue(e){return e.reduce((t,n)=>Qt(t,n.meta),{})}function wue(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;m9(e,t[l])<0?a=l:n=l+1}const o=Cue(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Cue(e){let t=e;for(;t=t.parent;)if(g9(t)&&m9(e,t)===0)return t}function g9({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function C4(e){const t=Pe(xf),n=Pe(_v),a=x(()=>{const u=i(e.to);return t.resolve(u)}),o=x(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(zs.bind(null,d));if(h>-1)return h;const g=_4(u[c-2]);return c>1&&_4(d)===g&&f[f.length-1].path!==g?f.findIndex(zs.bind(null,u[c-2])):h}),l=x(()=>o.value>-1&&Eue(n.params,a.value.params)),r=x(()=>o.value>-1&&o.value===n.matched.length-1&&f9(n.params,a.value.params));function s(u={}){if(kue(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Li);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:l,isExactActive:r,navigate:s}}function _ue(e){return e.length===1?e[0]:e}const Sue=D({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:C4,setup(e,{slots:t}){const n=Rt(C4(e)),{options:a}=Pe(xf),o=x(()=>({[S4(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[S4(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&_ue(t.default(n));return e.custom?l:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),xue=Sue;function kue(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Eue(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!ro(o)||o.length!==a.length||a.some((l,r)=>l.valueOf()!==o[r].valueOf()))return!1}return!0}function _4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const S4=(e,t,n)=>e??t??n,Tue=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Pe(np),o=x(()=>e.route||a.value),l=Pe(h4,0),r=x(()=>{let c=i(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),s=x(()=>o.value.matched[r.value]);wt(h4,x(()=>r.value+1)),wt(nue,s),wt(np,o);const u=V();return fe(()=>[u.value,s.value,e.name],([c,d,f],[h,g,p])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!zs(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=s.value,h=f&&f.components[d];if(!h)return x4(n.default,{Component:h,route:c});const g=f.props[d],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=Ye(h,Qt({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return x4(n.default,{Component:m,route:c})||m}}});function x4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mue=Tue;function Oue(e){const t=gue(e.routes,e),n=e.parseQuery||eue,a=e.stringifyQuery||p4,o=e.history,l=pi(),r=pi(),s=pi(),u=qt(Tl);let c=Tl;rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=k0.bind(null,ne=>""+ne),f=k0.bind(null,Vie),h=k0.bind(null,du);function g(ne,de){let se,Y;return p9(ne)?(se=t.getRecordMatcher(ne),Y=de):Y=ne,t.addRoute(Y,se)}function p(ne){const de=t.getRecordMatcher(ne);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(ne=>ne.record)}function m(ne){return!!t.getRecordMatcher(ne)}function y(ne,de){if(de=Qt({},de||u.value),typeof ne=="string"){const le=E0(n,ne,de.path),ce=t.resolve({path:le.path},de),ge=o.createHref(le.fullPath);return Qt(le,ce,{params:h(ce.params),hash:du(le.hash),redirectedFrom:void 0,href:ge})}let se;if(ne.path!=null)se=Qt({},ne,{path:E0(n,ne.path,de.path).path});else{const le=Qt({},ne.params);for(const ce in le)le[ce]==null&&delete le[ce];se=Qt({},ne,{params:f(le)}),de.params=f(de.params)}const Y=t.resolve(se,de),X=ne.hash||"";Y.params=d(h(Y.params));const H=Die(a,Qt({},ne,{hash:Pie(X),path:Y.path})),Z=o.createHref(H);return Qt({fullPath:H,hash:X,query:a===p4?tue(ne.query):ne.query||{}},Y,{redirectedFrom:void 0,href:Z})}function b(ne){return typeof ne=="string"?E0(n,ne,u.value.path):Qt({},ne)}function w(ne,de){if(c!==ne)return Ds(Sn.NAVIGATION_CANCELLED,{from:de,to:ne})}function _(ne){return T(ne)}function S(ne){return _(Qt(b(ne),{replace:!0}))}function k(ne,de){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:Y}=se;let X=typeof Y=="function"?Y(ne,de):Y;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),Qt({query:ne.query,hash:ne.hash,params:X.path!=null?{}:ne.params},X)}}function T(ne,de){const se=c=y(ne),Y=u.value,X=ne.state,H=ne.force,Z=ne.replace===!0,le=k(se,Y);if(le)return T(Qt(b(le),{state:typeof le=="object"?Qt({},X,le.state):X,force:H,replace:Z}),de||se);const ce=se;ce.redirectedFrom=de;let ge;return!H&&Hie(a,Y,se)&&(ge=Ds(Sn.NAVIGATION_DUPLICATED,{to:ce,from:Y}),W(Y,Y,!0,!1)),(ge?Promise.resolve(ge):O(ce,Y)).catch(me=>qo(me)?qo(me,Sn.NAVIGATION_GUARD_REDIRECT)?me:K(me):P(me,ce,Y)).then(me=>{if(me){if(qo(me,Sn.NAVIGATION_GUARD_REDIRECT))return T(Qt({replace:Z},b(me.to),{state:typeof me.to=="object"?Qt({},X,me.to.state):X,force:H}),de||ce)}else me=L(ce,Y,!0,Z,X);return I(ce,Y,me),me})}function M(ne,de){const se=w(ne,de);return se?Promise.reject(se):Promise.resolve()}function A(ne){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ne):ne()}function O(ne,de){let se;const[Y,X,H]=aue(ne,de);se=M0(Y.reverse(),"beforeRouteLeave",ne,de);for(const le of Y)le.leaveGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});const Z=M.bind(null,ne,de);return se.push(Z),ue(se).then(()=>{se=[];for(const le of l.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).then(()=>{se=M0(X,"beforeRouteUpdate",ne,de);for(const le of X)le.updateGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});return se.push(Z),ue(se)}).then(()=>{se=[];for(const le of H)if(le.beforeEnter)if(ro(le.beforeEnter))for(const ce of le.beforeEnter)se.push(Nl(ce,ne,de));else se.push(Nl(le.beforeEnter,ne,de));return se.push(Z),ue(se)}).then(()=>(ne.matched.forEach(le=>le.enterCallbacks={}),se=M0(H,"beforeRouteEnter",ne,de,A),se.push(Z),ue(se))).then(()=>{se=[];for(const le of r.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).catch(le=>qo(le,Sn.NAVIGATION_CANCELLED)?le:Promise.reject(le))}function I(ne,de,se){s.list().forEach(Y=>A(()=>Y(ne,de,se)))}function L(ne,de,se,Y,X){const H=w(ne,de);if(H)return H;const Z=de===Tl,le=rs?history.state:{};se&&(Y||Z?o.replace(ne.fullPath,Qt({scroll:Z&&le&&le.scroll},X)):o.push(ne.fullPath,X)),u.value=ne,W(ne,de,se,Z),K()}let z;function q(){z||(z=o.listen((ne,de,se)=>{if(!te.listening)return;const Y=y(ne),X=k(Y,te.currentRoute.value);if(X){T(Qt(X,{replace:!0,force:!0}),Y).catch(Li);return}c=Y;const H=u.value;rs&&Gie(f4(H.fullPath,se.delta),Sf()),O(Y,H).catch(Z=>qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_CANCELLED)?Z:qo(Z,Sn.NAVIGATION_GUARD_REDIRECT)?(T(Qt(b(Z.to),{force:!0}),Y).then(le=>{qo(le,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===ep.pop&&o.go(-1,!1)}).catch(Li),Promise.reject()):(se.delta&&o.go(-se.delta,!1),P(Z,Y,H))).then(Z=>{Z=Z||L(Y,H,!1),Z&&(se.delta&&!qo(Z,Sn.NAVIGATION_CANCELLED)?o.go(-se.delta,!1):se.type===ep.pop&&qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),I(Y,H,Z)}).catch(Li)}))}let U=pi(),F=pi(),N;function P(ne,de,se){K(ne);const Y=F.list();return Y.length?Y.forEach(X=>X(ne,de,se)):console.error(ne),Promise.reject(ne)}function B(){return N&&u.value!==Tl?Promise.resolve():new Promise((ne,de)=>{U.add([ne,de])})}function K(ne){return N||(N=!ne,q(),U.list().forEach(([de,se])=>ne?se(ne):de()),U.reset()),ne}function W(ne,de,se,Y){const{scrollBehavior:X}=e;if(!rs||!X)return Promise.resolve();const H=!se&&Xie(f4(ne.fullPath,0))||(Y||!se)&&history.state&&history.state.scroll||null;return Le().then(()=>X(ne,de,H)).then(Z=>Z&&Yie(Z)).catch(Z=>P(Z,ne,de))}const j=ne=>o.go(ne);let G;const ee=new Set,te={currentRoute:u,listening:!0,addRoute:g,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:y,options:e,push:_,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:r.add,afterEach:s.add,onError:F.add,isReady:B,install(ne){ne.component("RouterLink",xue),ne.component("RouterView",Mue),ne.config.globalProperties.$router=te,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),rs&&!G&&u.value===Tl&&(G=!0,_(o.location).catch(Y=>{}));const de={};for(const Y in Tl)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});ne.provide(xf,te),ne.provide(_v,Ld(de)),ne.provide(np,u);const se=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=Tl,z&&z(),z=null,u.value=Tl,G=!1,N=!1),se()}}};function ue(ne){return ne.reduce((de,se)=>de.then(()=>A(se)),Promise.resolve())}return te}function mde(){return Pe(xf)}function gde(e){return Pe(_v)}function y9(e,t){return function(){return e.apply(t,arguments)}}const{toString:$ue}=Object.prototype,{getPrototypeOf:Sv}=Object,{iterator:kf,toStringTag:b9}=Symbol,Ef=(e=>t=>{const n=$ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mo=e=>(e=e.toLowerCase(),t=>Ef(t)===e),Tf=e=>t=>typeof t===e,{isArray:Qs}=Array,Hs=Tf("undefined");function Ku(e){return e!==null&&!Hs(e)&&e.constructor!==null&&!Hs(e.constructor)&&Ca(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w9=mo("ArrayBuffer");function Aue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&w9(e.buffer),t}const Rue=Tf("string"),Ca=Tf("function"),C9=Tf("number"),Wu=e=>e!==null&&typeof e=="object",Nue=e=>e===!0||e===!1,Hc=e=>{if(Ef(e)!=="object")return!1;const t=Sv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(b9 in e)&&!(kf in e)},Pue=e=>{if(!Wu(e)||Ku(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Iue=mo("Date"),Lue=mo("File"),Vue=e=>!!(e&&typeof e.uri<"u"),Bue=e=>e&&typeof e.getParts<"u",zue=mo("Blob"),Due=mo("FileList"),Hue=e=>Wu(e)&&Ca(e.pipe);function Fue(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const k4=Fue(),E4=typeof k4.FormData<"u"?k4.FormData:void 0,Kue=e=>{let t;return e&&(E4&&e instanceof E4||Ca(e.append)&&((t=Ef(e))==="formdata"||t==="object"&&Ca(e.toString)&&e.toString()==="[object FormData]"))},Wue=mo("URLSearchParams"),[jue,que,Uue,Yue]=["ReadableStream","Request","Response","Headers"].map(mo),Gue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ju(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Qs(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S9=e=>!Hs(e)&&e!==br;function ap(){const{caseless:e,skipUndefined:t}=S9(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const r=e&&_9(n,l)||l;Hc(n[r])&&Hc(o)?n[r]=ap(n[r],o):Hc(o)?n[r]=ap({},o):Qs(o)?n[r]=o.slice():(!t||!Hs(o))&&(n[r]=o)};for(let o=0,l=arguments.length;o(ju(t,(o,l)=>{n&&Ca(o)?Object.defineProperty(e,l,{value:y9(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),Jue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zue=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Que=(e,t,n,a)=>{let o,l,r;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)r=o[l],(!a||a(r,e,t))&&!s[r]&&(t[r]=e[r],s[r]=!0);e=n!==!1&&Sv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ece=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},tce=e=>{if(!e)return null;if(Qs(e))return e;let t=e.length;if(!C9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sv(Uint8Array)),ace=(e,t)=>{const a=(e&&e[kf]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},oce=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},lce=mo("HTMLFormElement"),rce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),T4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sce=mo("RegExp"),x9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};ju(n,(o,l)=>{let r;(r=t(o,l,e))!==!1&&(a[l]=r||o)}),Object.defineProperties(e,a)},ice=e=>{x9(e,(t,n)=>{if(Ca(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Ca(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uce=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return Qs(e)?a(e):a(String(e).split(t)),n},cce=()=>{},dce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fce(e){return!!(e&&Ca(e.append)&&e[b9]==="FormData"&&e[kf])}const pce=e=>{const t=new Array(10),n=(a,o)=>{if(Wu(a)){if(t.indexOf(a)>=0)return;if(Ku(a))return a;if(!("toJSON"in a)){t[o]=a;const l=Qs(a)?[]:{};return ju(a,(r,s)=>{const u=n(r,o+1);!Hs(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},hce=mo("AsyncFunction"),vce=e=>e&&(Wu(e)||Ca(e))&&Ca(e.then)&&Ca(e.catch),k9=((e,t)=>e?setImmediate:t?((n,a)=>(br.addEventListener("message",({source:o,data:l})=>{o===br&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),br.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ca(br.postMessage)),mce=typeof queueMicrotask<"u"?queueMicrotask.bind(br):typeof process<"u"&&process.nextTick||k9,gce=e=>e!=null&&Ca(e[kf]),$e={isArray:Qs,isArrayBuffer:w9,isBuffer:Ku,isFormData:Kue,isArrayBufferView:Aue,isString:Rue,isNumber:C9,isBoolean:Nue,isObject:Wu,isPlainObject:Hc,isEmptyObject:Pue,isReadableStream:jue,isRequest:que,isResponse:Uue,isHeaders:Yue,isUndefined:Hs,isDate:Iue,isFile:Lue,isReactNativeBlob:Vue,isReactNative:Bue,isBlob:zue,isRegExp:sce,isFunction:Ca,isStream:Hue,isURLSearchParams:Wue,isTypedArray:nce,isFileList:Due,forEach:ju,merge:ap,extend:Xue,trim:Gue,stripBOM:Jue,inherits:Zue,toFlatObject:Que,kindOf:Ef,kindOfTest:mo,endsWith:ece,toArray:tce,forEachEntry:ace,matchAll:oce,isHTMLForm:lce,hasOwnProperty:T4,hasOwnProp:T4,reduceDescriptors:x9,freezeMethods:ice,toObjectSet:uce,toCamelCase:rce,noop:cce,toFiniteNumber:dce,findKey:_9,global:br,isContextDefined:S9,isSpecCompliantForm:fce,toJSONObject:pce,isAsyncFn:hce,isThenable:vce,setImmediate:k9,asap:mce,isIterable:gce};let Nt=class E9 extends Error{static from(t,n,a,o,l,r){const s=new E9(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){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:$e.toJSONObject(this.config),code:this.code,status:this.status}}};Nt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Nt.ERR_BAD_OPTION="ERR_BAD_OPTION";Nt.ECONNABORTED="ECONNABORTED";Nt.ETIMEDOUT="ETIMEDOUT";Nt.ERR_NETWORK="ERR_NETWORK";Nt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Nt.ERR_DEPRECATED="ERR_DEPRECATED";Nt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Nt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Nt.ERR_CANCELED="ERR_CANCELED";Nt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Nt.ERR_INVALID_URL="ERR_INVALID_URL";const yce=null;function op(e){return $e.isPlainObject(e)||$e.isArray(e)}function T9(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function O0(e,t,n){return e?e.concat(t).map(function(o,l){return o=T9(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function bce(e){return $e.isArray(e)&&!e.some(op)}const wce=$e.toFlatObject($e,{},null,function(t){return/^is[A-Z]/.test(t)});function Mf(e,t,n){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!$e.isUndefined(m[v])});const a=n.metaTokens,o=n.visitor||d,l=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&$e.isSpecCompliantForm(t);if(!$e.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if($e.isDate(p))return p.toISOString();if($e.isBoolean(p))return p.toString();if(!u&&$e.isBlob(p))throw new Nt("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(p)||$e.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,m){let y=p;if($e.isReactNative(t)&&$e.isReactNativeBlob(p))return t.append(O0(m,v,l),c(p)),!1;if(p&&!m&&typeof p=="object"){if($e.endsWith(v,"{}"))v=a?v:v.slice(0,-2),p=JSON.stringify(p);else if($e.isArray(p)&&bce(p)||($e.isFileList(p)||$e.endsWith(v,"[]"))&&(y=$e.toArray(p)))return v=T9(v),y.forEach(function(w,_){!($e.isUndefined(w)||w===null)&&t.append(r===!0?O0([v],_,l):r===null?v:v+"[]",c(w))}),!1}return op(p)?!0:(t.append(O0(m,v,l),c(p)),!1)}const f=[],h=Object.assign(wce,{defaultVisitor:d,convertValue:c,isVisitable:op});function g(p,v){if(!$e.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),$e.forEach(p,function(y,b){(!($e.isUndefined(y)||y===null)&&o.call(t,y,$e.isString(b)?b.trim():b,v,h))===!0&&g(y,v?v.concat(b):[b])}),f.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return g(e),t}function M4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function xv(e,t){this._pairs=[],e&&Mf(e,this,t)}const M9=xv.prototype;M9.append=function(t,n){this._pairs.push([t,n])};M9.toString=function(t){const n=t?function(a){return t.call(this,a,M4)}:M4;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function O9(e,t,n){if(!t)return e;const a=n&&n.encode||Cce,o=$e.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let r;if(l?r=l(t,o):r=$e.isURLSearchParams(t)?t.toString():new xv(t,o).toString(a),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class O4{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$e.forEach(this.handlers,function(a){a!==null&&t(a)})}}const kv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_ce=typeof URLSearchParams<"u"?URLSearchParams:xv,Sce=typeof FormData<"u"?FormData:null,xce=typeof Blob<"u"?Blob:null,kce={isBrowser:!0,classes:{URLSearchParams:_ce,FormData:Sce,Blob:xce},protocols:["http","https","file","blob","url","data"]},Ev=typeof window<"u"&&typeof document<"u",lp=typeof navigator=="object"&&navigator||void 0,Ece=Ev&&(!lp||["ReactNative","NativeScript","NS"].indexOf(lp.product)<0),Tce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mce=Ev&&window.location.href||"http://localhost",Oce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ev,hasStandardBrowserEnv:Ece,hasStandardBrowserWebWorkerEnv:Tce,navigator:lp,origin:Mce},Symbol.toStringTag,{value:"Module"})),na={...Oce,...kce};function $ce(e,t){return Mf(e,new na.classes.URLSearchParams,{visitor:function(n,a,o,l){return na.isNode&&$e.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Ace(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rce(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a=n.length;return r=!r&&$e.isArray(o)?o.length:r,u?($e.hasOwnProp(o,r)?o[r]=[o[r],a]:o[r]=a,!s):((!o[r]||!$e.isObject(o[r]))&&(o[r]=[]),t(n,a,o[r],l)&&$e.isArray(o[r])&&(o[r]=Rce(o[r])),!s)}if($e.isFormData(e)&&$e.isFunction(e.entries)){const n={};return $e.forEachEntry(e,(a,o)=>{t(Ace(a),o,n,0)}),n}return null}function Nce(e,t,n){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const qu={transitional:kv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=$e.isObject(t);if(l&&$e.isHTMLForm(t)&&(t=new FormData(t)),$e.isFormData(t))return o?JSON.stringify($9(t)):t;if($e.isArrayBuffer(t)||$e.isBuffer(t)||$e.isStream(t)||$e.isFile(t)||$e.isBlob(t)||$e.isReadableStream(t))return t;if($e.isArrayBufferView(t))return t.buffer;if($e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return $ce(t,this.formSerializer).toString();if((s=$e.isFileList(t))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Mf(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),Nce(t)):t}],transformResponse:[function(t){const n=this.transitional||qu.transitional,a=n&&n.forcedJSONParsing,o=this.responseType==="json";if($e.isResponse(t)||$e.isReadableStream(t))return t;if(t&&$e.isString(t)&&(a&&!this.responseType||o)){const r=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(r)throw s.name==="SyntaxError"?Nt.from(s,Nt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$e.forEach(["delete","get","head","post","put","patch"],e=>{qu.headers[e]={}});const Pce=$e.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"]),Ice=e=>{const t={};let n,a,o;return e&&e.split(` -`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&Pce[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},$4=Symbol("internals"),Lce=e=>!/[\r\n]/.test(e);function A9(e,t){if(!(e===!1||e==null)){if($e.isArray(e)){e.forEach(n=>A9(n,t));return}if(!Lce(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function hi(e){return e&&String(e).trim().toLowerCase()}function Vce(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(n!==10&&n!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function Fc(e){return e===!1||e==null?e:$e.isArray(e)?e.map(Fc):Vce(String(e))}function Bce(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const zce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $0(e,t,n,a,o){if($e.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!$e.isString(t)){if($e.isString(a))return t.indexOf(a)!==-1;if($e.isRegExp(a))return a.test(t)}}function Dce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Hce(e,t){const n=$e.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let _a=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=hi(u);if(!d)throw new Error("header name must be a non-empty string");const f=$e.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(A9(s,u),o[f||u]=Fc(s))}const r=(s,u)=>$e.forEach(s,(c,d)=>l(c,d,u));if($e.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if($e.isString(t)&&(t=t.trim())&&!zce(t))r(Ice(t),n);else if($e.isObject(t)&&$e.isIterable(t)){let s={},u,c;for(const d of t){if(!$e.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(u=s[c])?$e.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=hi(t),t){const a=$e.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return Bce(o);if($e.isFunction(n))return n.call(this,o,a);if($e.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hi(t),t){const a=$e.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||$0(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=hi(r),r){const s=$e.findKey(a,r);s&&(!n||$0(a,a[s],s,n))&&(delete a[s],o=!0)}}return $e.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||$0(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return $e.forEach(this,(o,l)=>{const r=$e.findKey(a,l);if(r){n[r]=Fc(o),delete n[l];return}const s=t?Dce(l):String(l).trim();s!==l&&delete n[l],n[s]=Fc(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $e.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&$e.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[$4]=this[$4]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=hi(r);a[s]||(Hce(o,r),a[s]=!0)}return $e.isArray(t)?t.forEach(l):l(t),this}};_a.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$e.reduceDescriptors(_a.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});$e.freezeMethods(_a);function A0(e,t){const n=this||qu,a=t||n,o=_a.from(a.headers);let l=a.data;return $e.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function R9(e){return!!(e&&e.__CANCEL__)}let Uu=class extends Nt{constructor(t,n,a){super(t??"canceled",Nt.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function N9(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Nt("Request failed with status code "+n.status,[Nt.ERR_BAD_REQUEST,Nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kce(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[l];r||(r=c),n[o]=u,a[o]=c;let f=l,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),c-r{n=d,o=null,l&&(clearTimeout(l),l=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?r(c,d):(o=c,l||(l=setTimeout(()=>{l=null,r(o)},a-f)))},()=>o&&r(o)]}const Md=(e,t,n=3)=>{let a=0;const o=Kce(50,250);return Wce(l=>{const r=l.loaded,s=l.lengthComputable?l.total:void 0,u=r-a,c=o(u),d=r<=s;a=r;const f={loaded:r,total:s,progress:s?r/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&d?(s-r)/c:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},A4=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},R4=e=>(...t)=>$e.asap(()=>e(...t)),jce=na.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,na.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(na.origin),na.navigator&&/(msie|trident)/i.test(na.navigator.userAgent)):()=>!0,qce=na.hasStandardBrowserEnv?{write(e,t,n,a,o,l,r){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];$e.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),$e.isString(a)&&s.push(`path=${a}`),$e.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),$e.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Uce(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yce(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function P9(e,t,n){let a=!Uce(t);return e&&(a||n==!1)?Yce(e,t):t}const N4=e=>e instanceof _a?{...e}:e;function zr(e,t){t=t||{};const n={};function a(c,d,f,h){return $e.isPlainObject(c)&&$e.isPlainObject(d)?$e.merge.call({caseless:h},c,d):$e.isPlainObject(d)?$e.merge({},d):$e.isArray(d)?d.slice():d}function o(c,d,f,h){if($e.isUndefined(d)){if(!$e.isUndefined(c))return a(void 0,c,f,h)}else return a(c,d,f,h)}function l(c,d){if(!$e.isUndefined(d))return a(void 0,d)}function r(c,d){if($e.isUndefined(d)){if(!$e.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,f){if(f in t)return a(c,d);if(f in e)return a(void 0,c)}const u={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(c,d,f)=>o(N4(c),N4(d),f,!0)};return $e.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=$e.hasOwnProp(u,d)?u[d]:o,h=f(e[d],t[d],d);$e.isUndefined(h)&&f!==s||(n[d]=h)}),n}const I9=e=>{const t=zr({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:r,auth:s}=t;if(t.headers=r=_a.from(r),t.url=O9(P9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),$e.isFormData(n)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if($e.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(na.hasStandardBrowserEnv&&(a&&$e.isFunction(a)&&(a=a(t)),a||a!==!1&&jce(t.url))){const u=o&&l&&qce.read(l);u&&r.set(o,u)}return t},Gce=typeof XMLHttpRequest<"u",Xce=Gce&&function(e){return new Promise(function(n,a){const o=I9(e);let l=o.data;const r=_a.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=o,d,f,h,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const w=_a.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};N9(function(T){n(T),v()},function(T){a(T),v()},S),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new Nt("Request aborted",Nt.ECONNABORTED,e,m)),m=null)},m.onerror=function(_){const S=_&&_.message?_.message:"Network Error",k=new Nt(S,Nt.ERR_NETWORK,e,m);k.event=_||null,a(k),m=null},m.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||kv;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),a(new Nt(_,S.clarifyTimeoutError?Nt.ETIMEDOUT:Nt.ECONNABORTED,e,m)),m=null},l===void 0&&r.setContentType(null),"setRequestHeader"in m&&$e.forEach(r.toJSON(),function(_,S){m.setRequestHeader(S,_)}),$e.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),c&&([h,p]=Md(c,!0),m.addEventListener("progress",h)),u&&m.upload&&([f,g]=Md(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=w=>{m&&(a(!w||w.type?new Uu(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const b=Fce(o.url);if(b&&na.protocols.indexOf(b)===-1){a(new Nt("Unsupported protocol "+b+":",Nt.ERR_BAD_REQUEST,e));return}m.send(l||null)})},Jce=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(c){if(!o){o=!0,s();const d=c instanceof Error?c:this.reason;a.abort(d instanceof Nt?d:new Uu(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,l(new Nt(`timeout of ${t}ms exceeded`,Nt.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>$e.asap(s),u}},Zce=function*(e,t){let n=e.byteLength;if(n{const o=Qce(e,t);let l=0,r,s=u=>{r||(r=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){s(),u.close();return}let f=d.byteLength;if(n){let h=l+=f;n(h)}u.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},I4=64*1024,{isFunction:bc}=$e,tde=(({Request:e,Response:t})=>({Request:e,Response:t}))($e.global),{ReadableStream:L4,TextEncoder:V4}=$e.global,B4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nde=e=>{e=$e.merge.call({skipUndefined:!0},tde,e);const{fetch:t,Request:n,Response:a}=e,o=t?bc(t):typeof fetch=="function",l=bc(n),r=bc(a);if(!o)return!1;const s=o&&bc(L4),u=o&&(typeof V4=="function"?(p=>v=>p.encode(v))(new V4):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=l&&s&&B4(()=>{let p=!1;const v=new L4,m=new n(na.origin,{body:v,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return v.cancel(),p&&!m}),d=r&&s&&B4(()=>$e.isReadableStream(new a("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(v,m)=>{let y=v&&v[p];if(y)return y.call(v);throw new Nt(`Response type '${p}' is not supported`,Nt.ERR_NOT_SUPPORT,m)})});const h=async p=>{if(p==null)return 0;if($e.isBlob(p))return p.size;if($e.isSpecCompliantForm(p))return(await new n(na.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if($e.isArrayBufferView(p)||$e.isArrayBuffer(p))return p.byteLength;if($e.isURLSearchParams(p)&&(p=p+""),$e.isString(p))return(await u(p)).byteLength},g=async(p,v)=>{const m=$e.toFiniteNumber(p.getContentLength());return m??h(v)};return async p=>{let{url:v,method:m,data:y,signal:b,cancelToken:w,timeout:_,onDownloadProgress:S,onUploadProgress:k,responseType:T,headers:M,withCredentials:A="same-origin",fetchOptions:O}=I9(p),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=Jce([b,w&&w.toAbortSignal()],_),z=null;const q=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let U;try{if(k&&c&&m!=="get"&&m!=="head"&&(U=await g(M,y))!==0){let W=new n(v,{method:"POST",body:y,duplex:"half"}),j;if($e.isFormData(y)&&(j=W.headers.get("content-type"))&&M.setContentType(j),W.body){const[G,ee]=A4(U,Md(R4(k)));y=P4(W.body,I4,G,ee)}}$e.isString(A)||(A=A?"include":"omit");const F=l&&"credentials"in n.prototype,N={...O,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:F?A:void 0};z=l&&new n(v,N);let P=await(l?I(z,O):I(v,N));const B=d&&(T==="stream"||T==="response");if(d&&(S||B&&q)){const W={};["status","statusText","headers"].forEach(te=>{W[te]=P[te]});const j=$e.toFiniteNumber(P.headers.get("content-length")),[G,ee]=S&&A4(j,Md(R4(S),!0))||[];P=new a(P4(P.body,I4,G,()=>{ee&&ee(),q&&q()}),W)}T=T||"text";let K=await f[$e.findKey(f,T)||"text"](P,p);return!B&&q&&q(),await new Promise((W,j)=>{N9(W,j,{data:K,headers:_a.from(P.headers),status:P.status,statusText:P.statusText,config:p,request:z})})}catch(F){throw q&&q(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Nt("Network Error",Nt.ERR_NETWORK,p,z,F&&F.response),{cause:F.cause||F}):Nt.from(F,F&&F.code,p,z,F&&F.response)}}},ade=new Map,L9=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let r=l.length,s=r,u,c,d=ade;for(;s--;)u=l[s],c=d.get(u),c===void 0&&d.set(u,c=s?new Map:nde(t)),d=c;return c};L9();const Tv={http:yce,xhr:Xce,fetch:{get:L9}};$e.forEach(Tv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const z4=e=>`- ${e}`,ode=e=>$e.isFunction(e)||e===null||e===!1;function lde(e,t){e=$e.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?r.length>1?`since : -`+r.map(z4).join(` -`):" "+z4(r[0]):"as no adapter specified";throw new Nt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const V9={getAdapter:lde,adapters:Tv};function R0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function D4(e){return R0(e),e.headers=_a.from(e.headers),e.data=A0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),V9.getAdapter(e.adapter||qu.adapter,e)(e).then(function(a){return R0(e),a.data=A0.call(e,e.transformResponse,a),a.headers=_a.from(a.headers),a},function(a){return R9(a)||(R0(e),a&&a.response&&(a.response.data=A0.call(e,e.transformResponse,a.response),a.response.headers=_a.from(a.response.headers))),Promise.reject(a)})}const B9="1.15.0",Of={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Of[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const H4={};Of.transitional=function(t,n,a){function o(l,r){return"[Axios v"+B9+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new Nt(o(r," has been removed"+(n?" in "+n:"")),Nt.ERR_DEPRECATED);return n&&!H4[r]&&(H4[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};Of.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function rde(e,t,n){if(typeof e!="object")throw new Nt("options must be an object",Nt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=t[l];if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new Nt("option "+l+" must be "+u,Nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Nt("Unknown option "+l,Nt.ERR_BAD_OPTION)}}const Kc={assertOptions:rde,validators:Of},La=Kc.validators;let kr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new O4,response:new O4}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` + */let oue=()=>location.protocol+"//"+location.host;function m9(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),d4(s,"")}return d4(n,e)+a+o}function lue(e,t,n,a){let o=[],l=[],r=null;const s=({state:h})=>{const g=m9(e,location),p=n.value,v=t.value;let m=0;if(h){if(n.value=g,t.value=h,r&&r===p){r=null;return}m=v?h.position-v.position:0}else a(g);o.forEach(y=>{y(n.value,p,{delta:m,type:np.pop,direction:m?m>0?O0.forward:O0.back:O0.unknown})})};function u(){r=n.value}function c(h){o.push(h);const g=()=>{const p=o.indexOf(h);p>-1&&o.splice(p,1)};return l.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(en({},h.state,{scroll:xf()}),"")}}function f(){for(const h of l)h();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function m4(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?xf():null}}function rue(e){const{history:t,location:n}=window,a={value:m9(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:oue()+e+u;try{t[d?"replaceState":"pushState"](c,"",h),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function r(u,c){l(u,en({},t.state,m4(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=en({},o.value,t.state,{forward:u,scroll:xf()});l(d.current,d,!0),l(u,en({},m4(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function sue(e){e=Wie(e);const t=rue(e),n=lue(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=en({location:"",base:e,go:a,createHref:qie.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let br=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var In=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(In||{});const iue={type:br.Static,value:""},uue=/[a-zA-Z0-9_]/;function cue(e){if(!e)return[[]];if(e==="/")return[[iue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=In.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===In.Static?l.push({type:br.Static,value:c}):n===In.Param||n===In.ParamRegExp||n===In.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:br.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=u}for(;st.length?t.length===1&&t[0]===ia.Static+ia.Segment?1:-1:0}function g9(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vue={strict:!1,end:!0,sensitive:!1};function mue(e,t,n){const a=pue(cue(e.path),n),o=en(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gue(e,t){const n=[],a=new Map;t=c4(vue,t);function o(f){return a.get(f)}function l(f,h,g){const p=!g,v=w4(f);v.aliasOf=g&&g.record;const m=c4(t,f),y=[v];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of C)y.push(w4(en({},v,{components:g?g.record.components:v.components,path:S,aliasOf:g?g.record:v})))}let b,w;for(const C of y){const{path:S}=C;if(h&&S[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";C.path=h.record.path+(S&&T+S)}if(b=mue(C,h,m),g?g.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!C4(b)&&r(f.name)),y9(b)&&u(b),v.children){const k=v.children;for(let T=0;T{r(w)}:Vi}function r(f){if(h9(f)){const h=a.get(f);h&&(a.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function s(){return n}function u(f){const h=wue(f,n);n.splice(h,0,f),f.record.name&&!C4(f)&&a.set(f.record.name,f)}function c(f,h){let g,p={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Hs(Sn.MATCHER_NOT_FOUND,{location:f});m=g.record.name,p=en(b4(h.params,g.keys.filter(w=>!w.optional).concat(g.parent?g.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&b4(f.params,g.keys.map(w=>w.name))),v=g.stringify(p)}else if(f.path!=null)v=f.path,g=n.find(w=>w.re.test(v)),g&&(p=g.parse(v),m=g.record.name);else{if(g=h.name?a.get(h.name):n.find(w=>w.re.test(h.path)),!g)throw Hs(Sn.MATCHER_NOT_FOUND,{location:f,currentLocation:h});m=g.record.name,p=en({},h.params,f.params),v=g.stringify(p)}const y=[];let b=g;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:v,params:p,matched:y,meta:bue(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function b4(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function w4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function C4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bue(e){return e.reduce((t,n)=>en(t,n.meta),{})}function wue(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;g9(e,t[l])<0?a=l:n=l+1}const o=Cue(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Cue(e){let t=e;for(;t=t.parent;)if(y9(t)&&g9(e,t)===0)return t}function y9({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _4(e){const t=Pe(kf),n=Pe(xv),a=x(()=>{const u=i(e.to);return t.resolve(u)}),o=x(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(Ds.bind(null,d));if(h>-1)return h;const g=S4(u[c-2]);return c>1&&S4(d)===g&&f[f.length-1].path!==g?f.findIndex(Ds.bind(null,u[c-2])):h}),l=x(()=>o.value>-1&&Eue(n.params,a.value.params)),r=x(()=>o.value>-1&&o.value===n.matched.length-1&&p9(n.params,a.value.params));function s(u={}){if(kue(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Vi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:l,isExactActive:r,navigate:s}}function _ue(e){return e.length===1?e[0]:e}const Sue=D({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:_4,setup(e,{slots:t}){const n=Nt(_4(e)),{options:a}=Pe(kf),o=x(()=>({[x4(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[x4(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&_ue(t.default(n));return e.custom?l:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),xue=Sue;function kue(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Eue(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!ro(o)||o.length!==a.length||a.some((l,r)=>l.valueOf()!==o[r].valueOf()))return!1}return!0}function S4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const x4=(e,t,n)=>e??t??n,Tue=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Pe(op),o=x(()=>e.route||a.value),l=Pe(v4,0),r=x(()=>{let c=i(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),s=x(()=>o.value.matched[r.value]);wt(v4,x(()=>r.value+1)),wt(nue,s),wt(op,o);const u=V();return fe(()=>[u.value,s.value,e.name],([c,d,f],[h,g,p])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!Ds(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=s.value,h=f&&f.components[d];if(!h)return k4(n.default,{Component:h,route:c});const g=f.props[d],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=Ye(h,en({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return k4(n.default,{Component:m,route:c})||m}}});function k4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mue=Tue;function Oue(e){const t=gue(e.routes,e),n=e.parseQuery||eue,a=e.stringifyQuery||h4,o=e.history,l=hi(),r=hi(),s=hi(),u=qt(Tl);let c=Tl;ss&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=T0.bind(null,ne=>""+ne),f=T0.bind(null,Vie),h=T0.bind(null,fu);function g(ne,de){let se,Y;return h9(ne)?(se=t.getRecordMatcher(ne),Y=de):Y=ne,t.addRoute(Y,se)}function p(ne){const de=t.getRecordMatcher(ne);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(ne=>ne.record)}function m(ne){return!!t.getRecordMatcher(ne)}function y(ne,de){if(de=en({},de||u.value),typeof ne=="string"){const le=M0(n,ne,de.path),ce=t.resolve({path:le.path},de),ge=o.createHref(le.fullPath);return en(le,ce,{params:h(ce.params),hash:fu(le.hash),redirectedFrom:void 0,href:ge})}let se;if(ne.path!=null)se=en({},ne,{path:M0(n,ne.path,de.path).path});else{const le=en({},ne.params);for(const ce in le)le[ce]==null&&delete le[ce];se=en({},ne,{params:f(le)}),de.params=f(de.params)}const Y=t.resolve(se,de),X=ne.hash||"";Y.params=d(h(Y.params));const H=Die(a,en({},ne,{hash:Pie(X),path:Y.path})),Z=o.createHref(H);return en({fullPath:H,hash:X,query:a===h4?tue(ne.query):ne.query||{}},Y,{redirectedFrom:void 0,href:Z})}function b(ne){return typeof ne=="string"?M0(n,ne,u.value.path):en({},ne)}function w(ne,de){if(c!==ne)return Hs(Sn.NAVIGATION_CANCELLED,{from:de,to:ne})}function C(ne){return T(ne)}function S(ne){return C(en(b(ne),{replace:!0}))}function k(ne,de){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:Y}=se;let X=typeof Y=="function"?Y(ne,de):Y;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),en({query:ne.query,hash:ne.hash,params:X.path!=null?{}:ne.params},X)}}function T(ne,de){const se=c=y(ne),Y=u.value,X=ne.state,H=ne.force,Z=ne.replace===!0,le=k(se,Y);if(le)return T(en(b(le),{state:typeof le=="object"?en({},X,le.state):X,force:H,replace:Z}),de||se);const ce=se;ce.redirectedFrom=de;let ge;return!H&&Hie(a,Y,se)&&(ge=Hs(Sn.NAVIGATION_DUPLICATED,{to:ce,from:Y}),K(Y,Y,!0,!1)),(ge?Promise.resolve(ge):O(ce,Y)).catch(me=>qo(me)?qo(me,Sn.NAVIGATION_GUARD_REDIRECT)?me:W(me):P(me,ce,Y)).then(me=>{if(me){if(qo(me,Sn.NAVIGATION_GUARD_REDIRECT))return T(en({replace:Z},b(me.to),{state:typeof me.to=="object"?en({},X,me.to.state):X,force:H}),de||ce)}else me=L(ce,Y,!0,Z,X);return I(ce,Y,me),me})}function M(ne,de){const se=w(ne,de);return se?Promise.reject(se):Promise.resolve()}function A(ne){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ne):ne()}function O(ne,de){let se;const[Y,X,H]=aue(ne,de);se=$0(Y.reverse(),"beforeRouteLeave",ne,de);for(const le of Y)le.leaveGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});const Z=M.bind(null,ne,de);return se.push(Z),ue(se).then(()=>{se=[];for(const le of l.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).then(()=>{se=$0(X,"beforeRouteUpdate",ne,de);for(const le of X)le.updateGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});return se.push(Z),ue(se)}).then(()=>{se=[];for(const le of H)if(le.beforeEnter)if(ro(le.beforeEnter))for(const ce of le.beforeEnter)se.push(Nl(ce,ne,de));else se.push(Nl(le.beforeEnter,ne,de));return se.push(Z),ue(se)}).then(()=>(ne.matched.forEach(le=>le.enterCallbacks={}),se=$0(H,"beforeRouteEnter",ne,de,A),se.push(Z),ue(se))).then(()=>{se=[];for(const le of r.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).catch(le=>qo(le,Sn.NAVIGATION_CANCELLED)?le:Promise.reject(le))}function I(ne,de,se){s.list().forEach(Y=>A(()=>Y(ne,de,se)))}function L(ne,de,se,Y,X){const H=w(ne,de);if(H)return H;const Z=de===Tl,le=ss?history.state:{};se&&(Y||Z?o.replace(ne.fullPath,en({scroll:Z&&le&&le.scroll},X)):o.push(ne.fullPath,X)),u.value=ne,K(ne,de,se,Z),W()}let z;function q(){z||(z=o.listen((ne,de,se)=>{if(!te.listening)return;const Y=y(ne),X=k(Y,te.currentRoute.value);if(X){T(en(X,{replace:!0,force:!0}),Y).catch(Vi);return}c=Y;const H=u.value;ss&&Gie(p4(H.fullPath,se.delta),xf()),O(Y,H).catch(Z=>qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_CANCELLED)?Z:qo(Z,Sn.NAVIGATION_GUARD_REDIRECT)?(T(en(b(Z.to),{force:!0}),Y).then(le=>{qo(le,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===np.pop&&o.go(-1,!1)}).catch(Vi),Promise.reject()):(se.delta&&o.go(-se.delta,!1),P(Z,Y,H))).then(Z=>{Z=Z||L(Y,H,!1),Z&&(se.delta&&!qo(Z,Sn.NAVIGATION_CANCELLED)?o.go(-se.delta,!1):se.type===np.pop&&qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),I(Y,H,Z)}).catch(Vi)}))}let U=hi(),F=hi(),N;function P(ne,de,se){W(ne);const Y=F.list();return Y.length?Y.forEach(X=>X(ne,de,se)):console.error(ne),Promise.reject(ne)}function B(){return N&&u.value!==Tl?Promise.resolve():new Promise((ne,de)=>{U.add([ne,de])})}function W(ne){return N||(N=!ne,q(),U.list().forEach(([de,se])=>ne?se(ne):de()),U.reset()),ne}function K(ne,de,se,Y){const{scrollBehavior:X}=e;if(!ss||!X)return Promise.resolve();const H=!se&&Xie(p4(ne.fullPath,0))||(Y||!se)&&history.state&&history.state.scroll||null;return Le().then(()=>X(ne,de,H)).then(Z=>Z&&Yie(Z)).catch(Z=>P(Z,ne,de))}const j=ne=>o.go(ne);let G;const ee=new Set,te={currentRoute:u,listening:!0,addRoute:g,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:y,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:r.add,afterEach:s.add,onError:F.add,isReady:B,install(ne){ne.component("RouterLink",xue),ne.component("RouterView",Mue),ne.config.globalProperties.$router=te,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),ss&&!G&&u.value===Tl&&(G=!0,C(o.location).catch(Y=>{}));const de={};for(const Y in Tl)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});ne.provide(kf,te),ne.provide(xv,Vd(de)),ne.provide(op,u);const se=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=Tl,z&&z(),z=null,u.value=Tl,G=!1,N=!1),se()}}};function ue(ne){return ne.reduce((de,se)=>de.then(()=>A(se)),Promise.resolve())}return te}function gde(){return Pe(kf)}function yde(e){return Pe(xv)}function b9(e,t){return function(){return e.apply(t,arguments)}}const{toString:$ue}=Object.prototype,{getPrototypeOf:Ef}=Object,{iterator:Tf,toStringTag:w9}=Symbol,Mf=(e=>t=>{const n=$ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mo=e=>(e=e.toLowerCase(),t=>Mf(t)===e),Of=e=>t=>typeof t===e,{isArray:ei}=Array,Fs=Of("undefined");function Wu(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&Ca(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const C9=mo("ArrayBuffer");function Aue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&C9(e.buffer),t}const Rue=Of("string"),Ca=Of("function"),_9=Of("number"),ju=e=>e!==null&&typeof e=="object",Nue=e=>e===!0||e===!1,Fc=e=>{if(Mf(e)!=="object")return!1;const t=Ef(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(w9 in e)&&!(Tf in e)},Pue=e=>{if(!ju(e)||Wu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Iue=mo("Date"),Lue=mo("File"),Vue=e=>!!(e&&typeof e.uri<"u"),Bue=e=>e&&typeof e.getParts<"u",zue=mo("Blob"),Due=mo("FileList"),Hue=e=>ju(e)&&Ca(e.pipe);function Fue(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const E4=Fue(),T4=typeof E4.FormData<"u"?E4.FormData:void 0,Kue=e=>{if(!e)return!1;if(T4&&e instanceof T4)return!0;const t=Ef(e);if(!t||t===Object.prototype||!Ca(e.append))return!1;const n=Mf(e);return n==="formdata"||n==="object"&&Ca(e.toString)&&e.toString()==="[object FormData]"},Wue=mo("URLSearchParams"),[jue,que,Uue,Yue]=["ReadableStream","Request","Response","Headers"].map(mo),Gue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),ei(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,x9=e=>!Fs(e)&&e!==wr;function lp(){const{caseless:e,skipUndefined:t}=x9(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const r=e&&S9(n,l)||l;Fc(n[r])&&Fc(o)?n[r]=lp(n[r],o):Fc(o)?n[r]=lp({},o):ei(o)?n[r]=o.slice():(!t||!Fs(o))&&(n[r]=o)};for(let o=0,l=arguments.length;o(qu(t,(o,l)=>{n&&Ca(o)?Object.defineProperty(e,l,{value:b9(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),Jue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zue=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Que=(e,t,n,a)=>{let o,l,r;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)r=o[l],(!a||a(r,e,t))&&!s[r]&&(t[r]=e[r],s[r]=!0);e=n!==!1&&Ef(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ece=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},tce=e=>{if(!e)return null;if(ei(e))return e;let t=e.length;if(!_9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ef(Uint8Array)),ace=(e,t)=>{const a=(e&&e[Tf]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},oce=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},lce=mo("HTMLFormElement"),rce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),M4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sce=mo("RegExp"),k9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};qu(n,(o,l)=>{let r;(r=t(o,l,e))!==!1&&(a[l]=r||o)}),Object.defineProperties(e,a)},ice=e=>{k9(e,(t,n)=>{if(Ca(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Ca(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uce=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return ei(e)?a(e):a(String(e).split(t)),n},cce=()=>{},dce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fce(e){return!!(e&&Ca(e.append)&&e[w9]==="FormData"&&e[Tf])}const pce=e=>{const t=new Array(10),n=(a,o)=>{if(ju(a)){if(t.indexOf(a)>=0)return;if(Wu(a))return a;if(!("toJSON"in a)){t[o]=a;const l=ei(a)?[]:{};return qu(a,(r,s)=>{const u=n(r,o+1);!Fs(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},hce=mo("AsyncFunction"),vce=e=>e&&(ju(e)||Ca(e))&&Ca(e.then)&&Ca(e.catch),E9=((e,t)=>e?setImmediate:t?((n,a)=>(wr.addEventListener("message",({source:o,data:l})=>{o===wr&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),wr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ca(wr.postMessage)),mce=typeof queueMicrotask<"u"?queueMicrotask.bind(wr):typeof process<"u"&&process.nextTick||E9,gce=e=>e!=null&&Ca(e[Tf]),Oe={isArray:ei,isArrayBuffer:C9,isBuffer:Wu,isFormData:Kue,isArrayBufferView:Aue,isString:Rue,isNumber:_9,isBoolean:Nue,isObject:ju,isPlainObject:Fc,isEmptyObject:Pue,isReadableStream:jue,isRequest:que,isResponse:Uue,isHeaders:Yue,isUndefined:Fs,isDate:Iue,isFile:Lue,isReactNativeBlob:Vue,isReactNative:Bue,isBlob:zue,isRegExp:sce,isFunction:Ca,isStream:Hue,isURLSearchParams:Wue,isTypedArray:nce,isFileList:Due,forEach:qu,merge:lp,extend:Xue,trim:Gue,stripBOM:Jue,inherits:Zue,toFlatObject:Que,kindOf:Mf,kindOfTest:mo,endsWith:ece,toArray:tce,forEachEntry:ace,matchAll:oce,isHTMLForm:lce,hasOwnProperty:M4,hasOwnProp:M4,reduceDescriptors:k9,freezeMethods:ice,toObjectSet:uce,toCamelCase:rce,noop:cce,toFiniteNumber:dce,findKey:S9,global:wr,isContextDefined:x9,isSpecCompliantForm:fce,toJSONObject:pce,isAsyncFn:hce,isThenable:vce,setImmediate:E9,asap:mce,isIterable:gce};let Ot=class T9 extends Error{static from(t,n,a,o,l,r){const s=new T9(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){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:Oe.toJSONObject(this.config),code:this.code,status:this.status}}};Ot.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ot.ERR_BAD_OPTION="ERR_BAD_OPTION";Ot.ECONNABORTED="ECONNABORTED";Ot.ETIMEDOUT="ETIMEDOUT";Ot.ERR_NETWORK="ERR_NETWORK";Ot.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ot.ERR_DEPRECATED="ERR_DEPRECATED";Ot.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ot.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ot.ERR_CANCELED="ERR_CANCELED";Ot.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ot.ERR_INVALID_URL="ERR_INVALID_URL";Ot.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const yce=null;function rp(e){return Oe.isPlainObject(e)||Oe.isArray(e)}function M9(e){return Oe.endsWith(e,"[]")?e.slice(0,-2):e}function A0(e,t,n){return e?e.concat(t).map(function(o,l){return o=M9(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function bce(e){return Oe.isArray(e)&&!e.some(rp)}const wce=Oe.toFlatObject(Oe,{},null,function(t){return/^is[A-Z]/.test(t)});function $f(e,t,n){if(!Oe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!Oe.isUndefined(y[m])});const a=n.metaTokens,o=n.visitor||f,l=n.dots,r=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,c=s&&Oe.isSpecCompliantForm(t);if(!Oe.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(Oe.isDate(v))return v.toISOString();if(Oe.isBoolean(v))return v.toString();if(!c&&Oe.isBlob(v))throw new Ot("Blob is not supported. Use a Buffer instead.");return Oe.isArrayBuffer(v)||Oe.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,y){let b=v;if(Oe.isReactNative(t)&&Oe.isReactNativeBlob(v))return t.append(A0(y,m,l),d(v)),!1;if(v&&!y&&typeof v=="object"){if(Oe.endsWith(m,"{}"))m=a?m:m.slice(0,-2),v=JSON.stringify(v);else if(Oe.isArray(v)&&bce(v)||(Oe.isFileList(v)||Oe.endsWith(m,"[]"))&&(b=Oe.toArray(v)))return m=M9(m),b.forEach(function(C,S){!(Oe.isUndefined(C)||C===null)&&t.append(r===!0?A0([m],S,l):r===null?m:m+"[]",d(C))}),!1}return rp(v)?!0:(t.append(A0(y,m,l),d(v)),!1)}const h=[],g=Object.assign(wce,{defaultVisitor:f,convertValue:d,isVisitable:rp});function p(v,m,y=0){if(!Oe.isUndefined(v)){if(y>u)throw new Ot("Object is too deeply nested ("+y+" levels). Max depth: "+u,Ot.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(v),Oe.forEach(v,function(w,C){(!(Oe.isUndefined(w)||w===null)&&o.call(t,w,Oe.isString(C)?C.trim():C,m,g))===!0&&p(w,m?m.concat(C):[C],y+1)}),h.pop()}}if(!Oe.isObject(e))throw new TypeError("data must be an object");return p(e),t}function O4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return t[a]})}function kv(e,t){this._pairs=[],e&&$f(e,this,t)}const O9=kv.prototype;O9.append=function(t,n){this._pairs.push([t,n])};O9.toString=function(t){const n=t?function(a){return t.call(this,a,O4)}:O4;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $9(e,t,n){if(!t)return e;const a=n&&n.encode||Cce,o=Oe.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let r;if(l?r=l(t,o):r=Oe.isURLSearchParams(t)?t.toString():new kv(t,o).toString(a),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class $4{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Oe.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Ev={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_ce=typeof URLSearchParams<"u"?URLSearchParams:kv,Sce=typeof FormData<"u"?FormData:null,xce=typeof Blob<"u"?Blob:null,kce={isBrowser:!0,classes:{URLSearchParams:_ce,FormData:Sce,Blob:xce},protocols:["http","https","file","blob","url","data"]},Tv=typeof window<"u"&&typeof document<"u",sp=typeof navigator=="object"&&navigator||void 0,Ece=Tv&&(!sp||["ReactNative","NativeScript","NS"].indexOf(sp.product)<0),Tce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mce=Tv&&window.location.href||"http://localhost",Oce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tv,hasStandardBrowserEnv:Ece,hasStandardBrowserWebWorkerEnv:Tce,navigator:sp,origin:Mce},Symbol.toStringTag,{value:"Module"})),na={...Oce,...kce};function $ce(e,t){return $f(e,new na.classes.URLSearchParams,{visitor:function(n,a,o,l){return na.isNode&&Oe.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Ace(e){return Oe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rce(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a=n.length;return r=!r&&Oe.isArray(o)?o.length:r,u?(Oe.hasOwnProp(o,r)?o[r]=Oe.isArray(o[r])?o[r].concat(a):[o[r],a]:o[r]=a,!s):((!o[r]||!Oe.isObject(o[r]))&&(o[r]=[]),t(n,a,o[r],l)&&Oe.isArray(o[r])&&(o[r]=Rce(o[r])),!s)}if(Oe.isFormData(e)&&Oe.isFunction(e.entries)){const n={};return Oe.forEachEntry(e,(a,o)=>{t(Ace(a),o,n,0)}),n}return null}const ns=(e,t)=>e!=null&&Oe.hasOwnProp(e,t)?e[t]:void 0;function Nce(e,t,n){if(Oe.isString(e))try{return(t||JSON.parse)(e),Oe.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const Uu={transitional:Ev,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=Oe.isObject(t);if(l&&Oe.isHTMLForm(t)&&(t=new FormData(t)),Oe.isFormData(t))return o?JSON.stringify(A9(t)):t;if(Oe.isArrayBuffer(t)||Oe.isBuffer(t)||Oe.isStream(t)||Oe.isFile(t)||Oe.isBlob(t)||Oe.isReadableStream(t))return t;if(Oe.isArrayBufferView(t))return t.buffer;if(Oe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){const u=ns(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return $ce(t,u).toString();if((s=Oe.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=ns(this,"env"),d=c&&c.FormData;return $f(s?{"files[]":t}:t,d&&new d,u)}}return l||o?(n.setContentType("application/json",!1),Nce(t)):t}],transformResponse:[function(t){const n=ns(this,"transitional")||Uu.transitional,a=n&&n.forcedJSONParsing,o=ns(this,"responseType"),l=o==="json";if(Oe.isResponse(t)||Oe.isReadableStream(t))return t;if(t&&Oe.isString(t)&&(a&&!o||l)){const s=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,ns(this,"parseReviver"))}catch(u){if(s)throw u.name==="SyntaxError"?Ot.from(u,Ot.ERR_BAD_RESPONSE,this,null,ns(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Oe.forEach(["delete","get","head","post","put","patch"],e=>{Uu.headers[e]={}});const Pce=Oe.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"]),Ice=e=>{const t={};let n,a,o;return e&&e.split(` +`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&Pce[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},A4=Symbol("internals"),Lce=/[^\x09\x20-\x7E\x80-\xFF]/g;function Vce(e){let t=0,n=e.length;for(;tt;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function vi(e){return e&&String(e).trim().toLowerCase()}function Bce(e){return Vce(e.replace(Lce,""))}function Kc(e){return e===!1||e==null?e:Oe.isArray(e)?e.map(Kc):Bce(String(e))}function zce(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const Dce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R0(e,t,n,a,o){if(Oe.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!Oe.isString(t)){if(Oe.isString(a))return t.indexOf(a)!==-1;if(Oe.isRegExp(a))return a.test(t)}}function Hce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Fce(e,t){const n=Oe.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let _a=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=vi(u);if(!d)throw new Error("header name must be a non-empty string");const f=Oe.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Kc(s))}const r=(s,u)=>Oe.forEach(s,(c,d)=>l(c,d,u));if(Oe.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(Oe.isString(t)&&(t=t.trim())&&!Dce(t))r(Ice(t),n);else if(Oe.isObject(t)&&Oe.isIterable(t)){let s={},u,c;for(const d of t){if(!Oe.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(u=s[c])?Oe.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=vi(t),t){const a=Oe.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return zce(o);if(Oe.isFunction(n))return n.call(this,o,a);if(Oe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vi(t),t){const a=Oe.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||R0(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=vi(r),r){const s=Oe.findKey(a,r);s&&(!n||R0(a,a[s],s,n))&&(delete a[s],o=!0)}}return Oe.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||R0(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return Oe.forEach(this,(o,l)=>{const r=Oe.findKey(a,l);if(r){n[r]=Kc(o),delete n[l];return}const s=t?Hce(l):String(l).trim();s!==l&&delete n[l],n[s]=Kc(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Oe.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&Oe.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[A4]=this[A4]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=vi(r);a[s]||(Fce(o,r),a[s]=!0)}return Oe.isArray(t)?t.forEach(l):l(t),this}};_a.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Oe.reduceDescriptors(_a.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});Oe.freezeMethods(_a);function N0(e,t){const n=this||Uu,a=t||n,o=_a.from(a.headers);let l=a.data;return Oe.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function R9(e){return!!(e&&e.__CANCEL__)}let Yu=class extends Ot{constructor(t,n,a){super(t??"canceled",Ot.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function N9(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Kce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wce(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[l];r||(r=c),n[o]=u,a[o]=c;let f=l,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),c-r{n=d,o=null,l&&(clearTimeout(l),l=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?r(c,d):(o=c,l||(l=setTimeout(()=>{l=null,r(o)},a-f)))},()=>o&&r(o)]}const Od=(e,t,n=3)=>{let a=0;const o=Wce(50,250);return jce(l=>{const r=l.loaded,s=l.lengthComputable?l.total:void 0,u=s!=null?Math.min(r,s):r,c=Math.max(0,u-a),d=o(c);a=Math.max(a,u);const f={loaded:u,total:s,progress:s?u/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-u)/d:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},R4=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},N4=e=>(...t)=>Oe.asap(()=>e(...t)),qce=na.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,na.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(na.origin),na.navigator&&/(msie|trident)/i.test(na.navigator.userAgent)):()=>!0,Uce=na.hasStandardBrowserEnv?{write(e,t,n,a,o,l,r){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Oe.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Oe.isString(a)&&s.push(`path=${a}`),Oe.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),Oe.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Yce(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gce(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function P9(e,t,n){let a=!Yce(t);return e&&(a||n===!1)?Gce(e,t):t}const P4=e=>e instanceof _a?{...e}:e;function Dr(e,t){t=t||{};const n={};function a(c,d,f,h){return Oe.isPlainObject(c)&&Oe.isPlainObject(d)?Oe.merge.call({caseless:h},c,d):Oe.isPlainObject(d)?Oe.merge({},d):Oe.isArray(d)?d.slice():d}function o(c,d,f,h){if(Oe.isUndefined(d)){if(!Oe.isUndefined(c))return a(void 0,c,f,h)}else return a(c,d,f,h)}function l(c,d){if(!Oe.isUndefined(d))return a(void 0,d)}function r(c,d){if(Oe.isUndefined(d)){if(!Oe.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,f){if(Oe.hasOwnProp(t,f))return a(c,d);if(Oe.hasOwnProp(e,f))return a(void 0,c)}const u={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(c,d,f)=>o(P4(c),P4(d),f,!0)};return Oe.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Oe.hasOwnProp(u,d)?u[d]:o,h=Oe.hasOwnProp(e,d)?e[d]:void 0,g=Oe.hasOwnProp(t,d)?t[d]:void 0,p=f(h,g,d);Oe.isUndefined(p)&&f!==s||(n[d]=p)}),n}const I9=e=>{const t=Dr({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:r,auth:s}=t;if(t.headers=r=_a.from(r),t.url=$9(P9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Oe.isFormData(n)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Oe.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(na.hasStandardBrowserEnv&&(Oe.isFunction(a)&&(a=a(t)),a===!0||a==null&&qce(t.url))){const c=o&&l&&Uce.read(l);c&&r.set(o,c)}return t},Xce=typeof XMLHttpRequest<"u",Jce=Xce&&function(e){return new Promise(function(n,a){const o=I9(e);let l=o.data;const r=_a.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=o,d,f,h,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const w=_a.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};N9(function(T){n(T),v()},function(T){a(T),v()},S),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new Ot("Request aborted",Ot.ECONNABORTED,e,m)),m=null)},m.onerror=function(C){const S=C&&C.message?C.message:"Network Error",k=new Ot(S,Ot.ERR_NETWORK,e,m);k.event=C||null,a(k),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Ev;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),a(new Ot(C,S.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,e,m)),m=null},l===void 0&&r.setContentType(null),"setRequestHeader"in m&&Oe.forEach(r.toJSON(),function(C,S){m.setRequestHeader(S,C)}),Oe.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),c&&([h,p]=Od(c,!0),m.addEventListener("progress",h)),u&&m.upload&&([f,g]=Od(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=w=>{m&&(a(!w||w.type?new Yu(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const b=Kce(o.url);if(b&&na.protocols.indexOf(b)===-1){a(new Ot("Unsupported protocol "+b+":",Ot.ERR_BAD_REQUEST,e));return}m.send(l||null)})},Zce=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(c){if(!o){o=!0,s();const d=c instanceof Error?c:this.reason;a.abort(d instanceof Ot?d:new Yu(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,l(new Ot(`timeout of ${t}ms exceeded`,Ot.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>Oe.asap(s),u}},Qce=function*(e,t){let n=e.byteLength;if(n{const o=ede(e,t);let l=0,r,s=u=>{r||(r=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){s(),u.close();return}let f=d.byteLength;if(n){let h=l+=f;n(h)}u.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},L4=64*1024,{isFunction:wc}=Oe,nde=(({Request:e,Response:t})=>({Request:e,Response:t}))(Oe.global),{ReadableStream:V4,TextEncoder:B4}=Oe.global,z4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ade=e=>{e=Oe.merge.call({skipUndefined:!0},nde,e);const{fetch:t,Request:n,Response:a}=e,o=t?wc(t):typeof fetch=="function",l=wc(n),r=wc(a);if(!o)return!1;const s=o&&wc(V4),u=o&&(typeof B4=="function"?(p=>v=>p.encode(v))(new B4):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=l&&s&&z4(()=>{let p=!1;const v=new n(na.origin,{body:new V4,method:"POST",get duplex(){return p=!0,"half"}}),m=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),p&&!m}),d=r&&s&&z4(()=>Oe.isReadableStream(new a("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(v,m)=>{let y=v&&v[p];if(y)return y.call(v);throw new Ot(`Response type '${p}' is not supported`,Ot.ERR_NOT_SUPPORT,m)})});const h=async p=>{if(p==null)return 0;if(Oe.isBlob(p))return p.size;if(Oe.isSpecCompliantForm(p))return(await new n(na.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Oe.isArrayBufferView(p)||Oe.isArrayBuffer(p))return p.byteLength;if(Oe.isURLSearchParams(p)&&(p=p+""),Oe.isString(p))return(await u(p)).byteLength},g=async(p,v)=>{const m=Oe.toFiniteNumber(p.getContentLength());return m??h(v)};return async p=>{let{url:v,method:m,data:y,signal:b,cancelToken:w,timeout:C,onDownloadProgress:S,onUploadProgress:k,responseType:T,headers:M,withCredentials:A="same-origin",fetchOptions:O}=I9(p),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=Zce([b,w&&w.toAbortSignal()],C),z=null;const q=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let U;try{if(k&&c&&m!=="get"&&m!=="head"&&(U=await g(M,y))!==0){let K=new n(v,{method:"POST",body:y,duplex:"half"}),j;if(Oe.isFormData(y)&&(j=K.headers.get("content-type"))&&M.setContentType(j),K.body){const[G,ee]=R4(U,Od(N4(k)));y=I4(K.body,L4,G,ee)}}Oe.isString(A)||(A=A?"include":"omit");const F=l&&"credentials"in n.prototype;if(Oe.isFormData(y)){const K=M.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&M.delete("content-type")}const N={...O,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:F?A:void 0};z=l&&new n(v,N);let P=await(l?I(z,O):I(v,N));const B=d&&(T==="stream"||T==="response");if(d&&(S||B&&q)){const K={};["status","statusText","headers"].forEach(te=>{K[te]=P[te]});const j=Oe.toFiniteNumber(P.headers.get("content-length")),[G,ee]=S&&R4(j,Od(N4(S),!0))||[];P=new a(I4(P.body,L4,G,()=>{ee&&ee(),q&&q()}),K)}T=T||"text";let W=await f[Oe.findKey(f,T)||"text"](P,p);return!B&&q&&q(),await new Promise((K,j)=>{N9(K,j,{data:W,headers:_a.from(P.headers),status:P.status,statusText:P.statusText,config:p,request:z})})}catch(F){throw q&&q(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,p,z,F&&F.response),{cause:F.cause||F}):Ot.from(F,F&&F.code,p,z,F&&F.response)}}},ode=new Map,L9=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let r=l.length,s=r,u,c,d=ode;for(;s--;)u=l[s],c=d.get(u),c===void 0&&d.set(u,c=s?new Map:ade(t)),d=c;return c};L9();const Mv={http:yce,xhr:Jce,fetch:{get:L9}};Oe.forEach(Mv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const D4=e=>`- ${e}`,lde=e=>Oe.isFunction(e)||e===null||e===!1;function rde(e,t){e=Oe.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?r.length>1?`since : +`+r.map(D4).join(` +`):" "+D4(r[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const V9={getAdapter:rde,adapters:Mv};function P0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yu(null,e)}function H4(e){return P0(e),e.headers=_a.from(e.headers),e.data=N0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),V9.getAdapter(e.adapter||Uu.adapter,e)(e).then(function(a){return P0(e),a.data=N0.call(e,e.transformResponse,a),a.headers=_a.from(a.headers),a},function(a){return R9(a)||(P0(e),a&&a.response&&(a.response.data=N0.call(e,e.transformResponse,a.response),a.response.headers=_a.from(a.response.headers))),Promise.reject(a)})}const B9="1.15.1",Af={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Af[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const F4={};Af.transitional=function(t,n,a){function o(l,r){return"[Axios v"+B9+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new Ot(o(r," has been removed"+(n?" in "+n:"")),Ot.ERR_DEPRECATED);return n&&!F4[r]&&(F4[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};Af.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function sde(e,t,n){if(typeof e!="object")throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=t[l];if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new Ot("option "+l+" must be "+u,Ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ot("Unknown option "+l,Ot.ERR_BAD_OPTION)}}const Wc={assertOptions:sde,validators:Af},La=Wc.validators;let Er=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $4,response:new $4}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` `);return r===-1?"":o.stack.slice(r+1)})();try{if(!a.stack)a.stack=l;else if(l){const r=l.indexOf(` `),s=r===-1?-1:l.indexOf(` `,r+1),u=s===-1?"":l.slice(s+1);String(a.stack).endsWith(u)||(a.stack+=` -`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zr(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Kc.assertOptions(a,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean),legacyInterceptorReqResOrdering:La.transitional(La.boolean)},!1),o!=null&&($e.isFunction(o)?n.paramsSerializer={serialize:o}:Kc.assertOptions(o,{encode:La.function,serialize:La.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Kc.assertOptions(n,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&$e.merge(l.common,l[n.method]);l&&$e.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=_a.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||kv;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!u){const p=[D4.bind(this),void 0];for(p.unshift(...s),p.push(...c),h=p.length,d=Promise.resolve(n);f{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Uu(l,r,s),n(a.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)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new z9(function(o){t=o}),cancel:t}}};function ide(e){return function(n){return e.apply(null,n)}}function ude(e){return $e.isObject(e)&&e.isAxiosError===!0}const rp={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rp).forEach(([e,t])=>{rp[t]=e});function D9(e){const t=new kr(e),n=y9(kr.prototype.request,t);return $e.extend(n,kr.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return D9(zr(e,o))},n}const Tn=D9(qu);Tn.Axios=kr;Tn.CanceledError=Uu;Tn.CancelToken=sde;Tn.isCancel=R9;Tn.VERSION=B9;Tn.toFormData=Mf;Tn.AxiosError=Nt;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=ide;Tn.isAxiosError=ude;Tn.mergeConfig=zr;Tn.AxiosHeaders=_a;Tn.formToJSON=e=>$9($e.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=V9.getAdapter;Tn.HttpStatusCode=rp;Tn.default=Tn;const{Axios:Cde,AxiosError:_de,CanceledError:Sde,isCancel:xde,CancelToken:kde,VERSION:Ede,all:Tde,Cancel:Mde,isAxiosError:Ode,spread:$de,toFormData:Ade,AxiosHeaders:Rde,HttpStatusCode:Nde,formToJSON:Pde,getAdapter:Ide,mergeConfig:Lde}=Tn,yn=Tn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});yn.interceptors.response.use(e=>e,e=>{var n,a,o;const t=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message||"请求失败";return((o=e.response)==null?void 0:o.status)===401?(pde(),window.location.href="/login",Promise.reject(e)):(o9.error(t),Promise.reject(e))});let cde=1e4;const dde=()=>yn.get("/auth/me").then(e=>(e.data&&typeof e.data.ui_refresh_interval=="number"&&(cde=e.data.ui_refresh_interval),e)),Vde=e=>yn.post("/auth/login",e),Bde=()=>yn.post("/auth/guest"),zde=()=>yn.post("/auth/logout"),Dde=e=>yn.get("/machines",{params:e}),Hde=e=>yn.get(`/machines/${e}`),Fde=e=>yn.post("/machines",e),Kde=(e,t)=>yn.put(`/machines/${e}`,t),Wde=e=>yn.delete(`/machines/${e}`),jde=(e,t)=>yn.post(`/machines/${e}/ssh-info`,t),qde=(e,t)=>yn.post(`/machines/${e}/sync-ssh`,t),Ude=e=>yn.get(`/machines/${e}/offline-logs`),Yde=e=>yn.get(`/machines/${e}/services`),Gde=()=>yn.get("/services"),Xde=(e,t)=>yn.post(`/machines/${e}/services`,t),Jde=(e,t)=>yn.put(`/services/${e}`,t),Zde=e=>yn.delete(`/services/${e}`),Qde=()=>yn.get("/relationships"),efe=e=>yn.post("/relationships",e),tfe=(e,t)=>yn.put(`/relationships/${e}`,t),nfe=e=>yn.delete(`/relationships/${e}`),afe=e=>yn.get("/logs",{params:e}),ofe=()=>yn.get("/export",{responseType:"blob"}),lfe=e=>yn.post("/import",e,{headers:{"Content-Type":"multipart/form-data"}}),fde=[{path:"/login",name:"Login",component:()=>ts(()=>import("./Login-CyUiDLKS.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guestOnly:!0}},{path:"/",component:()=>ts(()=>import("./MainLayout-CsFkTHMI.js"),__vite__mapDeps([3,1,4])),children:[{path:"",redirect:"/machines"},{path:"machines",name:"MachineList",component:()=>ts(()=>import("./MachineList-B0yEQVq5.js"),__vite__mapDeps([5,1,6])),meta:{public:!0}},{path:"machines/:id",name:"MachineDetail",component:()=>ts(()=>import("./MachineDetail-Du94nURq.js"),__vite__mapDeps([7,1,8])),meta:{public:!0}},{path:"topology",name:"Topology",component:()=>ts(()=>import("./Topology-BJXdT35q.js"),__vite__mapDeps([9,1,10])),meta:{admin:!0}},{path:"logs",name:"Logs",component:()=>ts(()=>import("./Logs-D4rB2TEm.js"),__vite__mapDeps([11,1,12])),meta:{admin:!0}}]}],H9=Oue({history:sue(),routes:fde});let sp=!1,dr={is_admin:!1};H9.beforeEach(async(e,t,n)=>{if(!sp){try{const{data:a}=await dde();dr=a}catch{dr={is_admin:!1}}sp=!0}if(e.name==="MachineDetail"&&!dr.is_admin)return n("/machines");if(e.meta.admin&&!dr.is_admin)return n("/login?redirect="+encodeURIComponent(e.fullPath));if(e.meta.guestOnly&&dr.is_admin)return n("/");n()});function pde(){sp=!1}function rfe(e){dr=e}function sfe(){return dr}const $f=m6(Cie);for(const[e,t]of Object.entries(eH))$f.component(e,t);$f.use(wie);$f.use(H9);$f.mount("#app");export{Qde as $,Az as A,UL as B,Vz as C,zde as D,o9 as E,sfe as F,pde as G,dde as H,cde as I,Fs as J,Dde as K,vh as L,Ke as M,_t as N,lfe as O,Ey as P,qe as Q,Kde as R,Fde as S,ofe as T,Hde as U,Yde as V,nP as W,vy as X,wB as Y,gde as Z,Ude as _,E as a,zo as a0,pV as a1,Gz as a2,MB as a3,Je as a4,oie as a5,Wde as a6,jde as a7,qde as a8,nfe as a9,Jde as aa,Xde as ab,tfe as ac,efe as ad,Zde as ae,vde as af,xl as ag,Sl as ah,Gde as ai,hde as aj,afe as ak,ft as al,Sp as am,Q as b,$ as c,Ot as d,i as e,kD as f,nn as g,St as h,Vde as i,Bde as j,gt as k,cL as l,ie as m,re as n,C as o,R as p,x as q,V as r,rfe as s,Se as t,mde as u,KL as v,ae as w,YB as x,my as y,dt as z}; +`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dr(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Wc.assertOptions(a,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean),legacyInterceptorReqResOrdering:La.transitional(La.boolean)},!1),o!=null&&(Oe.isFunction(o)?n.paramsSerializer={serialize:o}:Wc.assertOptions(o,{encode:La.function,serialize:La.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Wc.assertOptions(n,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&Oe.merge(l.common,l[n.method]);l&&Oe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=_a.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||Ev;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!u){const p=[H4.bind(this),void 0];for(p.unshift(...s),p.push(...c),h=p.length,d=Promise.resolve(n);f{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Yu(l,r,s),n(a.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)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new z9(function(o){t=o}),cancel:t}}};function ude(e){return function(n){return e.apply(null,n)}}function cde(e){return Oe.isObject(e)&&e.isAxiosError===!0}const ip={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ip).forEach(([e,t])=>{ip[t]=e});function D9(e){const t=new Er(e),n=b9(Er.prototype.request,t);return Oe.extend(n,Er.prototype,t,{allOwnKeys:!0}),Oe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return D9(Dr(e,o))},n}const Tn=D9(Uu);Tn.Axios=Er;Tn.CanceledError=Yu;Tn.CancelToken=ide;Tn.isCancel=R9;Tn.VERSION=B9;Tn.toFormData=$f;Tn.AxiosError=Ot;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=ude;Tn.isAxiosError=cde;Tn.mergeConfig=Dr;Tn.AxiosHeaders=_a;Tn.formToJSON=e=>A9(Oe.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=V9.getAdapter;Tn.HttpStatusCode=ip;Tn.default=Tn;const{Axios:_de,AxiosError:Sde,CanceledError:xde,isCancel:kde,CancelToken:Ede,VERSION:Tde,all:Mde,Cancel:Ode,isAxiosError:$de,spread:Ade,toFormData:Rde,AxiosHeaders:Nde,HttpStatusCode:Pde,formToJSON:Ide,getAdapter:Lde,mergeConfig:Vde}=Tn,Qt=Tn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});Qt.interceptors.response.use(e=>e,e=>{var n,a,o;const t=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message||"请求失败";return((o=e.response)==null?void 0:o.status)===401?(hde(),window.location.href="/login",Promise.reject(e)):(l9.error(t),Promise.reject(e))});let dde=1e4;const fde=()=>Qt.get("/auth/me").then(e=>(e.data&&typeof e.data.ui_refresh_interval=="number"&&(dde=e.data.ui_refresh_interval),e)),Bde=e=>Qt.post("/auth/login",e),zde=()=>Qt.post("/auth/guest"),Dde=()=>Qt.post("/auth/logout"),Hde=e=>Qt.get("/machines",{params:e}),Fde=e=>Qt.get(`/machines/${e}`),Kde=e=>Qt.post("/machines",e),Wde=(e,t)=>Qt.put(`/machines/${e}`,t),jde=e=>Qt.delete(`/machines/${e}`),qde=(e,t)=>Qt.post(`/machines/${e}/ssh-info`,t),Ude=(e,t)=>Qt.post(`/machines/${e}/sync-ssh`,t),Yde=e=>Qt.get(`/machines/${e}/offline-logs`),Gde=e=>Qt.get(`/machines/${e}/services`),Xde=()=>Qt.get("/services"),Jde=(e,t)=>Qt.post(`/machines/${e}/services`,t),Zde=(e,t)=>Qt.put(`/services/${e}`,t),Qde=e=>Qt.delete(`/services/${e}`),efe=()=>Qt.get("/relationships"),tfe=e=>Qt.post("/relationships",e),nfe=(e,t)=>Qt.put(`/relationships/${e}`,t),afe=e=>Qt.delete(`/relationships/${e}`),ofe=e=>Qt.get("/logs",{params:e}),lfe=()=>Qt.get("/export",{responseType:"blob"}),rfe=e=>Qt.post("/import",e,{headers:{"Content-Type":"multipart/form-data"}}),sfe=()=>Qt.get("/pve/hosts"),ife=e=>Qt.post("/pve/hosts",e),ufe=(e,t)=>Qt.put(`/pve/hosts/${e}`,t),cfe=e=>Qt.delete(`/pve/hosts/${e}`),dfe=e=>Qt.post(`/machines/${e}/vm-start`),ffe=e=>Qt.post(`/machines/${e}/vm-stop`),pde=[{path:"/login",name:"Login",component:()=>or(()=>import("./Login-BYekGeRX.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guestOnly:!0}},{path:"/",component:()=>or(()=>import("./MainLayout-Cavyx6zq.js"),__vite__mapDeps([3,1,4])),children:[{path:"",redirect:"/machines"},{path:"machines",name:"MachineList",component:()=>or(()=>import("./MachineList-Dl6ycQW2.js"),__vite__mapDeps([5,1,6])),meta:{public:!0}},{path:"machines/:id",name:"MachineDetail",component:()=>or(()=>import("./MachineDetail-PZRasqha.js"),__vite__mapDeps([7,1,8])),meta:{public:!0}},{path:"topology",name:"Topology",component:()=>or(()=>import("./Topology-BoCWnE97.js"),__vite__mapDeps([9,1,10])),meta:{admin:!0}},{path:"logs",name:"Logs",component:()=>or(()=>import("./Logs-DuqLZVwE.js"),__vite__mapDeps([11,1,12])),meta:{admin:!0}},{path:"pve-hosts",name:"PVEHosts",component:()=>or(()=>import("./PVEHosts-Ch6D9CK9.js"),__vite__mapDeps([13,1,14])),meta:{admin:!0}}]}],H9=Oue({history:sue(),routes:pde});let up=!1,fr={is_admin:!1};H9.beforeEach(async(e,t,n)=>{if(!up){try{const{data:a}=await fde();fr=a}catch{fr={is_admin:!1}}up=!0}if(e.name==="MachineDetail"&&!fr.is_admin)return n("/machines");if(e.meta.admin&&!fr.is_admin)return n("/login?redirect="+encodeURIComponent(e.fullPath));if(e.meta.guestOnly&&fr.is_admin)return n("/");n()});function hde(){up=!1}function pfe(e){fr=e}function hfe(){return fr}const Rf=g6(Cie);for(const[e,t]of Object.entries(eH))Rf.component(e,t);Rf.use(wie);Rf.use(H9);Rf.mount("#app");export{my as $,dt as A,Az as B,UL as C,Vz as D,l9 as E,Dde as F,hfe as G,hde as H,fde as I,dde as J,Ks as K,Hde as L,gh as M,Ke as N,_t as O,rfe as P,sfe as Q,Ty as R,qe as S,Wde as T,Kde as U,lfe as V,Fde as W,Gde as X,ID as Y,ND as Z,nP as _,E as a,wB as a0,yde as a1,Yde as a2,efe as a3,zo as a4,Gz as a5,MB as a6,Je as a7,oie as a8,jde as a9,qde as aa,Ude as ab,afe as ac,Zde as ad,Jde as ae,nfe as af,tfe as ag,dfe as ah,ffe as ai,Qde as aj,mde as ak,xl as al,Sl as am,Xde as an,vde as ao,ofe as ap,ft as aq,kp as ar,cfe as as,ufe as at,ife as au,Q as b,$ as c,$t as d,i as e,kD as f,an as g,St as h,Bde as i,zde as j,gt as k,cL as l,ie as m,re as n,_ as o,R as p,x as q,V as r,pfe as s,Se as t,gde as u,KL as v,ae as w,YB as x,gy as y,cN as z}; diff --git a/web/dist/assets/index-Chagxl0Z.js b/web/dist/assets/index-Chagxl0Z.js deleted file mode 100644 index b82a71e..0000000 --- a/web/dist/assets/index-Chagxl0Z.js +++ /dev/null @@ -1,96 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-BsBJ5Qco.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Login-QAgKDetV.css","assets/MainLayout-BzeQKWOs.js","assets/MainLayout-CJz-pM3g.css","assets/MachineList-xoH6VyjV.js","assets/MachineList-CLf9FCFZ.css","assets/MachineDetail-EJEjie9p.js","assets/MachineDetail-dlU7SJns.css","assets/Topology-CVKO0hET.js","assets/Topology-DMH8-H8q.css","assets/Logs-dZIuK9lS.js","assets/Logs-DCJS9ser.css"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/** -* @vue/shared v3.5.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ip(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const un={},us=[],It=()=>{},F4=()=>!1,Od=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$d=e=>e.startsWith("onUpdate:"),Rn=Object.assign,up=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},j9=Object.prototype.hasOwnProperty,Mt=(e,t)=>j9.call(e,t),be=Array.isArray,cs=e=>fu(e)==="[object Map]",Ad=e=>fu(e)==="[object Set]",Fl=e=>fu(e)==="[object Date]",Fe=e=>typeof e=="function",Be=e=>typeof e=="string",Aa=e=>typeof e=="symbol",lt=e=>e!==null&&typeof e=="object",Kl=e=>(lt(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),K4=Object.prototype.toString,fu=e=>K4.call(e),q9=e=>fu(e).slice(8,-1),Vi=e=>fu(e)==="[object Object]",Rd=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ci=ip(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},U9=/-\w/g,Hn=Nd(e=>e.replace(U9,t=>t.slice(1).toUpperCase())),Y9=/\B([A-Z])/g,vl=Nd(e=>e.replace(Y9,"-$1").toLowerCase()),pu=Nd(e=>e.charAt(0).toUpperCase()+e.slice(1)),_i=Nd(e=>e?`on${pu(e)}`:""),ko=(e,t)=>!Object.is(e,t),wc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},cp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G9=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let Mv;const Pd=()=>Mv||(Mv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(be(e)){const t={};for(let n=0;n{if(n){const a=n.split(J9);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Be(e))t=e;else if(be(e))for(let n=0;nEr(n,t))}const U4=e=>!!(e&&e.__v_isRef===!0),Se=e=>Be(e)?e:e==null?"":be(e)||lt(e)&&(e.toString===K4||!Fe(e.toString))?U4(e)?Se(e.value):JSON.stringify(e,Y4,2):String(e),Y4=(e,t)=>U4(t)?Y4(e,t.value):cs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Lf(a,l)+" =>"]=o,n),{})}:Ad(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lf(n))}:Aa(t)?Lf(t):lt(t)&&!be(t)&&!Vi(t)?String(t):t,Lf=(e,t="")=>{var n;return Aa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Jn;class G4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Jn,!t&&Jn&&(this.index=(Jn.scopes||(Jn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Jn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(xi){let t=xi;for(xi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Si;){let t=Si;for(Si=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function t3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function n3(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),pp(a),oC(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function N0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bi)||(e.globalVersion=Bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!N0(e))))return;e.flags|=2;const t=e.dep,n=pn,a=Ya;pn=e,Ya=!0;try{t3(e);const o=e.fn(e._value);(t.version===0||ko(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{pn=n,Ya=a,n3(e),e.flags&=-3}}function pp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)pp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ya=!0;const o3=[];function rl(){o3.push(Ya),Ya=!1}function sl(){const e=o3.pop();Ya=e===void 0?!0:e}function Ov(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pn;pn=void 0;try{t()}finally{pn=n}}}let Bi=0;class lC{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hp{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!pn||!Ya||pn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pn)n=this.activeLink=new lC(pn,this),pn.deps?(n.prevDep=pn.depsTail,pn.depsTail.nextDep=n,pn.depsTail=n):pn.deps=pn.depsTail=n,l3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=pn.depsTail,n.nextDep=void 0,pn.depsTail.nextDep=n,pn.depsTail=n,pn.deps===n&&(pn.deps=a)}return n}trigger(t){this.version++,Bi++,this.notify(t)}notify(t){dp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fp()}}}function l3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)l3(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Wc=new WeakMap,wr=Symbol(""),P0=Symbol(""),zi=Symbol("");function Qn(e,t,n){if(Ya&&pn){let a=Wc.get(e);a||Wc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new hp),o.map=a,o.key=n),o.track()}}function Xo(e,t,n,a,o,l){const r=Wc.get(e);if(!r){Bi++;return}const s=u=>{u&&u.trigger()};if(dp(),t==="clear")r.forEach(s);else{const u=be(e),c=u&&Rd(n);if(u&&n==="length"){const d=Number(a);r.forEach((f,h)=>{(h==="length"||h===zi||!Aa(h)&&h>=d)&&s(f)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),c&&s(r.get(zi)),t){case"add":u?c&&s(r.get("length")):(s(r.get(wr)),cs(e)&&s(r.get(P0)));break;case"delete":u||(s(r.get(wr)),cs(e)&&s(r.get(P0)));break;case"set":cs(e)&&s(r.get(wr));break}}fp()}function rC(e,t){const n=Wc.get(e);return n&&n.get(t)}function Ur(e){const t=jt(e);return t===e?t:(Qn(t,"iterate",zi),Oa(e)?t:t.map(Za))}function Id(e){return Qn(e=jt(e),"iterate",zi),e}function So(e,t){return il(e)?Cs(Cr(e)?Za(t):t):Za(t)}const sC={__proto__:null,[Symbol.iterator](){return Bf(this,Symbol.iterator,e=>So(this,e))},concat(...e){return Ur(this).concat(...e.map(t=>be(t)?Ur(t):t))},entries(){return Bf(this,"entries",e=>(e[1]=So(this,e[1]),e))},every(e,t){return jo(this,"every",e,t,void 0,arguments)},filter(e,t){return jo(this,"filter",e,t,n=>n.map(a=>So(this,a)),arguments)},find(e,t){return jo(this,"find",e,t,n=>So(this,n),arguments)},findIndex(e,t){return jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jo(this,"findLast",e,t,n=>So(this,n),arguments)},findLastIndex(e,t){return jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return zf(this,"includes",e)},indexOf(...e){return zf(this,"indexOf",e)},join(e){return Ur(this).join(e)},lastIndexOf(...e){return zf(this,"lastIndexOf",e)},map(e,t){return jo(this,"map",e,t,void 0,arguments)},pop(){return ai(this,"pop")},push(...e){return ai(this,"push",e)},reduce(e,...t){return $v(this,"reduce",e,t)},reduceRight(e,...t){return $v(this,"reduceRight",e,t)},shift(){return ai(this,"shift")},some(e,t){return jo(this,"some",e,t,void 0,arguments)},splice(...e){return ai(this,"splice",e)},toReversed(){return Ur(this).toReversed()},toSorted(e){return Ur(this).toSorted(e)},toSpliced(...e){return Ur(this).toSpliced(...e)},unshift(...e){return ai(this,"unshift",e)},values(){return Bf(this,"values",e=>So(this,e))}};function Bf(e,t,n){const a=Id(e),o=a[t]();return a!==e&&!Oa(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const iC=Array.prototype;function jo(e,t,n,a,o,l){const r=Id(e),s=r!==e&&!Oa(e),u=r[t];if(u!==iC[t]){const f=u.apply(e,l);return s?Za(f):f}let c=n;r!==e&&(s?c=function(f,h){return n.call(this,So(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const d=u.call(r,c,a);return s&&o?o(d):d}function $v(e,t,n,a){const o=Id(e),l=o!==e&&!Oa(e);let r=n,s=!1;o!==e&&(l?(s=a.length===0,r=function(c,d,f){return s&&(s=!1,c=So(e,c)),n.call(this,c,So(e,d),f,e)}):n.length>3&&(r=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](r,...a);return s?So(e,u):u}function zf(e,t,n){const a=jt(e);Qn(a,"iterate",zi);const o=a[t](...n);return(o===-1||o===!1)&&Vd(n[0])?(n[0]=jt(n[0]),a[t](...n)):o}function ai(e,t,n=[]){rl(),dp();const a=jt(e)[t].apply(e,n);return fp(),sl(),a}const uC=ip("__proto__,__v_isRef,__isVue"),r3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Aa));function cC(e){Aa(e)||(e=String(e));const t=jt(this);return Qn(t,"has",e),t.hasOwnProperty(e)}class s3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(o?l?wC:d3:l?c3:u3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=be(t);if(!o){let u;if(r&&(u=sC[n]))return u;if(n==="hasOwnProperty")return cC}const s=Reflect.get(t,n,Yt(t)?t:a);if((Aa(n)?r3.has(n):uC(n))||(o||Qn(t,"get",n),l))return s;if(Yt(s)){const u=r&&Rd(n)?s:s.value;return o&<(u)?Tr(u):u}return lt(s)?o?Tr(s):Rt(s):s}}class i3 extends s3{constructor(t=!1){super(!1,t)}set(t,n,a,o){let l=t[n];const r=be(t)&&Rd(n);if(!this._isShallow){const c=il(l);if(!Oa(a)&&!il(a)&&(l=jt(l),a=jt(a)),!r&&Yt(l)&&!Yt(a))return c||(l.value=a),!0}const s=r?Number(n)e,Xu=e=>Reflect.getPrototypeOf(e);function vC(e,t,n){return function(...a){const o=this.__v_raw,l=jt(o),r=cs(l),s=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...a),d=n?I0:t?Cs:Za;return!t&&Qn(l,"iterate",u?P0:wr),Rn(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:s?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function Ju(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mC(e,t){const n={get(o){const l=this.__v_raw,r=jt(l),s=jt(o);e||(ko(o,s)&&Qn(r,"get",o),Qn(r,"get",s));const{has:u}=Xu(r),c=t?I0:e?Cs:Za;if(u.call(r,o))return c(l.get(o));if(u.call(r,s))return c(l.get(s));l!==r&&l.get(o)},get size(){const o=this.__v_raw;return!e&&Qn(jt(o),"iterate",wr),o.size},has(o){const l=this.__v_raw,r=jt(l),s=jt(o);return e||(ko(o,s)&&Qn(r,"has",o),Qn(r,"has",s)),o===s?l.has(o):l.has(o)||l.has(s)},forEach(o,l){const r=this,s=r.__v_raw,u=jt(s),c=t?I0:e?Cs:Za;return!e&&Qn(u,"iterate",wr),s.forEach((d,f)=>o.call(l,c(d),c(f),r))}};return Rn(n,e?{add:Ju("add"),set:Ju("set"),delete:Ju("delete"),clear:Ju("clear")}:{add(o){const l=jt(this),r=Xu(l),s=jt(o),u=!t&&!Oa(o)&&!il(o)?s:o;return r.has.call(l,u)||ko(o,u)&&r.has.call(l,o)||ko(s,u)&&r.has.call(l,s)||(l.add(u),Xo(l,"add",u,u)),this},set(o,l){!t&&!Oa(l)&&!il(l)&&(l=jt(l));const r=jt(this),{has:s,get:u}=Xu(r);let c=s.call(r,o);c||(o=jt(o),c=s.call(r,o));const d=u.call(r,o);return r.set(o,l),c?ko(l,d)&&Xo(r,"set",o,l):Xo(r,"add",o,l),this},delete(o){const l=jt(this),{has:r,get:s}=Xu(l);let u=r.call(l,o);u||(o=jt(o),u=r.call(l,o)),s&&s.call(l,o);const c=l.delete(o);return u&&Xo(l,"delete",o,void 0),c},clear(){const o=jt(this),l=o.size!==0,r=o.clear();return l&&Xo(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=vC(o,e,t)}),n}function vp(e,t){const n=mC(e,t);return(a,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(Mt(n,o)&&o in a?n:a,o,l)}const gC={get:vp(!1,!1)},yC={get:vp(!1,!0)},bC={get:vp(!0,!1)};const u3=new WeakMap,c3=new WeakMap,d3=new WeakMap,wC=new WeakMap;function CC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _C(e){return e.__v_skip||!Object.isExtensible(e)?0:CC(q9(e))}function Rt(e){return il(e)?e:mp(e,!1,fC,gC,u3)}function Ld(e){return mp(e,!1,hC,yC,c3)}function Tr(e){return mp(e,!0,pC,bC,d3)}function mp(e,t,n,a,o){if(!lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=_C(e);if(l===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,l===2?a:n);return o.set(e,s),s}function Cr(e){return il(e)?Cr(e.__v_raw):!!(e&&e.__v_isReactive)}function il(e){return!!(e&&e.__v_isReadonly)}function Oa(e){return!!(e&&e.__v_isShallow)}function Vd(e){return e?!!e.__v_raw:!1}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Oo(e){return!Mt(e,"__v_skip")&&Object.isExtensible(e)&&W4(e,"__v_skip",!0),e}const Za=e=>lt(e)?Rt(e):e,Cs=e=>lt(e)?Tr(e):e;function Yt(e){return e?e.__v_isRef===!0:!1}function V(e){return f3(e,!1)}function qt(e){return f3(e,!0)}function f3(e,t){return Yt(e)?e:new SC(e,t)}class SC{constructor(t,n){this.dep=new hp,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:jt(t),this._value=n?t:Za(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Oa(t)||il(t);t=a?t:jt(t),ko(t,n)&&(this._rawValue=t,this._value=a?t:Za(t),this.dep.trigger())}}function Cc(e){e.dep&&e.dep.trigger()}function i(e){return Yt(e)?e.value:e}function Av(e){return Fe(e)?e():i(e)}const xC={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Yt(o)&&!Yt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function p3(e){return Cr(e)?e:new Proxy(e,xC)}function Nn(e){const t=be(e)?new Array(e.length):{};for(const n in e)t[n]=h3(e,n);return t}class kC{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=Aa(n)?n:String(n),this._raw=jt(t);let o=!0,l=t;if(!be(t)||Aa(this._key)||!Rd(this._key))do o=!Vd(l)||Oa(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Yt(this._raw[this._key])){const n=this._object[this._key];if(Yt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return rC(this._raw,this._key)}}class EC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bt(e,t,n){return Yt(e)?e:Fe(e)?new EC(e):lt(e)&&arguments.length>1?h3(e,t,n):V(e)}function h3(e,t,n){return new kC(e,t,n)}class TC{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new hp(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&pn!==this)return e3(this,!0),!0}get value(){const t=this.dep.track();return a3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function MC(e,t,n=!1){let a,o;return Fe(e)?a=e:(a=e.get,o=e.set),new TC(a,o,n)}const Zu={},jc=new WeakMap;let or;function OC(e,t=!1,n=or){if(n){let a=jc.get(n);a||jc.set(n,a=[]),a.push(e)}}function $C(e,t,n=un){const{immediate:a,deep:o,once:l,scheduler:r,augmentJob:s,call:u}=n,c=_=>o?_:Oa(_)||o===!1||o===0?Jo(_,1):Jo(_);let d,f,h,g,p=!1,v=!1;if(Yt(e)?(f=()=>e.value,p=Oa(e)):Cr(e)?(f=()=>c(e),p=!0):be(e)?(v=!0,p=e.some(_=>Cr(_)||Oa(_)),f=()=>e.map(_=>{if(Yt(_))return _.value;if(Cr(_))return c(_);if(Fe(_))return u?u(_,2):_()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){rl();try{h()}finally{sl()}}const _=or;or=d;try{return u?u(e,3,[g]):e(g)}finally{or=_}}:f=It,t&&o){const _=f,S=o===!0?1/0:o;f=()=>Jo(_(),S)}const m=X4(),y=()=>{d.stop(),m&&m.active&&up(m.effects,d)};if(l&&t){const _=t;t=(...S)=>{_(...S),y()}}let b=v?new Array(e.length).fill(Zu):Zu;const w=_=>{if(!(!(d.flags&1)||!d.dirty&&!_))if(t){const S=d.run();if(o||p||(v?S.some((k,T)=>ko(k,b[T])):ko(S,b))){h&&h();const k=or;or=d;try{const T=[S,b===Zu?void 0:v&&b[0]===Zu?[]:b,g];b=S,u?u(t,3,T):t(...T)}finally{or=k}}}else d.run()};return s&&s(w),d=new Z4(f),d.scheduler=r?()=>r(w,!1):w,g=_=>OC(_,!1,d),h=d.onStop=()=>{const _=jc.get(d);if(_){if(u)u(_,4);else for(const S of _)S();jc.delete(d)}},t?a?w(!0):b=d.run():r?r(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Jo(e,t=1/0,n){if(t<=0||!lt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Yt(e))Jo(e.value,t,n);else if(be(e))for(let a=0;a{Jo(a,t,n)});else if(Vi(e)){for(const a in e)Jo(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Jo(e[a],t,n)}return e}/** -* @vue/runtime-core v3.5.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function hu(e,t,n,a){try{return a?e(...a):e()}catch(o){Bd(o,t,n)}}function Qa(e,t,n,a){if(Fe(e)){const o=hu(e,t,n,a);return o&&Kl(o)&&o.catch(l=>{Bd(l,t,n)}),o}if(be(e)){const o=[];for(let l=0;l>>1,o=ua[a],l=Di(o);l=Di(n)?ua.push(e):ua.splice(RC(t),0,e),e.flags|=1,m3()}}function m3(){qc||(qc=v3.then(y3))}function NC(e){be(e)?ds.push(...e):Rl&&e.id===-1?Rl.splice(ns+1,0,e):e.flags&1||(ds.push(e),e.flags|=1),m3()}function Rv(e,t,n=Co+1){for(;nDi(n)-Di(a));if(ds.length=0,Rl){Rl.push(...t);return}for(Rl=t,ns=0;nse.id==null?e.flags&2?-1:1/0:e.id;function y3(e){try{for(Co=0;Co{a._d&&Xc(-1);const l=Uc(t);let r;try{r=e(...o)}finally{Uc(l),a._d&&Xc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function ft(e,t){if(jn===null)return e;const n=Kd(jn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&Fe(t)?t.call(a&&a.proxy):t}}const PC=Symbol.for("v-scx"),IC=()=>Pe(PC);function da(e,t){return yp(e,null,t)}function fe(e,t,n){return yp(e,t,n)}function yp(e,t,n=un){const{immediate:a,deep:o,flush:l,once:r}=n,s=Rn({},n),u=t&&a||!t&&l!=="post";let c;if(Ki){if(l==="sync"){const g=IC();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=It,g.resume=It,g.pause=It,g}}const d=ea;s.call=(g,p,v)=>Qa(g,d,p,v);let f=!1;l==="post"?s.scheduler=g=>{sa(g,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(g,p)=>{p?g():gp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=$C(e,t,s);return Ki&&(c?c.push(h):u&&h()),h}function LC(e,t,n){const a=this.proxy,o=Be(e)?e.includes(".")?w3(a,e):()=>a[e]:e.bind(a,a);let l;Fe(t)?l=t:(l=t.handler,n=t);const r=mu(this),s=yp(o,l.bind(a),n);return r(),s}function w3(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,rr=e=>e&&(e.disabled||e.disabled===""),VC=e=>e&&(e.defer||e.defer===""),Nv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Pv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,L0=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},BC={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,l,r,s,u,c){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:p,createText:v,createComment:m}}=c,y=rr(t.props);let{dynamicChildren:b}=t;const w=(k,T,M)=>{k.shapeFlag&16&&d(k.children,T,M,o,l,r,s,u)},_=(k=t)=>{const T=rr(k.props),M=k.target=L0(k.props,p),A=V0(M,k,v,g);M&&(r!=="svg"&&Nv(M)?r="svg":r!=="mathml"&&Pv(M)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),T||(w(k,M,A),vi(k,!1)))},S=k=>{const T=()=>{Ql.get(k)===T&&(Ql.delete(k),rr(k.props)&&(w(k,n,k.anchor),vi(k,!0)),_(k))};Ql.set(k,T),sa(T,l)};if(e==null){const k=t.el=v(""),T=t.anchor=v("");if(g(k,n,a),g(T,n,a),VC(t.props)||l&&l.pendingBranch){S(t);return}y&&(w(t,n,T),vi(t,!0)),_()}else{t.el=e.el;const k=t.anchor=e.anchor,T=Ql.get(e);if(T){T.flags|=8,Ql.delete(e),S(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,A=t.targetAnchor=e.targetAnchor,O=rr(e.props),I=O?n:M,L=O?k:A;if(r==="svg"||Nv(M)?r="svg":(r==="mathml"||Pv(M))&&(r="mathml"),b?(h(e.dynamicChildren,b,I,o,l,r,s),Tp(e,t,!0)):u||f(e,t,I,L,o,l,r,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qu(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=L0(t.props,p);z&&Qu(t,z,null,c,0)}else O&&Qu(t,M,A,c,1);vi(t,y)}},remove(e,t,n,{um:a,o:{remove:o}},l){const{shapeFlag:r,children:s,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;let g=l||!rr(h);const p=Ql.get(e);if(p&&(p.flags|=8,Ql.delete(e),g=!1),f&&(o(c),o(d)),l&&o(u),r&16)for(let v=0;v{e.isMounted=!0}),Lt(()=>{e.isUnmounting=!0}),e}const Ia=[Function,Array],x3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ia,onEnter:Ia,onAfterEnter:Ia,onEnterCancelled:Ia,onBeforeLeave:Ia,onLeave:Ia,onAfterLeave:Ia,onLeaveCancelled:Ia,onBeforeAppear:Ia,onAppear:Ia,onAfterAppear:Ia,onAppearCancelled:Ia},k3=e=>{const t=e.subTree;return t.component?k3(t.component):t},HC={name:"BaseTransition",props:x3,setup(e,{slots:t}){const n=vt(),a=S3();return()=>{const o=t.default&&bp(t.default(),!0);if(!o||!o.length)return;const l=E3(o),r=jt(e),{mode:s}=r;if(a.isLeaving)return Df(l);const u=Iv(l);if(!u)return Df(l);let c=Hi(u,r,a,n,f=>c=f);u.type!==mn&&Mr(u,c);let d=n.subTree&&Iv(n.subTree);if(d&&d.type!==mn&&!sr(d,u)&&k3(n).type!==mn){let f=Hi(d,r,a,n);if(Mr(d,f),s==="out-in"&&u.type!==mn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Df(l);s==="in-out"&&u.type!==mn?f.delayLeave=(h,g,p)=>{const v=T3(a,d);v[String(d.key)]=d,h[_o]=()=>{g(),h[_o]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function E3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mn){t=n;break}}return t}const FC=HC;function T3(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Hi(e,t,n,a,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,_=String(e.key),S=T3(n,e),k=(A,O)=>{A&&Qa(A,a,9,O)},T=(A,O)=>{const I=O[1];k(A,O),be(A)?A.every(L=>L.length<=1)&&I():A.length<=1&&I()},M={mode:r,persisted:s,beforeEnter(A){let O=u;if(!n.isMounted)if(l)O=m||u;else return;A[_o]&&A[_o](!0);const I=S[_];I&&sr(e,I)&&I.el[_o]&&I.el[_o](),k(O,[A])},enter(A){if(S[_]===e)return;let O=c,I=d,L=f;if(!n.isMounted)if(l)O=y||c,I=b||d,L=w||f;else return;let z=!1;A[oi]=U=>{z||(z=!0,U?k(L,[A]):k(I,[A]),M.delayedLeave&&M.delayedLeave(),A[oi]=void 0)};const q=A[oi].bind(null,!1);O?T(O,[A,q]):q()},leave(A,O){const I=String(e.key);if(A[oi]&&A[oi](!0),n.isUnmounting)return O();k(h,[A]);let L=!1;A[_o]=q=>{L||(L=!0,O(),q?k(v,[A]):k(p,[A]),A[_o]=void 0,S[I]===e&&delete S[I])};const z=A[_o].bind(null,!1);S[I]=e,g?T(g,[A,z]):z()},clone(A){const O=Hi(A,t,n,a,o);return o&&o(O),O}};return M}function Df(e){if(zd(e))return e=Io(e),e.children=null,e}function Iv(e){if(!zd(e))return _3(e.type)&&e.children?E3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Fe(n.default))return n.default()}}function Mr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Mr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bp(e,t=!1,n){let a=[],o=0;for(let l=0;l1)for(let l=0;lki(v,t&&(be(t)?t[m]:t),n,a,o));return}if(fs(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&ki(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?Kd(a.component):a.el,r=o?null:l,{i:s,r:u}=e,c=t&&t.r,d=s.refs===un?s.refs={}:s.refs,f=s.setupState,h=jt(f),g=f===un?F4:v=>Lv(d,v)?!1:Mt(h,v),p=(v,m)=>!(m&&Lv(d,m));if(c!=null&&c!==u){if(Vv(t),Be(c))d[c]=null,g(c)&&(f[c]=null);else if(Yt(c)){const v=t;p(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))hu(u,s,12,[r,d]);else{const v=Be(u),m=Yt(u);if(v||m){const y=()=>{if(e.f){const b=v?g(u)?f[u]:d[u]:p()||!e.k?u.value:d[e.k];if(o)be(b)&&up(b,l);else if(be(b))b.includes(l)||b.push(l);else if(v)d[u]=[l],g(u)&&(f[u]=d[u]);else{const w=[l];p(u,e.k)&&(u.value=w),e.k&&(d[e.k]=w)}}else v?(d[u]=r,g(u)&&(f[u]=r)):m&&(p(u,e.k)&&(u.value=r),e.k&&(d[e.k]=r))};if(r){const b=()=>{y(),Yc.delete(e)};b.id=-1,Yc.set(e,b),sa(b,n)}else Vv(e),y()}}}function Vv(e){const t=Yc.get(e);t&&(t.flags|=8,Yc.delete(e))}Pd().requestIdleCallback;Pd().cancelIdleCallback;const fs=e=>!!e.type.__asyncLoader,zd=e=>e.type.__isKeepAlive;function vu(e,t){O3(e,"a",t)}function wp(e,t){O3(e,"da",t)}function O3(e,t,n=ea){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Dd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)zd(o.parent.vnode)&&KC(a,t,n,o),o=o.parent}}function KC(e,t,n,a){const o=Dd(t,e,a,!0);Fs(()=>{up(a[t],o)},n)}function Dd(e,t,n=ea,a=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{rl();const s=mu(n),u=Qa(t,n,e,r);return s(),sl(),u});return a?o.unshift(l):o.push(l),l}}const ml=e=>(t,n=ea)=>{(!Ki||e==="sp")&&Dd(e,(...a)=>t(...a),n)},Hd=ml("bm"),gt=ml("m"),Cp=ml("bu"),so=ml("u"),Lt=ml("bum"),Fs=ml("um"),WC=ml("sp"),jC=ml("rtg"),qC=ml("rtc");function UC(e,t=ea){Dd("ec",e,t)}const _p="components",YC="directives";function Ot(e,t){return xp(_p,e,!0,t)||e}const $3=Symbol.for("v-ndc");function dt(e){return Be(e)?xp(_p,e,!1)||e:e||$3}function Sp(e){return xp(YC,e)}function xp(e,t,n=!0,a=!1){const o=jn||ea;if(o){const l=o.type;if(e===_p){const s=$_(l,!1);if(s&&(s===t||s===Hn(t)||s===pu(Hn(t))))return l}const r=Bv(o[e]||l[e],t)||Bv(o.appContext[e],t);return!r&&a?l:r}}function Bv(e,t){return e&&(e[t]||e[Hn(t)]||e[pu(Hn(t))])}function _t(e,t,n,a){let o;const l=n,r=be(e);if(r||Be(e)){const s=r&&Cr(e);let u=!1,c=!1;s&&(u=!Oa(e),c=il(e),e=Id(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(s,u,void 0,l));else{const s=Object.keys(e);o=new Array(s.length);for(let u=0,c=s.length;u{const l=a.fn(...o);return l&&(l.key=a.key),l}:a.fn)}return e}function oe(e,t,n={},a,o){if(jn.ce||jn.parent&&fs(jn.parent)&&jn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),C(),ie(Ke,null,[Q("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),C();const r=l&&A3(l(n)),s=n.key||r&&r.key,u=ie(Ke,{key:(s&&!Aa(s)?s:`_${t}`)+(!r&&a?"_fb":"")},r||(a?a():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function A3(e){return e.some(t=>Wt(t)?!(t.type===mn||t.type===Ke&&!A3(t.children)):!0)?e:null}function GC(e,t){const n={};for(const a in e)n[_i(a)]=e[a];return n}const B0=e=>e?J3(e)?Kd(e):B0(e.parent):null,Ei=Rn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>B0(e.parent),$root:e=>B0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>P3(e),$forceUpdate:e=>e.f||(e.f=()=>{gp(e.update)}),$nextTick:e=>e.n||(e.n=Le.bind(e.proxy)),$watch:e=>LC.bind(e)}),Hf=(e,t)=>e!==un&&!e.__isScriptSetup&&Mt(e,t),XC={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:l,accessCache:r,type:s,appContext:u}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(Hf(a,t))return r[t]=1,a[t];if(o!==un&&Mt(o,t))return r[t]=2,o[t];if(Mt(l,t))return r[t]=3,l[t];if(n!==un&&Mt(n,t))return r[t]=4,n[t];z0&&(r[t]=0)}}const c=Ei[t];let d,f;if(c)return t==="$attrs"&&Qn(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==un&&Mt(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,Mt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:l}=e;return Hf(o,t)?(o[t]=n,!0):a!==un&&Mt(a,t)?(a[t]=n,!0):Mt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:l,type:r}},s){let u;return!!(n[s]||e!==un&&s[0]!=="$"&&Mt(e,s)||Hf(t,s)||Mt(l,s)||Mt(a,s)||Mt(Ei,s)||Mt(o.config.globalProperties,s)||(u=r.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Mt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(){return R3().slots}function gl(){return R3().attrs}function R3(e){const t=vt();return t.setupContext||(t.setupContext=Q3(t))}function zv(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let z0=!0;function JC(e){const t=P3(e),n=e.proxy,a=e.ctx;z0=!1,t.beforeCreate&&Dv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:p,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:_,render:S,renderTracked:k,renderTriggered:T,errorCaptured:M,serverPrefetch:A,expose:O,inheritAttrs:I,components:L,directives:z,filters:q}=t;if(c&&ZC(c,a,null),r)for(const N in r){const P=r[N];Fe(P)&&(a[N]=P.bind(n))}if(o){const N=o.call(n,n);lt(N)&&(e.data=Rt(N))}if(z0=!0,l)for(const N in l){const P=l[N],B=Fe(P)?P.bind(n,n):Fe(P.get)?P.get.bind(n,n):It,K=!Fe(P)&&Fe(P.set)?P.set.bind(n):It,W=x({get:B,set:K});Object.defineProperty(a,N,{enumerable:!0,configurable:!0,get:()=>W.value,set:j=>W.value=j})}if(s)for(const N in s)N3(s[N],a,n,N);if(u){const N=Fe(u)?u.call(n):u;Reflect.ownKeys(N).forEach(P=>{wt(P,N[P])})}d&&Dv(d,e,"c");function F(N,P){be(P)?P.forEach(B=>N(B.bind(n))):P&&N(P.bind(n))}if(F(Hd,f),F(gt,h),F(Cp,g),F(so,p),F(vu,v),F(wp,m),F(UC,M),F(qC,k),F(jC,T),F(Lt,b),F(Fs,_),F(WC,A),be(O))if(O.length){const N=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(N,P,{get:()=>n[P],set:B=>n[P]=B,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===It&&(e.render=S),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),z&&(e.directives=z),A&&M3(e)}function ZC(e,t,n=It){be(e)&&(e=D0(e));for(const a in e){const o=e[a];let l;lt(o)?"default"in o?l=Pe(o.from||a,o.default,!0):l=Pe(o.from||a):l=Pe(o),Yt(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[a]=l}}function Dv(e,t,n){Qa(be(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function N3(e,t,n,a){let o=a.includes(".")?w3(n,a):()=>n[a];if(Be(e)){const l=t[e];Fe(l)&&fe(o,l)}else if(Fe(e))fe(o,e.bind(n));else if(lt(e))if(be(e))e.forEach(l=>N3(l,t,n,a));else{const l=Fe(e.handler)?e.handler.bind(n):t[e.handler];Fe(l)&&fe(o,l,e)}}function P3(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,s=l.get(t);let u;return s?u=s:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>Gc(u,c,r,!0)),Gc(u,t,r)),lt(t)&&l.set(t,u),u}function Gc(e,t,n,a=!1){const{mixins:o,extends:l}=t;l&&Gc(e,l,n,!0),o&&o.forEach(r=>Gc(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=QC[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const QC={data:Hv,props:Fv,emits:Fv,methods:mi,computed:mi,beforeCreate:ra,created:ra,beforeMount:ra,mounted:ra,beforeUpdate:ra,updated:ra,beforeDestroy:ra,beforeUnmount:ra,destroyed:ra,unmounted:ra,activated:ra,deactivated:ra,errorCaptured:ra,serverPrefetch:ra,components:mi,directives:mi,watch:t_,provide:Hv,inject:e_};function Hv(e,t){return t?e?function(){return Rn(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function e_(e,t){return mi(D0(e),D0(t))}function D0(e){if(be(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Hn(t)}Modifiers`]||e[`${vl(t)}Modifiers`];function l_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||un;let o=n;const l=t.startsWith("update:"),r=l&&o_(a,t.slice(7));r&&(r.trim&&(o=n.map(d=>Be(d)?d.trim():d)),r.number&&(o=n.map(cp)));let s,u=a[s=_i(t)]||a[s=_i(Hn(t))];!u&&l&&(u=a[s=_i(vl(t))]),u&&Qa(u,e,6,o);const c=a[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qa(c,e,6,o)}}const r_=new WeakMap;function L3(e,t,n=!1){const a=n?r_:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const l=e.emits;let r={},s=!1;if(!Fe(e)){const u=c=>{const d=L3(c,t,!0);d&&(s=!0,Rn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!s?(lt(e)&&a.set(e,null),null):(be(l)?l.forEach(u=>r[u]=null):Rn(r,l),lt(e)&&a.set(e,r),r)}function Fd(e,t){return!e||!Od(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(e,t[0].toLowerCase()+t.slice(1))||Mt(e,vl(t))||Mt(e,t))}function Kv(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[l],slots:r,attrs:s,emit:u,render:c,renderCache:d,props:f,data:h,setupState:g,ctx:p,inheritAttrs:v}=e,m=Uc(e);let y,b;try{if(n.shapeFlag&4){const _=o||a,S=_;y=xo(c.call(S,_,d,f,g,h,p)),b=s}else{const _=t;y=xo(_.length>1?_(f,{attrs:s,slots:r,emit:u}):_(f,null)),b=t.props?s:s_(s)}}catch(_){Ti.length=0,Bd(_,e,1),y=Q(mn)}let w=y;if(b&&v!==!1){const _=Object.keys(b),{shapeFlag:S}=w;_.length&&S&7&&(l&&_.some($d)&&(b=i_(b,l)),w=Io(w,b,!1,!0))}return n.dirs&&(w=Io(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Mr(w,n.transition),y=w,Uc(m),y}const s_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Od(n))&&((t||(t={}))[n]=e[n]);return t},i_=(e,t)=>{const n={};for(const a in e)(!$d(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function u_(e,t,n){const{props:a,children:o,component:l}=e,{props:r,children:s,patchFlag:u}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?Wv(a,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(B3),D3=e=>Object.getPrototypeOf(e)===B3;function d_(e,t,n,a=!1){const o={},l=z3();e.propsDefaults=Object.create(null),H3(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=a?o:Ld(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function f_(e,t,n,a){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,s=jt(o),[u]=e.propsOptions;let c=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,g]=F3(f,t,!0);Rn(r,h),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!u)return lt(e)&&a.set(e,us),us;if(be(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Ep=e=>be(e)?e.map(xo):[xo(e)],h_=(e,t,n)=>{if(t._n)return t;const a=ae((...o)=>Ep(t(...o)),n);return a._c=!1,a},K3=(e,t,n)=>{const a=e._ctx;for(const o in e){if(kp(o))continue;const l=e[o];if(Fe(l))t[o]=h_(o,l,a);else if(l!=null){const r=Ep(l);t[o]=()=>r}}},W3=(e,t)=>{const n=Ep(t);e.slots.default=()=>n},j3=(e,t,n)=>{for(const a in t)(n||!kp(a))&&(e[a]=t[a])},v_=(e,t,n)=>{const a=e.slots=z3();if(e.vnode.shapeFlag&32){const o=t._;o?(j3(a,t,n),n&&W4(a,"_",o,!0)):K3(t,a)}else t&&W3(e,t)},m_=(e,t,n)=>{const{vnode:a,slots:o}=e;let l=!0,r=un;if(a.shapeFlag&32){const s=t._;s?n&&s===1?l=!1:j3(o,t,n):(l=!t.$stable,K3(t,o)),r=t}else t&&(W3(e,t),r={default:1});if(l)for(const s in o)!kp(s)&&r[s]==null&&delete o[s]},sa=C_;function g_(e){return y_(e)}function y_(e,t){const n=Pd();n.__VUE__=!0;const{insert:a,remove:o,patchProp:l,createElement:r,createText:s,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=It,insertStaticContent:p}=e,v=(H,Z,le,ce=null,ge=null,me=null,Ae=void 0,Ne=null,Re=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!sr(H,Z)&&(ce=ne(H),j(H,ge,me,!0),H=null),Z.patchFlag===-2&&(Re=!1,Z.dynamicChildren=null);const{type:ye,ref:Ee,shapeFlag:we}=Z;switch(ye){case Ks:m(H,Z,le,ce);break;case mn:y(H,Z,le,ce);break;case _c:H==null&&b(Z,le,ce,Ae);break;case Ke:L(H,Z,le,ce,ge,me,Ae,Ne,Re);break;default:we&1?S(H,Z,le,ce,ge,me,Ae,Ne,Re):we&6?z(H,Z,le,ce,ge,me,Ae,Ne,Re):(we&64||we&128)&&ye.process(H,Z,le,ce,ge,me,Ae,Ne,Re,Y)}Ee!=null&&ge?ki(Ee,H&&H.ref,me,Z||H,!Z):Ee==null&&H&&H.ref!=null&&ki(H.ref,null,me,H,!0)},m=(H,Z,le,ce)=>{if(H==null)a(Z.el=s(Z.children),le,ce);else{const ge=Z.el=H.el;Z.children!==H.children&&c(ge,Z.children)}},y=(H,Z,le,ce)=>{H==null?a(Z.el=u(Z.children||""),le,ce):Z.el=H.el},b=(H,Z,le,ce)=>{[H.el,H.anchor]=p(H.children,Z,le,ce,H.el,H.anchor)},w=({el:H,anchor:Z},le,ce)=>{let ge;for(;H&&H!==Z;)ge=h(H),a(H,le,ce),H=ge;a(Z,le,ce)},_=({el:H,anchor:Z})=>{let le;for(;H&&H!==Z;)le=h(H),o(H),H=le;o(Z)},S=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{if(Z.type==="svg"?Ae="svg":Z.type==="math"&&(Ae="mathml"),H==null)k(Z,le,ce,ge,me,Ae,Ne,Re);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),A(H,Z,ge,me,Ae,Ne,Re)}finally{ye&&ye._endPatch()}}},k=(H,Z,le,ce,ge,me,Ae,Ne)=>{let Re,ye;const{props:Ee,shapeFlag:we,transition:Ie,dirs:ze}=H;if(Re=H.el=r(H.type,me,Ee&&Ee.is,Ee),we&8?d(Re,H.children):we&16&&M(H.children,Re,null,ce,ge,Ff(H,me),Ae,Ne),ze&&Zl(H,null,ce,"created"),T(Re,H,H.scopeId,Ae,ce),Ee){for(const nt in Ee)nt!=="value"&&!Ci(nt)&&l(Re,nt,null,Ee[nt],me,ce);"value"in Ee&&l(Re,"value",null,Ee.value,me),(ye=Ee.onVnodeBeforeMount)&&yo(ye,ce,H)}ze&&Zl(H,null,ce,"beforeMount");const et=b_(ge,Ie);et&&Ie.beforeEnter(Re),a(Re,Z,le),((ye=Ee&&Ee.onVnodeMounted)||et||ze)&&sa(()=>{try{ye&&yo(ye,ce,H),et&&Ie.enter(Re),ze&&Zl(H,null,ce,"mounted")}finally{}},ge)},T=(H,Z,le,ce,ge)=>{if(le&&g(H,le),ce)for(let me=0;me{for(let ye=Re;ye{const Ne=Z.el=H.el;let{patchFlag:Re,dynamicChildren:ye,dirs:Ee}=Z;Re|=H.patchFlag&16;const we=H.props||un,Ie=Z.props||un;let ze;if(le&&er(le,!1),(ze=Ie.onVnodeBeforeUpdate)&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"beforeUpdate"),le&&er(le,!0),(we.innerHTML&&Ie.innerHTML==null||we.textContent&&Ie.textContent==null)&&d(Ne,""),ye?O(H.dynamicChildren,ye,Ne,le,ce,Ff(Z,ge),me):Ae||P(H,Z,Ne,null,le,ce,Ff(Z,ge),me,!1),Re>0){if(Re&16)I(Ne,we,Ie,le,ge);else if(Re&2&&we.class!==Ie.class&&l(Ne,"class",null,Ie.class,ge),Re&4&&l(Ne,"style",we.style,Ie.style,ge),Re&8){const et=Z.dynamicProps;for(let nt=0;nt{ze&&yo(ze,le,Z,H),Ee&&Zl(Z,H,le,"updated")},ce)},O=(H,Z,le,ce,ge,me,Ae)=>{for(let Ne=0;Ne{if(Z!==le){if(Z!==un)for(const me in Z)!Ci(me)&&!(me in le)&&l(H,me,Z[me],null,ge,ce);for(const me in le){if(Ci(me))continue;const Ae=le[me],Ne=Z[me];Ae!==Ne&&me!=="value"&&l(H,me,Ne,Ae,ge,ce)}"value"in le&&l(H,"value",Z.value,le.value,ge)}},L=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{const ye=Z.el=H?H.el:s(""),Ee=Z.anchor=H?H.anchor:s("");let{patchFlag:we,dynamicChildren:Ie,slotScopeIds:ze}=Z;ze&&(Ne=Ne?Ne.concat(ze):ze),H==null?(a(ye,le,ce),a(Ee,le,ce),M(Z.children||[],le,Ee,ge,me,Ae,Ne,Re)):we>0&&we&64&&Ie&&H.dynamicChildren&&H.dynamicChildren.length===Ie.length?(O(H.dynamicChildren,Ie,le,ge,me,Ae,Ne),(Z.key!=null||ge&&Z===ge.subTree)&&Tp(H,Z,!0)):P(H,Z,le,Ee,ge,me,Ae,Ne,Re)},z=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{Z.slotScopeIds=Ne,H==null?Z.shapeFlag&512?ge.ctx.activate(Z,le,ce,Ae,Re):q(Z,le,ce,ge,me,Ae,Re):U(H,Z,Re)},q=(H,Z,le,ce,ge,me,Ae)=>{const Ne=H.component=E_(H,ce,ge);if(zd(H)&&(Ne.ctx.renderer=Y),T_(Ne,!1,Ae),Ne.asyncDep){if(ge&&ge.registerDep(Ne,F,Ae),!H.el){const Re=Ne.subTree=Q(mn);y(null,Re,Z,le),H.placeholder=Re.el}}else F(Ne,H,Z,le,ge,me,Ae)},U=(H,Z,le)=>{const ce=Z.component=H.component;if(u_(H,Z,le))if(ce.asyncDep&&!ce.asyncResolved){N(ce,Z,le);return}else ce.next=Z,ce.update();else Z.el=H.el,ce.vnode=Z},F=(H,Z,le,ce,ge,me,Ae)=>{const Ne=()=>{if(H.isMounted){let{next:we,bu:Ie,u:ze,parent:et,vnode:nt}=H;{const je=q3(H);if(je){we&&(we.el=nt.el,N(H,we,Ae)),je.asyncDep.then(()=>{sa(()=>{H.isUnmounted||ye()},ge)});return}}let at=we,Me;er(H,!1),we?(we.el=nt.el,N(H,we,Ae)):we=nt,Ie&&wc(Ie),(Me=we.props&&we.props.onVnodeBeforeUpdate)&&yo(Me,et,we,nt),er(H,!0);const Ge=Kv(H),ut=H.subTree;H.subTree=Ge,v(ut,Ge,f(ut.el),ne(ut),H,ge,me),we.el=Ge.el,at===null&&c_(H,Ge.el),ze&&sa(ze,ge),(Me=we.props&&we.props.onVnodeUpdated)&&sa(()=>yo(Me,et,we,nt),ge)}else{let we;const{el:Ie,props:ze}=Z,{bm:et,m:nt,parent:at,root:Me,type:Ge}=H,ut=fs(Z);er(H,!1),et&&wc(et),!ut&&(we=ze&&ze.onVnodeBeforeMount)&&yo(we,at,Z),er(H,!0);{Me.ce&&Me.ce._hasShadowRoot()&&Me.ce._injectChildStyle(Ge,H.parent?H.parent.type:void 0);const je=H.subTree=Kv(H);v(null,je,le,ce,H,ge,me),Z.el=je.el}if(nt&&sa(nt,ge),!ut&&(we=ze&&ze.onVnodeMounted)){const je=Z;sa(()=>yo(we,at,je),ge)}(Z.shapeFlag&256||at&&fs(at.vnode)&&at.vnode.shapeFlag&256)&&H.a&&sa(H.a,ge),H.isMounted=!0,Z=le=ce=null}};H.scope.on();const Re=H.effect=new Z4(Ne);H.scope.off();const ye=H.update=Re.run.bind(Re),Ee=H.job=Re.runIfDirty.bind(Re);Ee.i=H,Ee.id=H.uid,Re.scheduler=()=>gp(Ee),er(H,!0),ye()},N=(H,Z,le)=>{Z.component=H;const ce=H.vnode.props;H.vnode=Z,H.next=null,f_(H,Z.props,ce,le),m_(H,Z.children,le),rl(),Rv(H),sl()},P=(H,Z,le,ce,ge,me,Ae,Ne,Re=!1)=>{const ye=H&&H.children,Ee=H?H.shapeFlag:0,we=Z.children,{patchFlag:Ie,shapeFlag:ze}=Z;if(Ie>0){if(Ie&128){K(ye,we,le,ce,ge,me,Ae,Ne,Re);return}else if(Ie&256){B(ye,we,le,ce,ge,me,Ae,Ne,Re);return}}ze&8?(Ee&16&&ue(ye,ge,me),we!==ye&&d(le,we)):Ee&16?ze&16?K(ye,we,le,ce,ge,me,Ae,Ne,Re):ue(ye,ge,me,!0):(Ee&8&&d(le,""),ze&16&&M(we,le,ce,ge,me,Ae,Ne,Re))},B=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{H=H||us,Z=Z||us;const ye=H.length,Ee=Z.length,we=Math.min(ye,Ee);let Ie;for(Ie=0;IeEe?ue(H,ge,me,!0,!1,we):M(Z,le,ce,ge,me,Ae,Ne,Re,we)},K=(H,Z,le,ce,ge,me,Ae,Ne,Re)=>{let ye=0;const Ee=Z.length;let we=H.length-1,Ie=Ee-1;for(;ye<=we&&ye<=Ie;){const ze=H[ye],et=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);if(sr(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;ye++}for(;ye<=we&&ye<=Ie;){const ze=H[we],et=Z[Ie]=Re?Yo(Z[Ie]):xo(Z[Ie]);if(sr(ze,et))v(ze,et,le,null,ge,me,Ae,Ne,Re);else break;we--,Ie--}if(ye>we){if(ye<=Ie){const ze=Ie+1,et=zeIe)for(;ye<=we;)j(H[ye],ge,me,!0),ye++;else{const ze=ye,et=ye,nt=new Map;for(ye=et;ye<=Ie;ye++){const he=Z[ye]=Re?Yo(Z[ye]):xo(Z[ye]);he.key!=null&&nt.set(he.key,ye)}let at,Me=0;const Ge=Ie-et+1;let ut=!1,je=0;const tt=new Array(Ge);for(ye=0;ye=Ge){j(he,ge,me,!0);continue}let Ve;if(he.key!=null)Ve=nt.get(he.key);else for(at=et;at<=Ie;at++)if(tt[at-et]===0&&sr(he,Z[at])){Ve=at;break}Ve===void 0?j(he,ge,me,!0):(tt[Ve-et]=ye+1,Ve>=je?je=Ve:ut=!0,v(he,Z[Ve],le,null,ge,me,Ae,Ne,Re),Me++)}const yt=ut?w_(tt):us;for(at=yt.length-1,ye=Ge-1;ye>=0;ye--){const he=et+ye,Ve=Z[he],pe=Z[he+1],Te=he+1{const{el:me,type:Ae,transition:Ne,children:Re,shapeFlag:ye}=H;if(ye&6){W(H.component.subTree,Z,le,ce);return}if(ye&128){H.suspense.move(Z,le,ce);return}if(ye&64){Ae.move(H,Z,le,Y);return}if(Ae===Ke){a(me,Z,le);for(let we=0;weNe.enter(me),ge);else{const{leave:we,delayLeave:Ie,afterLeave:ze}=Ne,et=()=>{H.ctx.isUnmounted?o(me):a(me,Z,le)},nt=()=>{me._isLeaving&&me[_o](!0),we(me,()=>{et(),ze&&ze()})};Ie?Ie(me,et,nt):nt()}else a(me,Z,le)},j=(H,Z,le,ce=!1,ge=!1)=>{const{type:me,props:Ae,ref:Ne,children:Re,dynamicChildren:ye,shapeFlag:Ee,patchFlag:we,dirs:Ie,cacheIndex:ze,memo:et}=H;if(we===-2&&(ge=!1),Ne!=null&&(rl(),ki(Ne,null,le,H,!0),sl()),ze!=null&&(Z.renderCache[ze]=void 0),Ee&256){Z.ctx.deactivate(H);return}const nt=Ee&1&&Ie,at=!fs(H);let Me;if(at&&(Me=Ae&&Ae.onVnodeBeforeUnmount)&&yo(Me,Z,H),Ee&6)te(H.component,le,ce);else{if(Ee&128){H.suspense.unmount(le,ce);return}nt&&Zl(H,null,Z,"beforeUnmount"),Ee&64?H.type.remove(H,Z,le,Y,ce):ye&&!ye.hasOnce&&(me!==Ke||we>0&&we&64)?ue(ye,Z,le,!1,!0):(me===Ke&&we&384||!ge&&Ee&16)&&ue(Re,Z,le),ce&&G(H)}const Ge=et!=null&&ze==null;(at&&(Me=Ae&&Ae.onVnodeUnmounted)||nt||Ge)&&sa(()=>{Me&&yo(Me,Z,H),nt&&Zl(H,null,Z,"unmounted"),Ge&&(H.el=null)},le)},G=H=>{const{type:Z,el:le,anchor:ce,transition:ge}=H;if(Z===Ke){ee(le,ce);return}if(Z===_c){_(H);return}const me=()=>{o(le),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:Ae,delayLeave:Ne}=ge,Re=()=>Ae(le,me);Ne?Ne(H.el,me,Re):Re()}else me()},ee=(H,Z)=>{let le;for(;H!==Z;)le=h(H),o(H),H=le;o(Z)},te=(H,Z,le)=>{const{bum:ce,scope:ge,job:me,subTree:Ae,um:Ne,m:Re,a:ye}=H;qv(Re),qv(ye),ce&&wc(ce),ge.stop(),me&&(me.flags|=8,j(Ae,H,Z,le)),Ne&&sa(Ne,Z),sa(()=>{H.isUnmounted=!0},Z)},ue=(H,Z,le,ce=!1,ge=!1,me=0)=>{for(let Ae=me;Ae{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=h(H.anchor||H.el),le=Z&&Z[C3];return le?h(le):Z};let de=!1;const se=(H,Z,le)=>{let ce;H==null?Z._vnode&&(j(Z._vnode,null,null,!0),ce=Z._vnode.component):v(Z._vnode||null,H,Z,null,null,null,le),Z._vnode=H,de||(de=!0,Rv(ce),g3(),de=!1)},Y={p:v,um:j,m:W,r:G,mt:q,mc:M,pc:P,pbc:O,n:ne,o:e};return{render:se,hydrate:void 0,createApp:a_(se)}}function Ff({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function er({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function b_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tp(e,t,n=!1){const a=e.children,o=t.children;if(be(a)&&be(o))for(let l=0;l>1,e[n[s]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function q3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:q3(t)}function qv(e){if(e)for(let t=0;te.__isSuspense;function C_(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):NC(e)}const Ke=Symbol.for("v-fgt"),Ks=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),_c=Symbol.for("v-stc"),Ti=[];let Ea=null;function C(e=!1){Ti.push(Ea=e?null:[])}function __(){Ti.pop(),Ea=Ti[Ti.length-1]||null}let Fi=1;function Xc(e,t=!1){Fi+=e,e<0&&Ea&&t&&(Ea.hasOnce=!0)}function G3(e){return e.dynamicChildren=Fi>0?Ea||us:null,__(),Fi>0&&Ea&&Ea.push(e),e}function $(e,t,n,a,o,l){return G3(E(e,t,n,a,o,l,!0))}function ie(e,t,n,a,o){return G3(Q(e,t,n,a,o,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function sr(e,t){return e.type===t.type&&e.key===t.key}const X3=({key:e})=>e??null,Sc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Yt(e)||Fe(e)?{i:jn,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,a=0,o=null,l=e===Ke?0:1,r=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&X3(t),ref:t&&Sc(t),scopeId:b3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:jn};return s?(Mp(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),Fi>0&&!r&&Ea&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&Ea.push(u),u}const Q=S_;function S_(e,t=null,n=null,a=0,o=null,l=!1){if((!e||e===$3)&&(e=mn),Wt(e)){const s=Io(e,t,!0);return n&&Mp(s,n),Fi>0&&!l&&Ea&&(s.shapeFlag&6?Ea[Ea.indexOf(e)]=s:Ea.push(s)),s.patchFlag=-2,s}if(A_(e)&&(e=e.__vccOpts),t){t=al(t);let{class:s,style:u}=t;s&&!Be(s)&&(t.class=R(s)),lt(u)&&(Vd(u)&&!be(u)&&(u=Rn({},u)),t.style=qe(u))}const r=Be(e)?1:Y3(e)?128:_3(e)?64:lt(e)?4:Fe(e)?2:0;return E(e,t,n,a,o,r,l,!0)}function al(e){return e?Vd(e)||D3(e)?Rn({},e):e:null}function Io(e,t,n=!1,a=!1){const{props:o,ref:l,patchFlag:r,children:s,transition:u}=e,c=t?ht(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&X3(c),ref:t&&t.ref?n&&l?be(l)?l.concat(Sc(t)):[l,Sc(t)]:Sc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Io(e.ssContent),ssFallback:e.ssFallback&&Io(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Mr(d,u.clone(d)),d}function St(e=" ",t=0){return Q(Ks,null,e,t)}function hde(e,t){const n=Q(_c,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(C(),ie(mn,null,e)):Q(mn,null,e)}function xo(e){return e==null||typeof e=="boolean"?Q(mn):be(e)?Q(Ke,null,e.slice()):Wt(e)?Yo(e):Q(Ks,null,String(e))}function Yo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Io(e)}function Mp(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Mp(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!D3(t)?t._ctx=jn:o===3&&jn&&(jn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:jn},n=32):(t=String(t),a&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function ht(...e){const t={};for(let n=0;nea||jn;let Jc,F0;{const e=Pd(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};Jc=t("__VUE_INSTANCE_SETTERS__",n=>ea=n),F0=t("__VUE_SSR_SETTERS__",n=>Ki=n)}const mu=e=>{const t=ea;return Jc(e),e.scope.on(),()=>{e.scope.off(),Jc(t)}},Uv=()=>{ea&&ea.scope.off(),Jc(null)};function J3(e){return e.vnode.shapeFlag&4}let Ki=!1;function T_(e,t=!1,n=!1){t&&F0(t);const{props:a,children:o}=e.vnode,l=J3(e);d_(e,a,l,t),v_(e,o,n||t);const r=l?M_(e,t):void 0;return t&&F0(!1),r}function M_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,XC);const{setup:a}=n;if(a){rl();const o=e.setupContext=a.length>1?Q3(e):null,l=mu(e),r=hu(a,e,0,[e.props,o]),s=Kl(r);if(sl(),l(),(s||e.sp)&&!fs(e)&&M3(e),s){if(r.then(Uv,Uv),t)return r.then(u=>{Yv(e,u)}).catch(u=>{Bd(u,e,0)});e.asyncDep=r}else Yv(e,r)}else Z3(e)}function Yv(e,t,n){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:lt(t)&&(e.setupState=p3(t)),Z3(e)}function Z3(e,t,n){const a=e.type;e.render||(e.render=a.render||It);{const o=mu(e);rl();try{JC(e)}finally{sl(),o()}}}const O_={get(e,t){return Qn(e,"get",""),e[t]}};function Q3(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,O_),slots:e.slots,emit:e.emit,expose:t}}function Kd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(p3(Oo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ei)return Ei[n](e)},has(t,n){return n in t||n in Ei}})):e.proxy}function $_(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function A_(e){return Fe(e)&&"__vccOpts"in e}const x=(e,t)=>MC(e,t,Ki);function Ye(e,t,n){try{Xc(-1);const a=arguments.length;return a===2?lt(t)&&!be(t)?Wt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Wt(n)&&(n=[n]),Q(e,t,n))}finally{Xc(1)}}const R_="3.5.32",N_=It;/** -* @vue/runtime-dom v3.5.32 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let K0;const Gv=typeof window<"u"&&window.trustedTypes;if(Gv)try{K0=Gv.createPolicy("vue",{createHTML:e=>e})}catch{}const e6=K0?e=>K0.createHTML(e):e=>e,P_="http://www.w3.org/2000/svg",I_="http://www.w3.org/1998/Math/MathML",Uo=typeof document<"u"?document:null,Xv=Uo&&Uo.createElement("template"),L_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Uo.createElementNS(P_,e):t==="mathml"?Uo.createElementNS(I_,e):n?Uo.createElement(e,{is:n}):Uo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Uo.createTextNode(e),createComment:e=>Uo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Uo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Xv.innerHTML=e6(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Xv.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},El="transition",li="animation",_s=Symbol("_vtc"),t6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},n6=Rn({},x3,t6),V_=e=>(e.displayName="Transition",e.props=n6,e),Fn=V_((e,{slots:t})=>Ye(FC,a6(e),t)),tr=(e,t=[])=>{be(e)?e.forEach(n=>n(...t)):e&&e(...t)},Jv=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function a6(e){const t={};for(const L in e)L in t6||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=B_(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:_,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:M=w}=t,A=(L,z,q,U)=>{L._enterCancelled=U,Ml(L,z?d:s),Ml(L,z?c:r),q&&q()},O=(L,z)=>{L._isLeaving=!1,Ml(L,f),Ml(L,g),Ml(L,h),z&&z()},I=L=>(z,q)=>{const U=L?T:b,F=()=>A(z,L,q);tr(U,[z,F]),Zv(()=>{Ml(z,L?u:l),wo(z,L?d:s),Jv(U)||Qv(z,a,v,F)})};return Rn(t,{onBeforeEnter(L){tr(y,[L]),wo(L,l),wo(L,r)},onBeforeAppear(L){tr(k,[L]),wo(L,u),wo(L,c)},onEnter:I(!1),onAppear:I(!0),onLeave(L,z){L._isLeaving=!0;const q=()=>O(L,z);wo(L,f),L._enterCancelled?(wo(L,h),W0(L)):(W0(L),wo(L,h)),Zv(()=>{L._isLeaving&&(Ml(L,f),wo(L,g),Jv(_)||Qv(L,a,m,q))}),tr(_,[L,q])},onEnterCancelled(L){A(L,!1,void 0,!0),tr(w,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),tr(M,[L])},onLeaveCancelled(L){O(L),tr(S,[L])}})}function B_(e){if(e==null)return null;if(lt(e))return[Kf(e.enter),Kf(e.leave)];{const t=Kf(e);return[t,t]}}function Kf(e){return G9(e)}function wo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[_s]||(e[_s]=new Set)).add(t)}function Ml(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[_s];n&&(n.delete(t),n.size||(e[_s]=void 0))}function Zv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let z_=0;function Qv(e,t,n,a){const o=e._endId=++z_,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=o6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=a(`${El}Delay`),l=a(`${El}Duration`),r=e1(o,l),s=a(`${li}Delay`),u=a(`${li}Duration`),c=e1(s,u);let d=null,f=0,h=0;t===El?r>0&&(d=El,f=r,h=l.length):t===li?c>0&&(d=li,f=c,h=u.length):(f=Math.max(r,c),d=f>0?r>c?El:li:null,h=d?d===El?l.length:u.length:0);const g=d===El&&/\b(?:transform|all)(?:,|$)/.test(a(`${El}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function e1(e,t){for(;e.lengtht1(n)+t1(e[a])))}function t1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function W0(e){return(e?e.ownerDocument:document).body.offsetHeight}function D_(e,t,n){const a=e[_s];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zc=Symbol("_vod"),l6=Symbol("_vsh"),$t={name:"show",beforeMount(e,{value:t},{transition:n}){e[Zc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ri(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),ri(e,!0),a.enter(e)):a.leave(e,()=>{ri(e,!1)}):ri(e,t))},beforeUnmount(e,{value:t}){ri(e,t)}};function ri(e,t){e.style.display=t?e[Zc]:"none",e[l6]=!t}const H_=Symbol(""),F_=/(?:^|;)\s*display\s*:/;function K_(e,t,n){const a=e.style,o=Be(n);let l=!1;if(n&&!o){if(t)if(Be(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&xc(a,s,"")}else for(const r in t)n[r]==null&&xc(a,r,"");for(const r in n)r==="display"&&(l=!0),xc(a,r,n[r])}else if(o){if(t!==n){const r=a[H_];r&&(n+=";"+r),a.cssText=n,l=F_.test(n)}}else t&&e.removeAttribute("style");Zc in e&&(e[Zc]=l?a.display:"",e[l6]&&(a.display="none"))}const n1=/\s*!important$/;function xc(e,t,n){if(be(n))n.forEach(a=>xc(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=W_(e,t);n1.test(n)?e.setProperty(vl(a),n.replace(n1,""),"important"):e[a]=n}}const a1=["Webkit","Moz","ms"],Wf={};function W_(e,t){const n=Wf[t];if(n)return n;let a=Hn(t);if(a!=="filter"&&a in e)return Wf[t]=a;a=pu(a);for(let o=0;ojf||(Y_.then(()=>jf=0),jf=Date.now());function X_(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Qa(J_(a,n.value),t,5,[a])};return n.value=e,n.attached=G_(),n}function J_(e,t){if(be(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const u1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Z_=(e,t,n,a,o,l)=>{const r=o==="svg";t==="class"?D_(e,a,r):t==="style"?K_(e,n,a):Od(t)?$d(t)||q_(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Q_(e,t,a,r))?(r1(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&l1(e,t,a,r,l,t!=="value")):e._isVueCE&&(eS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(a)))?r1(e,Hn(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),l1(e,t,a,r))};function Q_(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&u1(t)&&Fe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return u1(t)&&Be(n)?!1:t in e}function eS(e,t){const n=e._def.props;if(!n)return!1;const a=Hn(t);return Array.isArray(n)?n.some(o=>Hn(o)===a):Object.keys(n).some(o=>Hn(o)===a)}const r6=new WeakMap,s6=new WeakMap,Qc=Symbol("_moveCb"),c1=Symbol("_enterCb"),tS=e=>(delete e.props.mode,e),nS=tS({name:"TransitionGroup",props:Rn({},n6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vt(),a=S3();let o,l;return so(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!rS(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(aS),o.forEach(oS);const s=o.filter(lS);W0(n.vnode.el),s.forEach(u=>{const c=u.el,d=c.style;wo(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Qc]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Qc]=null,Ml(c,r))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const r=jt(e),s=a6(r);let u=r.tag||Ke;if(o=[],l)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&a.classList.add(s)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:r}=o6(a);return l.removeChild(a),r}const Ss=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?n=>wc(t,n):t};function sS(e){e.target.composing=!0}function d1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ol=Symbol("_assign");function f1(e,t,n){return t&&(e=e.trim()),n&&(e=cp(e)),e}const c6={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[ol]=Ss(o);const l=a||o.props&&o.props.type==="number";Pl(e,t?"change":"input",r=>{r.target.composing||e[ol](f1(e.value,n,l))}),(n||l)&&Pl(e,"change",()=>{e.value=f1(e.value,n,l)}),t||(Pl(e,"compositionstart",sS),Pl(e,"compositionend",d1),Pl(e,"change",d1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:l}},r){if(e[ol]=Ss(r),e.composing)return;const s=(l||e.type==="number")&&!/^0\d/.test(e.value)?cp(e.value):e.value,u=t??"";if(s===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},d6={deep:!0,created(e,t,n){e[ol]=Ss(n),Pl(e,"change",()=>{const a=e._modelValue,o=p6(e),l=e.checked,r=e[ol];if(be(a)){const s=q4(a,o),u=s!==-1;if(l&&!u)r(a.concat(o));else if(!l&&u){const c=[...a];c.splice(s,1),r(c)}}else if(Ad(a)){const s=new Set(a);l?s.add(o):s.delete(o),r(s)}else r(h6(e,l))})},mounted:p1,beforeUpdate(e,t,n){e[ol]=Ss(n),p1(e,t,n)}};function p1(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(be(t))o=q4(t,a.props.value)>-1;else if(Ad(t))o=t.has(a.props.value);else{if(t===n)return;o=Er(t,h6(e,!0))}e.checked!==o&&(e.checked=o)}const f6={created(e,{value:t},n){e.checked=Er(t,n.props.value),e[ol]=Ss(n),Pl(e,"change",()=>{e[ol](p6(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[ol]=Ss(a),t!==n&&(e.checked=Er(t,a.props.value))}};function p6(e){return"_value"in e?e._value:e.value}function h6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iS=["ctrl","shift","alt","meta"],uS={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>iS.some(n=>e[`${n}Key`]&&!t.includes(n))},Je=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...l)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const l=vl(o.key);if(t.some(r=>r===l||cS[r]===l))return e(o)})},dS=Rn({patchProp:Z_},L_);let h1;function v6(){return h1||(h1=g_(dS))}const Wl=(...e)=>{v6().render(...e)},m6=(...e)=>{const t=v6().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=pS(a);if(!o)return;const l=t._component;!Fe(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,fS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function fS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pS(e){return Be(e)?document.querySelector(e):e}const Ce={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},v1=["left","center","right"],hS=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],qf=["sun","mon","tue","wed","thu","fri","sat"],ot="update:modelValue",bt="change",wn="input",Wd=11,g6=2,m1=Symbol("INSTALLED_KEY"),io=["","default","small","large"];function y6(e,t){var n;const a=qt();return da(()=>{a.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Tr(a)}function Dr(e){return X4()?(J4(e),!0):!1}function qn(e){return typeof e=="function"?e():i(e)}function vS(e){if(!Yt(e))return Rt(e);const t=new Proxy({},{get(n,a,o){return i(Reflect.get(e.value,a,o))},set(n,a,o){return Yt(e.value[a])&&!Yt(o)?e.value[a].value=o:e.value[a]=o,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Rt(t)}function mS(e){return vS(x(e))}const At=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gS=e=>typeof e<"u",b6=e=>e!=null,yS=Object.prototype.toString,bS=e=>yS.call(e)==="[object Object]",w6=(e,t,n)=>Math.min(n,Math.max(t,e)),Ga=()=>{},ed=wS();function wS(){var e,t;return At&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function C6(e,t){function n(...a){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(l)})}return n}function CS(e,t={}){let n,a,o=Ga;const l=s=>{clearTimeout(s),o(),o=Ga};return s=>{const u=qn(e),c=qn(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&l(n),a=null,d(s())},c)),n=setTimeout(()=>{a&&l(a),a=null,d(s())},u)})}}function _S(...e){let t=0,n,a=!0,o=Ga,l,r,s,u,c;!Yt(e[0])&&typeof e[0]=="object"?{delay:r,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,s=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=Ga)};return h=>{const g=qn(r),p=Date.now()-t,v=()=>l=h();return d(),g<=0?(t=Date.now(),v()):(p>g&&(u||!a)?(t=Date.now(),v()):s&&(l=new Promise((m,y)=>{o=c?y:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-p))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,l)}}function SS(e){return vt()}function gu(e,t=200,n={}){return C6(CS(t,n),e)}function xS(e,t=200,n={}){const a=V(e.value),o=gu(()=>{a.value=e.value},t,n);return fe(e,()=>o()),a}function _6(e,t=200,n=!1,a=!0,o=!1){return C6(_S(t,n,a,o),e)}function Op(e,t=!0,n){SS()?gt(e,n):t?e():Le(e)}function xs(e,t,n={}){const{immediate:a=!0}=n,o=V(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function s(){o.value=!1,r()}function u(...c){r(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},qn(t))}return a&&(o.value=!0,At&&u()),Dr(s),{isPending:Tr(o),start:u,stop:s}}const uo=At?window:void 0,kS=At?window.document:void 0;function xn(e){var t;const n=qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vt(...e){let t,n,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,o]=e,t=uo):[t,n,a,o]=e,!t)return Ga;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),u=fe(()=>[xn(t),qn(o)],([d,f])=>{if(r(),!d)return;const h=bS(f)?{...f}:f;l.push(...n.flatMap(g=>a.map(p=>s(d,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Dr(c),c}let g1=!1;function $p(e,t,n={}){const{window:a=uo,ignore:o=[],capture:l=!0,detectIframe:r=!1}=n;if(!a)return Ga;ed&&!g1&&(g1=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",Ga)),a.document.documentElement.addEventListener("click",Ga));let s=!0;const u=v=>qn(o).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=xn(m);return y&&(v.target===y||v.composedPath().includes(y))}});function c(v){const m=qn(v);return m&&m.$.subTree.shapeFlag===16}function d(v,m){const y=qn(v),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===m.target||m.composedPath().includes(w.el))}const f=v=>{const m=xn(e);if(v.target!=null&&!(!(m instanceof Element)&&c(e)&&d(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(s=!u(v)),!s){s=!0;return}t(v)}};let h=!1;const g=[Vt(a,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(v))},{passive:!0,capture:l}),Vt(a,"pointerdown",v=>{const m=xn(e);s=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Vt(a,"blur",v=>{setTimeout(()=>{var m;const y=xn(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(a.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>g.forEach(v=>v())}function ES(){const e=V(!1),t=vt();return t&>(()=>{e.value=!0},t),e}function jd(e){const t=ES();return x(()=>(t.value,!!e()))}function yu(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=jd(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const h=qn(e),g=(Array.isArray(h)?h:[h]).map(xn).filter(b6);return new Set(g)}),c=fe(()=>u.value,h=>{s(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{c(),s()};return Dr(f),{isSupported:r,stop:f,takeRecords:d}}function TS(e={}){var t;const{window:n=uo,deep:a=!0,triggerOnRemoval:o=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(a)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},s=V(),u=()=>{s.value=r()};return n&&(Vt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Vt(n,"focus",u,!0)),o&&yu(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function MS(e,t={}){const{window:n=uo}=t,a=jd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=V(!1),r=c=>{l.value=c.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},u=da(()=>{a.value&&(s(),o=n.matchMedia(qn(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return Dr(()=>{u(),s(),o=void 0}),l}function OS(e){return JSON.parse(JSON.stringify(e))}function $S(e,t,n={}){const{window:a=uo,initialValue:o,observe:l=!1}=n,r=V(o),s=x(()=>{var c;return xn(t)||((c=a==null?void 0:a.document)==null?void 0:c.documentElement)});function u(){var c;const d=qn(e),f=qn(s);if(f&&a&&d){const h=(c=a.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||o}}return l&&yu(s,u,{attributeFilter:["style","class"],window:a}),fe([s,()=>qn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),fe(r,c=>{var d;const f=qn(e);(d=s.value)!=null&&d.style&&f&&(c==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,c))}),r}function AS(e={}){const{document:t=kS}=e;if(!t)return V("visible");const n=V(t.visibilityState);return Vt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function Zt(e,t,n={}){const{window:a=uo,...o}=n;let l;const r=jd(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const f=qn(e);return Array.isArray(f)?f.map(h=>xn(h)):[xn(f)]}),c=fe(u,f=>{if(s(),r.value&&a){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return Dr(d),{isSupported:r,stop:d}}function y1(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:r="sync"}=t,s=V(0),u=V(0),c=V(0),d=V(0),f=V(0),h=V(0),g=V(0),p=V(0);function v(){const y=xn(e);if(!y){n&&(s.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,g.value=0,p.value=0);return}const b=y.getBoundingClientRect();s.value=b.height,u.value=b.bottom,c.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,p.value=b.y}function m(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return Zt(e,m),fe(()=>xn(e),y=>!y&&m()),yu(e,m,{attributeFilter:["style","class"]}),o&&Vt("scroll",m,{capture:!0,passive:!0}),a&&Vt("resize",m,{passive:!0}),Op(()=>{l&&m()}),{height:s,bottom:u,left:c,right:d,top:f,width:h,x:g,y:p,update:m}}function j0(e,t={width:0,height:0},n={}){const{window:a=uo,box:o="content-box"}=n,l=x(()=>{var f,h;return(h=(f=xn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=V(t.width),s=V(t.height),{stop:u}=Zt(e,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&l.value){const g=xn(e);if(g){const p=g.getBoundingClientRect();r.value=p.width,s.value=p.height}}else if(h){const g=Array.isArray(h)?h:[h];r.value=g.reduce((p,{inlineSize:v})=>p+v,0),s.value=g.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,s.value=f.contentRect.height},n);Op(()=>{const f=xn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=fe(()=>xn(e),f=>{r.value=f?t.width:0,s.value=f?t.height:0});function d(){u(),c()}return{width:r,height:s,stop:d}}function RS(e,t,n={}){const{root:a,rootMargin:o="0px",threshold:l=0,window:r=uo,immediate:s=!0}=n,u=jd(()=>r&&"IntersectionObserver"in r),c=x(()=>{const p=qn(e);return(Array.isArray(p)?p:[p]).map(xn).filter(b6)});let d=Ga;const f=V(s),h=u.value?fe(()=>[c.value,xn(a),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const m=new IntersectionObserver(t,{root:xn(v),rootMargin:o,threshold:l});p.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=Ga}},{immediate:s,flush:"post"}):Ga,g=()=>{d(),h(),f.value=!1};return Dr(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function S6(e,t,n,a={}){var o,l,r;const{clone:s=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=a,g=vt(),p=n||(g==null?void 0:g.emit)||((o=g==null?void 0:g.$emit)==null?void 0:o.bind(g))||((r=(l=g==null?void 0:g.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=w=>s?typeof s=="function"?s(w):OS(w):w,y=()=>gS(e[t])?m(e[t]):f,b=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=y(),_=V(w);let S=!1;return fe(()=>e[t],k=>{S||(S=!0,_.value=m(k),Le(()=>S=!1))}),fe(_,k=>{!S&&(k!==e[t]||d)&&b(k)},{deep:d}),_}else return x({get(){return y()},set(w){b(w)}})}function NS(e={}){const{window:t=uo}=e;if(!t)return V(!1);const n=V(t.document.hasFocus());return Vt(t,"blur",()=>{n.value=!1}),Vt(t,"focus",()=>{n.value=!0}),n}function Ap(e={}){const{window:t=uo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:r="inner"}=e,s=V(n),u=V(a),c=()=>{t&&(r==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):l?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),Op(c),Vt("resize",c,{passive:!0}),o){const d=MS("(orientation: portrait)");fe(d,()=>c())}return{width:s,height:u}}const qd=()=>At&&/firefox/i.test(window.navigator.userAgent),x6=()=>At&&/android/i.test(window.navigator.userAgent);var k6=typeof global=="object"&&global&&global.Object===Object&&global,PS=typeof self=="object"&&self&&self.Object===Object&&self,co=k6||PS||Function("return this")(),Ha=co.Symbol,E6=Object.prototype,IS=E6.hasOwnProperty,LS=E6.toString,si=Ha?Ha.toStringTag:void 0;function VS(e){var t=IS.call(e,si),n=e[si];try{e[si]=void 0;var a=!0}catch{}var o=LS.call(e);return a&&(t?e[si]=n:delete e[si]),o}var BS=Object.prototype,zS=BS.toString;function DS(e){return zS.call(e)}var HS="[object Null]",FS="[object Undefined]",b1=Ha?Ha.toStringTag:void 0;function Hr(e){return e==null?e===void 0?FS:HS:b1&&b1 in Object(e)?VS(e):DS(e)}function Lo(e){return e!=null&&typeof e=="object"}var KS="[object Symbol]";function Ud(e){return typeof e=="symbol"||Lo(e)&&Hr(e)==KS}function Rp(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=gx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Cx(e){return function(){return e}}var td=function(){try{var e=Kr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_x=td?function(e,t){return td(e,"toString",{configurable:!0,enumerable:!1,value:Cx(t),writable:!0})}:Np,O6=wx(_x);function Sx(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var Mx=9007199254740991,Ox=/^(?:0|[1-9]\d*)$/;function Yd(e,t){var n=typeof e;return t=t??Mx,!!t&&(n=="number"||n!="symbol"&&Ox.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Rx}function js(e){return e!=null&&Lp(e.length)&&!Pp(e)}function Nx(e,t,n){if(!ha(n))return!1;var a=typeof t;return(a=="number"?js(n)&&Yd(t,n.length):a=="string"&&t in n)?bu(n[t],e):!1}function Px(e){return R6(function(t,n){var a=-1,o=n.length,l=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(o--,l):void 0,r&&Nx(n[0],n[1],r)&&(l=o<3?void 0:l,o=1),t=Object(t);++a-1}function W7(e,t){var n=this.__data__,a=Xd(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function yl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?_u(s,t-1,n,a,o):Hp(o,s):a||(o[o.length]=s)}return o}function nd(e){var t=e==null?0:e.length;return t?_u(e,1):[]}function B6(e){return O6(A6(e,void 0,nd),e+"")}var Fp=V6(Object.getPrototypeOf,Object),lk="[object Object]",rk=Function.prototype,sk=Object.prototype,z6=rk.toString,ik=sk.hasOwnProperty,uk=z6.call(Object);function Kp(e){if(!Lo(e)||Hr(e)!=lk)return!1;var t=Fp(e);if(t===null)return!0;var n=ik.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&z6.call(n)==uk}function ck(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++a=t?e:t)),e}function fr(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Mi(n),n=n===n?n:0),t!==void 0&&(t=Mi(t),t=t===t?t:0),dk(Mi(e),t,n)}function fk(){this.__data__=new yl,this.size=0}function pk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hk(e){return this.__data__.get(e)}function vk(e){return this.__data__.has(e)}var mk=200;function gk(e,t){var n=this.__data__;if(n instanceof yl){var a=n.__data__;if(!Ui||a.lengths))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&jE?new Yi:void 0;for(l.set(e,t),l.set(t,e);++f=t||T<0||f&&M>=l}function y(){var k=Xf();if(m(k))return b(k);s=setTimeout(y,v(k))}function b(k){return s=void 0,h&&a?g(k):(a=o=void 0,r)}function w(){s!==void 0&&clearTimeout(s),c=0,a=u=o=s=void 0}function _(){return s===void 0?r:b(Xf())}function S(){var k=Xf(),T=m(k);if(a=arguments,o=this,u=k,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),r}return S.cancel=w,S.flush=_,S}function X0(e,t,n){(n!==void 0&&!bu(e[t],n)||n===void 0&&!(t in e))&&Gd(e,t,n)}function o8(e){return Lo(e)&&js(e)}function J0(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function PT(e){return Ws(e,Cu(e))}function IT(e,t,n,a,o,l,r){var s=J0(e,n),u=J0(t,n),c=r.get(u);if(c){X0(e,n,c);return}var d=l?l(s,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var h=pa(u),g=!h&&ji(u),p=!h&&!g&&zp(u);d=u,h||g||p?pa(s)?d=s:o8(s)?d=M6(s):g?(f=!1,d=H6(u,!0)):p?(f=!1,d=q6(u,!0)):d=[]:Kp(u)||Wi(u)?(d=s,Wi(s)?d=PT(s):(!ha(s)||Pp(s))&&(d=U6(u))):f=!1}f&&(r.set(u,d),o(d,u,a,l,r),r.delete(u)),X0(e,n,d)}function l8(e,t,n,a,o){e!==t&&a8(t,function(l,r){if(o||(o=new Xa),ha(l))IT(e,t,r,n,l8,a,o);else{var s=a?a(J0(e,r),l,r+"",e,t,o):void 0;s===void 0&&(s=l),X0(e,r,s)}},Cu)}function LT(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function r8(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return $6(e,n8(t),o,!0)}function VT(e,t){var n=-1,a=js(e)?Array(e.length):[];return $T(e,function(o,l,r){a[++n]=t(o,l,r)}),a}function BT(e,t){var n=pa(e)?Rp:VT;return n(e,n8(t))}function s8(e,t){return _u(BT(e,t),1)}var zT=1/0;function DT(e){var t=e==null?0:e.length;return t?_u(e,zT):[]}function Es(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),l}),Ws(e,j6(e),n),a&&(n=$i(n,UT|YT|GT,qT));for(var o=t.length;o--;)jT(n,t[o]);return n});function u8(e,t,n,a){if(!ha(e))return e;t=qs(t,e);for(var o=-1,l=t.length,r=l-1,s=e;s!=null&&++o=nM){var c=tM(e);if(c)return qp(c);r=!1,o=J6,u=new Yi}else u=s;e:for(;++ae===void 0,Dt=e=>typeof e=="boolean",He=e=>typeof e=="number",ca=e=>!e&&e!==0||be(e)&&e.length===0||lt(e)&&!Object.keys(e).length,ga=e=>typeof Element>"u"?!1:e instanceof Element,ya=e=>gn(e),oM=e=>Be(e)?!Number.isNaN(Number(e)):!1,xu=e=>e===window,Ol=new Map;if(At){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Ol.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function Y1(e,t){let n=[];return be(t.arg)?n=t.arg:ga(t.arg)&&n.push(t.arg),function(a,o){const l=t.instance.popperRef,r=a.target,s=o==null?void 0:o.target,u=!t||!t.instance,c=!r||!s,d=e.contains(r)||e.contains(s),f=e===r,h=n.length&&n.some(p=>p==null?void 0:p.contains(r))||n.length&&n.includes(s),g=l&&(l.contains(r)||l.contains(s));u||c||d||f||h||g||t.value(a,o)}}const jl={beforeMount(e,t){Ol.has(e)||Ol.set(e,[]),Ol.get(e).push({documentHandler:Y1(e,t),bindingFn:t.value})},updated(e,t){Ol.has(e)||Ol.set(e,[]);const n=Ol.get(e),a=n.findIndex(l=>l.bindingFn===t.oldValue),o={documentHandler:Y1(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Ol.delete(e)}},lM=100,rM=600,tc="_RepeatClick",od={beforeMount(e,t){const n=t.value,{interval:a=lM,delay:o=rM}=Fe(n)?{}:n;let l,r;const s=()=>Fe(n)?n():n.handler(),u=()=>{r&&(clearTimeout(r),r=void 0),l&&(clearInterval(l),l=void 0)},c=d=>{d.button===0&&(u(),s(),document.addEventListener("mouseup",u,{once:!0}),r=setTimeout(()=>{l=setInterval(()=>{s()},a)},o))};e[tc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[tc])return;const{start:t,clear:n}=e[tc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[tc]=null}},sM='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',c8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,G1=e=>typeof Element>"u"?!1:e instanceof Element,iM=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,X1=e=>Array.from(e.querySelectorAll(sM)).filter(t=>Ar(t)&&iM(t)),Ar=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},kc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},d8=e=>!e.getAttribute("aria-owns"),f8=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},ku=(e,t)=>{if(!e||!e.focus)return;let n=!1;G1(e)&&!Ar(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),G1(e)&&n&&e.removeAttribute("tabindex")},Ec=e=>{e&&(ku(e),!d8(e)&&e.click())},On=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=e==null?void 0:e(o);if(n===!1||!l)return t==null?void 0:t(o)},J1=e=>t=>t.pointerType==="mouse"?e(t):void 0,Kt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=p8(e);if(t){if(Object.values(Ce).includes(t))return t;switch(t){case" ":return Ce.space;default:return""}}return""},p8=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&x6()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},Z0="_trap-focus-children",pr=[],Z1=e=>{if(pr.length===0)return;const t=Kt(e),n=pr[pr.length-1][Z0];if(n.length>0&&t===Ce.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],l=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),l&&!a&&(e.preventDefault(),n[0].focus())}},uM={beforeMount(e){e[Z0]=X1(e),pr.push(e),pr.length<=1&&document.addEventListener("keydown",Z1)},updated(e){Le(()=>{e[Z0]=X1(e)})},unmounted(){pr.shift(),pr.length===0&&document.removeEventListener("keydown",Z1)}};var Q1=!1,ir,Q0,e2,Tc,Mc,h8,Oc,t2,n2,a2,v8,o2,l2,m8,g8;function ma(){if(!Q1){Q1=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(o2=/\b(iPhone|iP[ao]d)/.exec(e),l2=/\b(iP[ao]d)/.exec(e),a2=/Android/i.exec(e),m8=/FBAN\/\w+;/i.exec(e),g8=/Mobile/i.exec(e),v8=!!/Win64/.exec(e),t){ir=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ir&&document&&document.documentMode&&(ir=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);h8=a?parseFloat(a[1])+4:ir,Q0=t[2]?parseFloat(t[2]):NaN,e2=t[3]?parseFloat(t[3]):NaN,Tc=t[4]?parseFloat(t[4]):NaN,Tc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Mc=t&&t[1]?parseFloat(t[1]):NaN):Mc=NaN}else ir=Q0=e2=Mc=Tc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Oc=o?parseFloat(o[1].replace("_",".")):!0}else Oc=!1;t2=!!n[2],n2=!!n[3]}else Oc=t2=n2=!1}}var r2={ie:function(){return ma()||ir},ieCompatibilityMode:function(){return ma()||h8>ir},ie64:function(){return r2.ie()&&v8},firefox:function(){return ma()||Q0},opera:function(){return ma()||e2},webkit:function(){return ma()||Tc},safari:function(){return r2.webkit()},chrome:function(){return ma()||Mc},windows:function(){return ma()||t2},osx:function(){return ma()||Oc},linux:function(){return ma()||n2},iphone:function(){return ma()||o2},mobile:function(){return ma()||o2||l2||a2||g8},nativeApp:function(){return ma()||m8},android:function(){return ma()||a2},ipad:function(){return ma()||l2}},cM=r2,dM=!!(typeof window<"u"&&window.document&&window.document.createElement),fM={canUseDOM:dM},y8=fM,b8;y8.canUseDOM&&(b8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function pM(e,t){if(!y8.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&b8&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var hM=pM,em=10,tm=40,nm=800;function w8(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*em,o=n*em,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=tm,o*=tm):(a*=nm,o*=nm)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}w8.getEventType=function(){return cM.firefox()?"DOMMouseScroll":hM("wheel")?"wheel":"mousewheel"};var vM=w8;/** -* Checks if an event is supported in the current execution environment. -* -* NOTE: This will not work correctly for non-generic events such as `change`, -* `reset`, `load`, `error`, and `select`. -* -* Borrows from Modernizr. -* -* @param {string} eventNameSuffix Event name, e.g. "click". -* @param {?boolean} capture Check if the capture phase is supported. -* @return {boolean} True if the event is supported. -* @internal -* @license Modernizr 3.0.0pre (Custom Build) | MIT -*/const $c="_Mousewheel",am=function(e,t){if(e&&e.addEventListener){C8(e);const n=function(a){const o=vM(a);t&&Reflect.apply(t,this,[a,o])};e[$c]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},C8=e=>{var t;(t=e[$c])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[$c].wheelHandler),e[$c]=null)},mM={beforeMount(e,t){am(e,t.value)},unmounted(e){C8(e)},updated(e,t){t.value!==t.oldValue&&am(e,t.value)}},Gi=e=>Object.keys(e),_8=e=>Object.entries(e),zl=(e,t,n)=>({get value(){return bn(e,t,n)},set value(a){ZT(e,t,a)}}),S8="__epPropKey",J=e=>e,gM=e=>lt(e)&&!!e[S8],fo=(e,t)=>{if(!lt(e)||gM(e))return e;const{values:n,required:a,default:o,type:l,validator:r}=e,s={type:l,required:!!a,validator:n||r?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),Mt(e,"default")&&d.push(o),c||(c=d.includes(u))),r&&(c||(c=r(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");N_(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[S8]:!0};return Mt(e,"default")&&(s.default=o),s},_e=e=>Es(Object.entries(e).map(([t,n])=>[t,fo(n,t)])),Eu=_e({to:{type:J([String,Object]),required:!0},disabled:Boolean}),yM=_e({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Eu.to.type,default:"body"}}),bM={scroll:({scrollTop:e,fixed:t})=>He(e)&&Dt(t),[bt]:e=>Dt(e)};var x8=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function en(e,t){throw new x8(`[${e}] ${t}`)}function pt(e,t){{const n=Be(e)?new x8(`[${e}] ${t}`):e;console.warn(n)}}const wM=["class","style"],CM=/^on[A-Z]/,nf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(wM)),o=vt();return o?x(()=>{var l;return Es(Object.entries((l=o.proxy)==null?void 0:l.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&CM.test(r))))}):(pt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x(()=>({})))};function Up(){const e=qt(),t=V(0),n=x(()=>({minWidth:`${Math.max(t.value,Wd)}px`}));return Zt(e,()=>{var o;t.value=((o=e.value)==null?void 0:o.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const $o=({from:e,replacement:t,scope:n,version:a,ref:o,type:l="API"},r)=>{fe(()=>i(r),s=>{s&&pt(n,`[${l}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. -For more detail, please visit: ${o} -`)},{immediate:!0})},Yp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Zf=e=>pu(e),_M="utils/dom/style",k8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ao=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ba=(e,t)=>{!e||!t.trim()||e.classList.add(...k8(t))},aa=(e,t)=>{!e||!t.trim()||e.classList.remove(...k8(t))},Zo=(e,t)=>{var a;if(!At||!e||!t||c8(e))return"";let n=Hn(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},E8=(e,t,n)=>{if(!(!e||!t))if(lt(t))_8(t).forEach(([a,o])=>E8(e,a,o));else{const a=Hn(t);e.style[a]=n}};function ln(e,t="px"){if(!e&&e!==0)return"";if(He(e)||oM(e))return`${e}${t}`;if(Be(e))return e;pt(_M,"binding value must be a string or number")}const T8=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=V(!1),r=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,w=m.width,_=m.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-y+p,M=-b+v,A=S-y-w+p,O=k-b-(_{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=w=>{l.value||(l.value=!0),r(v+w.clientX-g,m+w.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;r(h,g)};return gt(()=>{da(()=>{n.value?u():c()})}),Lt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var SM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const xM=e=>(t,n)=>kM(t,n,i(e)),kM=(e,t,n)=>bn(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),EM=e=>({lang:x(()=>i(e).name),locale:Yt(e)?e:V(e),t:xM(e)}),M8=Symbol("localeContextKey"),kt=e=>{const t=e||Pe(M8,V());return EM(x(()=>t.value||SM))},Ai="el",TM="is-",nr=(e,t,n,a,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),a&&(l+=`__${a}`),o&&(l+=`--${o}`),l},O8=Symbol("namespaceContextKey"),Gp=e=>{const t=e||(vt()?Pe(O8,V(Ai)):V(Ai));return x(()=>i(t)||Ai)},ve=(e,t)=>{const n=Gp(t);return{namespace:n,b:(v="")=>nr(n.value,e,v,"",""),e:v=>v?nr(n.value,e,"",v,""):"",m:v=>v?nr(n.value,e,"","",v):"",be:(v,m)=>v&&m?nr(n.value,e,v,m,""):"",em:(v,m)=>v&&m?nr(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?nr(n.value,e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?nr(n.value,e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${TM}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${e}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function MM(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Fa=e=>At?window.requestAnimationFrame(e):setTimeout(e,16),cl=e=>At?window.cancelAnimationFrame(e):clearTimeout(e),OM=(e,t)=>{if(!At)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=Zo(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},Xp=(e,t)=>{if(!At)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(OM(n,t))return n;c8(n)?n=n.host:n=n.parentNode}return n};let nc;const $8=e=>{var l;if(!At)return 0;if(nc!==void 0)return nc;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),nc=n-o,nc};function Jp(e,t){if(!At)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=o+t.offsetHeight,r=e.scrollTop,s=r+e.clientHeight;os&&(e.scrollTop=l-e.clientHeight)}function $M(e,t,n,a,o){const l=Date.now();let r;const s=()=>{const u=Date.now()-l,c=MM(u>a?a:u,t,n,a);xu(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{r&&cl(r)}}const om=(e,t)=>xu(t)?e.ownerDocument.documentElement:t,lm=e=>xu(e)?window.scrollY:e.scrollTop,af=(e,t={})=>{Yt(e)||en("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ve("popup"),a=x(()=>n.bm("parent","hidden"));let o=0,l=!1,r="0",s=!1;const u=()=>{s||(s=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=r,aa(document.body,a.value))},200))};fe(e,c=>{if(!c){u();return}s=!1,l=!Ao(document.body,a.value),l&&(r=document.body.style.width,Ba(document.body,a.value)),o=$8(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${o}px)`)}),J4(()=>u())},AM=fo({type:J(Boolean),default:null}),RM=fo({type:J(Function)}),NM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:AM,[n]:RM};return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=vt(),{emit:g}=h,p=h.props,v=x(()=>Fe(p[n])),m=x(()=>p[e]===null),y=T=>{r.value!==!0&&(r.value=!0,s&&(s.value=T),Fe(d)&&d(T))},b=T=>{r.value!==!1&&(r.value=!1,s&&(s.value=T),Fe(f)&&f(T))},w=T=>{if(p.disabled===!0||Fe(c)&&!c())return;const M=v.value&&At;M&&g(t,!0),(m.value||!M)&&y(T)},_=T=>{if(p.disabled===!0||!At)return;const M=v.value&&At;M&&g(t,!1),(m.value||!M)&&b(T)},S=T=>{Dt(T)&&(p.disabled&&T?v.value&&g(t,!1):r.value!==T&&(T?y():b()))},k=()=>{r.value?_():w()};return fe(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&_()}),gt(()=>{S(p[e])}),{hide:_,show:w,toggle:k,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},A8=e=>{const t=vt();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})};var ba="top",Ka="bottom",Wa="right",wa="left",Zp="auto",Tu=[ba,Ka,Wa,wa],Ts="start",Xi="end",PM="clippingParents",R8="viewport",ii="popper",IM="reference",rm=Tu.reduce(function(e,t){return e.concat([t+"-"+Ts,t+"-"+Xi])},[]),Ho=[].concat(Tu,[Zp]).reduce(function(e,t){return e.concat([t,t+"-"+Ts,t+"-"+Xi])},[]),LM="beforeRead",VM="read",BM="afterRead",zM="beforeMain",DM="main",HM="afterMain",FM="beforeWrite",KM="write",WM="afterWrite",jM=[LM,VM,BM,zM,DM,HM,FM,KM,WM];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function Ra(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rr(e){var t=Ra(e).Element;return e instanceof t||e instanceof Element}function Da(e){var t=Ra(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qp(e){if(typeof ShadowRoot>"u")return!1;var t=Ra(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!Da(l)||!Bo(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(r){var s=o[r];s===!1?l.removeAttribute(r):l.setAttribute(r,s===!0?"":s)}))})}function UM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],l=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=r.reduce(function(u,c){return u[c]="",u},{});!Da(o)||!Bo(o)||(Object.assign(o.style,s),Object.keys(l).forEach(function(u){o.removeAttribute(u)}))})}}var N8={name:"applyStyles",enabled:!0,phase:"write",fn:qM,effect:UM,requires:["computeStyles"]};function Ro(e){return e.split("-")[0]}var _r=Math.max,ld=Math.min,Ms=Math.round;function s2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function P8(){return!/^((?!chrome|android).)*safari/i.test(s2())}function Os(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,l=1;t&&Da(e)&&(o=e.offsetWidth>0&&Ms(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Ms(a.height)/e.offsetHeight||1);var r=Rr(e)?Ra(e):window,s=r.visualViewport,u=!P8()&&n,c=(a.left+(u&&s?s.offsetLeft:0))/o,d=(a.top+(u&&s?s.offsetTop:0))/l,f=a.width/o,h=a.height/l;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function eh(e){var t=Os(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function I8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qp(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function dl(e){return Ra(e).getComputedStyle(e)}function YM(e){return["table","td","th"].indexOf(Bo(e))>=0}function Gl(e){return((Rr(e)?e.ownerDocument:e.document)||window.document).documentElement}function of(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(Qp(e)?e.host:null)||Gl(e)}function sm(e){return!Da(e)||dl(e).position==="fixed"?null:e.offsetParent}function GM(e){var t=/firefox/i.test(s2()),n=/Trident/i.test(s2());if(n&&Da(e)){var a=dl(e);if(a.position==="fixed")return null}var o=of(e);for(Qp(o)&&(o=o.host);Da(o)&&["html","body"].indexOf(Bo(o))<0;){var l=dl(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Mu(e){for(var t=Ra(e),n=sm(e);n&&YM(n)&&dl(n).position==="static";)n=sm(n);return n&&(Bo(n)==="html"||Bo(n)==="body"&&dl(n).position==="static")?t:n||GM(e)||t}function th(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ri(e,t,n){return _r(e,ld(t,n))}function XM(e,t,n){var a=Ri(e,t,n);return a>n?n:a}function L8(){return{top:0,right:0,bottom:0,left:0}}function V8(e){return Object.assign({},L8(),e)}function B8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var JM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,V8(typeof e!="number"?e:B8(e,Tu))};function ZM(e){var t,n=e.state,a=e.name,o=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,s=Ro(n.placement),u=th(s),c=[wa,Wa].indexOf(s)>=0,d=c?"height":"width";if(!(!l||!r)){var f=JM(o.padding,n),h=eh(l),g=u==="y"?ba:wa,p=u==="y"?Ka:Wa,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],m=r[u]-n.rects.reference[u],y=Mu(l),b=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-m/2,_=f[g],S=b-h[d]-f[p],k=b/2-h[d]/2+w,T=Ri(_,k,S),M=u;n.modifiersData[a]=(t={},t[M]=T,t.centerOffset=T-k,t)}}function QM(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||I8(t.elements.popper,o)&&(t.elements.arrow=o))}var eO={name:"arrow",enabled:!0,phase:"main",fn:ZM,effect:QM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $s(e){return e.split("-")[1]}var tO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nO(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Ms(n*o)/o||0,y:Ms(a*o)/o||0}}function im(e){var t,n=e.popper,a=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,g=h===void 0?0:h,p=r.y,v=p===void 0?0:p,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var y=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),w=wa,_=ba,S=window;if(c){var k=Mu(n),T="clientHeight",M="clientWidth";if(k===Ra(n)&&(k=Gl(n),dl(k).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),k=k,o===ba||(o===wa||o===Wa)&&l===Xi){_=Ka;var A=f&&k===S&&S.visualViewport?S.visualViewport.height:k[T];v-=A-a.height,v*=u?1:-1}if(o===wa||(o===ba||o===Ka)&&l===Xi){w=Wa;var O=f&&k===S&&S.visualViewport?S.visualViewport.width:k[M];g-=O-a.width,g*=u?1:-1}}var I=Object.assign({position:s},c&&tO),L=d===!0?nO({x:g,y:v},Ra(n)):{x:g,y:v};if(g=L.x,v=L.y,u){var z;return Object.assign({},I,(z={},z[_]=b?"0":"",z[w]=y?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",z))}return Object.assign({},I,(t={},t[_]=b?v+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function aO(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,l=n.adaptive,r=l===void 0?!0:l,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Ro(t.placement),variation:$s(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,im(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,im(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var z8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aO,data:{}},ac={passive:!0};function oO(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,l=o===void 0?!0:o,r=a.resize,s=r===void 0?!0:r,u=Ra(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,ac)}),s&&u.addEventListener("resize",n.update,ac),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ac)}),s&&u.removeEventListener("resize",n.update,ac)}}var D8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oO,data:{}},lO={left:"right",right:"left",bottom:"top",top:"bottom"};function Ac(e){return e.replace(/left|right|bottom|top/g,function(t){return lO[t]})}var rO={start:"end",end:"start"};function um(e){return e.replace(/start|end/g,function(t){return rO[t]})}function nh(e){var t=Ra(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ah(e){return Os(Gl(e)).left+nh(e).scrollLeft}function sO(e,t){var n=Ra(e),a=Gl(e),o=n.visualViewport,l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;var c=P8();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:l,height:r,x:s+ah(e),y:u}}function iO(e){var t,n=Gl(e),a=nh(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=_r(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=_r(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-a.scrollLeft+ah(e),u=-a.scrollTop;return dl(o||n).direction==="rtl"&&(s+=_r(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:r,x:s,y:u}}function oh(e){var t=dl(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function H8(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Da(e)&&oh(e)?e:H8(of(e))}function Ni(e,t){var n;t===void 0&&(t=[]);var a=H8(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),l=Ra(a),r=o?[l].concat(l.visualViewport||[],oh(a)?a:[]):a,s=t.concat(r);return o?s:s.concat(Ni(of(r)))}function i2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uO(e,t){var n=Os(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cm(e,t,n){return t===R8?i2(sO(e,n)):Rr(t)?uO(t,n):i2(iO(Gl(e)))}function cO(e){var t=Ni(of(e)),n=["absolute","fixed"].indexOf(dl(e).position)>=0,a=n&&Da(e)?Mu(e):e;return Rr(a)?t.filter(function(o){return Rr(o)&&I8(o,a)&&Bo(o)!=="body"}):[]}function dO(e,t,n,a){var o=t==="clippingParents"?cO(e):[].concat(t),l=[].concat(o,[n]),r=l[0],s=l.reduce(function(u,c){var d=cm(e,c,a);return u.top=_r(d.top,u.top),u.right=ld(d.right,u.right),u.bottom=ld(d.bottom,u.bottom),u.left=_r(d.left,u.left),u},cm(e,r,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function F8(e){var t=e.reference,n=e.element,a=e.placement,o=a?Ro(a):null,l=a?$s(a):null,r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(o){case ba:u={x:r,y:t.y-n.height};break;case Ka:u={x:r,y:t.y+t.height};break;case Wa:u={x:t.x+t.width,y:s};break;case wa:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?th(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ts:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Xi:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Ji(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,l=n.strategy,r=l===void 0?e.strategy:l,s=n.boundary,u=s===void 0?PM:s,c=n.rootBoundary,d=c===void 0?R8:c,f=n.elementContext,h=f===void 0?ii:f,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,y=V8(typeof m!="number"?m:B8(m,Tu)),b=h===ii?IM:ii,w=e.rects.popper,_=e.elements[p?b:h],S=dO(Rr(_)?_:_.contextElement||Gl(e.elements.popper),u,d,r),k=Os(e.elements.reference),T=F8({reference:k,element:w,placement:o}),M=i2(Object.assign({},w,T)),A=h===ii?M:k,O={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},I=e.modifiersData.offset;if(h===ii&&I){var L=I[o];Object.keys(O).forEach(function(z){var q=[Wa,Ka].indexOf(z)>=0?1:-1,U=[ba,Ka].indexOf(z)>=0?"y":"x";O[z]+=L[U]*q})}return O}function fO(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,l=n.rootBoundary,r=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Ho:u,d=$s(a),f=d?s?rm:rm.filter(function(p){return $s(p)===d}):Tu,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var g=h.reduce(function(p,v){return p[v]=Ji(e,{placement:v,boundary:o,rootBoundary:l,padding:r})[Ro(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function pO(e){if(Ro(e)===Zp)return[];var t=Ac(e);return[um(e),t,um(t)]}function hO(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,y=Ro(m),b=y===m,w=u||(b||!p?[Ac(m)]:pO(m)),_=[m].concat(w).reduce(function(ee,te){return ee.concat(Ro(te)===Zp?fO(t,{placement:te,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):te)},[]),S=t.rects.reference,k=t.rects.popper,T=new Map,M=!0,A=_[0],O=0;O<_.length;O++){var I=_[O],L=Ro(I),z=$s(I)===Ts,q=[ba,Ka].indexOf(L)>=0,U=q?"width":"height",F=Ji(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),N=q?z?Wa:wa:z?Ka:ba;S[U]>k[U]&&(N=Ac(N));var P=Ac(N),B=[];if(l&&B.push(F[L]<=0),s&&B.push(F[N]<=0,F[P]<=0),B.every(function(ee){return ee})){A=I,M=!1;break}T.set(I,B)}if(M)for(var K=p?3:1,W=function(ee){var te=_.find(function(ue){var ne=T.get(ue);if(ne)return ne.slice(0,ee).every(function(de){return de})});if(te)return A=te,"break"},j=K;j>0;j--){var G=W(j);if(G==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var vO={name:"flip",enabled:!0,phase:"main",fn:hO,requiresIfExists:["offset"],data:{_skip:!1}};function dm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fm(e){return[ba,Wa,Ka,wa].some(function(t){return e[t]>=0})}function mO(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,r=Ji(t,{elementContext:"reference"}),s=Ji(t,{altBoundary:!0}),u=dm(r,a),c=dm(s,o,l),d=fm(u),f=fm(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var gO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mO};function yO(e,t,n){var a=Ro(e),o=[wa,ba].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],s=l[1];return r=r||0,s=(s||0)*o,[wa,Wa].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function bO(e){var t=e.state,n=e.options,a=e.name,o=n.offset,l=o===void 0?[0,0]:o,r=Ho.reduce(function(d,f){return d[f]=yO(f,t.rects,l),d},{}),s=r[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}var wO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bO};function CO(e){var t=e.state,n=e.name;t.modifiersData[n]=F8({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var K8={name:"popperOffsets",enabled:!0,phase:"read",fn:CO,data:{}};function _O(e){return e==="x"?"y":"x"}function SO(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,m=Ji(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),y=Ro(t.placement),b=$s(t.placement),w=!b,_=th(y),S=_O(_),k=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(l){var z,q=_==="y"?ba:wa,U=_==="y"?Ka:Wa,F=_==="y"?"height":"width",N=k[_],P=N+m[q],B=N-m[U],K=g?-M[F]/2:0,W=b===Ts?T[F]:M[F],j=b===Ts?-M[F]:-T[F],G=t.elements.arrow,ee=g&&G?eh(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:L8(),ue=te[q],ne=te[U],de=Ri(0,T[F],ee[F]),se=w?T[F]/2-K-de-ue-O.mainAxis:W-de-ue-O.mainAxis,Y=w?-T[F]/2+K+de+ne+O.mainAxis:j+de+ne+O.mainAxis,X=t.elements.arrow&&Mu(t.elements.arrow),H=X?_==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(z=I==null?void 0:I[_])!=null?z:0,le=N+se-Z-H,ce=N+Y-Z,ge=Ri(g?ld(P,le):P,N,g?_r(B,ce):B);k[_]=ge,L[_]=ge-N}if(s){var me,Ae=_==="x"?ba:wa,Ne=_==="x"?Ka:Wa,Re=k[S],ye=S==="y"?"height":"width",Ee=Re+m[Ae],we=Re-m[Ne],Ie=[ba,wa].indexOf(y)!==-1,ze=(me=I==null?void 0:I[S])!=null?me:0,et=Ie?Ee:Re-T[ye]-M[ye]-ze+O.altAxis,nt=Ie?Re+T[ye]+M[ye]-ze-O.altAxis:we,at=g&&Ie?XM(et,Re,nt):Ri(g?et:Ee,Re,g?nt:we);k[S]=at,L[S]=at-Re}t.modifiersData[a]=L}}var xO={name:"preventOverflow",enabled:!0,phase:"main",fn:SO,requiresIfExists:["offset"]};function kO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EO(e){return e===Ra(e)||!Da(e)?nh(e):kO(e)}function TO(e){var t=e.getBoundingClientRect(),n=Ms(t.width)/e.offsetWidth||1,a=Ms(t.height)/e.offsetHeight||1;return n!==1||a!==1}function MO(e,t,n){n===void 0&&(n=!1);var a=Da(t),o=Da(t)&&TO(t),l=Gl(t),r=Os(e,o,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Bo(t)!=="body"||oh(l))&&(s=EO(t)),Da(t)?(u=Os(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ah(l))),{x:r.left+s.scrollLeft-u.x,y:r.top+s.scrollTop-u.y,width:r.width,height:r.height}}function OO(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&o(u)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),a}function $O(e){var t=OO(e);return jM.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function AO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function RO(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var pm={placement:"bottom",modifiers:[],strategy:"absolute"};function hm(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=VO(u);Object.assign(r.value,c)},requires:["computeStyles"]},o=x(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),l=qt(),r=V({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return fe(o,u=>{const c=i(l);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{s(),!(!u||!c)&&(l.value=IO(u,c,i(o)))}),Lt(()=>{s()}),{state:x(()=>{var u;return{...((u=i(l))==null?void 0:u.state)||{}}}),styles:x(()=>i(r).styles),attributes:x(()=>i(r).attributes),update:()=>{var u;return(u=i(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=i(l))==null?void 0:u.forceUpdate()},instanceRef:x(()=>i(l))}};function VO(e){const t=Object.keys(e.elements);return{styles:Es(t.map(n=>[n,e.styles[n]||{}])),attributes:Es(t.map(n=>[n,e.attributes[n]]))}}const rh=e=>{if(!e)return{onClick:It,onMousedown:It,onMouseup:It};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},BO=(e,t=0)=>{if(t===0)return e;const n=V(lt(t)&&!!t.initVal);let a=null;const o=r=>{if(Et(r)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},r)},l=r=>{r==="leading"?He(t)?o(t):o(t.leading):lt(t)?o(t.trailing):n.value=!1};return gt(()=>l("leading")),fe(()=>e.value,r=>{l(r?"leading":"trailing")}),n};function vm(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return Dr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const u2={prefix:Math.floor(Math.random()*1e4),current:0},zO=Symbol("elIdInjection"),sh=()=>vt()?Pe(zO,u2):u2,Kn=e=>{const t=sh();!At&&t===u2&&pt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed -usage: app.provide(ID_INJECTION_KEY, { - prefix: number, - current: number, -})`);const n=Gp();return y6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let as=[];const mm=e=>{Kt(e)===Ce.esc&&as.forEach(t=>t(e))},DO=e=>{gt(()=>{as.length===0&&document.addEventListener("keydown",mm),At&&as.push(e)}),Lt(()=>{as=as.filter(t=>t!==e),as.length===0&&At&&document.removeEventListener("keydown",mm)})},W8=()=>{const e=Gp(),t=sh(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},HO=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},FO=()=>{const{id:e,selector:t}=W8();return Hd(()=>{At&&(document.body.querySelector(t.value)||HO(e.value))}),{id:e,selector:t}},KO=_e({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),WO=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=vm(),{registerTimeout:r,cancelTimeout:s}=vm();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);He(h)&&h>0&&r(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},j8=Symbol("elForwardRef"),jO=e=>{wt(j8,{setForwardRef:n=>{e.value=n}})},qO=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),gm={current:0},ym=V(0),q8=2e3,bm=Symbol("elZIndexContextKey"),U8=Symbol("zIndexContextKey"),Ou=e=>{const t=vt()?Pe(bm,gm):gm,n=e||(vt()?Pe(U8,void 0):void 0),a=x(()=>{const r=i(n);return He(r)?r:q8}),o=x(()=>a.value+ym.value),l=()=>(t.current++,ym.value=t.current,o.value);return!At&&!Pe(bm)&&pt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed -usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},As=Math.min,Sr=Math.max,rd=Math.round,oc=Math.floor,No=e=>({x:e,y:e}),UO={left:"right",right:"left",bottom:"top",top:"bottom"};function c2(e,t,n){return Sr(e,As(t,n))}function $u(e,t){return typeof e=="function"?e(t):e}function Nr(e){return e.split("-")[0]}function Au(e){return e.split("-")[1]}function Y8(e){return e==="x"?"y":"x"}function ih(e){return e==="y"?"height":"width"}function Ll(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function uh(e){return Y8(Ll(e))}function YO(e,t,n){n===void 0&&(n=!1);const a=Au(e),o=uh(e),l=ih(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=sd(r)),[r,sd(r)]}function GO(e){const t=sd(e);return[d2(e),t,d2(t)]}function d2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const wm=["left","right"],Cm=["right","left"],XO=["top","bottom"],JO=["bottom","top"];function ZO(e,t,n){switch(e){case"top":case"bottom":return n?t?Cm:wm:t?wm:Cm;case"left":case"right":return t?XO:JO;default:return[]}}function QO(e,t,n,a){const o=Au(e);let l=ZO(Nr(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(d2)))),l}function sd(e){const t=Nr(e);return UO[t]+e.slice(t.length)}function e$(e){return{top:0,right:0,bottom:0,left:0,...e}}function G8(e){return typeof e!="number"?e$(e):{top:e,right:e,bottom:e,left:e}}function id(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function _m(e,t,n){let{reference:a,floating:o}=e;const l=Ll(t),r=uh(t),s=ih(r),u=Nr(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[s]/2-o[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Au(t)){case"start":g[r]-=h*(n&&c?-1:1);break;case"end":g[r]+=h*(n&&c?-1:1);break}return g}async function X8(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=$u(t,e),p=G8(g),m=s[h?f==="floating"?"reference":"floating":f],y=id(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),_=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=id(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+p.top)/_.y,bottom:(S.bottom-y.bottom+p.bottom)/_.y,left:(y.left-S.left+p.left)/_.x,right:(S.right-y.right+p.right)/_.x}}const t$=50,n$=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:X8},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=_m(c,a,u),h=a,g=0;const p={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=$u(e,t)||{};if(c==null)return{};const f=G8(d),h={x:n,y:a},g=uh(o),p=ih(g),v=await r.getDimensions(c),m=g==="y",y=m?"top":"left",b=m?"bottom":"right",w=m?"clientHeight":"clientWidth",_=l.reference[p]+l.reference[g]-h[g]-l.floating[p],S=h[g]-l.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=s.floating[w]||l.floating[p]);const M=_/2-S/2,A=T/2-v[p]/2-1,O=As(f[y],A),I=As(f[b],A),L=O,z=T-v[p]-I,q=T/2-v[p]/2+M,U=c2(L,q,z),F=!u.arrow&&Au(o)!=null&&q!==U&&l.reference[p]/2-(qq<=0)){var I,L;const q=(((I=l.flip)==null?void 0:I.index)||0)+1,U=T[q];if(U&&(!(f==="alignment"?b!==Ll(U):!1)||O.every(P=>Ll(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:q,overflows:O},reset:{placement:U}};let F=(L=O.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var z;const N=(z=O.filter(P=>{if(k){const B=Ll(P.placement);return B===b||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,K)=>B+K,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:z[0];N&&(F=N);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}},l$=new Set(["left","top"]);async function r$(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),r=Nr(n),s=Au(n),u=Ll(n)==="y",c=l$.has(r)?-1:1,d=l&&u?-1:1,f=$u(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),u?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const s$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:s}=t,u=await r$(t,e);return r===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:r}}}}},i$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=$u(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),h=Ll(Nr(o)),g=Y8(h);let p=d[g],v=d[h];if(r){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=p+f[y],_=p-f[b];p=c2(w,p,_)}if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+f[y],_=v-f[b];v=c2(w,v,_)}const m=u.fn({...t,[g]:p,[h]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:r,[h]:s}}}}}};function lf(){return typeof window<"u"}function Us(e){return J8(e)?(e.nodeName||"").toLowerCase():"#document"}function $a(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fo(e){var t;return(t=(J8(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function J8(e){return lf()?e instanceof Node||e instanceof $a(e).Node:!1}function eo(e){return lf()?e instanceof Element||e instanceof $a(e).Element:!1}function wl(e){return lf()?e instanceof HTMLElement||e instanceof $a(e).HTMLElement:!1}function Sm(e){return!lf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $a(e).ShadowRoot}function Ru(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=to(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function u$(e){return/^(table|td|th)$/.test(Us(e))}function rf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const c$=/transform|translate|scale|rotate|perspective|filter/,d$=/paint|layout|strict|content/,ar=e=>!!e&&e!=="none";let Qf;function ch(e){const t=eo(e)?to(e):e;return ar(t.transform)||ar(t.translate)||ar(t.scale)||ar(t.rotate)||ar(t.perspective)||!dh()&&(ar(t.backdropFilter)||ar(t.filter))||c$.test(t.willChange||"")||d$.test(t.contain||"")}function f$(e){let t=ql(e);for(;wl(t)&&!Rs(t);){if(ch(t))return t;if(rf(t))return null;t=ql(t)}return null}function dh(){return Qf==null&&(Qf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qf}function Rs(e){return/^(html|body|#document)$/.test(Us(e))}function to(e){return $a(e).getComputedStyle(e)}function sf(e){return eo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ql(e){if(Us(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sm(e)&&e.host||Fo(e);return Sm(t)?t.host:t}function Z8(e){const t=ql(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:wl(t)&&Ru(t)?t:Z8(t)}function Zi(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Z8(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),r=$a(o);if(l){const s=f2(r);return t.concat(r,r.visualViewport||[],Ru(o)?o:[],s&&n?Zi(s):[])}else return t.concat(o,Zi(o,[],n))}function f2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q8(e){const t=to(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=wl(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,s=rd(n)!==l||rd(a)!==r;return s&&(n=l,a=r),{width:n,height:a,$:s}}function fh(e){return eo(e)?e:e.contextElement}function vs(e){const t=fh(e);if(!wl(t))return No(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=Q8(t);let r=(l?rd(n.width):n.width)/a,s=(l?rd(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const p$=No(0);function ey(e){const t=$a(e);return!dh()||!t.visualViewport?p$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$a(e)?!1:t}function Pr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=fh(e);let r=No(1);t&&(a?eo(a)&&(r=vs(a)):r=vs(e));const s=h$(l,n,a)?ey(l):No(0);let u=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(l){const h=$a(l),g=a&&eo(a)?$a(a):a;let p=h,v=f2(p);for(;v&&a&&g!==p;){const m=vs(v),y=v.getBoundingClientRect(),b=to(v),w=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*m.x,_=y.top+(v.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=w,c+=_,p=$a(v),v=f2(p)}}return id({width:d,height:f,x:u,y:c})}function uf(e,t){const n=sf(e).scrollLeft;return t?t.left+n:Pr(Fo(e)).left+n}function ty(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-uf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function v$(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",r=Fo(a),s=t?rf(t.floating):!1;if(a===r||s&&l)return n;let u={scrollLeft:0,scrollTop:0},c=No(1);const d=No(0),f=wl(a);if((f||!f&&!l)&&((Us(a)!=="body"||Ru(r))&&(u=sf(a)),f)){const g=Pr(a);c=vs(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const h=r&&!f&&!l?ty(r,u):No(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function m$(e){return Array.from(e.getClientRects())}function g$(e){const t=Fo(e),n=sf(e),a=e.ownerDocument.body,o=Sr(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Sr(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+uf(e);const s=-n.scrollTop;return to(a).direction==="rtl"&&(r+=Sr(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:s}}const xm=25;function y$(e,t){const n=$a(e),a=Fo(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;const d=dh();(!d||d&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const c=uf(a);if(c<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(a.clientWidth-f.clientWidth-g);p<=xm&&(l-=p)}else c<=xm&&(l+=c);return{width:l,height:r,x:s,y:u}}function b$(e,t){const n=Pr(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=wl(e)?vs(e):No(1),r=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,c=a*l.y;return{width:r,height:s,x:u,y:c}}function km(e,t,n){let a;if(t==="viewport")a=y$(e,n);else if(t==="document")a=g$(Fo(e));else if(eo(t))a=b$(t,n);else{const o=ey(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return id(a)}function ny(e,t){const n=ql(e);return n===t||!eo(n)||Rs(n)?!1:to(n).position==="fixed"||ny(n,t)}function w$(e,t){const n=t.get(e);if(n)return n;let a=Zi(e,[],!1).filter(s=>eo(s)&&Us(s)!=="body"),o=null;const l=to(e).position==="fixed";let r=l?ql(e):e;for(;eo(r)&&!Rs(r);){const s=to(r),u=ch(r);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Ru(r)&&!u&&ny(e,r))?a=a.filter(d=>d!==r):o=s,r=ql(r)}return t.set(e,a),a}function C$(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const r=[...n==="clippingAncestors"?rf(t)?[]:w$(t,this._c):[].concat(n),a],s=km(t,r[0],o);let u=s.top,c=s.right,d=s.bottom,f=s.left;for(let h=1;h{r(!1,1e-7)},1e3)}T===1&&!oy(c,e.getBoundingClientRect())&&r(),_=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function M$(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=fh(e),d=o||l?[...c?Zi(c):[],...t?Zi(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const f=c&&s?T$(c,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let p,v=u?Pr(e):null;u&&m();function m(){const y=Pr(e);v&&!oy(v,y)&&n(),v=y,p=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const O$=X8,$$=s$,A$=i$,R$=o$,N$=a$,P$=(e,t,n)=>{const a=new Map,o={platform:E$,...n},l={...o.platform,_c:a};return n$(e,t,{...o,platform:l})};function I$(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:l,value:r}=e.value;o==null||l==null||(t={selectionStart:o,selectionEnd:l,value:r,beforeTxt:r.slice(0,Math.max(0,o)),afterTxt:r.slice(Math.max(0,l))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:s}=t;if(l==null||r==null||s==null)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(l))u=l.length;else{const c=l[s-1],d=o.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const L$="utils/vue/vnode";let qa=function(e){return e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e}({});function p2(e){return Wt(e)&&e.type===Ke}function ly(e){return Wt(e)&&e.type===mn}function V$(e){return Wt(e)&&!p2(e)&&!ly(e)}const B$=e=>{if(!Wt(e))return pt(L$,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{Mt(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[Hn(o)]=t[o]}),a},Ta=e=>{const t=be(e)?e:[e],n=[];return t.forEach(a=>{var o;be(a)?n.push(...Ta(a)):Wt(a)&&((o=a.component)!=null&&o.subTree)?n.push(a,...Ta(a.component.subTree)):Wt(a)&&be(a.children)?n.push(...Ta(a.children)):Wt(a)&&a.shapeFlag===2?n.push(...Ta(a.type())):n.push(a)}),n},z$=(e,t,n)=>Ta(e.subTree).filter(a=>{var o;return Wt(a)&&((o=a.type)==null?void 0:o.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),cf=(e,t)=>{const n=qt({}),a=qt([]),o=new WeakMap,l=c=>{n.value[c.uid]=c,Cc(n),gt(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const h=f.insertBefore.bind(f);f.insertBefore=(g,p)=>(o.get(f).some(v=>g===v||p===v)&&Cc(n),h(g,p))}o.get(f).push(d)})},r=c=>{delete n.value[c.uid],Cc(n);const d=c.getVnode().el,f=d.parentNode,h=o.get(f),g=h.indexOf(d);h.splice(g,1)},s=()=>{a.value=z$(e,t,n.value)},u=c=>c.render();return{children:a,addChild:l,removeChild:r,ChildrenSorter:D({setup(c,{slots:d}){return()=>(s(),d.default?Ye(u,{render:d.default}):null)}})}},kn=fo({type:String,values:io,required:!1}),ry=Symbol("size"),sy=()=>{const e=Pe(ry,{});return x(()=>i(e.size)||"")};function Cl(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:l}={}){const{emit:r}=vt(),s=qt(),u=V(!1),c=h=>{const g=Fe(n)?n(h):!1;i(t)||u.value||g||(u.value=!0,r("focus",h),a==null||a())},d=h=>{var p;const g=Fe(o)?o(h):!1;i(t)||h.relatedTarget&&((p=s.value)!=null&&p.contains(h.relatedTarget))||g||(u.value=!1,r("blur",h),l==null||l())},f=h=>{var g,p;i(t)||Ar(h.target)||(g=s.value)!=null&&g.contains(document.activeElement)&&s.value!==document.activeElement||(p=e.value)==null||p.focus()};return fe([s,()=>i(t)],([h,g])=>{h&&(g?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Vt(s,"focus",c,!0),Vt(s,"blur",d,!0),Vt(s,"click",f,!0),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:d}}function Nu({afterComposition:e,emit:t}){const n=V(!1),a=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{t==null||t("compositionupdate",s),n.value=!0},l=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Le(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?l(s):o(s)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:l}}const iy=Symbol("emptyValuesContextKey"),D$="use-empty-values",H$=["",void 0,null],F$=void 0,Wr=_e({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Fe(e)?e():e,be(e)?e.every(t=>!t):!e)}}),Pu=(e,t)=>{const n=vt()?Pe(iy,V({})):V({}),a=x(()=>e.emptyValues||n.value.emptyValues||H$),o=x(()=>Fe(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Fe(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:F$),l=r=>{let s=!0;return be(r)?s=a.value.some(u=>an(r,u)):s=a.value.includes(r),s};return l(o.value)||pt(D$,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:l}},K$=_e({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),oa=e=>ul(K$,e),uy=e=>{const t=e.props,n=be(t)?Es(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,l]of Object.entries(a)){const r=n[o];if(Mt(n,o)){if(Kp(r)){n[o]={...r,default:l};continue}n[o]={type:r,default:l}}}e.props=n}}},it=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return uy(e),e},cy=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),W$=(e,t)=>(e.install=n=>{n.directive(t,e)},e),tn=e=>(e.install=It,uy(e),e);var j$=D({__name:"teleport",props:Eu,setup(e){return(t,n)=>t.disabled?oe(t.$slots,"default",{key:0}):(C(),ie(DC,{key:1,to:t.to},[oe(t.$slots,"default")],8,["to"]))}}),q$=j$;const Ys=it(q$),Tm="ElAffix";var U$=D({name:Tm,__name:"affix",props:yM,emits:bM,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("affix"),r=qt(),s=qt(),u=qt(),{height:c}=Ap(),{height:d,width:f,top:h,bottom:g,left:p,update:v}=y1(s,{windowScroll:!1}),m=y1(r),y=V(!1),b=V(0),w=V(0),_=x(()=>!a.teleported||!y.value),S=x(()=>({display:"flow-root",height:y.value?`${d.value}px`:"",width:y.value?`${f.value}px`:""})),k=x(()=>{if(!y.value)return{};const O=ln(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?O:"",bottom:a.position==="bottom"?O:"",left:a.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:a.zIndex}}),T=()=>{if(!u.value)return;b.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:I,offset:L}=a,z=L+d.value;if(O==="top")if(I){const q=m.bottom.value-z;y.value=L>h.value&&m.bottom.value>0,w.value=q<0?q:0}else y.value=L>h.value;else if(I){const q=c.value-m.top.value-z;y.value=c.value-Lm.top.value,w.value=q<0?-q:0}else y.value=c.value-L{if(!y.value){v();return}y.value=!1,await Le(),v(),y.value=!0},A=async()=>{v(),await Le(),o("scroll",{scrollTop:b.value,fixed:y.value})};return fe(y,O=>o(bt,O)),gt(()=>{a.target?(r.value=document.querySelector(a.target)??void 0,r.value||en(Tm,`Target does not exist: ${a.target}`)):r.value=document.documentElement,u.value=Xp(s.value,!0),v()}),vu(()=>{Le(M)}),wp(()=>{y.value=!1}),Vt(u,"scroll",A),da(T),t({update:T,updateRoot:M}),(O,I)=>(C(),$("div",{ref_key:"root",ref:s,class:R(i(l).b()),style:qe(S.value)},[Q(i(Ys),{disabled:_.value,to:e.appendTo},{default:ae(()=>[E("div",{class:R({[i(l).m("fixed")]:y.value}),style:qe(k.value)},[oe(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),Y$=U$;const G$=it(Y$);/*! Element Plus Icons Vue v2.3.2 */var X$=D({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),J$=X$,Z$=D({name:"Aim",__name:"aim",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Q$=Z$,eA=D({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),tA=eA,nA=D({name:"Apple",__name:"apple",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),aA=nA,oA=D({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),lA=oA,rA=D({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),po=rA,sA=D({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),iA=sA,uA=D({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),zo=uA,cA=D({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),dA=cA,fA=D({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Un=fA,pA=D({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),hA=pA,vA=D({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Iu=vA,mA=D({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),gA=mA,yA=D({name:"Back",__name:"back",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),dy=yA,bA=D({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),wA=bA,CA=D({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),_A=CA,SA=D({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),xA=SA,kA=D({name:"Bell",__name:"bell",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),EA=kA,TA=D({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),MA=TA,OA=D({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),$A=OA,AA=D({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),RA=AA,NA=D({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),PA=NA,IA=D({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),LA=IA,VA=D({name:"Box",__name:"box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),BA=VA,zA=D({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),DA=zA,HA=D({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),FA=HA,KA=D({name:"Brush",__name:"brush",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),WA=KA,jA=D({name:"Burger",__name:"burger",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),qA=jA,UA=D({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),fy=UA,YA=D({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),GA=YA,XA=D({name:"Camera",__name:"camera",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),JA=XA,ZA=D({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),QA=ZA,eR=D({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),tR=eR,nR=D({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),ph=nR,aR=D({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),py=aR,oR=D({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),lR=oR,rR=D({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),sR=rR,iR=D({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),uR=iR,cR=D({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),dR=cR,fR=D({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),pR=fR,hR=D({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),vR=hR,mR=D({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),gR=mR,yR=D({name:"Check",__name:"check",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),Gs=yR,bR=D({name:"Checked",__name:"checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),wR=bR,CR=D({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),_R=CR,SR=D({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),xR=SR,kR=D({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),ER=kR,TR=D({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),hy=TR,MR=D({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),df=MR,OR=D({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),ff=OR,$R=D({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ho=$R,AR=D({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),RR=AR,NR=D({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),PR=NR,IR=D({name:"Clock",__name:"clock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),hh=IR,LR=D({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),VR=LR,BR=D({name:"Close",__name:"close",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Na=BR,zR=D({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),DR=zR,HR=D({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),FR=HR,KR=D({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),WR=KR,jR=D({name:"Coin",__name:"coin",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),qR=jR,UR=D({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),YR=UR,GR=D({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),XR=GR,JR=D({name:"Collection",__name:"collection",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),ZR=JR,QR=D({name:"Comment",__name:"comment",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),eN=QR,tN=D({name:"Compass",__name:"compass",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),nN=tN,aN=D({name:"Connection",__name:"connection",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),oN=aN,lN=D({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),rN=lN,sN=D({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),iN=sN,uN=D({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),cN=uN,dN=D({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),fN=dN,pN=D({name:"Crop",__name:"crop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),hN=pN,vN=D({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),fl=vN,mN=D({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),pl=mN,gN=D({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),yN=gN,bN=D({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),wN=bN,CN=D({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),_N=CN,SN=D({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),xN=SN,kN=D({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),EN=kN,TN=D({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),MN=TN,ON=D({name:"Delete",__name:"delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),vy=ON,$N=D({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),AN=$N,RN=D({name:"Discount",__name:"discount",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),NN=RN,PN=D({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),IN=PN,LN=D({name:"Dish",__name:"dish",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),VN=LN,BN=D({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),zN=BN,DN=D({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),HN=DN,FN=D({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),KN=FN,WN=D({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),jN=WN,qN=D({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),UN=qN,YN=D({name:"Document",__name:"document",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),my=YN,GN=D({name:"Download",__name:"download",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),XN=GN,JN=D({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),ZN=JN,QN=D({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),eP=QN,tP=D({name:"Edit",__name:"edit",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),nP=tP,aP=D({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),oP=aP,lP=D({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),rP=lP,sP=D({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),iP=sP,uP=D({name:"Expand",__name:"expand",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),cP=uP,dP=D({name:"Failed",__name:"failed",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),fP=dP,pP=D({name:"Female",__name:"female",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),hP=pP,vP=D({name:"Files",__name:"files",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),mP=vP,gP=D({name:"Film",__name:"film",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),yP=gP,bP=D({name:"Filter",__name:"filter",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),wP=bP,CP=D({name:"Finished",__name:"finished",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),_P=CP,SP=D({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),xP=SP,kP=D({name:"Flag",__name:"flag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),EP=kP,TP=D({name:"Fold",__name:"fold",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),MP=TP,OP=D({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),$P=OP,AP=D({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),RP=AP,NP=D({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),PP=NP,IP=D({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),LP=IP,VP=D({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),BP=VP,zP=D({name:"Folder",__name:"folder",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),DP=zP,HP=D({name:"Food",__name:"food",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),FP=HP,KP=D({name:"Football",__name:"football",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),WP=KP,jP=D({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),qP=jP,UP=D({name:"Fries",__name:"fries",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),YP=UP,GP=D({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),gy=GP,XP=D({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),JP=XP,ZP=D({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),QP=ZP,eI=D({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),tI=eI,nI=D({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),aI=nI,oI=D({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),lI=oI,rI=D({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),sI=rI,iI=D({name:"Goods",__name:"goods",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),uI=iI,cI=D({name:"Grape",__name:"grape",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),dI=cI,fI=D({name:"Grid",__name:"grid",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),pI=fI,hI=D({name:"Guide",__name:"guide",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),vI=hI,mI=D({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),gI=mI,yI=D({name:"Headset",__name:"headset",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),bI=yI,wI=D({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),CI=wI,_I=D({name:"Help",__name:"help",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),SI=_I,xI=D({name:"Hide",__name:"hide",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),yy=xI,kI=D({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),EI=kI,TI=D({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),MI=TI,OI=D({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),$I=OI,AI=D({name:"House",__name:"house",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),RI=AI,NI=D({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),PI=NI,II=D({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),LI=II,VI=D({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),BI=VI,zI=D({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),DI=zI,HI=D({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),FI=HI,KI=D({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ns=KI,WI=D({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),jI=WI,qI=D({name:"Key",__name:"key",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),UI=qI,YI=D({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),GI=YI,XI=D({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),JI=XI,ZI=D({name:"Link",__name:"link",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),QI=ZI,eL=D({name:"List",__name:"list",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),tL=eL,nL=D({name:"Loading",__name:"loading",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),no=nL,aL=D({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),oL=aL,lL=D({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),rL=lL,sL=D({name:"Location",__name:"location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),iL=sL,uL=D({name:"Lock",__name:"lock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),cL=uL,dL=D({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),fL=dL,pL=D({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),hL=pL,vL=D({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),mL=vL,gL=D({name:"Male",__name:"male",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),yL=gL,bL=D({name:"Management",__name:"management",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),wL=bL,CL=D({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),_L=CL,SL=D({name:"Medal",__name:"medal",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),xL=SL,kL=D({name:"Memo",__name:"memo",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),EL=kL,TL=D({name:"Menu",__name:"menu",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),ML=TL,OL=D({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),$L=OL,AL=D({name:"Message",__name:"message",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),RL=AL,NL=D({name:"Mic",__name:"mic",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),PL=NL,IL=D({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),LL=IL,VL=D({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),BL=VL,zL=D({name:"Minus",__name:"minus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),by=zL,DL=D({name:"Money",__name:"money",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),HL=DL,FL=D({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),KL=FL,WL=D({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),jL=WL,qL=D({name:"Moon",__name:"moon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),UL=qL,YL=D({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),h2=YL,GL=D({name:"More",__name:"more",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),wy=GL,XL=D({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),JL=XL,ZL=D({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),QL=ZL,eV=D({name:"Mug",__name:"mug",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),tV=eV,nV=D({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),aV=nV,oV=D({name:"Mute",__name:"mute",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),lV=oV,rV=D({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),sV=rV,iV=D({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),uV=iV,cV=D({name:"Notification",__name:"notification",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),dV=cV,fV=D({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),pV=fV,hV=D({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),vV=hV,mV=D({name:"Open",__name:"open",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),gV=mV,yV=D({name:"Operation",__name:"operation",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),bV=yV,wV=D({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),CV=wV,_V=D({name:"Orange",__name:"orange",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),SV=_V,xV=D({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),kV=xV,EV=D({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),TV=EV,MV=D({name:"Pear",__name:"pear",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),OV=MV,$V=D({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),AV=$V,RV=D({name:"Phone",__name:"phone",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),NV=RV,PV=D({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Cy=PV,IV=D({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),LV=IV,VV=D({name:"Picture",__name:"picture",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),BV=VV,zV=D({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),DV=zV,HV=D({name:"Place",__name:"place",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),FV=HV,KV=D({name:"Platform",__name:"platform",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),WV=KV,jV=D({name:"Plus",__name:"plus",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),vh=jV,qV=D({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),UV=qV,YV=D({name:"Position",__name:"position",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),GV=YV,XV=D({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),JV=XV,ZV=D({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),QV=ZV,eB=D({name:"Present",__name:"present",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),tB=eB,nB=D({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),aB=nB,oB=D({name:"Printer",__name:"printer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),lB=oB,rB=D({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),sB=rB,iB=D({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),uB=iB,cB=D({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),_y=cB,dB=D({name:"Rank",__name:"rank",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),fB=dB,pB=D({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),hB=pB,vB=D({name:"Reading",__name:"reading",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),mB=vB,gB=D({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Sy=gB,yB=D({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),xy=yB,bB=D({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),wB=bB,CB=D({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),_B=CB,SB=D({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),xB=SB,kB=D({name:"Remove",__name:"remove",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),EB=kB,TB=D({name:"Right",__name:"right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),MB=TB,OB=D({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),ky=OB,$B=D({name:"School",__name:"school",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),AB=$B,RB=D({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),NB=RB,PB=D({name:"Search",__name:"search",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Ey=PB,IB=D({name:"Select",__name:"select",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),LB=IB,VB=D({name:"Sell",__name:"sell",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),BB=VB,zB=D({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),DB=zB,HB=D({name:"Service",__name:"service",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),FB=HB,KB=D({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),WB=KB,jB=D({name:"Setting",__name:"setting",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),qB=jB,UB=D({name:"Share",__name:"share",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),YB=UB,GB=D({name:"Ship",__name:"ship",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),XB=GB,JB=D({name:"Shop",__name:"shop",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),ZB=JB,QB=D({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),ez=QB,tz=D({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),nz=tz,az=D({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),oz=az,lz=D({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),rz=lz,sz=D({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),iz=sz,uz=D({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),cz=uz,dz=D({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),fz=dz,pz=D({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Ty=pz,hz=D({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),My=hz,vz=D({name:"Sort",__name:"sort",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),mz=vz,gz=D({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),yz=gz,bz=D({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),gi=bz,wz=D({name:"Star",__name:"star",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Oy=wz,Cz=D({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),_z=Cz,Sz=D({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),mh=Sz,xz=D({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),kz=xz,Ez=D({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),Tz=Ez,Mz=D({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Oz=Mz,$z=D({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Az=$z,Rz=D({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Nz=Rz,Pz=D({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Iz=Pz,Lz=D({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),Vz=Lz,Bz=D({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),zz=Bz,Dz=D({name:"Switch",__name:"switch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),Hz=Dz,Fz=D({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),Kz=Fz,Wz=D({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),jz=Wz,qz=D({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),Uz=qz,Yz=D({name:"Timer",__name:"timer",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),Gz=Yz,Xz=D({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),Jz=Xz,Zz=D({name:"Tools",__name:"tools",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),Qz=Zz,eD=D({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),tD=eD,nD=D({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),aD=nD,oD=D({name:"Top",__name:"top",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),lD=oD,rD=D({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),sD=rD,iD=D({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),uD=iD,cD=D({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),dD=cD,fD=D({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),pD=fD,hD=D({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),vD=hD,mD=D({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),gD=mD,yD=D({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),bD=yD,wD=D({name:"Upload",__name:"upload",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),CD=wD,_D=D({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),SD=_D,xD=D({name:"User",__name:"user",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),kD=xD,ED=D({name:"Van",__name:"van",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),TD=ED,MD=D({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),OD=MD,$D=D({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),AD=$D,RD=D({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),ND=RD,PD=D({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),ID=PD,LD=D({name:"View",__name:"view",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),$y=LD,VD=D({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),BD=VD,zD=D({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),DD=zD,HD=D({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),FD=HD,KD=D({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Lu=KD,WD=D({name:"Warning",__name:"warning",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),jD=WD,qD=D({name:"Watch",__name:"watch",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),UD=qD,YD=D({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),GD=YD,XD=D({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),JD=XD,ZD=D({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),gh=ZD,QD=D({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(C(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Ay=QD;const eH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:J$,Aim:Q$,AlarmClock:tA,Apple:aA,ArrowDown:po,ArrowDownBold:lA,ArrowLeft:zo,ArrowLeftBold:iA,ArrowRight:Un,ArrowRightBold:dA,ArrowUp:Iu,ArrowUpBold:hA,Avatar:gA,Back:dy,Baseball:wA,Basketball:_A,Bell:EA,BellFilled:xA,Bicycle:MA,Bottom:PA,BottomLeft:$A,BottomRight:RA,Bowl:LA,Box:BA,Briefcase:DA,Brush:WA,BrushFilled:FA,Burger:qA,Calendar:fy,Camera:JA,CameraFilled:GA,CaretBottom:QA,CaretLeft:tR,CaretRight:ph,CaretTop:py,Cellphone:lR,ChatDotRound:sR,ChatDotSquare:uR,ChatLineRound:dR,ChatLineSquare:pR,ChatRound:vR,ChatSquare:gR,Check:Gs,Checked:wR,Cherry:_R,Chicken:xR,ChromeFilled:ER,CircleCheck:df,CircleCheckFilled:hy,CircleClose:ho,CircleCloseFilled:ff,CirclePlus:PR,CirclePlusFilled:RR,Clock:hh,Close:Na,CloseBold:VR,Cloudy:DR,Coffee:WR,CoffeeCup:FR,Coin:qR,ColdDrink:YR,Collection:ZR,CollectionTag:XR,Comment:eN,Compass:nN,Connection:oN,Coordinate:rN,CopyDocument:iN,Cpu:cN,CreditCard:fN,Crop:hN,DArrowLeft:fl,DArrowRight:pl,DCaret:yN,DataAnalysis:wN,DataBoard:_N,DataLine:xN,Delete:vy,DeleteFilled:EN,DeleteLocation:MN,Dessert:AN,Discount:NN,Dish:VN,DishDot:IN,Document:my,DocumentAdd:zN,DocumentChecked:HN,DocumentCopy:KN,DocumentDelete:jN,DocumentRemove:UN,Download:XN,Drizzling:ZN,Edit:nP,EditPen:eP,Eleme:rP,ElemeFilled:oP,ElementPlus:iP,Expand:cP,Failed:fP,Female:hP,Files:mP,Film:yP,Filter:wP,Finished:_P,FirstAidKit:xP,Flag:EP,Fold:MP,Folder:DP,FolderAdd:$P,FolderChecked:RP,FolderDelete:PP,FolderOpened:LP,FolderRemove:BP,Food:FP,Football:WP,ForkSpoon:qP,Fries:YP,FullScreen:gy,Goblet:aI,GobletFull:JP,GobletSquare:tI,GobletSquareFull:QP,GoldMedal:lI,Goods:uI,GoodsFilled:sI,Grape:dI,Grid:pI,Guide:vI,Handbag:gI,Headset:bI,Help:SI,HelpFilled:CI,Hide:yy,Histogram:EI,HomeFilled:MI,HotWater:$I,House:RI,IceCream:BI,IceCreamRound:PI,IceCreamSquare:LI,IceDrink:DI,IceTea:FI,InfoFilled:Ns,Iphone:jI,Key:UI,KnifeFork:GI,Lightning:JI,Link:QI,List:tL,Loading:no,Location:iL,LocationFilled:oL,LocationInformation:rL,Lock:cL,Lollipop:fL,MagicStick:hL,Magnet:mL,Male:yL,Management:wL,MapLocation:_L,Medal:xL,Memo:EL,Menu:ML,Message:RL,MessageBox:$L,Mic:PL,Microphone:LL,MilkTea:BL,Minus:by,Money:HL,Monitor:KL,Moon:UL,MoonNight:jL,More:wy,MoreFilled:h2,MostlyCloudy:JL,Mouse:QL,Mug:tV,Mute:lV,MuteNotification:aV,NoSmoking:sV,Notebook:uV,Notification:dV,Odometer:pV,OfficeBuilding:vV,Open:gV,Operation:bV,Opportunity:CV,Orange:SV,Paperclip:kV,PartlyCloudy:TV,Pear:OV,Phone:NV,PhoneFilled:AV,Picture:BV,PictureFilled:Cy,PictureRounded:LV,PieChart:DV,Place:FV,Platform:WV,Plus:vh,Pointer:UV,Position:GV,Postcard:JV,Pouring:QV,Present:tB,PriceTag:aB,Printer:lB,Promotion:sB,QuartzWatch:uB,QuestionFilled:_y,Rank:fB,Reading:mB,ReadingLamp:hB,Refresh:wB,RefreshLeft:Sy,RefreshRight:xy,Refrigerator:_B,Remove:EB,RemoveFilled:xB,Right:MB,ScaleToOriginal:ky,School:AB,Scissor:NB,Search:Ey,Select:LB,Sell:BB,SemiSelect:DB,Service:FB,SetUp:WB,Setting:qB,Share:YB,Ship:XB,Shop:ZB,ShoppingBag:ez,ShoppingCart:oz,ShoppingCartFull:nz,ShoppingTrolley:rz,Smoking:iz,Soccer:cz,SoldOut:fz,Sort:mz,SortDown:Ty,SortUp:My,Stamp:yz,Star:Oy,StarFilled:gi,Stopwatch:_z,SuccessFilled:mh,Sugar:kz,Suitcase:Oz,SuitcaseLine:Tz,Sunny:Az,Sunrise:Nz,Sunset:Iz,Switch:Hz,SwitchButton:Vz,SwitchFilled:zz,TakeawayBox:Kz,Ticket:jz,Tickets:Uz,Timer:Gz,ToiletPaper:Jz,Tools:Qz,Top:lD,TopLeft:tD,TopRight:aD,TrendCharts:sD,Trophy:dD,TrophyBase:uD,TurnOff:pD,Umbrella:vD,Unlock:gD,Upload:CD,UploadFilled:bD,User:kD,UserFilled:SD,Van:TD,VideoCamera:AD,VideoCameraFilled:OD,VideoPause:ND,VideoPlay:ID,View:$y,Wallet:DD,WalletFilled:BD,WarnTriangleFilled:FD,Warning:jD,WarningFilled:Lu,Watch:UD,Watermelon:GD,WindPower:JD,ZoomIn:gh,ZoomOut:Ay},Symbol.toStringTag,{value:"Module"})),Ft=J([String,Object,Function]),Ry={Close:Na},yh={Close:Na,SuccessFilled:mh,InfoFilled:Ns,WarningFilled:Lu,CircleCloseFilled:ff},Ul={primary:Ns,success:mh,warning:Lu,error:ff,info:Ns},pf={validating:no,success:df,error:ho},tH=["light","dark"],nH=_e({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Gi(Ul),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:tH,default:"light"}}),aH={close:e=>e instanceof MouseEvent},oH=_e({size:{type:J([Number,String])},color:{type:String}});var lH=D({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:oH,setup(e){const t=e,n=ve("icon"),a=x(()=>{const{size:o,color:l}=t,r=ln(o);return!r&&!l?{}:{fontSize:r,"--color":l}});return(o,l)=>(C(),$("i",ht({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),rH=lH;const De=it(rH);var sH=D({name:"ElAlert",__name:"alert",props:nH,emits:aH,setup(e,{emit:t}){const{Close:n}=yh,a=e,o=t,l=hn(),r=ve("alert"),s=V(!0),u=x(()=>Ul[a.type]),c=x(()=>{var h;if(a.description)return!0;const f=(h=l.default)==null?void 0:h.call(l);return f?Ta(f).some(g=>!ly(g)):!1}),d=f=>{s.value=!1,o("close",f)};return(f,h)=>(C(),ie(Fn,{name:i(r).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{class:R([i(r).b(),i(r).m(e.type),i(r).is("center",e.center),i(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(C(),ie(i(De),{key:0,class:R([i(r).e("icon"),i(r).is("big",c.value)])},{default:ae(()=>[oe(f.$slots,"icon",{},()=>[(C(),ie(dt(u.value)))])]),_:3},8,["class"])):re("v-if",!0),E("div",{class:R(i(r).e("content"))},[e.title||f.$slots.title?(C(),$("span",{key:0,class:R([i(r).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),c.value?(C(),$("p",{key:1,class:R(i(r).e("description"))},[oe(f.$slots,"default",{},()=>[St(Se(e.description),1)])],2)):re("v-if",!0),e.closable?(C(),$(Ke,{key:2},[e.closeText?(C(),$("div",{key:0,class:R([i(r).e("close-btn"),i(r).is("customed")]),onClick:d},Se(e.closeText),3)):(C(),ie(i(De),{key:1,class:R(i(r).e("close-btn")),onClick:d},{default:ae(()=>[Q(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[$t,s.value]])]),_:3},8,["name"]))}}),iH=sH;const uH=it(iH),Ny=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Py=_e({role:{type:String,values:Ny,default:"tooltip"}}),bh=Symbol("popper"),Iy=Symbol("popperContent");var cH=D({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ve("popper"),{arrowRef:a,arrowStyle:o}=Pe(Iy,void 0);return Lt(()=>{a.value=void 0}),t({arrowRef:a}),(l,r)=>(C(),$("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:qe(i(o)),"data-popper-arrow":""},null,6))}}),dH=cH;const Ly=_e({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),t0="ElOnlyChild",Vy=D({name:t0,setup(e,{slots:t,attrs:n}){var o;const a=qO(((o=Pe(j8))==null?void 0:o.setForwardRef)??It);return()=>{var u;const l=(u=t.default)==null?void 0:u.call(t,n);if(!l)return null;const[r,s]=By(l);return r?(s>1&&pt(t0,"requires exact only one valid child."),ft(Io(r,n),[[a]])):(pt(t0,"no valid child node found"),null)}}});function By(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==mn).length;for(const a of t){if(lt(a))switch(a.type){case mn:continue;case Ks:case"svg":return[Mm(a),n];case Ke:return By(a.children);default:return[a,n]}return[Mm(a),n]}return[null,0]}function Mm(e){const t=ve("only-child");return Q("span",{class:t.e("content")},[e])}var fH=D({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Ly,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=Pe(bh,void 0);jO(o);const l=x(()=>s.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=x(()=>{if(a&&a.value!=="tooltip")return a.value}),u=x(()=>s.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return gt(()=>{fe(()=>n.virtualRef,f=>{f&&(o.value=xn(f))},{immediate:!0}),fe(o,(f,h)=>{c==null||c(),c=void 0,ga(h)&&d.forEach(g=>{const p=n[g];p&&h.removeEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),ga(f)&&(d.forEach(g=>{const p=n[g];p&&f.addEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),Ar(f)&&(c=fe([l,r,s,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{gn(g[v])?f.removeAttribute(p):f.setAttribute(p,g[v])})},{immediate:!0}))),ga(h)&&Ar(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Lt(()=>{if(c==null||c(),c=void 0,o.value&&ga(o.value)){const f=o.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(h))}),o.value=void 0}}),t({triggerRef:o}),(f,h)=>e.virtualTriggering?re("v-if",!0):(C(),ie(i(Vy),ht({key:0},f.$attrs,{"aria-controls":l.value,"aria-describedby":r.value,"aria-expanded":u.value,"aria-haspopup":s.value}),{default:ae(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),pH=fH;const zy=_e({arrowOffset:{type:Number,default:5}}),hH=["fixed","absolute"],vH=_e({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:J(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ho,default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},strategy:{type:String,values:hH,default:"absolute"}}),Dy=_e({...vH,...zy,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...oa(["ariaLabel"]),loop:Boolean}),mH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},gH=_e({size:{type:String,values:io},disabled:Boolean}),yH=_e({...gH,model:Object,rules:{type:J(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:J([Object,Boolean]),default:!0}}),bH={validate:(e,t,n)=>(be(e)||Be(e))&&Dt(t)&&Be(n)},jr=Symbol("formContextKey"),Do=Symbol("formItemContextKey"),_n=(e,t={})=>{const n=V(void 0),a=t.prop?n:A8("size"),o=t.global?n:sy(),l=t.form?{size:void 0}:Pe(jr,void 0),r=t.formItem?{size:void 0}:Pe(Do,void 0);return x(()=>a.value||i(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||o.value||"")},rn=e=>{const t=A8("disabled"),n=Pe(jr,void 0);return x(()=>t.value??i(e)??(n==null?void 0:n.disabled)??!1)},Bn=()=>({form:Pe(jr,void 0),formItem:Pe(Do,void 0)}),Pa=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=V(!1)),a||(a=V(!1));const o=vt(),l=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=V();let s;const u=x(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return gt(()=>{s=fe([Bt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Kn().value);f!==r.value&&(t!=null&&t.removeInputId&&!l()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Fs(()=>{s&&s(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},wH=["","error","validating","success"],CH=_e({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:J([String,Array])},required:{type:Boolean,default:void 0},rules:{type:J([Object,Array])},error:String,validateStatus:{type:String,values:wH},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:io}}),Om=e=>[...new Set(e)],ui=e=>be(e)?e[0]:e,ta=e=>!e&&e!==0?[]:be(e)?e:[e],_H="ElForm";function SH(){const e=V([]),t=x(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value==="0"&&pt(_H,`unexpected width ${l}`),r}function a(l,r){if(l&&r){const s=n(r);e.value.splice(s,1,l)}else l&&e.value.push(l)}function o(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const lc=(e,t)=>{const n=$n(t).map(a=>be(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Yr="ElForm";var xH=D({name:Yr,__name:"form",props:yH,emits:bH,setup(e,{expose:t,emit:n}){const a=e,o=n,l=V(),r=Rt([]),s=new Map,u=_n(),c=ve("form"),d=x(()=>{const{labelPosition:T,inline:M}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:M}]}),f=T=>lc(r,[T])[0],h=T=>{r.includes(T)||r.push(T),T.propString&&(s.has(T.propString)?T.setInitialValue(s.get(T.propString)):s.set(T.propString,Eo(T.fieldValue)))},g=(T,M)=>{if(M){s.delete(M);return}const A=r.indexOf(T);A>-1&&(r.splice(A,1),T.propString&&s.set(T.propString,Eo(T.getInitialValue())))},p=T=>{if(!a.model){pt(Yr,"model is required for setInitialValues to work.");return}if(!T){pt(Yr,"initModel is required for setInitialValues to work.");return}for(const M of s.keys())s.set(M,Eo(zl(T,M).value));r.forEach(M=>{M.prop&&M.setInitialValue(zl(T,M.prop).value)})},v=(T=[])=>{if(!a.model){pt(Yr,"model is required for resetFields to work.");return}lc(r,T).forEach(O=>O.resetField());const M=new Set(r.map(O=>O.propString).filter(Boolean)),A=T.length>0?$n(T).map(O=>be(O)?O.join("."):O):[...s.keys()];for(const O of A)!M.has(O)&&s.has(O)&&(zl(a.model,O).value=Eo(s.get(O)))},m=(T=[])=>{lc(r,T).forEach(M=>M.clearValidate())},y=x(()=>{const T=!!a.model;return T||pt(Yr,"model is required for validate to work."),T}),b=T=>{if(r.length===0)return[];const M=lc(r,T);return M.length?M:(pt(Yr,"please pass correct props!"),[])},w=async T=>S(void 0,T),_=async(T=[])=>{if(!y.value)return!1;const M=b(T);if(M.length===0)return!0;let A={};for(const O of M)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(I){A={...A,...I}}return Object.keys(A).length===0?!0:Promise.reject(A)},S=async(T=[],M)=>{var I;let A=!1;const O=!Fe(M);try{return A=await _(T),A===!0&&await(M==null?void 0:M(A)),A}catch(L){if(L instanceof Error)throw L;const z=L;return a.scrollToError&&l.value&&((I=l.value.querySelector(`.${c.b()}-item.is-error`))==null||I.scrollIntoView(a.scrollIntoViewOptions)),!A&&await(M==null?void 0:M(!1,z)),O&&Promise.reject(z)}},k=T=>{var A;const M=f(T);M&&((A=M.$el)==null||A.scrollIntoView(a.scrollIntoViewOptions))};return fe(()=>a.rules,()=>{a.validateOnRuleChange&&w().catch(T=>pt(T))},{deep:!0,flush:"post"}),wt(jr,Rt({...Nn(a),emit:o,resetFields:v,clearValidate:m,validateField:S,getField:f,addField:h,removeField:g,setInitialValues:p,...SH()})),t({validate:w,validateField:S,resetFields:v,clearValidate:m,scrollToField:k,getField:f,fields:r,setInitialValues:p}),(T,M)=>(C(),$("form",{ref_key:"formRef",ref:l,class:R(d.value)},[oe(T.$slots,"default")],2))}}),kH=xH;const $m="ElLabelWrap";var EH=D({name:$m,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Pe(jr,void 0),a=Pe(Do);a||en($m,"usage: ");const o=ve("form"),l=V(),r=V(0),s=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Le(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>u("update");return gt(()=>{c()}),Lt(()=>{u("remove")}),so(()=>c()),fe(r,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),Zt(x(()=>{var d;return((d=l.value)==null?void 0:d.firstElementChild)??null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:d}=e;if(d){const g=n==null?void 0:n.autoLabelWidth,p=a==null?void 0:a.hasLabel,v={};if(p&&g&&g!=="auto"){const m=Math.max(0,Number.parseInt(g,10)-r.value),y=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return Q("div",{ref:l,class:[o.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return Q(Ke,{ref:l},[(h=t.default)==null?void 0:h.call(t)])}}});function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rc(e,t,n){return MH()?Rc=Reflect.construct.bind():Rc=function(o,l,r){var s=[null];s.push.apply(s,l);var u=Function.bind.apply(o,s),c=new u;return r&&Qi(c,r.prototype),c},Rc.apply(null,arguments)}function OH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function m2(e){var t=typeof Map=="function"?new Map:void 0;return m2=function(a){if(a===null||!OH(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Rc(a,arguments,v2(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Qi(o,a)},m2(e)}var $H=/%[sdj%]/g,AH=function(){};function g2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Ma(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=l)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return r}return e}function RH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ln(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||RH(t)&&typeof e=="string"&&!e)}function NH(e,t,n){var a=[],o=0,l=e.length;function r(s){a.push.apply(a,s||[]),o++,o===l&&n(a)}e.forEach(function(s){t(s,r)})}function Am(e,t,n){var a=0,o=e.length;function l(r){if(r&&r.length){n(r);return}var s=a;a=a+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},yi={integer:function(t){return yi.number(t)&&parseInt(t,10)===t},float:function(t){return yi.number(t)&&!yi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!yi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Im.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(zH())},hex:function(t){return typeof t=="string"&&!!t.match(Im.hex)}},DH=function(t,n,a,o,l){if(t.required&&n===void 0){Hy(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?yi[s](n)||o.push(Ma(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Ma(l.messages.types[s],t.fullField,t.type))},HH=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(Ma(l.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?o.push(Ma(l.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&o.push(Ma(l.messages[f].range,t.fullField,t.min,t.max))},Gr="enum",FH=function(t,n,a,o,l){t[Gr]=Array.isArray(t[Gr])?t[Gr]:[],t[Gr].indexOf(n)===-1&&o.push(Ma(l.messages[Gr],t.fullField,t[Gr].join(", ")))},KH=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(Ma(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ut={required:Hy,whitespace:BH,type:DH,range:HH,enum:FH,pattern:KH},WH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l,"string"),Ln(n,"string")||(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l),Ut.pattern(t,n,o,r,l),t.whitespace===!0&&Ut.whitespace(t,n,o,r,l))}a(r)},jH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},qH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},UH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},YH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n)||Ut.type(t,n,o,r,l)}a(r)},GH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},XH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},JH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Ut.required(t,n,o,r,l,"array"),n!=null&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},ZH=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},QH="enum",eF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut[QH](t,n,o,r,l)}a(r)},tF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l),Ln(n,"string")||Ut.pattern(t,n,o,r,l)}a(r)},nF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n,"date")&&!t.required)return a();if(Ut.required(t,n,o,r,l),!Ln(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ut.type(t,u,o,r,l),u&&Ut.range(t,u.getTime(),o,r,l)}}a(r)},aF=function(t,n,a,o,l){var r=[],s=Array.isArray(n)?"array":typeof n;Ut.required(t,n,o,r,l,s),a(r)},n0=function(t,n,a,o,l){var r=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Ln(n,r)&&!t.required)return a();Ut.required(t,n,o,s,l,r),Ln(n,r)||Ut.type(t,n,o,s,l)}a(s)},oF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Ln(n)&&!t.required)return a();Ut.required(t,n,o,r,l)}a(r)},Pi={string:WH,method:jH,number:qH,boolean:UH,regexp:YH,integer:GH,float:XH,array:JH,object:ZH,enum:eF,pattern:tF,date:nF,url:n0,hex:n0,email:n0,required:aF,any:oF};function y2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var b2=y2(),Vu=function(){function e(n){this.rules=null,this._messages=b2,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var r=a[l];o.rules[l]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=Pm(y2(),a)),this._messages},t.validate=function(a,o,l){var r=this;o===void 0&&(o={}),l===void 0&&(l=function(){});var s=a,u=o,c=l;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(v){var m=[],y={};function b(_){if(Array.isArray(_)){var S;m=(S=m).concat.apply(S,_)}else m.push(_)}for(var w=0;wn.labelPosition||(o==null?void 0:o.labelPosition)),y=x(()=>m.value==="top"?{}:{width:ln(n.labelWidth??(o==null?void 0:o.labelWidth))}),b=x(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const Y=ln(n.labelWidth??(o==null?void 0:o.labelWidth));return!n.label&&!a.label?{marginLeft:Y}:{}}),w=x(()=>[s.b(),s.m(r.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",U.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${m.value}`)]:m.value}]),_=x(()=>Dt(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=x(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),k=x(()=>n.prop?be(n.prop)?n.prop.join("."):n.prop:""),T=x(()=>!!(n.label||a.label)),M=x(()=>n.for??(c.value.length===1?c.value[0]:void 0)),A=x(()=>!M.value&&T.value),O=!!l,I=x(()=>{const Y=o==null?void 0:o.model;if(!(!Y||!n.prop))return zl(Y,n.prop).value}),L=x(()=>{const{required:Y}=n,X=[];n.rules&&X.push(...$n(n.rules));const H=o==null?void 0:o.rules;if(H&&n.prop){const Z=zl(H,n.prop).value;Z&&X.push(...$n(Z))}if(Y!==void 0){const Z=X.map((le,ce)=>[le,ce]).filter(([le])=>"required"in le);if(Z.length>0)for(const[le,ce]of Z)le.required!==Y&&(X[ce]={...le,required:Y});else X.push({required:Y})}return X}),z=x(()=>L.value.length>0),q=Y=>L.value.filter(X=>!X.trigger||!Y?!0:be(X.trigger)?X.trigger.includes(Y):X.trigger===Y).map(({trigger:X,...H})=>H),U=x(()=>L.value.some(Y=>Y.required)),F=x(()=>f.value==="error"&&n.showMessage&&((o==null?void 0:o.showMessage)??!0)),N=x(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),P=Y=>{d.value=Y},B=Y=>{var Z;const{errors:X,fields:H}=Y;(!X||!H)&&console.error(Y),P("error"),h.value=X?((Z=X==null?void 0:X[0])==null?void 0:Z.message)??`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},K=()=>{P("success"),o==null||o.emit("validate",n.prop,!0,"")},W=async Y=>{const X=k.value;return new Vu({[X]:Y}).validate({[X]:I.value},{firstFields:!0}).then(()=>(K(),!0)).catch(H=>(B(H),Promise.reject(H)))},j=async(Y,X)=>{if(v||!n.prop)return!1;const H=Fe(X);if(!z.value)return X==null||X(!1),!1;const Z=q(Y);return Z.length===0?(X==null||X(!0),!0):(P("validating"),W(Z).then(()=>(X==null||X(!0),!0)).catch(le=>{const{fields:ce}=le;return X==null||X(!1,ce),H?!1:Promise.reject(ce)}))},G=()=>{P(""),h.value="",v=!1},ee=async()=>{const Y=o==null?void 0:o.model;if(!Y||!n.prop)return;const X=zl(Y,n.prop);v=!0,X.value=Eo(p),await Le(),G(),v=!1},te=Y=>{c.value.includes(Y)||c.value.push(Y)},ue=Y=>{c.value=c.value.filter(X=>X!==Y)},ne=Y=>{p=Eo(Y)},de=()=>p;fe(()=>n.error,Y=>{h.value=Y||"",P(Y?"error":"")},{immediate:!0}),fe(()=>n.validateStatus,Y=>P(Y||""));const se=Rt({...Nn(n),$el:g,size:r,validateMessage:h,validateState:d,labelId:u,inputIds:c,isGroup:A,hasLabel:T,fieldValue:I,addInputId:te,removeInputId:ue,resetField:ee,clearValidate:G,validate:j,propString:k,setInitialValue:ne,getInitialValue:de});return wt(Do,se),fe(k,(Y,X)=>{!o||!X||(o.removeField(se,X),Y&&(ne(I.value),o.addField(se)))}),gt(()=>{n.prop&&(ne(I.value),o==null||o.addField(se))}),Lt(()=>{o==null||o.removeField(se)}),t({size:r,validateMessage:h,validateState:d,validate:j,clearValidate:G,resetField:ee,setInitialValue:ne}),(Y,X)=>{var H;return C(),$("div",{ref_key:"formItemRef",ref:g,class:R(w.value),role:A.value?"group":void 0,"aria-labelledby":A.value?i(u):void 0},[Q(i(EH),{"is-auto-width":y.value.width==="auto","update-all":((H=i(o))==null?void 0:H.labelWidth)==="auto"},{default:ae(()=>[e.label||Y.$slots.label?(C(),ie(dt(M.value?"label":"div"),{key:0,id:i(u),for:M.value,class:R(i(s).e("label")),style:qe(y.value)},{default:ae(()=>[oe(Y.$slots,"label",{label:N.value},()=>[St(Se(N.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(i(s).e("content")),style:qe(b.value)},[oe(Y.$slots,"default"),Q(i6,{name:`${i(s).namespace.value}-zoom-in-top`},{default:ae(()=>[F.value?oe(Y.$slots,"error",{key:0,error:h.value},()=>[E("div",{class:R(S.value)},Se(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,lF)}}}),Fy=rF;const sF=it(kH,{FormItem:Fy}),iF=tn(Fy),a0="focus-trap.focus-after-trapped",o0="focus-trap.focus-after-released",uF="focus-trap.focusout-prevented",Lm={cancelable:!0,bubbles:!1},cF={cancelable:!0,bubbles:!1},Vm="focusAfterTrapped",Bm="focusAfterReleased",Ky=Symbol("elFocusTrap"),wh=V(),hf=V(0),Ch=V(0);let sc=0;const Wy=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},zm=(e,t)=>{for(const n of e)if(!dF(n,t))return n},dF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},fF=e=>{const t=Wy(e);return[zm(t,e),zm(t.reverse(),e)]},pF=e=>e instanceof HTMLInputElement&&"select"in e,$l=(e,t)=>{if(e){const n=document.activeElement;ku(e,{preventScroll:!0}),Ch.value=window.performance.now(),e!==n&&pF(e)&&t&&e.select()}};function Dm(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const hF=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=Dm(e,a),e.unshift(a)},remove:a=>{var o,l;e=Dm(e,a),(l=(o=e[0])==null?void 0:o.resume)==null||l.call(o)}}},vF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if($l(a,t),document.activeElement!==n)return},Hm=hF(),mF=()=>hf.value>Ch.value,ic=()=>{wh.value="pointer",hf.value=window.performance.now()},Fm=()=>{wh.value="keyboard",hf.value=window.performance.now()},gF=()=>(gt(()=>{sc===0&&(document.addEventListener("mousedown",ic),document.addEventListener("touchstart",ic),document.addEventListener("keydown",Fm)),sc++}),Lt(()=>{sc--,sc<=0&&(document.removeEventListener("mousedown",ic),document.removeEventListener("touchstart",ic),document.removeEventListener("keydown",Fm))}),{focusReason:wh,lastUserFocusTimestamp:hf,lastAutomatedFocusTimestamp:Ch}),uc=e=>new CustomEvent(uF,{...cF,detail:e});var yF=D({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Vm,Bm,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let a,o;const{focusReason:l}=gF();DO(p=>{e.trapped&&!r.paused&&t("release-requested",p)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:w}=p,{loop:_}=e,S=Kt(p)===Ce.tab&&!v&&!m&&!y,k=document.activeElement;if(S&&k){const T=b,[M,A]=fF(T);if(M&&A){if(!w&&k===A){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),_&&$l(M,!0))}else if(w&&[M,T].includes(k)){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),_&&$l(A,!0))}}else if(k===T){const O=uc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||p.preventDefault()}}};wt(Ky,{focusTrapRef:n,onKeydown:s}),fe(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),fe([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=p=>{t(Vm,p)},c=p=>t(Bm,p),d=p=>{const v=i(n);if(!v)return;const m=p.target,y=p.relatedTarget,b=m&&v.contains(m);e.trapped||y&&v.contains(y)||(a=y),b&&t("focusin",p),!r.paused&&e.trapped&&(b?o=m:$l(o,!0))},f=p=>{const v=i(n);if(!(r.paused||!v))if(e.trapped){const m=p.relatedTarget;!gn(m)&&!v.contains(m)&&setTimeout(()=>{if(!r.paused&&e.trapped){const y=uc({focusReason:l.value});t("focusout-prevented",y),y.defaultPrevented||$l(o,!0)}},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Le();const p=i(n);if(p){Hm.push(r);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(a0,Lm);p.addEventListener(a0,u),p.dispatchEvent(m),m.defaultPrevented||Le(()=>{let y=e.focusStartEl;Be(y)||($l(y),document.activeElement!==y&&(y="first")),y==="first"&&vF(Wy(p),!0),(document.activeElement===v||y==="container")&&$l(p)})}}}function g(){const p=i(n);if(p){p.removeEventListener(a0,u);const v=new CustomEvent(o0,{...Lm,detail:{focusReason:l.value}});p.addEventListener(o0,c),p.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!mF()||p.contains(document.activeElement))&&$l(a??document.body),p.removeEventListener(o0,c),Hm.remove(r),a=null,o=null}}return gt(()=>{e.trapped&&h(),fe(()=>e.trapped,p=>{p?h():g()})}),Lt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:s}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function bF(e,t,n,a,o,l){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var wF=En(yF,[["render",bF]]),Xs=wF;const CF=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,l={placement:n,strategy:a,...o,modifiers:[...SF(e),...t]};return xF(l,o==null?void 0:o.modifiers),l},_F=e=>{if(At)return xn(e)};function SF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function xF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kF=0,EF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=Pe(bh,void 0),l=V(),r=x(()=>e.arrowOffset),s=x(()=>({name:"eventListeners",enabled:!!e.visible})),u=x(()=>{const b=i(l),w=i(r)??kF;return{name:"arrow",enabled:!FT(b),options:{element:b,padding:w}}}),c=x(()=>({onFirstUpdate:()=>{p()},...CF(e,[i(u),i(s)])})),d=x(()=>_F(e.referenceEl)||i(a)),{attributes:f,state:h,styles:g,update:p,forceUpdate:v,instanceRef:m}=LO(d,n,c);fe(m,b=>t.value=b,{flush:"sync"}),gt(()=>{fe(()=>{var b,w;return(w=(b=i(d))==null?void 0:b.getBoundingClientRect)==null?void 0:w.call(b)},()=>{p()})});let y;return fe(()=>e.visible,b=>{y==null||y(),y=void 0,b&&(y=Zt(n,p).stop)}),Lt(()=>{t.value=void 0,y==null||y(),y=void 0}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:h,styles:g,role:o,forceUpdate:v,update:p}},TF=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Ou(),l=ve("popper"),r=x(()=>i(t).popper),s=V(He(e.zIndex)?e.zIndex:o()),u=x(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=x(()=>[{zIndex:i(s)},i(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),f=x(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:s,updateZIndex:()=>{s.value=He(e.zIndex)?e.zIndex:o()}}},MF=(e,t)=>{const n=V(!1),a=V(),o=()=>{t("focus")},l=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},s=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Lt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:o,onFocusInTrap:r,onFocusoutPrevented:s,onReleaseRequested:u}};var OF=D({name:"ElPopperContent",__name:"content",props:Dy,emits:mH,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=MF(o,a),{attributes:h,arrowRef:g,contentRef:p,styles:v,instanceRef:m,role:y,update:b}=EF(o),{ariaModal:w,arrowStyle:_,contentAttrs:S,contentClass:k,contentStyle:T,updateZIndex:M}=TF(o,{styles:v,attributes:h,role:y}),A=Pe(Do,void 0);wt(Iy,{arrowStyle:_,arrowRef:g}),A&&wt(Do,{...A,addInputId:It,removeInputId:It});let O;const I=(z=!0)=>{b(),z&&M()},L=()=>{I(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return gt(()=>{fe(()=>o.triggerTargetEl,(z,q)=>{O==null||O(),O=void 0;const U=i(z||p.value),F=i(q||p.value);ga(U)&&(O=fe([y,()=>o.ariaLabel,w,()=>o.id],N=>{["role","aria-label","aria-modal","id"].forEach((P,B)=>{gn(N[B])?U.removeAttribute(P):U.setAttribute(P,N[B])})},{immediate:!0})),F!==U&&ga(F)&&["role","aria-label","aria-modal","id"].forEach(N=>{F.removeAttribute(N)})},{immediate:!0}),fe(()=>o.visible,L,{immediate:!0})}),Lt(()=>{O==null||O(),O=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:I,contentStyle:T}),(z,q)=>(C(),$("div",ht({ref_key:"contentRef",ref:p},i(S),{style:i(T),class:i(k),tabindex:"-1",onMouseenter:q[0]||(q[0]=U=>z.$emit("mouseenter",U)),onMouseleave:q[1]||(q[1]=U=>z.$emit("mouseleave",U))}),[Q(i(Xs),{loop:e.loop,trapped:i(r),"trap-on-focus-in":!0,"focus-trap-el":i(p),"focus-start-el":i(l),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(s),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ae(()=>[oe(z.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),$F=OF,AF=D({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Py,setup(e,{expose:t}){const n=e,a={triggerRef:V(),popperInstanceRef:V(),contentRef:V(),referenceRef:V(),role:x(()=>n.role)};return t(a),wt(bh,a),(o,l)=>oe(o.$slots,"default")}}),RF=AF;const jy=it(RF),Ht=_e({...KO,...Dy,appendTo:{type:Eu.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...oa(["ariaLabel"])}),Po=_e({...Ly,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space]},focusOnTarget:Boolean}),{useModelToggleProps:NF,useModelToggleEmits:PF,useModelToggle:IF}=NM("visible"),LF=_e({...Py,...NF,...Ht,...Po,...zy,showArrow:{type:Boolean,default:!0}}),VF=[...PF,"before-show","before-hide","show","hide","open","close"],_h=Symbol("elTooltip"),w2=(e,t)=>be(e)?e.includes(t):e===t,Xr=(e,t,n)=>a=>{w2(i(e),t)&&n(a)};var BF=D({name:"ElTooltipTrigger",__name:"trigger",props:Po,setup(e,{expose:t}){const n=e,a=ve("tooltip"),{controlled:o,id:l,open:r,onOpen:s,onClose:u,onToggle:c}=Pe(_h,void 0),d=V(null),f=()=>{if(i(o)||n.disabled)return!0},h=Bt(n,"trigger"),g=On(f,Xr(h,"hover",_=>{s(_),n.focusOnTarget&&_.target&&Le(()=>{ku(_.target,{preventScroll:!0})})})),p=On(f,Xr(h,"hover",u)),v=On(f,Xr(h,"click",_=>{_.button===0&&c(_)})),m=On(f,Xr(h,"focus",s)),y=On(f,Xr(h,"focus",u)),b=On(f,Xr(h,"contextmenu",_=>{_.preventDefault(),c(_)})),w=On(f,_=>{const S=Kt(_);n.triggerKeys.includes(S)&&(_.preventDefault(),c(_))});return t({triggerRef:d}),(_,S)=>(C(),ie(i(pH),{id:i(l),"virtual-ref":e.virtualRef,open:i(r),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(y),onClick:i(v),onContextmenu:i(b),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(p),onKeydown:i(w)},{default:ae(()=>[oe(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),zF=BF,DF=D({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ht,setup(e,{expose:t}){const n=e,{selector:a}=W8(),o=ve("tooltip"),l=V(),r=y6(()=>{var P;return(P=l.value)==null?void 0:P.popperContentRef});let s;const{controlled:u,id:c,open:d,trigger:f,onClose:h,onOpen:g,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:y}=Pe(_h,void 0),b=x(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=x(()=>n.persistent);Lt(()=>{s==null||s()});const _=x(()=>i(w)?!0:i(d)),S=x(()=>n.disabled?!1:i(d)),k=x(()=>n.appendTo||a.value),T=x(()=>n.style??{}),M=V(!0),A=()=>{v(),N()&&ku(document.body,{preventScroll:!0}),M.value=!0},O=()=>{if(i(u))return!0},I=On(O,()=>{n.enterable&&w2(i(f),"hover")&&g()}),L=On(O,()=>{w2(i(f),"hover")&&h()}),z=()=>{var P,B;(B=(P=l.value)==null?void 0:P.updatePopper)==null||B.call(P),m==null||m()},q=()=>{y==null||y()},U=()=>{p()},F=()=>{n.virtualTriggering||h()},N=P=>{var W;const B=(W=l.value)==null?void 0:W.popperContentRef,K=(P==null?void 0:P.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(K)};return fe(()=>i(d),P=>{P?(M.value=!1,s=$p(r,()=>{i(u)||ta(i(f)).every(B=>B!=="hover"&&B!=="focus")&&h()},{detectIframe:!0})):s==null||s()},{flush:"post"}),t({contentRef:l,isFocusInsideContent:N}),(P,B)=>(C(),ie(i(Ys),{disabled:!e.teleported,to:k.value},{default:ae(()=>[_.value||!M.value?(C(),ie(Fn,{key:0,name:b.value,appear:!w.value,onAfterLeave:A,onBeforeEnter:z,onAfterEnter:U,onBeforeLeave:q,persisted:""},{default:ae(()=>[ft(Q(i($F),ht({id:i(c),ref_key:"contentRef",ref:l},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":M.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(I),onMouseleave:i(L),onBlur:F,onClose:i(h)}),{default:ae(()=>[oe(P.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[$t,S.value]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}}),HF=DF;const FF=["innerHTML"],KF={key:1};var WF=D({name:"ElTooltip",__name:"tooltip",props:LF,emits:VF,setup(e,{expose:t,emit:n}){const a=e,o=n;FO();const l=ve("tooltip"),r=Kn(),s=V(),u=V(),c=()=>{var S;const _=i(s);_&&((S=_.popperInstanceRef)==null||S.update())},d=V(!1),f=V(),{show:h,hide:g,hasUpdateHandler:p}=IF({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=WO({showAfter:Bt(a,"showAfter"),hideAfter:Bt(a,"hideAfter"),autoClose:Bt(a,"autoClose"),open:h,close:g}),y=x(()=>Dt(a.visible)&&!p.value),b=x(()=>[l.b(),a.popperClass]);wt(_h,{controlled:y,id:r,open:Tr(d),trigger:Bt(a,"trigger"),onOpen:v,onClose:m,onToggle:_=>{i(d)?m(_):v(_)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),fe(()=>a.disabled,_=>{_&&d.value&&(d.value=!1),!_&&Dt(a.visible)&&(d.value=a.visible)});const w=_=>{var S;return(S=u.value)==null?void 0:S.isFocusInsideContent(_)};return wp(()=>d.value&&g()),Lt(()=>{f.value=void 0}),t({popperRef:s,contentRef:u,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:m,hide:g}),(_,S)=>(C(),ie(i(jy),{ref_key:"popperRef",ref:s,role:e.role},{default:ae(()=>[Q(zF,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ae(()=>[_.$slots.default?oe(_.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(HF,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":b.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ae(()=>[oe(_.$slots,"content",{},()=>[e.rawContent?(C(),$("span",{key:0,innerHTML:e.content},null,8,FF)):(C(),$("span",KF,Se(e.content),1))]),e.showArrow?(C(),ie(i(dH),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),jF=WF;const Vn=it(jF),on=e=>e,Sh=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ft},prefixIcon:{type:Ft},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>on({})},countGraphemes:{type:J(Function)},autofocus:Boolean,rows:{type:Number,default:2},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),qF={[ot]:e=>Be(e),input:e=>Be(e),change:(e,t)=>Be(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Oo(ho);let Gn;const UF={height:"0",visibility:"hidden",overflow:qd()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},YF=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Km=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function GF(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:YF.map(l=>[l,t.getPropertyValue(l)]),paddingSize:a,borderSize:o,boxSizing:n}}function Wm(e,t=1,n){var d;if(!Gn){Gn=document.createElement("textarea");let f=document.body;!qd()&&e.parentNode&&(f=e.parentNode),f.appendChild(Gn)}const{paddingSize:a,borderSize:o,boxSizing:l,contextStyle:r}=GF(e);r.forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h)),Object.entries(UF).forEach(([f,h])=>Gn==null?void 0:Gn.style.setProperty(f,h,"important")),Gn.value=e.value||e.placeholder||"";let s=Gn.scrollHeight;const u={};l==="border-box"?s=s+o:l==="content-box"&&(s=s-a),Gn.value="";const c=Gn.scrollHeight-a;if(He(t)){let f=c*t;l==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(He(n)){let f=c*n;l==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(d=Gn.parentNode)==null||d.removeChild(Gn),Gn=void 0,u}const XF=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],JF=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],jm="ElInput";var ZF=D({name:jm,inheritAttrs:!1,__name:"input",props:Sh,emits:qF,setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=hn(),s=x(()=>[a.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:W.value&&j.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=x(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=nf(),d=x(()=>{var Me;return(Me=a.maxlength)==null?void 0:Me.toString()}),{form:f,formItem:h}=Bn(),{inputId:g}=Pa(a,{formItemContext:h}),p=_n(),v=rn(),m=ve("input"),y=ve("textarea"),b=qt(),w=qt(),_=V(!1),S=V(!1),k=V(),T=qt(a.inputStyle),M=V(""),A=x(()=>b.value||w.value),{wrapperRef:O,isFocused:I,handleFocus:L,handleBlur:z}=Cl(A,{disabled:v,afterBlur(){var Me;a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ge=>pt(Ge)))}}),q=x(()=>(f==null?void 0:f.statusIcon)??!1),U=x(()=>(h==null?void 0:h.validateState)||""),F=x(()=>U.value&&pf[U.value]),N=x(()=>S.value?$y:yy),P=x(()=>[l.style]),B=x(()=>[a.inputStyle,T.value,{resize:a.resize}]),K=x(()=>gn(a.modelValue)?"":String(a.modelValue)),W=x(()=>a.clearable&&!v.value&&!a.readonly&&!!K.value&&(I.value||_.value)),j=x(()=>a.showPassword&&!v.value&&!!K.value),G=x(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),ee=x(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(K.value):K.value.length),te=x(()=>!!G.value&&ee.value>Number(d.value)),ue=x(()=>!!r.suffix||!!a.suffixIcon||W.value||a.showPassword||G.value||!!U.value&&q.value),ne=x(()=>!!Object.keys(a.modelModifiers).length),[de,se]=I$(b);Zt(w,Me=>{if(H(),!G.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:Ge}=Me[0].contentRect;k.value={right:`calc(100% - ${Ge+22-10}px)`}});const Y=()=>{const{type:Me,autosize:Ge}=a;if(!(!At||Me!=="textarea"||!w.value))if(Ge){const ut=lt(Ge)?Ge.minRows:void 0,je=lt(Ge)?Ge.maxRows:void 0,tt=Wm(w.value,ut,je);T.value={overflowY:"hidden",...tt},Le(()=>{w.value.offsetHeight,T.value=tt})}else T.value={minHeight:Wm(w.value).minHeight}},H=(Me=>{let Ge=!1;return()=>{var ut;Ge||!a.autosize||((ut=w.value)==null?void 0:ut.offsetParent)!==null&&(setTimeout(Me),Ge=!0)}})(Y),Z=()=>{const Me=A.value,Ge=a.formatter?a.formatter(K.value):K.value;!Me||Me.value===Ge||a.type==="file"||(Me.value=Ge)},le=Me=>{const{trim:Ge,number:ut}=a.modelModifiers;return Ge&&(Me=Me.trim()),ut&&(Me=`${Km(Me)}`),a.formatter&&a.parser&&(Me=a.parser(Me)),Me},ce=async Me=>{if(me.value)return;const{lazy:Ge}=a.modelModifiers;let{value:ut}=Me.target,je=!1;if(Ge){o(wn,ut);return}if(ut=le(ut),a.countGraphemes&&d.value!=null){const tt=Number(d.value),yt=a.countGraphemes(ut),he=a.countGraphemes(M.value);if(yt>tt&&yt>he)if(he>tt)ut=M.value,je=!0;else{const Ve=M.value,pe=ut;let Te=0;for(;TeTe&&Pt>Te&&Ve[ct-1]===pe[Pt-1];)ct--,Pt--;const Gt=pe.slice(0,Te),Oe=Ve.slice(Te,ct),We=pe.slice(Te,Pt),Ze=pe.slice(Pt),cn=he-a.countGraphemes(Oe),zt=Math.max(0,tt-cn);let Xt="";if(zt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const Ue=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:Xe}of Ue.segment(We)){const mt=Xt+Xe;if(a.countGraphemes(mt)>zt)break;Xt=mt}}else for(const Ue of Array.from(We)){const Xe=Xt+Ue;if(a.countGraphemes(Xe)>zt)break;Xt=Xe}ut=Gt+Xt+Ze,je=!0}}if(String(ut)===K.value){if(a.formatter||je){const tt=Me.target,yt=tt.value,he=tt.selectionStart,Ve=tt.selectionEnd;if(Z(),je&&A.value&&he!=null&&Ve!=null){const pe=A.value.value,Te=yt.slice(Math.max(0,Ve));let ct=Math.min(he,pe.length);Te&&pe.endsWith(Te)&&(ct=pe.length-Te.length),A.value.setSelectionRange(ct,ct)}}return}M.value=ut,de(),o(ot,ut),o(wn,ut),await Le(),(a.formatter&&a.parser||!ne.value)&&Z(),se()},ge=async Me=>{let{value:Ge}=Me.target;Ge=le(Ge),a.modelModifiers.lazy&&o(ot,Ge),o(bt,Ge,Me),await Le(),Z()},{isComposing:me,handleCompositionStart:Ae,handleCompositionUpdate:Ne,handleCompositionEnd:Re}=Nu({emit:o,afterComposition:ce}),ye=()=>{S.value=!S.value},Ee=()=>{var Me;return(Me=A.value)==null?void 0:Me.focus()},we=()=>{var Me;return(Me=A.value)==null?void 0:Me.blur()},Ie=Me=>{_.value=!1,o("mouseleave",Me)},ze=Me=>{_.value=!0,o("mouseenter",Me)},et=Me=>{o("keydown",Me)},nt=()=>{var Me;(Me=A.value)==null||Me.select()},at=Me=>{o(ot,""),o(bt,""),o("clear",Me),o(wn,"")};return fe(()=>a.modelValue,()=>{var Me;Le(()=>Y()),a.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"change").catch(Ge=>pt(Ge)))}),fe(()=>K.value,Me=>{M.value=Me},{immediate:!0}),fe(K,Me=>{if(!A.value)return;const{trim:Ge,number:ut}=a.modelModifiers,je=A.value.value,tt=(ut||a.type==="number")&&!/^0\d/.test(je)?`${Km(je)}`:je;tt!==Me&&(document.activeElement===A.value&&A.value.type!=="range"&&Ge&&tt.trim()===Me||Z())}),fe(()=>a.type,async()=>{await Le(),Z(),Y()}),gt(()=>{!a.formatter&&a.parser&&pt(jm,"If you set the parser, you also need to set the formatter."),Z(),Le(Y)}),t({input:b,textarea:w,ref:A,textareaStyle:B,autosize:Bt(a,"autosize"),isComposing:me,passwordVisible:S,focus:Ee,blur:we,select:nt,clear:at,resizeTextarea:Y}),(Me,Ge)=>(C(),$("div",{class:R([s.value,{[i(m).bm("group","append")]:Me.$slots.append,[i(m).bm("group","prepend")]:Me.$slots.prepend}]),style:qe(P.value),onMouseenter:ze,onMouseleave:Ie},[re(" input "),e.type!=="textarea"?(C(),$(Ke,{key:0},[re(" prepend slot "),Me.$slots.prepend?(C(),$("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(Me.$slots,"prepend")],2)):re("v-if",!0),E("div",{ref_key:"wrapperRef",ref:O,class:R(u.value)},[re(" prefix slot "),Me.$slots.prefix||e.prefixIcon?(C(),$("span",{key:0,class:R(i(m).e("prefix"))},[E("span",{class:R(i(m).e("prefix-inner"))},[oe(Me.$slots,"prefix"),e.prefixIcon?(C(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),E("input",ht({id:i(g),ref_key:"input",ref:b,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?S.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[0]||(Ge[0]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[1]||(Ge[1]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[2]||(Ge[2]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onChange:ge,onKeydown:et}),null,16,XF),re(" suffix slot "),ue.value?(C(),$("span",{key:1,class:R(i(m).e("suffix"))},[E("span",{class:R(i(m).e("suffix-inner"))},[!W.value||!j.value||!G.value?(C(),$(Ke,{key:0},[oe(Me.$slots,"suffix"),e.suffixIcon?(C(),ie(i(De),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),W.value?(C(),ie(i(De),{key:1,class:R([i(m).e("icon"),i(m).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),j.value?(C(),ie(i(De),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:ye,onMousedown:Je(i(It),["prevent"]),onMouseup:Je(i(It),["prevent"])},{default:ae(()=>[oe(Me.$slots,"password-icon",{visible:S.value},()=>[(C(),ie(dt(N.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),G.value?(C(),$("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[E("span",{class:R(i(m).e("count-inner"))},Se(ee.value)+" / "+Se(d.value),3)],2)):re("v-if",!0),U.value&&F.value&&q.value?(C(),ie(i(De),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",U.value==="validating")])},{default:ae(()=>[(C(),ie(dt(F.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),Me.$slots.append?(C(),$("div",{key:1,class:R(i(m).be("group","append"))},[oe(Me.$slots,"append")],2)):re("v-if",!0)],64)):(C(),$(Ke,{key:1},[re(" textarea "),E("textarea",ht({id:i(g),ref_key:"textarea",ref:w,class:[i(y).e("inner"),i(m).is("focus",i(I)),i(y).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:B.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ge[3]||(Ge[3]=(...ut)=>i(Ae)&&i(Ae)(...ut)),onCompositionupdate:Ge[4]||(Ge[4]=(...ut)=>i(Ne)&&i(Ne)(...ut)),onCompositionend:Ge[5]||(Ge[5]=(...ut)=>i(Re)&&i(Re)(...ut)),onInput:ce,onFocus:Ge[6]||(Ge[6]=(...ut)=>i(L)&&i(L)(...ut)),onBlur:Ge[7]||(Ge[7]=(...ut)=>i(z)&&i(z)(...ut)),onChange:ge,onKeydown:et}),null,16,JF),W.value?(C(),ie(i(De),{key:0,class:R([i(y).e("icon"),i(y).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:at},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),G.value?(C(),$("span",{key:1,style:qe(k.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},Se(ee.value)+" / "+Se(d.value),7)):re("v-if",!0)],64))],38))}}),QF=ZF;const Dn=it(QF),eK=_e({...Sh,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:It},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Ht.teleported,appendTo:Ht.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),tK={[ot]:e=>Be(e)||He(e),[wn]:e=>Be(e)||He(e),[bt]:e=>Be(e)||He(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>lt(e)},nK=_e({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...oa(["ariaLabel","ariaOrientation"])}),qy={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(He)},Jr=4,Uy={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},aK=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),oK=_e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),xh=Symbol("scrollbarContextKey");function Dl(e,t,n=.03){return e-t>n}const lK=_e({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),rK="Thumb";var sK=D({__name:"thumb",props:oK,setup(e){const t=e,n=Pe(xh),a=ve("scrollbar");n||en(rK,"can not inject scrollbar context");const o=V(),l=V(),r=V({}),s=V(!1);let u=!1,c=!1,d=0,f=0,h=At?document.onselectstart:null;const g=x(()=>Uy[t.vertical?"vertical":"horizontal"]),p=x(()=>aK({size:t.size,move:t.move,bar:g.value})),v=x(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/l.value[g.value.offset]),m=M=>{var O;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(M);const A=M.currentTarget;A&&(r.value[g.value.axis]=A[g.value.offset]-(M[g.value.client]-A.getBoundingClientRect()[g.value.direction]))},y=M=>{if(!l.value||!o.value||!n.wrapElement)return;const A=(Math.abs(M.target.getBoundingClientRect()[g.value.direction]-M[g.value.client])-l.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=A*n.wrapElement[g.value.scrollSize]/100},b=M=>{M.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",_),h=document.onselectstart,document.onselectstart=()=>!1},w=M=>{if(!o.value||!l.value||u===!1)return;const A=r.value[g.value.axis];if(!A)return;const O=((o.value.getBoundingClientRect()[g.value.direction]-M[g.value.client])*-1-(l.value[g.value.offset]-A))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=O*f/100:n.wrapElement[g.value.scroll]=O*d/100},_=()=>{u=!1,r.value[g.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",_),T(),c&&(s.value=!1)},S=()=>{c=!1,s.value=!!t.size},k=()=>{c=!0,s.value=u};Lt(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(Bt(n,"scrollbarElement"),"mousemove",S),Vt(Bt(n,"scrollbarElement"),"mouseleave",k),(M,A)=>(C(),ie(Fn,{name:i(a).b("fade"),persisted:""},{default:ae(()=>[ft(E("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:y,onClick:A[0]||(A[0]=Je(()=>{},["stop"]))},[E("div",{ref_key:"thumb",ref:l,class:R(i(a).e("thumb")),style:qe(p.value),onMousedown:m},null,38)],34),[[$t,e.always||s.value]])]),_:1},8,["name"]))}}),qm=sK,iK=D({__name:"bar",props:lK,setup(e,{expose:t}){const n=e,a=Pe(xh),o=V(0),l=V(0),r=V(""),s=V(""),u=V(1),c=V(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Jr,p=h.offsetWidth-Jr;l.value=h.scrollTop*100/g*u.value,o.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const g=h.offsetHeight-Jr,p=h.offsetWidth-Jr,v=g**2/h.scrollHeight,m=p**2/h.scrollWidth,y=Math.max(v,n.minSize),b=Math.max(m,n.minSize);u.value=v/(g-v)/(y/(g-y)),c.value=m/(p-m)/(b/(p-b)),s.value=y+Jr(C(),$(Ke,null,[Q(qm,{move:o.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),Q(qm,{move:l.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),uK=iK;const cK=["tabindex"],l0="ElScrollbar";var dK=D({name:l0,__name:"scrollbar",props:nK,emits:qy,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("scrollbar");let r,s,u,c=0,d=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},g=V(),p=V(),v=V(),m=V(),y=x(()=>{const L={},z=ln(a.height),q=ln(a.maxHeight);return z&&(L.height=z),q&&(L.maxHeight=q),[a.wrapStyle,L]}),b=x(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),w=x(()=>[l.e("view"),a.viewClass]),_=L=>h[L]??!1,S={top:"bottom",bottom:"top",left:"right",right:"left"},k=L=>{const z=S[f];if(!z)return;const q=L[f],U=L[z];q&&!h[f]&&(h[f]=!0),!U&&h[z]&&(h[z]=!1)},T=()=>{var L;if(p.value){(L=m.value)==null||L.handleScroll(p.value);const z=c,q=d;c=p.value.scrollTop,d=p.value.scrollLeft;const U={bottom:!Dl(p.value.scrollHeight-a.distance,p.value.clientHeight+c),top:c<=a.distance&&z!==0,right:!Dl(p.value.scrollWidth-a.distance,p.value.clientWidth+d)&&q!==d,left:d<=a.distance&&q!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),z!==c&&(f=c>z?"bottom":"top"),q!==d&&(f=d>q?"right":"left"),a.distance>0){if(_(f))return;k(U)}U[f]&&o("end-reached",f)}};function M(L,z){lt(L)?p.value.scrollTo(L):He(L)&&He(z)&&p.value.scrollTo(L,z)}const A=L=>{if(!He(L)){pt(l0,"value must be a number");return}p.value.scrollTop=L},O=L=>{if(!He(L)){pt(l0,"value must be a number");return}p.value.scrollLeft=L},I=()=>{var L,z;(L=m.value)==null||L.update(),h[f]=!1,p.value&&((z=m.value)==null||z.handleScroll(p.value))};return fe(()=>a.noresize,L=>{L?(r==null||r(),s==null||s(),u==null||u()):({stop:r}=Zt(v,I),{stop:s}=Zt(p,I),u=Vt("resize",I))},{immediate:!0}),fe(()=>[a.maxHeight,a.height],()=>{a.native||Le(()=>{I()})}),wt(xh,Rt({scrollbarElement:g,wrapElement:p})),vu(()=>{p.value&&(p.value.scrollTop=c,p.value.scrollLeft=d)}),gt(()=>{a.native||Le(()=>{I()})}),so(()=>I()),t({wrapRef:p,update:I,scrollTo:M,setScrollTop:A,setScrollLeft:O,handleScroll:T}),(L,z)=>(C(),$("div",{ref_key:"scrollbarRef",ref:g,class:R(i(l).b())},[E("div",{ref_key:"wrapRef",ref:p,class:R(b.value),style:qe(y.value),tabindex:e.tabindex,onScroll:T},[(C(),ie(dt(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(w.value),style:qe(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ae(()=>[oe(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,cK),e.native?re("v-if",!0):(C(),ie(uK,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),fK=dK;const ao=it(fK),pK=["aria-expanded","aria-owns"],hK={key:0},vK=["id","aria-selected","onClick"],Um="ElAutocomplete";var mK=D({name:Um,inheritAttrs:!1,__name:"autocomplete",props:eK,emits:tK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const Y=Dn.props??[];return ul(a,be(Y)?Y:Object.keys(Y))}),r=gl(),s=rn(),u=ve("autocomplete"),c=V(),d=V(),f=V(),h=V();let g=!1,p=!1;const v=V([]),m=V(-1),y=V(""),b=V(!1),w=V(!1),_=V(!1),S=Kn(),k=x(()=>r.style),T=x(()=>(v.value.length>0||_.value)&&b.value),M=x(()=>!a.hideLoading&&_.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=()=>{T.value&&(y.value=`${c.value.$el.offsetWidth}px`)},I=()=>{m.value=-1},L=async Y=>{if(w.value)return;const X=H=>{_.value=!1,!w.value&&(be(H)?(v.value=H,m.value=a.highlightFirstItem?0:-1):en(Um,"autocomplete suggestions must be an array"))};if(_.value=!0,be(a.fetchSuggestions))X(a.fetchSuggestions);else{const H=await a.fetchSuggestions(Y,X);be(H)&&X(H)}},z=gu(L,x(()=>a.debounce)),q=Y=>{const X=!!Y;if(o(wn,Y),o(ot,Y),w.value=!1,b.value||(b.value=X),!a.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}z(Y)},U=Y=>{var X;s.value||(((X=Y.target)==null?void 0:X.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},F=Y=>{o(bt,Y)},N=Y=>{if(p)p=!1;else{b.value=!0,o("focus",Y);const X=a.modelValue??"";a.triggerOnFocus&&!g&&z(String(X))}},P=Y=>{setTimeout(()=>{var X;if((X=f.value)!=null&&X.isFocusInsideContent()){p=!0;return}b.value&&j(),o("blur",Y)})},B=()=>{b.value=!1,o(ot,""),o("clear")},K=async()=>{var Y;(Y=c.value)!=null&&Y.isComposing||(T.value&&m.value>=0&&m.value{T.value&&(Y.preventDefault(),Y.stopPropagation(),j())},j=()=>{b.value=!1},G=()=>{var Y;(Y=c.value)==null||Y.focus()},ee=()=>{var Y;(Y=c.value)==null||Y.blur()},te=async Y=>{o(wn,Y[a.valueKey]),o(ot,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ue=Y=>{var me,Ae;if(!T.value||_.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[X,H]=ne(),Z=H[Y],le=X.scrollTop,{offsetTop:ce,scrollHeight:ge}=Z;ce+ge>le+X.clientHeight&&(X.scrollTop=ce+ge-X.clientHeight),ce{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=$p(h,Y=>{var H;if((H=f.value)!=null&&H.isFocusInsideContent())return;const X=p;p=!1,T.value&&(X?P(new FocusEvent("blur",Y)):j())}),se=Y=>{switch(Kt(Y)){case Ce.up:Y.preventDefault(),ue(m.value-1);break;case Ce.down:Y.preventDefault(),ue(m.value+1);break;case Ce.enter:case Ce.numpadEnter:Y.preventDefault(),K();break;case Ce.tab:j();break;case Ce.esc:W(Y);break;case Ce.home:Y.preventDefault(),ue(0);break;case Ce.end:Y.preventDefault(),ue(v.value.length-1);break;case Ce.pageUp:Y.preventDefault(),ue(Math.max(0,m.value-10));break;case Ce.pageDown:Y.preventDefault(),ue(Math.min(v.value.length-1,m.value+10));break}};return Lt(()=>{de==null||de()}),gt(()=>{var X;const Y=(X=c.value)==null?void 0:X.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:S.value},{key:"aria-activedescendant",value:`${S.value}-item-${m.value}`}].forEach(({key:H,value:Z})=>Y.setAttribute(H,Z)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:b,loading:_,inputRef:c,popperRef:f,suggestions:v,handleSelect:te,handleKeyEnter:K,focus:G,blur:ee,close:j,highlight:ue,getData:L}),(Y,X)=>(C(),ie(i(Vn),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:O,onHide:I},{content:ae(()=>[E("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",M.value)]),style:qe({[e.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Y.$slots.header?(C(),$("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:X[0]||(X[0]=Je(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),Q(i(ao),{id:i(S),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ae(()=>[M.value?(C(),$("li",hK,[oe(Y.$slots,"loading",{},()=>[Q(i(De),{class:R(i(u).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])])])):(C(!0),$(Ke,{key:1},_t(v.value,(H,Z)=>(C(),$("li",{id:`${i(S)}-item-${Z}`,key:Z,class:R({highlighted:m.value===Z}),role:"option","aria-selected":m.value===Z,onClick:le=>te(H)},[oe(Y.$slots,"default",{item:H},()=>[St(Se(H[e.valueKey]),1)])],10,vK))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(C(),$("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:X[1]||(X[1]=Je(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ae(()=>[E("div",{ref_key:"listboxRef",ref:h,class:R([i(u).b(),Y.$attrs.class]),style:qe(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":i(S)},[Q(i(Dn),ht({ref_key:"inputRef",ref:c},ht(l.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(s),onInput:q,onChange:F,onFocus:N,onBlur:P,onClear:B,onKeydown:se,onMousedown:U}),fa({_:2},[Y.$slots.prepend?{name:"prepend",fn:ae(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ae(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,pK)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),gK=mK;const yK=it(gK),bK=_e({size:{type:[Number,String],values:io,validator:e=>He(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ft},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),wK={error:e=>e instanceof Event},Yy=Symbol("avatarGroupContextKey"),CK={size:{type:J([Number,String]),values:io,validator:e=>He(e)},shape:{type:J(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:J(String),default:"light"},placement:{type:J(String),values:Ho,default:"top"},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,collapseClass:String,collapseStyle:{type:J([String,Array,Object])}},_K=["src","alt","srcset"];var SK=D({name:"ElAvatar",__name:"avatar",props:bK,emits:wK,setup(e,{emit:t}){const n=e,a=t,o=Pe(Yy,void 0),l=ve("avatar"),r=V(!1),s=x(()=>n.size??(o==null?void 0:o.size)),u=x(()=>n.shape??(o==null?void 0:o.shape)??"circle"),c=x(()=>{const{icon:g}=n,p=[l.b()];return Be(s.value)&&p.push(l.m(s.value)),g&&p.push(l.m("icon")),u.value&&p.push(l.m(u.value)),p}),d=x(()=>He(s.value)?l.cssVarBlock({size:ln(s.value)}):void 0),f=x(()=>({objectFit:n.fit}));fe(()=>[n.src,n.srcSet],()=>r.value=!1);function h(g){r.value=!0,a("error",g)}return(g,p)=>(C(),$("span",{class:R(c.value),style:qe(d.value)},[(e.src||e.srcSet)&&!r.value?(C(),$("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:qe(f.value),onError:h},null,44,_K)):e.icon?(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),Gy=SK,Xy=D({name:"ElAvatarGroup",props:CK,setup(e,{slots:t}){const n=ve("avatar-group");return wt(Yy,Rt({size:Bt(e,"size"),shape:Bt(e,"shape")})),()=>{var l;const a=Ta(((l=t.default)==null?void 0:l.call(t))??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(Q(Vn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Q(Gy,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[St("+ "),r.length]}),content:()=>Q("div",{class:n.e("collapse-avatars")},[r.map((s,u)=>Wt(s)?Io(s,{key:s.key??u}):s)])}))}return Q("div",{class:n.b()},[o])}}});const xK=it(Gy,{AvatarGroup:Xy}),kK=tn(Xy),EK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},TK={click:e=>e instanceof MouseEvent},MK=(e,t,n)=>{const a=qt(),o=qt(),l=V(!1),r=()=>{a.value&&(l.value=a.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=a.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Vt(o,"scroll",_6(r,300,!0)),gt(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||en(n,`target does not exist: ${e.target}`),o.value=a.value),r()}),{visible:l,handleClick:s}},Ym="ElBacktop";var OK=D({name:Ym,__name:"backtop",props:EK,emits:TK,setup(e,{emit:t}){const n=e,a=t,o=ve("backtop"),{handleClick:l,visible:r}=MK(n,a,Ym),s=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(C(),ie(Fn,{name:`${i(o).namespace.value}-fade-in`},{default:ae(()=>[i(r)?(C(),$("div",{key:0,style:qe(s.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Je((...d)=>i(l)&&i(l)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[Q(i(De),{class:R(i(o).e("icon"))},{default:ae(()=>[Q(i(py))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),$K=OK;const AK=it($K),RK=_e({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:()=>[0,0]},badgeClass:{type:String}});var NK=D({name:"ElBadge",__name:"badge",props:RK,setup(e,{expose:t}){const n=e,a=ve("badge"),o=x(()=>n.isDot?"":He(n.value)&&He(n.max)?n.max[{backgroundColor:n.color,marginRight:ln(-n.offset[0]),marginTop:ln(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(r,s)=>(C(),$("div",{class:R(i(a).b())},[oe(r.$slots,"default"),Q(Fn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||r.$slots.content)?(C(),$("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!r.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:qe(l.value)},[oe(r.$slots,"content",{value:o.value},()=>[St(Se(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),PK=NK;const Jy=it(PK),IK=_e({separator:{type:String,default:"/"},separatorIcon:{type:Ft}}),Zy=Symbol("breadcrumbKey"),LK=_e({to:{type:J([String,Object]),default:""},replace:Boolean}),VK=["aria-label"];var BK=D({name:"ElBreadcrumb",__name:"breadcrumb",props:IK,setup(e){const{t}=kt(),n=e,a=ve("breadcrumb"),o=V();return wt(Zy,n),gt(()=>{const l=o.value.querySelectorAll(`.${a.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,r)=>(C(),$("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(l.$slots,"default")],10,VK))}}),zK=BK,DK=D({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:LK,setup(e){const t=e,n=vt(),a=Pe(Zy,void 0),o=ve("breadcrumb"),l=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(s,u)=>{var c,d;return C(),$("span",{class:R(i(o).e("item"))},[E("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:r},[oe(s.$slots,"default")],2),(c=i(a))!=null&&c.separatorIcon?(C(),ie(i(De),{key:0,class:R(i(o).e("separator"))},{default:ae(()=>[(C(),ie(dt(i(a).separatorIcon)))]),_:1},8,["class"])):(C(),$("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},Se((d=i(a))==null?void 0:d.separator),3))],2)}}}),Qy=DK;const HK=it(zK,{BreadcrumbItem:Qy}),FK=tn(Qy),C2=["default","primary","success","warning","info","danger","text",""],KK=["button","submit","reset"],_2=_e({size:kn,disabled:{type:Boolean,default:void 0},type:{type:String,values:C2,default:""},icon:{type:Ft},nativeType:{type:String,values:KK,default:"button"},loading:Boolean,loadingIcon:{type:Ft,default:()=>no},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),WK={click:e=>e instanceof MouseEvent},eb=Symbol(),ud=V();function _l(e,t=void 0){const n=vt()?Pe(eb,ud):ud;return e?x(()=>{var a;return((a=n.value)==null?void 0:a[e])??t}):n}function vf(e,t){const n=_l(),a=ve(e,x(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Ai})),o=kt(x(()=>{var s;return(s=n.value)==null?void 0:s.locale})),l=Ou(x(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||q8})),r=x(()=>{var s;return i(t)||((s=n.value)==null?void 0:s.size)||""});return kh(x(()=>i(n)||{})),{ns:a,locale:o,zIndex:l,size:r}}const kh=(e,t,n=!1)=>{const a=!!vt(),o=a?_l():void 0,l=(t==null?void 0:t.provide)??(a?wt:void 0);if(!l){pt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const r=x(()=>{const s=i(e);return o!=null&&o.value?jK(o.value,s):s});return l(eb,r),l(M8,x(()=>r.value.locale)),l(O8,x(()=>r.value.namespace)),l(U8,x(()=>r.value.zIndex)),l(ry,{size:x(()=>r.value.size||"")}),l(iy,x(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(n||!ud.value)&&(ud.value=r.value),r},jK=(e,t)=>{const n=[...new Set([...Gi(e),...Gi(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},qK=_e({a11y:{type:Boolean,default:!0},locale:{type:J(Object)},size:kn,button:{type:J(Object)},card:{type:J(Object)},dialog:{type:J(Object)},link:{type:J(Object)},experimentalFeatures:{type:J(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:J(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:J(Object)},...Wr}),Zn={placement:"top"},UK=D({name:"ElConfigProvider",props:qK,setup(e,{slots:t}){const n=kh(e);return fe(()=>e.message,a=>{var o;Object.assign(Zn,((o=n==null?void 0:n.value)==null?void 0:o.message)??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n==null?void 0:n.value})}}),YK=it(UK),tb=Symbol("buttonGroupContextKey"),GK=(e,t)=>{$o({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Pe(tb,void 0),a=_l("button"),{form:o}=Bn(),l=_n(x(()=>n==null?void 0:n.size)),r=rn(),s=V(),u=hn(),c=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b;return e.autoInsertSpace??((b=a.value)==null?void 0:b.autoInsertSpace)??!1}),f=x(()=>{var b;return e.plain??((b=a.value)==null?void 0:b.plain)??!1}),h=x(()=>{var b;return e.round??((b=a.value)==null?void 0:b.round)??!1}),g=x(()=>{var b;return e.text??((b=a.value)==null?void 0:b.text)??!1}),p=x(()=>{var b;return e.dashed??((b=a.value)==null?void 0:b.dashed)??!1}),v=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=x(()=>{var w;const b=(w=u.default)==null?void 0:w.call(u);if(d.value&&(b==null?void 0:b.length)===1){const _=b[0];if((_==null?void 0:_.type)===Ks){const S=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:l,_type:c,_ref:s,_props:v,_plain:f,_round:h,_text:g,_dashed:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",b)}}};function Yn(e,t){XK(e)&&(e="100%");const n=JK(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function cc(e){return Math.min(1,Math.max(0,e))}function XK(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function JK(e){return typeof e=="string"&&e.indexOf("%")!==-1}function nb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function dc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function vr(e){return e.length===1?"0"+e:String(e)}function ZK(e,t,n){return{r:Yn(e,255)*255,g:Yn(t,255)*255,b:Yn(n,255)*255}}function Gm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0,r=0;const s=(a+o)/2;if(a===o)r=0,l=0;else{const u=a-o;switch(r=s>.5?u/(2-a-o):u/(a+o),a){case e:l=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QK(e,t,n){let a,o,l;if(e=Yn(e,360),t=Yn(t,100),n=Yn(n,100),t===0)o=n,l=n,a=n;else{const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=r0(s,r,e+1/3),o=r0(s,r,e),l=r0(s,r,e-1/3)}return{r:a*255,g:o*255,b:l*255}}function Xm(e,t,n){e=Yn(e,255),t=Yn(t,255),n=Yn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0;const r=a,s=a-o,u=a===0?0:s/a;if(a===o)l=0;else{switch(a){case e:l=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}const S2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lW(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,l=null,r=!1,s=!1;return typeof e=="string"&&(e=iW(e)),typeof e=="object"&&(Sa(e.r)&&Sa(e.g)&&Sa(e.b)?(t=ZK(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sa(e.h)&&Sa(e.s)&&Sa(e.v)?(a=dc(e.s),o=dc(e.v),t=eW(e.h,a,o),r=!0,s="hsv"):Sa(e.h)&&Sa(e.s)&&Sa(e.l)?(a=dc(e.s),l=dc(e.l),t=QK(e.h,a,l),r=!0,s="hsl"):Sa(e.c)&&Sa(e.m)&&Sa(e.y)&&Sa(e.k)&&(t=nW(e.c,e.m,e.y,e.k),r=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=nb(n),{ok:r,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const rW="[-\\+]?\\d+%?",sW="[-\\+]?\\d*\\.\\d+%?",Vl="(?:"+sW+")|(?:"+rW+")",s0="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",fc="[\\s|\\(]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")[,|\\s]+("+Vl+")\\s*\\)?",Va={CSS_UNIT:new RegExp(Vl),rgb:new RegExp("rgb"+s0),rgba:new RegExp("rgba"+fc),hsl:new RegExp("hsl"+s0),hsla:new RegExp("hsla"+fc),hsv:new RegExp("hsv"+s0),hsva:new RegExp("hsva"+fc),cmyk:new RegExp("cmyk"+fc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function iW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(S2[e])e=S2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Va.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Va.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Va.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Va.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Va.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Va.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Va.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Va.hex8.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),a:Qm(n[4]),format:t?"name":"hex8"}:(n=Va.hex6.exec(e),n?{r:xa(n[1]),g:xa(n[2]),b:xa(n[3]),format:t?"name":"hex"}:(n=Va.hex4.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),a:Qm(n[4]+n[4]),format:t?"name":"hex8"}:(n=Va.hex3.exec(e),n?{r:xa(n[1]+n[1]),g:xa(n[2]+n[2]),b:xa(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Sa(e){return typeof e=="number"?!Number.isNaN(e):Va.CSS_UNIT.test(e)}class fn{constructor(t="",n={}){if(t instanceof fn)return t;typeof t=="number"&&(t=oW(t)),this.originalInput=t;const a=lW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const l=t.r/255,r=t.g/255,s=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=nb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Xm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Xm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=Gm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=Gm(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return Jm(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return tW(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Yn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Yn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...Zm(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=Zm(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+Jm(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(S2))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new fn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=cc(n.l),new fn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new fn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=cc(n.l),new fn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=cc(n.s),new fn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=cc(n.s),new fn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new fn(n)}mix(t,n=50){const a=this.toRgb(),o=new fn(t).toRgb(),l=n/100,r={r:(o.r-a.r)*l+a.r,g:(o.g-a.g)*l+a.g,b:(o.b-a.b)*l+a.b,a:(o.a-a.a)*l+a.a};return new fn(r)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,l=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,l.push(new fn(a));return l}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new fn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:l}=n;const r=[],s=1/t;for(;t--;)r.push(new fn({h:a,s:o,v:l})),l=(l+s)%1;return r}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new fn({h:(n+72)%360,s:t.s,l:t.l}),new fn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new fn(t).toRgb(),o=n.a+a.a*(1-n.a);return new fn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],l=360/t;for(let r=1;r{let a={},o=e.color;if(o){const l=o.match(/var\((.*?)\)/);l&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const r=new fn(o),s=e.dark?r.tint(20).toString():bo(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?bo(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?bo(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?bo(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?bo(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?bo(r,80):r.tint(80).toString());else if(e.link||e.text){const u=e.dark?bo(r,30):r.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":s}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=s),t.value){const c=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?bo(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?bo(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var cW=D({name:"ElButton",__name:"button",props:_2,emits:WK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=uW(a),r=ve("button"),{_ref:s,_size:u,_type:c,_disabled:d,_props:f,_plain:h,_round:g,_text:p,_dashed:v,shouldAddSpace:m,handleClick:y}=GK(a,o),b=x(()=>[r.b(),r.m(c.value),r.m(u.value),r.is("disabled",d.value),r.is("loading",a.loading),r.is("plain",h.value),r.is("round",g.value),r.is("circle",a.circle),r.is("text",p.value),r.is("dashed",v.value),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:u,type:c,disabled:d,shouldAddSpace:m}),(w,_)=>(C(),ie(dt(e.tag),ht({ref_key:"_ref",ref:s},i(f),{class:b.value,style:i(l),onClick:i(y)}),{default:ae(()=>[e.loading?(C(),$(Ke,{key:0},[w.$slots.loading?oe(w.$slots,"loading",{key:0}):(C(),ie(i(De),{key:1,class:R(i(r).is("loading"))},{default:ae(()=>[(C(),ie(dt(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||w.$slots.icon?(C(),ie(i(De),{key:1},{default:ae(()=>[e.icon?(C(),ie(dt(e.icon),{key:0})):oe(w.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),w.$slots.default?(C(),$("span",{key:2,class:R({[i(r).em("text","expand")]:i(m)})},[oe(w.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),dW=cW;const fW={size:_2.size,type:_2.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}};var pW=D({name:"ElButtonGroup",__name:"button-group",props:fW,setup(e){const t=e;wt(tb,Rt({size:Bt(t,"size"),type:Bt(t,"type")}));const n=ve("button");return(a,o)=>(C(),$("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),ab=pW;const An=it(dW,{ButtonGroup:ab}),ob=tn(ab),hW=e=>be(e)&&e.length===2&&e.every(t=>Fl(t)),vW=_e({modelValue:{type:Date},range:{type:J(Array),validator:hW},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:J(Function)}}),mW={[ot]:e=>Fl(e),[wn]:e=>Fl(e)},eg=["hours","minutes","seconds"],oo="EP_PICKER_BASE",Eh="ElPopperOptions",lb=Symbol("commonPickerContextKey"),Ir="HH:mm:ss",Qo="YYYY-MM-DD",gW={date:Qo,dates:Qo,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${Qo} ${Ir}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:Qo,datetimerange:`${Qo} ${Ir}`};var Sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vde(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var rb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n=1e3,a=6e4,o=36e5,l="millisecond",r="second",s="minute",u="hour",c="day",d="week",f="month",h="quarter",g="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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(q){var U=["th","st","nd","rd"],F=q%100;return"["+q+(U[(F-20)%10]||U[F]||U[0])+"]"}},w=function(q,U,F){var N=String(q);return!N||N.length>=U?q:""+Array(U+1-N.length).join(F)+q},_={s:w,z:function(q){var U=-q.utcOffset(),F=Math.abs(U),N=Math.floor(F/60),P=F%60;return(U<=0?"+":"-")+w(N,2,"0")+":"+w(P,2,"0")},m:function q(U,F){if(U.date()1)return q(K[0])}else{var W=U.name;k[W]=U,P=W}return!N&&P&&(S=P),P||!N&&S},O=function(q,U){if(M(q))return q.clone();var F=typeof U=="object"?U:{};return F.date=q,F.args=arguments,new L(F)},I=_;I.l=A,I.i=M,I.w=function(q,U){return O(q,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var L=function(){function q(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var U=q.prototype;return U.parse=function(F){this.$d=function(N){var P=N.date,B=N.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var K=P.match(m);if(K){var W=K[2]-1||0,j=(K[7]||"0").substring(0,3);return B?new Date(Date.UTC(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,j)):new Date(K[1],W,K[3]||1,K[4]||0,K[5]||0,K[6]||0,j)}}return new Date(P)}(F),this.init()},U.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},U.$utils=function(){return I},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(F,N){var P=O(F);return this.startOf(N)<=P&&P<=this.endOf(N)},U.isAfter=function(F,N){return O(F)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),sb=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ib=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),tg=function(e,t){const n=Fl(e),a=Fl(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},ub=function(e,t){const n=be(e),a=be(t);return n&&a?e.length!==t.length?!1:e.every((o,l)=>tg(o,t[l])):!n&&!a?tg(e,t):!1},ng=function(e,t,n){const a=ca(t)||t==="x"?st(e).locale(n):st(e,t).locale(n);return a.isValid()?a:void 0},ag=function(e,t,n){return ca(t)?e:t==="x"?+e:st(e).locale(n).format(t)},u0=(e,t)=>{const n=[],a=t==null?void 0:t();for(let o=0;obe(e)?e.map(t=>t.toDate()):e.toDate(),Th=_e({disabledHours:{type:J(Function)},disabledMinutes:{type:J(Function)},disabledSeconds:{type:J(Function)}}),cb=_e({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Mh=_e({automaticDropdown:{type:Boolean,default:!0},id:{type:J([Array,String])},name:{type:J([Array,String])},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:J([String,Object]),default:ho},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:J([String,Object]),default:""},size:kn,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:J(Object),default:()=>({})},modelValue:{type:J([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Th,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:J([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:J(String),values:Ho,default:"bottom"},fallbackPlacements:{type:J(Array),default:["bottom","top","right","left"]},...Wr,...oa(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),bW=_e({id:{type:J(Array)},name:{type:J(Array)},modelValue:{type:J([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),db=(e,t)=>{const{lang:n}=kt(),a=V(!1),o=V(!1),l=V(null),r=x(()=>{const{modelValue:p}=e;return!p||be(p)&&!p.filter(Boolean).length}),s=p=>{if(!ub(e.modelValue,p)){let v;be(p)?v=p.map(m=>ag(m,e.valueFormat,n.value)):p&&(v=ag(p,e.valueFormat,n.value)),t(ot,p&&v,n.value)}},u=x(()=>{let p;if(r.value?c.value.getDefaultValue&&(p=c.value.getDefaultValue()):be(e.modelValue)?p=e.modelValue.map(v=>ng(v,e.valueFormat,n.value)):p=ng(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(p);an(v,p)||(p=v,r.value||s(Nc(p)))}return be(p)&&p.some(v=>!v)&&(p=[]),p}),c=V({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:l,valueIsEmpty:r,emitInput:s,onCalendarChange:p=>{t("calendar-change",p)},onPanelChange:(p,v,m)=>{t("panel-change",p,v,m)},onPick:(p="",v=!1)=>{a.value=v;let m;be(p)?m=p.map(y=>y.toDate()):m=p&&p.toDate(),l.value=null,s(m)},onSetPickerOption:p=>{c.value[p[0]]=p[1],c.value.panelReady=!0}}},wW=["id","name","placeholder","value","disabled"],CW=["id","name","placeholder","value","disabled"];var _W=D({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:bW,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),{inputId:r}=Pa(Rt({id:x(()=>{var M;return(M=a.id)==null?void 0:M[0]})}),{formItemContext:l}),s=nf(),u=ve("date"),c=ve("range"),d=V(),f=V(),{wrapperRef:h,isFocused:g}=Cl(d,{disabled:x(()=>a.disabled)}),p=M=>{o("click",M)},v=M=>{o("mouseenter",M)},m=M=>{o("mouseleave",M)},y=M=>{o("touchstart",M)},b=M=>{o("startInput",M)},w=M=>{o("endInput",M)},_=M=>{o("startChange",M)},S=M=>{o("endChange",M)};return t({focus:()=>{var M;(M=d.value)==null||M.focus()},blur:()=>{var M,A;(M=d.value)==null||M.blur(),(A=f.value)==null||A.blur()}}),(M,A)=>(C(),$("div",{ref_key:"wrapperRef",ref:h,class:R([i(u).is("active",i(g)),M.$attrs.class]),style:qe(M.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:m,onTouchstartPassive:y},[oe(M.$slots,"prefix"),E("input",ht(i(s),{id:i(r),ref_key:"inputRef",ref:d,name:M.name&&M.name[0],placeholder:M.startPlaceholder,value:M.modelValue&&M.modelValue[0],class:i(c).b("input"),disabled:M.disabled,onInput:b,onChange:_}),null,16,wW),oe(M.$slots,"range-separator"),E("input",ht(i(s),{id:M.id&&M.id[1],ref_key:"endInputRef",ref:f,name:M.name&&M.name[1],placeholder:M.endPlaceholder,value:M.modelValue&&M.modelValue[1],class:i(c).b("input"),disabled:M.disabled,onInput:w,onChange:S}),null,16,CW),oe(M.$slots,"suffix")],38))}}),SW=_W,xW=D({name:"Picker",__name:"picker",props:Mh,emits:[ot,bt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=gl(),r=ve("date"),s=ve("input"),u=ve("range"),{formItem:c}=Bn(),d=Pe(Eh,{}),f=Pu(a,null),h=V(),g=V(),p=V(null);let v=!1;const m=rn(),y=db(a,o),{parsedValue:b,pickerActualVisible:w,userInput:_,pickerVisible:S,pickerOptions:k,valueIsEmpty:T,emitInput:M,onPick:A,onSetPickerOption:O,onCalendarChange:I,onPanelChange:L}=y,{isFocused:z,handleFocus:q,handleBlur:U}=Cl(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(S.value=!0)},beforeBlur(pe){var Te;return!v&&((Te=h.value)==null?void 0:Te.isFocusInsideContent(pe))},afterBlur(){var pe,Te;Y.value&&!a.saveOnBlur?T.value||(Te=(pe=k.value).handleCancel)==null||Te.call(pe):ze(),S.value=!1,v=!1,a.validateEvent&&(c==null||c.validate("blur").catch(ct=>pt(ct)))}}),F=V(!1),N=x(()=>[r.b("editor"),r.bm("editor",a.type),s.e("wrapper"),r.is("disabled",m.value),r.is("active",S.value),u.b("editor"),Ee?u.bm("editor",Ee.value):"",l.class]),P=x(()=>[s.e("icon"),u.e("close-icon"),ce.value?"":u.em("close-icon","hidden")]);fe(S,pe=>{pe?Le(()=>{pe&&(p.value=a.modelValue)}):(_.value=null,Le(()=>{B(a.modelValue)}))});const B=(pe,Te)=>{(Te||!ub(pe,p.value))&&(o(bt,pe),Te&&(p.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(ct=>pt(ct))))},K=pe=>{o("keydown",pe)},W=x(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),j=(pe,Te,ct)=>{const Pt=W.value;Pt.length&&(!ct||ct==="min"?(Pt[0].setSelectionRange(pe,Te),Pt[0].focus()):ct==="max"&&(Pt[1].setSelectionRange(pe,Te),Pt[1].focus()))},G=()=>{w.value=!0},ee=()=>{o("visible-change",!0)},te=()=>{w.value=!1,S.value=!1,o("visible-change",!1)},ue=()=>{S.value=!0},ne=()=>{S.value=!1},de=x(()=>{const pe=nt(b.value);return be(_.value)?[_.value[0]??(pe&&pe[0])??"",_.value[1]??(pe&&pe[1])??""]:_.value!==null?_.value:Y.value&&T.value&&!a.saveOnBlur||!Y.value&&T.value||!S.value&&T.value?"":pe?X.value||H.value||Z.value?pe.join(", "):pe:""}),se=x(()=>a.type.includes("time")),Y=x(()=>a.type.startsWith("time")),X=x(()=>a.type==="dates"),H=x(()=>a.type==="months"),Z=x(()=>a.type==="years"),le=x(()=>a.prefixIcon||(se.value?hh:fy)),ce=x(()=>a.clearable&&!m.value&&!a.readonly&&!T.value&&(F.value||z.value)),ge=pe=>{a.readonly||m.value||(ce.value&&(pe==null||pe.stopPropagation(),k.value.handleClear?k.value.handleClear():M(f.valueOnClear.value),B(f.valueOnClear.value,!0),te()),o("clear"))},me=async pe=>{var Te;a.readonly||m.value||(((Te=pe.target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},Ae=()=>{a.readonly||m.value||!T.value&&a.clearable&&(F.value=!0)},Ne=()=>{F.value=!1},Re=pe=>{var Te;a.readonly||m.value||(((Te=pe.touches[0].target)==null?void 0:Te.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},ye=x(()=>a.type.includes("range")),Ee=_n(),we=x(()=>{var pe,Te;return(Te=(pe=i(h))==null?void 0:pe.popperRef)==null?void 0:Te.contentRef}),Ie=$p(g,pe=>{const Te=i(we),ct=xn(g);Te&&(pe.target===Te||pe.composedPath().includes(Te))||pe.target===ct||ct&&pe.composedPath().includes(ct)||(S.value=!1)});Lt(()=>{Ie==null||Ie()});const ze=()=>{if(Y.value&&!a.saveOnBlur)return;const pe=be(_.value)&&_.value.every(Te=>Te==="");if(_.value&&!pe){const Te=et(de.value);Te&&(at(Te)&&M(Nc(Te)),_.value=null)}(_.value===""||pe)&&(M(f.valueOnClear.value),B(f.valueOnClear.value,!0),_.value=null)},et=pe=>pe?k.value.parseUserInput(pe):null,nt=pe=>pe?be(pe)?pe.map(Te=>Te.format(a.format)):pe.format(a.format):null,at=pe=>k.value.isValidValue(pe),Me=async pe=>{if(a.readonly||m.value)return;const Te=Kt(pe);if(K(pe),Te===Ce.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Te===Ce.down&&(k.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await Le()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Te===Ce.tab){v=!0;return}if(Te===Ce.enter||Te===Ce.numpadEnter){S.value?(_.value===null||_.value===""||at(et(de.value)))&&(ze(),S.value=!1):S.value=!0,pe.preventDefault(),pe.stopPropagation();return}if(_.value){pe.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(pe)},Ge=pe=>{_.value=pe,S.value||(S.value=!0)},ut=pe=>{const Te=pe.target;_.value?_.value=[Te.value,_.value[1]]:_.value=[Te.value,null]},je=pe=>{const Te=pe.target;_.value?_.value=[_.value[0],Te.value]:_.value=[null,Te.value]},tt=()=>{var Pt;const pe=_.value,Te=et(pe&&pe[0]),ct=i(b);if(Te&&Te.isValid()){_.value=[nt(Te),((Pt=de.value)==null?void 0:Pt[1])||null];const Gt=[Te,ct&&(ct[1]||null)];at(Gt)&&(M(Nc(Gt)),_.value=null)}},yt=()=>{var Pt;const pe=i(_),Te=et(pe&&pe[1]),ct=i(b);if(Te&&Te.isValid()){_.value=[((Pt=i(de))==null?void 0:Pt[0])||null,nt(Te)];const Gt=[ct&&ct[0],Te];at(Gt)&&(M(Nc(Gt)),_.value=null)}},he=()=>{var pe;(pe=g.value)==null||pe.focus()},Ve=()=>{var pe;(pe=g.value)==null||pe.blur()};return wt(oo,{props:a,emptyValues:f}),wt(lb,y),t({focus:he,blur:Ve,handleOpen:ue,handleClose:ne,onPick:A}),(pe,Te)=>(C(),ie(i(Vn),ht({ref_key:"refPopper",ref:h,visible:i(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${i(r).namespace.value}-zoom-in-top`,"popper-class":[`${i(r).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":i(d),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ee,onHide:te}),{default:ae(()=>[ye.value?(C(),ie(SW,{key:1,id:pe.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:pe.name,disabled:i(m),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:R(N.value),style:qe(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:i(q),onBlur:i(U),onStartInput:ut,onStartChange:tt,onEndInput:je,onEndChange:yt,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onKeydown:Me},{prefix:ae(()=>[le.value?(C(),ie(i(De),{key:0,class:R([i(s).e("icon"),i(u).e("icon")])},{default:ae(()=>[(C(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ae(()=>[oe(pe.$slots,"range-separator",{},()=>[E("span",{class:R(i(u).b("separator"))},Se(pe.rangeSeparator),3)])]),suffix:ae(()=>[pe.clearIcon?(C(),ie(i(De),{key:0,class:R(P.value),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(C(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(C(),ie(i(Dn),{key:0,id:pe.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:pe.name,size:i(Ee),disabled:i(m),placeholder:pe.placeholder,class:R([i(r).b("editor"),i(r).bm("editor",pe.type),i(r).is("focus",i(S)),pe.$attrs.class]),style:qe(pe.$attrs.style),readonly:!pe.editable||pe.readonly||X.value||H.value||Z.value||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:Ge,onFocus:i(q),onBlur:i(U),onKeydown:Me,onChange:ze,onMousedown:me,onMouseenter:Ae,onMouseleave:Ne,onTouchstartPassive:Re,onClick:Te[0]||(Te[0]=Je(()=>{},["stop"]))},{prefix:ae(()=>[le.value?(C(),ie(i(De),{key:0,class:R(i(s).e("icon")),onMousedown:Je(me,["prevent"]),onTouchstartPassive:Re},{default:ae(()=>[(C(),ie(dt(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ae(()=>[ce.value&&pe.clearIcon?(C(),ie(i(De),{key:0,class:R(`${i(s).e("icon")} clear-icon`),onMousedown:Je(i(It),["prevent"]),onClick:ge},{default:ae(()=>[(C(),ie(dt(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ae(()=>[oe(pe.$slots,"default",{visible:i(S),actualVisible:i(w),parsedValue:i(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:Te[1]||(Te[1]=(...ct)=>i(A)&&i(A)(...ct)),onSelectRange:j,onSetPickerOption:Te[2]||(Te[2]=(...ct)=>i(O)&&i(O)(...ct)),onCalendarChange:Te[3]||(Te[3]=(...ct)=>i(I)&&i(I)(...ct)),onClear:ge,onPanelChange:Te[4]||(Te[4]=(...ct)=>i(L)&&i(L)(...ct)),onMousedown:Te[5]||(Te[5]=Je(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),fb=xW;const kW=_e({...cb,datetimeRole:String,parsedValue:{type:J(Object)}}),pb=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),s,c);break;case"second":g=p(f.hour(),f.minute(),s,c);break;default:g=p(s,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},c0=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},hb=(e,t,n)=>({getHoursList:(r,s)=>u0(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>u0(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>u0(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),vb=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=hb(e,t,n);return{getAvailableHours:(c,d)=>c0(a(c,d)),getAvailableMinutes:(c,d,f)=>c0(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>c0(l(c,d,f,h))}},mb=(e,t)=>{const n=V(e.parsedValue);return fe(()=>e.visible,a=>{const o=Av(t.modelValue),l=Av(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},EW=_e({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Th}),TW=["onClick"],MW=["onMouseenter"];var OW=D({__name:"basic-time-spinner",props:EW,emits:[bt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Pe(oo).props,r=t,s=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=hb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=V(),p={hours:V(),minutes:V(),seconds:V()},v=x(()=>n.showSeconds?eg:eg.slice(0,2)),m=x(()=>{const{spinnerDate:W}=n;return{hours:W.hour(),minutes:W.minute(),seconds:W.second()}}),y=x(()=>{const{hours:W,minutes:j}=i(m),{role:G,spinnerDate:ee}=n,te=a?void 0:ee;return{hours:u(G,te),minutes:c(W,G,te),seconds:d(W,j,G,te)}}),b=x(()=>{const{hours:W,minutes:j,seconds:G}=i(m);return{hours:i0(W,23),minutes:i0(j,59),seconds:i0(G,59)}}),w=Vo(W=>{f=!1,k(W)},200),_=W=>{if(!n.amPmMode)return"";const j=n.amPmMode==="A";let G=W<12?" am":" pm";return j&&(G=G.toUpperCase()),G},S=W=>{let j=[0,0];const G=o||Ir,ee=G.indexOf("HH"),te=G.indexOf("mm"),ue=G.indexOf("ss");switch(W){case"hours":ee!==-1&&(j=[ee,ee+2]);break;case"minutes":te!==-1&&(j=[te,te+2]);break;case"seconds":ue!==-1&&(j=[ue,ue+2]);break}const[ne,de]=j;r("select-range",ne,de),g.value=W},k=W=>{A(W,i(m)[W])},T=()=>{k("hours"),k("minutes"),k("seconds")},M=W=>W.querySelector(`.${s.namespace.value}-scrollbar__wrap`),A=(W,j)=>{if(n.arrowControl)return;const G=i(p[W]);G&&G.$el&&(l||(h[W]=!0,Fa(()=>{h[W]=!1})),M(G.$el).scrollTop=Math.max(0,j*O(W)))},O=W=>{var G;const j=(G=i(p[W]))==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(Zo(j,"height"))||0},I=()=>{z(1)},L=()=>{z(-1)},z=W=>{g.value||S("hours");const j=g.value,G=i(m)[j],ee=q(j,G,W,g.value==="hours"?24:60);U(j,ee),A(j,ee),Le(()=>S(j))},q=(W,j,G,ee)=>{let te=(j+G+ee)%ee;const ue=i(y)[W];for(;ue[te]&&te!==j;)te=(te+G+ee)%ee;return te},U=(W,j)=>{if(i(y)[W][j])return;const{hours:G,minutes:ee,seconds:te}=i(m);let ue;switch(W){case"hours":ue=n.spinnerDate.hour(j).minute(ee).second(te);break;case"minutes":ue=n.spinnerDate.hour(G).minute(j).second(te);break;case"seconds":ue=n.spinnerDate.hour(G).minute(ee).second(j);break}r(bt,ue)},F=(W,{value:j,disabled:G})=>{G||(U(W,j),S(W),A(W,j))},N=W=>{if(!l&&h[W])return;const j=i(p[W]);j&&(f=!0,w(W),U(W,Math.min(Math.round((M(j.$el).scrollTop-(P(W)*.5-10)/O(W)+3)/O(W)),W==="hours"?23:59)))},P=W=>i(p[W]).$el.offsetHeight,B=()=>{const W=j=>{const G=i(p[j]);G&&G.$el&&(M(G.$el).onscroll=()=>{N(j)})};W("hours"),W("minutes"),W("seconds")};gt(()=>{Le(()=>{!n.arrowControl&&B(),T(),n.role==="start"&&S("hours")})});const K=(W,j)=>{p[j].value=W??void 0};return r("set-option",[`${n.role}_scrollDown`,z]),r("set-option",[`${n.role}_emitSelectRange`,S]),fe(()=>n.spinnerDate,()=>{f||T()}),(W,j)=>(C(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":W.showSeconds}])},[W.arrowControl?re("v-if",!0):(C(!0),$(Ke,{key:0},_t(v.value,G=>(C(),ie(i(ao),{key:G,ref_for:!0,ref:ee=>K(ee,G),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(G),onMousemove:ee=>k(G)},{default:ae(()=>[(C(!0),$(Ke,null,_t(y.value[G],(ee,te)=>(C(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",te===m.value[G]),i(s).is("disabled",ee)]),onClick:ue=>F(G,{value:te,disabled:ee})},[G==="hours"?(C(),$(Ke,{key:0},[St(Se(("0"+(W.amPmMode?te%12||12:te)).slice(-2))+Se(_(te)),1)],64)):(C(),$(Ke,{key:1},[St(Se(("0"+te).slice(-2)),1)],64))],10,TW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),W.arrowControl?(C(!0),$(Ke,{key:1},_t(v.value,G=>(C(),$("div",{key:G,class:R([i(s).be("spinner","wrapper"),i(s).is("arrow")]),onMouseenter:ee=>S(G)},[ft((C(),ie(i(De),{class:R(["arrow-up",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(Iu))]),_:1},8,["class"])),[[i(od),L]]),ft((C(),ie(i(De),{class:R(["arrow-down",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"])),[[i(od),I]]),E("ul",{class:R(i(s).be("spinner","list"))},[(C(!0),$(Ke,null,_t(b.value[G],(ee,te)=>(C(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",ee===m.value[G]),i(s).is("disabled",y.value[G][ee])])},[i(He)(ee)?(C(),$(Ke,{key:0},[G==="hours"?(C(),$(Ke,{key:0},[St(Se(("0"+(W.amPmMode?ee%12||12:ee)).slice(-2))+Se(_(ee)),1)],64)):(C(),$(Ke,{key:1},[St(Se(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,MW))),128)):re("v-if",!0)],2))}}),x2=OW,$W=D({__name:"panel-time-pick",props:kW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}=vb(r,s,u),g=ve("time"),{t:p,lang:v}=kt(),m=V([0,2]),y=mb(n,{modelValue:x(()=>o.props.modelValue),valueOnClear:x(()=>o!=null&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),b=x(()=>Et(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),w=x(()=>n.format.includes("ss")),_=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=P=>{const B=st(P).locale(v.value),K=U(B);return B.isSame(K)},k=()=>{const P=y.value;a("pick",P,!1),Le(()=>{y.value=P})},T=(P=!1,B=!1)=>{B||a("pick",n.parsedValue,P)},M=P=>{n.visible&&a("pick",U(P).millisecond(0),!0)},A=(P,B)=>{a("select-range",P,B),m.value=[P,B]},O=P=>{const B=n.format,K=B.indexOf("HH"),W=B.indexOf("mm"),j=B.indexOf("ss"),G=[],ee=[];K!==-1&&(G.push(K),ee.push("hours")),W!==-1&&(G.push(W),ee.push("minutes")),j!==-1&&w.value&&(G.push(j),ee.push("seconds"));const te=(G.indexOf(m.value[0])+P+G.length)%G.length;L.start_emitSelectRange(ee[te])},I=P=>{const B=Kt(P),{left:K,right:W,up:j,down:G}=Ce;if([K,W].includes(B)){O(B===K?-1:1),P.preventDefault();return}if([j,G].includes(B)){const ee=B===j?-1:1;L.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=pb({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}),U=P=>q(P,n.datetimeRole||"",!0),F=P=>P?st(P,n.format).locale(v.value):null,N=()=>st(c).locale(v.value);return a("set-picker-option",["isValidValue",S]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleKeydownInput",I]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["getDefaultValue",N]),a("set-picker-option",["handleCancel",k]),(P,B)=>(C(),ie(Fn,{name:b.value},{default:ae(()=>[P.actualVisible||P.visible?(C(),$("div",{key:0,class:R(i(g).b("panel"))},[E("div",{class:R([i(g).be("panel","content"),{"has-seconds":w.value}])},[Q(x2,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(l),"show-seconds":w.value,"am-pm-mode":_.value,"spinner-date":P.parsedValue,"disabled-hours":i(r),"disabled-minutes":i(s),"disabled-seconds":i(u),onChange:M,onSetOption:i(z),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:R(i(g).be("panel","footer"))},[E("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:k},Se(i(p)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=K=>T())},Se(i(p)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),cd=$W;const AW=_e({...cb,parsedValue:{type:J(Array)}}),RW=["disabled"];var NW=D({__name:"panel-time-range",props:AW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(X,H)=>{const Z=[];for(let le=X;le<=H;le++)Z.push(le);return Z},{t:l,lang:r}=kt(),s=ve("time"),u=ve("picker"),c=Pe(oo),{arrowControl:d,disabledHours:f,disabledMinutes:h,disabledSeconds:g,defaultValue:p}=c.props,v=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),m=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),w=mb(n,{modelValue:x(()=>c.props.modelValue),valueOnClear:x(()=>c!=null&&c.emptyValues?c.emptyValues.valueOnClear.value:null)}),_=()=>{const X=w.value;a("pick",X,!1),Le(()=>{w.value=X})},S=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(X=!1)=>{a("pick",[y.value,b.value],X)},M=X=>{I(X.millisecond(0),b.value)},A=X=>{I(y.value,X.millisecond(0))},O=X=>{const H=X.map(le=>st(le).locale(r.value)),Z=j(H);return H[0].isSame(Z[0])&&H[1].isSame(Z[1])},I=(X,H)=>{n.visible&&a("pick",[X,H],!0)},L=x(()=>y.value>b.value),z=V([0,2]),q=(X,H)=>{a("select-range",X,H,"min"),z.value=[X,H]},U=x(()=>S.value?11:8),F=(X,H)=>{a("select-range",X,H,"max");const Z=i(U);z.value=[X+Z,H+Z]},N=X=>{const H=S.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(S.value?["seconds"]:[]),le=(H.indexOf(z.value[0])+X+H.length)%H.length,ce=H.length/2;le{const H=Kt(X),{left:Z,right:le,up:ce,down:ge}=Ce;if([Z,le].includes(H)){N(H===Z?-1:1),X.preventDefault();return}if([ce,ge].includes(H)){const me=H===ce?-1:1;ue[`${z.value[0]{const Z=f?f(X):[],le=X==="start",ce=(H||(le?b.value:y.value)).hour();return Jf(Z,le?o(ce+1,23):o(0,ce-1))},K=(X,H,Z)=>{const le=h?h(X,H):[],ce=H==="start",ge=Z||(ce?b.value:y.value);if(X!==ge.hour())return le;const me=ge.minute();return Jf(le,ce?o(me+1,59):o(0,me-1))},W=(X,H,Z,le)=>{const ce=g?g(X,H,Z):[],ge=Z==="start",me=le||(ge?b.value:y.value),Ae=me.hour(),Ne=me.minute();if(X!==Ae||H!==Ne)return ce;const Re=me.second();return Jf(ce,ge?o(Re+1,59):o(0,Re-1))},j=([X,H])=>[ne(X,"start",!0,H),ne(H,"end",!1,X)],{getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}=vb(B,K,W),{timePickerOptions:ue,getAvailableTime:ne,onSetOption:de}=pb({getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}),se=X=>X?be(X)?X.map(H=>st(H,n.format).locale(r.value)):st(X,n.format).locale(r.value):null,Y=()=>{if(be(p))return p.map(H=>st(H).locale(r.value));const X=st(p).locale(r.value);return[X,X.add(60,"m")]};return a("set-picker-option",["parseUserInput",se]),a("set-picker-option",["isValidValue",O]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["handleCancel",_]),(X,H)=>X.actualVisible?(C(),$("div",{key:0,class:R([i(s).b("range-picker"),i(u).b("panel")])},[E("div",{class:R(i(s).be("range-picker","content"))},[E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.startTime")),3),E("div",{class:R(v.value)},[Q(x2,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":y.value,"disabled-hours":B,"disabled-minutes":K,"disabled-seconds":W,onChange:M,onSetOption:i(de),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},Se(i(l)("el.datepicker.endTime")),3),E("div",{class:R(m.value)},[Q(x2,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":B,"disabled-minutes":K,"disabled-seconds":W,onChange:A,onSetOption:i(de),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:R(i(s).be("panel","footer"))},[E("button",{type:"button",class:R([i(s).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=Z=>_())},Se(i(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(s).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=Z=>T())},Se(i(l)("el.datepicker.confirm")),11,RW)],2)],2)):re("v-if",!0)}}),PW=NW,gb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(y){this[m]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],h=function(m){var y=u[m];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(m,y){var b,w=u.meridiem;if(w){for(var _=1;_<=24;_+=1)if(m.indexOf(w(_,0,y))>-1){b=_>12;break}}else b=m===(y?"pm":"PM");return b},p={A:[s,function(m){this.afternoon=g(m,!1)}],a:[s,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(m){var y=u.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[r,d("week")],ww:[l,d("week")],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(m){var y=h("months"),b=(h("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var y,b;y=m,b=u&&u.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,L){var z=L&&L.toUpperCase();return I||b[L]||n[L]||b[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,U,F){return U||F.slice(1)})})).match(a),_=w.length,S=0;S<_;S+=1){var k=w[S],T=p[k],M=T&&T[0],A=T&&T[1];w[S]=A?{regex:M,parser:A}:k.replace(/^\[|\]$/g,"")}return function(O){for(var I={},L=0,z=0;L<_;L+=1){var q=w[L];if(typeof q=="string")z+=q.length;else{var U=q.regex,F=q.parser,N=O.slice(z),P=U.exec(N)[0];F.call(I,P),O=O.replace(P,"")}}return function(B){var K=B.afternoon;if(K!==void 0){var W=B.hours;K?W<12&&(B.hours+=12):W===12&&(B.hours=0),delete B.afternoon}}(I),I}}return function(m,y,b){b.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var w=y.prototype,_=w.parse;w.parse=function(S){var k=S.date,T=S.utc,M=S.args;this.$u=T;var A=M[1];if(typeof A=="string"){var O=M[2]===!0,I=M[3]===!0,L=O||I,z=M[2];I&&(z=M[2]),u=this.$locale(),!O&&z&&(u=b.Ls[z]),this.$d=function(N,P,B,K){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*N);var W=v(P)(N),j=W.year,G=W.month,ee=W.day,te=W.hours,ue=W.minutes,ne=W.seconds,de=W.milliseconds,se=W.zone,Y=W.week,X=new Date,H=ee||(j||G?1:X.getDate()),Z=j||X.getFullYear(),le=0;j&&!G||(le=G>0?G-1:X.getMonth());var ce,ge=te||0,me=ue||0,Ae=ne||0,Ne=de||0;return se?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne+60*se.offset*1e3)):B?new Date(Date.UTC(Z,le,H,ge,me,Ae,Ne)):(ce=new Date(Z,le,H,ge,me,Ae,Ne),Y&&(ce=K(ce).week(Y).toDate()),ce)}catch{return new Date("")}}(k,A,T,b),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&k!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var q=A.length,U=1;U<=q;U+=1){M[1]=A[U-1];var F=b.apply(this,M);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}U===q&&(this.$d=new Date(""))}else _.call(this,S)}}})})(gb);var IW=gb.exports;const Oh=xl(IW);st.extend(Oh);var LW=D({name:"ElTimePicker",install:null,props:{...Mh,isRange:Boolean},emits:[ot],setup(e,t){const n=V(),[a,o]=e.isRange?["timerange",PW]:["time",cd],l=r=>t.emit(ot,r);return wt(Eh,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{const r=e.format??Ir;return Q(fb,ht(e,{ref:n,type:a,format:r,"onUpdate:modelValue":l}),{default:s=>Q(o,s,null)})}}});const VW=it(LW),hl=_e({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:io},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),BW={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},zW=["aria-label"],DW=["aria-label"];var HW=D({name:"ElTag",__name:"tag",props:hl,emits:BW,setup(e,{emit:t}){const n=e,a=t,o=_n(),{t:l}=kt(),r=ve("tag"),s=x(()=>{const{type:f,hit:h,effect:g,closable:p,round:v}=n;return[r.b(),r.is("closable",p),r.m(f||"primary"),r.m(o.value),r.m(g),r.is("hit",h),r.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{var h,g,p;(p=(g=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:g.component)!=null&&p.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(C(),$("span",{key:0,class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(C(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,zW)):re("v-if",!0)],6)):(C(),ie(Fn,{key:1,name:`${i(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ae(()=>[E("span",{class:R(s.value),style:qe({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(C(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Je(u,["stop"])},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],10,DW)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),FW=HW;const ll=it(FW),yb=Symbol("ElSelectGroup"),Bu=Symbol("ElSelect"),dd={label:"label",value:"value",disabled:"disabled",options:"options"};function zu(e){const t=V({...dd,...e.props});let n={...e.props};return fe(()=>e.props,s=>{an(s,n)||(t.value={...dd,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>bn(s,t.value.label),getValue:s=>bn(s,t.value.value),getDisabled:s=>bn(s,t.value.disabled),getOptions:s=>bn(s,t.value.options)}}const bb=_e({name:String,id:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:kn,effect:{type:J(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:J(Function)},filterMethod:{type:J(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ft,default:ho},fitInputWidth:Boolean,suffixIcon:{type:Ft,default:po},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,options:{type:J(Array)},props:{type:J(Object),default:()=>dd},...Wr,...oa(["ariaLabel"])});qy.scroll;const k2="ElOption",KW=_e({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function WW(e,t){const n=Pe(Bu);n||en(k2,"usage: ");const a=Pe(yb,{disabled:!1}),o=x(()=>d($n(n.props.modelValue),e.value)),l=x(()=>{if(n.props.multiple){const g=$n(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>e.label??(lt(e.value)?"":e.value)),s=x(()=>e.value||e.label||""),u=x(()=>e.disabled||t.groupDisabled||l.value),c=vt(),d=(g=[],p)=>{if(lt(e.value)){const v=n.props.valueKey;return g&&g.some(m=>jt(bn(m,v))===bn(p,v))}else return g&&g.includes(p)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=g=>{t.visible=new RegExp(Yp(g),"i").test(String(r.value))||e.created};return fe(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),fe(()=>e.value,(g,p)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==p:!an(g,p))&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&<(g)&<(p)&&g[m]===p[m])return;n.setSelected()}}),fe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:s,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:h}}var jW=D({name:k2,componentName:k2,props:KW,setup(e){const t=ve("select"),n=Kn(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",i(s)),t.is("selected",i(r)),t.is("hovering",i(h))]),o=Rt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:s,select:u,hoverItem:c,updateOption:d}=WW(e,o),{visible:f,hover:h}=Nn(o),g=vt().proxy;u.onOptionCreate(g),Lt(()=>{const m=g.value;Le(()=>{const{selected:y}=u.states,b=y.some(w=>w.value===g.value);u.states.cachedOptions.get(m)===g&&!b&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function p(){s.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:l,itemSelected:r,isDisabled:s,select:u,visible:f,hover:h,states:o,hoverItem:c,handleMousedown:m=>{let y=m.target;const b=m.currentTarget;for(;y&&y!==b;){if(Ar(y))return;y=y.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:p}}});const qW=["id","aria-disabled","aria-selected"];function UW(e,t,n,a,o,l){return ft((C(),$("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{},()=>[E("span",null,Se(e.currentLabel),1)])],42,qW)),[[$t,e.visible]])}var $h=En(jW,[["render",UW]]),YW=D({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ve("select"),n=V(),a=vt(),o=V([]);wt(yb,Rt({...Nn(e)}));const l=x(()=>o.value.some(c=>c.visible===!0)),r=c=>{var d;return c.type.name==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},s=c=>{const d=$n(c),f=[];return d.forEach(h=>{var g;Wt(h)&&(r(h)?f.push(h.component.proxy):be(h.children)&&h.children.length?f.push(...s(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...s(h.component.subTree)))}),f},u=()=>{o.value=s(a.subTree)};return gt(()=>{u()}),yu(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function GW(e,t,n,a,o,l){return ft((C(),$("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},Se(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[$t,e.visible]])}var Ah=En(YW,[["render",GW]]),XW=D({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Pe(Bu),t=ve("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),o=x(()=>e.props.fitInputWidth),l=V("");function r(){var u;const s=(u=e.selectRef)==null?void 0:u.offsetWidth;s?l.value=`${s-g6}px`:l.value=""}return gt(()=>{r(),Zt(e.selectRef,r)}),{ns:t,minWidth:l,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function JW(e,t,n,a,o,l){return C(),$("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:qe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(C(),$("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(C(),$("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var ZW=En(XW,[["render",JW]]);const QW=(e,t)=>{const{t:n}=kt(),a=hn(),o=Kn(),l=ve("select"),r=ve("input"),s=Rt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=V(),c=V(),d=V(),f=V(),h=V(),g=V(),p=V(),v=V(),m=V(),y=V(),b=V(),w=V(!1),_=V(),S=V(!1),{form:k,formItem:T}=Bn(),{inputId:M}=Pa(e,{formItemContext:T}),{valueOnClear:A,isEmptyValue:O}=Pu(e),{isComposing:I,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q}=Nu({afterComposition:xe=>Ge(xe)}),U=rn(),{wrapperRef:F,isFocused:N,handleBlur:P}=Cl(h,{disabled:U,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(xe){var Qe,Tt;return((Qe=d.value)==null?void 0:Qe.isFocusInsideContent(xe))||((Tt=f.value)==null?void 0:Tt.isFocusInsideContent(xe))},afterBlur(){var xe;w.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((xe=T==null?void 0:T.validate)==null||xe.call(T,"blur").catch(Qe=>pt(Qe)))}}),B=x(()=>be(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),K=x(()=>(k==null?void 0:k.statusIcon)??!1),W=x(()=>e.clearable&&!U.value&&B.value&&(N.value||s.inputHovering)),j=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=x(()=>l.is("reverse",!!(j.value&&w.value))),ee=x(()=>(T==null?void 0:T.validateState)||""),te=x(()=>ee.value&&pf[ee.value]),ue=x(()=>e.remote?e.debounce:0),ne=x(()=>e.remote&&!s.inputValue&&s.options.size===0),de=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&se.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),se=x(()=>Y.value.filter(xe=>xe.visible).length),Y=x(()=>{const xe=Array.from(s.options.values()),Qe=[];return s.optionValues.forEach(Tt=>{const Jt=xe.findIndex(Cn=>Cn.value===Tt);Jt>-1&&Qe.push(xe[Jt])}),Qe.length>=xe.length?Qe:xe}),X=x(()=>Array.from(s.cachedOptions.values())),H=x(()=>{const xe=Y.value.filter(Qe=>!Qe.created).some(Qe=>Qe.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!xe}),Z=()=>{e.filterable&&Fe(e.filterMethod)||e.filterable&&e.remote&&Fe(e.remoteMethod)||Y.value.forEach(xe=>{var Qe;(Qe=xe.updateOption)==null||Qe.call(xe,s.inputValue)})},le=_n(),ce=x(()=>["small"].includes(le.value)?"small":"default"),ge=x({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!a.empty)&&(!S.value||!ca(s.previousQuery)||s.options.size>0)},set(xe){w.value=xe}}),me=x(()=>{if(e.multiple&&!Et(e.modelValue))return $n(e.modelValue).length===0&&!s.inputValue;const xe=be(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Et(xe)?!s.inputValue:!0}),Ae=x(()=>{const xe=e.placeholder??n("el.select.placeholder");return e.multiple||!B.value?xe:s.selectedLabel}),Ne=x(()=>ed?null:"mouseenter");fe(()=>e.modelValue,(xe,Qe)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Re("")),Ee(),!an(xe,Qe)&&e.validateEvent&&(T==null||T.validate("change").catch(Tt=>pt(Tt)))},{flush:"post",deep:!0}),fe(()=>w.value,xe=>{xe?Re(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0,s.menuVisibleOnFocus=!1)}),fe(()=>s.options.entries(),()=>{At&&(Ee(),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value&&ye())},{flush:"post"}),fe([()=>s.hoveringIndex,Y],([xe])=>{He(xe)&&xe>-1?_.value=Y.value[xe]||{}:_.value={},Y.value.forEach(Qe=>{Qe.hover=_.value===Qe})}),da(()=>{s.isBeforeHide||Z()});const Re=xe=>{s.previousQuery===xe||I.value||(s.previousQuery=xe,e.filterable&&Fe(e.filterMethod)?e.filterMethod(xe):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(xe),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value?Le(ye):Le(Ie))},ye=()=>{const xe=Y.value.filter(Jt=>Jt.visible&&!Jt.disabled&&!Jt.states.groupDisabled),Qe=xe.find(Jt=>Jt.created),Tt=xe[0];s.hoveringIndex=Te(Y.value.map(Jt=>Jt.value),Qe||Tt)},Ee=()=>{if(e.multiple)s.selectedLabel="";else{const Qe=we(be(e.modelValue)?e.modelValue[0]:e.modelValue);s.selectedLabel=Qe.currentLabel,s.selected=[Qe];return}const xe=[];Et(e.modelValue)||$n(e.modelValue).forEach(Qe=>{xe.push(we(Qe))}),s.selected=xe},we=xe=>{let Qe;const Tt=Vi(xe);for(let Jt=s.cachedOptions.size-1;Jt>=0;Jt--){const Cn=X.value[Jt];if(Tt?bn(Cn.value,e.valueKey)===bn(xe,e.valueKey):Cn.value===xe){Qe={index:Y.value.filter(Pn=>!Pn.created).indexOf(Cn),value:xe,currentLabel:Cn.currentLabel,get isDisabled(){return Cn.isDisabled}};break}}return Qe||{index:-1,value:xe,currentLabel:Tt?xe.label:xe??""}},Ie=()=>{const xe=s.selected.length;if(xe>0){const Qe=s.selected[xe-1];s.hoveringIndex=Y.value.findIndex(Tt=>Mn(Qe)===Mn(Tt))}else s.hoveringIndex=-1},ze=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},et=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},nt=()=>{var xe,Qe;(Qe=(xe=d.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},at=()=>{var xe,Qe;(Qe=(xe=f.value)==null?void 0:xe.updatePopper)==null||Qe.call(xe)},Me=()=>{s.inputValue.length>0&&!w.value&&(w.value=!0),Re(s.inputValue)},Ge=xe=>{if(s.inputValue=xe.target.value,e.remote)S.value=!0,ut();else return Me()},ut=gu(()=>{Me(),S.value=!1},ue),je=xe=>{an(e.modelValue,xe)||t(bt,xe)},tt=xe=>r8(xe,Qe=>{const Tt=s.cachedOptions.get(Qe);return!(Tt!=null&&Tt.disabled)&&!(Tt!=null&&Tt.states.groupDisabled)}),yt=xe=>{const Qe=Kt(xe);if(e.multiple&&Qe!==Ce.delete&&xe.target.value.length<=0){const Tt=$n(e.modelValue).slice(),Jt=tt(Tt);if(Jt<0)return;const Cn=Tt[Jt];Tt.splice(Jt,1),t(ot,Tt),je(Tt),t("remove-tag",Cn)}},he=(xe,Qe)=>{const Tt=s.selected.indexOf(Qe);if(Tt>-1&&!U.value){const Jt=$n(e.modelValue).slice();Jt.splice(Tt,1),t(ot,Jt),je(Jt),t("remove-tag",Qe.value)}xe.stopPropagation(),Ze()},Ve=xe=>{xe.stopPropagation();const Qe=e.multiple?[]:A.value;if(e.multiple)for(const Tt of s.selected)Tt.isDisabled&&Qe.push(Tt.value);t(ot,Qe),je(Qe),s.hoveringIndex=-1,w.value=!1,t("clear"),Ze()},pe=xe=>{if(e.multiple){const Qe=$n(e.modelValue??[]).slice(),Tt=Te(Qe,xe);Tt>-1?Qe.splice(Tt,1):(e.multipleLimit<=0||Qe.length{ct(xe)})},Te=(xe,Qe)=>Et(Qe)?-1:lt(Qe.value)?xe.findIndex(Tt=>an(bn(Tt,e.valueKey),Mn(Qe))):xe.indexOf(Qe.value),ct=xe=>{var Jt,Cn,Pn,Wo,ei;const Qe=be(xe)?xe[xe.length-1]:xe;let Tt=null;if(!gn(Qe==null?void 0:Qe.value)){const Jl=Y.value.filter(qr=>qr.value===Qe.value);Jl.length>0&&(Tt=Jl[0].$el)}if(d.value&&Tt){const Jl=(Wo=(Pn=(Cn=(Jt=d.value)==null?void 0:Jt.popperRef)==null?void 0:Cn.contentRef)==null?void 0:Pn.querySelector)==null?void 0:Wo.call(Pn,`.${l.be("dropdown","wrap")}`);Jl&&Jp(Jl,Tt)}(ei=b.value)==null||ei.handleScroll()},Pt=xe=>{s.options.set(xe.value,xe),s.cachedOptions.set(xe.value,xe)},Gt=(xe,Qe)=>{s.options.get(xe)===Qe&&s.options.delete(xe)},Oe=x(()=>{var xe,Qe;return(Qe=(xe=d.value)==null?void 0:xe.popperRef)==null?void 0:Qe.contentRef}),We=()=>{s.isBeforeHide=!1,Le(()=>{var xe;(xe=b.value)==null||xe.update(),ct(s.selected)})},Ze=()=>{var xe;(xe=h.value)==null||xe.focus()},cn=()=>{var xe;if(w.value){w.value=!1,Le(()=>{var Qe;return(Qe=h.value)==null?void 0:Qe.blur()});return}(xe=h.value)==null||xe.blur()},zt=xe=>{Ve(xe)},Xt=xe=>{if(w.value=!1,N.value){const Qe=new FocusEvent("blur",xe);Le(()=>P(Qe))}},Ue=()=>{s.inputValue.length>0?s.inputValue="":w.value=!1},Xe=xe=>{var Qe;U.value||e.filterable&&w.value&&xe&&!((Qe=p.value)!=null&&Qe.contains(xe.target))||(ed&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:w.value=!w.value)},mt=()=>{if(!w.value)Xe();else{const xe=Y.value[s.hoveringIndex];xe&&!xe.isDisabled&&pe(xe)}},Mn=xe=>lt(xe.value)?bn(xe.value,e.valueKey):xe.value,go=x(()=>Y.value.filter(xe=>xe.visible).every(xe=>xe.isDisabled)),ja=x(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Yu=x(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Xl=xe=>{if(!w.value){w.value=!0;return}if(!(s.options.size===0||se.value===0||I.value)&&!go.value){xe==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):xe==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Qe=Y.value[s.hoveringIndex];(Qe.isDisabled||!Qe.visible)&&Xl(xe),Le(()=>ct(_.value))}},Gu=(xe,Qe,Tt,Jt)=>{for(let Cn=Qe;Cn>=0&&Cn{const Tt=s.options.size;if(Tt===0)return;const Jt=fr(xe,0,Tt-1),Cn=Y.value,Pn=Qe==="up"?-1:1,Wo=Gu(Cn,Jt,Pn,Tt)??Gu(Cn,Jt-Pn,-Pn,Tt);Wo!=null&&(s.hoveringIndex=Wo,Le(()=>ct(_.value)))},Af=xe=>{const Qe=Kt(xe);let Tt=!0;switch(Qe){case Ce.up:Xl("prev");break;case Ce.down:Xl("next");break;case Ce.enter:case Ce.numpadEnter:I.value||mt();break;case Ce.esc:Ue();break;case Ce.backspace:Tt=!1,yt(xe);return;case Ce.home:if(!w.value)return;Ko(0,"down");break;case Ce.end:if(!w.value)return;Ko(s.options.size-1,"up");break;case Ce.pageUp:if(!w.value)return;Ko(s.hoveringIndex-10,"up");break;case Ce.pageDown:if(!w.value)return;Ko(s.hoveringIndex+10,"down");break;default:Tt=!1;break}Tt&&(xe.preventDefault(),xe.stopPropagation())},Rf=()=>{if(!c.value)return 0;const xe=window.getComputedStyle(c.value);return Number.parseFloat(xe.gap||"6px")},Nf=x(()=>{const xe=Rf(),Qe=e.filterable?xe+Wd:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-xe-Qe:s.selectionWidth-Qe}px`}}),Pf=x(()=>({maxWidth:`${s.selectionWidth}px`})),If=xe=>{t("popup-scroll",xe)};Zt(c,ze),Zt(F,nt),Zt(m,at),Zt(y,et);let kl;return fe(()=>ge.value,xe=>{xe?kl=Zt(v,nt).stop:(kl==null||kl(),kl=void 0),t("visible-change",xe)}),gt(()=>{Ee()}),{inputId:M,contentId:o,nsSelect:l,nsInput:r,states:s,isFocused:N,expanded:w,optionsArray:Y,hoverOption:_,selectSize:le,filteredOptionsCount:se,updateTooltip:nt,updateTagTooltip:at,debouncedOnInputChange:ut,onInput:Ge,deletePrevTag:yt,deleteTag:he,deleteSelected:Ve,handleOptionSelect:pe,scrollToOption:ct,hasModelValue:B,shouldShowPlaceholder:me,currentPlaceholder:Ae,mouseEnterEventName:Ne,needStatusIcon:K,showClearBtn:W,iconComponent:j,iconReverse:G,validateState:ee,validateIcon:te,showNewOption:H,updateOptions:Z,collapseTagSize:ce,setSelected:Ee,selectDisabled:U,emptyText:de,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q,handleKeydown:Af,onOptionCreate:Pt,onOptionDestroy:Gt,handleMenuEnter:We,focus:Ze,blur:cn,handleClearClick:zt,handleClickOutside:Xt,handleEsc:Ue,toggleMenu:Xe,selectOption:mt,getValueKey:Mn,navigateOptions:Xl,dropdownMenuVisible:ge,showTagList:ja,collapseTagList:Yu,popupScroll:If,getOption:we,tagStyle:Nf,collapseTagStyle:Pf,popperRef:Oe,inputRef:h,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:p,selectRef:u,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:v,tagMenuRef:m,collapseItemRef:y}};var ej=D({name:"ElOptions",setup(e,{slots:t}){const n=Pe(Bu);let a=[];return()=>{var s,u;const o=(s=t.default)==null?void 0:s.call(t),l=[];function r(c){be(c)&&c.forEach(d=>{var h,g,p,v;const f=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;f==="ElOptionGroup"?r(!Be(d.children)&&!be(d.children)&&Fe((g=d.children)==null?void 0:g.default)?(p=d.children)==null?void 0:p.default():d.children):f==="ElOption"?l.push((v=d.props)==null?void 0:v.value):be(d.children)&&r(d.children)})}return o.length&&r((u=o[0])==null?void 0:u.children),an(l,a)||(a=l,n&&(n.states.optionValues=l)),o}}});const og="ElSelect",eu=new WeakMap,tj=e=>(...t)=>{var o,l;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((o=t[2])!=null&&o.includes("ElTreeSelect")))return;const a=(l=eu.get(e))==null?void 0:l.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},nj=e=>{let t=eu.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:tj(e),count:0},eu.set(e,t)),t};var aj=D({name:og,componentName:og,components:{ElSelectMenu:ZW,ElOption:$h,ElOptions:ej,ElOptionGroup:Ah,ElTag:ll,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:bb,emits:[ot,bt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=vt(),o=nj(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const l=x(()=>{const{modelValue:b,multiple:w}=e,_=w?[]:void 0;return be(b)?w?b:_:w?_:b}),r=Rt({...Nn(e),modelValue:l}),s=QW(r,t),{calculatorRef:u,inputStyle:c}=Up(),{getLabel:d,getValue:f,getOptions:h,getDisabled:g}=zu(e),p=b=>({label:d(b),value:f(b),disabled:g(b)}),v=b=>b.reduce((w,_)=>(w.push(_),_.children&&_.children.length>0&&w.push(...v(_.children)),w),[]),m=b=>{Ta(b||[]).forEach(w=>{var _;if(lt(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const S=w.type.name;if(S==="ElTree")v(((_=w.props)==null?void 0:_.data)||[]).forEach(k=>{k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)});else if(S==="ElOption"){const k={...w.props};k.currentLabel=k.label??(lt(k.value)?"":k.value),s.onOptionCreate(k)}}})};fe(()=>{var b;return[e.persistent||s.expanded.value||!n.default||(b=n.default)==null?void 0:b.call(n),l.value]},()=>{var b;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),m((b=n.default)==null?void 0:b.call(n)))},{immediate:!0}),wt(Bu,Rt({props:r,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=x(()=>e.multiple?s.states.selected.map(b=>b.currentLabel):s.states.selectedLabel);return Lt(()=>{const b=eu.get(a.appContext);b&&(b.count-=1,b.count<=0&&(a.appContext.config.warnHandler=b.originalWarnHandler,eu.delete(a.appContext)))}),{...s,modelValue:l,selectedLabel:y,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:h,getDisabled:g,getOptionProps:p}}});const oj=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],lj=["textContent"],rj={key:1};function sj(e,t,n,a,o,l){const r=Ot("el-tag"),s=Ot("el-tooltip"),u=Ot("el-icon"),c=Ot("el-option"),d=Ot("el-option-group"),f=Ot("el-options"),h=Ot("el-scrollbar"),g=Ot("el-select-menu"),p=Sp("click-outside");return ft((C(),$("div",ht({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[_i(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ae(()=>{var v;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?(C(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var m,y,b,w,_,S,k,T,M,A,O,I,L;return[(C(!0),$(Ke,null,_t(e.showTagList,z=>(C(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(C(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((m=e.tagTooltip)==null?void 0:m.fallbackPlacements)??["bottom","top","right","left"],effect:((y=e.tagTooltip)==null?void 0:y.effect)??e.effect,placement:((b=e.tagTooltip)==null?void 0:b.placement)??"bottom","popper-class":((w=e.tagTooltip)==null?void 0:w.popperClass)??e.popperClass,"popper-style":((_=e.tagTooltip)==null?void 0:_.popperStyle)??e.popperStyle,teleported:((S=e.tagTooltip)==null?void 0:S.teleported)??e.teleported,"append-to":((k=e.tagTooltip)==null?void 0:k.appendTo)??e.appendTo,"popper-options":((T=e.tagTooltip)==null?void 0:T.popperOptions)??e.popperOptions,transition:(M=e.tagTooltip)==null?void 0:M.transition,"show-after":(A=e.tagTooltip)==null?void 0:A.showAfter,"hide-after":(O=e.tagTooltip)==null?void 0:O.hideAfter,"auto-close":(I=e.tagTooltip)==null?void 0:I.autoClose,offset:(L=e.tagTooltip)==null?void 0:L.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.collapseTagStyle)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(C(!0),$(Ke,null,_t(e.collapseTagList,z=>(C(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[St(Se(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:qe(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...m)=>e.handleKeydown&&e.handleKeydown(...m)),onCompositionstart:t[1]||(t[1]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[2]||(t[2]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[3]||(t[3]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onChange:t[5]||(t[5]=Je(()=>{},["stop"])),onClick:t[6]||(t[6]=Je((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,oj),e.filterable?(C(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,lj)):re("v-if",!0)],2),e.shouldShowPlaceholder?(C(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(C(),$("span",rj,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(C(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(C(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(C(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(C(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(g,{ref:"menuRef"},{default:ae(()=>[e.$slots.header?(C(),$("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),ft(Q(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ae(()=>[e.showNewOption?(C(),ie(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Q(f,null,{default:ae(()=>[oe(e.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(v,m)=>{var y;return C(),$(Ke,{key:m},[(y=e.getOptions(v))!=null&&y.length?(C(),ie(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.getOptions(v),b=>(C(),ie(c,ht({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(C(),ie(c,ht({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[$t,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(C(),$("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(C(),$("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(C(),$("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[p,e.handleClickOutside,e.popperRef]])}var ij=En(aj,[["render",sj]]);const Yl=it(ij,{Option:$h,OptionGroup:Ah}),fd=tn($h),uj=tn(Ah),cj=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Hl(t).map((a,o)=>n-(t-o-1))},dj=e=>Hl(e.daysInMonth()).map((t,n)=>n+1),fj=e=>Hl(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),pj=_e({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),hj={pick:e=>lt(e)};var wb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){var l=a.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,h,g,p,v){var m=f.name?f:f.$locale(),y=r(m[h]),b=r(m[g]),w=y||b.map(function(S){return S.slice(0,p)});if(!v)return w;var _=m.weekStart;return w.map(function(S,k){return w[(k+(_||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,m){return v||m.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):s(f,"months")},monthsShort:function(h){return h?h.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(f){return s(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(wb);var vj=wb.exports;const Cb=xl(vj),mj=(e,t)=>{st.extend(Cb);const n=st.localeData().firstDayOfWeek(),{t:a,lang:o}=kt(),l=st().locale(o.value),r=x(()=>!!e.range&&!!e.range.length),s=x(()=>{let h=[];if(r.value){const[g,p]=e.range,v=Hl(p.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const y=Hl(m).map((b,w)=>({text:w+1,type:"next"}));h=v.concat(y)}else{const g=e.date.startOf("month").day(),p=cj(e.date,(g-n+7)%7).map(y=>({text:y,type:"prev"})),v=dj(e.date).map(y=>({text:y,type:"current"}));h=[...p,...v];const m=Hl(7-(h.length%7||7)).map((y,b)=>({text:b+1,type:"next"}));h=h.concat(m)}return fj(h)}),u=x(()=>{const h=n;return h===0?qf.map(g=>a(`el.datepicker.weeks.${g}`)):qf.slice(h).concat(qf.slice(0,h)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(h,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:l,isInRange:r,rows:s,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:g})=>{t("pick",c(h,g))},getSlotData:({text:h,type:g})=>{const p=c(h,g);return{isSelected:p.isSame(e.selectedDay),type:`${g}-month`,day:p.format(Qo),date:p.toDate()}}}},gj={key:0},yj=["onClick"];var bj=D({name:"DateTable",__name:"date-table",props:pj,emits:hj,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:l,rows:r,weekDays:s,getFormattedDate:u,handlePickDay:c,getSlotData:d}=mj(a,n),f=ve("calendar-table"),h=ve("calendar-day"),g=({text:p,type:v})=>{const m=[v];if(v==="current"){const y=u(p,v);y.isSame(a.selectedDay,"day")&&m.push(h.is("selected")),y.isSame(l,"day")&&m.push(h.is("today"))}return m};return t({getFormattedDate:u}),(p,v)=>(C(),$("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(C(),$("thead",gj,[E("tr",null,[(C(!0),$(Ke,null,_t(i(s),m=>(C(),$("th",{key:m,scope:"col"},Se(m),1))),128))])])),E("tbody",null,[(C(!0),$(Ke,null,_t(i(r),(m,y)=>(C(),$("tr",{key:y,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:y===0&&e.hideHeader})},[(C(!0),$(Ke,null,_t(m,(b,w)=>(C(),$("td",{key:w,class:R(g(b)),onClick:_=>i(c)(b)},[E("div",{class:R(i(h).b())},[oe(p.$slots,"date-cell",{data:i(d)(b)},()=>[E("span",null,Se(b.text),1)])],2)],10,yj))),128))],2))),128))])],2))}}),lg=bj;const wj=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},Cj=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,l=o.endOf("month"),r=t.startOf("month"),s=l.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),l],[s.startOf("week"),t]]},_j=(e,t,n)=>{const{lang:a}=kt(),o=V(),l=st().locale(a.value),r=x({get(){return e.modelValue?u.value:o.value},set(y){if(!y)return;o.value=y;const b=y.toDate();t(wn,b),t(ot,b)}}),s=x(()=>{if(!e.range||!be(e.range)||e.range.length!==2||e.range.some(w=>!Fl(w)))return[];const[y,b]=e.range.map(w=>st(w).locale(a.value));return y.isAfter(b)?(pt(n,"end time should be greater than start time"),[]):y.isSame(b,"month")?g(y,b):y.add(1,"month").month()!==b.month()?(pt(n,"start time and end time interval must not exceed two months"),[]):g(y,b)}),u=x(()=>e.modelValue?st(e.modelValue).locale(a.value):r.value||(s.value.length?s.value[0][0]:l)),c=x(()=>u.value.subtract(1,"month").date(1)),d=x(()=>u.value.add(1,"month").date(1)),f=x(()=>u.value.subtract(1,"year").date(1)),h=x(()=>u.value.add(1,"year").date(1)),g=(y,b)=>{const w=y.startOf("week"),_=b.endOf("week"),S=w.get("month"),k=_.get("month");return S===k?[[w,_]]:(S+1)%12===k?wj(w,_):S+2===k||(S+1)%11===k?Cj(w,_):(pt(n,"start time and end time interval must not exceed two months"),[])},p=y=>{r.value=y},v=y=>{const b={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:l}[y];b.isSame(u.value,"day")||p(b)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:r,pickDay:p,selectDate:v,validatedRange:s,handleDateChange:y=>{y==="today"?v("today"):p(y)}}},Sj=_e({date:{type:J(Object),required:!0},formatter:{type:J(Function)}}),xj={"date-change":e=>lt(e)||Be(e)};var kj=D({name:"SelectController",__name:"select-controller",props:Sj,emits:xj,setup(e,{emit:t}){const n=e,a=t,o=ve("calendar-select"),{t:l,lang:r}=kt(),s=Array.from({length:12},(p,v)=>{const m=v+1;return{value:m,label:Fe(n.formatter)?n.formatter(m,"month"):m}}),u=x(()=>n.date.year()),c=x(()=>n.date.month()+1),d=x(()=>{const p=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const y=Fe(n.formatter)?n.formatter(m,"year"):m;p.push({value:m,label:y})}}return p}),f=p=>{a("date-change",st(new Date(p,c.value-1,1)).locale(r.value))},h=p=>{a("date-change",st(new Date(u.value,p-1,1)).locale(r.value))},g=()=>{a("date-change","today")};return(p,v)=>(C(),$(Ke,null,[Q(i(Yl),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),Q(i(Yl),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(s),onChange:h},null,8,["model-value","class","options"]),Q(i(An),{size:"small",onClick:g},{default:ae(()=>[St(Se(i(l)("el.datepicker.today")),1)]),_:1})],64))}}),Ej=kj;const rg="ElCalendar";var Tj=D({name:rg,__name:"calendar",props:vW,emits:mW,setup(e,{expose:t,emit:n}){const a=ve("calendar"),{calculateValidatedDateRange:o,date:l,pickDay:r,realSelectedDay:s,selectDate:u,validatedRange:c,handleDateChange:d}=_j(e,n,rg),{t:f}=kt(),h=x(()=>{const g=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:s,pickDay:r,selectDate:u,calculateValidatedDateRange:o}),(g,p)=>(C(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:h.value},()=>[E("div",{class:R(i(a).e("title"))},Se(h.value),3),i(c).length===0&&e.controllerType==="button"?(C(),$("div",{key:0,class:R(i(a).e("button-group"))},[Q(i(ob),null,{default:ae(()=>[Q(i(An),{size:"small",onClick:p[0]||(p[0]=v=>i(u)("prev-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.prevMonth")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[1]||(p[1]=v=>i(u)("today"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.today")),1)]),_:1}),Q(i(An),{size:"small",onClick:p[2]||(p[2]=v=>i(u)("next-month"))},{default:ae(()=>[St(Se(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(C(),$("div",{key:1,class:R(i(a).e("select-controller"))},[Q(Ej,{date:i(l),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(C(),$("div",{key:0,class:R(i(a).e("body"))},[Q(lg,{date:i(l),"selected-day":i(s),onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(v=>[oe(g.$slots,"date-cell",nl(al(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(C(),$("div",{key:1,class:R(i(a).e("body"))},[(C(!0),$(Ke,null,_t(i(c),(v,m)=>(C(),ie(lg,{key:m,date:v[0],"selected-day":i(s),range:v,"hide-header":m!==0,onPick:i(r)},fa({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(y=>[oe(g.$slots,"date-cell",ht({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),Mj=Tj;const Oj=it(Mj),$j=_e({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var Aj=D({name:"ElCard",__name:"card",props:$j,setup(e){const t=_l("card"),n=ve("card");return(a,o)=>{var l;return C(),$("div",{class:R([i(n).b(),i(n).is(`${e.shadow||((l=i(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(C(),$("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[St(Se(e.header),1)])],2)):re("v-if",!0),E("div",{class:R([i(n).e("body"),e.bodyClass]),style:qe(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(C(),$("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[St(Se(e.footer),1)])],2)):re("v-if",!0)],2)}}}),Rj=Aj;const Nj=it(Rj),Pj=_e({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Ij={change:(e,t)=>[e,t].every(He)},_b=Symbol("carouselContextKey"),tu="ElCarouselItem",Lj=_e({name:{type:String,default:""},label:{type:[String,Number],default:""}}),sg=300,Vj=(e,t,n)=>{const{children:a,addChild:o,removeChild:l,ChildrenSorter:r}=cf(vt(),tu),s=hn(),u=V(-1),c=V(null),d=V(!1),f=V(),h=V(0),g=V(!0),p=x(()=>e.arrow!=="never"&&!i(y)),v=x(()=>a.value.some(te=>te.props.label.toString().length>0)),m=x(()=>e.type==="card"),y=x(()=>e.direction==="vertical"),b=x(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Il(te=>{A(te)},sg,{trailing:!0}),_=Il(te=>{N(te)},sg),S=te=>g.value?u.value<=1?te<=1:te>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>M(),e.interval))}const M=()=>{u.valuese.props.name===te);de.length>0&&(te=a.value.indexOf(de[0]))}if(te=Number(te),Number.isNaN(te)||te!==Math.floor(te)){pt(n,"index must be integer.");return}const ue=a.value.length,ne=u.value;te<0?u.value=e.loop?ue-1:0:te>=ue?u.value=e.loop?0:ue-1:u.value=te,ne===u.value&&O(ne),K()}function O(te){a.value.forEach((ue,ne)=>{ue.translateItem(ne,u.value,te)})}function I(te,ue){var ge,me,Ae,Ne;const ne=i(a),de=ne.length;if(de===0||!te.states.inStage)return!1;const se=ue+1,Y=ue-1,X=de-1,H=ne[X].states.active,Z=ne[0].states.active,le=(me=(ge=ne[se])==null?void 0:ge.states)==null?void 0:me.active,ce=(Ne=(Ae=ne[Y])==null?void 0:Ae.states)==null?void 0:Ne.active;return ue===X&&Z||le?"left":ue===0&&H||ce?"right":!1}function L(){d.value=!0,e.pauseOnHover&&k()}function z(){d.value=!1,T()}function q(te){i(y)||a.value.forEach((ue,ne)=>{te===I(ue,ne)&&(ue.states.hover=!0)})}function U(){i(y)||a.value.forEach(te=>{te.states.hover=!1})}function F(te){u.value=te}function N(te){e.trigger==="hover"&&te!==u.value&&(u.value=te)}function P(){A(u.value-1)}function B(){A(u.value+1)}function K(){k(),(!e.pauseOnHover||!d.value)&&T()}function W(te){e.height==="auto"&&(h.value=te)}function j(){var ne;const te=(ne=s.default)==null?void 0:ne.call(s);if(!te)return null;const ue=Ta(te).filter(de=>Wt(de)&&de.type.name===tu);return(ue==null?void 0:ue.length)===2&&e.loop&&!m.value?(g.value=!0,ue):(g.value=!1,null)}fe(()=>u.value,(te,ue)=>{O(ue),g.value&&(te=te%2,ue=ue%2),ue>-1&&t(bt,te,ue)});const G=x({get:()=>g.value?u.value%2:u.value,set:te=>u.value=te});fe(()=>e.autoplay,te=>{te?T():k()}),fe(()=>e.loop,()=>{A(u.value)}),fe(()=>e.interval,()=>{K()});const ee=qt();return gt(()=>{fe(()=>a.value,()=>{a.value.length>0&&A(e.initialIndex)},{immediate:!0}),ee.value=Zt(f.value,()=>{O()}),T()}),Lt(()=>{k(),f.value&&ee.value&&ee.value.stop()}),wt(_b,{root:f,isCardType:m,isVertical:y,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:l,setActiveItem:A,setContainerHeight:W}),{root:f,activeIndex:u,exposeActiveIndex:G,arrowDisplay:p,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:y,containerStyle:b,isItemsTwoLength:g,handleButtonEnter:q,handleButtonLeave:U,handleIndicatorClick:F,handleMouseEnter:L,handleMouseLeave:z,setActiveItem:A,prev:P,next:B,PlaceholderItem:j,isTwoLengthShow:S,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:_}},Bj=["aria-label"],zj=["aria-label"],Dj=["onMouseenter","onClick"],Hj=["aria-label"],Fj={key:0},Kj={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},ig="ElCarousel";var Wj=D({name:ig,__name:"carousel",props:Pj,emits:Ij,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:l,exposeActiveIndex:r,arrowDisplay:s,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:h,containerStyle:g,handleButtonEnter:p,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:_,next:S,PlaceholderItem:k,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:A,throttledIndicatorHover:O}=Vj(a,n,ig),I=ve("carousel"),{t:L}=kt(),z=x(()=>{const N=[I.b(),I.m(a.direction)];return i(d)&&N.push(I.m("card")),N.push(I.is("vertical-outside",i(h)&&a.indicatorPosition==="outside")),N}),q=x(()=>{const N=[I.e("indicators"),I.em("indicators",a.direction)];return i(u)&&N.push(I.em("indicators","labels")),a.indicatorPosition==="outside"&&N.push(I.em("indicators","outside")),i(h)&&N.push(I.em("indicators","right")),N});function U(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function F(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:r,setActiveItem:w,prev:_,next:S}),(N,P)=>(C(),$("div",{ref_key:"root",ref:o,class:R(z.value),onMouseenter:P[6]||(P[6]=Je((...B)=>i(y)&&i(y)(...B),["stop"])),onMouseleave:P[7]||(P[7]=Je((...B)=>i(b)&&i(b)(...B),["stop"]))},[i(s)?(C(),ie(Fn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","left")]),"aria-label":i(L)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=B=>i(p)("left")),onMouseleave:P[1]||(P[1]=(...B)=>i(v)&&i(v)(...B)),onClick:P[2]||(P[2]=Je(B=>i(A)(i(l)-1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],42,Bj),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(l)>0)]])]),_:1})):re("v-if",!0),i(s)?(C(),ie(Fn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ae(()=>[ft(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","right")]),"aria-label":i(L)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=B=>i(p)("right")),onMouseleave:P[4]||(P[4]=(...B)=>i(v)&&i(v)(...B)),onClick:P[5]||(P[5]=Je(B=>i(A)(i(l)+1),["stop"]))},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],42,zj),[[$t,(e.arrow==="always"||i(c))&&(e.loop||i(l)[e.indicatorPosition!=="none"?(C(),$("ul",{key:0,class:R(q.value)},[(C(!0),$(Ke,null,_t(i(f),(B,K)=>ft((C(),$("li",{key:K,class:R([i(I).e("indicator"),i(I).em("indicator",e.direction),i(I).is("active",K===i(l))]),onMouseenter:W=>i(O)(K),onClick:Je(W=>i(m)(K),["stop"])},[E("button",{class:R(i(I).e("button")),"aria-label":i(L)("el.carousel.indicator",{index:K+1})},[i(u)?(C(),$("span",Fj,Se(B.props.label),1)):re("v-if",!0)],10,Hj)],42,Dj)),[[$t,i(T)(K)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(C(),$("svg",Kj,[...P[8]||(P[8]=[E("defs",null,[E("filter",{id:"elCarouselHorizontal"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),E("filter",{id:"elCarouselVertical"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),jj=Wj;const qj=e=>{const t=Pe(_b),n=vt();t||pt(tu,"usage: "),n||pt(tu,"compositional hook can only be invoked inside setups");const a=V(),o=V(!1),l=V(0),r=V(1),s=V(!1),u=V(!1),c=V(!1),d=V(!1),{isCardType:f,isVertical:h,cardScale:g}=t;function p(_,S,k){const T=k-1,M=S-1,A=S+1,O=k/2;return S===0&&_===T?-1:S===T&&_===0?k:_=O?k+1:_>A&&_-S>=O?-2:_}function v(_,S){var T,M;const k=i(h)?((T=t.root.value)==null?void 0:T.offsetHeight)||0:((M=t.root.value)==null?void 0:M.offsetWidth)||0;return c.value?k*((2-g)*(_-S)+1)/4:_{const T=i(f),M=t.items.value.length??NaN,A=_===S;!T&&!Et(k)&&(d.value=A||_===k),!A&&M>2&&t.loop&&(_=p(_,S,M));const O=i(h);s.value=A,T?(c.value=Math.round(Math.abs(_-S))<=1,l.value=v(_,S),r.value=i(s)?1:g):l.value=m(_,S,O),u.value=!0,A&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function b(){if(t&&i(f)){const _=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(_)}}const w={props:e,states:Rt({hover:o,translate:l,scale:r,active:s,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(w),Lt(()=>{t.removeItem(w)}),{carouselItemRef:a,active:s,animating:d,hover:o,inStage:c,isVertical:h,translate:l,isCardType:f,scale:r,ready:u,handleItemClick:b}};var Uj=D({name:tu,__name:"carousel-item",props:Lj,setup(e){const t=e,n=ve("carousel"),{carouselItemRef:a,active:o,animating:l,hover:r,inStage:s,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:g}=qj(t),p=x(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",r.value),n.is("animating",l.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=x(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,y)=>ft((C(),$("div",{ref_key:"carouselItemRef",ref:a,class:R(p.value),style:qe(v.value),onClick:y[0]||(y[0]=(...b)=>i(g)&&i(g)(...b))},[i(d)?ft((C(),$("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[$t,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[$t,i(h)]])}}),Sb=Uj;const Yj=it(jj,{CarouselItem:Sb}),Gj=tn(Sb),xb=_e({modelValue:{type:J([Number,String,Array,Object])},options:{type:J(Array),default:()=>[]},props:{type:J(Object),default:()=>({})}}),Xj={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:It,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},Jj=_e({...xb,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),ug=e=>!0,Zj={[ot]:ug,[bt]:ug,close:()=>!0,"expand-change":e=>e},Qj=e=>x(()=>({...Xj,...e.props})),kb={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:kn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...oa(["ariaControls"])},Eb={[ot]:e=>Be(e)||He(e)||Dt(e),change:e=>Be(e)||He(e)||Dt(e)},Js=Symbol("checkboxGroupContextKey"),eq=_e({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:kn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Tb},type:{type:String,values:["checkbox","button"],default:"checkbox"},...oa(["ariaLabel"])}),tq={[ot]:e=>be(e),change:e=>be(e)},Tb={label:"label",value:"value",disabled:"disabled"},nq=({model:e,isChecked:t})=>{const n=Pe(Js,void 0),a=Pe(jr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Et(l)&&e.value.length>=l&&!t.value||!Et(r)&&e.value.length<=r&&t.value});return{isDisabled:rn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},aq=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Pe(Js,void 0),{formItem:s}=Bn(),{emit:u}=vt();function c(p){return[!0,e.trueValue,e.trueLabel].includes(p)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(p,v){u(bt,c(p),v)}function f(p){if(n.value)return;const v=p.target;u(bt,c(v.checked),p)}async function h(p){n.value||!a.value&&!o.value&&l.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Le(),d(t.value,p)))}const g=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(p=>pt(p)))}),{handleChange:f,onClickRoot:h}},oq=e=>{const t=V(!1),{emit:n,vnode:a}=vt(),o=Pe(Js,void 0),l=x(()=>Et(o)===!1),r=V(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&be(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(ot,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},lq=(e,t,{model:n})=>{const a=Pe(Js,void 0),o=V(!1),l=x(()=>ya(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Dt(s)?s:be(s)?lt(l.value)?s.map(jt).some(u=>an(u,l.value)):s.map(jt).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:_n(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!ya(l.value)),actualValue:l}},Mb=(e,t)=>{const{formItem:n}=Bn(),{model:a,isGroup:o,isLimitExceeded:l}=oq(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=lq(e,t,{model:a}),{isDisabled:h}=nq({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:p}=Pa(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=aq(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){be(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),$o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>o.value&&ya(e.value))),$o({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),$o({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:p,isChecked:s,isDisabled:h,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},rq=["id","indeterminate","name","tabindex","disabled"];var sq=D({name:"ElCheckbox",__name:"checkbox",props:kb,emits:Eb,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:l,isFocused:r,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Mb(t,hn()),g=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),p=ve("checkbox"),v=x(()=>[p.b(),p.m(s.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=x(()=>[p.e("input"),p.is("disabled",l.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(y,b)=>(C(),ie(dt(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(h)},{default:ae(()=>[E("span",{class:R(m.value)},[ft(E("input",ht({id:i(n),"onUpdate:modelValue":b[0]||(b[0]=w=>Yt(c)?c.value=w:null),class:i(p).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(l)},g.value,{onChange:b[1]||(b[1]=(...w)=>i(f)&&i(f)(...w)),onFocus:b[2]||(b[2]=w=>r.value=!0),onBlur:b[3]||(b[3]=w=>r.value=!1),onClick:b[4]||(b[4]=Je(()=>{},["stop"]))}),null,16,rq),[[d6,i(c)]]),E("span",{class:R(i(p).e("inner"))},null,2)],2),i(u)?(C(),$("span",{key:0,class:R(i(p).e("label"))},[oe(y.$slots,"default"),y.$slots.default?re("v-if",!0):(C(),$(Ke,{key:0},[St(Se(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Ob=sq;const iq=["name","tabindex","disabled"];var uq=D({name:"ElCheckboxButton",__name:"checkbox-button",props:kb,emits:Eb,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:l,model:r,actualValue:s,handleChange:u}=Mb(t,hn()),c=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:s.value}),d=Pe(Js,void 0),f=ve("checkbox"),h=x(()=>{var v,m;const p=((v=d==null?void 0:d.fill)==null?void 0:v.value)??"";return{backgroundColor:p,borderColor:p,color:((m=d==null?void 0:d.textColor)==null?void 0:m.value)??"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),g=x(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(p,v)=>(C(),$("label",{class:R(g.value)},[ft(E("input",ht({"onUpdate:modelValue":v[0]||(v[0]=m=>Yt(r)?r.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Je(()=>{},["stop"]))}),null,16,iq),[[d6,i(r)]]),p.$slots.default||e.label?(C(),$("span",{key:0,class:R(i(f).be("button","inner")),style:qe(i(a)?h.value:void 0)},[oe(p.$slots,"default",{},()=>[St(Se(e.label),1)])],6)):re("v-if",!0)],2))}}),Rh=uq,cq=D({name:"ElCheckboxGroup",__name:"checkbox-group",props:eq,emits:tq,setup(e,{emit:t}){const n=e,a=t,o=ve("checkbox"),l=rn(),{formItem:r}=Bn(),{inputId:s,isLabeledByFormItem:u}=Pa(n,{formItemContext:r}),c=async p=>{a(ot,p),await Le(),a(bt,p)},d=x({get(){return n.modelValue},set(p){c(p)}}),f=x(()=>({...Tb,...n.props})),h=p=>{const{label:v,value:m,disabled:y}=f.value,b={label:p[v],value:p[m],disabled:p[y]};return{...Su(p,[v,m,y]),...b}},g=x(()=>n.type==="button"?Rh:Ob);return wt(Js,{...ul(Nn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:d,changeEvent:c}),fe(()=>n.modelValue,(p,v)=>{n.validateEvent&&!an(p,v)&&(r==null||r.validate("change").catch(m=>pt(m)))}),(p,v)=>{var m;return C(),ie(dt(e.tag),{id:i(s),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?(m=i(r))==null?void 0:m.labelId:void 0},{default:ae(()=>[oe(p.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(y,b)=>(C(),ie(dt(g.value),ht({key:b},{ref_for:!0},h(y)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),$b=cq;const lo=it(Ob,{CheckboxButton:Rh,CheckboxGroup:$b}),dq=tn(Rh),Nh=tn($b),Ab=_e({modelValue:{type:[String,Number,Boolean],default:void 0},size:kn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),fq=_e({...Ab,border:Boolean}),Rb={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Nb=Symbol("radioGroupKey"),pq=_e({...Ab}),Pb={label:"label",value:"value",disabled:"disabled"},hq=_e({id:{type:String,default:void 0},size:kn,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Pb},type:{type:String,values:["radio","button"],default:"radio"},...oa(["ariaLabel"])}),vq=Rb,Ib=(e,t)=>{const n=V(),a=Pe(Nb,void 0),o=x(()=>!!a),l=x(()=>ya(e.value)?e.label:e.value),r=x({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t(ot,f),n.value.checked=e.modelValue===l.value}}),s=_n(x(()=>a==null?void 0:a.size)),u=rn(x(()=>a==null?void 0:a.disabled)),c=V(!1),d=x(()=>u.value||o.value&&r.value!==l.value?-1:0);return $o({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>o.value&&ya(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:s,disabled:u,tabIndex:d,modelValue:r,actualValue:l}},mq=["value","name","disabled","checked"];var gq=D({name:"ElRadio",__name:"radio",props:fq,emits:Rb,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),{radioRef:l,radioGroup:r,focus:s,size:u,disabled:c,modelValue:d,actualValue:f}=Ib(n,a);function h(){Le(()=>a(bt,d.value))}return(g,p)=>{var v;return C(),$("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(s)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[E("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[ft(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=m=>Yt(d)?d.value=m:null),class:R(i(o).e("original")),value:i(f),name:e.name||((v=i(r))==null?void 0:v.name),disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:h,onClick:p[3]||(p[3]=Je(()=>{},["stop"]))},null,42,mq),[[f6,i(d)]]),E("span",{class:R(i(o).e("inner"))},null,2)],2),E("span",{class:R(i(o).e("label")),onKeydown:p[4]||(p[4]=Je(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[St(Se(e.label),1)])],34)],2)}}}),Lb=gq;const yq=["value","name","disabled"];var bq=D({name:"ElRadioButton",__name:"radio-button",props:pq,setup(e){const t=e,n=ve("radio"),{radioRef:a,focus:o,size:l,disabled:r,modelValue:s,radioGroup:u,actualValue:c}=Ib(t),d=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var g;return C(),$("label",{class:R([i(n).b("button"),i(n).is("active",i(s)===i(c)),i(n).is("disabled",i(r)),i(n).is("focus",i(o)),i(n).bm("button",i(l))])},[ft(E("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>Yt(s)?s.value=p:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||((g=i(u))==null?void 0:g.name),disabled:i(r),onFocus:h[1]||(h[1]=p=>o.value=!0),onBlur:h[2]||(h[2]=p=>o.value=!1),onClick:h[3]||(h[3]=Je(()=>{},["stop"]))},null,42,yq),[[f6,i(s)]]),E("span",{class:R(i(n).be("button","inner")),style:qe(i(s)===i(c)?d.value:{}),onKeydown:h[4]||(h[4]=Je(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[St(Se(e.label),1)])],38)],2)}}}),Ph=bq;const wq=["id","aria-label","aria-labelledby"];var Cq=D({name:"ElRadioGroup",__name:"radio-group",props:hq,emits:vq,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),l=Kn(),r=V(),{formItem:s}=Bn(),{inputId:u,isLabeledByFormItem:c}=Pa(n,{formItemContext:s}),d=v=>{a(ot,v),Le(()=>a(bt,v))};gt(()=>{const v=r.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=x(()=>n.name||l.value),h=x(()=>({...Pb,...n.props})),g=v=>{const{label:m,value:y,disabled:b}=h.value,w={label:v[m],value:v[y],disabled:v[b]};return{...Su(v,[m,y,b]),...w}},p=x(()=>n.type==="button"?Ph:Lb);return wt(Nb,Rt({...Nn(n),changeEvent:d,name:f})),fe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!an(v,m)&&(s==null||s.validate("change").catch(y=>pt(y)))}),(v,m)=>(C(),$("div",{id:i(u),ref_key:"radioGroupRef",ref:r,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(s).labelId:void 0},[oe(v.$slots,"default",{},()=>[(C(!0),$(Ke,null,_t(e.options,(y,b)=>(C(),ie(dt(p.value),ht({key:b},{ref_for:!0},g(y)),null,16))),128))])],10,wq))}}),Vb=Cq;const Bb=it(Lb,{RadioButton:Ph,RadioGroup:Vb}),_q=tn(Vb),Sq=tn(Ph),mf=Symbol();function xq(e){return!!(be(e)?e.every(({type:t})=>t===mn):(e==null?void 0:e.type)===mn)}var kq=D({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ve("cascader-node"),{renderLabelFn:n}=Pe(mf),{node:a}=e,{data:o,label:l}=a,r=()=>{const s=n==null?void 0:n({node:a,data:o});return xq(s)?l:s??l};return()=>Q("span",{class:t.e("label")},[r()])}});const Eq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var Tq=D({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=Pe(mf),l=ve("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),u=x(()=>o.config.checkStrictly),c=x(()=>o.config.showPrefix),d=x(()=>{var A;return(A=o.checkedNodes[0])==null?void 0:A.uid}),f=x(()=>n.node.isDisabled),h=x(()=>n.node.isLeaf),g=x(()=>u.value&&!h.value||!f.value),p=x(()=>m(o.expandingNode)),v=x(()=>u.value&&o.checkedNodes.some(m)),m=A=>{var L;const{level:O,uid:I}=n.node;return((L=A==null?void 0:A.pathNodes[O-1])==null?void 0:L.uid)===I},y=()=>{p.value||o.expandNode(n.node)},b=A=>{const{node:O}=n;A!==O.checked&&o.handleCheckChange(O,A)},w=()=>{o.lazyLoad(n.node,()=>{h.value||y()})},_=A=>{r.value&&(S(),!h.value&&a("expand",A))},S=()=>{const{node:A}=n;!g.value||A.loading||(A.loaded?y():w())},k=()=>{h.value&&!f.value&&!u.value&&!s.value?M(!0):(o.config.checkOnClickNode&&(s.value||u.value)||h.value&&o.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||S()},T=A=>{u.value?(b(A),n.node.loaded&&y()):M(A)},M=A=>{n.node.loaded?(b(A),!u.value&&y()):w()};return(A,O)=>(C(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":p.value,tabindex:g.value?-1:void 0,class:R([i(l).b(),i(l).is("selectable",u.value),i(l).is("active",e.node.checked),i(l).is("disabled",!g.value),p.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:_,onFocus:_,onClick:k},[re(" prefix "),s.value&&c.value?(C(),ie(i(lo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:O[0]||(O[0]=Je(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(C(),ie(i(Bb),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:O[1]||(O[1]=Je(()=>{},["stop"]))},{default:ae(()=>[re(` - Add an empty element to avoid render label, - do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 - `),O[2]||(O[2]=E("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(C(),ie(i(De),{key:2,class:R(i(l).e("prefix"))},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(kq),{node:e.node},null,8,["node"]),re(" postfix "),h.value?re("v-if",!0):(C(),$(Ke,{key:3},[e.node.loading?(C(),ie(i(De),{key:0,class:R([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):(C(),ie(i(De),{key:1,class:R(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Q(i(Un))]),_:1},8,["class"]))],64))],42,Eq))}}),Mq=Tq,Oq=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=vt(),a=ve("cascader-menu"),{t:o}=kt(),l=Kn();let r,s;const u=Pe(mf),c=V(),d=x(()=>!t.nodes.length),f=x(()=>!u.initialLoaded),h=x(()=>`${l.value}-${t.index}`),g=y=>{r=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!r||!c.value))if(r.contains(y.target)){v();const w=n.vnode.el,{left:_}=w.getBoundingClientRect(),{offsetWidth:S,offsetHeight:k}=w,T=y.clientX-_,M=r.offsetTop,A=M+r.offsetHeight,O=((b=w.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=` - - - `}else s||(s=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(C(),ie(i(ao),{key:h.value,tag:"ul",role:"menu",class:R(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:ae(()=>{var w;return[(C(!0),$(Ke,null,_t(e.nodes,_=>(C(),ie(Mq,{key:_.uid,node:_,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(C(),$("div",{key:0,class:R(i(a).e("empty-text"))},[Q(i(De),{size:"14",class:R(i(a).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"]),St(" "+Se(i(o)("el.cascader.loading")),1)],2)):d.value?(C(),$("div",{key:1,class:R(i(a).e("empty-text"))},[oe(y.$slots,"empty",{},()=>[St(Se(i(o)("el.cascader.noData")),1)])],2)):(w=i(u))!=null&&w.isHoverMenu?(C(),$(Ke,{key:2},[re(" eslint-disable vue/html-self-closing "),(C(),$("svg",{ref_key:"hoverZone",ref:c,class:R(i(a).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),$q=Oq;let Aq=0;const Rq=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var E2=class T2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=Aq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=Rq(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new T2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ca(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(Fe(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:r}=n,s=Fe(r)?r(t,this):t[r];return Et(s)?l&&!o?!1:!(be(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new T2(t,this.config,this);return be(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const M2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(M2(a.children,t))),n),[]);var cg=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new E2(a,this.config));this.nodes=n,this.allNodes=M2(n,!1),this.leafNodes=M2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new E2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return ya(e)?null:this.getFlattedNodes(t).find(n=>an(n.value,e)||an(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>an(e.value,t)&&e.level===n)||null}};const dg=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Nq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():d8(e)&&e.click()},Pq=(e,t)=>{const n=t.slice(0),a=n.map(l=>l.uid),o=e.reduce((l,r)=>{const s=a.indexOf(r.uid);return s>-1&&(l.push(r),n.splice(s,1),a.splice(s,1)),l},[]);return o.push(...n),o};var Iq=D({name:"ElCascaderPanel",__name:"index",props:Jj,emits:Zj,setup(e,{expose:t,emit:n}){const a=e,o=n;let l=!1;const r=ve("cascader"),s=Qj(a),u=hn();let c;const d=V(!0),f=V(!1),h=V([]),g=V(),p=V([]),v=V(),m=V([]),y=x(()=>s.value.expandTrigger==="hover"),b=x(()=>a.renderLabel||u.default),w=()=>{const{options:N}=a,P=s.value;l=!1,c=new cg(N,P),p.value=[c.getNodes()],P.lazy&&ca(a.options)?(d.value=!1,_(void 0,B=>{B&&(c=new cg(B,P),p.value=[c.getNodes()]),d.value=!0,L(!1,!0)})):L(!1,!0)},_=(N,P)=>{const B=s.value;N=N||new E2({},B,void 0,!0),N.loading=!0;const K=j=>{const G=N,ee=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],j&&(c==null||c.appendNodes(j,ee)),j&&(P==null||P(j)),N.level===0&&(f.value=!0)},W=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(d.value=!0)};B.lazyLoad(N,K,W)},S=(N,P)=>{var j;const{level:B}=N,K=p.value.slice(0,B);let W;N.isLeaf?W=N.pathNodes[B-2]:(W=N,K.push(N.children)),((j=v.value)==null?void 0:j.uid)!==(W==null?void 0:W.uid)&&(v.value=N,p.value=K,!P&&o("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,P,B=!0)=>{const{checkStrictly:K,multiple:W}=s.value,j=m.value[0];l=!0,!W&&(j==null||j.doCheck(!1)),N.doCheck(P),I(),B&&!W&&!K&&o("close"),!B&&!W&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&S(N))},M=N=>c==null?void 0:c.getFlattedNodes(N),A=N=>{var P;return(P=M(N))==null?void 0:P.filter(({checked:B})=>B!==!1)},O=()=>{m.value.forEach(N=>N.doCheck(!1)),I(),p.value=p.value.slice(0,1),v.value=void 0,o("expand-change",[])},I=()=>{const{checkStrictly:N,multiple:P}=s.value,B=m.value,K=Pq(B,A(!N)),W=K.map(j=>j.valueByOption);m.value=K,g.value=P?W:W[0]??null},L=(N=!1,P=!1)=>{const{modelValue:B}=a,{lazy:K,multiple:W,checkStrictly:j}=s.value,G=!j;if(!(!d.value||l||!P&&an(B,g.value)))if(K&&!N){const ee=Om(DT(ta(B))).map(te=>c==null?void 0:c.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);ee.length?ee.forEach(te=>{_(te,()=>L(!1,P))}):L(!0,P)}else z(Om((W?ta(B):[B]).map(ee=>c==null?void 0:c.getNodeByValue(ee,G))),P),g.value=Eo(B??void 0)},z=(N,P=!0)=>{const{checkStrictly:B}=s.value,K=m.value,W=N.filter(ee=>!!ee&&(B||ee.isLeaf)),j=c==null?void 0:c.getSameNode(v.value),G=P&&j||W[0];G?G.pathNodes.forEach(ee=>S(ee,!0)):v.value=void 0,K.forEach(ee=>ee.doCheck(!1)),Rt(W).forEach(ee=>ee.doCheck(!0)),m.value=W,Le(q)},q=()=>{At&&h.value.forEach(N=>{const P=N==null?void 0:N.$el;if(P){const B=P.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let K=P.querySelector(`.${r.b("node")}.in-active-path`);if(!K){const W=P.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);K=W[W.length-1]}Jp(B,K)}})},U=N=>{var K,W;const P=N.target,B=Kt(N);switch(B){case Ce.up:case Ce.down:N.preventDefault(),Ec(f8(P,B===Ce.up?-1:1,`.${r.b("node")}[tabindex="-1"]`));break;case Ce.left:{N.preventDefault();const j=(K=h.value[dg(P)-1])==null?void 0:K.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Ec(j);break}case Ce.right:{N.preventDefault();const j=(W=h.value[dg(P)+1])==null?void 0:W.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Ec(j);break}case Ce.enter:case Ce.numpadEnter:Nq(P);break}};wt(mf,Rt({config:s,expandingNode:v,checkedNodes:m,isHoverMenu:y,initialLoaded:d,renderLabelFn:b,lazyLoad:_,expandNode:S,handleCheckChange:k})),fe(s,(N,P)=>{an(N,P)||w()},{immediate:!0}),fe(()=>a.options,w,{deep:!0}),fe(()=>a.modelValue,()=>{l=!1,L()},{deep:!0}),fe(()=>g.value,N=>{an(N,a.modelValue)||(o(ot,N),o(bt,N))});const F=()=>{f.value||w()};return Cp(()=>h.value=[]),gt(()=>!ca(a.modelValue)&&L()),t({menuList:h,menus:p,checkedNodes:m,handleKeyDown:U,handleCheckChange:k,getFlattedNodes:M,getCheckedNodes:A,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:q,loadLazyRootNodes:F}),(N,P)=>(C(),$("div",{class:R([i(r).b("panel"),i(r).is("bordered",e.border)]),onKeydown:U},[(C(!0),$(Ke,null,_t(p.value,(B,K)=>(C(),ie($q,{key:K,ref_for:!0,ref:W=>h.value[K]=W,index:K,nodes:[...B]},{empty:ae(()=>[oe(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),Lq=Iq;const zb=it(Lq),Vq=_e({...xb,size:kn,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ft,default:ho},filterable:Boolean,filterMethod:{type:J(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:J(Function),default:()=>!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,teleported:Ht.teleported,effect:{type:J(String),default:"light"},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Wr}),fg=e=>!0,Bq={[ot]:fg,[bt]:fg,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Dt(e),expandChange:e=>!!e,removeTag:e=>!!e},zq=["placeholder"],Dq=["onClick"];var Hq=D({name:"ElCascader",__name:"cascader",props:Vq,emits:Bq,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:We,placement:Ze}=Oe;["right","left","bottom","top"].includes(Ze)||We.arrow&&(We.arrow.x=35)},requires:["arrow"]}]},o=e,l=n,r=gl(),s=hn();let u=0,c=0;const d=ve("cascader"),f=ve("input"),h={small:7,default:11,large:15},{t:g}=kt(),{formItem:p}=Bn(),v=rn(),{valueOnClear:m}=Pu(o),{isComposing:y,handleComposition:b}=Nu({afterComposition(Oe){var Ze;const We=(Ze=Oe.target)==null?void 0:Ze.value;Te(We)}}),w=V(),_=V(),S=V(),k=V(),T=V(),M=V(),A=V(!1),O=V(!1),I=V(!1),L=V(""),z=V(""),q=V([]),U=V([]),F=x(()=>o.props.multiple?o.collapseTags?q.value.slice(0,o.maxCollapseTags):q.value:[]),N=x(()=>o.props.multiple?o.collapseTags?q.value.slice(o.maxCollapseTags):[]:[]),P=x(()=>r.style),B=x(()=>o.placeholder??g("el.cascader.placeholder")),K=x(()=>z.value||q.value.length>0||y.value?"":B.value),W=_n(),j=x(()=>W.value==="small"?"small":"default"),G=x(()=>!!o.props.multiple),ee=x(()=>!o.filterable||G.value),te=x(()=>G.value?z.value:L.value),ue=x(()=>{var Oe;return((Oe=T.value)==null?void 0:Oe.checkedNodes)||[]}),{wrapperRef:ne,isFocused:de,handleBlur:se}=Cl(S,{disabled:v,beforeBlur(Oe){var We,Ze;return((We=w.value)==null?void 0:We.isFocusInsideContent(Oe))||((Ze=_.value)==null?void 0:Ze.isFocusInsideContent(Oe))},afterBlur(){var Oe;o.validateEvent&&((Oe=p==null?void 0:p.validate)==null||Oe.call(p,"blur").catch(We=>pt(We)))}}),Y=x(()=>!o.clearable||v.value||I.value||!O.value&&!de.value?!1:!!ue.value.length),X=x(()=>{const{showAllLevels:Oe,separator:We}=o,Ze=ue.value;return Ze.length?G.value?"":Ze[0].calcText(Oe,We):""}),H=x(()=>(p==null?void 0:p.validateState)||""),Z=x({get(){return Eo(o.modelValue)},set(Oe){const We=Oe??m.value;l(ot,We),l(bt,We),o.validateEvent&&(p==null||p.validate("change").catch(Ze=>pt(Ze)))}}),le=x(()=>[d.b(),d.m(W.value),d.is("disabled",v.value),r.class]),ce=x(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",A.value)]),ge=x(()=>d.is("focus",de.value)),me=x(()=>{var Oe,We;return(We=(Oe=w.value)==null?void 0:Oe.popperRef)==null?void 0:We.contentRef}),Ae=Oe=>{de.value&&se(new FocusEvent("blur",Oe)),Ne(!1)},Ne=Oe=>{var We,Ze;v.value||(Oe=Oe??!A.value,Oe!==A.value&&(A.value=Oe,(Ze=(We=S.value)==null?void 0:We.input)==null||Ze.setAttribute("aria-expanded",`${Oe}`),Oe?(Re(),T.value&&Le(T.value.scrollToExpandingNode)):o.filterable&&tt(),l("visibleChange",Oe)))},Re=()=>{Le(()=>{var Oe;(Oe=w.value)==null||Oe.updatePopper()})},ye=()=>{I.value=!1},Ee=Oe=>{const{showAllLevels:We,separator:Ze}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(We,Ze),hitState:!1,closable:!v.value&&!Oe.isDisabled}},we=Oe=>{var Ze;const We=Oe.node;We.doCheck(!1),(Ze=T.value)==null||Ze.calculateCheckedValue(),l("removeTag",We.valueByOption)},Ie=()=>{switch(o.showCheckedStrategy){case"child":return ue.value;case"parent":{const Oe=Me(!1),We=Oe.map(Ze=>Ze.value);return Oe.filter(Ze=>!Ze.parent||!We.includes(Ze.parent.value))}default:return[]}},ze=()=>{if(!G.value)return;const Oe=Ie(),We=[];Oe.forEach(Ze=>We.push(Ee(Ze))),q.value=We},et=()=>{var zt,Xt;const{filterMethod:Oe,showAllLevels:We,separator:Ze}=o,cn=(Xt=(zt=T.value)==null?void 0:zt.getFlattedNodes(!o.props.checkStrictly))==null?void 0:Xt.filter(Ue=>Ue.isDisabled?!1:(Ue.calcText(We,Ze),Oe(Ue,te.value)));G.value&&q.value.forEach(Ue=>{Ue.hitState=!1}),I.value=!0,U.value=cn,Re()},nt=()=>{var We;let Oe;I.value&&M.value?Oe=M.value.$el.querySelector(`.${d.e("suggestion-item")}`):Oe=(We=T.value)==null?void 0:We.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!I.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},at=()=>{var cn,zt,Xt;const Oe=(cn=S.value)==null?void 0:cn.input,We=k.value,Ze=(zt=M.value)==null?void 0:zt.$el;if(!(!At||!Oe)){if(Ze){const Ue=Ze.querySelector(`.${d.e("suggestion-list")}`);Ue.style.minWidth=`${Oe.offsetWidth}px`}if(We){const{offsetHeight:Ue}=We,Xe=q.value.length>0?`${Math.max(Ue,u)-2}px`:`${u}px`;if(Oe.style.height=Xe,s.prefix){const mt=(Xt=S.value)==null?void 0:Xt.$el.querySelector(`.${f.e("prefix")}`);let Mn=0;mt&&(Mn=mt.offsetWidth,Mn>0&&(Mn+=h[W.value||"default"])),We.style.left=`${Mn}px`}else We.style.left="0";Re()}}},Me=Oe=>{var We;return(We=T.value)==null?void 0:We.getCheckedNodes(Oe)},Ge=Oe=>{Re(),l("expandChange",Oe)},ut=Oe=>{if(!y.value)switch(Kt(Oe)){case Ce.enter:case Ce.numpadEnter:Ne();break;case Ce.down:Ne(!0),Le(nt),Oe.preventDefault();break;case Ce.esc:A.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),Ne(!1));break;case Ce.tab:Ne(!1);break}},je=()=>{var Oe;(Oe=T.value)==null||Oe.clearCheckedNodes(),!A.value&&o.filterable&&tt(),Ne(!1),l("clear")},tt=()=>{const{value:Oe}=X;L.value=Oe,z.value=Oe},yt=Oe=>{var Ze,cn;const{checked:We}=Oe;G.value?(Ze=T.value)==null||Ze.handleCheckChange(Oe,!We,!1):(!We&&((cn=T.value)==null||cn.handleCheckChange(Oe,!0,!1)),Ne(!1))},he=Oe=>{const We=Oe.target,Ze=Kt(Oe);switch(Ze){case Ce.up:case Ce.down:Oe.preventDefault(),Ec(f8(We,Ze===Ce.up?-1:1,`.${d.e("suggestion-item")}[tabindex="-1"]`));break;case Ce.enter:case Ce.numpadEnter:We.click();break}},Ve=()=>{const Oe=q.value[q.value.length-1];c=z.value?0:c+1,!(!Oe||!c||o.collapseTags&&q.value.length>1)&&(Oe.hitState?we(Oe):Oe.hitState=!0)},pe=gu(()=>{const{value:Oe}=te;if(!Oe)return;const We=o.beforeFilter(Oe);Kl(We)?We.then(et).catch(()=>{}):We!==!1?et():ye()},x(()=>o.debounce)),Te=(Oe,We)=>{if(!A.value&&Ne(!0),!(We!=null&&We.isComposing))if(Oe)pe();else{const Ze=o.beforeFilter("");Kl(Ze)&&Ze.catch(()=>{}),ye()}},ct=Oe=>Number.parseFloat($S(f.cssVarName("input-height"),Oe).value)-2,Pt=()=>{var Oe;(Oe=S.value)==null||Oe.focus()},Gt=()=>{var Oe;(Oe=S.value)==null||Oe.blur()};return fe(I,Re),fe([ue,v,()=>o.collapseTags,()=>o.maxCollapseTags],ze),fe(q,()=>{Le(()=>at())}),fe(W,async()=>{await Le();const Oe=S.value.input;u=ct(Oe)||u,at()}),fe(X,tt,{immediate:!0}),fe(()=>A.value,Oe=>{var We;Oe&&o.props.lazy&&o.props.lazyLoad&&((We=T.value)==null||We.loadLazyRootNodes())}),gt(()=>{const Oe=S.value.input,We=ct(Oe);u=Oe.offsetHeight||We,Zt(Oe,at)}),t({getCheckedNodes:Me,cascaderPanelRef:T,togglePopperVisible:Ne,contentRef:me,presentText:X,focus:Pt,blur:Gt}),(Oe,We)=>(C(),ie(i(Vn),{ref_key:"tooltipRef",ref:w,visible:A.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:ye},{default:ae(()=>[ft((C(),$("div",{ref_key:"wrapperRef",ref:ne,class:R(le.value),style:qe(P.value),onClick:We[8]||(We[8]=()=>Ne(ee.value?void 0:!0)),onKeydown:ut,onMouseenter:We[9]||(We[9]=Ze=>O.value=!0),onMouseleave:We[10]||(We[10]=Ze=>O.value=!1)},[Q(i(Dn),{ref_key:"inputRef",ref:S,modelValue:L.value,"onUpdate:modelValue":We[1]||(We[1]=Ze=>L.value=Ze),placeholder:K.value,readonly:ee.value,disabled:i(v),"validate-event":!1,size:i(W),class:R(ge.value),tabindex:G.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(b),onCompositionupdate:i(b),onCompositionend:i(b),onInput:Te},fa({suffix:ae(()=>[Y.value?(C(),ie(i(De),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Je(je,["stop"])},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class"])):(C(),ie(i(De),{key:"arrow-down",class:R(ce.value),onClick:We[0]||(We[0]=Je(Ze=>Ne(),["stop"]))},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),G.value?(C(),$("div",{key:0,ref_key:"tagWrapper",ref:k,class:R([i(d).e("tags"),i(d).is("validate",!!H.value)])},[oe(Oe.$slots,"tag",{data:q.value,deleteTag:we},()=>[(C(!0),$(Ke,null,_t(F.value,Ze=>(C(),ie(i(ll),{key:Ze.key,type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:cn=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(C(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:_,disabled:A.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ae(()=>[Q(i(ll),{closable:!1,size:j.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[E("span",{class:R(i(d).e("tags-text"))}," + "+Se(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ae(()=>[Q(i(ao),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ae(()=>[E("div",{class:R(i(d).e("collapse-tags"))},[(C(!0),$(Ke,null,_t(N.value,(Ze,cn)=>(C(),$("div",{key:cn,class:R(i(d).e("collapse-tag"))},[(C(),ie(i(ll),{key:Ze.key,class:"in-tooltip",type:e.tagType,size:j.value,effect:e.tagEffect,hit:Ze.hitState,closable:Ze.closable,"disable-transitions":"",onClose:zt=>we(Ze)},{default:ae(()=>[E("span",null,Se(Ze.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?ft((C(),$("input",{key:1,"onUpdate:modelValue":We[2]||(We[2]=Ze=>z.value=Ze),type:"text",class:R(i(d).e("search-input")),placeholder:X.value?"":B.value,onInput:We[3]||(We[3]=Ze=>Te(z.value,Ze)),onClick:We[4]||(We[4]=Je(Ze=>Ne(!0),["stop"])),onKeydown:nn(Ve,["delete"]),onCompositionstart:We[5]||(We[5]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionupdate:We[6]||(We[6]=(...Ze)=>i(b)&&i(b)(...Ze)),onCompositionend:We[7]||(We[7]=(...Ze)=>i(b)&&i(b)(...Ze))},null,42,zq)),[[c6,z.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(jl),Ae,me.value]])]),content:ae(()=>[Oe.$slots.header?(C(),$("div",{key:0,class:R(i(d).e("header")),onClick:We[11]||(We[11]=Je(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),ft(Q(i(zb),{ref_key:"cascaderPanelRef",ref:T,modelValue:Z.value,"onUpdate:modelValue":We[12]||(We[12]=Ze=>Z.value=Ze),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,onExpandChange:Ge,onClose:We[13]||(We[13]=Ze=>Oe.$nextTick(()=>Ne(!1)))},{empty:ae(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[$t,!I.value]]),e.filterable?ft((C(),ie(i(ao),{key:1,ref_key:"suggestionPanel",ref:M,tag:"ul",class:R(i(d).e("suggestion-panel")),"view-class":i(d).e("suggestion-list"),onKeydown:he},{default:ae(()=>[U.value.length?(C(!0),$(Ke,{key:0},_t(U.value,Ze=>(C(),$("li",{key:Ze.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",Ze.checked)]),tabindex:-1,onClick:cn=>yt(Ze)},[oe(Oe.$slots,"suggestion-item",{item:Ze},()=>[E("span",null,Se(Ze.text),1),Ze.checked?(C(),ie(i(De),{key:0},{default:ae(()=>[Q(i(Gs))]),_:1})):re("v-if",!0)])],10,Dq))),128)):oe(Oe.$slots,"empty",{key:1},()=>[E("li",{class:R(i(d).e("empty-text"))},Se(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[$t,I.value]]):re("v-if",!0),Oe.$slots.footer?(C(),$("div",{key:2,class:R(i(d).e("footer")),onClick:We[14]||(We[14]=Je(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),Fq=Hq;const Kq=it(Fq),Wq=_e({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),jq={"update:checked":e=>Dt(e),[bt]:e=>Dt(e)};var qq=D({name:"ElCheckTag",__name:"check-tag",props:Wq,emits:jq,setup(e,{emit:t}){const n=e,a=t,o=ve("check-tag"),l=x(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const s=!n.checked;a(bt,s),a("update:checked",s)};return(s,u)=>(C(),$("span",{class:R(l.value),onClick:r},[oe(s.$slots,"default")],2))}}),Uq=qq;const Yq=it(Uq),Gq=_e({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:J([Number,Object]),default:()=>on({})},sm:{type:J([Number,Object]),default:()=>on({})},md:{type:J([Number,Object]),default:()=>on({})},lg:{type:J([Number,Object]),default:()=>on({})},xl:{type:J([Number,Object]),default:()=>on({})}}),Xq=["start","center","end","space-around","space-between","space-evenly"],Jq=["top","middle","bottom"],Zq=_e({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Xq,default:"start"},align:{type:String,values:Jq}}),Db=Symbol("rowContextKey");var Qq=D({name:"ElRow",__name:"row",props:Zq,setup(e){const t=e,n=ve("row");wt(Db,{gutter:x(()=>t.gutter)});const a=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(l,r)=>(C(),ie(dt(e.tag),{class:R(o.value),style:qe(a.value)},{default:ae(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),eU=Qq;const tU=it(eU);var nU=D({name:"ElCol",__name:"col",props:Gq,setup(e){const t=e,{gutter:n}=Pe(Db,{gutter:x(()=>0)}),a=ve("col"),o=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=x(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const u=t[s];He(u)&&(s==="span"?r.push(a.b(`${t[s]}`)):u>0&&r.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{He(t[s])?r.push(a.b(`${s}-${t[s]}`)):lt(t[s])&&Object.entries(t[s]).forEach(([u,c])=>{r.push(u!=="span"?a.b(`${s}-${u}-${c}`):a.b(`${s}-${c}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,s)=>(C(),ie(dt(e.tag),{class:R(l.value),style:qe(o.value)},{default:ae(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),aU=nU;const oU=it(aU),pg=e=>He(e)||Be(e)||be(e),lU=_e({accordion:Boolean,modelValue:{type:J([Array,String,Number]),default:()=>on([])},expandIconPosition:{type:J([String]),default:"right"},beforeCollapse:{type:J(Function)}}),rU={[ot]:pg,[bt]:pg},Hb=Symbol("collapseContextKey"),sU=_e({title:{type:String,default:""},name:{type:J([String,Number]),default:void 0},icon:{type:Ft,default:Un},disabled:Boolean});var iU=D({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ve("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,l)=>(C(),ie(Fn,ht({name:i(t).b()},GC(a)),{default:ae(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),uU=iU;const gf=it(uU),hg="ElCollapse",cU=(e,t)=>{const n=V($n(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(ot,s),t(bt,s)},o=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],u=s.indexOf(r);u>-1?s.splice(u,1):s.push(r),a(s)}},l=async r=>{const{beforeCollapse:s}=e;if(!s){o(r);return}const u=s(r);[Kl(u),Dt(u)].includes(!0)||en(hg,"beforeCollapse must return type `Promise` or `boolean`"),Kl(u)?u.then(c=>{c!==!1&&o(r)}).catch(c=>{pt(hg,`some error occurred: ${c}`)}):u&&o(r)};return fe(()=>e.modelValue,()=>n.value=$n(e.modelValue),{deep:!0}),wt(Hb,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},dU=e=>{const t=ve("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var fU=D({name:"ElCollapse",__name:"collapse",props:lU,emits:rU,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:l}=cU(a,n),{rootKls:r}=dU(a);return t({activeNames:o,setActiveNames:l}),(s,u)=>(C(),$("div",{class:R(i(r))},[oe(s.$slots,"default")],2))}}),pU=fU;const hU=e=>{const t=Pe(Hb),{namespace:n}=ve("collapse"),a=V(!1),o=V(!1),l=sh(),r=x(()=>l.current++),s=x(()=>e.name??`${n.value}-id-${l.prefix}-${i(r)}`),u=x(()=>t==null?void 0:t.activeNames.value.includes(i(s)));return{focusing:a,id:r,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:h=>{var g;e.disabled||(g=h.target)!=null&&g.closest("input, textarea, select")||(t==null||t.handleItemClick(i(s)),a.value=!1,o.value=!0)},handleEnterClick:h=>{var g;(g=h.target)!=null&&g.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(i(s)))}}},vU=(e,{focusing:t,isActive:n,id:a})=>{const o=ve("collapse"),l=x(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),r=x(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),s=x(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:x(()=>[o.be("item","title")]),arrowKls:s,headKls:r,rootKls:l,itemWrapperKls:x(()=>o.be("item","wrap")),itemContentKls:x(()=>o.be("item","content")),scopedContentId:x(()=>o.b(`content-${i(a)}`)),scopedHeadId:x(()=>o.b(`head-${i(a)}`))}},mU=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],gU=["id","aria-hidden","aria-labelledby"];var yU=D({name:"ElCollapseItem",__name:"collapse-item",props:sU,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:l,handleFocus:r,handleHeaderClick:s,handleEnterClick:u}=hU(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:h,itemWrapperKls:g,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=vU(n,{focusing:a,isActive:l,id:o});return t({isActive:l}),(y,b)=>(C(),$("div",{class:R(i(f))},[E("div",{id:i(m),class:R(i(d)),"aria-expanded":i(l),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:b[0]||(b[0]=(...w)=>i(s)&&i(s)(...w)),onKeydown:b[1]||(b[1]=nn(Je((...w)=>i(u)&&i(u)(...w),["stop"]),["space","enter"])),onFocus:b[2]||(b[2]=(...w)=>i(r)&&i(r)(...w)),onBlur:b[3]||(b[3]=w=>a.value=!1)},[E("span",{class:R(i(h))},[oe(y.$slots,"title",{isActive:i(l)},()=>[St(Se(e.title),1)])],2),oe(y.$slots,"icon",{isActive:i(l)},()=>[Q(i(De),{class:R(i(c))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])])],42,mU),Q(i(gf),null,{default:ae(()=>[ft(E("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(l),"aria-labelledby":i(m)},[E("div",{class:R(i(p))},[oe(y.$slots,"default")],2)],10,gU),[[$t,i(l)]])]),_:3})],2))}}),Fb=yU;const bU=it(pU,{CollapseItem:Fb}),wU=tn(Fb),Kb=_e({modelValue:{type:J(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:J(String)},disabled:Boolean,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:J([String,Array,Object])},hueSliderStyle:{type:J([String,Array,Object])}}),CU={[ot]:e=>Be(e)||gn(e)},Wb=Symbol("colorCommonPickerKey"),jb=Symbol("colorPickerPanelContextKey"),qb=_e({color:{type:J(Object),required:!0},vertical:Boolean,disabled:Boolean}),_U=qb,vg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},O2=(e,t)=>Math.abs(vg(e)-vg(t)),Ub=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let d0=!1;function $2(e,t){if(!At)return;const n=function(l){var r;(r=t.drag)==null||r.call(t,l)},a=function(l){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,d0=!1,(r=t.end)==null||r.call(t,l)},o=function(l){var r;d0||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),d0=!0,(r=t.start)==null||r.call(t,l))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const Yb=(e,{key:t,minValue:n,maxValue:a})=>{const o=vt(),l=qt(),r=qt(),s=x(()=>e.color.get(t));function u(h){var g;e.disabled||(h.target!==l.value&&c(h),(g=l.value)==null||g.focus())}function c(h){if(!r.value||!l.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=Ub(h);let m;if(e.vertical){let y=v-g.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,g.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*a)}else{let y=p-g.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,g.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*a)}e.color.set(t,m)}function d(h){if(e.disabled)return;const{shiftKey:g}=h,p=Kt(h),v=g?10:1,m=t==="hue"?-1:1;let y=!0;switch(p){case Ce.left:case Ce.down:f(-v*m);break;case Ce.right:case Ce.up:f(v*m);break;case Ce.home:e.color.set(t,t==="hue"?a:n);break;case Ce.end:e.color.set(t,t==="hue"?n:a);break;case Ce.pageDown:f(-4*m);break;case Ce.pageUp:f(4*m);break;default:y=!1;break}y&&h.preventDefault()}function f(h){let g=s.value+h;g=ga?a:g,e.color.set(t,g)}return{thumb:l,bar:r,currentValue:s,handleDrag:c,handleClick:u,handleKeydown:d}},Gb=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:l,handleDrag:r,getBackground:s})=>{const u=vt(),c=ve(t),d=V(0),f=V(0),h=V();function g(){if(!o.value||e.vertical)return 0;const w=u.vnode.el,_=l.value;return w?Math.round(_*(w.offsetWidth-o.value.offsetWidth/2)/n):0}function p(){if(!o.value)return 0;const w=u.vnode.el;if(!e.vertical)return 0;const _=l.value;return w?Math.round(_*(w.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=p(),h.value=s==null?void 0:s()}gt(()=>{if(!a.value||!o.value)return;const w={drag:_=>{r(_)},end:_=>{r(_)}};$2(a.value,w),$2(o.value,w),v()}),fe(l,()=>v()),fe(()=>e.color.value,()=>v());const m=x(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),y=x(()=>c.e("bar")),b=x(()=>c.e("thumb"));return{rootKls:m,barKls:y,barStyle:x(()=>({background:h.value})),thumbKls:b,thumbStyle:x(()=>({left:ln(d.value),top:ln(f.value)})),thumbLeft:d,thumbTop:f,update:v}},SU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],mg=0,f0=100;var xU=D({name:"ElColorAlphaSlider",__name:"alpha-slider",props:qb,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Yb(n,{key:"alpha",minValue:mg,maxValue:f0}),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:g,update:p}=Gb(n,{namespace:"color-alpha-slider",maxValue:f0,currentValue:a,bar:o,thumb:l,handleDrag:r,getBackground:b}),{t:v}=kt(),m=x(()=>v("el.colorpicker.alphaLabel")),y=x(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:w,g:_,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${_}, ${S}, 0) 0%, rgba(${w}, ${_}, ${S}, 1) 100%)`}return""}return t({update:p,bar:o,thumb:l}),(w,_)=>(C(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),style:qe(i(f)),onClick:_[0]||(_[0]=(...S)=>i(s)&&i(s)(...S))},null,6),E("div",{ref_key:"thumb",ref:l,class:R(i(h)),style:qe(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":mg,"aria-valuemax":f0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...S)=>i(u)&&i(u)(...S))},null,46,SU)],2))}}),kU=xU;const EU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],gg=0,p0=360;var TU=D({name:"ElColorHueSlider",__name:"hue-slider",props:_U,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=Yb(n,{key:"hue",minValue:gg,maxValue:p0}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:h,thumbTop:g,update:p}=Gb(n,{namespace:"color-hue-slider",maxValue:p0,currentValue:a,bar:o,thumb:l,handleDrag:r}),{t:v}=kt(),m=x(()=>v("el.colorpicker.hueLabel")),y=x(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:l,thumbTop:g,update:p}),(b,w)=>(C(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:w[0]||(w[0]=(..._)=>i(s)&&i(s)(..._))},null,2),E("div",{ref_key:"thumb",ref:l,class:R(i(f)),style:qe(i(h)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":gg,"aria-valuemax":p0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(..._)=>i(u)&&i(u)(..._))},null,46,EU)],2))}}),MU=TU;const OU=_e({colors:{type:J(Array),required:!0},color:{type:J(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var pd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new fn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)Mt(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)Mt(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new fn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:l}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=l*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new fn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:l}=this;let r=o||(l?"rgb":"hex");o==="hex"&&l&&(r="hex8"),this._tiny=new fn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(r):""}};const $U=e=>{const{currentColor:t}=Pe(jb),n=V(o(e.colors,e.color));fe(()=>t.value,l=>{const r=new pd({value:l,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=r.compare(s)})}),da(()=>{n.value=o(e.colors,e.color)});function a(l){e.color.fromString(e.colors[l])}function o(l,r){return l.map(s=>{const u=new pd({value:s,enableAlpha:e.enableAlpha});return u.selected=u.compare(r),u})}return{rgbaColors:n,handleSelect:a}},AU=e=>{const t=ve("color-predefine"),n=x(()=>[t.b(),t.is("disabled",e.disabled)]),a=x(()=>t.e("colors"));function o(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},RU=["disabled","aria-label","onClick"];var NU=D({name:"ElColorPredefine",__name:"predefine",props:OU,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=$U(t),{rootKls:o,colorsKls:l,colorSelectorKls:r}=AU(t),{t:s}=kt(),u=c=>s("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(C(),$("div",{class:R(i(o))},[E("div",{class:R(i(l))},[(C(!0),$(Ke,null,_t(i(n),(f,h)=>(C(),$("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(r)(f)),onClick:g=>i(a)(h)},[E("div",{style:qe({backgroundColor:f.value})},null,4)],10,RU))),128))],2)],2))}}),PU=NU;const IU=_e({color:{type:J(Object),required:!0},disabled:Boolean}),LU=e=>{const t=vt(),n=V(),a=V(0),o=V(0),l=V("hsl(0, 100%, 50%)"),r=x(()=>e.color.get("saturation")),s=x(()=>e.color.get("value")),u=x(()=>e.color.get("hue"));function c(p){var v;e.disabled||(p.target!==n.value&&d(p),(v=n.value)==null||v.focus({preventScroll:!0}))}function d(p){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=Ub(p);let b=m-v.left,w=y-v.top;b=Math.max(0,b),b=Math.min(b,v.width),w=Math.max(0,w),w=Math.min(w,v.height),o.value=b,a.value=w,e.color.set({saturation:b/v.width*100,value:100-w/v.height*100})}function f(p){if(e.disabled)return;const{shiftKey:v}=p,m=Kt(p),y=v?10:1;let b=!0;switch(m){case Ce.left:h(-y);break;case Ce.right:h(y);break;case Ce.up:g(y);break;case Ce.down:g(-y);break;default:b=!1;break}b&&p.preventDefault()}function h(p){let v=r.value+p;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(p){let v=s.value+p;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:l,saturation:r,brightness:s,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},VU=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const l=vt(),r=ve("color-svpanel");function s(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=l.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return gt(()=>{$2(l.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),s()}),fe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s()),{rootKls:x(()=>r.b()),cursorKls:x(()=>r.e("cursor")),rootStyle:x(()=>({backgroundColor:a.value})),cursorStyle:x(()=>({top:ln(t.value),left:ln(n.value)})),update:s}},BU=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var zU=D({name:"ElSvPanel",__name:"sv-panel",props:IU,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:l,background:r,saturation:s,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=LU(n),{rootKls:h,cursorKls:g,rootStyle:p,cursorStyle:v,update:m}=VU(n,{cursorTop:o,cursorLeft:l,background:r,handleDrag:d}),{t:y}=kt(),b=x(()=>y("el.colorpicker.svLabel")),w=x(()=>y("el.colorpicker.svDescription",{saturation:s.value,brightness:u.value,color:n.color.value}));return t({update:m}),(_,S)=>(C(),$("div",{class:R(i(h)),style:qe(i(p)),onClick:S[1]||(S[1]=(...k)=>i(c)&&i(c)(...k))},[E("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:qe(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${i(s)},${i(u)}`,"aria-valuetext":w.value,onKeydown:S[0]||(S[0]=(...k)=>i(f)&&i(f)(...k))},null,46,BU)],6))}}),DU=zU;const Xb=(e,t)=>{const n=Rt(new pd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return fe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(ot,n.value)}),{color:n}};var HU=D({name:"ElColorPickerPanel",__name:"color-picker-panel",props:Kb,emits:CU,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("color-picker-panel"),{formItem:r}=Bn(),s=rn(),u=V(),c=V(),d=V(),f=V(),h=V(""),{color:g}=Pe(Wb,()=>Xb(a,o),!0);function p(){g.fromString(h.value),g.value!==h.value&&(h.value=g.value)}function v(){var y;a.validateEvent&&((y=r==null?void 0:r.validate)==null||y.call(r,"blur").catch(b=>pt(b)))}function m(){var y,b,w;(y=u.value)==null||y.update(),(b=c.value)==null||b.update(),(w=d.value)==null||w.update()}return gt(()=>{a.modelValue&&(h.value=g.value),Le(m)}),fe(()=>a.modelValue,y=>{y!==g.value&&(y?g.fromString(y):g.clear())}),fe(()=>g.value,y=>{o(ot,y),h.value=y,a.validateEvent&&(r==null||r.validate("change").catch(b=>pt(b)))}),wt(jb,{currentColor:x(()=>g.value)}),t({color:g,inputRef:f,update:m}),(y,b)=>(C(),$("div",{class:R([i(l).b(),i(l).is("disabled",i(s)),i(l).is("border",e.border)]),onFocusout:v},[E("div",{class:R(i(l).e("wrapper"))},[Q(MU,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(s),class:R(["hue-slider",e.hueSliderClass]),style:qe(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Q(DU,{ref_key:"svRef",ref:c,color:i(g),disabled:i(s)},null,8,["color","disabled"])],2),e.showAlpha?(C(),ie(kU,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(s)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(C(),ie(PU,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(s)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),E("div",{class:R(i(l).e("footer"))},[Q(i(Dn),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:i(s),onChange:p},null,8,["modelValue","disabled"]),oe(y.$slots,"footer")],2)],34))}}),FU=HU;const Jb=it(FU),KU=_e({persistent:{type:Boolean,default:!0},modelValue:{type:J(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:J(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:kn,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ht.teleported,appendTo:Ht.appendTo,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},...Wr,...oa(["ariaLabel"])}),WU={[ot]:e=>Be(e)||gn(e),[bt]:e=>Be(e)||gn(e),activeChange:e=>Be(e)||gn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},jU=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var qU=D({name:"ElColorPicker",__name:"color-picker",props:KU,emits:WU,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("color"),{formItem:s}=Bn(),u=_n(),c=rn(),{valueOnClear:d,isEmptyValue:f}=Pu(a,null),h=Xb(a,o),{inputId:g,isLabeledByFormItem:p}=Pa(a,{formItemContext:s}),v=V(),m=V(),y=V(),b=V(!1),w=V(!1);let _=!0;const{isFocused:S,handleFocus:k,handleBlur:T}=Cl(m,{disabled:c,beforeBlur(Y){var X;return(X=v.value)==null?void 0:X.isFocusInsideContent(Y)},afterBlur(){var Y;F(!1),K(),a.validateEvent&&((Y=s==null?void 0:s.validate)==null||Y.call(s,"blur").catch(X=>pt(X)))}}),M=mS(()=>{var Y;return((Y=y.value)==null?void 0:Y.color)??h.color}),A=x(()=>ul(a,Object.keys(Kb))),O=x(()=>!a.modelValue&&!w.value?"transparent":U(M,a.showAlpha)),I=x(()=>!a.modelValue&&!w.value?"":M.value),L=x(()=>p.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),z=x(()=>p.value?s==null?void 0:s.labelId:void 0),q=x(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",u.value),r.is("focused",S.value)]);function U(Y,X){const{r:H,g:Z,b:le,a:ce}=Y.toRgb();return X?`rgba(${H}, ${Z}, ${le}, ${ce})`:`rgb(${H}, ${Z}, ${le})`}function F(Y){b.value=Y}const N=Vo(F,100,{leading:!0});function P(){c.value||F(!0)}function B(){N(!1),K()}function K(){Le(()=>{a.modelValue?M.fromString(a.modelValue):(M.value="",Le(()=>{w.value=!1}))})}function W(){c.value||(b.value&&K(),N(!b.value))}function j(){const Y=f(M.value)?d.value:M.value;o(ot,Y),o(bt,Y),a.validateEvent&&(s==null||s.validate("change").catch(X=>pt(X))),N(!1),Le(()=>{const X=new pd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});M.compare(X)||K()})}function G(){N(!1),o(ot,d.value),o(bt,d.value),a.modelValue!==d.value&&a.validateEvent&&(s==null||s.validate("change").catch(Y=>pt(Y))),K(),o("clear")}function ee(){var Y,X;(X=(Y=y==null?void 0:y.value)==null?void 0:Y.inputRef)==null||X.focus()}function te(){b.value&&(B(),S.value&&de())}function ue(Y){Y.preventDefault(),Y.stopPropagation(),F(!1),K()}function ne(Y){switch(Kt(Y)){case Ce.enter:case Ce.numpadEnter:case Ce.space:Y.preventDefault(),Y.stopPropagation(),P();break;case Ce.esc:ue(Y);break}}function de(){m.value.focus()}function se(){m.value.blur()}return fe(()=>I.value,Y=>{_&&o("activeChange",Y),_=!0}),fe(()=>M.value,()=>{!a.modelValue&&!w.value&&(w.value=!0)}),fe(()=>a.modelValue,Y=>{Y?Y&&Y!==M.value&&(_=!1,M.fromString(Y)):w.value=!1}),fe(()=>b.value,()=>{y.value&&Le(y.value.update)}),wt(Wb,h),t({color:M,show:P,hide:B,focus:de,blur:se}),(Y,X)=>(C(),ie(i(Vn),{ref_key:"popper",ref:v,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:X[2]||(X[2]=H=>F(!1))},{content:ae(()=>[ft((C(),ie(i(Jb),ht({ref_key:"pickerPanelRef",ref:y},A.value,{border:!1,"validate-event":!1,onKeydown:nn(ue,["esc"])}),{footer:ae(()=>[E("div",null,[e.clearable?(C(),ie(i(An),{key:0,class:R(i(r).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ae(()=>[St(Se(i(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Q(i(An),{plain:"",size:"small",class:R(i(r).be("footer","btn")),onClick:j},{default:ae(()=>[St(Se(i(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(jl),te,m.value]])]),default:ae(()=>[E("div",ht({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":z.value,"aria-description":i(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:ne,onFocus:X[0]||(X[0]=(...H)=>i(k)&&i(k)(...H)),onBlur:X[1]||(X[1]=(...H)=>i(T)&&i(T)(...H))}),[E("div",{class:R(i(r).be("picker","trigger")),onClick:W},[E("span",{class:R([i(r).be("picker","color"),i(r).is("alpha",e.showAlpha)])},[E("span",{class:R(i(r).be("picker","color-inner")),style:qe({backgroundColor:O.value})},[ft(Q(i(De),{class:R([i(r).be("picker","icon"),i(r).is("icon-arrow-down")])},{default:ae(()=>[Q(i(po))]),_:1},8,["class"]),[[$t,e.modelValue||w.value]]),ft(Q(i(De),{class:R([i(r).be("picker","empty"),i(r).is("icon-close")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"]),[[$t,!e.modelValue&&!w.value]])],6)],2)],2)],16,jU)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),UU=qU;const YU=it(UU);var GU=D({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=hn(),a=ve("container"),o=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const r=l.type.name;return r==="ElHeader"||r==="ElFooter"}):!1);return(l,r)=>(C(),$("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(l.$slots,"default")],2))}}),XU=GU,JU=D({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,l)=>(C(),$("aside",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),Zb=JU,ZU=D({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(C(),$("footer",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),Qb=ZU,QU=D({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(C(),$("header",{class:R(i(n).b()),style:qe(a.value)},[oe(o.$slots,"default")],6))}}),ew=QU,eY=D({name:"ElMain",__name:"main",setup(e){const t=ve("main");return(n,a)=>(C(),$("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),tw=eY;const tY=it(XU,{Aside:Zb,Footer:Qb,Header:ew,Main:tw}),nY=tn(Zb),aY=tn(Qb),oY=tn(ew),lY=tn(tw),rY=_e({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:J([Date,Array,String,Number]),default:""},defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Th,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:J(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),Ih=Symbol("rootPickerContextKey"),Du="ElIsDefaultFormat",sY=["date","dates","year","years","month","months","week","range"],Lh=_e({cellClassName:{type:J(Function)},disabledDate:{type:J(Function)},date:{type:J(Object),required:!0},minDate:{type:J(Object)},maxDate:{type:J(Object)},parsedValue:{type:J([Object,Array])},rangeState:{type:J(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),nw=_e({type:{type:J(String),required:!0,values:hS},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Vh=_e({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:J(Array)}}),Bh=e=>({type:String,values:sY,default:e}),iY=_e({...nw,parsedValue:{type:J([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),nu=e=>{if(!be(e))return!1;const[t,n]=e;return st.isDayjs(t)&&st.isDayjs(n)&&st(t).isValid()&&st(n).isValid()&&t.isSameOrBefore(n)},yf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let l;if(be(e)){let[r,s]=e.map(u=>st(u).locale(t));return o||(s=r.add(n,a)),[r,s]}else e?l=st(e):l=st();return l=l.locale(t),[l,l.add(n,a)]},uY=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:l,unit:r,relativeDateGetter:s,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=st().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return Hl(o.daysInMonth()).map(l=>o.add(l,"day").toDate())},Ps=(e,t,n,a,o)=>{const l=st().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=hd(e,t,n,a).find(s=>!(o!=null&&o(s)));return r?st(r).locale(a):l.locale(a)},vd=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const o=e.month();if(!hd(e,a,o,t).every(n))return Ps(e,a,o,t,n);for(let l=0;l<12;l++)if(!hd(e,a,l,t).every(n))return Ps(e,a,l,t,n);return e},Is=(e,t,n,a)=>{if(be(e))return e.map(o=>Is(o,t,n,a));if(Be(e)){const o=a!=null&&a.value?st(e):st(e,t);if(!o.isValid())return o}return st(e,t).locale(n)},cY=_e({...Lh,showWeekNumber:Boolean,selectionMode:Bh("date")}),dY=["changerange","pick","select"],md=(e="")=>["normal","today"].includes(e),fY=(e,t)=>{const{lang:n}=kt(),a=V(),o=V(),l=V(),r=V(),s=V([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(B=>B.toLowerCase()),f=x(()=>c>3?7-c:-c),h=x(()=>{const B=e.date.startOf("month");return B.subtract(B.day()||7,"day")}),g=x(()=>d.concat(d).slice(c,c+7)),p=x(()=>nd(i(_)).some(B=>B.isCurrent)),v=x(()=>{const B=e.date.startOf("month");return{startOfMonthDay:B.day()||7,dateCountOfMonth:B.daysInMonth(),dateCountOfLastMonth:B.subtract(1,"month").daysInMonth()}}),m=x(()=>e.selectionMode==="dates"?ta(e.parsedValue):[]),y=(B,{count:K,rowIndex:W,columnIndex:j})=>{const{startOfMonthDay:G,dateCountOfMonth:ee,dateCountOfLastMonth:te}=i(v),ue=i(f);if(W>=0&&W<=1){const ne=G+ue<0?7+G+ue:G+ue;if(j+W*7>=ne)return B.text=K,!0;B.text=te-(ne-j%7)+1+W*7,B.type="prev-month"}else return K<=ee?B.text=K:(B.text=K-ee,B.type="next-month"),!0;return!1},b=(B,{columnIndex:K,rowIndex:W},j)=>{const{disabledDate:G,cellClassName:ee}=e,te=i(m),ue=y(B,{count:j,rowIndex:W,columnIndex:K}),ne=B.dayjs.toDate();return B.selected=te.find(de=>de.isSame(B.dayjs,"day")),B.isSelected=!!B.selected,B.isCurrent=k(B),B.disabled=G==null?void 0:G(ne),B.customClass=ee==null?void 0:ee(ne),ue},w=B=>{if(e.selectionMode==="week"){const[K,W]=e.showWeekNumber?[1,7]:[0,6],j=P(B[K+1]);B[K].inRange=j,B[K].start=j,B[W].inRange=j,B[W].end=j}},_=x(()=>{const{minDate:B,maxDate:K,rangeState:W,showWeekNumber:j}=e,G=i(f),ee=i(s),te="day";let ue=1;if(uY({row:6,column:7},ee,{startDate:B,columnIndexOffset:j?1:0,nextEndDate:W.endDate||K||W.selecting&&B||null,now:st().locale(i(n)).startOf(te),unit:te,relativeDateGetter:ne=>i(h).add(ne-G,te),setCellMetadata:(...ne)=>{b(...ne,ue)&&(ue+=1)},setRowMetadata:w}),j)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});fe(()=>e.date,async()=>{var B;(B=i(a))!=null&&B.contains(document.activeElement)&&(await Le(),await S())});const S=async()=>{var B;return(B=i(o))==null?void 0:B.focus()},k=B=>e.selectionMode==="date"&&md(B.type)&&T(B,e.parsedValue),T=(B,K)=>K?st(K).locale(i(n)).isSame(e.date.date(Number(B.text)),"day"):!1,M=(B,K)=>{const W=i(v).startOfMonthDay,j=i(f),G=W+j<0?7+W+j:W+j,ee=B*7+(K-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(G,"day").add(ee,"day")},A=B=>{var G;if(!e.rangeState.selecting)return;let K=B.target;if(K.tagName==="SPAN"&&(K=(G=K.parentNode)==null?void 0:G.parentNode),K.tagName==="DIV"&&(K=K.parentNode),K.tagName!=="TD")return;const W=K.parentNode.rowIndex-1,j=K.cellIndex;i(_)[W][j].disabled||(W!==i(l)||j!==i(r))&&(l.value=W,r.value=j,t("changerange",{selecting:!0,endDate:M(W,j)}))},O=B=>!i(p)&&(B==null?void 0:B.text)===1&&md(B.type)||B.isCurrent,I=B=>{u||i(p)||e.selectionMode!=="date"||N(B,!0)},L=B=>{B.target.closest("td")&&(u=!0)},z=B=>{B.target.closest("td")&&(u=!1)},q=B=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:B,maxDate:null}),t("select",!0)):(B>=e.minDate?t("pick",{minDate:e.minDate,maxDate:B}):t("pick",{minDate:B,maxDate:e.minDate}),t("select",!1))},U=B=>{const K=B.week(),W=`${B.year()}w${K}`;t("pick",{year:B.year(),week:K,value:W,date:B.startOf("week")})},F=(B,K)=>{t("pick",K?ta(e.parsedValue).filter(W=>(W==null?void 0:W.valueOf())!==B.valueOf()):ta(e.parsedValue).concat([B]))},N=(B,K=!1)=>{if(e.disabled)return;const W=B.target.closest("td");if(!W)return;const j=W.parentNode.rowIndex-1,G=W.cellIndex,ee=i(_)[j][G];if(ee.disabled||ee.type==="week")return;const te=M(j,G);switch(e.selectionMode){case"range":q(te);break;case"date":t("pick",te,K);break;case"week":U(te);break;case"dates":F(te,!!ee.selected);break}},P=B=>{if(e.selectionMode!=="week")return!1;let K=e.date.startOf("day");if(B.type==="prev-month"&&(K=K.subtract(1,"month")),B.type==="next-month"&&(K=K.add(1,"month")),K=K.date(Number.parseInt(B.text,10)),e.parsedValue&&!be(e.parsedValue)){const W=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(W,"day").isSame(K,"day")}return!1};return{WEEKS:g,rows:_,tbodyRef:a,currentCellRef:o,focus:S,isCurrent:k,isWeekActive:P,isSelectedCell:O,handlePickDate:N,handleMouseUp:z,handleMouseDown:L,handleMouseMove:A,handleFocus:I}},pY=(e,{isCurrent:t,isWeekActive:n})=>{const a=ve("date-table"),{t:o}=kt(),l=x(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=x(()=>o("el.datepicker.dateTablePrompt")),s=c=>{const d=[];return md(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(md(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:l,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:s,getRowKls:u,t:o}},hY=_e({cell:{type:J(Object)}});var zh=D({name:"ElDatePickerCell",props:hY,setup(e){const t=ve("date-table-cell"),{slots:n}=Pe(Ih);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a==null?void 0:a.renderText)??(a==null?void 0:a.text)])])])}}});const vY=["aria-label"],mY=["aria-label"],gY=["aria-current","aria-selected","tabindex","aria-disabled"];var yY=D({__name:"basic-date-table",props:cY,emits:dY,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:l,tbodyRef:r,currentCellRef:s,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:p,handleMouseMove:v,handleFocus:m}=fY(a,n),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:_,weekHeaderClass:S,t:k}=pY(a,{isCurrent:c,isWeekActive:d});let T=!1;return Lt(()=>{T=!0}),t({focus:u}),(M,A)=>(C(),$("table",{"aria-label":i(y),class:R(i(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...O)=>i(h)&&i(h)(...O)),onMousemove:A[2]||(A[2]=(...O)=>i(v)&&i(v)(...O)),onMousedown:A[3]||(A[3]=(...O)=>i(p)&&i(p)(...O)),onMouseup:A[4]||(A[4]=(...O)=>i(g)&&i(g)(...O))},[E("tbody",{ref_key:"tbodyRef",ref:r},[E("tr",null,[M.showWeekNumber?(C(),$("th",{key:0,scope:"col",class:R(i(S))},null,2)):re("v-if",!0),(C(!0),$(Ke,null,_t(i(o),(O,I)=>(C(),$("th",{key:I,"aria-label":i(k)("el.datepicker.weeksFull."+O),scope:"col"},Se(i(k)("el.datepicker.weeks."+O)),9,mY))),128))]),(C(!0),$(Ke,null,_t(i(l),(O,I)=>(C(),$("tr",{key:I,class:R(i(_)(M.showWeekNumber?O[2]:O[1]))},[(C(!0),$(Ke,null,_t(O,(L,z)=>(C(),$("td",{key:`${I}.${z}`,ref_for:!0,ref:q=>!i(T)&&i(f)(L)&&(s.value=q),class:R(i(w)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:M.disabled?void 0:i(f)(L)?0:-1,"aria-disabled":M.disabled,onFocus:A[0]||(A[0]=(...q)=>i(m)&&i(m)(...q))},[Q(i(zh),{cell:L},null,8,["cell"])],42,gY))),128))],2))),128))],512)],42,vY))}}),A2=yY;const bY=_e({...Lh,selectionMode:Bh("month")}),wY=["aria-label"],CY=["aria-selected","aria-label","tabindex","onKeydown"];var _Y=D({__name:"basic-month-table",props:bY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("month-table"),{t:r,lang:s}=kt(),u=V(),c=V(),d=V(a.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),f=V([[],[],[]]),h=V(),g=V(),p=x(()=>{var k,T,M;const _=f.value,S=st().locale(s.value).startOf("month");for(let A=0;A<3;A++){const O=_[A];for(let I=0;I<4;I++){const L=O[I]||(O[I]={row:A,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});L.type="normal";const z=A*4+I,q=a.date.startOf("year").month(z),U=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;L.inRange=!!(a.minDate&&q.isSameOrAfter(a.minDate,"month")&&U&&q.isSameOrBefore(U,"month"))||!!(a.minDate&&q.isSameOrBefore(a.minDate,"month")&&U&&q.isSameOrAfter(U,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(U)?(L.start=!!(U&&q.isSame(U,"month")),L.end=a.minDate&&q.isSame(a.minDate,"month")):(L.start=!!(a.minDate&&q.isSame(a.minDate,"month")),L.end=!!(U&&q.isSame(U,"month"))),S.isSame(q)&&(L.type="today");const F=q.toDate();L.text=z,L.disabled=((T=a.disabledDate)==null?void 0:T.call(a,F))||!1,L.date=F,L.customClass=(M=a.cellClassName)==null?void 0:M.call(a,F),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=y(L)}}return _}),v=()=>{var _;(_=c.value)==null||_.focus()},m=_=>{const S={},k=a.date.year(),T=new Date,M=_.text;return S.disabled=a.disabled||(a.disabledDate?hd(a.date,k,M,s.value).every(a.disabledDate):!1),S.current=ta(a.parsedValue).some(A=>st.isDayjs(A)&&A.year()===k&&A.month()===M),S.today=T.getFullYear()===k&&T.getMonth()===M,_.customClass&&(S[_.customClass]=!0),_.inRange&&(S["in-range"]=!0,_.start&&(S["start-date"]=!0),_.end&&(S["end-date"]=!0)),S},y=_=>{const S=a.date.year(),k=_.text;return ta(a.date).some(T=>T.year()===S&&T.month()===k)},b=_=>{var M;if(!a.rangeState.selecting)return;let S=_.target;if(S.tagName==="SPAN"&&(S=(M=S.parentNode)==null?void 0:M.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const k=S.parentNode.rowIndex,T=S.cellIndex;p.value[k][T].disabled||(k!==h.value||T!==g.value)&&(h.value=k,g.value=T,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(k*4+T)}))},w=_=>{var A;if(a.disabled)return;const S=(A=_.target)==null?void 0:A.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Ao(S,"disabled"))return;const k=S.cellIndex,T=S.parentNode.rowIndex*4+k,M=a.date.startOf("year").month(T);if(a.selectionMode==="months"){if(_.type==="keydown"){o("pick",ta(a.parsedValue),!1);return}const O=Ps(a.date,a.date.year(),T,s.value,a.disabledDate);o("pick",Ao(S,"current")?ta(a.parsedValue).filter(I=>(I==null?void 0:I.year())!==O.year()||(I==null?void 0:I.month())!==O.month()):ta(a.parsedValue).concat([st(O)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&M>=a.minDate?o("pick",{minDate:a.minDate,maxDate:M}):o("pick",{minDate:M,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:M,maxDate:null}),o("select",!0)):o("pick",T)};return fe(()=>a.date,async()=>{var _,S;(_=u.value)!=null&&_.contains(document.activeElement)&&(await Le(),(S=c.value)==null||S.focus())}),t({focus:v}),(_,S)=>(C(),$("table",{role:"grid","aria-label":i(r)("el.datepicker.monthTablePrompt"),class:R(i(l).b()),onClick:w,onMousemove:b},[E("tbody",{ref_key:"tbodyRef",ref:u},[(C(!0),$(Ke,null,_t(p.value,(k,T)=>(C(),$("tr",{key:T},[(C(!0),$(Ke,null,_t(k,(M,A)=>(C(),$("td",{key:A,ref_for:!0,ref:O=>M.isSelected&&(c.value=O),class:R(m(M)),"aria-selected":!!M.isSelected,"aria-label":i(r)(`el.datepicker.month${+M.text+1}`),tabindex:M.isSelected?0:-1,onKeydown:[nn(Je(w,["prevent","stop"]),["space"]),nn(Je(w,["prevent","stop"]),["enter"])]},[Q(i(zh),{cell:{...M,renderText:i(r)("el.datepicker.months."+d.value[M.text])}},null,8,["cell"])],42,CY))),128))]))),128))],512)],42,wY))}}),au=_Y;const SY=_e({...Lh,selectionMode:Bh("year")}),xY=["aria-label"],kY=["aria-selected","aria-label","tabindex","onKeydown"];var EY=D({__name:"basic-year-table",props:SY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(S,k)=>{const T=st(String(S)).locale(k).startOf("year");return Hl(T.endOf("year").dayOfYear()).map(M=>T.add(M,"day").toDate())},o=e,l=n,r=ve("year-table"),{t:s,lang:u}=kt(),c=V(),d=V(),f=x(()=>Math.floor(o.date.year()/10)*10),h=V([[],[],[]]),g=V(),p=V(),v=x(()=>{var T,M,A;const S=h.value,k=st().locale(u.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let L=0;L<4&&!(O*4+L>=10);L++){let z=I[L];z||(z={row:O,column:L,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),z.type="normal";const q=O*4+L+f.value,U=st().year(q),F=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;z.inRange=!!(o.minDate&&U.isSameOrAfter(o.minDate,"year")&&F&&U.isSameOrBefore(F,"year"))||!!(o.minDate&&U.isSameOrBefore(o.minDate,"year")&&F&&U.isSameOrAfter(F,"year")),(T=o.minDate)!=null&&T.isSameOrAfter(F)?(z.start=!!(F&&U.isSame(F,"year")),z.end=!!(o.minDate&&U.isSame(o.minDate,"year"))):(z.start=!!(o.minDate&&U.isSame(o.minDate,"year")),z.end=!!(F&&U.isSame(F,"year"))),k.isSame(U)&&(z.type="today"),z.text=q;const N=U.toDate();z.disabled=((M=o.disabledDate)==null?void 0:M.call(o,N))||!1,z.date=N,z.customClass=(A=o.cellClassName)==null?void 0:A.call(o,N),z.dayjs=U,z.timestamp=U.valueOf(),z.isSelected=b(z),I[L]=z}}return S}),m=()=>{var S;(S=d.value)==null||S.focus()},y=S=>{const k={},T=st().locale(u.value),M=S.text;return k.disabled=o.disabled||(o.disabledDate?a(M,u.value).every(o.disabledDate):!1),k.today=T.year()===M,k.current=ta(o.parsedValue).some(A=>A.year()===M),S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=S.text;return ta(o.date).some(T=>T.year()===k)},w=S=>{var O;if(o.disabled)return;const k=(O=S.target)==null?void 0:O.closest("td");if(!k||!k.textContent||Ao(k,"disabled"))return;const T=k.cellIndex,M=k.parentNode.rowIndex*4+T+f.value,A=st().year(M);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&A>=o.minDate?l("pick",{minDate:o.minDate,maxDate:A}):l("pick",{minDate:A,maxDate:o.minDate}),l("select",!1)):(l("pick",{minDate:A,maxDate:null}),l("select",!0));else if(o.selectionMode==="years"){if(S.type==="keydown"){l("pick",ta(o.parsedValue),!1);return}const I=vd(A.startOf("year"),u.value,o.disabledDate);l("pick",Ao(k,"current")?ta(o.parsedValue).filter(L=>(L==null?void 0:L.year())!==M):ta(o.parsedValue).concat([I]))}else l("pick",M)},_=S=>{var A;if(!o.rangeState.selecting)return;const k=(A=S.target)==null?void 0:A.closest("td");if(!k)return;const T=k.parentNode.rowIndex,M=k.cellIndex;v.value[T][M].disabled||(T!==g.value||M!==p.value)&&(g.value=T,p.value=M,l("changerange",{selecting:!0,endDate:st().year(f.value).add(T*4+M,"year")}))};return fe(()=>o.date,async()=>{var S,k;(S=c.value)!=null&&S.contains(document.activeElement)&&(await Le(),(k=d.value)==null||k.focus())}),t({focus:m}),(S,k)=>(C(),$("table",{role:"grid","aria-label":i(s)("el.datepicker.yearTablePrompt"),class:R(i(r).b()),onClick:w,onMousemove:_},[E("tbody",{ref_key:"tbodyRef",ref:c},[(C(!0),$(Ke,null,_t(v.value,(T,M)=>(C(),$("tr",{key:M},[(C(!0),$(Ke,null,_t(T,(A,O)=>(C(),$("td",{key:`${M}_${O}`,ref_for:!0,ref:I=>A.isSelected&&(d.value=I),class:R(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[nn(Je(w,["prevent","stop"]),["space"]),nn(Je(w,["prevent","stop"]),["enter"])]},[Q(i(zh),{cell:A},null,8,["cell"])],42,kY))),128))]))),128))],512)],42,xY))}}),ou=EY;const TY=["disabled","onClick"],MY=["aria-label","disabled"],OY=["aria-label","disabled"],$Y=["tabindex","aria-disabled"],AY=["tabindex","aria-disabled"],RY=["aria-label","disabled"],NY=["aria-label","disabled"];var PY=D({__name:"panel-date-pick",props:iY,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(he,Ve,pe)=>!0,a=e,o=t,l=ve("picker-panel"),r=ve("date-picker"),s=gl(),u=hn(),{t:c,lang:d}=kt(),f=Pe(oo),h=Pe(Du,void 0),{shortcuts:g,disabledDate:p,cellClassName:v,defaultTime:m}=f.props,y=Bt(f.props,"defaultValue"),b=V(),w=V(st().locale(d.value)),_=V(!1);let S=!1;const k=x(()=>st(m).locale(d.value)),T=x(()=>w.value.month()),M=x(()=>w.value.year()),A=V([]),O=V(null),I=V(null),L=he=>A.value.length>0?n(he,A.value,a.format||Ir):!0,z=he=>m&&!Ae.value&&!_.value&&!S?k.value.year(he.year()).month(he.month()).date(he.date()):se.value?he.millisecond(0):he.startOf("day"),q=(he,...Ve)=>{he?be(he)?o("pick",he.map(z),...Ve):o("pick",z(he),...Ve):o("pick",he,...Ve),O.value=null,I.value=null,_.value=!1,S=!1},U=async(he,Ve)=>{if(W.value==="date"&&st.isDayjs(he)){const pe=ui(a.parsedValue);let Te=pe?pe.year(he.year()).month(he.month()).date(he.date()):he;L(Te),w.value=Te,q(Te,se.value||Ve)}else W.value==="week"?q(he.date):W.value==="dates"&&q(he,!0)},F=he=>{const Ve=he?"add":"subtract";w.value=w.value[Ve](1,"month"),yt("month")},N=he=>{const Ve=w.value,pe=he?"add":"subtract";w.value=P.value==="year"?Ve[pe](10,"year"):Ve[pe](1,"year"),yt("year")},P=V("date"),B=x(()=>{const he=c("el.datepicker.year");if(P.value==="year"){const Ve=Math.floor(M.value/10)*10;return he?`${Ve} ${he} - ${Ve+9} ${he}`:`${Ve} - ${Ve+9}`}return`${M.value} ${he}`}),K=he=>{const Ve=Fe(he.value)?he.value():he.value;if(Ve){S=!0,q(st(Ve).locale(d.value));return}he.onClick&&he.onClick({attrs:s,slots:u,emit:o})},W=x(()=>{const{type:he}=a;return["week","month","months","year","years","dates"].includes(he)?he:"date"}),j=x(()=>W.value==="dates"||W.value==="months"||W.value==="years"),G=x(()=>W.value==="date"?P.value:W.value),ee=x(()=>!!g.length),te=async(he,Ve)=>{W.value==="month"?(w.value=Ps(w.value,w.value.year(),he,d.value,p),q(w.value,!1)):W.value==="months"?q(he,Ve??!0):(w.value=Ps(w.value,w.value.year(),he,d.value,p),P.value="date",["month","year","date","week"].includes(W.value)&&(q(w.value,!0),await Le(),Ge())),yt("month")},ue=async(he,Ve)=>{W.value==="year"?(w.value=vd(w.value.startOf("year").year(he),d.value,p),q(w.value,!1)):W.value==="years"?q(he,Ve??!0):(w.value=vd(w.value.year(he),d.value,p),P.value="month",["month","year","date","week"].includes(W.value)&&(q(w.value,!0),await Le(),Ge())),yt("year")},ne=rn(),de=async he=>{ne.value||(P.value=he,await Le(),Ge())},se=x(()=>a.type==="datetime"||a.type==="datetimerange"),Y=x(()=>{const he=se.value||W.value==="dates",Ve=W.value==="years",pe=W.value==="months",Te=P.value==="date",ct=P.value==="year",Pt=P.value==="month";return he&&Te||Ve&&ct||pe&&Pt}),X=x(()=>!j.value&&a.showNow||a.showConfirm),H=x(()=>p?a.parsedValue?be(a.parsedValue)?p(a.parsedValue[0].toDate()):p(a.parsedValue.toDate()):!0:!1),Z=()=>{if(j.value)q(a.parsedValue);else{let he=ui(a.parsedValue);if(!he){const Ve=st(m).locale(d.value),pe=Me();he=Ve.year(pe.year()).month(pe.month()).date(pe.date())}w.value=he,q(he)}},le=x(()=>p?p(st().locale(d.value).toDate()):!1),ce=()=>{const he=st().locale(d.value).toDate();_.value=!0,(!p||!p(he))&&L(he)&&(w.value=st().locale(d.value),q(w.value))},ge=x(()=>a.timeFormat||ib(a.format)||Ir),me=x(()=>a.dateFormat||sb(a.format)||Qo),Ae=x(()=>{if(I.value)return I.value;if(!(!a.parsedValue&&!y.value))return(ui(a.parsedValue)||w.value).format(ge.value)}),Ne=x(()=>{if(O.value)return O.value;if(!(!a.parsedValue&&!y.value))return(ui(a.parsedValue)||w.value).format(me.value)}),Re=V(!1),ye=()=>{Re.value=!0},Ee=()=>{Re.value=!1},we=he=>({hour:he.hour(),minute:he.minute(),second:he.second(),year:he.year(),month:he.month(),date:he.date()}),Ie=(he,Ve,pe)=>{const{hour:Te,minute:ct,second:Pt}=we(he),Gt=ui(a.parsedValue);w.value=Gt?Gt.hour(Te).minute(ct).second(Pt):he,q(w.value,!0),pe||(Re.value=Ve)},ze=he=>{const Ve=st(he,ge.value).locale(d.value);if(Ve.isValid()&&L(Ve)){const{year:pe,month:Te,date:ct}=we(w.value);w.value=Ve.year(pe).month(Te).date(ct),I.value=null,Re.value=!1,q(w.value,!0)}},et=he=>{const Ve=Is(he,me.value,d.value,h);if(Ve.isValid()){if(p&&p(Ve.toDate()))return;const{hour:pe,minute:Te,second:ct}=we(w.value);w.value=Ve.hour(pe).minute(Te).second(ct),O.value=null,q(w.value,!0)}},nt=he=>st.isDayjs(he)&&he.isValid()&&(p?!p(he.toDate()):!0),at=he=>Is(he,a.format,d.value,h),Me=()=>{const he=st(y.value).locale(d.value);if(!y.value){const Ve=k.value;return st().hour(Ve.hour()).minute(Ve.minute()).second(Ve.second()).locale(d.value)}return he},Ge=()=>{var he;["week","month","year","date"].includes(W.value)&&((he=b.value)==null||he.focus())},ut=()=>{Ge(),W.value==="week"&&tt(Ce.down)},je=he=>{const Ve=Kt(he);[Ce.up,Ce.down,Ce.left,Ce.right,Ce.home,Ce.end,Ce.pageUp,Ce.pageDown].includes(Ve)&&(tt(Ve),he.stopPropagation(),he.preventDefault()),[Ce.enter,Ce.space,Ce.numpadEnter].includes(Ve)&&O.value===null&&I.value===null&&(he.preventDefault(),q(w.value,!1))},tt=he=>{const{up:Ve,down:pe,left:Te,right:ct,home:Pt,end:Gt,pageUp:Oe,pageDown:We}=Ce,Ze={year:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setFullYear(zt.getFullYear()+Xt)},month:{[Ve]:-4,[pe]:4,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setMonth(zt.getMonth()+Xt)},week:{[Ve]:-1,[pe]:1,[Te]:-1,[ct]:1,offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt*7)},date:{[Ve]:-7,[pe]:7,[Te]:-1,[ct]:1,[Pt]:zt=>-zt.getDay(),[Gt]:zt=>-zt.getDay()+6,[Oe]:zt=>-new Date(zt.getFullYear(),zt.getMonth(),0).getDate(),[We]:zt=>new Date(zt.getFullYear(),zt.getMonth()+1,0).getDate(),offset:(zt,Xt)=>zt.setDate(zt.getDate()+Xt)}},cn=w.value.toDate();for(;Math.abs(w.value.diff(cn,"year",!0))<1;){const zt=Ze[G.value];if(!zt)return;if(zt.offset(cn,Fe(zt[he])?zt[he](cn):zt[he]??0),p&&p(cn))break;const Xt=st(cn).locale(d.value);w.value=Xt,o("pick",Xt,!0);break}},yt=he=>{o("panel-change",w.value.toDate(),he,P.value)};return fe(()=>W.value,he=>{if(["month","year"].includes(he)){P.value=he;return}else if(he==="years"){P.value="year";return}else if(he==="months"){P.value="month";return}P.value="date"},{immediate:!0}),fe(()=>y.value,he=>{he&&(w.value=Me())},{immediate:!0}),fe(()=>a.parsedValue,he=>{if(he){if(j.value||be(he))return;w.value=he}else w.value=Me()},{immediate:!0}),o("set-picker-option",["isValidValue",nt]),o("set-picker-option",["parseUserInput",at]),o("set-picker-option",["handleFocusPicker",ut]),(he,Ve)=>(C(),$("div",{class:R([i(l).b(),i(r).b(),i(l).is("border",he.border),i(l).is("disabled",i(ne)),{"has-sidebar":he.$slots.sidebar||ee.value,"has-time":se.value}])},[E("div",{class:R(i(l).e("body-wrapper"))},[oe(he.$slots,"sidebar",{class:R(i(l).e("sidebar"))}),ee.value?(C(),$("div",{key:0,class:R(i(l).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(g),(pe,Te)=>(C(),$("button",{key:Te,type:"button",disabled:i(ne),class:R(i(l).e("shortcut")),onClick:ct=>K(pe)},Se(pe.text),11,TY))),128))],2)):re("v-if",!0),E("div",{class:R(i(l).e("body"))},[se.value?(C(),$("div",{key:0,class:R(i(r).e("time-header"))},[E("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Ne.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onInput:Ve[0]||(Ve[0]=pe=>O.value=pe),onChange:et},null,8,["placeholder","model-value","disabled","readonly"])],2),ft((C(),$("span",{class:R(i(r).e("editor-wrap"))},[Q(i(Dn),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":Ae.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onFocus:ye,onInput:Ve[1]||(Ve[1]=pe=>I.value=pe),onChange:ze},null,8,["placeholder","model-value","disabled","readonly"]),Q(i(cd),{visible:Re.value,format:ge.value,"parsed-value":w.value,onPick:Ie},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ee]])],2)):re("v-if",!0),ft(E("div",{class:R([i(r).e("header"),(P.value==="year"||P.value==="month")&&i(r).em("header","bordered")])},[E("span",{class:R(i(r).e("prev-btn"))},[E("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(l).e("icon-btn")]),disabled:i(ne),onClick:Ve[2]||(Ve[2]=pe=>N(!1))},[oe(he.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,MY),ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(l).e("icon-btn"),"arrow-left"]),disabled:i(ne),onClick:Ve[3]||(Ve[3]=pe=>F(!1))},[oe(he.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,OY),[[$t,P.value==="date"]])],2),E("span",{role:"button",class:R(i(r).e("header-label")),"aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,onKeydown:Ve[4]||(Ve[4]=nn(pe=>de("year"),["enter"])),onClick:Ve[5]||(Ve[5]=pe=>de("year"))},Se(B.value),43,$Y),ft(E("span",{role:"button","aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,class:R([i(r).e("header-label"),{active:P.value==="month"}]),onKeydown:Ve[6]||(Ve[6]=nn(pe=>de("month"),["enter"])),onClick:Ve[7]||(Ve[7]=pe=>de("month"))},Se(i(c)(`el.datepicker.month${T.value+1}`)),43,AY),[[$t,P.value==="date"]]),E("span",{class:R(i(r).e("next-btn"))},[ft(E("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(l).e("icon-btn"),"arrow-right"]),disabled:i(ne),onClick:Ve[8]||(Ve[8]=pe=>F(!0))},[oe(he.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,RY),[[$t,P.value==="date"]]),E("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(l).e("icon-btn"),"d-arrow-right"]),disabled:i(ne),onClick:Ve[9]||(Ve[9]=pe=>N(!0))},[oe(he.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,NY)],2)],2),[[$t,P.value!=="time"]]),E("div",{class:R(i(l).e("content")),onKeydown:je},[P.value==="date"?(C(),ie(A2,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),"show-week-number":he.showWeekNumber,onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(C(),ie(ou,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"disabled-date":i(p),disabled:i(ne),"parsed-value":he.parsedValue,"cell-class-name":i(v),onPick:ue},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(C(),ie(au,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":W.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),onPick:te},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),he.showFooter&&Y.value&&X.value?(C(),$("div",{key:0,class:R(i(l).e("footer"))},[ft(Q(i(An),{text:"",size:"small",class:R(i(l).e("link-btn")),disabled:le.value,onClick:ce},{default:ae(()=>[St(Se(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[$t,!j.value&&he.showNow]]),he.showConfirm?(C(),ie(i(An),{key:0,plain:"",size:"small",class:R(i(l).e("link-btn")),disabled:H.value,onClick:Z},{default:ae(()=>[St(Se(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),IY=PY;const LY=_e({...nw,...Vh}),VY=e=>{const{emit:t}=vt(),n=gl(),a=hn();return l=>{const r=Fe(l.value)?l.value():l.value;if(r){t("pick",[st(r[0]).locale(e.value),st(r[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:a,emit:t})}},Dh=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:l,unit:r,sortDates:s})=>{const{emit:u}=vt(),{pickerNs:c}=Pe(Ih),d=ve("date-range-picker"),{t:f,lang:h}=kt(),g=VY(h),p=V(),v=V(),m=V({endDate:null,selecting:!1}),y=k=>{m.value=k},b=(k=!1)=>{const T=i(p),M=i(v);nu([T,M])&&u("pick",[T,M],k)},w=k=>{m.value.selecting=k,k||(m.value.endDate=null)},_=k=>{if(be(k)&&k.length===2){const[T,M]=k;p.value=T,a.value=T,v.value=M,s(i(p),i(v))}else S()},S=()=>{let[k,T]=yf(i(t),{lang:i(h),step:l,unit:r,unlinkPanels:e.unlinkPanels});const M=O=>O.diff(O.startOf("d"),"ms"),A=i(n);if(A){let O=0,I=0;if(be(A)){const[L,z]=A.map(st);O=M(L),I=M(z)}else{const L=M(st(A));O=L,I=L}k=k.startOf("d").add(O,"ms"),T=T.startOf("d").add(I,"ms")}p.value=void 0,v.value=void 0,a.value=k,o.value=T};return fe(t,k=>{k&&S()},{immediate:!0}),fe(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!an(k,[p.value,v.value]))&&_(k)},{immediate:!0}),fe(()=>e.visible,()=>{e.visible&&_(e.parsedValue)},{immediate:!0}),{minDate:p,maxDate:v,rangeState:m,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:b,handleShortcutClick:g,onSelect:w,parseValue:_,t:f}},BY=(e,t,n,a)=>{const o=V("date"),l=V(),r=V("date"),s=V(),{disabledDate:u}=Pe(oo).props,{t:c,lang:d}=kt(),f=x(()=>n.value.year()),h=x(()=>n.value.month()),g=x(()=>a.value.year()),p=x(()=>a.value.month());function v(S,k){const T=c("el.datepicker.year");if(S.value==="year"){const M=Math.floor(k.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${k.value} ${T}`}function m(S){S==null||S.focus()}async function y(S,k){if(e.disabled)return;const T=S==="left"?o:r,M=S==="left"?l:s;T.value=k,await Le(),m(M.value)}async function b(S,k,T){if(e.disabled)return;const M=k==="left",A=M?n:a,O=M?a:n,I=M?o:r,L=M?l:s;S==="year"&&(A.value=vd(A.value.year(T),d.value,u)),S==="month"&&(A.value=Ps(A.value,A.value.year(),T,d.value,u)),e.unlinkPanels||(O.value=k==="left"?A.value.add(1,"month"):A.value.subtract(1,"month")),I.value=S==="year"?"month":"date",await Le(),m(L.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),a.value.toDate()],S)}function _(S,k,T){const M=T?"add":"subtract";return S==="year"?k[M](10,"year"):k[M](1,"year")}return{leftCurrentView:o,rightCurrentView:r,leftCurrentViewRef:l,rightCurrentViewRef:s,leftYear:f,rightYear:g,leftMonth:h,rightMonth:p,leftYearLabel:x(()=>v(o,f)),rightYearLabel:x(()=>v(r,g)),showLeftPicker:S=>y("left",S),showRightPicker:S=>y("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:_}},zY=["disabled","onClick"],DY=["aria-label","disabled"],HY=["aria-label","disabled"],FY=["disabled","aria-label"],KY=["disabled","aria-label"],WY=["tabindex","aria-disabled"],jY=["tabindex","aria-disabled"],qY=["disabled","aria-label"],UY=["disabled","aria-label"],YY=["aria-label","disabled"],GY=["disabled","aria-label"],XY=["tabindex","aria-disabled"],JY=["tabindex","aria-disabled"],pc="month";var ZY=D({__name:"panel-date-range",props:LY,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=Pe(oo),l=Pe(Du,void 0),{disabledDate:r,cellClassName:s,defaultTime:u,clearable:c}=o.props,d=Bt(o.props,"format"),f=Bt(o.props,"shortcuts"),h=Bt(o.props,"defaultValue"),{lang:g}=kt(),p=V(st().locale(g.value)),v=V(st().locale(g.value).add(1,pc)),{minDate:m,maxDate:y,rangeState:b,ppNs:w,drpNs:_,handleChangeRange:S,handleRangeConfirm:k,handleShortcutClick:T,onSelect:M,parseValue:A,t:O}=Dh(n,{defaultValue:h,defaultTime:u,leftDate:p,rightDate:v,unit:pc,sortDates:Xt});fe(()=>n.visible,Ue=>{!Ue&&b.value.selecting&&(A(n.parsedValue),M(!1))});const I=V({min:null,max:null}),L=V({min:null,max:null}),{leftCurrentView:z,rightCurrentView:q,leftCurrentViewRef:U,rightCurrentViewRef:F,leftYear:N,rightYear:P,leftMonth:B,rightMonth:K,leftYearLabel:W,rightYearLabel:j,showLeftPicker:G,showRightPicker:ee,handleLeftYearPick:te,handleRightYearPick:ue,handleLeftMonthPick:ne,handleRightMonthPick:de,handlePanelChange:se,adjustDateByView:Y}=BY(n,a,p,v),X=x(()=>!!f.value.length),H=x(()=>I.value.min!==null?I.value.min:m.value?m.value.format(me.value):""),Z=x(()=>I.value.max!==null?I.value.max:y.value||m.value?(y.value||m.value).format(me.value):""),le=x(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ge.value):""),ce=x(()=>L.value.max!==null?L.value.max:y.value||m.value?(y.value||m.value).format(ge.value):""),ge=x(()=>n.timeFormat||ib(d.value||"")||Ir),me=x(()=>n.dateFormat||sb(d.value||"")||Qo),Ae=Ue=>nu(Ue)&&(r?!r(Ue[0].toDate())&&!r(Ue[1].toDate()):!0),Ne=()=>{p.value=Y(z.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("year")},Re=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("month")},ye=()=>{n.unlinkPanels?v.value=Y(q.value,v.value,!0):(p.value=Y(q.value,p.value,!0),v.value=p.value.add(1,"month")),se("year")},Ee=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),se("month")},we=()=>{p.value=Y(z.value,p.value,!0),se("year")},Ie=()=>{p.value=p.value.add(1,"month"),se("month")},ze=()=>{v.value=Y(q.value,v.value,!1),se("year")},et=()=>{v.value=v.value.subtract(1,"month"),se("month")},nt=x(()=>{const Ue=(B.value+1)%12,Xe=B.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+Xe,Ue)n.unlinkPanels&&P.value*12+K.value-(N.value*12+B.value+1)>=12),Me=rn(),Ge=x(()=>!(m.value&&y.value&&!b.value.selecting&&nu([m.value,y.value])&&!Me.value)),ut=x(()=>n.type==="datetime"||n.type==="datetimerange"),je=(Ue,Xe)=>{if(Ue)return u?st(u[Xe]||u).locale(g.value).year(Ue.year()).month(Ue.month()).date(Ue.date()):Ue},tt=(Ue,Xe=!0)=>{const mt=Ue.minDate,Mn=Ue.maxDate,go=je(mt,0),ja=je(Mn,1);y.value===ja&&m.value===go||(a("calendar-change",[mt.toDate(),Mn&&Mn.toDate()]),y.value=ja,m.value=go,!ut.value&&Xe&&(Xe=!go||!ja),k(Xe))},yt=V(!1),he=V(!1),Ve=()=>{yt.value=!1},pe=()=>{he.value=!1},Te=(Ue,Xe)=>{I.value[Xe]=Ue;const mt=st(Ue,me.value).locale(g.value);if(mt.isValid()){if(r&&r(mt.toDate()))return;Xe==="min"?(p.value=mt,m.value=(m.value||p.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(m.value))&&(v.value=mt.add(1,"month"),y.value=m.value.add(1,"month"))):(v.value=mt,y.value=(y.value||v.value).year(mt.year()).month(mt.month()).date(mt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(y.value))&&(p.value=mt.subtract(1,"month"),m.value=y.value.subtract(1,"month"))),Xt(m.value,y.value),k(!0)}},ct=(Ue,Xe)=>{I.value[Xe]=null},Pt=(Ue,Xe)=>{L.value[Xe]=Ue;const mt=st(Ue,ge.value).locale(g.value);mt.isValid()&&(Xe==="min"?(yt.value=!0,m.value=(m.value||p.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),p.value=m.value):(he.value=!0,y.value=(y.value||v.value).hour(mt.hour()).minute(mt.minute()).second(mt.second()),v.value=y.value))},Gt=(Ue,Xe)=>{L.value[Xe]=null,Xe==="min"?(p.value=m.value,yt.value=!1,(!y.value||y.value.isBefore(m.value))&&(y.value=m.value)):(v.value=y.value,he.value=!1,y.value&&y.value.isBefore(m.value)&&(m.value=y.value)),k(!0)},Oe=(Ue,Xe,mt)=>{L.value.min||(Ue&&(m.value=(m.value||p.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(yt.value=Xe),(!y.value||y.value.isBefore(m.value))&&(y.value=m.value,v.value=Ue,Le(()=>{A(n.parsedValue)})),k(!0))},We=(Ue,Xe,mt)=>{L.value.max||(Ue&&(y.value=(y.value||v.value).hour(Ue.hour()).minute(Ue.minute()).second(Ue.second())),mt||(he.value=Xe),y.value&&y.value.isBefore(m.value)&&(m.value=y.value),k(!0))},Ze=()=>{cn(),a("clear")},cn=()=>{let Ue=null;o!=null&&o.emptyValues&&(Ue=o.emptyValues.valueOnClear.value),p.value=yf(i(h),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,m.value=void 0,k(!0),a("pick",Ue)},zt=Ue=>Is(Ue,d.value||"",g.value,l);function Xt(Ue,Xe){if(n.unlinkPanels&&Xe){const mt=(Ue==null?void 0:Ue.year())||0,Mn=(Ue==null?void 0:Ue.month())||0,go=Xe.year(),ja=Xe.month();v.value=mt===go&&Mn===ja?Xe.add(1,pc):Xe}else v.value=p.value.add(1,pc),Xe&&(v.value=v.value.hour(Xe.hour()).minute(Xe.minute()).second(Xe.second()))}return a("set-picker-option",["isValidValue",Ae]),a("set-picker-option",["parseUserInput",zt]),a("set-picker-option",["handleClear",cn]),(Ue,Xe)=>(C(),$("div",{class:R([i(w).b(),i(_).b(),i(w).is("border",Ue.border),i(w).is("disabled",i(Me)),{"has-sidebar":Ue.$slots.sidebar||X.value,"has-time":ut.value}])},[E("div",{class:R(i(w).e("body-wrapper"))},[oe(Ue.$slots,"sidebar",{class:R(i(w).e("sidebar"))}),X.value?(C(),$("div",{key:0,class:R(i(w).e("sidebar"))},[(C(!0),$(Ke,null,_t(f.value,(mt,Mn)=>(C(),$("button",{key:Mn,type:"button",disabled:i(Me),class:R(i(w).e("shortcut")),onClick:go=>i(T)(mt)},Se(mt.text),11,zY))),128))],2)):re("v-if",!0),E("div",{class:R(i(w).e("body"))},[ut.value?(C(),$("div",{key:0,class:R(i(_).e("time-header"))},[E("span",{class:R(i(_).e("editors-wrap"))},[E("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startDate"),class:R(i(_).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!Ue.editable,onInput:Xe[0]||(Xe[0]=mt=>Te(mt,"min")),onChange:Xe[1]||(Xe[1]=mt=>ct(mt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),ft((C(),$("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.startTime"),"model-value":le.value,"validate-event":!1,readonly:!Ue.editable,onFocus:Xe[2]||(Xe[2]=mt=>yt.value=!0),onInput:Xe[3]||(Xe[3]=mt=>Pt(mt,"min")),onChange:Xe[4]||(Xe[4]=mt=>Gt(mt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(cd),{visible:yt.value,format:ge.value,"datetime-role":"start","parsed-value":i(m)||p.value,onPick:Oe},null,8,["visible","format","parsed-value"])],2)),[[i(jl),Ve]])],2),E("span",null,[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),E("span",{class:R([i(_).e("editors-wrap"),"is-right"])},[E("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endDate"),"model-value":Z.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onInput:Xe[5]||(Xe[5]=mt=>Te(mt,"max")),onChange:Xe[6]||(Xe[6]=mt=>ct(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ft((C(),$("span",{class:R(i(_).e("time-picker-wrap"))},[Q(i(Dn),{size:"small",class:R(i(_).e("editor")),disabled:i(b).selecting||i(Me),placeholder:i(O)("el.datepicker.endTime"),"model-value":ce.value,readonly:!i(m)||!Ue.editable,"validate-event":!1,onFocus:Xe[7]||(Xe[7]=mt=>i(m)&&(he.value=!0)),onInput:Xe[8]||(Xe[8]=mt=>Pt(mt,"max")),onChange:Xe[9]||(Xe[9]=mt=>Gt(mt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(cd),{"datetime-role":"end",visible:he.value,format:ge.value,"parsed-value":i(y)||v.value,onPick:We},null,8,["visible","format","parsed-value"])],2)),[[i(jl),pe]])],2)],2)):re("v-if",!0),E("div",{class:R([[i(w).e("content"),i(_).e("content")],"is-left"])},[E("div",{class:R(i(_).e("header"))},[E("button",{type:"button",class:R([i(w).e("icon-btn"),"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),disabled:i(Me),onClick:Ne},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,DY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),disabled:i(Me),onClick:Re},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,HY),[[$t,i(z)==="date"]]),Ue.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-right"]),"aria-label":i(O)("el.datepicker.nextYear"),onClick:we},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,FY)):re("v-if",!0),Ue.unlinkPanels&&i(z)==="date"?(C(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-right"]),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ie},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,KY)):re("v-if",!0),E("div",null,[E("span",{role:"button",class:R(i(_).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[10]||(Xe[10]=nn(mt=>i(G)("year"),["enter"])),onClick:Xe[11]||(Xe[11]=mt=>i(G)("year"))},Se(i(W)),43,WY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(_).e("header-label"),{active:i(z)==="month"}]),onKeydown:Xe[12]||(Xe[12]=nn(mt=>i(G)("month"),["enter"])),onClick:Xe[13]||(Xe[13]=mt=>i(G)("month"))},Se(i(O)(`el.datepicker.month${p.value.month()+1}`)),43,jY),[[$t,i(z)==="date"]])])],2),i(z)==="date"?(C(),ie(A2,{key:0,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"range",date:p.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(z)==="year"?(C(),ie(ou,{key:1,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"year",date:p.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(z)==="month"?(C(),ie(au,{key:2,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"month",date:p.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),E("div",{class:R([[i(w).e("content"),i(_).e("content")],"is-right"])},[E("div",{class:R(i(_).e("header"))},[Ue.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!at.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!at.value||i(Me))],"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),onClick:ze},[oe(Ue.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,qY)):re("v-if",!0),Ue.unlinkPanels&&i(q)==="date"?(C(),$("button",{key:1,type:"button",disabled:!nt.value||i(Me),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Me))],"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),onClick:et},[oe(Ue.$slots,"prev-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})])],10,UY)):re("v-if",!0),E("button",{type:"button","aria-label":i(O)("el.datepicker.nextYear"),class:R([i(w).e("icon-btn"),"d-arrow-right"]),disabled:i(Me),onClick:ye},[oe(Ue.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,YY),ft(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-right"]),disabled:i(Me),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Ee},[oe(Ue.$slots,"next-month",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})])],10,GY),[[$t,i(q)==="date"]]),E("div",null,[E("span",{role:"button",class:R(i(_).e("header-label")),"aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,onKeydown:Xe[14]||(Xe[14]=nn(mt=>i(ee)("year"),["enter"])),onClick:Xe[15]||(Xe[15]=mt=>i(ee)("year"))},Se(i(j)),43,XY),ft(E("span",{role:"button","aria-live":"polite",tabindex:Ue.disabled?void 0:0,"aria-disabled":Ue.disabled,class:R([i(_).e("header-label"),{active:i(q)==="month"}]),onKeydown:Xe[16]||(Xe[16]=nn(mt=>i(ee)("month"),["enter"])),onClick:Xe[17]||(Xe[17]=mt=>i(ee)("month"))},Se(i(O)(`el.datepicker.month${v.value.month()+1}`)),43,JY),[[$t,i(q)==="date"]])])],2),i(q)==="date"?(C(),ie(A2,{key:0,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":Ue.showWeekNumber,disabled:i(Me),onChangerange:i(S),onPick:tt,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(q)==="year"?(C(),ie(ou,{key:1,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"year",date:v.value,"disabled-date":i(r),"parsed-value":Ue.parsedValue,disabled:i(Me),onPick:i(ue)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(q)==="month"?(C(),ie(au,{key:2,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"month",date:v.value,"parsed-value":Ue.parsedValue,"disabled-date":i(r),disabled:i(Me),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2)],2)],2),Ue.showFooter&&ut.value&&(Ue.showConfirm||i(c))?(C(),$("div",{key:0,class:R(i(w).e("footer"))},[i(c)?(C(),ie(i(An),{key:0,text:"",size:"small",class:R(i(w).e("link-btn")),onClick:Ze},{default:ae(()=>[St(Se(i(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Ue.showConfirm?(C(),ie(i(An),{key:1,plain:"",size:"small",class:R(i(w).e("link-btn")),disabled:Ge.value,onClick:Xe[18]||(Xe[18]=mt=>i(k)(!1))},{default:ae(()=>[St(Se(i(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),QY=ZY;const eG=_e({...Vh}),tG=["pick","set-picker-option","calendar-change"],nG=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=kt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:x(()=>t.value.year()),rightYear:x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},aG=["disabled","onClick"],oG=["disabled"],lG=["disabled"],rG=["disabled"],sG=["disabled"],hc="year";var iG=D({name:"DatePickerMonthRange",__name:"panel-month-range",props:eG,emits:tG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=Pe(oo),r=Pe(Du,void 0),{shortcuts:s,disabledDate:u,cellClassName:c}=l.props,d=Bt(l.props,"format"),f=Bt(l.props,"defaultValue"),h=V(st().locale(o.value)),g=V(st().locale(o.value).add(1,hc)),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:S,onSelect:k,parseValue:T}=Dh(n,{defaultValue:f,leftDate:h,rightDate:g,unit:hc,sortDates:W}),M=x(()=>!!s.length),{leftPrevYear:A,rightNextYear:O,leftNextYear:I,rightPrevYear:L,leftLabel:z,rightLabel:q,leftYear:U,rightYear:F}=nG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:h,rightDate:g}),N=x(()=>n.unlinkPanels&&F.value>U.value+1),P=(G,ee=!0)=>{const te=G.minDate,ue=G.maxDate;v.value===ue&&p.value===te||(a("calendar-change",[te.toDate(),ue&&ue.toDate()]),v.value=ue,p.value=te,ee&&_())},B=()=>{let G=null;l!=null&&l.emptyValues&&(G=l.emptyValues.valueOnClear.value),h.value=yf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"year"),a("pick",G)},K=G=>Is(G,d.value,o.value,r);function W(G,ee){n.unlinkPanels&&ee?g.value=((G==null?void 0:G.year())||0)===ee.year()?ee.add(1,hc):ee:g.value=h.value.add(1,hc)}const j=rn();return fe(()=>n.visible,G=>{!G&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",nu]),a("set-picker-option",["parseUserInput",K]),a("set-picker-option",["handleClear",B]),(G,ee)=>(C(),$("div",{class:R([i(y).b(),i(b).b(),i(y).is("border",G.border),i(y).is("disabled",i(j)),{"has-sidebar":!!G.$slots.sidebar||M.value}])},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(G.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),M.value?(C(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(s),(te,ue)=>(C(),$("button",{key:ue,type:"button",class:R(i(y).e("shortcut")),disabled:i(j),onClick:ne=>i(S)(te)},Se(te.text),11,aG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-left"])},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),disabled:i(j),onClick:ee[0]||(ee[0]=(...te)=>i(A)&&i(A)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,oG),G.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...te)=>i(I)&&i(I)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,lG)):re("v-if",!0),E("div",null,Se(i(z)),1)],2),Q(au,{"selection-mode":"range",date:h.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-right"])},[E("div",{class:R(i(b).e("header"))},[G.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...te)=>i(L)&&i(L)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,rG)):re("v-if",!0),E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(j),onClick:ee[3]||(ee[3]=(...te)=>i(O)&&i(O)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,sG),E("div",null,Se(i(q)),1)],2),Q(au,{"selection-mode":"range",date:g.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),uG=iG;const cG=_e({...Vh}),dG=["pick","set-picker-option","calendar-change"],fG=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:x(()=>{const s=Math.floor(t.value.year()/10)*10;return`${s}-${s+9}`}),rightLabel:x(()=>{const s=Math.floor(n.value.year()/10)*10;return`${s}-${s+9}`}),leftYear:x(()=>Math.floor(t.value.year()/10)*10+9),rightYear:x(()=>Math.floor(n.value.year()/10)*10)}),pG=["disabled","onClick"],hG=["disabled"],vG=["disabled"],mG=["disabled"],gG=["disabled"],Zr=10,ci="year";var yG=D({name:"DatePickerYearRange",__name:"panel-year-range",props:cG,emits:dG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=kt(),l=V(st().locale(o.value)),r=V(st().locale(o.value).add(Zr,ci)),s=Pe(Du,void 0),u=Pe(oo),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,h=Bt(u.props,"format"),g=Bt(u.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:_,handleShortcutClick:S,onSelect:k,parseValue:T}=Dh(n,{defaultValue:g,leftDate:l,rightDate:r,step:Zr,unit:ci,sortDates:ue}),{leftPrevYear:M,rightNextYear:A,leftNextYear:O,rightPrevYear:I,leftLabel:L,rightLabel:z,leftYear:q,rightYear:U}=fG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:l,rightDate:r}),F=rn(),N=x(()=>!!c.length),P=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",F.value),{"has-sidebar":!!hn().sidebar||N.value}]),B=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),y.is("disabled",!W.value||F.value),"d-arrow-right"]})),K=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),y.is("disabled",!W.value||F.value),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),W=x(()=>n.unlinkPanels&&U.value>q.value+1),j=(ne,de=!0)=>{const se=ne.minDate,Y=ne.maxDate;v.value===Y&&p.value===se||(a("calendar-change",[se.toDate(),Y&&Y.toDate()]),v.value=Y,p.value=se,de&&_())},G=ne=>Is(ne,h.value,o.value,s),ee=ne=>nu(ne)&&(d?!d(ne[0].toDate())&&!d(ne[1].toDate()):!0),te=()=>{let ne=null;u!=null&&u.emptyValues&&(ne=u.emptyValues.valueOnClear.value);const de=yf(i(g),{lang:i(o),step:Zr,unit:ci,unlinkPanels:n.unlinkPanels});l.value=de[0],r.value=de[1],a("pick",ne)};function ue(ne,de){if(n.unlinkPanels&&de){const se=(ne==null?void 0:ne.year())||0,Y=de.year();r.value=se+Zr>Y?de.add(Zr,ci):de}else r.value=l.value.add(Zr,ci)}return fe(()=>n.visible,ne=>{!ne&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",G]),a("set-picker-option",["handleClear",te]),(ne,de)=>(C(),$("div",{class:R(P.value)},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(ne.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),N.value?(C(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(C(!0),$(Ke,null,_t(i(c),(se,Y)=>(C(),$("button",{key:Y,type:"button",class:R(i(y).e("shortcut")),disabled:i(F),onClick:X=>i(S)(se)},Se(se.text),11,pG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R(B.value.content)},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R(B.value.arrowLeftBtn),disabled:i(F),onClick:de[0]||(de[0]=(...se)=>i(M)&&i(M)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,hG),ne.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!W.value||i(F),class:R(B.value.arrowRightBtn),onClick:de[1]||(de[1]=(...se)=>i(O)&&i(O)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,vG)):re("v-if",!0),E("div",null,Se(i(L)),1)],2),Q(ou,{"selection-mode":"range",date:l.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R(K.value.content)},[E("div",{class:R(i(b).e("header"))},[ne.unlinkPanels?(C(),$("button",{key:0,type:"button",disabled:!W.value||i(F),class:R(K.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...se)=>i(I)&&i(I)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(fl))]),_:1})])],10,mG)):re("v-if",!0),E("button",{type:"button",class:R(K.value.arrowRightBtn),disabled:i(F),onClick:de[3]||(de[3]=(...se)=>i(A)&&i(A)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(De),null,{default:ae(()=>[Q(i(pl))]),_:1})])],10,gG),E("div",null,Se(i(z)),1)],2),Q(ou,{"selection-mode":"range",date:r.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),bG=yG;const wG=function(e){switch(e){case"daterange":case"datetimerange":return QY;case"monthrange":return uG;case"yearrange":return bG;default:return IY}};var aw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){var o=a.prototype,l=o.format;o.format=function(r){var s=this,u=this.$locale();if(!this.isValid())return l.bind(this)(r);var c=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return l.bind(this)(d)}}})})(aw);var CG=aw.exports;const _G=xl(CG);var ow={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){var n="week",a="year";return function(o,l,r){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(c),f=r(this).endOf(n);if(d.isBefore(f))return 1}var h=r(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?r(this).startOf("week").week():Math.ceil(g)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ow);var SG=ow.exports;const xG=xl(SG);var lw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),l=this.week(),r=this.year();return l===1&&o===11?r+1:o===0&&l>=52?r-1:r}}})})(lw);var kG=lw.exports;const EG=xl(kG);var rw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a,o){a.prototype.dayOfYear=function(l){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return l==null?r:this.add(l-r,"day")}}})})(rw);var TG=rw.exports;const MG=xl(TG);var sw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,l){return this.isSame(o,l)||this.isAfter(o,l)}}})})(sw);var OG=sw.exports;const $G=xl(OG);var iw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Sl,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,l){return this.isSame(o,l)||this.isBefore(o,l)}}})})(iw);var AG=iw.exports;const RG=xl(AG);function NG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}st.extend(Cb);st.extend(_G);st.extend(Oh);st.extend(xG);st.extend(EG);st.extend(MG);st.extend($G);st.extend(RG);var PG=D({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:rY,emits:[ot,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ve("picker-panel");Et(Pe(oo,void 0))&&wt(oo,{props:Rt({...Nn(e)})}),wt(Ih,{slots:t,pickerNs:o});const{parsedValue:l,onCalendarChange:r,onPanelChange:s,onSetPickerOption:u,onPick:c}=Pe(lb,()=>db(e,n),!0);return()=>Q(wG(e.type),ht(Su(a,"onPick"),e,{parsedValue:l.value,"onSet-picker-option":u,"onCalendar-change":r,"onPanel-change":s,onClear:()=>n("clear"),onPick:c}),NG(t)?t:{default:()=>[t]})}});const uw=it(PG),IG=_e({...Mh,type:{type:J(String),default:"date"}});function LG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}var VG=D({name:"ElDatePicker",install:null,props:IG,emits:[ot],setup(e,{expose:t,emit:n,slots:a}){wt(Du,x(()=>!e.format)),wt(Eh,Rt(Bt(e,"popperOptions")));const o=V();t({focus:()=>{var r;(r=o.value)==null||r.focus()},blur:()=>{var r;(r=o.value)==null||r.blur()},handleOpen:()=>{var r;(r=o.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=o.value)==null||r.handleClose()}});const l=r=>{n(ot,r)};return()=>{const r=e.format??(gW[e.type]||Qo);return Q(fb,ht(e,{format:r,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:s=>Q(uw,ht({disabled:e.disabled,editable:e.editable,border:!1},s),LG(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const BG=it(VG),zG=_e({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:kn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),cw="ElDescriptionsItem",DG=_e({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:v1,default:"left"},labelAlign:{type:String,values:v1},className:{type:String,default:""},labelClassName:{type:String,default:""}}),dw=D({name:cw,props:DG}),Hh=Symbol("elDescriptions"),HG=_e({row:{type:J(Array),default:()=>[]}});var di=D({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Pe(Hh,{})}},render(){var v;const e=B$(this.cell),t=(((v=this.cell)==null?void 0:v.dirs)||[]).map(m=>{const{dir:y,arg:b,modifiers:w,value:_}=m;return[y,_,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",l=()=>{var m,y,b;return((b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.label)==null?void 0:b.call(y))||e.label},r=()=>{var m,y,b;return(b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.default)==null?void 0:b.call(y)},s=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,h=e.labelClassName,g={width:ln(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:ln(e.minWidth)},p=ve("descriptions");switch(this.type){case"label":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",n),p.is("vertical-label",o),d,h],colSpan:o?s:1,rowspan:o?1:u},l()),t);case"content":return ft(Ye(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",n),p.is("vertical-content",o),c,f],colSpan:o?s:s*2-1,rowspan:o?u*2-1:u},r()),t);default:{const m=l(),y={},b=ln(e.labelWidth??this.descriptions.labelWidth);return b&&(y.width=b,y.display="inline-block"),ft(Ye("td",{style:g,class:[p.e("cell"),c],colSpan:s,rowspan:u},[gn(m)?void 0:Ye("span",{style:y,class:[p.e("label"),h]},m),Ye("span",{class:[p.e("content"),f]},r())]),t)}}}});const FG={key:1};var KG=D({name:"ElDescriptionsRow",__name:"descriptions-row",props:HG,setup(e){const t=Pe(Hh,{});return(n,a)=>i(t).direction==="vertical"?(C(),$(Ke,{key:0},[E("tr",null,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),ie(i(di),{key:`tr1-${l}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),ie(i(di),{key:`tr2-${l}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(C(),$("tr",FG,[(C(!0),$(Ke,null,_t(e.row,(o,l)=>(C(),$(Ke,{key:`tr3-${l}`},[i(t).border?(C(),$(Ke,{key:0},[Q(i(di),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Q(i(di),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(C(),ie(i(di),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),WG=KG,jG=D({name:"ElDescriptions",__name:"description",props:zG,setup(e){const t=e,n=ve("descriptions"),a=_n(),o=hn();wt(Hh,t);const l=x(()=>[n.b(),n.m(a.value)]),r=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),s=()=>{if(!o.default)return[];const u=Ta(o.default()).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)===cw}),c=[];let d=[],f=t.column,h=0;const g=[];return u.forEach((p,v)=>{var w,_,S;const m=((w=p.props)==null?void 0:w.span)||1,y=((_=p.props)==null?void 0:_.rowspan)||1,b=c.length;if(g[b]||(g[b]=0),y>1)for(let k=1;k0&&(f-=g[b],g[b]=0),vf?f:m),v===u.length-1){const k=t.column-h%t.column;d.push(r(p,k,f,!0)),c.push(d);return}m(C(),$("div",{class:R(l.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(C(),$("div",{key:0,class:R(i(n).e("header"))},[E("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[St(Se(e.title),1)])],2),E("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[St(Se(e.extra),1)])],2)],2)):re("v-if",!0),E("div",{class:R(i(n).e("body"))},[E("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[E("tbody",null,[(C(!0),$(Ke,null,_t(s(),(d,f)=>(C(),ie(WG,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),qG=jG;const UG=it(qG,{DescriptionsItem:dw}),YG=tn(dw),fw=_e({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ft},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),GG={close:()=>!0},pw=_e({...fw,appendToBody:Boolean,appendTo:{type:Eu.to.type,default:"body"},beforeClose:{type:J(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:J([String,Object]),default:void 0}}),hw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ot]:e=>Dt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},XG=_e({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:J([String,Array,Object])},zIndex:{type:J([String,Number])}}),JG={click:e=>e instanceof MouseEvent},ZG="overlay";var QG=D({name:"ElOverlay",props:XG,emits:JG,setup(e,{slots:t,emit:n}){const a=ve(ZG),o=u=>{n("click",u)},{onClick:l,onMousedown:r,onMouseup:s}=rh(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:r,onMouseup:s},[oe(t,"default")],qa.STYLE|qa.CLASS|qa.PROPS,["onClick","onMouseup","onMousedown"]):Ye("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const Fh=QG,vw=Symbol("dialogInjectionKey"),h0="dialog-fade",eX="ElDialog",mw=(e,t)=>{const n=vt().emit,{nextZIndex:a}=Ou();let o="";const l=Kn(),r=Kn(),s=V(!1),u=V(!1),c=V(!1),d=V(e.zIndex??a()),f=V(!1);let h,g;const p=_l(),v=x(()=>{var j;return((j=p.value)==null?void 0:j.namespace)??Ai}),m=x(()=>{var j;return(j=p.value)==null?void 0:j.dialog}),y=x(()=>{const j={},G=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(j[`${G}-margin-top`]=e.top);const ee=ln(e.width);ee&&(j[`${G}-width`]=ee)}return j}),b=x(()=>{var j;return(e.draggable??((j=m.value)==null?void 0:j.draggable)??!1)&&!e.fullscreen}),w=x(()=>{var j;return e.alignCenter??((j=m.value)==null?void 0:j.alignCenter)??!1}),_=x(()=>{var j;return e.overflow??((j=m.value)==null?void 0:j.overflow)??!1}),S=x(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),k=x(()=>w.value?{display:"flex"}:{}),T=x(()=>{var ee;const j=e.transition??((ee=m.value)==null?void 0:ee.transition)??h0,G={name:j,onAfterEnter:M,onBeforeLeave:O,onAfterLeave:A};if(lt(j)){const te={...j},ue=(ne,de)=>se=>{be(ne)?ne.forEach(Y=>{Fe(Y)&&Y(se)}):Fe(ne)&&ne(se),de()};return te.onAfterEnter=ue(te.onAfterEnter,M),te.onBeforeLeave=ue(te.onBeforeLeave,O),te.onAfterLeave=ue(te.onAfterLeave,A),te.name||(te.name=h0,pt(eX,`transition.name is missing when using object syntax, fallback to '${h0}'`)),te}return G});function M(){n("opened")}function A(){n("closed"),n(ot,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function O(){f.value=!0,n("close")}function I(){g==null||g(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=xs(()=>U(),e.openDelay):U()}function L(){h==null||h(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=xs(()=>F(),e.closeDelay):F()}function z(){function j(G){G||(u.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(j):L()}function q(){e.closeOnClickModal&&z()}function U(){At&&(s.value=!0)}function F(){s.value=!1}function N(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function B(j){var G;((G=j.detail)==null?void 0:G.focusReason)==="pointer"&&j.preventDefault()}e.lockScroll&&af(s);function K(){e.closeOnPressEscape&&z()}function W(){!s.value||!S.value||e.zIndex!==void 0||(d.value=a())}return fe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),fe(()=>e.modelValue,j=>{j?(u.value=!1,f.value=!1,I(),c.value=!0,d.value=e.zIndex??a(),Le(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):s.value&&L()}),fe(()=>e.fullscreen,j=>{t.value&&(j?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),gt(()=>{e.modelValue&&(s.value=!0,c.value=!0,I())}),{afterEnter:M,afterLeave:A,beforeLeave:O,handleClose:z,onModalClick:q,close:L,doClose:F,onOpenAutoFocus:N,onCloseAutoFocus:P,onCloseRequested:K,onFocusoutPrevented:B,bringToFront:W,titleId:l,bodyId:r,closed:u,style:y,overlayDialogStyle:k,rendered:c,visible:s,zIndex:d,transitionConfig:T,_draggable:b,_alignCenter:w,_overflow:_,closing:f,penetrable:S}},Kh=(...e)=>t=>{e.forEach(n=>{n.value=t})},tX=["aria-level"],nX=["aria-label"],aX=["id"];var oX=D({name:"ElDialogContent",__name:"dialog-content",props:fw,emits:GG,setup(e,{expose:t}){const{t:n}=kt(),{Close:a}=Ry,o=e,{dialogRef:l,headerRef:r,bodyId:s,ns:u,style:c}=Pe(vw),{focusTrapRef:d}=Pe(Ky),f=Kh(d,l),h=x(()=>!!o.draggable),{resetPosition:g,updatePosition:p,isDragging:v}=T8(l,r,h,x(()=>!!o.overflow)),m=x(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",h.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:p}),(y,b)=>(C(),$("div",{ref:i(f),class:R(m.value),style:qe(i(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:r,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(y.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},Se(e.title),11,tX)]),e.showClose?(C(),$("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(i(De),{class:R(i(u).e("close"))},{default:ae(()=>[(C(),ie(dt(e.closeIcon||i(a))))]),_:1},8,["class"])],10,nX)):re("v-if",!0)],2),E("div",{id:i(s),class:R([i(u).e("body"),e.bodyClass])},[oe(y.$slots,"default")],10,aX),y.$slots.footer?(C(),$("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(y.$slots,"footer")],2)):re("v-if",!0)],6))}}),lX=oX;const rX=["aria-label","aria-labelledby","aria-describedby"];var sX=D({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:pw,emits:hw,setup(e,{expose:t}){const n=e,a=hn();$o({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const o=ve("dialog"),l=V(),r=V(),s=V(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,transitionConfig:p,zIndex:v,_draggable:m,_alignCenter:y,_overflow:b,penetrable:w,handleClose:_,onModalClick:S,onOpenAutoFocus:k,onCloseAutoFocus:T,onCloseRequested:M,onFocusoutPrevented:A,bringToFront:O,closing:I}=mw(n,l);wt(vw,{dialogRef:l,headerRef:r,bodyId:d,ns:o,rendered:g,style:f});const L=rh(S);return t({visible:u,dialogContentRef:s,resetPosition:()=>{var q;(q=s.value)==null||q.resetPosition()},handleClose:_}),(q,U)=>(C(),ie(i(Ys),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,ht(i(p),{persisted:""}),{default:ae(()=>[ft(Q(i(Fh),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(w))],"z-index":i(v)},{default:ae(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(I))]),style:qe(i(h)),onClick:U[0]||(U[0]=(...F)=>i(L).onClick&&i(L).onClick(...F)),onMousedown:U[1]||(U[1]=(...F)=>i(L).onMousedown&&i(L).onMousedown(...F)),onMouseup:U[2]||(U[2]=(...F)=>i(L).onMouseup&&i(L).onMouseup(...F))},[Q(i(Xs),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(k),onFocusAfterReleased:i(T),onFocusoutPrevented:i(A),onReleaseRequested:i(M)},{default:ae(()=>[i(g)?(C(),ie(lX,ht({key:0,ref_key:"dialogContentRef",ref:s},q.$attrs,{center:e.center,"align-center":i(y),"close-icon":e.closeIcon,draggable:i(m),overflow:i(b),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(_),onMousedown:i(O)}),fa({header:ae(()=>[q.$slots.title?oe(q.$slots,"title",{key:1}):oe(q.$slots,"header",{key:0,close:i(_),titleId:i(c),titleClass:i(o).e("title")})]),default:ae(()=>[oe(q.$slots,"default")]),_:2},[q.$slots.footer?{name:"footer",fn:ae(()=>[oe(q.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,rX)]),_:3},8,["mask","overlay-class","z-index"]),[[$t,i(u)]])]),_:3},16)]),_:3},8,["to","disabled"]))}}),iX=sX;const uX=it(iX),cX=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:J(String),default:"solid"}});var dX=D({name:"ElDivider",__name:"divider",props:cX,setup(e){const t=e,n=ve("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(o,l)=>(C(),$("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:qe(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(C(),$("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),fX=dX;const gw=it(fX),pX=_e({...pw,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),hX={...hw,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function vX(e,t,n){const{width:a,height:o}=Ap(),l=x(()=>["ltr","rtl"].includes(e.direction)),r=x(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=x(()=>l.value?a.value:o.value),u=x(()=>w6(c.value+r.value*d.value,4,s.value)),c=V(0),d=V(0),f=V(!1),h=V(!1);let g=[],p=[];const v=()=>{var S;const _=(S=t.value)==null?void 0:S.closest('[aria-modal="true"]');return _?l.value?_.offsetWidth:_.offsetHeight:100};fe(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,d.value=0,b()});const m=_=>{e.resizable&&(h.value||(c.value=v(),h.value=!0),g=[_.pageX,_.pageY],f.value=!0,n("resize-start",_,c.value),p.push(Vt(window,"mouseup",b),Vt(window,"mousemove",y)))},y=_=>{const{pageX:S,pageY:k}=_,T=S-g[0],M=k-g[1];d.value=l.value?T:M,n("resize",_,u.value)},b=_=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,p.forEach(S=>S==null?void 0:S()),p=[],_&&n("resize-end",_,c.value))},w=Vt(t,"mousedown",m);return Lt(()=>{w(),b()}),{size:x(()=>h.value?`${u.value}px`:ln(e.size)),isResizing:f,isHorizontal:l}}const mX=["aria-label","aria-labelledby","aria-describedby"],gX=["id","aria-level"],yX=["aria-label"],bX=["id"];var wX=D({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:pX,emits:hX,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn();$o({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!l.title));const r=V(),s=V(),u=V(),c=ve("drawer"),{t:d}=kt(),{afterEnter:f,afterLeave:h,beforeLeave:g,visible:p,rendered:v,titleId:m,bodyId:y,zIndex:b,onModalClick:w,onOpenAutoFocus:_,onCloseAutoFocus:S,onFocusoutPrevented:k,onCloseRequested:T,handleClose:M}=mw(a,r),{isHorizontal:A,size:O,isResizing:I}=vX(a,u,o),L=x(()=>a.modalPenetrable&&!a.modal);return t({handleClose:M,afterEnter:f,afterLeave:h}),(z,q)=>(C(),ie(i(Ys),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(Fn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(h),onBeforeLeave:i(g),persisted:""},{default:ae(()=>[ft(Q(i(Fh),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",L.value)],"z-index":i(b),onClick:i(w)},{default:ae(()=>[Q(i(Xs),{loop:"",trapped:i(p),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:i(_),onFocusAfterReleased:i(S),onFocusoutPrevented:i(k),onReleaseRequested:i(T)},{default:ae(()=>[E("div",ht({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(y)},z.$attrs,{class:[i(c).b(),e.direction,i(p)&&"open",i(c).is("dragging",i(I))],style:{[i(A)?"width":"height"]:i(O)},role:"dialog",onClick:q[1]||(q[1]=Je(()=>{},["stop"]))}),[E("span",{ref_key:"focusStartRef",ref:s,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(C(),$("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[z.$slots.title?oe(z.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(z.$slots,"header",{key:0,close:i(M),titleId:i(m),titleClass:i(c).e("title")},()=>[E("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},Se(e.title),11,gX)]),e.showClose?(C(),$("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...U)=>i(M)&&i(M)(...U))},[Q(i(De),{class:R(i(c).e("close"))},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])],10,yX)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(C(),$("div",{key:1,id:i(y),class:R([i(c).e("body"),e.bodyClass])},[oe(z.$slots,"default")],10,bX)):re("v-if",!0),z.$slots.footer?(C(),$("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(z.$slots,"footer")],2)):re("v-if",!0),e.resizable?(C(),$("div",{key:3,ref_key:"draggerRef",ref:u,style:qe({zIndex:i(b)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,mX)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[$t,i(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),CX=wX;const _X=it(CX),Pc=_e({trigger:{...Po.trigger,type:J([String,Array])},triggerKeys:{type:J(Array),default:()=>[Ce.enter,Ce.numpadEnter,Ce.space,Ce.down]},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef,effect:{...Ht.effect,default:"light"},type:{type:J(String)},placement:{type:J(String),default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:J([Number,String]),default:0},maxHeight:{type:J([Number,String]),default:""},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,disabled:Boolean,role:{type:String,values:Ny,default:"menu"},buttonProps:{type:J(Object)},teleported:Ht.teleported,appendTo:Ht.appendTo,persistent:{type:Boolean,default:!0}}),yw=_e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ft}}),SX=_e({onKeydown:{type:J(Function)}}),bf=Symbol("elDropdown"),bw="elDropdown";var xX=D({inheritAttrs:!1});function kX(e,t,n,a,o,l){return oe(e.$slots,"default")}var EX=En(xX,[["render",kX]]),TX=D({name:"ElCollectionItem",inheritAttrs:!1});function MX(e,t,n,a,o,l){return oe(e.$slots,"default")}var OX=En(TX,[["render",MX]]);const ww="data-el-collection-item",$X=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},EX,{name:t,setup(){const l=V(),r=new Map;wt(a,{itemMap:r,getItems:()=>{const u=i(l);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${ww}]`));return[...r.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:l})}}),ElCollectionItem:Object.assign({},OX,{name:n,setup(l,{attrs:r}){const s=V(),u=Pe(a,void 0);wt(o,{collectionItemRef:s}),gt(()=>{const c=i(s);c&&u.itemMap.set(c,{ref:c,...r})}),Lt(()=>{const c=i(s);u.itemMap.delete(c)})}})}},AX=_e({style:{type:J([String,Array,Object])},currentTabId:{type:J(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:J(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:RX,ElCollectionItem:NX,COLLECTION_INJECTION_KEY:Cw,COLLECTION_ITEM_INJECTION_KEY:PX}=$X("RovingFocusGroup"),Wh=Symbol("elRovingFocusGroup"),_w=Symbol("elRovingFocusGroupItem"),IX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},LX=(e,t)=>e,VX=(e,t,n)=>{const a=LX(Kt(e));return IX[a]},BX=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),yg=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},bg="currentTabIdChange",wg="rovingFocusGroup.entryFocus",zX={bubbles:!1,cancelable:!0};var DX=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:AX,emits:[bg,"entryFocus"],setup(e,{emit:t}){const n=V((e.currentTabId||e.defaultCurrentTabId)??null),a=V(!1),o=V(!1),l=V(),{getItems:r}=Pe(Cw,void 0),s=x(()=>[{outline:"none"},e.style]),u=v=>{t(bg,v)},c=()=>{a.value=!0},d=On(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{o.value=!0}),f=On(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i(o),{target:y,currentTarget:b}=v;if(y===b&&m&&!i(a)){const w=new Event(wg,zX);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const _=r().filter(S=>S.focusable);yg([_.find(S=>S.active),_.find(S=>S.id===i(n)),..._].filter(Boolean).map(S=>S.ref))}}o.value=!1}),h=On(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},p=v=>{const m=VX(v);if(m){v.preventDefault();let y=r().filter(b=>b.focusable).map(b=>b.ref);switch(m){case"last":y.reverse();break;case"prev":case"next":{m==="prev"&&y.reverse();const b=y.indexOf(v.currentTarget);y=e.loop?BX(y,b+1):y.slice(b+1);break}}Le(()=>{yg(y)})}};wt(Wh,{currentTabbedId:Tr(n),loop:Bt(e,"loop"),tabIndex:x(()=>i(a)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:s,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:f,onMousedown:d,onKeydown:p}),fe(()=>e.currentTabId,v=>{n.value=v??null}),Vt(l,wg,g)}});function HX(e,t,n,a,o,l){return oe(e.$slots,"default")}var FX=En(DX,[["render",HX]]),KX=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:RX,ElRovingFocusGroupImpl:FX}});function WX(e,t,n,a,o,l){const r=Ot("el-roving-focus-group-impl"),s=Ot("el-focus-group-collection");return C(),ie(s,null,{default:ae(()=>[Q(r,nl(al(e.$attrs)),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var jX=En(KX,[["render",WX]]),qX=D({components:{ElRovingFocusCollectionItem:NX},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:l}=Pe(Wh,void 0),r=Kn(),s=V(),u=On(h=>{t("mousedown",h)},h=>{e.focusable?a(i(r)):h.preventDefault()}),c=On(h=>{t("focus",h)},()=>{a(i(r))}),d=On(h=>{t("keydown",h)},h=>{const{shiftKey:g,target:p,currentTarget:v}=h;if(Kt(h)===Ce.tab&&g){o();return}p===v&&l(h)}),f=x(()=>n.value===i(r));return wt(_w,{rovingFocusGroupItemRef:s,tabIndex:x(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:r,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function UX(e,t,n,a,o,l){const r=Ot("el-roving-focus-collection-item");return C(),ie(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var YX=En(qX,[["render",UX]]),GX=jX;const{ButtonGroup:XX}=An;var JX=D({name:"ElDropdown",components:{ElButton:An,ElButtonGroup:XX,ElScrollbar:ao,ElTooltip:Vn,ElRovingFocusGroup:GX,ElOnlyChild:Vy,ElIcon:De,ArrowDown:po},props:Pc,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vt(),a=ve("dropdown"),{t:o}=kt(),l=V(),r=V(),s=V(),u=V(),c=V(null),d=V(null),f=V(!1),h=x(()=>({maxHeight:ln(e.maxHeight)})),g=x(()=>[a.m(_.value)]),p=x(()=>$n(e.trigger)),v=Kn().value,m=x(()=>e.id||v);function y(){var z;(z=s.value)==null||z.onClose(void 0,0)}function b(){var z;(z=s.value)==null||z.onClose()}function w(){var z;(z=s.value)==null||z.onOpen()}const _=_n();function S(...z){t("command",...z)}function k(){}function T(){const z=i(u);p.value.includes("hover")&&(z==null||z.focus({preventScroll:!0})),d.value=null}function M(z){d.value=z}function A(){t("visible-change",!0)}function O(z){var q;f.value=(z==null?void 0:z.type)==="keydown",(q=u.value)==null||q.focus()}function I(){t("visible-change",!1)}return wt(bf,{contentRef:u,role:x(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:b}),wt(bw,{instance:n,dropdownSize:_,handleClick:y,commandHandler:S,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:_,triggerId:m,currentTabId:d,handleCurrentTabIdChange:M,handlerMainButtonClick:z=>{t("click",z)},handleClose:b,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:O,handleBeforeHideTooltip:I,popperRef:s,contentRef:u,triggeringElementRef:l,referenceElementRef:r}}});function ZX(e,t,n,a,o,l){const r=Ot("el-roving-focus-group"),s=Ot("el-scrollbar"),u=Ot("el-only-child"),c=Ot("el-tooltip"),d=Ot("el-button"),f=Ot("arrow-down"),h=Ot("el-icon"),g=Ot("el-button-group");return C(),$("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},fa({content:ae(()=>[Q(s,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[Q(r,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ae(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(C(),ie(g,{key:0},{default:ae(()=>[Q(d,ht({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(d,ht({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ae(()=>[Q(h,{class:R(e.ns.e("icon"))},{default:ae(()=>[Q(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var QX=En(JX,[["render",ZX]]),eJ=D({name:"DropdownItemImpl",components:{ElIcon:De},props:yw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ve("dropdown"),{role:a}=Pe(bf,void 0),{collectionItemRef:o}=Pe(PX,void 0),{rovingFocusGroupItemRef:l,tabIndex:r,handleFocus:s,handleKeydown:u,handleMousedown:c}=Pe(_w,void 0),d=Kh(o,l),f=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=On(g=>{const p=Kt(g);if([Ce.enter,Ce.numpadEnter,Ce.space].includes(p))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[ww]:""},role:f,tabIndex:r,handleFocus:s,handleKeydown:h,handleMousedown:c}}});const tJ=["aria-disabled","tabindex","role"];function nJ(e,t,n,a,o,l){const r=Ot("el-icon");return C(),$(Ke,null,[e.divided?(C(),$("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),E("li",ht({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=Je((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon||e.$slots.icon?(C(),ie(r,{key:0},{default:ae(()=>[oe(e.$slots,"icon",{},()=>[(C(),ie(dt(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,tJ)],64)}var aJ=En(eJ,[["render",nJ]]);const Sw=()=>{const e=Pe(bw,{});return{elDropdown:e,_elDropdownSize:x(()=>e==null?void 0:e.dropdownSize)}};var oJ=D({name:"ElDropdownItem",components:{ElRovingFocusItem:YX,ElDropdownItemImpl:aJ},inheritAttrs:!1,props:yw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Sw(),o=vt(),{onItemEnter:l,onItemLeave:r}=Pe(bf,void 0),s=On(c=>(t("pointermove",c),c.defaultPrevented),J1(c=>{if(e.disabled){r(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(l(c),c.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),u=On(c=>(t("pointerleave",c),c.defaultPrevented),J1(r));return{handleClick:On(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,f,h;if(e.disabled){c.stopImmediatePropagation();return}(d=a==null?void 0:a.hideOnClick)!=null&&d.value&&((f=a.handleClick)==null||f.call(a)),(h=a.commandHandler)==null||h.call(a,e.command,o,c)}),handlePointerMove:s,handlePointerLeave:u,propsAndAttrs:x(()=>({...e,...n}))}}});function lJ(e,t,n,a,o,l){const r=Ot("el-dropdown-item-impl"),s=Ot("el-roving-focus-item");return C(),ie(s,{focusable:!e.disabled},{default:ae(()=>[Q(r,ht(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),fa({default:ae(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ae(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var xw=En(oJ,[["render",lJ]]),rJ=D({name:"ElDropdownMenu",props:SX,setup(e){const t=ve("dropdown"),{_elDropdownSize:n}=Sw(),a=n.value,{contentRef:o,role:l,triggerId:r,isUsingKeyboard:s,handleClose:u}=Pe(bf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:h,onKeydown:g,onMousedown:p}=Pe(Wh,void 0),{collectionRef:v}=Pe(Cw,void 0),m=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),y=Kh(o,c,v),b=On(_=>{var S;(S=e.onKeydown)==null||S.call(e,_)},_=>{const{currentTarget:S,target:k}=_,T=Kt(_);if(S.contains(k),Ce.tab===T)return u();g(_)});function w(_){s.value&&h(_)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:l,triggerId:r,dropdownListWrapperRef:y,handleKeydown:b,onBlur:f,handleFocus:w,onMousedown:p}}});const sJ=["role","aria-labelledby"];function iJ(e,t,n,a,o,l){return C(),$("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:qe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=Je((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=Je((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[oe(e.$slots,"default")],46,sJ)}var kw=En(rJ,[["render",iJ]]);const uJ=it(QX,{DropdownItem:xw,DropdownMenu:kw}),cJ=tn(xw),dJ=tn(kw),fJ=_e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),pJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},hJ=["id"],vJ=["stop-color"],mJ=["stop-color"],gJ=["id"],yJ=["stop-color"],bJ=["stop-color"],wJ=["id"],CJ={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_J={transform:"translate(-1268.000000, -535.000000)"},SJ={transform:"translate(1268.000000, 535.000000)"},xJ=["fill"],kJ=["fill"],EJ={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TJ=["fill"],MJ=["fill"],OJ=["fill"],$J=["fill"],AJ=["fill"],RJ={transform:"translate(53.000000, 45.000000)"},NJ=["fill","xlink:href"],PJ=["fill","mask"],IJ=["fill"];var LJ=D({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ve("empty"),n=Kn();return(a,o)=>(C(),$("svg",pJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,vJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,mJ)],8,hJ),E("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,yJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,bJ)],8,gJ),E("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,wJ)]),E("g",CJ,[E("g",_J,[E("g",SJ,[E("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,xJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,kJ),E("g",EJ,[E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,TJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,MJ),E("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,OJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,$J)]),E("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,AJ),E("g",RJ,[E("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,NJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,PJ)]),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,IJ)])])])]))}}),VJ=LJ;const BJ=["src"],zJ={key:1};var DJ=D({name:"ElEmpty",__name:"empty",props:fJ,setup(e){const t=e,{t:n}=kt(),a=ve("empty"),o=x(()=>t.description||n("el.table.emptyText")),l=x(()=>({width:ln(t.imageSize)}));return(r,s)=>(C(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("image")),style:qe(l.value)},[e.image?(C(),$("img",{key:0,src:e.image,ondragstart:"return false"},null,8,BJ)):oe(r.$slots,"image",{key:1},()=>[Q(VJ)])],6),E("div",{class:R(i(a).e("description"))},[r.$slots.description?oe(r.$slots,"description",{key:0}):(C(),$("p",zJ,Se(o.value),1))],2),r.$slots.default?(C(),$("div",{key:0,class:R(i(a).e("bottom"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),HJ=DJ;const Ew=it(HJ),FJ=_e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:J([String,Object])},previewSrcList:{type:J(Array),default:()=>on([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),KJ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>He(e),close:()=>!0,show:()=>!0},WJ=_e({urlList:{type:J(Array),default:()=>on([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),jJ={close:()=>!0,error:e=>e instanceof Event,switch:e=>He(e),rotate:e=>He(e)},qJ=["src","crossorigin"];var UJ=D({name:"ElImageViewer",__name:"image-viewer",props:WJ,emits:jJ,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Oo(gy)},ORIGINAL:{name:"original",icon:Oo(ky)}},o=e,l=n;let r;const{t:s}=kt(),u=ve("image-viewer"),{nextZIndex:c}=Ou(),d=V(),f=V(),h=aC(),g=x(()=>{const{scale:se,minScale:Y,maxScale:X}=o;return w6(se,Y,X)}),p=V(!0),v=V(!1),m=V(!1),y=V(o.initialIndex),b=qt(a.CONTAIN),w=V({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),_=V(o.zIndex??c());af(m,{ns:u});const S=x(()=>{const{urlList:se}=o;return se.length<=1}),k=x(()=>y.value===0),T=x(()=>y.value===o.urlList.length-1),M=x(()=>o.urlList[y.value]),A=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&k.value)]),O=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),I=x(()=>{const{scale:se,deg:Y,offsetX:X,offsetY:H,enableTransition:Z}=w.value;let le=X/se,ce=H/se;const ge=Y*Math.PI/180,me=Math.cos(ge),Ae=Math.sin(ge);le=le*me+ce*Ae,ce=ce*me-X/se*Ae;const Ne={transform:`scale(${se}) rotate(${Y}deg) translate(${le}px, ${ce}px)`,transition:Z?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Ne.maxWidth=Ne.maxHeight="100%"),Ne}),L=x(()=>`${y.value+1} / ${o.urlList.length}`);function z(){U(),r==null||r(),m.value=!1,l("close")}function q(){const se=Il(X=>{switch(Kt(X)){case Ce.esc:o.closeOnPressEscape&&z();break;case Ce.space:W();break;case Ce.left:G();break;case Ce.up:te("zoomIn");break;case Ce.right:ee();break;case Ce.down:te("zoomOut");break}}),Y=Il(X=>{te((X.deltaY||X.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Vt(document,"keydown",se),Vt(d,"wheel",Y)})}function U(){h.stop()}function F(){p.value=!1}function N(se){v.value=!0,p.value=!1,l("error",se),se.target.alt=s("el.image.error")}function P(se){if(p.value||se.button!==0||!d.value)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,H=se.pageX,Z=se.pageY,le=Il(me=>{w.value={...w.value,offsetX:Y+me.pageX-H,offsetY:X+me.pageY-Z}}),ce=Vt(document,"mousemove",le),ge=Vt(document,"mouseup",()=>{ce(),ge()});se.preventDefault()}function B(se){if(p.value||!d.value||se.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,{pageX:H,pageY:Z}=se.touches[0],le=Il(me=>{const Ae=me.touches[0];w.value={...w.value,offsetX:Y+Ae.pageX-H,offsetY:X+Ae.pageY-Z}}),ce=Vt(document,"touchmove",le),ge=Vt(document,"touchend",()=>{ce(),ge()});se.preventDefault()}function K(){w.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function W(){if(p.value||v.value)return;const se=Gi(a),Y=Object.values(a),X=b.value.name;b.value=a[se[(Y.findIndex(H=>H.name===X)+1)%se.length]],K()}function j(se){v.value=!1;const Y=o.urlList.length;y.value=(se+Y)%Y}function G(){k.value&&!o.infinite||j(y.value-1)}function ee(){T.value&&!o.infinite||j(y.value+1)}function te(se,Y={}){if(p.value||v.value)return;const{minScale:X,maxScale:H}=o,{zoomRate:Z,rotateDeg:le,enableTransition:ce}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(se){case"zoomOut":w.value.scale>X&&(w.value.scale=Number.parseFloat((w.value.scale/Z).toFixed(3)));break;case"zoomIn":w.value.scale0)return se.preventDefault(),!1}}return fe(()=>g.value,se=>{w.value.scale=se}),fe(M,()=>{Le(()=>{var se;(se=f.value)!=null&&se.complete||(p.value=!0)})}),fe(y,se=>{K(),l("switch",se)}),gt(()=>{m.value=!0,q(),r=Vt("wheel",de,{passive:!1})}),t({setActiveItem:j}),(se,Y)=>(C(),ie(i(Ys),{to:"body",disabled:!e.teleported},{default:ae(()=>[Q(Fn,{name:"viewer-fade",appear:""},{default:ae(()=>[E("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:qe({zIndex:_.value})},[Q(i(Xs),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ue,onReleaseRequested:ne},{default:ae(()=>[E("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Je(X=>e.hideOnClickModal&&z(),["self"]))},null,2),re(" CLOSE "),E("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:z},[Q(i(De),null,{default:ae(()=>[Q(i(Na))]),_:1})],2),re(" ARROW "),S.value?re("v-if",!0):(C(),$(Ke,{key:0},[E("span",{class:R(A.value),onClick:G},[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1})],2),E("span",{class:R(O.value),onClick:ee},[Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})],2)],64)),se.$slots.progress||e.showProgress?(C(),$("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(se.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[St(Se(L.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),E("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[E("div",{class:R(i(u).e("actions__inner"))},[oe(se.$slots,"toolbar",{actions:te,prev:G,next:ee,reset:W,activeIndex:y.value,setActiveItem:j},()=>[Q(i(De),{onClick:Y[1]||(Y[1]=X=>te("zoomOut"))},{default:ae(()=>[Q(i(Ay))]),_:1}),Q(i(De),{onClick:Y[2]||(Y[2]=X=>te("zoomIn"))},{default:ae(()=>[Q(i(gh))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:W},{default:ae(()=>[(C(),ie(dt(b.value.icon)))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(De),{onClick:Y[3]||(Y[3]=X=>te("anticlockwise"))},{default:ae(()=>[Q(i(Sy))]),_:1}),Q(i(De),{onClick:Y[4]||(Y[4]=X=>te("clockwise"))},{default:ae(()=>[Q(i(xy))]),_:1})])],2)],2),re(" CANVAS "),E("div",{class:R(i(u).e("canvas"))},[v.value&&se.$slots["viewer-error"]?oe(se.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(C(),$("img",{ref_key:"imgRef",ref:f,key:M.value,src:M.value,style:qe(I.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:F,onError:N,onMousedown:P,onTouchstart:B},null,46,qJ))],2),oe(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),YJ=UJ;const Tw=it(YJ),GJ=["src","loading","crossorigin"],XJ={key:0};var JJ=D({name:"ElImage",inheritAttrs:!1,__name:"image",props:FJ,emits:KJ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("image"),s=gl(),u=x(()=>Es(Object.entries(s).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=nf({excludeListeners:!0,excludeKeys:x(()=>Object.keys(u.value))}),d=V(),f=V(!1),h=V(!0),g=V(!1),p=V(),v=V(),m=At&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[r.e("inner"),_.value&&r.e("preview"),h.value&&r.is("loading")]),w=x(()=>{const{fit:N}=a;return At&&N?{objectFit:N}:{}}),_=x(()=>{const{previewSrcList:N}=a;return be(N)&&N.length>0}),S=x(()=>{const{previewSrcList:N,initialIndex:P}=a;let B=P;return P>N.length-1&&(B=0),B}),k=x(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),T=()=>{At&&(h.value=!0,f.value=!1,d.value=a.src)};function M(N){h.value=!1,f.value=!1,o("load",N)}function A(N){h.value=!1,f.value=!0,o("error",N)}function O(N){N&&(T(),z())}const I=_6(O,200,!0);async function L(){if(!At)return;await Le();const{scrollContainer:N}=a;if(ga(N))v.value=N;else if(Be(N)&&N!=="")v.value=document.querySelector(N)??void 0;else if(p.value){const B=Xp(p.value);v.value=xu(B)?void 0:B}const{stop:P}=RS(p,([B])=>{I(B.isIntersecting)},{root:v});y=P}function z(){!At||!I||(y==null||y(),v.value=void 0,y=void 0)}function q(){_.value&&(g.value=!0,o("show"))}function U(){g.value=!1,o("close")}function F(N){o("switch",N)}return fe(()=>a.src,()=>{k.value?(h.value=!0,f.value=!1,z(),L()):T()}),gt(()=>{k.value?L():T()}),t({showPreview:q}),(N,P)=>(C(),$("div",ht({ref_key:"container",ref:p},u.value,{class:[i(r).b(),N.$attrs.class]}),[f.value?oe(N.$slots,"error",{key:0},()=>[E("div",{class:R(i(r).e("error"))},Se(i(l)("el.image.error")),3)]):(C(),$(Ke,{key:1},[d.value!==void 0?(C(),$("img",ht({key:0},i(c),{src:d.value,loading:e.loading,style:w.value,class:b.value,crossorigin:e.crossorigin,onClick:q,onLoad:M,onError:A}),null,16,GJ)):re("v-if",!0),h.value?(C(),$("div",{key:1,class:R(i(r).e("wrapper"))},[oe(N.$slots,"placeholder",{},()=>[E("div",{class:R(i(r).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),_.value?(C(),$(Ke,{key:2},[g.value?(C(),ie(i(Tw),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:U,onSwitch:F},fa({toolbar:ae(B=>[oe(N.$slots,"toolbar",nl(al(B)))]),default:ae(()=>[N.$slots.viewer?(C(),$("div",XJ,[oe(N.$slots,"viewer")])):re("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:ae(B=>[oe(N.$slots,"progress",nl(al(B)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:ae(B=>[oe(N.$slots,"viewer-error",nl(al(B)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),ZJ=JJ;const QJ=it(ZJ),eZ=_e({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:kn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:J([String,Number,null]),validator:e=>e===null||He(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...oa(["ariaLabel"]),inputmode:{type:J(String),default:void 0},align:{type:J(String),default:"center"},disabledScientific:Boolean}),tZ={[bt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[wn]:e=>He(e)||gn(e),[ot]:e=>He(e)||gn(e)},nZ=["aria-label"],aZ=["aria-label"];var oZ=D({name:"ElInputNumber",__name:"input-number",props:eZ,emits:tZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("input-number"),s=V(),u=Rt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Bn(),d=x(()=>He(a.modelValue)&&a.modelValue<=a.min),f=x(()=>He(a.modelValue)&&a.modelValue>=a.max),h=x(()=>{const N=b(a.step);return Et(a.precision)?Math.max(b(a.modelValue),N):(N>a.precision&&pt("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=x(()=>a.controls&&a.controlsPosition==="right"),p=_n(),v=rn(),m=x(()=>{if(u.userInput!==null)return u.userInput;let N=u.currentValue;if(gn(N))return"";if(He(N)){if(Number.isNaN(N))return"";Et(a.precision)||(N=N.toFixed(a.precision))}return N}),y=(N,P)=>{if(Et(P)&&(P=h.value),P===0)return Math.round(N);let B=String(N);const K=B.indexOf(".");if(K===-1||!B.replace(".","").split("")[K+P])return N;const W=B.length;return B.charAt(W-1)==="5"&&(B=`${B.slice(0,Math.max(0,W-1))}6`),Number.parseFloat(Number(B).toFixed(P))},b=N=>{if(gn(N))return 0;const P=N.toString(),B=P.indexOf(".");let K=0;return B!==-1&&(K=P.length-B-1),K},w=(N,P=1)=>He(N)?N>=Number.MAX_SAFE_INTEGER&&P===1?(pt("InputNumber","The value has reached the maximum safe integer limit."),N):N<=Number.MIN_SAFE_INTEGER&&P===-1?(pt("InputNumber","The value has reached the minimum safe integer limit."),N):y(N+a.step*P):u.currentValue,_=N=>{const P=Kt(N),B=p8(N);if(a.disabledScientific&&["e","E"].includes(B)){N.preventDefault();return}switch(P){case Ce.up:N.preventDefault(),S();break;case Ce.down:N.preventDefault(),k();break}},S=()=>{a.readonly||v.value||f.value||(M(w(Number(m.value)||0)),o(wn,u.currentValue),U())},k=()=>{a.readonly||v.value||d.value||(M(w(Number(m.value)||0,-1)),o(wn,u.currentValue),U())},T=(N,P)=>{const{max:B,min:K,step:W,precision:j,stepStrictly:G,valueOnClear:ee}=a;BB||teB?B:K,P&&o(ot,te)),te},M=(N,P=!0)=>{var W;const B=u.currentValue,K=T(N);if(!P){o(ot,K);return}u.userInput=null,!(B===K&&N)&&(o(ot,K),B!==K&&o(bt,K,B),a.validateEvent&&((W=c==null?void 0:c.validate)==null||W.call(c,"change").catch(j=>pt(j))),u.currentValue=K)},A=N=>{u.userInput=N;const P=N===""?null:Number(N);o(wn,P),M(P,!1)},O=N=>{const P=N!==""?Number(N):"";(He(P)&&!Number.isNaN(P)||N==="")&&M(P),U(),u.userInput=null},I=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},L=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},z=N=>{o("focus",N)},q=N=>{var P,B;u.userInput=null,u.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),o("blur",N),a.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(K=>pt(K)))},U=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},F=N=>{document.activeElement===N.target&&N.preventDefault()};return fe(()=>a.modelValue,(N,P)=>{const B=T(N,!0);u.userInput===null&&B!==P&&(u.currentValue=B)},{immediate:!0}),fe(()=>a.precision,()=>{u.currentValue=T(a.modelValue)}),gt(()=>{var W;const{min:N,max:P,modelValue:B}=a,K=(W=s.value)==null?void 0:W.input;if(K.setAttribute("role","spinbutton"),Number.isFinite(P)?K.setAttribute("aria-valuemax",String(P)):K.removeAttribute("aria-valuemax"),Number.isFinite(N)?K.setAttribute("aria-valuemin",String(N)):K.removeAttribute("aria-valuemin"),K.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),K.setAttribute("aria-disabled",String(v.value)),!He(B)&&B!=null){let j=Number(B);Number.isNaN(j)&&(j=null),o(ot,j)}K.addEventListener("wheel",F,{passive:!1})}),so(()=>{var N,P;(P=(N=s.value)==null?void 0:N.input)==null||P.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:I,blur:L}),(N,P)=>(C(),$("div",{class:R([i(r).b(),i(r).m(i(p)),i(r).is("disabled",i(v)),i(r).is("without-controls",!e.controls),i(r).is("controls-right",g.value),i(r).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Je(()=>{},["prevent"]))},[e.controls?ft((C(),$("span",{key:0,role:"button","aria-label":i(l)("el.inputNumber.decrease"),class:R([i(r).e("decrease"),i(r).is("disabled",d.value)]),onKeydown:nn(k,["enter"])},[oe(N.$slots,"decrease-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(C(),ie(i(po),{key:0})):(C(),ie(i(by),{key:1}))]),_:1})])],42,nZ)),[[i(od),k]]):re("v-if",!0),e.controls?ft((C(),$("span",{key:1,role:"button","aria-label":i(l)("el.inputNumber.increase"),class:R([i(r).e("increase"),i(r).is("disabled",f.value)]),onKeydown:nn(S,["enter"])},[oe(N.$slots,"increase-icon",{},()=>[Q(i(De),null,{default:ae(()=>[g.value?(C(),ie(i(Iu),{key:0})):(C(),ie(i(vh),{key:1}))]),_:1})])],42,aZ)),[[i(od),S]]):re("v-if",!0),Q(i(Dn),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(p),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:q,onFocus:z,onInput:A,onChange:O},fa({_:2},[N.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),lZ=oZ;const Mw=it(lZ),rZ=_e({modelValue:{type:J(Array)},max:Number,tagType:{...hl.type,default:"info"},tagEffect:hl.effect,effect:{type:J(String),default:"light"},trigger:{type:J(String),default:Ce.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:kn,clearable:Boolean,clearIcon:{type:Ft,default:ho},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:J(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),sZ={[ot]:e=>be(e)||Et(e),[bt]:e=>be(e)||Et(e),[wn]:e=>Be(e),"add-tag":e=>Be(e)||be(e),"remove-tag":(e,t)=>Be(e)&&He(t),"drag-tag":(e,t,n)=>He(e)&&He(t)&&Be(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function iZ({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ve("input-tag"),o=qt(),l=V(!1);let r,s,u,c;function d(p){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${p+1})`}function f(p,v){r=v,s=e.value.querySelector(d(v)),s&&(s.style.opacity="0.5"),p.dataTransfer.effectAllowed="move"}function h(p,v){if(u=v,p.preventDefault(),p.dataTransfer.dropEffect="move",Et(r)||r===v){l.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),y=r+1!==v,b=r-1!==v,w=p.clientX-m.left,_=y?b?.5:1:-1,S=b?y?.5:0:1;w<=m.width*_?c="before":w>m.width*S?c="after":c=void 0;const k=e.value.querySelector(`.${a.e("inner")}`),T=k.getBoundingClientRect(),M=Number.parseFloat(Zo(k,"gap"))/2,A=m.top-T.top;let O=-9999;if(c==="before")O=Math.max(m.left-T.left-M,Math.floor(-M/2));else if(c==="after"){const I=m.right-T.left;O=I+(T.width===I?Math.floor(M/2):M)}E8(o.value,{top:`${A}px`,left:`${O}px`}),l.value=!!c}function g(p){p.preventDefault(),s&&(s.style.opacity=""),c&&!Et(r)&&!Et(u)&&r!==u&&t(r,u,c),l.value=!1,r=void 0,s=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:o,showDropIndicator:l,handleDragStart:f,handleDragOver:h,handleDragEnd:g}}function uZ(){const e=V(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function cZ({props:e,emit:t,formItem:n}){const a=rn(),o=_n(),l=qt(),r=V(),s=V(),u=x(()=>["small"].includes(o.value)?"small":"default"),c=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),f=x(()=>{var F;return Et(e.max)?!1:(((F=e.modelValue)==null?void 0:F.length)??0)>=e.max}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),g=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),p=F=>{const N=[...e.modelValue??[],...$n(F)];t(ot,N),t(bt,N),t("add-tag",F),r.value=void 0},v=F=>{var B;const N=F.split(e.delimiter),P=N.length>1?N.map(K=>K.trim()).filter(Boolean):[];if(e.max){const K=e.max-(((B=e.modelValue)==null?void 0:B.length)??0);P.splice(K)}return P.length===1?P[0]:P},m=F=>{var G;const N=(G=F.clipboardData)==null?void 0:G.getData("text");if(e.readonly||f.value||!e.delimiter||!N)return;const{selectionStart:P=0,selectionEnd:B=0,value:K}=F.target,W=K.slice(0,P)+N+K.slice(B),j=v(W);j.length&&(p(j),t(wn,W),F.preventDefault())},y=F=>{if(f.value){r.value=void 0;return}if(!L.value){if(e.delimiter&&r.value){const N=v(r.value);N.length&&p(N)}t(wn,F.target.value)}},b=F=>{var N;if(!L.value)switch(Kt(F)){case e.trigger:F.preventDefault(),F.stopPropagation(),_();break;case Ce.numpadEnter:e.trigger===Ce.enter&&(F.preventDefault(),F.stopPropagation(),_());break;case Ce.backspace:!r.value&&((N=e.modelValue)!=null&&N.length)&&(F.preventDefault(),F.stopPropagation(),S(e.modelValue.length-1));break}},w=F=>{if(!(L.value||!x6()))switch(Kt(F)){case Ce.space:e.trigger===Ce.space&&(F.preventDefault(),F.stopPropagation(),_());break}},_=()=>{var N;const F=(N=r.value)==null?void 0:N.trim();!F||f.value||p(F)},S=F=>{const N=(e.modelValue??[]).slice(),[P]=N.splice(F,1);t(ot,N),t(bt,N),t("remove-tag",P,F)},k=()=>{r.value=void 0,t(ot,void 0),t(bt,void 0),t("clear")},T=(F,N,P)=>{const B=(e.modelValue??[]).slice(),[K]=B.splice(F,1),W=N>F&&P==="before"?-1:N{var F;(F=l.value)==null||F.focus()},A=()=>{var F;(F=l.value)==null||F.blur()},{wrapperRef:O,isFocused:I}=Cl(l,{disabled:a,beforeBlur(F){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?_():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(N=>pt(N)))}}),{isComposing:L,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U}=Nu({afterComposition:y});return fe(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,bt).catch(N=>pt(N)))}),{inputRef:l,wrapperRef:O,tagTooltipRef:s,isFocused:I,isComposing:L,inputValue:r,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:h,collapseTagList:g,handleDragged:T,handlePaste:m,handleInput:y,handleKeydown:b,handleKeyup:w,handleAddTag:_,handleRemoveTag:S,handleClear:k,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U,focus:M,blur:A}}function dZ({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:l,validateState:r,validateIcon:s,needStatusIcon:u}){const c=gl(),d=hn(),f=ve("input-tag"),h=ve("input"),g=V(),p=V(),v=x(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(l.value),f.e("wrapper"),c.class]),m=x(()=>[c.style]),y=x(()=>{var A,O;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((A=e.modelValue)!=null&&A.length)&&!d.prefix),f.is("right-space",!((O=e.modelValue)!=null&&O.length)&&!w.value)]}),b=x(()=>{var A;return e.clearable&&!a.value&&!e.readonly&&(((A=e.modelValue)==null?void 0:A.length)||o.value)&&(t.value||n.value)}),w=x(()=>d.suffix||b.value||r.value&&s.value&&u.value),_=Rt({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!p.value)return 0;const A=window.getComputedStyle(p.value);return Number.parseFloat(A.gap||"6px")},k=()=>{_.innerWidth=Number.parseFloat(window.getComputedStyle(p.value).width)},T=()=>{_.collapseItemWidth=g.value.getBoundingClientRect().width},M=x(()=>{if(!e.collapseTags)return{};const A=S(),O=A+Wd,I=g.value&&e.maxCollapseTags===1?_.innerWidth-_.collapseItemWidth-A-O:_.innerWidth-O;return{maxWidth:`${Math.max(I,0)}px`}});return Zt(p,k),Zt(g,T),{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:y,showClear:b,showSuffix:w,tagStyle:M,collapseItemRef:g,innerRef:p}}const fZ=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],pZ=["textContent"];var hZ=D({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:rZ,emits:sZ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=nf(),r=hn(),{form:s,formItem:u}=Bn(),{inputId:c}=Pa(a,{formItemContext:u}),d=x(()=>(s==null?void 0:s.statusIcon)??!1),f=x(()=>(u==null?void 0:u.validateState)||""),h=x(()=>f.value&&pf[f.value]),{inputRef:g,wrapperRef:p,tagTooltipRef:v,isFocused:m,inputValue:y,size:b,tagSize:w,placeholder:_,closable:S,disabled:k,showTagList:T,collapseTagList:M,handleDragged:A,handlePaste:O,handleInput:I,handleKeydown:L,handleKeyup:z,handleRemoveTag:q,handleClear:U,handleCompositionStart:F,handleCompositionUpdate:N,handleCompositionEnd:P,focus:B,blur:K}=cZ({props:a,emit:o,formItem:u}),{hovering:W,handleMouseEnter:j,handleMouseLeave:G}=uZ(),{calculatorRef:ee,inputStyle:te}=Up(),{dropIndicatorRef:ue,showDropIndicator:ne,handleDragStart:de,handleDragOver:se,handleDragEnd:Y}=iZ({wrapperRef:p,handleDragged:A,afterDragged:B}),{ns:X,nsInput:H,containerKls:Z,containerStyle:le,innerKls:ce,showClear:ge,showSuffix:me,tagStyle:Ae,collapseItemRef:Ne,innerRef:Re}=dZ({props:a,hovering:W,isFocused:m,inputValue:y,disabled:k,size:b,validateState:f,validateIcon:h,needStatusIcon:d});return t({focus:B,blur:K}),(ye,Ee)=>(C(),$("div",{ref_key:"wrapperRef",ref:p,class:R(i(Z)),style:qe(i(le)),onMouseenter:Ee[9]||(Ee[9]=(...we)=>i(j)&&i(j)(...we)),onMouseleave:Ee[10]||(Ee[10]=(...we)=>i(G)&&i(G)(...we))},[i(r).prefix?(C(),$("div",{key:0,class:R(i(X).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref_key:"innerRef",ref:Re,class:R(i(ce))},[(C(!0),$(Ke,null,_t(i(T),(we,Ie)=>(C(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,draggable:i(S)&&e.draggable,style:qe(i(Ae)),"disable-transitions":"",onClose:ze=>i(q)(Ie),onDragstart:ze=>i(de)(ze,Ie),onDragover:ze=>i(se)(ze,Ie),onDragend:i(Y),onDrop:Ee[0]||(Ee[0]=Je(()=>{},["stop"]))},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(C(),ie(i(Vn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ae(()=>[E("div",{ref_key:"collapseItemRef",ref:Ne,class:R(i(X).e("collapse-tag"))},[Q(i(ll),{closable:!1,size:i(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[St(" + "+Se(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ae(()=>[E("div",{class:R(i(X).e("input-tag-list"))},[(C(!0),$(Ke,null,_t(i(M),(we,Ie)=>(C(),ie(i(ll),{key:Ie,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:ze=>i(q)(Ie+e.maxCollapseTags)},{default:ae(()=>[oe(ye.$slots,"tag",{value:we,index:Ie+e.maxCollapseTags},()=>[St(Se(we),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),E("div",{class:R(i(X).e("input-wrapper"))},[ft(E("input",ht({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":Ee[1]||(Ee[1]=we=>Yt(y)?y.value=we:null)},i(l),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(_),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(X).e("input"),style:i(te),onCompositionstart:Ee[2]||(Ee[2]=(...we)=>i(F)&&i(F)(...we)),onCompositionupdate:Ee[3]||(Ee[3]=(...we)=>i(N)&&i(N)(...we)),onCompositionend:Ee[4]||(Ee[4]=(...we)=>i(P)&&i(P)(...we)),onPaste:Ee[5]||(Ee[5]=(...we)=>i(O)&&i(O)(...we)),onInput:Ee[6]||(Ee[6]=(...we)=>i(I)&&i(I)(...we)),onKeydown:Ee[7]||(Ee[7]=(...we)=>i(L)&&i(L)(...we)),onKeyup:Ee[8]||(Ee[8]=(...we)=>i(z)&&i(z)(...we))}),null,16,fZ),[[c6,i(y)]]),E("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(X).e("input-calculator")),textContent:Se(i(y))},null,10,pZ)],2),ft(E("div",{ref_key:"dropIndicatorRef",ref:ue,class:R(i(X).e("drop-indicator"))},null,2),[[$t,i(ne)]])],2),i(me)?(C(),$("div",{key:1,class:R(i(X).e("suffix"))},[oe(ye.$slots,"suffix"),i(ge)?(C(),ie(i(De),{key:0,class:R([i(X).e("icon"),i(X).e("clear")]),onMousedown:Je(i(It),["prevent"]),onClick:i(U)},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&h.value&&d.value?(C(),ie(i(De),{key:1,class:R([i(H).e("icon"),i(H).e("validateIcon"),i(H).is("loading",f.value==="validating")])},{default:ae(()=>[(C(),ie(dt(h.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),vZ=hZ;const mZ=it(vZ),gZ=_e({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ft}}),yZ={click:e=>e instanceof MouseEvent},bZ=["href","target"];var wZ=D({name:"ElLink",__name:"link",props:gZ,emits:yZ,setup(e,{emit:t}){const n=e,a=t,o=_l("link");$o({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>Dt(n.underline)));const l=ve("link"),r=x(()=>{var c;return[l.b(),l.m(n.type??((c=o.value)==null?void 0:c.type)??"default"),l.is("disabled",n.disabled),l.is("underline",s.value==="always"),l.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=x(()=>{var c;return Dt(n.underline)?n.underline?"hover":"never":n.underline??((c=o.value)==null?void 0:c.underline)??"hover"});function u(c){n.disabled||a("click",c)}return(c,d)=>(C(),$("a",{class:R(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(C(),$("span",{key:1,class:R(i(l).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,bZ))}}),CZ=wZ;const _Z=it(CZ),jh="rootMenu",gd="subMenu:";function Ow(e,t){const n=x(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:x(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function SZ(e){return x(()=>{const t=e.backgroundColor;return t?new fn(t).shade(20).toString():""})}const $w=(e,t)=>{const n=ve("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":SZ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},xZ=_e({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ft},expandOpenIcon:{type:Ft},collapseCloseIcon:{type:Ft},collapseOpenIcon:{type:Ft}}),v0="ElSubMenu";var qh=D({name:v0,props:xZ,setup(e,{slots:t,expose:n}){const a=vt(),{indexPath:o,parentMenu:l}=Ow(a,x(()=>e.index)),r=ve("menu"),s=ve("sub-menu"),u=Pe(jh);u||en(v0,"can not inject root menu");const c=Pe(`${gd}${l.value.uid}`);c||en(v0,"can not inject sub menu");const d=V({}),f=V({});let h;const g=V(!1),p=V(),v=V(),m=x(()=>c.level===0),y=x(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),b=x(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:po:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Un),w=x(()=>{const j=e.teleported;return Et(j)?m.value:j}),_=x(()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),S=x(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=x(()=>u.openedMenus.includes(e.index)),T=x(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:j})=>j)),M=x(()=>u.props.mode),A=x(()=>u.props.persistent),O=Rt({index:e.index,indexPath:o,active:T}),I=$w(u.props,c.level+1),L=x(()=>e.popperOffset??u.props.popperOffset),z=x(()=>e.popperClass??u.props.popperClass),q=x(()=>e.popperStyle??u.props.popperStyle),U=x(()=>e.showTimeout??u.props.showTimeout),F=x(()=>e.hideTimeout??u.props.hideTimeout),N=()=>{var j,G,ee;return(ee=(G=(j=v.value)==null?void 0:j.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:ee.destroy()},P=j=>{j||N()},B=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},K=(j,G=U.value)=>{var ee;if(j.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=xs(()=>{u.openMenu(e.index,o.value)},G),w.value&&((ee=l.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),j.type==="mouseenter"&&j.target&&Le(()=>{ku(j.target,{preventScroll:!0})})}},W=(j=!1)=>{var G;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=xs(()=>!g.value&&u.closeMenu(e.index,o.value),F.value),w.value&&j&&((G=c.handleMouseleave)==null||G.call(c,!0))};fe(()=>u.props.collapse,j=>P(!!j));{const j=ee=>{f.value[ee.index]=ee},G=ee=>{delete f.value[ee.index]};wt(`${gd}${a.uid}`,{addSubMenu:j,removeSubMenu:G,handleMouseleave:W,mouseInChild:g,level:c.level+1})}return n({opened:k}),gt(()=>{u.addSubMenu(O),c.addSubMenu(O)}),Lt(()=>{c.removeSubMenu(O),u.removeSubMenu(O)}),()=>{var ee;const j=[(ee=t.title)==null?void 0:ee.call(t),Ye(De,{class:s.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Be(b.value)?Ye(a.appContext.components[b.value]):Ye(b.value)})],G=u.isMenuPopup?Ye(Vn,{ref:v,visible:k.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:A.value,popperClass:z.value,popperStyle:q.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var te;return Ye("div",{class:[r.m(M.value),r.m("popup-container"),z.value],onMouseenter:ue=>K(ue,100),onMouseleave:()=>W(!0),onFocus:ue=>K(ue,100)},[Ye("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:I.value},[(te=t.default)==null?void 0:te.call(t)])])},default:()=>Ye("div",{class:s.e("title"),onClick:B},j)}):Ye(Ke,{},[Ye("div",{class:s.e("title"),ref:p,onClick:B},j),Ye(gf,{},{default:()=>{var te;return ft(Ye("ul",{role:"menu",class:[r.b(),r.m("inline")],style:I.value},[(te=t.default)==null?void 0:te.call(t)]),[[$t,k.value]])}})]);return Ye("li",{class:[s.b(),s.is("active",T.value),s.is("opened",k.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:K,onMouseleave:()=>W(),onFocus:K},[G])}}}),kZ=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener("keydown",n=>{const a=Kt(n);let o=!1;switch(a){case Ce.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case Ce.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case Ce.tab:kc(e,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},EZ=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new kZ(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Kt(e);let n=!1;switch(t){case Ce.down:kc(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case Ce.up:kc(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Ce.tab:kc(e.currentTarget,"mouseleave");break;case Ce.enter:case Ce.numpadEnter:case Ce.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},TZ=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new EZ(n,e)})}},MZ=D({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ve("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ba(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){aa(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Ao(a,t.m("collapse"))?(aa(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ba(a,t.m("collapse"))):(Ba(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),aa(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ba(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(C(),ie(Fn,ht({mode:"out-in"},n),{default:ae(()=>[oe(a.$slots,"default")]),_:3},16))}}),OZ=MZ;const $Z=_e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:J(Array),default:()=>on([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ft,default:()=>wy},popperEffect:{type:J(String),default:"dark"},popperClass:String,popperStyle:{type:J([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),m0=e=>be(e)&&e.every(t=>Be(t)),AZ={close:(e,t)=>Be(e)&&m0(t),open:(e,t)=>Be(e)&&m0(t),select:(e,t,n,a)=>Be(e)&&m0(t)&<(n)&&(Et(a)||a instanceof Promise)},Cg=64;var RZ=D({name:"ElMenu",props:$Z,emits:AZ,setup(e,{emit:t,slots:n,expose:a}){const o=vt(),l=o.appContext.config.globalProperties.$router,r=V(),s=V(),u=ve("menu"),c=ve("sub-menu");let d=Cg;const f=V(-1),h=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=V(e.defaultActive),p=V({}),v=V({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const N=g.value&&p.value[g.value];!N||e.mode==="horizontal"||e.collapse||N.indexPath.forEach(P=>{const B=v.value[P];B&&b(P,B.indexPath)})},b=(N,P)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(B=>P.includes(B))),h.value.push(N),t("open",N,P))},w=N=>{const P=h.value.indexOf(N);P!==-1&&h.value.splice(P,1)},_=(N,P)=>{w(N),t("close",N,P)},S=({index:N,indexPath:P})=>{h.value.includes(N)?_(N,P):b(N,P)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:P,indexPath:B}=N;if(!(gn(P)||gn(B)))if(e.router&&l){const K=N.route||P,W=l.push(K).then(j=>(j||(g.value=P),j));t("select",P,B,{index:P,indexPath:B,route:K},W)}else g.value=P,t("select",P,B,{index:P,indexPath:B})},T=N=>{var B;const P=p.value;g.value=((B=P[N]||g.value&&P[g.value]||P[e.defaultActive])==null?void 0:B.index)??N},M=N=>{const P=getComputedStyle(N),B=Number.parseInt(P.marginLeft,10),K=Number.parseInt(P.marginRight,10);return N.offsetWidth+B+K||0},A=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(r.value),B=Number.parseInt(P.paddingLeft,10),K=Number.parseInt(P.paddingRight,10),W=r.value.clientWidth-B-K;let j=0,G=0;return N.forEach((ee,te)=>{j+=M(ee),j<=W-d&&(G=te+1)}),G===N.length?-1:G},O=N=>v.value[N].indexPath,I=(N,P=33.34)=>{let B;return()=>{B&&clearTimeout(B),B=setTimeout(()=>{N()},P)}};let L=!0;const z=()=>{const N=xn(s);if(N&&(d=M(N)||Cg),f.value===A())return;const P=()=>{f.value=-1,Le(()=>{f.value=A()})};L?P():I(P)(),L=!1};fe(()=>e.defaultActive,N=>{p.value[N]||(g.value=""),T(N)}),fe(()=>e.collapse,N=>{N&&(h.value=[])}),fe(p.value,y);let q;da(()=>{e.mode==="horizontal"&&e.ellipsis?q=Zt(r,z).stop:q==null||q()});const U=V(!1);{const N=W=>{v.value[W.index]=W},P=W=>{delete v.value[W.index]};wt(jh,Rt({props:e,openedMenus:h,items:p,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:W=>{p.value[W.index]=W},removeMenuItem:W=>{delete p.value[W.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:_,handleMenuItemClick:k,handleSubMenuClick:S})),wt(`${gd}${o.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:U,level:0})}gt(()=>{e.mode==="horizontal"&&new TZ(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:B}=v.value[P];B.forEach(K=>b(K,B))},close:w,updateActiveIndex:T,handleResize:z});const F=$w(e,0);return()=>{var W;let N=((W=n.default)==null?void 0:W.call(n))??[];const P=[];if(e.mode==="horizontal"&&r.value){const j=Ta(N).filter(te=>(te==null?void 0:te.shapeFlag)!==8),G=f.value===-1?j:j.slice(0,f.value),ee=f.value===-1?[]:j.slice(f.value);ee!=null&&ee.length&&e.ellipsis&&(N=G,P.push(Ye(qh,{ref:s,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Ye(De,{class:c.e("icon-more")},{default:()=>Ye(e.ellipsisIcon)}),default:()=>ee})))}const B=e.closeOnClickOutside?[[jl,()=>{h.value.length&&(U.value||(h.value.forEach(j=>t("close",j,O(j))),h.value=[]))}]]:[],K=ft(Ye("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...N,...P]),B);return e.collapseTransition&&e.mode==="vertical"?Ye(OZ,()=>K):K}}});const NZ=_e({index:{type:J([String,null]),default:null},route:{type:J([String,Object])},disabled:Boolean}),PZ={click:e=>Be(e.index)&&be(e.indexPath)},IZ={title:String},vc="ElMenuItem";var LZ=D({name:vc,__name:"menu-item",props:NZ,emits:PZ,setup(e,{expose:t,emit:n}){const a=e,o=n;ya(a.index)&&pt(vc,'Missing required prop: "index"');const l=vt(),r=Pe(jh),s=ve("menu"),u=ve("menu-item");r||en(vc,"can not inject root menu");const{parentMenu:c,indexPath:d}=Ow(l,Bt(a,"index")),f=Pe(`${gd}${c.value.uid}`);f||en(vc,"can not inject sub menu");const h=x(()=>a.index===r.activeIndex),g=Rt({index:a.index,indexPath:d,active:h}),p=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return gt(()=>{f.addSubMenu(g),r.addMenuItem(g)}),Lt(()=>{f.removeSubMenu(g),r.removeMenuItem(g)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:s,nsMenuItem:u,handleClick:p}),(v,m)=>(C(),$("li",{class:R([i(u).b(),i(u).is("active",h.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[i(c).type.name==="ElMenu"&&i(r).props.collapse&&v.$slots.title?(C(),ie(i(Vn),{key:0,effect:i(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(r).props.popperClass,"popper-style":i(r).props.popperStyle,persistent:i(r).props.persistent,"focus-on-target":""},{content:ae(()=>[oe(v.$slots,"title")]),default:ae(()=>[E("div",{class:R(i(s).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(C(),$(Ke,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),Aw=LZ,VZ=D({name:"ElMenuItemGroup",__name:"menu-item-group",props:IZ,setup(e){const t=ve("menu-item-group");return(n,a)=>(C(),$("li",{class:R(i(t).b())},[E("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(C(),$(Ke,{key:0},[St(Se(e.title),1)],64))],2),E("ul",null,[oe(n.$slots,"default")])],2))}}),Rw=VZ;const BZ=it(RZ,{MenuItem:Aw,MenuItemGroup:Rw,SubMenu:qh}),zZ=tn(Aw),DZ=tn(Rw),HZ=tn(qh),FZ=_e({icon:{type:Ft,default:()=>dy},title:String,content:{type:String,default:""}}),KZ={back:()=>!0},WZ=["aria-label"];var jZ=D({name:"ElPageHeader",__name:"page-header",props:FZ,emits:KZ,setup(e,{emit:t}){const n=t,{t:a}=kt(),o=ve("page-header");function l(){n("back")}return(r,s)=>(C(),$("div",{class:R([i(o).b(),i(o).is("contentful",!!r.$slots.default),{[i(o).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[i(o).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(C(),$("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(r.$slots,"breadcrumb")],2)):re("v-if",!0),E("div",{class:R(i(o).e("header"))},[E("div",{class:R(i(o).e("left"))},[E("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:l},[e.icon||r.$slots.icon?(C(),$("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(r.$slots,"icon",{},()=>[e.icon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1})):re("v-if",!0)])],10,WZ)):re("v-if",!0),E("div",{class:R(i(o).e("title"))},[oe(r.$slots,"title",{},()=>[St(Se(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),Q(i(gw),{direction:"vertical"}),E("div",{class:R(i(o).e("content"))},[oe(r.$slots,"content",{},()=>[St(Se(e.content),1)])],2)],2),r.$slots.extra?(C(),$("div",{key:0,class:R(i(o).e("extra"))},[oe(r.$slots,"extra")],2)):re("v-if",!0)],2),r.$slots.default?(C(),$("div",{key:1,class:R(i(o).e("main"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),qZ=jZ;const UZ=it(qZ),Nw=Symbol("elPaginationKey"),YZ=_e({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ft}}),GZ={click:e=>e instanceof MouseEvent},XZ=["disabled","aria-label","aria-disabled"],JZ={key:0};var ZZ=D({name:"ElPaginationPrev",__name:"prev",props:YZ,emits:GZ,setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage<=1);return(o,l)=>(C(),$("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.prevText?(C(),$("span",JZ,Se(o.prevText),1)):(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(o.prevIcon)))]),_:1}))],8,XZ))}}),QZ=ZZ;const eQ=_e({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ft}}),tQ=["disabled","aria-label","aria-disabled"],nQ={key:0};var aQ=D({name:"ElPaginationNext",__name:"next",props:eQ,emits:["click"],setup(e){const t=e,{t:n}=kt(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(C(),$("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.nextText?(C(),$("span",nQ,Se(o.nextText),1)):(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(o.nextIcon)))]),_:1}))],8,tQ))}}),oQ=aQ;const Uh=()=>Pe(Nw,{}),lQ=_e({pageSize:{type:Number,required:!0},pageSizes:{type:J(Array),default:()=>on([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:io},appendSizeTo:String});var rQ=D({name:"ElPaginationSizes",__name:"sizes",props:lQ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("pagination"),r=Uh(),s=V(n.pageSize);fe(()=>n.pageSizes,(d,f)=>{an(d,f)||be(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),fe(()=>n.pageSize,d=>{s.value=d});const u=x(()=>n.pageSizes);function c(d){var f;d!==s.value&&(s.value=d,(f=r.handleSizeChange)==null||f.call(r,Number(d)))}return(d,f)=>(C(),$("span",{class:R(i(l).e("sizes"))},[Q(i(Yl),{"model-value":s.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ae(()=>[(C(!0),$(Ke,null,_t(u.value,h=>(C(),ie(i(fd),{key:h,value:h,label:h+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),sQ=rQ;const iQ=_e({size:{type:String,values:io}}),uQ=["disabled"];var cQ=D({name:"ElPaginationJumper",__name:"jumper",props:iQ,setup(e){const{t}=kt(),n=ve("pagination"),{pageCount:a,disabled:o,currentPage:l,changeEvent:r}=Uh(),s=V(),u=x(()=>s.value??(l==null?void 0:l.value));function c(f){s.value=f?+f:""}function d(f){f=Math.trunc(+f),r==null||r(f),s.value=void 0}return(f,h)=>(C(),$("span",{class:R(i(n).e("jump")),disabled:i(o)},[E("span",{class:R([i(n).e("goto")])},Se(i(t)("el.pagination.goto")),3),Q(i(Dn),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),E("span",{class:R([i(n).e("classifier")])},Se(i(t)("el.pagination.pageClassifier")),3)],10,uQ))}}),dQ=cQ;const fQ=_e({total:{type:Number,default:1e3}}),pQ=["disabled"];var hQ=D({name:"ElPaginationTotal",__name:"total",props:fQ,setup(e){const{t}=kt(),n=ve("pagination"),{disabled:a}=Uh();return(o,l)=>(C(),$("span",{class:R(i(n).e("total")),disabled:i(a)},Se(i(t)("el.pagination.total",{total:o.total})),11,pQ))}}),vQ=hQ;const mQ=_e({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),gQ=["aria-current","aria-label","tabindex"],yQ=["tabindex","aria-label"],bQ=["aria-current","aria-label","tabindex"],wQ=["tabindex","aria-label"],CQ=["aria-current","aria-label","tabindex"];var _Q=D({name:"ElPaginationPager",__name:"pager",props:mQ,emits:[bt],setup(e,{emit:t}){const n=e,a=t,o=ve("pager"),l=ve("icon"),{t:r}=kt(),s=V(!1),u=V(!1),c=V(!1),d=V(!1),f=V(!1),h=V(!1),g=x(()=>{const S=n.pagerCount,k=(S-1)/2,T=Number(n.currentPage),M=Number(n.pageCount);let A=!1,O=!1;M>S&&(T>S-k&&(A=!0),T["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),v=x(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),m=x(()=>n.disabled?-1:0);fe(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,k,T])=>{const M=(k-1)/2;let A=!1,O=!1;S>k&&(A=T>k-M,O=TM&&(T=M)),T!==A&&a(bt,T)}return(S,k)=>(C(),$("ul",{class:R(i(o).b()),onClick:_,onKeyup:nn(w,["enter"])},[S.pageCount>0?(C(),$("li",{key:0,class:R([[i(o).is("active",S.currentPage===1),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":i(r)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,gQ)):re("v-if",!0),s.value?(C(),$("li",{key:1,class:R(p.value),tabindex:m.value,"aria-label":i(r)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>y(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>b(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!S.disabled?(C(),ie(i(fl),{key:0})):(C(),ie(i(h2),{key:1}))],42,yQ)):re("v-if",!0),(C(!0),$(Ke,null,_t(g.value,T=>(C(),$("li",{key:T,class:R([[i(o).is("active",S.currentPage===T),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":i(r)("el.pagination.currentPage",{pager:T}),tabindex:m.value},Se(T),11,bQ))),128)),u.value?(C(),$("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(r)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>y()),onMouseleave:k[5]||(k[5]=T=>d.value=!1),onFocus:k[6]||(k[6]=T=>b()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(d.value||h.value)&&!S.disabled?(C(),ie(i(pl),{key:0})):(C(),ie(i(h2),{key:1}))],42,wQ)):re("v-if",!0),S.pageCount>1?(C(),$("li",{key:3,class:R([[i(o).is("active",S.currentPage===S.pageCount),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":i(r)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:m.value},Se(S.pageCount),11,CQ)):re("v-if",!0)],34))}}),SQ=_Q;const la=e=>typeof e!="number",xQ=_e({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>He(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:J(Array),default:()=>on([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ft,default:()=>zo},nextText:{type:String,default:""},nextIcon:{type:Ft,default:()=>Un},teleported:{type:Boolean,default:!0},small:Boolean,size:kn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),kQ={"update:current-page":e=>He(e),"update:page-size":e=>He(e),"size-change":e=>He(e),change:(e,t)=>He(e)&&He(t),"current-change":e=>He(e),"prev-click":e=>He(e),"next-click":e=>He(e)},_g="ElPagination";var EQ=D({name:_g,props:xQ,emits:kQ,setup(e,{emit:t,slots:n}){const{t:a}=kt(),o=ve("pagination"),l=vt().vnode.props||{},r=sy(),s=x(()=>e.small?"small":e.size??r.value);$o({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,d=x(()=>{if(la(e.total)&&la(e.pageCount)||!la(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(la(e.pageCount)){if(!la(e.total)&&!la(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=V(la(e.defaultPageSize)?10:e.defaultPageSize),h=V(la(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=x({get(){return la(e.pageSize)?f.value:e.pageSize},set(S){la(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),p=x(()=>{let S=0;return la(e.pageCount)?la(e.total)||(S=Math.max(1,Math.ceil(e.total/g.value))):S=e.pageCount,S}),v=x({get(){return la(e.currentPage)?h.value:e.currentPage},set(S){let k=S;S<1?k=1:S>p.value&&(k=p.value),la(e.currentPage)&&(h.value=k),u&&(t("update:current-page",k),t("current-change",k))}});fe(p,S=>{v.value>S&&(v.value=S)}),fe([v,g],S=>{t(bt,...S)},{flush:"post"});function m(S){v.value=S}function y(S){g.value=S;const k=p.value;v.value>k&&(v.value=k)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function w(){e.disabled||(v.value+=1,t("next-click",v.value))}function _(S,k){S&&(S.props||(S.props={}),S.props.class=[S.props.class,k].join(" "))}return wt(Nw,{pageCount:p,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:y}),()=>{var I;if(!d.value)return pt(_g,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const S=[],k=[],T=Ye("div",{class:o.e("rightwrapper")},k),M={prev:Ye(QZ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:Ye(dQ,{size:s.value}),pager:Ye(SQ,{currentPage:v.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:Ye(oQ,{disabled:e.disabled,currentPage:v.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:Ye(sQ,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:((I=n==null?void 0:n.default)==null?void 0:I.call(n))??null,total:Ye(vQ,{total:la(e.total)?0:e.total})},A=e.layout.split(",").map(L=>L.trim());let O=!1;return A.forEach(L=>{if(L==="->"){O=!0;return}O?k.push(M[L]):S.push(M[L])}),_(S[0],o.is("first")),_(S[S.length-1],o.is("last")),O&&k.length>0&&(_(k[0],o.is("first")),_(k[k.length-1],o.is("last")),S.push(T)),Ye("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},S)}}});const TQ=it(EQ),MQ=_e({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:C2,default:"primary"},cancelButtonType:{type:String,values:C2,default:"text"},icon:{type:Ft,default:()=>_y},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,persistent:Ht.persistent,width:{type:[String,Number],default:150},virtualTriggering:Po.virtualTriggering,virtualRef:Po.virtualRef}),OQ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var $Q=D({name:"ElPopconfirm",__name:"popconfirm",props:MQ,emits:OQ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=kt(),r=ve("popconfirm"),s=V(),u=V(),c=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),d=()=>{var y,b;(b=(y=u.value)==null?void 0:y.focus)==null||b.call(y)},f=()=>{var y,b;(b=(y=s.value)==null?void 0:y.onClose)==null||b.call(y)},h=x(()=>({width:ln(a.width)})),g=y=>{o("confirm",y),f()},p=y=>{o("cancel",y),f()},v=x(()=>a.confirmButtonText||l("el.popconfirm.confirmButtonText")),m=x(()=>a.cancelButtonText||l("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(y,b)=>(C(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s,trigger:"click",effect:e.effect},y.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ae(()=>[E("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(r).b())},[E("div",{class:R(i(r).e("main"))},[!e.hideIcon&&e.icon?(C(),ie(i(De),{key:0,class:R(i(r).e("icon")),style:qe({color:e.iconColor})},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),St(" "+Se(e.title),1)],2),E("div",{class:R(i(r).e("action"))},[oe(y.$slots,"actions",{confirm:g,cancel:p},()=>[Q(i(An),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:p},{default:ae(()=>[St(Se(m.value),1)]),_:1},8,["type","text"]),Q(i(An),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ae(()=>[St(Se(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),AQ=$Q;const RQ=it(AQ),NQ=_e({trigger:Po.trigger,triggerKeys:Po.triggerKeys,placement:Pc.placement,disabled:Po.disabled,visible:Ht.visible,transition:Ht.transition,popperOptions:Pc.popperOptions,tabindex:Pc.tabindex,content:Ht.content,popperStyle:Ht.popperStyle,popperClass:Ht.popperClass,enterable:{...Ht.enterable,default:!0},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,appendTo:Ht.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),PQ={"update:visible":e=>Dt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},IQ="onUpdate:visible";var LQ=D({name:"ElPopover",__name:"popover",props:NQ,emits:PQ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>a[IQ]),r=ve("popover"),s=V(),u=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),c=x(()=>[{width:ln(a.width)},a.popperStyle]),d=x(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),f=x(()=>a.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var y;(y=s.value)==null||y.hide()},g=()=>{o("before-enter")},p=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:h}),(y,b)=>(C(),ie(i(Vn),ht({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":l.value,onBeforeShow:g,onBeforeHide:p,onShow:v,onHide:m}),{content:ae(()=>[e.title?(C(),$("div",{key:0,class:R(i(r).e("title")),role:"title"},Se(e.title),3)):re("v-if",!0),oe(y.$slots,"default",{hide:h},()=>[St(Se(e.content),1)])]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),VQ=LQ;const Sg=(e,t)=>{var a;const n=(a=t.arg||t.value)==null?void 0:a.popperRef;n&&(n.triggerRef=e)};var BQ={mounted(e,t){Sg(e,t)},updated(e,t){Sg(e,t)}};const zQ="popover",Pw=W$(BQ,zQ),DQ=it(VQ,{directive:Pw}),HQ=_e({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:J(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:J([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:J(Function),default:e=>`${e}%`}}),FQ=["aria-valuenow"],KQ={viewBox:"0 0 100 100"},WQ=["d","stroke","stroke-linecap","stroke-width"],jQ=["d","stroke","opacity","stroke-linecap","stroke-width"],qQ={key:0};var UQ=D({name:"ElProgress",__name:"progress",props:HQ,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ve("progress"),o=x(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=b(n.percentage);return _.includes("gradient")?w.background=_:w.backgroundColor=_,w}),l=x(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),s=x(()=>{const w=r.value,_=n.type==="dashboard";return` - M 50 50 - m 0 ${_?"":"-"}${w} - a ${w} ${w} 0 1 1 0 ${_?"-":""}${w*2} - a ${w} ${w} 0 1 1 0 ${_?"":"-"}${w*2} - `}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),p=x(()=>n.status==="warning"?Lu:n.type==="line"?n.status==="success"?df:ho:n.status==="success"?Gs:Na),v=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=x(()=>n.format(n.percentage));function y(w){const _=100/w.length;return w.map((S,k)=>Be(S)?{color:S,percentage:(k+1)*_}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:_}=n;if(Fe(_))return _(w);if(Be(_))return _;{const k=y(_);for(const T of k)if(T.percentage>w)return T.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,_)=>(C(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(C(),$("div",{key:0,class:R(i(a).b("bar"))},[E("div",{class:R(i(a).be("bar","outer")),style:qe({height:`${e.strokeWidth}px`})},[E("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:qe(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(C(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(w.$slots,"default",{percentage:e.percentage},()=>[E("span",null,Se(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(C(),$("div",{key:1,class:R(i(a).b("circle")),style:qe({height:`${e.width}px`,width:`${e.width}px`})},[(C(),$("svg",KQ,[E("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:qe(f.value)},null,14,WQ),E("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:qe(h.value)},null,14,jQ)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(C(),$("div",{key:2,class:R(i(a).e("text")),style:qe({fontSize:`${v.value}px`})},[oe(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(C(),ie(i(De),{key:1},{default:ae(()=>[(C(),ie(dt(p.value)))]),_:1})):(C(),$("span",qQ,Se(m.value),1))])],6)):re("v-if",!0)],10,FQ))}}),YQ=UQ;const Iw=it(YQ),GQ=_e({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>on(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[gi,gi,gi]},voidIcon:{type:Ft,default:()=>Oy},disabledVoidIcon:{type:Ft,default:()=>gi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>on(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:kn,clearable:Boolean,...oa(["ariaLabel"])}),XQ={[bt]:e=>He(e),[ot]:e=>He(e)},JQ=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],ZQ=["onMousemove","onClick"];var QQ=D({name:"ElRate",__name:"rate",props:GQ,emits:XQ,setup(e,{expose:t,emit:n}){function a(P,B){const K=j=>lt(j),W=B[Object.keys(B).map(j=>+j).filter(j=>{const G=B[j];return K(G)&&G.excluded?Pj-G)[0]];return K(W)&&W.value||W}const o=e,l=n,r=Pe(Do,void 0),s=_n(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=Pa(o,{formItemContext:r}),f=V(fr(o.modelValue,0,o.max)),h=V(-1),g=V(!0),p=V([]),v=x(()=>p.value.map(P=>P.$el.clientWidth)),m=x(()=>[u.b(),u.m(s.value)]),y=rn(),b=x(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":k.value})),w=x(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),_=x(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=x(()=>be(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),k=x(()=>{const P=a(f.value,S.value);return lt(P)?"":P}),T=x(()=>{let P="";return y.value?P=`${_.value}%`:o.allowHalf&&(P="50%"),{color:k.value,width:P}}),M=x(()=>{let P=be(o.icons)?[...o.icons]:{...o.icons};return P=Oo(P),be(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),A=x(()=>a(o.modelValue,M.value)),O=x(()=>y.value?Be(o.disabledVoidIcon)?o.disabledVoidIcon:Oo(o.disabledVoidIcon):Be(o.voidIcon)?o.voidIcon:Oo(o.voidIcon)),I=x(()=>a(f.value,M.value));function L(P){const B=y.value&&_.value>0&&P-1o.modelValue,K=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return B||K}function z(P){o.clearable&&P===o.modelValue&&(P=0),l(ot,P),o.modelValue!==P&&l(bt,P)}function q(P){y.value||(o.allowHalf&&g.value?z(f.value):z(P))}function U(P){if(y.value)return;const B=Kt(P),K=o.allowHalf?.5:1;let W=f.value;switch(B){case Ce.up:case Ce.right:W+=K;break;case Ce.left:case Ce.down:W-=K;break}if(W=fr(W,0,o.max),W!==f.value)return P.stopPropagation(),P.preventDefault(),l(ot,W),l(bt,W),W}function F(P,B){y.value||(o.allowHalf&&B?(g.value=B.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,h.value=P)}function N(){y.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=fr(o.modelValue,0,o.max),h.value=-1)}return fe(()=>o.modelValue,P=>{f.value=fr(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||l(ot,0),t({setCurrentValue:F,resetCurrentValue:N}),(P,B)=>{var K;return C(),$("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(y))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?(K=i(r))==null?void 0:K.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:qe(b.value),tabindex:i(y)?void 0:0,"aria-disabled":i(y),onKeydown:U},[(C(!0),$(Ke,null,_t(e.max,(W,j)=>(C(),$("span",{key:j,class:R(i(u).e("item")),onMousemove:G=>F(W,G),onMouseleave:N,onClick:G=>q(W)},[Q(i(De),{ref_for:!0,ref_key:"iconRefs",ref:p,class:R([i(u).e("icon"),{hover:h.value===W},i(u).is("active",W<=f.value),i(u).is("focus-visible",W===Math.ceil(f.value||1))])},{default:ae(()=>[ft((C(),ie(dt(I.value),null,null,512)),[[$t,!L(W)&&W<=f.value]]),ft((C(),ie(dt(O.value),null,null,512)),[[$t,!L(W)&&W>f.value]]),ft((C(),ie(dt(O.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[$t,L(W)]]),ft(Q(i(De),{style:qe(T.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ae(()=>[(C(),ie(dt(A.value)))]),_:1},8,["style","class"]),[[$t,L(W)]])]),_:2},1032,["class"])],42,ZQ))),128)),e.showText||e.showScore?(C(),$("span",{key:0,class:R(i(u).e("text")),style:qe({color:e.textColor})},Se(w.value),7)):re("v-if",!0)],46,JQ)}}}),eee=QQ;const tee=it(eee),ur={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},xg={[ur.primary]:Ns,[ur.success]:hy,[ur.warning]:Lu,[ur.error]:ff,[ur.info]:Ns},nee=_e({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var aee=D({name:"ElResult",__name:"result",props:nee,setup(e){const t=e,n=ve("result"),a=x(()=>{const o=t.icon,l=o&&ur[o]?ur[o]:"icon-info";return{class:l,component:xg[l]||xg["icon-info"]}});return(o,l)=>(C(),$("div",{class:R(i(n).b())},[E("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(C(),ie(dt(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(C(),$("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[E("p",null,Se(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(C(),$("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[E("p",null,Se(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(C(),$("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),oee=aee;const lee=it(oee),R2=50,yd="itemRendered",bd="scroll",ss="forward",wd="backward",za="auto",wf="smart",lu="start",To="center",ru="end",Ls="horizontal",Lw="vertical",ree="ltr",ms="rtl",su="negative",Yh="positive-ascending",Gh="positive-descending",see={[Ls]:"left",[Lw]:"top"},iee=20,N2=fo({type:J([Number,Function]),required:!0}),P2=fo({type:Number}),I2=fo({type:Number,default:2}),uee=fo({type:String,values:["ltr","rtl"],default:"ltr"}),L2=fo({type:Number,default:0}),Cd=fo({type:Number,required:!0}),Vw=fo({type:String,values:["horizontal","vertical"],default:Lw}),Bw=_e({className:{type:String,default:""},containerElement:{type:J([String,Object]),default:"div"},data:{type:J(Array),default:()=>on([])},direction:uee,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:J(Object),default:()=>({})},style:{type:J([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),zw=_e({cache:I2,estimatedItemSize:P2,layout:Vw,initScrollOffset:L2,total:Cd,itemSize:N2,...Bw}),V2={type:Number,default:6},Dw={type:Number,default:0},Hw={type:Number,default:2},xr=_e({columnCache:I2,columnWidth:N2,estimatedColumnWidth:P2,estimatedRowHeight:P2,initScrollLeft:L2,initScrollTop:L2,itemKey:{type:J(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:I2,rowHeight:N2,totalColumn:Cd,totalRow:Cd,hScrollbarSize:V2,vScrollbarSize:V2,scrollbarStartGap:Dw,scrollbarEndGap:Hw,role:String,...Bw}),Fw=_e({alwaysOn:Boolean,class:String,layout:Vw,total:Cd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:V2,startGap:Dw,endGap:Hw,visible:Boolean}),mr=(e,t)=>ee===ree||e===ms||e===Ls,kg=e=>e===ms;let Qr=null;function _d(e=!1){if(Qr===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?Qr=Gh:(t.scrollLeft=1,t.scrollLeft===0?Qr=su:Qr=Yh),document.body.removeChild(t),Qr}return Qr}function cee({move:e,size:t,bar:n},a){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,a==="horizontal"?o.height="100%":o.width="100%",o}var Eg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dee(e,t){return!!(e===t||Eg(e)&&Eg(t))}function fee(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=vt().proxy.$props;return x(()=>{const t=(n,a,o)=>({});return e.perfMode?Zd(t):pee(t)})},Ww=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{cl(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===Ls?c:d;r(f)||(l+=f,!qd()&&f!==0&&u.preventDefault(),o=Fa(()=>{a(l),l=0}))}}},B2=D({name:"ElVirtualScrollBar",props:Fw,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=ve("virtual-scrollbar"),o=ve("scrollbar"),l=V(),r=V();let s=null,u=null;const c=Rt({isDragging:!1,traveled:0}),d=x(()=>Uy[e.layout]),f=x(()=>e.clientSize-i(n)),h=x(()=>({position:"absolute",width:`${Ls===e.layout?f.value:e.scrollbarSize}px`,height:`${Ls===e.layout?e.scrollbarSize:f.value}px`,[see[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=x(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,iee),T))}),p=x(()=>{if(!Number.isFinite(g.value))return{display:"none"};const k=`${g.value}px`;return cee({bar:d.value,size:k,move:c.traveled},e.layout)}),v=x(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",w);const k=i(r);k&&(u=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",_,{passive:!0}),k.addEventListener("touchend",w))},y=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const k=i(r);k&&(k.removeEventListener("touchmove",_),k.removeEventListener("touchend",w))},b=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[d.value.axis]=k.currentTarget[d.value.offset]-(k[d.value.client]-k.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),y()},_=k=>{const{isDragging:T}=c;if(!T||!r.value||!l.value)return;const M=c[d.value.axis];if(!M)return;cl(s);const A=(l.value.getBoundingClientRect()[d.value.direction]-k[d.value.client])*-1-(r.value[d.value.offset]-M);s=Fa(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=k=>{const T=Math.abs(k.target.getBoundingClientRect()[d.value.direction]-k[d.value.client])-r.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(T,v.value)),t("scroll",T,v.value)};return fe(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*v.value))}),Lt(()=>{y()}),()=>Ye("div",{role:"presentation",ref:l,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Je(S,["stop","prevent"]),onTouchstartPrevent:b},Ye("div",{ref:r,class:o.e("thumb"),style:p.value,onMousedown:b},[]))}}),jw=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:s,clearCache:u,validateProps:c})=>D({name:e??"ElVirtualList",props:zw,emits:[yd,bd],setup(d,{emit:f,expose:h}){c(d);const g=vt(),p=ve("vl"),v=V(s(d,g)),m=Kw(),y=V(),b=V(),w=V(),_=V({isScrolling:!1,scrollDir:"forward",scrollOffset:He(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=x(()=>{const{total:G,cache:ee}=d,{isScrolling:te,scrollDir:ue,scrollOffset:ne}=i(_);if(G===0)return[0,0,0,0];const de=l(d,ne,i(v)),se=r(d,de,ne,i(v)),Y=!te||ue===wd?Math.max(1,ee):1,X=!te||ue===ss?Math.max(1,ee):1;return[Math.max(0,de-Y),Math.max(0,Math.min(G-1,se+X)),de,se]}),k=x(()=>o(d,i(v))),T=x(()=>iu(d.layout)),M=x(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:He(d.height)?`${d.height}px`:d.height,width:He(d.width)?`${d.width}px`:d.width},d.style]),A=x(()=>{const G=i(k),ee=i(T);return{height:ee?"100%":`${G}px`,pointerEvents:i(_).isScrolling?"none":void 0,width:ee?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),O=x(()=>T.value?d.width:d.height),{onWheel:I}=Ww({atStartEdge:x(()=>_.value.scrollOffset<=0),atEndEdge:x(()=>_.value.scrollOffset>=k.value),layout:x(()=>d.layout)},G=>{var ee,te;(te=(ee=w.value).onMouseUp)==null||te.call(ee),N(Math.min(_.value.scrollOffset+G,k.value-O.value))});Vt(y,"wheel",I,{passive:!1});const L=()=>{const{total:G}=d;if(G>0){const[ne,de,se,Y]=i(S);f(yd,ne,de,se,Y)}const{scrollDir:ee,scrollOffset:te,updateRequested:ue}=i(_);f(bd,ee,te,ue)},z=G=>{const{clientHeight:ee,scrollHeight:te,scrollTop:ue}=G.currentTarget,ne=i(_);if(ne.scrollOffset===ue)return;const de=Math.max(0,Math.min(ue,te-ee));_.value={...ne,isScrolling:!0,scrollDir:mr(ne.scrollOffset,de),scrollOffset:de,updateRequested:!1},Le(K)},q=G=>{const{clientWidth:ee,scrollLeft:te,scrollWidth:ue}=G.currentTarget,ne=i(_);if(ne.scrollOffset===te)return;const{direction:de}=d;let se=te;if(de===ms)switch(_d()){case su:se=-te;break;case Gh:se=ue-ee-te;break}se=Math.max(0,Math.min(se,ue-ee)),_.value={...ne,isScrolling:!0,scrollDir:mr(ne.scrollOffset,se),scrollOffset:se,updateRequested:!1},Le(K)},U=G=>{i(T)?q(G):z(G),L()},F=(G,ee)=>{const te=(k.value-O.value)/ee*G;N(Math.min(k.value-O.value,te))},N=G=>{G=Math.max(G,0),G!==i(_).scrollOffset&&(_.value={...i(_),scrollOffset:G,scrollDir:mr(i(_).scrollOffset,G),updateRequested:!0},Le(K))},P=(G,ee=za)=>{const{scrollOffset:te}=i(_);G=Math.max(0,Math.min(G,d.total-1)),N(t(d,G,ee,te,i(v)))},B=G=>{const{direction:ee,itemSize:te,layout:ue}=d,ne=m.value(u&&te,u&&ue,u&&ee);let de;if(Mt(ne,String(G)))de=ne[G];else{const se=a(d,G,i(v)),Y=n(d,G,i(v)),X=i(T),H=ee===ms,Z=X?se:0;ne[G]=de={position:"absolute",left:H?void 0:`${Z}px`,right:H?`${Z}px`:void 0,top:X?0:`${se}px`,height:X?"100%":`${Y}px`,width:X?`${Y}px`:"100%"}}return de},K=()=>{_.value.isScrolling=!1,Le(()=>{m.value(-1,null,null)})},W=()=>{const G=y.value;G&&(G.scrollTop=0)};gt(()=>{if(!At)return;const{initScrollOffset:G}=d,ee=i(y);He(G)&&ee&&(i(T)?ee.scrollLeft=G:ee.scrollTop=G),L()}),so(()=>{const{direction:G,layout:ee}=d,{scrollOffset:te,updateRequested:ue}=i(_),ne=i(y);if(ue&&ne)if(ee===Ls)if(G===ms)switch(_d()){case su:ne.scrollLeft=-te;break;case Yh:ne.scrollLeft=te;break;default:{const{clientWidth:de,scrollWidth:se}=ne;ne.scrollLeft=se-de-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te}),vu(()=>{i(y).scrollTop=i(_).scrollOffset});const j={ns:p,clientSize:O,estimatedTotalSize:k,windowStyle:M,windowRef:y,innerRef:b,innerStyle:A,itemsToRender:S,scrollbarRef:w,states:_,getItemStyle:B,onScroll:U,onScrollbarScroll:F,onWheel:I,scrollTo:N,scrollToItem:P,resetScrollTop:W};return h({windowRef:y,innerRef:b,getItemStyleCache:m,scrollTo:N,scrollToItem:P,resetScrollTop:W,states:_}),j},render(d){var K;const{$slots:f,className:h,clientSize:g,containerElement:p,data:v,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:_,total:S,onScroll:k,onScrollbarScroll:T,states:M,useIsScrolling:A,windowStyle:O,ns:I}=d,[L,z]=b,q=dt(p),U=dt(y),F=[];if(S>0)for(let W=L;W<=z;W++)F.push(Ye(Ke,{key:W},(K=f.default)==null?void 0:K.call(f,{data:v,index:W,isScrolling:A?M.isScrolling:void 0,style:m(W)})));const N=[Ye(U,ht(d.innerProps,{style:w,ref:"innerRef"}),Be(U)?F:{default:()=>F})],P=Ye(B2,{ref:"scrollbarRef",clientSize:g,layout:_,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-g),total:S,alwaysOn:M.scrollbarAlwaysOn}),B=Ye(q,{class:[I.e("window"),h],style:O,onScroll:k,ref:"windowRef",key:0},Be(q)?[N]:{default:()=>[N]});return Ye("div",{key:0,class:[I.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,P])}}),qw=jw({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},l,r,s)=>{const u=iu(a)?o:e;Be(u)&&en("[ElVirtualList]",` - You should set - width/height - to number when your layout is - horizontal/vertical - `);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===wf&&(s>=f-u&&s<=d+u?r=za:r=To),r){case lu:return d;case ru:return f;case To:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case za:default:return s>=f&&s<=d?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,r)=>{const s=l*n,u=iu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),hee="ElDynamicSizeList",is=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},vee=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?Uw(e,t,0,o,n):mee(e,t,Math.max(0,o),n)},Uw=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=is(e,l,t).offset;if(r===o)return l;ro&&(a=l-1)}return Math.max(0,n-1)},mee=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},gee=jw({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>is(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Tg,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=iu(r)?s:l,c=is(e,t,o),d=Tg(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===wf&&(a>=h-u&&a<=f+u?n=za:n=To),n){case lu:return f;case ru:return h;case To:return Math.round(h+(f-h)/2);case za:default:return a>=h&&a<=f?a:avee(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=iu(r)?s:o,c=is(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&en(hee,` - itemSize is required as function, but the given value was ${typeof e} - `)}}),yee=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{cl(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=h,d.preventDefault(),l=Fa(()=>{o(r,s),r=0,s=0})}}},bee=(e,t,n,a,o,l,r)=>{const s=V(0),u=V(0);let c,d=0,f=0;const h=p=>{cl(c),s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),cl(c),d+=s.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Fa(()=>{const v=a.value-i(l),m=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Vt(e,"touchstart",h,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},Yw=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>D({name:e??"ElVirtualList",props:xr,emits:[yd,bd],setup(v,{emit:m,expose:y,slots:b}){const w=ve("vl");p(v);const _=vt(),S=V(h(v,_));g==null||g(_,S);const k=V(),T=V(),M=V(),A=V(),O=V({isScrolling:!1,scrollLeft:He(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:He(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ss,yAxisScrollDir:ss}),I=Kw(),L=x(()=>Number.parseInt(`${v.height}`,10)),z=x(()=>Number.parseInt(`${v.width}`,10)),q=x(()=>{const{totalColumn:ye,totalRow:Ee,columnCache:we}=v,{isScrolling:Ie,xAxisScrollDir:ze,scrollLeft:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=a(v,et,i(S)),at=o(v,nt,et,i(S)),Me=!Ie||ze===wd?Math.max(1,we):1,Ge=!Ie||ze===ss?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(ye-1,at+Ge)),nt,at]}),U=x(()=>{const{totalColumn:ye,totalRow:Ee,rowCache:we}=v,{isScrolling:Ie,yAxisScrollDir:ze,scrollTop:et}=i(O);if(ye===0||Ee===0)return[0,0,0,0];const nt=d(v,et,i(S)),at=f(v,nt,et,i(S)),Me=!Ie||ze===wd?Math.max(1,we):1,Ge=!Ie||ze===ss?Math.max(1,we):1;return[Math.max(0,nt-Me),Math.max(0,Math.min(Ee-1,at+Ge)),nt,at]}),F=x(()=>l(v,i(S))),N=x(()=>r(v,i(S))),P=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:He(v.height)?`${v.height}px`:v.height,width:He(v.width)?`${v.width}px`:v.width},v.style??{}]),B=x(()=>{const ye=`${i(N)}px`;return{height:`${i(F)}px`,pointerEvents:i(O).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:ye,totalRow:Ee}=v;if(ye>0&&Ee>0){const[at,Me,Ge,ut]=i(q),[je,tt,yt,he]=i(U);m(yd,{columnCacheStart:at,columnCacheEnd:Me,rowCacheStart:je,rowCacheEnd:tt,columnVisibleStart:Ge,columnVisibleEnd:ut,rowVisibleStart:yt,rowVisibleEnd:he})}const{scrollLeft:we,scrollTop:Ie,updateRequested:ze,xAxisScrollDir:et,yAxisScrollDir:nt}=i(O);m(bd,{xAxisScrollDir:et,scrollLeft:we,yAxisScrollDir:nt,scrollTop:Ie,updateRequested:ze})},W=ye=>{const{clientHeight:Ee,clientWidth:we,scrollHeight:Ie,scrollLeft:ze,scrollTop:et,scrollWidth:nt}=ye.currentTarget,at=i(O);if(at.scrollTop===et&&at.scrollLeft===ze)return;let Me=ze;if(kg(v.direction))switch(_d()){case su:Me=-ze;break;case Gh:Me=nt-we-ze;break}O.value={...at,isScrolling:!0,scrollLeft:Me,scrollTop:Math.max(0,Math.min(et,Ie-Ee)),updateRequested:!0,xAxisScrollDir:mr(at.scrollLeft,Me),yAxisScrollDir:mr(at.scrollTop,et)},Le(()=>H()),Z(),K()},j=(ye,Ee)=>{const we=i(L),Ie=(F.value-we)/Ee*ye;te({scrollTop:Math.min(F.value-we,Ie)})},G=(ye,Ee)=>{const we=i(z),Ie=(N.value-we)/Ee*ye;te({scrollLeft:Math.min(N.value-we,Ie)})},{onWheel:ee}=yee({atXStartEdge:x(()=>O.value.scrollLeft<=0),atXEndEdge:x(()=>O.value.scrollLeft>=N.value-i(z)),atYStartEdge:x(()=>O.value.scrollTop<=0),atYEndEdge:x(()=>O.value.scrollTop>=F.value-i(L))},(ye,Ee)=>{var ze,et,nt,at;(et=(ze=T.value)==null?void 0:ze.onMouseUp)==null||et.call(ze),(at=(nt=M.value)==null?void 0:nt.onMouseUp)==null||at.call(nt);const we=i(z),Ie=i(L);te({scrollLeft:Math.min(O.value.scrollLeft+ye,N.value-we),scrollTop:Math.min(O.value.scrollTop+Ee,F.value-Ie)})});Vt(k,"wheel",ee,{passive:!1});const te=({scrollLeft:ye=O.value.scrollLeft,scrollTop:Ee=O.value.scrollTop})=>{ye=Math.max(ye,0),Ee=Math.max(Ee,0);const we=i(O);Ee===we.scrollTop&&ye===we.scrollLeft||(O.value={...we,xAxisScrollDir:mr(we.scrollLeft,ye),yAxisScrollDir:mr(we.scrollTop,Ee),scrollLeft:ye,scrollTop:Ee,updateRequested:!0},Le(()=>H()),Z(),K())},{touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se}=bee(k,O,te,N,F,z,L),Y=(ye=0,Ee=0,we=za)=>{const Ie=i(O);Ee=Math.max(0,Math.min(Ee,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const ze=$8(w.namespace.value),et=i(S),nt=l(v,et),at=r(v,et);te({scrollLeft:s(v,Ee,we,Ie.scrollLeft,et,at>v.width?ze:0),scrollTop:u(v,ye,we,Ie.scrollTop,et,nt>v.height?ze:0)})},X=(ye,Ee)=>{const{columnWidth:we,direction:Ie,rowHeight:ze}=v,et=I.value(t&&we,t&&ze,t&&Ie),nt=`${ye},${Ee}`;if(Mt(et,nt))return et[nt];{const[,at]=n(v,Ee,i(S)),Me=i(S),Ge=kg(Ie),[ut,je]=c(v,ye,Me),[tt]=n(v,Ee,Me);return et[nt]={position:"absolute",left:Ge?void 0:`${at}px`,right:Ge?`${at}px`:void 0,top:`${je}px`,height:`${ut}px`,width:`${tt}px`},et[nt]}},H=()=>{O.value.isScrolling=!1,Le(()=>{I.value(-1,null,null)})};gt(()=>{if(!At)return;const{initScrollLeft:ye,initScrollTop:Ee}=v,we=i(k);we&&(He(ye)&&(we.scrollLeft=ye),He(Ee)&&(we.scrollTop=Ee)),K()});const Z=()=>{const{direction:ye}=v,{scrollLeft:Ee,scrollTop:we,updateRequested:Ie}=i(O),ze=i(k);if(Ie&&ze){if(ye===ms)switch(_d()){case su:ze.scrollLeft=-Ee;break;case Yh:ze.scrollLeft=Ee;break;default:{const{clientWidth:et,scrollWidth:nt}=ze;ze.scrollLeft=nt-et-Ee;break}}else ze.scrollLeft=Math.max(0,Ee);ze.scrollTop=Math.max(0,we)}},{resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge}=_.proxy;y({windowRef:k,innerRef:A,getItemStyleCache:I,touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se,scrollTo:te,scrollToItem:Y,states:O,resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge});const me=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:Ee,scrollbarEndGap:we,totalColumn:Ie,totalRow:ze}=v,et=i(z),nt=i(L),at=i(N),Me=i(F),{scrollLeft:Ge,scrollTop:ut}=i(O);return{horizontalScrollbar:Ye(B2,{ref:T,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("horizontal"),clientSize:et,layout:"horizontal",onScroll:G,ratio:et*100/at,scrollFrom:Ge/(at-et),total:ze,visible:!0}),verticalScrollbar:Ye(B2,{ref:M,alwaysOn:ye,startGap:Ee,endGap:we,class:w.e("vertical"),clientSize:nt,layout:"vertical",onScroll:j,ratio:nt*100/Me,scrollFrom:ut/(Me-nt),total:Ie,visible:!0})}},Ae=()=>{var ut;const[ye,Ee]=i(q),[we,Ie]=i(U),{data:ze,totalColumn:et,totalRow:nt,useIsScrolling:at,itemKey:Me}=v,Ge=[];if(nt>0&&et>0)for(let je=we;je<=Ie;je++)for(let tt=ye;tt<=Ee;tt++){const yt=Me({columnIndex:tt,data:ze,rowIndex:je});Ge.push(Ye(Ke,{key:yt},(ut=b.default)==null?void 0:ut.call(b,{columnIndex:tt,data:ze,isScrolling:at?i(O).isScrolling:void 0,style:X(je,tt),rowIndex:je})))}return Ge},Ne=()=>{const ye=dt(v.innerElement),Ee=Ae();return[Ye(ye,ht(v.innerProps,{style:i(B),ref:A}),Be(ye)?Ee:{default:()=>Ee})]};return()=>{const ye=dt(v.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:we}=me(),Ie=Ne();return Ye("div",{key:0,class:w.e("wrapper"),role:v.role},[Ye(ye,{class:v.className,style:i(P),onScroll:W,ref:k},Be(ye)?Ie:{default:()=>Ie}),Ee,we])}}}),Mg="ElFixedSizeGrid",wee=Yw({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,s)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+s+t);switch(o==="smart"&&(l>=d-n&&l<=c+n?o=za:o=To),o){case lu:return c;case ru:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||l{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+s+e);switch(o===wf&&(l>=d-t&&l<=c+t?o=za:o=To),o){case lu:return c;case ru:return d;case To:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case za:default:return l>=d&&l<=c?l:d>c||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{He(e)||en(Mg,` - "columnWidth" must be passed as number, - instead ${typeof e} was given. - `),He(t)||en(Mg,` - "columnWidth" must be passed as number, - instead ${typeof t} was given. - `)}}),{max:Sd,min:Gw,floor:Xw}=Math,Og="ElDynamicSizeGrid",Cee={column:"columnWidth",row:"rowHeight"},z2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Go=(e,t,n,a)=>{const[o,l,r]=[n[a],e[Cee[a]],n[z2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[z2[a]]=t}return o[t]},Jw=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+Xw((a-n)/2),s=Go(e,r,t,l).offset;if(s===o)return r;s{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[o,l]=[t[a],t[z2[a]]];return(l>0?o[l].offset:0)>=n?Jw(e,t,0,l,n,a):_ee(e,t,Sd(0,l),n,a)},Zw=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},Qw=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},See={column:Qw,row:Zw},Ag=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,See[l]],c=Go(e,t,o,l),d=Sd(0,Gw(u(e,o)-s,c.offset)),f=Sd(0,c.offset-s+r+c.size);switch(n===wf&&(a>=f-s&&a<=d+s?n=za:n=To),n){case lu:return d;case ru:return f;case To:return Math.round(f+(d-f)/2);case za:default:return a>=f&&a<=d?a:f>d||a{const a=Go(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Go(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>Ag(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>Ag(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>$g(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=Go(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;s$g(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=Go(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=Et(s)?!0:s,He(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=R2,estimatedRowHeight:t=R2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Fe(e)||en(Og,` - "columnWidth" must be passed as function, - instead ${typeof e} was given. - `),Fe(t)||en(Og,` - "rowHeight" must be passed as function, - instead ${typeof t} was given. - `)}}),Xh=Symbol("ElSelectV2Injection"),kee=_e({allowCreate:Boolean,autocomplete:{type:J(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:ho},effect:{type:J(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:J(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:J(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:J(Array),required:!0},placeholder:{type:String},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:kn,props:{type:J(Object),default:()=>dd},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:J(String),values:Ho,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tagType:{...hl.type,default:"info"},tagEffect:{...hl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||He(e)}},suffixIcon:{type:Ft,default:po},...Wr,...oa(["ariaLabel"])}),Eee=_e({data:Array,disabled:Boolean,hovering:Boolean,item:{type:J(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),Tee={[ot]:e=>!0,[bt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Mee={hover:e=>He(e),select:(e,t)=>!0};var Oee=D({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function $ee(e,t,n,a,o,l){return C(),$("div",{class:R(e.ns.be("group","title")),style:qe({...e.style,lineHeight:`${e.height}px`})},Se(e.item.label),7)}var Aee=En(Oee,[["render",$ee]]);function Ree(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Nee=D({props:Eee,emits:Mee,setup(e,{emit:t}){const n=Pe(Xh),a=ve("select"),{hoverItem:o,selectOptionClick:l}=Ree(e,{emit:t}),{getLabel:r}=zu(n.props),s=n.contentId;return{ns:a,contentId:s,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Ar(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:l,getLabel:r}}});const Pee=["id","aria-selected","aria-disabled"];function Iee(e,t,n,a,o,l){return C(),$("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:qe(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Je((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,Se(e.getLabel(e.item)),1)])],46,Pee)}var Lee=En(Nee,[["render",Iee]]);const Vee={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var Bee=D({name:"ElSelectDropdown",props:Vee,setup(e,{slots:t,expose:n}){const a=Pe(Xh),o=ve("select"),{getLabel:l,getValue:r,getDisabled:s}=zu(a.props),u=V([]),c=V(),d=x(()=>e.data.length);fe(()=>d.value,()=>{var O,I;(I=(O=a.tooltipRef.value)==null?void 0:O.updatePopper)==null||I.call(O)});const f=x(()=>Et(a.props.estimatedOptionHeight)),h=x(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:O=>u.value[O]}),g=(O=[],I)=>{const{props:{valueKey:L}}=a;return lt(I)?O&&O.some(z=>jt(bn(z,L))===bn(I,L)):O.includes(I)},p=(O,I)=>{if(lt(I)){const{valueKey:L}=a.props;return bn(O,L)===bn(I,L)}else return O===I},v=(O,I)=>a.props.multiple?g(O,r(I)):p(O,r(I)),m=(O,I)=>{const{disabled:L,multiple:z,multipleLimit:q}=a.props;return L||!I&&(z?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:c,isSized:f,isItemDisabled:m,isItemHovering:y,isItemSelected:v,scrollToItem:O=>{const I=c.value;I&&I.scrollToItem(O)},resetScrollTop:()=>{const O=c.value;O&&O.resetScrollTop()}});const _=O=>{const{index:I,data:L,style:z}=O,q=i(f),{itemSize:U,estimatedSize:F}=i(h),{modelValue:N}=a.props,{onSelect:P,onHover:B}=a,K=L[I];if(K.type==="Group")return Q(Aee,{item:K,style:z,height:q?U:F},null);const W=v(N,K),j=m(N,W),G=y(I);return Q(Lee,ht(O,{selected:W,disabled:s(K)||j,created:!!K.created,hovering:G,item:K,onSelect:P,onHover:B}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Q("span",null,[l(K)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=a,T=()=>{S("forward")},M=()=>{S("backward")},A=O=>{const I=Kt(O),{tab:L,esc:z,down:q,up:U,enter:F,numpadEnter:N}=Ce;switch([z,q,U,F,N].includes(I)&&(O.preventDefault(),O.stopPropagation()),I){case L:case z:break;case q:T();break;case U:M();break;case F:case N:k();break}};return()=>{var N,P,B,K;const{data:O,width:I}=e,{height:L,multiple:z,scrollbarAlwaysOn:q}=a.props,U=x(()=>ed?!0:q),F=i(f)?qw:gee;return Q("div",{class:[o.b("dropdown"),o.is("multiple",z)],style:{width:`${I}px`}},[(N=t.header)==null?void 0:N.call(t),((P=t.loading)==null?void 0:P.call(t))||((B=t.empty)==null?void 0:B.call(t))||Q(F,ht({ref:c},i(h),{className:o.be("dropdown","list"),scrollbarAlwaysOn:U.value,data:O,height:L,width:I,total:O.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:A}),{default:W=>Q(_,W,null)}),(K=t.footer)==null?void 0:K.call(t)])}}});function zee(e,t){const{aliasProps:n,getLabel:a,getValue:o}=zu(e),l=V(0),r=V(),s=x(()=>e.allowCreate&&e.filterable);fe(()=>e.options,g=>{const p=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(a(v)))});function u(g){const p=v=>a(v)===g;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(g){s.value&&(e.multiple&&g.created?l.value++:r.value=g)}function d(g){if(s.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const p={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(g){if(!s.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const p=t.createdOptions.findIndex(v=>o(v)===o(g));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){s.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const Dee=(e,t)=>{const{t:n}=kt(),a=hn(),o=ve("select"),l=ve("input"),{form:r,formItem:s}=Bn(),{inputId:u}=Pa(e,{formItemContext:s}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:g}=zu(e),{valueOnClear:p,isEmptyValue:v}=Pu(e),m=Rt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=V(-1),b=V(!1),w=V(),_=V(),S=V(),k=V(),T=V(),M=V(),A=V(),O=V(),I=V(),L=V(),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}=Nu({afterComposition:ke=>Jt(ke)}),N=rn(),{wrapperRef:P,isFocused:B,handleBlur:K}=Cl(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(ke){var rt,Ct;return((rt=S.value)==null?void 0:rt.isFocusInsideContent(ke))||((Ct=k.value)==null?void 0:Ct.isFocusInsideContent(ke))},afterBlur(){var ke;ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&((ke=s==null?void 0:s.validate)==null||ke.call(s,"blur").catch(rt=>pt(rt)))}}),W=x(()=>Ae("")),j=x(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),G=V([]),ee=V(!1),te=x(()=>(r==null?void 0:r.statusIcon)??!1),ue=x(()=>{const ke=G.value.length*e.itemHeight;return ke>e.height?e.height:ke}),ne=x(()=>e.multiple?be(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=x(()=>e.clearable&&!N.value&&ne.value&&(B.value||m.inputHovering)),se=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=x(()=>se.value&&o.is("reverse",ee.value)),X=x(()=>(s==null?void 0:s.validateState)||""),H=x(()=>{if(X.value)return pf[X.value]}),Z=x(()=>e.remote?e.debounce:0),le=x(()=>e.remote&&!m.inputValue&&!j.value),ce=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&j.value&&G.value.length===0?e.noMatchText||n("el.select.noMatch"):j.value?null:e.noDataText||n("el.select.noData")),ge=x(()=>e.filterable&&Fe(e.filterMethod)),me=x(()=>e.filterable&&e.remote&&Fe(e.remoteMethod)),Ae=ke=>{const rt=new RegExp(Yp(ke),"i"),Ct=xt=>ge.value||me.value?!0:ke?rt.test(d(xt)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((xt,zn)=>{const va=g(zn);if(be(va)){const ni=va.filter(Ct);ni.length>0&&xt.push({label:d(zn),type:"Group"},...ni)}else(e.remote||Ct(zn))&&xt.push(zn);return xt},[])},Ne=()=>{G.value=Ae(m.inputValue)},Re=x(()=>{const ke=new Map;return W.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),ye=x(()=>{const ke=new Map;return G.value.forEach((rt,Ct)=>{ke.set(Xe(f(rt)),{option:rt,index:Ct})}),ke}),Ee=x(()=>G.value.every(ke=>h(ke))),we=_n(),Ie=x(()=>we.value==="small"?"small":"default"),ze=()=>{var rt;if(He(e.fitInputWidth)){y.value=e.fitInputWidth;return}const ke=((rt=w.value)==null?void 0:rt.offsetWidth)||200;!e.fitInputWidth&&j.value?Le(()=>{y.value=Math.max(ke,et())}):y.value=ke},et=()=>{var va,ni;const ke=document.createElement("canvas").getContext("2d"),rt=o.be("dropdown","item"),Ct=(((ni=(va=O.value)==null?void 0:va.listRef)==null?void 0:ni.innerRef)||document).querySelector(`.${rt}`);if(Ct===null||ke===null)return 0;const xt=getComputedStyle(Ct),zn=Number.parseFloat(xt.paddingLeft)+Number.parseFloat(xt.paddingRight);return ke.font=`bold ${xt.font.replace(new RegExp(`\\b${xt.fontWeight}\\b`),"")}`,G.value.reduce((F9,K9)=>{const W9=ke.measureText(d(K9));return Math.max(W9.width,F9)},0)+zn},nt=()=>{if(!_.value)return 0;const ke=window.getComputedStyle(_.value);return Number.parseFloat(ke.gap||"6px")},at=x(()=>{const ke=nt(),rt=e.filterable?ke+Wd:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-ke-rt:m.selectionWidth-rt}px`}}),Me=x(()=>({maxWidth:`${m.selectionWidth}px`})),Ge=x(()=>be(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),ut=x(()=>{const ke=e.placeholder??n("el.select.placeholder");return e.multiple||!ne.value?ke:m.selectedLabel}),je=x(()=>{var ke,rt;return(rt=(ke=S.value)==null?void 0:ke.popperRef)==null?void 0:rt.contentRef}),tt=x(()=>{if(e.multiple){const ke=e.modelValue.length;if(ke>0&&ye.value.has(e.modelValue[ke-1])){const{index:rt}=ye.value.get(e.modelValue[ke-1]);return rt}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:ke}=ye.value.get(e.modelValue);return ke}return-1}),yt=x({get(){return ee.value&&(e.loading||!le.value||e.remote&&!!a.empty)&&(!b.value||!ca(m.previousQuery)||j.value)},set(ke){ee.value=ke}}),he=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Ve=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pe,removeNewOption:Te,selectNewOption:ct,clearAllNewOption:Pt}=zee(e,m),Gt=ke=>{var rt;N.value||e.filterable&&ee.value&&ke&&!((rt=A.value)!=null&&rt.contains(ke.target))||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},Oe=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),pe(m.inputValue),Le(()=>{Ze(m.inputValue)})},We=gu(()=>{Oe(),b.value=!1},Z),Ze=ke=>{m.previousQuery===ke||z.value||(m.previousQuery=ke,e.filterable&&Fe(e.filterMethod)?e.filterMethod(ke):e.filterable&&e.remote&&Fe(e.remoteMethod)&&e.remoteMethod(ke),e.defaultFirstOption&&(e.filterable||e.remote)&&G.value.length?Le(cn):Le(Tt))},cn=()=>{const ke=G.value.filter(xt=>!xt.disabled&&xt.type!=="Group"),rt=ke.find(xt=>xt.created),Ct=ke[0];m.hoveringIndex=Ue(G.value,rt||Ct)},zt=ke=>{an(e.modelValue,ke)||t(bt,ke)},Xt=ke=>{t(ot,ke),zt(ke),m.previousValue=e.multiple?String(ke):ke,Le(()=>{if(e.multiple&&be(e.modelValue)){const rt=m.cachedOptions.slice(),Ct=e.modelValue.map(xt=>ei(xt,rt));an(m.cachedOptions,Ct)||(m.cachedOptions=Ct)}else qr(!0)})},Ue=(ke=[],rt)=>{if(!lt(rt))return ke.indexOf(rt);const Ct=e.valueKey;let xt=-1;return ke.some((zn,va)=>bn(zn,Ct)===bn(rt,Ct)?(xt=va,!0):!1),xt},Xe=ke=>lt(ke)?bn(ke,e.valueKey):ke,mt=()=>{ze()},Mn=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(_.value).width)},go=()=>{m.collapseItemWidth=L.value.getBoundingClientRect().width},ja=()=>{var ke,rt;(rt=(ke=S.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Yu=()=>{var ke,rt;(rt=(ke=k.value)==null?void 0:ke.updatePopper)==null||rt.call(ke)},Xl=ke=>{const rt=f(ke);if(e.multiple){let Ct=e.modelValue.slice();const xt=Ue(Ct,rt);xt>-1?(Ct=[...Ct.slice(0,xt),...Ct.slice(xt+1)],m.cachedOptions.splice(xt,1),Te(ke)):(e.multipleLimit<=0||Ct.length{let Ct=e.modelValue.slice();const xt=Ue(Ct,f(rt));xt>-1&&!N.value&&(Ct=[...e.modelValue.slice(0,xt),...e.modelValue.slice(xt+1)],m.cachedOptions.splice(xt,1),Xt(Ct),t("remove-tag",f(rt)),Te(rt)),ke.stopPropagation(),Ko()},Ko=()=>{var ke;(ke=T.value)==null||ke.focus()},Af=()=>{var ke;if(ee.value){ee.value=!1,Le(()=>{var rt;return(rt=T.value)==null?void 0:rt.blur()});return}(ke=T.value)==null||ke.blur()},Rf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Nf=ke=>r8(ke,rt=>!m.cachedOptions.some(Ct=>f(Ct)===rt&&h(Ct))),Pf=ke=>{const rt=Kt(ke);if(e.multiple&&rt!==Ce.delete&&m.inputValue.length===0){ke.preventDefault();const Ct=e.modelValue.slice(),xt=Nf(Ct);if(xt<0)return;const zn=Ct[xt];Ct.splice(xt,1);const va=m.cachedOptions[xt];m.cachedOptions.splice(xt,1),Te(va),Xt(Ct),t("remove-tag",zn)}},If=()=>{let ke;be(e.modelValue)?ke=[]:ke=p.value,m.selectedLabel="",ee.value=!1,Xt(ke),t("clear"),Pt(),Ko()},kl=(ke,rt=void 0)=>{const Ct=G.value;if(!["forward","backward"].includes(ke)||N.value||Ct.length<=0||Ee.value||z.value)return;if(!ee.value)return Gt();Et(rt)&&(rt=m.hoveringIndex);let xt=-1;ke==="forward"?(xt=rt+1,xt>=Ct.length&&(xt=0)):ke==="backward"&&(xt=rt-1,(xt<0||xt>=Ct.length)&&(xt=Ct.length-1));const zn=Ct[xt];if(h(zn)||zn.type==="Group")return kl(ke,xt);m.hoveringIndex=xt,Wo(xt)},xe=()=>{if(ee.value)~m.hoveringIndex&&G.value[m.hoveringIndex]&&Xl(G.value[m.hoveringIndex]);else return Gt()},Qe=ke=>{m.hoveringIndex=ke??-1},Tt=()=>{if(!e.multiple)m.hoveringIndex=G.value.findIndex(ke=>Xe(f(ke))===Xe(e.modelValue));else{const ke=e.modelValue.length;if(ke>0){const rt=e.modelValue[ke-1];m.hoveringIndex=G.value.findIndex(Ct=>Xe(rt)===Xe(f(Ct)))}else m.hoveringIndex=-1}},Jt=ke=>{if(m.inputValue=ke.target.value,e.remote)b.value=!0,We();else return Oe()},Cn=ke=>{ee.value=!1,B.value&&K(new FocusEvent("blur",ke))},Pn=()=>(m.isBeforeHide=!1,Le(()=>{~tt.value&&Wo(tt.value)})),Wo=ke=>{O.value.scrollToItem(ke)},ei=(ke,rt)=>{const Ct=Xe(ke);if(Re.value.has(Ct)){const{option:xt}=Re.value.get(Ct);return xt}if(rt&&rt.length){const xt=rt.find(zn=>Xe(f(zn))===Ct);if(xt)return xt}return{[c.value.value]:ke,[c.value.label]:ke}},Jl=ke=>{var rt;return((rt=Re.value.get(f(ke)))==null?void 0:rt.index)??-1},qr=(ke=!1)=>{if(e.multiple)if(e.modelValue.length>0){const rt=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const Ct of e.modelValue){const xt=ei(Ct,rt);m.cachedOptions.push(xt)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ne.value){m.previousValue=e.modelValue;const rt=G.value,Ct=rt.findIndex(xt=>Xe(f(xt))===Xe(e.modelValue));~Ct?m.selectedLabel=d(rt[Ct]):(!m.selectedLabel||ke)&&(m.selectedLabel=Xe(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Pt(),ze()};fe(()=>e.fitInputWidth,()=>{ze()}),fe(ee,ke=>{ke?(e.persistent||ze(),Ze("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,pe(""))}),fe(()=>e.modelValue,(ke,rt)=>{var Ct;(!ke||be(ke)&&ke.length===0||e.multiple&&!an(ke.toString(),m.previousValue)||!e.multiple&&Xe(ke)!==Xe(m.previousValue))&&qr(!0),!an(ke,rt)&&e.validateEvent&&((Ct=s==null?void 0:s.validate)==null||Ct.call(s,"change").catch(xt=>pt(xt)))},{deep:!0}),fe(()=>e.options,()=>{const ke=T.value;(!ke||ke&&document.activeElement!==ke)&&qr()},{deep:!0,flush:"post"}),fe(()=>G.value,()=>(ze(),O.value&&Le(O.value.resetScrollTop))),da(()=>{m.isBeforeHide||Ne()}),da(()=>{const{valueKey:ke,options:rt}=e,Ct=new Map;for(const xt of rt){const zn=f(xt);let va=zn;if(lt(va)&&(va=bn(zn,ke)),Ct.get(va)){pt("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else Ct.set(va,!0)}}),gt(()=>{qr()}),Zt(w,mt),Zt(_,Mn),Zt(P,ja),Zt(I,Yu),Zt(L,go);let ti;return fe(()=>yt.value,ke=>{ke?ti=Zt(O,ja).stop:(ti==null||ti(),ti=void 0),t("visible-change",ke)}),{inputId:u,collapseTagSize:Ie,currentPlaceholder:ut,expanded:ee,emptyText:ce,popupHeight:ue,debounce:Z,allOptions:W,allOptionsValueMap:Re,filteredOptions:G,iconComponent:se,iconReverse:Y,tagStyle:at,collapseTagStyle:Me,popperSize:y,dropdownMenuVisible:yt,hasModelValue:ne,shouldShowPlaceholder:Ge,selectDisabled:N,selectSize:we,needStatusIcon:te,showClearBtn:de,states:m,isFocused:B,nsSelect:o,nsInput:l,inputRef:T,menuRef:O,tagMenuRef:I,tooltipRef:S,tagTooltipRef:k,selectRef:w,wrapperRef:P,selectionRef:_,prefixRef:M,suffixRef:A,collapseItemRef:L,popperRef:je,validateState:X,validateIcon:H,showTagList:he,collapseTagList:Ve,debouncedOnInputChange:We,deleteTag:Gu,getLabel:d,getValue:f,getDisabled:h,getValueKey:Xe,getIndex:Jl,handleClear:If,handleClickOutside:Cn,handleDel:Pf,handleEsc:Rf,focus:Ko,blur:Af,handleMenuEnter:Pn,handleResize:mt,resetSelectionWidth:Mn,updateTooltip:ja,updateTagTooltip:Yu,updateOptions:Ne,toggleMenu:Gt,scrollTo:Wo,onInput:Jt,onKeyboardNavigate:kl,onKeyboardSelect:xe,onSelect:Xl,onHover:Qe,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}};var Hee=D({name:"ElSelectV2",components:{ElSelectMenu:Bee,ElTag:ll,ElTooltip:Vn,ElIcon:De},directives:{ClickOutside:jl},props:kee,emits:Tee,setup(e,{emit:t}){const n=x(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return be(u)?c?u:d:c?d:u}),a=Dee(Rt({...Nn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:l}=Up(),r=Kn();wt(Xh,{props:Rt({...Nn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:r,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=x(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:g6}}});const Fee=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],Kee=["textContent"],Wee={key:1};function jee(e,t,n,a,o,l){const r=Ot("el-tag"),s=Ot("el-tooltip"),u=Ot("el-icon"),c=Ot("el-select-menu"),d=Sp("click-outside");return ft((C(),$("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ae(()=>{var f;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(C(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,g,p,v,m,y,b,w,_,S,k,T,M;return[(C(!0),$(Ke,null,_t(e.showTagList,A=>(C(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:qe(e.tagStyle),onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(C(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((h=e.tagTooltip)==null?void 0:h.fallbackPlacements)??["bottom","top","right","left"],effect:((g=e.tagTooltip)==null?void 0:g.effect)??e.effect,placement:((p=e.tagTooltip)==null?void 0:p.placement)??"bottom","popper-class":((v=e.tagTooltip)==null?void 0:v.popperClass)??e.popperClass,"popper-style":((m=e.tagTooltip)==null?void 0:m.popperStyle)??e.popperStyle,teleported:((y=e.tagTooltip)==null?void 0:y.teleported)??e.teleported,"append-to":((b=e.tagTooltip)==null?void 0:b.appendTo)??e.appendTo,"popper-options":((w=e.tagTooltip)==null?void 0:w.popperOptions)??e.popperOptions,transition:(_=e.tagTooltip)==null?void 0:_.transition,"show-after":(S=e.tagTooltip)==null?void 0:S.showAfter,"hide-after":(k=e.tagTooltip)==null?void 0:k.hideAfter,"auto-close":(T=e.tagTooltip)==null?void 0:T.autoClose,offset:(M=e.tagTooltip)==null?void 0:M.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:qe(e.collapseTagStyle),"disable-transitions":""},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+Se(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(C(!0),$(Ke,null,_t(e.collapseTagList,A=>(C(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[St(Se(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:qe(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[1]||(t[1]=Je(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[3]||(t[3]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[4]||(t[4]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[5]||(t[5]=nn(Je(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=nn(Je(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=nn(Je((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[8]||(t[8]=nn(Je((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[9]||(t[9]=nn(Je((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Je((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,Fee),e.filterable?(C(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:Se(e.states.inputValue)},null,10,Kee)):re("v-if",!0)],2),e.shouldShowPlaceholder?(C(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:((f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,Se(e.currentPlaceholder),1)]):(C(),$("span",Wee,Se(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?ft((C(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])),[[$t,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(C(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Je(e.handleClear,["prevent","stop"])},{default:ae(()=>[(C(),ie(dt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(C(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(C(),ie(dt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},fa({default:ae(f=>[oe(e.$slots,"default",nl(al(f)))]),_:2},[e.$slots.header?{name:"header",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Je(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,Se(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Je(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var qee=En(Hee,[["render",jee]]);const Uee=it(qee),Yee=_e({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:J([Number,Object])}}),Gee=_e({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var Xee=D({name:"ElSkeletonItem",__name:"skeleton-item",props:Gee,setup(e){const t=ve("skeleton");return(n,a)=>(C(),$("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(C(),ie(i(Cy),{key:0})):re("v-if",!0)],2))}}),xd=Xee,Jee=D({name:"ElSkeleton",__name:"skeleton",props:Yee,setup(e,{expose:t}){const n=e,a=ve("skeleton"),o=BO(Bt(n,"loading"),n.throttle);return t({uiLoading:o}),(l,r)=>i(o)?(C(),$("div",ht({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},l.$attrs),[(C(!0),$(Ke,null,_t(e.count,s=>(C(),$(Ke,{key:s},[i(o)?oe(l.$slots,"template",{key:s},()=>[Q(xd,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(C(!0),$(Ke,null,_t(e.rows,u=>(C(),ie(xd,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(l.$slots,"default",nl(ht({key:1},l.$attrs)))}}),Zee=Jee;const Qee=it(Zee,{SkeletonItem:xd}),ete=tn(xd),e5=Symbol("sliderContextKey"),tte=_e({modelValue:{type:J([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:J([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:kn,inputSize:kn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:J(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:J(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ho,default:"top"},marks:{type:J(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...oa(["ariaLabel"])}),g0=e=>He(e)||be(e)&&e.every(He),nte={[ot]:g0,[wn]:g0,[bt]:g0},ate=(e,t,n)=>{const a=V();return gt(async()=>{e.range?(be(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!He(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Vt(window,"resize",n),await Le(),n()}),{sliderWrapper:a}},ote=e=>{const t=x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return da(()=>{if(e.step==="mark"&&!e.marks&&pt("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(l=>l.point),o=n.filter(l=>{const r=Number.parseFloat(l);return Number.isNaN(r)||!a.includes(r)});o.length>0&&pt("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(l=>`'${l}'`).join(", ")}] and will be ignored.`)}}),t},lte=(e,t,n)=>{const{formItem:a}=Bn(),o=qt(),l=V(),r=V(),s={firstButton:l,secondButton:r},u=rn(),c=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),f=x(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=x(()=>e.vertical?{height:e.height}:{}),p=x(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=I=>{const L=e.min+I*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(c.value-L)t.secondValue?"firstButton":"secondButton",s[z]},y=I=>{const L=m(I);return L.value.setPosition(I),L},b=I=>{t.firstValue=I??e.min,_(e.range?[c.value,d.value]:I??e.min)},w=I=>{t.secondValue=I,e.range&&_([c.value,d.value])},_=I=>{n(ot,I),n(wn,I)},S=async()=>{await Le(),n(bt,e.range?[c.value,d.value]:e.modelValue)},k=I=>{var z,q,U,F;if(u.value||t.dragging)return;v();let L=0;if(e.vertical){const N=((q=(z=I.touches)==null?void 0:z.item(0))==null?void 0:q.clientY)??I.clientY;L=(o.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else L=((((F=(U=I.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)??I.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!(L<0||L>100))return y(L)};return{elFormItem:a,slider:o,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:p,resetSize:v,setPosition:y,emitChange:S,onSliderWrapperPrevent:I=>{var L,z;((L=s.firstButton.value)!=null&&L.dragging||(z=s.secondButton.value)!=null&&z.dragging)&&I.preventDefault()},onSliderClick:I=>{k(I)&&S()},onSliderDown:async I=>{const L=k(I);L&&(await Le(),L.value.onButtonDown(I))},onSliderMarkerDown:I=>{u.value||t.dragging||y(I)&&S()},setFirstValue:b,setSecondValue:w}},rte=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&pt("ElSlider","step should not be 0."),[];const r=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*s);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),ste=(e,t,n,a,o,l)=>{const r=c=>{o(ot,c),o(wn,c)},s=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var d,f;e.min>e.max&&en("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&be(c)?c[1]e.max?r([e.max,e.max]):c[0]e.max?r([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>pt(h))),t.oldValue=c.slice())):!e.range&&He(c)&&!Number.isNaN(c)&&(ce.max?r(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((f=l==null?void 0:l.validate)==null||f.call(l,"change").catch(h=>pt(h))),t.oldValue=c)))};u(),fe(()=>t.dragging,c=>{c||u()}),fe(()=>e.modelValue,(c,d)=>{t.dragging||be(c)&&be(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),fe(()=>[e.min,e.max],()=>{u()})},ite=(e,t,n)=>{const a=V(),o=V(!1),l=x(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:x(()=>l.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Vo(()=>{n.value&&(o.value=!0)},50),hideTooltip:Vo(()=>{n.value&&(o.value=!1)},50)}},ute=(e,t,n)=>{const{disabled:a,min:o,max:l,step:r,showTooltip:s,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:g,updateDragging:p,markList:v}=Pe(e5),{tooltip:m,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:_}=ite(e,f,s),S=V(),k=x(()=>`${(e.modelValue-o.value)/(l.value-o.value)*100}%`),T=x(()=>e.vertical?{bottom:k.value}:{left:k.value}),M=x(()=>r.value==="mark"&&v.value.length>0),A=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||_()},I=ue=>{a.value||(ue.preventDefault(),j(ue),window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},L=ue=>{a.value||(t.newPosition=Number.parseFloat(k.value)+ue/(l.value-o.value)*100,te(t.newPosition),h())},z=ue=>{if(a.value||!v.value.length)return;const ne=e.modelValue,de=Number.EPSILON,se=Math.abs(ue);let Y;if(ue>0){const X=v.value.findIndex(H=>H.point>ne+de);if(X!==-1){const H=Math.min(X+se-1,v.value.length-1);Y=v.value[H].point}}else{let X=-1;for(let H=v.value.length-1;H>=0;H--)if(v.value[H].point{M.value?z(-1):He(r.value)&&L(-r.value)},U=()=>{M.value?z(1):He(r.value)&&L(r.value)},F=()=>{M.value?z(-4):He(r.value)&&L(-r.value*4)},N=()=>{M.value?z(4):He(r.value)&&L(r.value*4)},P=()=>{a.value||(te(0),h())},B=()=>{a.value||(te(100),h())},K=ue=>{const ne=Kt(ue);let de=!0;switch(ne){case Ce.left:case Ce.down:q();break;case Ce.right:case Ce.up:U();break;case Ce.home:P();break;case Ce.end:B();break;case Ce.pageDown:F();break;case Ce.pageUp:N();break;default:de=!1;break}de&&ue.preventDefault()},W=ue=>{let ne,de;return ue.type.startsWith("touch")?(de=ue.touches[0].clientY,ne=ue.touches[0].clientX):(de=ue.clientY,ne=ue.clientX),{clientX:ne,clientY:de}},j=ue=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:de}=W(ue);e.vertical?t.startY=de:t.startX=ne,t.startPosition=Number.parseFloat(k.value),t.newPosition=t.startPosition},G=ue=>{if(t.dragging){t.isClick=!1,w(),g();let ne;const{clientX:de,clientY:se}=W(ue);e.vertical?(t.currentY=se,ne=(t.startY-t.currentY)/d.value*100):(t.currentX=de,ne=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ne,te(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||te(t.newPosition),h()},0),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},te=async ue=>{if(ue===null||Number.isNaN(+ue))return;ue=fr(ue,0,100);let ne;if(r.value==="mark")v.value.length===0?ne=ue<=50?o.value:l.value:ne=v.value.reduce((de,se)=>Math.abs(se.position-ue)t.dragging,ue=>{p(ue)}),Vt(S,"touchstart",I,{passive:!1}),{disabled:a,button:S,tooltip:m,tooltipVisible:y,showTooltip:s,persistent:u,wrapperStyle:T,formatValue:b,handleMouseEnter:A,handleMouseLeave:O,onButtonDown:I,onKeyDown:K,setPosition:te}},cte=_e({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ho,default:"top"}}),dte={[ot]:e=>He(e)},fte=["tabindex"];var pte=D({name:"ElSliderButton",__name:"button",props:cte,emits:dte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),r=Rt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),s=x(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:g,wrapperStyle:p,formatValue:v,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:_}=ute(a,r,o),{hovering:S,dragging:k}=Nn(r);return t({onButtonDown:b,onKeyDown:w,setPosition:_,hovering:S,dragging:k}),(T,M)=>(C(),$("div",{ref_key:"button",ref:c,class:R([i(l).e("button-wrapper"),{hover:i(S),dragging:i(k)}]),style:qe(i(p)),tabindex:i(u)?void 0:0,onMouseenter:M[0]||(M[0]=(...A)=>i(m)&&i(m)(...A)),onMouseleave:M[1]||(M[1]=(...A)=>i(y)&&i(y)(...A)),onMousedown:M[2]||(M[2]=(...A)=>i(b)&&i(b)(...A)),onFocus:M[3]||(M[3]=(...A)=>i(m)&&i(m)(...A)),onBlur:M[4]||(M[4]=(...A)=>i(y)&&i(y)(...A)),onKeydown:M[5]||(M[5]=(...A)=>i(w)&&i(w)(...A))},[Q(i(Vn),{ref_key:"tooltip",ref:d,visible:i(g),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!i(f),persistent:s.value},{content:ae(()=>[E("span",null,Se(i(v)),1)]),default:ae(()=>[E("div",{class:R([i(l).e("button"),{hover:i(S),dragging:i(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,fte))}}),Rg=pte;const hte=_e({mark:{type:J([String,Object]),default:void 0}});var vte=D({name:"ElSliderMarker",props:hte,setup(e){const t=ve("slider"),n=x(()=>Be(e.mark)?e.mark:e.mark.label),a=x(()=>Be(e.mark)?void 0:e.mark.style);return()=>Ye("div",{class:t.e("marks-text"),style:a.value},n.value)}});const mte=["id","role","aria-label","aria-labelledby"],gte={key:1};var yte=D({name:"ElSlider",__name:"slider",props:tte,emits:nte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),{t:r}=kt(),s=Rt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:g,maxValue:p,runwayStyle:v,barStyle:m,resetSize:y,emitChange:b,onSliderWrapperPrevent:w,onSliderClick:_,onSliderDown:S,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:M}=lte(a,s,o),{stops:A,getStopStyle:O}=rte(a,s,g,p),{inputId:I,isLabeledByFormItem:L}=Pa(a,{formItemContext:u}),z=_n(),q=x(()=>a.inputSize||z.value),U=x(()=>a.showInput&&!a.range&&a.step!=="mark"),F=x(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),N=x(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):F.value),P=x(()=>a.formatValueText?a.formatValueText(ue.value):`${ue.value}`),B=x(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),K=x(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),W=x(()=>[l.b(),l.m(z.value),l.is("vertical",a.vertical),{[l.m("with-input")]:U.value}]),j=ote(a);ste(a,s,g,p,o,u);const G=x(()=>He(a.step)?a.step:1),ee=x(()=>{const Y=He(a.step)?a.step:1,X=[a.min,a.max,Y].map(H=>{const Z=`${H}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,X)}),{sliderWrapper:te}=ate(a,s,y),{firstValue:ue,secondValue:ne,sliderSize:de}=Nn(s),se=Y=>{s.dragging=Y};return Vt(te,"touchstart",w,{passive:!1}),Vt(te,"touchmove",w,{passive:!1}),wt(e5,{...Nn(a),sliderSize:de,disabled:h,precision:ee,markList:j,emitChange:b,resetSize:y,updateDragging:se}),t({onSliderClick:_}),(Y,X)=>{var H,Z;return C(),$("div",{id:Y.range?i(I):void 0,ref_key:"sliderWrapper",ref:te,class:R(W.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i(L)?F.value:void 0,"aria-labelledby":Y.range&&i(L)?(H=i(u))==null?void 0:H.labelId:void 0},[E("div",{ref_key:"slider",ref:c,class:R([i(l).e("runway"),{"show-input":U.value},i(l).is("disabled",i(h))]),style:qe(i(v)),onMousedown:X[0]||(X[0]=(...le)=>i(S)&&i(S)(...le)),onTouchstartPassive:X[1]||(X[1]=(...le)=>i(S)&&i(S)(...le))},[E("div",{class:R(i(l).e("bar")),style:qe(i(m))},null,6),Q(Rg,{id:Y.range?void 0:i(I),ref_key:"firstButton",ref:d,"model-value":i(ue),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i(L)?N.value:void 0,"aria-labelledby":!Y.range&&i(L)?(Z=i(u))==null?void 0:Z.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(ne):Y.max,"aria-valuenow":i(ue),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(C(),ie(Rg,{key:0,ref_key:"secondButton",ref:f,"model-value":i(ne),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":B.value,"aria-valuemin":i(ue),"aria-valuemax":Y.max,"aria-valuenow":i(ne),"aria-valuetext":K.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(C(),$("div",gte,[(C(!0),$(Ke,null,_t(i(A),(le,ce)=>(C(),$("div",{key:ce,class:R(i(l).e("stop")),style:qe(i(O)(le))},null,6))),128))])):re("v-if",!0),i(j).length>0?(C(),$(Ke,{key:2},[E("div",null,[(C(!0),$(Ke,null,_t(i(j),(le,ce)=>(C(),$("div",{key:ce,style:qe(i(O)(le.position)),class:R([i(l).e("stop"),i(l).e("marks-stop")])},null,6))),128))]),E("div",{class:R(i(l).e("marks"))},[(C(!0),$(Ke,null,_t(i(j),(le,ce)=>(C(),ie(i(vte),{key:ce,mark:le.mark,style:qe(i(O)(le.position)),onMousedown:Je(ge=>i(k)(le.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),U.value?(C(),ie(i(Mw),{key:0,ref:"input","model-value":i(ue),class:R(i(l).e("input")),step:G.value,disabled:i(h),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:q.value,"onUpdate:modelValue":i(T),onChange:i(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,mte)}}}),bte=yte;const wte=it(bte),Cte=_e({prefixCls:{type:String}}),Ng=D({name:"ElSpaceItem",props:Cte,setup(e,{slots:t}){const n=ve("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>Ye("div",{class:a.value},oe(t,"default"))}}),Pg={small:8,default:12,large:16};function _te(e){const t=ve("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=V(0),o=V(0),l=x(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return da(()=>{const{size:s="small",wrap:u,direction:c,fill:d}=e;if(be(s)){const[f=0,h=0]=s;a.value=f,o.value=h}else{let f;He(s)?f=s:f=Pg[s||"small"]||Pg.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const Ste=_e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:J([String,Object,Array]),default:""},style:{type:J([String,Array,Object]),default:""},alignment:{type:J(String),default:"center"},prefixCls:{type:String},spacer:{type:J([Object,String,Number,Array]),default:null,validator:e=>Wt(e)||He(e)||Be(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:io,validator:e=>He(e)||be(e)&&e.length===2&&e.every(He)}}),xte=D({name:"ElSpace",props:Ste,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=_te(e);function l(r,s="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{p2(d)?be(d.children)&&d.children.forEach((h,g)=>{p2(h)&&be(h.children)?l(h.children,`${s+g}-`,u):Wt(h)&&(h==null?void 0:h.type)===mn?u.push(h):u.push(Q(Ng,{style:o.value,prefixCls:c,key:`nested-${s+g}`},{default:()=>[h]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}):V$(d)&&u.push(Q(Ng,{style:o.value,prefixCls:c,key:`LoopKey${s+f}`},{default:()=>[d]},qa.PROPS|qa.STYLE,["style","prefixCls"]))}),u}return()=>{const{spacer:r,direction:s}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(be(u.children)){let c=l(u.children);if(r){const d=c.length-1;c=c.reduce((f,h,g)=>{const p=[...f,h];return g!==d&&p.push(Q("span",{style:[o.value,s==="vertical"?"width: 100%":null],key:g},[Wt(r)?r:St(r,qa.TEXT)],qa.STYLE)),p},[])}return Q("div",{class:n.value,style:a.value},c,qa.STYLE|qa.CLASS)}return u.children}}}),kte=it(xte),Ete=_e({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:J([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:J([String,Object,Array])}});var Tte=D({name:"ElStatistic",__name:"statistic",props:Ete,setup(e,{expose:t}){const n=e,a=ve("statistic"),o=x(()=>{const{value:l,formatter:r,precision:s,decimalSeparator:u,groupSeparator:c}=n;if(Fe(r))return r(l);if(!He(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(l,r)=>(C(),$("div",{class:R(i(a).b())},[l.$slots.title||e.title?(C(),$("div",{key:0,class:R(i(a).e("head"))},[oe(l.$slots,"title",{},()=>[St(Se(e.title),1)])],2)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[l.$slots.prefix||e.prefix?(C(),$("div",{key:0,class:R(i(a).e("prefix"))},[oe(l.$slots,"prefix",{},()=>[E("span",null,Se(e.prefix),1)])],2)):re("v-if",!0),E("span",{class:R(i(a).e("number")),style:qe(e.valueStyle)},Se(o.value),7),l.$slots.suffix||e.suffix?(C(),$("div",{key:1,class:R(i(a).e("suffix"))},[oe(l.$slots,"suffix",{},()=>[E("span",null,Se(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),Mte=Tte;const t5=it(Mte),Ote=_e({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:J([Number,Object]),default:0},valueStyle:{type:J([String,Object,Array])}}),$te={finish:()=>!0,[bt]:e=>He(e)},Ate=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],Ig=e=>He(e)?new Date(e).getTime():e.valueOf(),Lg=(e,t)=>{let n=e;return Ate.reduce((a,[o,l])=>{const r=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(r.test(a)){const s=Math.floor(n/l);return n-=s*l,a.replace(r,u=>String(s).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var Rte=D({name:"ElCountdown",__name:"countdown",props:Ote,emits:$te,setup(e,{expose:t,emit:n}){const a=e,o=n;let l;const r=V(0),s=x(()=>Lg(r.value,a.format)),u=f=>Lg(f,a.format),c=()=>{l&&(cl(l),l=void 0)},d=()=>{const f=Ig(a.value),h=()=>{let g=f-Date.now();o(bt,g),g<=0?(g=0,c(),o("finish")):l=Fa(h),r.value=g};l=Fa(h)};return gt(()=>{r.value=Ig(a.value)-Date.now(),fe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Lt(()=>{c()}),t({displayValue:s}),(f,h)=>(C(),ie(i(t5),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},fa({_:2},[_t(f.$slots,(g,p)=>({name:p,fn:ae(()=>[oe(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),Nte=Rte;const Pte=it(Nte),Ite=_e({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Lte={[bt]:(e,t)=>[e,t].every(He)},n5="ElSteps",Vte=_e({title:{type:String,default:""},icon:{type:Ft},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var Bte=D({name:"ElSteps",__name:"steps",props:Ite,emits:Lte,setup(e,{emit:t}){const n=e,a=t,o=ve("steps"),{children:l,addChild:r,removeChild:s,ChildrenSorter:u}=cf(vt(),"ElStep");return fe(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),wt(n5,{props:n,steps:l,addStep:r,removeStep:s}),fe(()=>n.active,(c,d)=>{a(bt,c,d)}),(c,d)=>(C(),$("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),Q(i(u))],2))}}),zte=Bte,Dte=D({name:"ElStep",__name:"item",props:Vte,setup(e){const t=e,n=ve("step"),a=V(-1),o=V({}),l=V(""),r=Pe(n5),s=vt();let u=0,c=0;gt(()=>{fe([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([M],[A])=>{c=A||0,u=M-c,k(M)},{immediate:!0})});const d=x(()=>t.status||l.value),f=x(()=>{const M=r.steps.value[a.value-1];return M?M.internalStatus.value:"wait"}),h=x(()=>r.props.alignCenter),g=x(()=>r.props.direction==="vertical"),p=x(()=>r.props.simple),v=x(()=>r.steps.value.length),m=x(()=>{var M;return((M=r.steps.value[v.value-1])==null?void 0:M.uid)===s.uid}),y=x(()=>p.value?"":r.props.space),b=x(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",m.value&&!y.value&&!h.value),n.is("center",h.value&&!g.value&&!p.value)]),w=x(()=>{const M={flexBasis:He(y.value)?`${y.value}px`:y.value?y.value:`${100/(v.value-(h.value?0:1))}%`};return g.value||m.value&&(M.maxWidth=`${100/v.value}%`),M}),_=M=>{a.value=M},S=M=>{const A=M==="wait",O={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-r.props.active)*150}ms`},I=M===r.props.processStatus||A?0:100;O.borderWidth=I&&!p.value?"1px":0,O[r.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},k=M=>{M>a.value?l.value=r.props.finishStatus:M===a.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const A=r.steps.value[a.value-1];A&&A.calcProgress(l.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:l,setIndex:_,calcProgress:S};return r.addStep(T),Lt(()=>{r.removeStep(T)}),(M,A)=>(C(),$("div",{style:qe(w.value),class:R(b.value)},[re(" icon & line "),E("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[p.value?re("v-if",!0):(C(),$("div",{key:0,class:R(i(n).e("line"))},[E("i",{class:R(i(n).e("line-inner")),style:qe(o.value)},null,6)],2)),E("div",{class:R([i(n).e("icon"),i(n).is(e.icon||M.$slots.icon?"icon":"text")])},[oe(M.$slots,"icon",{},()=>[e.icon?(C(),ie(i(De),{key:0,class:R(i(n).e("icon-inner"))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])):d.value==="success"?(C(),ie(i(De),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):d.value==="error"?(C(),ie(i(De),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class"])):p.value?re("v-if",!0):(C(),$("div",{key:3,class:R(i(n).e("icon-inner"))},Se(a.value+1),3))])],2)],2),re(" title & description "),E("div",{class:R(i(n).e("main"))},[E("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(M.$slots,"title",{},()=>[St(Se(e.title),1)])],2),p.value?(C(),$("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(C(),$("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(M.$slots,"description",{},()=>[St(Se(e.description),1)])],2))],2)],6))}}),a5=Dte;const Hte=it(zte,{Step:a5}),Fte=tn(a5),o5=e=>["",...io].includes(e),Kte=_e({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:o5},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ft},activeActionIcon:{type:Ft},activeIcon:{type:Ft},inactiveIcon:{type:Ft},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:J(Function)},id:String,tabindex:{type:[String,Number]},...oa(["ariaLabel"])}),Wte={[ot]:e=>Dt(e)||Be(e)||He(e),[bt]:e=>Dt(e)||Be(e)||He(e),[wn]:e=>Dt(e)||Be(e)||He(e)},jte=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],qte=["aria-hidden"],Ute={key:1},Yte={key:1},Gte=["aria-hidden"],y0="ElSwitch";var Xte=D({name:y0,__name:"switch",props:Kte,emits:Wte,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Bn(),r=_n(),s=ve("switch"),{inputId:u}=Pa(a,{formItemContext:l}),c=rn(x(()=>{if(a.loading)return!0})),d=V(a.modelValue!==!1),f=qt(),h=x(()=>[s.b(),s.m(r.value),s.is("disabled",c.value),s.is("checked",y.value)]),g=x(()=>[s.e("label"),s.em("label","left"),s.is("active",!y.value)]),p=x(()=>[s.e("label"),s.em("label","right"),s.is("active",y.value)]),v=x(()=>({width:ln(a.width)}));fe(()=>a.modelValue,()=>{d.value=!0});const m=x(()=>d.value?a.modelValue:!1),y=x(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(ot,a.inactiveValue),o(bt,a.inactiveValue),o(wn,a.inactiveValue)),fe(y,S=>{var k;f.value.checked=S,a.validateEvent&&((k=l==null?void 0:l.validate)==null||k.call(l,"change").catch(T=>pt(T)))});const b=()=>{const S=y.value?a.inactiveValue:a.activeValue;o(ot,S),o(bt,S),o(wn,S),Le(()=>{f.value.checked=y.value})},w=()=>{if(c.value)return;const{beforeChange:S}=a;if(!S){b();return}const k=S();[Kl(k),Dt(k)].includes(!0)||en(y0,"beforeChange must return type `Promise` or `boolean`"),Kl(k)?k.then(T=>{T&&b()}).catch(T=>{pt(y0,`some error occurred: ${T}`)}):k&&b()},_=()=>{var S,k;(k=(S=f.value)==null?void 0:S.focus)==null||k.call(S)};return gt(()=>{f.value.checked=y.value}),t({focus:_,checked:y}),(S,k)=>(C(),$("div",{class:R(h.value),onClick:Je(w,["prevent"])},[E("input",{id:i(u),ref_key:"input",ref:f,class:R(i(s).e("input")),type:"checkbox",role:"switch","aria-checked":y.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:b,onKeydown:nn(w,["enter"])},null,42,jte),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(C(),$("span",{key:0,class:R(g.value)},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(C(),$("span",{key:1,"aria-hidden":y.value},Se(e.inactiveText),9,qte)):re("v-if",!0)])],2)):re("v-if",!0),E("span",{class:R(i(s).e("core")),style:qe(v.value)},[e.inlinePrompt?(C(),$("div",{key:0,class:R(i(s).e("inner"))},[y.value?(C(),$("div",{key:1,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"active",{},()=>[e.activeIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(C(),$("span",Yte,Se(e.activeText),1)):re("v-if",!0)])],2)):(C(),$("div",{key:0,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(C(),$("span",Ute,Se(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),E("div",{class:R(i(s).e("action"))},[e.loading?(C(),ie(i(De),{key:0,class:R(i(s).is("loading"))},{default:ae(()=>[Q(i(no))]),_:1},8,["class"])):y.value?oe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):y.value?re("v-if",!0):oe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(C(),$("span",{key:1,class:R(p.value)},[oe(S.$slots,"active",{},()=>[e.activeIcon?(C(),ie(i(De),{key:0},{default:ae(()=>[(C(),ie(dt(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(C(),$("span",{key:1,"aria-hidden":!y.value},Se(e.activeText),9,Gte)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),Jte=Xte;const Zte=it(Jte),b0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Qte=function(e,t,n,a,o){if(!t&&!a&&(!o||be(o)&&!o.length))return e;Be(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=a?null:function(s,u){return o?s8($n(o),c=>Be(c)?bn(s,c):c(s,u,e)):(t!=="$key"&<(s)&&"$value"in s&&(s=s.$value),[lt(s)?t?bn(s,t):null:s])},r=function(s,u){var c,d,f,h,g;if(a)return a(s.value,u.value);for(let p=0,v=((c=s.key)==null?void 0:c.length)??0;p((g=u.key)==null?void 0:g[p]))return 1}return 0};return e.map((s,u)=>({value:s,index:u,key:l?l(s,u):null})).sort((s,u)=>{let c=r(s,u);return c||(c=s.index-u.index),c*+n}).map(s=>s.value)},l5=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},ene=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Be(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(Fe(t))return t.call(null,e);return""},gs=function(e,t,n=!1,a="children"){const o=e||[],l={};return o.forEach((r,s)=>{if(l[Wn(r,t)]={row:r,index:s},n){const u=r[a];be(u)&&Object.assign(l,gs(u,t,!0,a))}}),l};function tne(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(Mt(t,a)){const o=t[a];Et(o)||(n[a]=o)}return n}function Jh(e){return e===""||Et(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function r5(e){return e===""||Et(e)||(e=Jh(e),Number.isNaN(e)&&(e=80)),e}function nne(e){return He(e)?e:Be(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function ane(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function kd(e,t,n,a,o,l,r){let s=l??0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Wn(t,r);return e.findIndex(m=>Wn(m,r)===v)})(),f=d!==-1,h=o==null?void 0:o.call(null,t,s),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let m=0;const y=(a==null?void 0:a.children)&&v[a.children];return y&&be(y)&&(m+=y.length,y.forEach(b=>{m+=p(b)})),m};return(!o||h)&&(Dt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&be(t[a.children])&&t[a.children].forEach(v=>{const m=kd(e,v,n??!f,a,o,s+1,r);s+=p(v)+1,m&&(u=m)}),u}function one(e,t,n="children",a="hasChildren",o=!1){const l=s=>!(be(s)&&s.length);function r(s,u,c){t(s,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(s=>{if(s[a]&&o){t(s,null,0);return}const u=s[n];l(u)||r(s,u,0)})}const lne=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},l=Fe(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:zl(n,a.property).value}):void 0;return Wt(l)?{slotContent:l,content:null,...e,popperOptions:o}:{slotContent:null,content:l??t,...e,popperOptions:o}};let sn=null;function rne(e,t,n,a,o,l){var g;const r=lne(e,t,n,a),s={...r,slotContent:void 0};if((sn==null?void 0:sn.trigger)===o){const p=(g=sn.vm)==null?void 0:g.component;i8(p==null?void 0:p.props,s),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}sn==null||sn();const u=l==null?void 0:l.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,d=Q(Vn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...s},r.slotContent?{content:()=>r.slotContent}:void 0);d.appContext={...l.appContext,...l};const f=document.createElement("div");Wl(d,f),d.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);sn=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),Wl(null,f);const p=sn;h==null||h.removeEventListener("scroll",p),p.trigger=void 0,p.vm=void 0,sn=null},sn.trigger=o??void 0,sn.vm=d,h==null||h.addEventListener("scroll",sn)}function s5(e){return e.children?s8(e.children,s5):[e]}function Bg(e,t){return e+t.colSpan}const i5=(e,t,n,a)=>{let o=0,l=e;const r=n.states.columns.value;if(a){const u=s5(a[e]);o=r.slice(0,r.indexOf(u[0])).reduce(Bg,0),l=o+u.reduce(Bg,0)-1}else o=e;let s;switch(t){case"left":l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:l}:{}},Zh=(e,t,n,a,o,l=0)=>{const r=[],{direction:s,start:u,after:c}=i5(t,n,a,o);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&c+l===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function zg(e,t){return e+(tf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Qh=(e,t,n,a)=>{const{direction:o,start:l=0,after:r=0}=i5(e,t,n,a);if(!o)return;const s={},u=o==="left",c=n.states.columns.value;return u?s.left=c.slice(0,l).reduce(zg,0):s.right=c.slice(r+1).reverse().reduce(zg,0),s},Vs=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function u5(e){return e.some(t=>Wt(t)?!(t.type===mn||t.type===Ke&&!u5(t.children)):!0)?e:null}function sne(e){const t=vt(),n=V(!1),a=V([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return(f==null?void 0:f(c,d))??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=gs(a.value,d);a.value=c.filter((h,g)=>!!f[Wn(h,d)]&&o(h,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||kd(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,h=gs(d,f);a.value=c.reduce((g,p)=>{const v=h[p];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!gs(a.value,d)[Wn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function ine(e){const t=vt(),n=V(null),a=V(null),o=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{const{data:d,rowKey:f}=e,h=a.value;let g=null;f.value&&(g=(i(d)||[]).find(p=>Wn(p,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,h)};return{setCurrentRowKey:o,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?r(Wn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:a}}}function une(e){const t=V([]),n=V({}),a=V(16),o=V(!1),l=V({}),r=V("hasChildren"),s=V("children"),u=V(!1),c=vt(),d=x(()=>e.rowKey.value?h(e.data.value||[]):{}),f=x(()=>{const _=e.rowKey.value,S=Object.keys(l.value),k={};return S.length&&S.forEach(T=>{if(l.value[T].length){const M={children:[]};l.value[T].forEach(A=>{const O=Wn(A,_);M.children.push(O),A[r.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=M}}),k}),h=_=>{const S=e.rowKey.value,k={};return one(_,(T,M,A)=>{const O=Wn(T,S);be(M)?k[O]={children:M.map(I=>Wn(I,S)),level:A}:o.value&&(k[O]={children:[],lazy:!0,level:A})},s.value,r.value,o.value),k},g=(_=!1,S)=>{var O,I;S||(S=(O=c.store)==null?void 0:O.states.defaultExpandAll.value);const k=d.value,T=f.value,M=Object.keys(k),A={};if(M.length){const L=i(n),z=[],q=(F,N)=>{if(_)return t.value?S||t.value.includes(N):!!(S||F!=null&&F.expanded);{const P=S||t.value&&t.value.includes(N);return!!(F!=null&&F.expanded||P)}};M.forEach(F=>{const N=L[F],P={...k[F]};if(P.expanded=q(N,F),P.lazy){const{loaded:B=!1,loading:K=!1}=N||{};P.loaded=!!B,P.loading=!!K,z.push(F)}A[F]=P});const U=Object.keys(T);o.value&&U.length&&z.length&&U.forEach(F=>{var B;const N=L[F],P=T[F].children;if(z.includes(F)){if(((B=A[F].children)==null?void 0:B.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[F].children=P}else{const{loaded:K=!1,loading:W=!1}=N||{};A[F]={lazy:!0,loaded:!!K,loading:!!W,expanded:q(N,F),children:P,level:void 0}}})}n.value=A,(I=c.store)==null||I.updateTableScrollY()};fe(()=>t.value,()=>{g(!0)},{deep:!0}),fe(()=>d.value,()=>{g()}),fe(()=>f.value,()=>{g()});const p=_=>{t.value=_,g()},v=_=>o.value&&_&&"loaded"in _&&!_.loaded,m=(_,S)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Wn(_,k),M=T&&n.value[T];if(T&&M&&"expanded"in M){const A=M.expanded;S=Et(S)?!M.expanded:S,n.value[T].expanded=S,A!==S&&c.emit("expand-change",_,S),S&&v(M)&&b(_,T,M),c.store.updateTableScrollY()}},y=_=>{c.store.assertRowKey();const S=e.rowKey.value,k=Wn(_,S),T=n.value[k];v(T)?b(_,k,T):m(_,void 0)},b=(_,S,k)=>{const{load:T}=c.props;T&&!n.value[S].loaded&&(n.value[S].loading=!0,T(_,k,M=>{if(!be(M))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,M.length&&(l.value[S]=M),c.emit("expand-change",_,!0)}))};return{loadData:b,loadOrToggle:y,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:g,updateKeyChildren:(_,S)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[_]&&(l.value[_]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:s,checkStrictly:u}}}const cne=(e,t)=>{const n=t.sortingColumn;return!n||Be(n.sortable)?e:Qte(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Ic=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Ic(n.children)):t.push(n)}),t};function dne(){var ut;const e=vt(),{size:t}=Nn((ut=e.proxy)==null?void 0:ut.$props),n=V(null),a=V([]),o=V([]),l=V(!1),r=V([]),s=V([]),u=V([]),c=V([]),d=V([]),f=V([]),h=V([]),g=V([]),p=[],v=V(0),m=V(0),y=V(0),b=V(!1),w=V([]),_=V(!1),S=V(!1),k=V(null),T=V(null),M=V({}),A=V(null),O=V(null),I=V(null),L=V(null),z=V(null),q=x(()=>n.value?gs(w.value,n.value):void 0);fe(a,()=>{var je;e.state&&(P(!1),e.props.tableLayout==="auto"&&((je=e.refs.tableHeaderRef)==null||je.updateFixedColumnStyle()))},{deep:!0});const U=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},F=je=>{var tt;(tt=je.children)==null||tt.forEach(yt=>{yt.fixed=je.fixed,F(yt)})},N=()=>{r.value.forEach(Te=>{F(Te)}),c.value=r.value.filter(Te=>[!0,"left"].includes(Te.fixed));const je=r.value.find(Te=>Te.type==="selection");let tt;je&&je.fixed!=="right"&&!c.value.includes(je)&&r.value.indexOf(je)===0&&c.value.length&&(c.value.unshift(je),tt=!0),d.value=r.value.filter(Te=>Te.fixed==="right");const yt=r.value.filter(Te=>(tt?Te.type!=="selection":!0)&&!Te.fixed);s.value=Array.from(c.value).concat(yt).concat(d.value);const he=Ic(yt),Ve=Ic(c.value),pe=Ic(d.value);v.value=he.length,m.value=Ve.length,y.value=pe.length,u.value=Array.from(Ve).concat(he).concat(pe),l.value=c.value.length>0||d.value.length>0},P=(je,tt=!1)=>{je&&N(),tt?e.state.doLayout():e.state.debouncedUpdateLayout()},B=je=>q.value?!!q.value[Wn(je,n.value)]:w.value.includes(je),K=()=>{b.value=!1;const je=w.value;w.value=[],je.length&&e.emit("selection-change",[])},W=()=>{var tt,yt;let je;if(n.value){je=[];const he=(yt=(tt=e==null?void 0:e.store)==null?void 0:tt.states)==null?void 0:yt.childrenColumnName.value,Ve=gs(a.value,n.value,!0,he);for(const pe in q.value)Mt(q.value,pe)&&!Ve[pe]&&je.push(q.value[pe].row)}else je=w.value.filter(he=>!a.value.includes(he));if(je.length){const he=w.value.filter(Ve=>!je.includes(Ve));w.value=he,e.emit("selection-change",he.slice())}},j=()=>(w.value||[]).slice(),G=(je,tt,yt=!0,he=!1)=>{var pe,Te,ct,Pt;const Ve={children:(Te=(pe=e==null?void 0:e.store)==null?void 0:pe.states)==null?void 0:Te.childrenColumnName.value,checkStrictly:(Pt=(ct=e==null?void 0:e.store)==null?void 0:ct.states)==null?void 0:Pt.checkStrictly.value};if(kd(w.value,je,tt,Ve,he?void 0:k.value,a.value.indexOf(je),n.value)){const Gt=(w.value||[]).slice();yt&&e.emit("select",Gt,je),e.emit("selection-change",Gt)}},ee=()=>{var Te,ct;const je=S.value?!b.value:!(b.value||w.value.length);b.value=je;let tt=!1,yt=0;const he=(ct=(Te=e==null?void 0:e.store)==null?void 0:Te.states)==null?void 0:ct.rowKey.value,{childrenColumnName:Ve}=e.store.states,pe={children:Ve.value,checkStrictly:!1};a.value.forEach((Pt,Gt)=>{const Oe=Gt+yt;kd(w.value,Pt,je,pe,k.value,Oe,he)&&(tt=!0),yt+=ue(Wn(Pt,he))}),tt&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},te=()=>{var pe;if(((pe=a.value)==null?void 0:pe.length)===0){b.value=!1;return}const{childrenColumnName:je}=e.store.states;let tt=0,yt=0;const he=Te=>{var ct;for(const Pt of Te){const Gt=k.value&&k.value.call(null,Pt,tt);if(B(Pt))yt++;else if(!k.value||Gt)return!1;if(tt++,(ct=Pt[je.value])!=null&&ct.length&&!he(Pt[je.value]))return!1}return!0},Ve=he(a.value||[]);b.value=yt===0?!1:Ve},ue=je=>{var Ve;if(!e||!e.store)return 0;const{treeData:tt}=e.store.states;let yt=0;const he=(Ve=tt.value[je])==null?void 0:Ve.children;return he&&(yt+=he.length,he.forEach(pe=>{yt+=ue(pe)})),yt},ne=(je,tt)=>{const yt={};return $n(je).forEach(he=>{M.value[he.id]=tt,yt[he.columnKey||he.id]=tt}),yt},de=(je,tt,yt)=>{O.value&&O.value!==je&&(O.value.order=null),O.value=je,I.value=tt,L.value=yt},se=()=>{let je=i(o);Object.keys(M.value).forEach(tt=>{const yt=M.value[tt];if(!yt||yt.length===0)return;const he=l5({columns:u.value},tt);he&&he.filterMethod&&(je=je.filter(Ve=>yt.some(pe=>he.filterMethod.call(null,pe,Ve,he))))}),A.value=je},Y=()=>{a.value=cne(A.value??[],{sortingColumn:O.value,sortProp:I.value,sortOrder:L.value})},X=(je=void 0)=>{je!=null&&je.filter||se(),Y()},H=je=>{const{tableHeaderRef:tt}=e.refs;if(!tt)return;const yt=Object.assign({},tt.filterPanels),he=Object.keys(yt);if(he.length)if(Be(je)&&(je=[je]),be(je)){const Ve=je.map(pe=>ene({columns:u.value},pe));he.forEach(pe=>{const Te=Ve.find(ct=>ct.id===pe);Te&&(Te.filteredValue=[])}),e.store.commit("filterChange",{column:Ve,values:[],silent:!0,multi:!0})}else he.forEach(Ve=>{const pe=u.value.find(Te=>Te.id===Ve);pe&&(pe.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{O.value&&(de(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:le,toggleRowExpansion:ce,updateExpandRows:ge,states:me,isRowExpanded:Ae}=sne({data:a,rowKey:n}),{updateTreeExpandKeys:Ne,toggleTreeExpansion:Re,updateTreeData:ye,updateKeyChildren:Ee,loadOrToggle:we,states:Ie}=une({data:a,rowKey:n}),{updateCurrentRowData:ze,updateCurrentRow:et,setCurrentRowKey:nt,states:at}=ine({data:a,rowKey:n});return{assertRowKey:U,updateColumns:N,scheduleLayout:P,isSelected:B,clearSelection:K,cleanSelection:W,getSelectionRows:j,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:te,updateFilters:ne,updateCurrentRow:et,updateSort:de,execFilter:se,execSort:Y,execQuery:X,clearFilter:H,clearSort:Z,toggleRowExpansion:ce,setExpandRowKeysAdapter:je=>{le(je),Ne(je)},setCurrentRowKey:nt,toggleRowExpansionAdapter:(je,tt)=>{u.value.some(({type:yt})=>yt==="expand")?ce(je,tt):Re(je,tt)},isRowExpanded:Ae,updateExpandRows:ge,updateCurrentRowData:ze,loadOrToggle:we,updateTreeData:ye,updateKeyChildren:Ee,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:l,_columns:r,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:_,selectOnIndeterminate:S,selectable:k,rowExpandable:T,filters:M,filteredData:A,sortingColumn:O,sortProp:I,sortOrder:L,hoverRow:z,...me,...Ie,...at}}}function D2(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=D2(n.children,t)),n)})}function H2(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&H2(t.children)}),e.sort((t,n)=>t.no-n.no)}function fne(){const e=vt(),t=dne(),n=ve("table"),{t:a}=kt();return{ns:n,t:a,...t,mutations:{setData(s,u){const c=i(s._data)!==u;s.data.value=u,s._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(s.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,u,c,d){var g;const f=i(s._columns);let h=[];c?(c&&!c.children&&(c.children=[]),(g=c.children)==null||g.push(u),h=D2(f,c)):(f.push(u),h=f),H2(h),s._columns.value=h,s.updateOrderFns.push(d),u.type==="selection"&&(s.selectable.value=u.selectable,s.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(H2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,u,c,d){var g;const f=i(s._columns)||[];if(c)(g=c.children)==null||g.splice(c.children.findIndex(p=>p.id===u.id),1),Le(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),s._columns.value=D2(f,c);else{const p=f.indexOf(u);p>-1&&(f.splice(p,1),s._columns.value=f)}const h=s.updateOrderFns.indexOf(d);h>-1&&s.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,u){const{prop:c,order:d,init:f}=u;if(c){const h=i(s.columns).find(g=>g.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=s,h=i(c),g=i(d),p=i(f);tf(p)&&(s.sortingColumn.value=null,s.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:g,order:p}),e.store.updateTableScrollY()},filterChange(s,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var s,u;(u=(s=e.store).toggleAllSelection)==null||u.call(s)},rowSelectedChanged(s,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(s,u){s.hoverRow.value=u},setCurrentRow(s,u){e.store.updateCurrentRow(u)}},commit:function(s,...u){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Le(()=>e.layout.updateScrollY.apply(e.layout))}}}const ev={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function pne(e,t){if(!e)throw new Error("Table is required.");const n=fne();return n.toggleAllSelection=Vo(n._toggleAllSelection,10),Object.keys(ev).forEach(a=>{c5(d5(t,a),a,n)}),hne(n,t),n}function hne(e,t){Object.keys(ev).forEach(n=>{fe(()=>d5(t,n),a=>{c5(a,n,e)})})}function c5(e,t,n){let a=e,o=ev[t];lt(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function d5(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var vne=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)Mt(e,t)&&(Yt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(tf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!At)return;const n=this.table.vnode.el;if(e=nne(e),this.height.value=Number(e),!n&&(e||e===0)){Le(()=>this.setHeight(e,t));return}n&&He(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Be(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){var s;if(!At)return;const e=this.fit,t=(s=this.table.vnode.el)==null?void 0:s.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(u=>!He(u.width));if(a.forEach(u=>{He(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&e){if(a.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=t){this.scrollX.value=!1;const u=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=u/o.reduce((f,h)=>f+Number(h.minWidth||80),0);let d=0;o.forEach((f,h)=>{if(h===0)return;const g=Math.floor(Number(f.minWidth||80)*c);d+=g,f.realWidth=Number(f.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let u=0;r.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var n,a;switch(e){case"columns":(n=t.state)==null||n.onColumnsChange(this);break;case"scrollable":(a=t.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const vo=Symbol("ElTable"),f5=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,f5(n.children))):t.push(n)}),t},p5=e=>{let t=1;const n=(o,l)=>{if(l&&(o.level=l.level+1,t{n(s,o),r+=s.colSpan}),o.colSpan=r}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(l=>l.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function mne(e){const t=Pe(vo),n=x(()=>p5(e.store.states.originColumns.value));return{isGroup:x(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var gne=D({name:"ElTableFilterPanel",components:{ElCheckbox:lo,ElCheckboxGroup:Nh,ElScrollbar:ao,ElTooltip:Vn,ElIcon:De,ArrowDown:po,ArrowUp:Iu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Ht.appendTo},setup(e){const t=vt(),{t:n}=kt(),a=ve("table-filter"),o=t==null?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const l=V(null),r=V(null),s=V(0),u=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=x({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(ya(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=x({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var M;e.column&&((M=e.upDataColumn)==null||M.call(e,"filteredValue",T))}}),h=x(()=>e.column?e.column.filterMultiple:!0),g=T=>T.value===d.value,p=()=>{var T;(T=l.value)==null||T.onClose()},v=()=>{b(f.value),p()},m=()=>{f.value=[],b(f.value),p()},y=(T,M)=>{d.value=T,s.value=M,ya(T)?b([]):b(f.value),p()},b=T=>{var M,A;(M=e.store)==null||M.commit("filterChange",{column:e.column,values:T}),(A=e.store)==null||A.updateAllSelected()},w=()=>{var T,M;(T=r.value)==null||T.focus(),!h.value&&S(),e.column&&((M=e.upDataColumn)==null||M.call(e,"filterOpened",!0))},_=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},S=()=>{if(ya(d)){s.value=0;return}const T=(u.value||[]).findIndex(M=>M.value===d.value);s.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:y,isPropAbsent:ya,isActive:g,t:n,ns:a,tooltipRef:l,rootRef:r,checkedIndex:s,handleShowTooltip:w,handleHideTooltip:_,handleKeydown:T=>{var L,z;const M=Kt(T),A=(u.value?u.value.length:0)+1;let O=s.value,I=!0;switch(M){case Ce.down:case Ce.right:O=(O+1)%A;break;case Ce.up:case Ce.left:O=(O-1+A)%A;break;case Ce.tab:p(),I=!1;break;case Ce.enter:case Ce.space:if(O===0)y(null,0);else{const q=(u.value||[])[O-1];q.value&&y(q.value,O)}break;default:I=!1;break}I&&T.preventDefault(),s.value=O,(z=(L=r.value)==null?void 0:L.querySelector(`.${a.e("list-item")}:nth-child(${O+1})`))==null||z.focus()}}}});const yne=["disabled"],bne=["tabindex","aria-checked"],wne=["tabindex","aria-checked","onClick"],Cne=["aria-label"];function _ne(e,t,n,a,o,l){const r=Ot("el-checkbox"),s=Ot("el-checkbox-group"),u=Ot("el-scrollbar"),c=Ot("arrow-up"),d=Ot("arrow-down"),f=Ot("el-icon"),h=Ot("el-tooltip");return C(),ie(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ae(()=>[e.multiple?(C(),$("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[E("div",{class:R(e.ns.e("content"))},[Q(u,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.filters,g=>(C(),ie(r,{key:g.value,value:g.value},{default:ae(()=>[St(Se(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},Se(e.t("el.table.confirmFilter")),11,yne),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},Se(e.t("el.table.resetFilter")),1)],2)],2)):(C(),$("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[E("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},Se(e.t("el.table.clearFilter")),11,bne),(C(!0),$(Ke,null,_t(e.filters,(g,p)=>(C(),$("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,p+1)},Se(g.text),11,wne))),128))],34))]),default:ae(()=>{var g;return[E("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((g=e.column)==null?void 0:g.label)||""})},[Q(f,null,{default:ae(()=>[oe(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(C(),ie(c,{key:0})):(C(),ie(d,{key:1}))]})]),_:3})],10,Cne)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Sne=En(gne,[["render",_ne]]);function tv(e){const t=vt();Hd(()=>{n.value.addObserver(t)}),gt(()=>{a(n.value),o(n.value)}),so(()=>{a(n.value),o(n.value)}),Fs(()=>{n.value.removeObserver(t)});const n=x(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),a=l=>{var c;const r=((c=e.vnode.el)==null?void 0:c.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const s=l.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=r.length;d{var u,c;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=r.length;d{v.stopPropagation()},l=(v,m)=>{!m.filters&&m.sortable?p(v,m,!1):m.filterable&&!m.sortable&&o(v),a==null||a.emit("header-click",m,v)},r=(v,m)=>{a==null||a.emit("header-contextmenu",m,v)},s=V(null),u=V(!1),c=V(),d=(v,m)=>{var y,b,w;if(At&&!(m.children&&m.children.length>0)&&s.value&&e.border&&s.value.id===m.id){u.value=!0;const _=a;t("set-drag-visible",!0);const S=(y=_==null?void 0:_.vnode.el)==null?void 0:y.getBoundingClientRect().left,k=(w=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:w.querySelector(`th.${m.id}`),T=k.getBoundingClientRect(),M=T.left-S+30;Ba(k,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-S,startColumnLeft:T.left-S,tableLeft:S};const A=_==null?void 0:_.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=L=>{const z=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+z;A.style.left=`${Math.max(M,q)}px`},I=()=>{if(u.value){const{startColumnLeft:L,startLeft:z}=c.value;m.width=m.realWidth=Number.parseInt(A.style.left,10)-L,_==null||_.emit("header-dragend",m.width,z-L,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,s.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{aa(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)}},f=(v,m)=>{var A;if(!e.border||m.children&&m.children.length>0)return;const y=v.target,b=ga(y)?y.closest("th"):null;if(!b)return;const w=Ao(b,"is-sortable");if(w){const O=u.value?"col-resize":"";b.style.cursor=O;const I=b.querySelector(".caret-wrapper");I&&(I.style.cursor=O)}if(!m.resizable||u.value){s.value=null;return}const _=b.getBoundingClientRect(),S=((A=b.parentNode)==null?void 0:A.lastElementChild)===b,k=e.allowDragLastColumn||!S,T=_.width>12&&_.right-v.clientX<8&&k,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?m:null,w&&(b.style.cursor=M)},h=()=>{!At||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},p=(v,m,y)=>{var A;v.stopPropagation();const b=m.order===y?null:y||g(m),w=(A=v.target)==null?void 0:A.closest("th");if(w&&Ao(w,"noclick")){aa(w,"noclick");return}if(!m.sortable)return;const _=v.currentTarget;if(["ascending","descending"].some(O=>Ao(_,O)&&!m.sortOrders.includes(O)))return;const S=e.store.states;let k=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&tf(M.order))&&(M&&(M.order=null),S.sortingColumn.value=m,k=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=k,S.sortOrder.value=T,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:o}}function kne(e){const t=Pe(vo),n=ve("table");return{getHeaderRowStyle:s=>{const u=t==null?void 0:t.props.headerRowStyle;return Fe(u)?u.call(null,{rowIndex:s}):u},getHeaderRowClass:s=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Be(c)?u.push(c):Fe(c)&&u.push(c.call(null,{rowIndex:s})),u.join(" ")},getHeaderCellStyle:(s,u,c,d)=>{let f=(t==null?void 0:t.props.headerCellStyle)??{};Fe(f)&&(f=f.call(null,{rowIndex:s,columnIndex:u,row:c,column:d}));const h=Qh(u,d.fixed,e.store,c);return Vs(h,"left"),Vs(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(s,u,c,d)=>{const f=Zh(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{rowIndex:s,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>!!p).join(" ")}}}var Ene=D({name:"ElTableHeader",components:{ElCheckbox:lo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=vt(),a=Pe(vo),o=ve("table"),l=V({}),{onColumnsChange:r,onScrollableChange:s}=tv(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=Rt(new Map),d=V();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((L,z)=>{const q=d.value.querySelector(`.${z.replace(/\s/g,".")}`);q&&(L.width=q.getBoundingClientRect().width||L.width)}),c.clear())})};fe(c,h),Lt(()=>{f&&(clearTimeout(f),f=void 0)}),gt(async()=>{await Le(),await Le();const{prop:L,order:z}=e.defaultSort;a==null||a.store.commit("sort",{prop:L,order:z,init:!0}),h()});const{handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w}=xne(e,t),{getHeaderRowStyle:_,getHeaderRowClass:S,getHeaderCellStyle:k,getHeaderCellClass:T}=kne(e),{isGroup:M,toggleAllSelection:A,columnRows:O}=mne(e),{t:I}=kt();return n.state={onColumnsChange:r,onScrollableChange:s},n.filterPanels=l,{ns:o,t:I,filterPanels:l,onColumnsChange:r,onScrollableChange:s,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:_,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w,isGroup:M,toggleAllSelection:A,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:g,store:p,$parent:v,saveIndexSelection:m,isTableLayoutAuto:y}=this;let b=1;return Ye("thead",{ref:"theadRef",class:e.is("group",n)},a.map((w,_)=>Ye("tr",{class:r(_),key:_,style:s(_)},w.map((S,k)=>{S.rowSpan>b&&(b=S.rowSpan);const T=l(_,k,w,S);return y&&S.fixed&&m.set(T,S),Ye("th",{class:T,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:o(_,k,w,S),onClick:M=>{var A;(A=M.currentTarget)!=null&&A.classList.contains("noclick")||u(M,S)},onContextmenu:M=>c(M,S),onMousedown:M=>d(M,S),onMousemove:M=>f(M,S),onMouseout:g},[Ye("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:k,store:p,_self:v}):S.label,S.sortable&&Ye("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:M=>h(M,S)},[Ye("i",{onClick:M=>h(M,S,"ascending"),class:"sort-caret ascending"}),Ye("i",{onClick:M=>h(M,S,"descending"),class:"sort-caret descending"})]),S.filterable&&Ye(Sne,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(M,A)=>{S[M]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function Tne(e){const t=Pe(vo),n=V(""),a=V(Ye("div")),o=(p,v,m)=>{var S,k;const y=t,b=b0(p);let w=null;const _=(S=y==null?void 0:y.vnode.el)==null?void 0:S.dataset.prefix;b&&(w=Vg({columns:((k=e.store)==null?void 0:k.states.columns.value)??[]},b,_),w&&(y==null||y.emit(`cell-${m}`,v,w,b,p))),y==null||y.emit(`row-${m}`,v,w,p)},l=(p,v)=>{o(p,v,"dblclick")},r=(p,v)=>{var m;(m=e.store)==null||m.commit("setCurrentRow",v),o(p,v,"click")},s=(p,v)=>{o(p,v,"contextmenu")},u=Vo(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=Vo(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(p,v,m)=>{var b;let y=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)m(y,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:s,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,m)=>{var N,P,B;if(!t)return;const y=t,b=b0(p),w=(N=y==null?void 0:y.vnode.el)==null?void 0:N.dataset.prefix;let _=null;if(b){if(_=Vg({columns:((P=e.store)==null?void 0:P.states.columns.value)??[]},b,w),!_)return;b.rowSpan>1&&f(b.rowSpan,p,Ba);const K=y.hoverState={cell:b,column:_,row:v};y==null||y.emit("cell-mouse-enter",K.row,K.column,K.cell,p)}if(!m){(sn==null?void 0:sn.trigger)===b&&(sn==null||sn());return}const S=p.target.querySelector(".cell");if(!(Ao(S,`${w}-tooltip`)&&S.childNodes.length&&((B=S.textContent)!=null&&B.trim())))return;const k=document.createRange();k.setStart(S,0),k.setEnd(S,S.childNodes.length);const{width:T,height:M}=k.getBoundingClientRect(),{width:A,height:O}=S.getBoundingClientRect(),{top:I,left:L,right:z,bottom:q}=d(S),U=L+z,F=I+q;Dl(T+U,A)||Dl(M+F,O)||Dl(S.scrollWidth,A)?rne(m,((b==null?void 0:b.innerText)||(b==null?void 0:b.textContent))??"",v,_,b,y):(sn==null?void 0:sn.trigger)===b&&(sn==null||sn())},handleCellMouseLeave:p=>{const v=b0(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,aa);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:a}}function Mne(e){const t=Pe(vo),n=ve("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return Fe(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var p;const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((p=e.store)==null?void 0:p.states.currentRow.value)&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return Be(g)?h.push(g):Fe(g)&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let p=g??{};Fe(g)&&(p=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=Qh(d,e==null?void 0:e.fixed,e.store);return Vs(v,"left"),Vs(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,g)=>{const p=Zh(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),v=[h.id,h.align,h.className,...p],m=t==null?void 0:t.props.cellClassName;return Be(m)?v.push(m):Fe(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,f,h)=>{let g=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(Fe(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:h});be(m)?(g=m[0],p=m[1]):lt(m)&&(g=m.rowspan,p=m.colspan)}return{rowspan:g,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:g,width:p})=>g||p).slice(f,f+d);return Number(h.reduce((g,p)=>Number(g)+Number(p),-1))}}}const One=["colspan","rowspan"];var $ne=D({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(C(),$("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,One))}}),Ane=$ne;function Rne(e){const t=Pe(vo),n=ve("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:s,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=Tne(e),{getRowStyle:h,getRowClass:g,getCellStyle:p,getCellClass:v,getSpan:m,getColspanRealWidth:y}=Mne(e);let b=-1;const w=x(()=>{var M;return(M=e.store)==null?void 0:M.states.columns.value.findIndex(({type:A})=>A==="default")}),_=(M,A)=>{var I;const O=(I=t==null?void 0:t.props)==null?void 0:I.rowKey;return O?Wn(M,O):A},S=(M,A,O,I=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:U,columns:F}=q.states,N=[];let P=!0;return O&&(N.push(n.em("row",`level-${O.level}`)),P=!!O.display),A===0&&(b=-1),e.stripe&&P&&b++,N.push(...g(M,A,b)),Ye("tr",{style:[P?null:{display:"none"},h(M,A)],class:N,key:_(M,A),onDblclick:B=>a(B,M),onClick:B=>o(B,M),onContextmenu:B=>l(B,M),onMouseenter:()=>r(A),onMouseleave:s},F.value.map((B,K)=>{const{rowspan:W,colspan:j}=m(M,B,A,K);if(!W||!j)return null;const G=Object.assign({},B);G.realWidth=y(F.value,j,K);const ee={store:q,_self:e.context||t,column:G,row:M,$index:A,cellIndex:K,expanded:I};K===w.value&&O&&(ee.treeNode={indent:O.level&&O.level*U.value,level:O.level},Dt(O.expanded)&&(ee.treeNode.expanded=O.expanded,"loading"in O&&(ee.treeNode.loading=O.loading),"noLazyChildren"in O&&(ee.treeNode.noLazyChildren=O.noLazyChildren)));const te=`${_(M,A)},${K}`,ue=G.columnKey||G.rawColumnKey||"",ne=B.showOverflowTooltip&&i8({effect:L},z,B.showOverflowTooltip);return Ye(Ane,{style:p(A,K,M,B),class:v(A,K,M,B,j-1),key:`${ue}${te}`,rowspan:W,colspan:j,onMouseenter:de=>u(de,M,ne),onMouseleave:c},{default:()=>k(K,B,ee)})}))},k=(M,A,O)=>A.renderCell(O);return{wrappedRowRender:(M,A)=>{const O=e.store,{isRowExpanded:I,assertRowKey:L}=O,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:U,rowKey:F}=O.states,N=O.states.columns.value;if(N.some(({type:P})=>P==="expand")){const P=I(M),B=S(M,A,void 0,P),K=t==null?void 0:t.renderExpanded;if(!K)return console.error("[Element Error]renderExpanded is required."),B;const W=[[B]];return(t.props.preserveExpandedContent||P)&&W[0].push(Ye("tr",{key:`expanded-row__${B.key}`,style:{display:P?"":"none"}},[Ye("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[K({row:M,$index:A,store:O,expanded:P})])])),W}else if(Object.keys(z.value).length){L();const P=Wn(M,F.value);let B=z.value[P],K=null;B&&(K={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Dt(B.lazy)&&(K&&Dt(B.loaded)&&B.loaded&&(K.noLazyChildren=!(B.children&&B.children.length)),K.loading=B.loading));const W=[S(M,A,K??void 0)];if(B){let j=0;const G=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(ue=>{const ne={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Wn(ue,F.value);if(ya(de))throw new Error("For nested data item, row-key is required.");B={...z.value[de]},B&&(ne.expanded=B.expanded,B.level=B.level||ne.level,B.display=!!(B.expanded&&ne.display),Dt(B.lazy)&&(Dt(B.loaded)&&B.loaded&&(ne.noLazyChildren=!(B.children&&B.children.length)),ne.loading=B.loading)),j++,W.push(S(ue,A+j,ne)),B&&G(q.value[de]||ue[U.value],B)})};B.display=!0,G(q.value[P]||M[U.value],B)}return W}else return S(M,A,void 0)},tooltipContent:d,tooltipTrigger:f}}const Nne={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Pne=D({name:"ElTableBody",props:Nne,setup(e){var d;const t=vt(),n=Pe(vo),a=ve("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}=Rne(e),{onColumnsChange:s,onScrollableChange:u}=tv(n),c=[];return fe((d=e.store)==null?void 0:d.states.hoverRow,(f,h)=>{var y,b;const g=t==null?void 0:t.vnode.el,p=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let v=f;const m=(y=p[v])==null?void 0:y.childNodes;if(m!=null&&m.length){let w=0;Array.from(m).reduce((_,S,k)=>{var T,M;return((T=m[k])==null?void 0:T.colSpan)>1&&(w=(M=m[k])==null?void 0:M.colSpan),S.nodeName!=="TD"&&w===0&&_.push(k),w>0&&w--,_},[]).forEach(_=>{var S;for(v=f;v>0;){const k=(S=p[v-1])==null?void 0:S.childNodes;if(k[_]&&k[_].nodeName==="TD"&&k[_].rowSpan>1){Ba(k[_],"hover-cell"),c.push(k[_]);break}v--}})}else c.forEach(w=>aa(w,"hover-cell")),c.length=0;!((b=e.store)!=null&&b.states.isComplex.value)||!At||Fa(()=>{const w=p[h],_=p[f];w&&!w.classList.contains("hover-fixed-row")&&aa(w,"hover-row"),_&&Ba(_,"hover-row")})}),Fs(()=>{sn==null||sn()}),{ns:a,onColumnsChange:s,onScrollableChange:u,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return Ye("tbody",{tabIndex:-1},[((t==null?void 0:t.states.data.value)||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function Ine(){var t;const e=(t=Pe(vo))==null?void 0:t.store;return{leftFixedLeafCount:x(()=>(e==null?void 0:e.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columnsCount:x(()=>(e==null?void 0:e.states.columns.value.length)??0),leftFixedCount:x(()=>(e==null?void 0:e.states.fixedColumns.value.length)??0),rightFixedCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columns:x(()=>(e==null?void 0:e.states.columns.value)??[])}}function Lne(e){const{columns:t}=Ine(),n=ve("table");return{getCellClasses:(l,r)=>{const s=l[r],u=[n.e("cell"),s.id,s.align,s.labelClassName,...Zh(n.b(),r,s.fixed,e.store)];return s.className&&u.push(s.className),s.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const s=Qh(r,l.fixed,e.store);return Vs(s,"left"),Vs(s,"right"),s},columns:t}}var Vne=D({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Pe(vo),n=ve("table"),{getCellClasses:a,getCellStyles:o,columns:l}=Lne(e),{onScrollableChange:r,onColumnsChange:s}=tv(t);return{ns:n,onScrollableChange:r,onColumnsChange:s,getCellClasses:a,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,l=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:l}):e.forEach((s,u)=>{if(u===0){r[u]=o;return}const c=l.map(g=>Number(g[s.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const p=`${g}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((g,p)=>{const v=Number(p);return Number.isNaN(+v)?g:Number.parseFloat((g+p).toFixed(Math.min(h,20)))},0)}),Ye(Ye("tfoot",[Ye("tr",{},[...e.map((s,u)=>Ye("td",{key:u,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,u),style:t(s,u)},[Ye("div",{class:["cell",s.labelClassName]},[r[u]])]))])]))}});function Bne(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function zne(e,t,n,a){const o=V(!1),l=V(null),r=V(!1),s=U=>{r.value=U},u=V({width:null,height:null,headerHeight:null}),c=V(!1),d={display:"inline-block",verticalAlign:"middle"},f=V(),h=V(0),g=V(0),p=V(0),v=V(0),m=V(0);fe(()=>e.height,U=>{t.setHeight(U??null)},{immediate:!0}),fe(()=>e.maxHeight,U=>{t.setMaxHeight(U??null)},{immediate:!0}),fe(()=>[e.currentRowKey,n.states.rowKey],([U,F])=>{!i(F)||!i(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),fe(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),da(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},b=(U,F)=>{const{pixelX:N,pixelY:P}=F;Math.abs(N)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A)};gt(async()=>{await Le(),n.updateColumns(),O(),requestAnimationFrame(S);const U=a.vnode.el,F=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),u.value={width:f.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(N=>{N.filteredValue&&N.filteredValue.length&&a.store.commit("filterChange",{column:N,values:N.filteredValue,silent:!0})}),a.$ready=!0});const k=(U,F)=>{if(!U)return;const N=Array.from(U.classList).filter(P=>!P.startsWith("is-scrolling-"));N.push(t.scrollX.value?F:"is-scrolling-none"),U.className=N.join(" ")},T=U=>{const{tableWrapper:F}=a.refs;k(F,U)},M=U=>{const{tableWrapper:F}=a.refs;return!!(F&&F.classList.contains(U))},A=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const W="is-scrolling-none";M(W)||T(W);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:F,offsetWidth:N,scrollWidth:P}=U,{headerWrapper:B,footerWrapper:K}=a.refs;B&&(B.scrollLeft=F),K&&(K.scrollLeft=F),F>=P-N-1?T("is-scrolling-right"):T(F===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Vt(a.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?Zt(a.vnode.el,I):Vt(window,"resize",I),Zt(a.refs.tableInnerWrapper,()=>{var U,F;I(),(F=(U=a.refs)==null?void 0:U.scrollBarRef)==null||F.update()}))},I=()=>{var G,ee,te,ue;const U=a.vnode.el;if(!a.$ready||!U)return;let F=!1;const{width:N,height:P,headerHeight:B}=u.value,K=f.value=U.offsetWidth;N!==K&&(F=!0);const W=U.offsetHeight;(e.height||w.value)&&P!==W&&(F=!0);const j=e.tableLayout==="fixed"?a.refs.headerWrapper:(G=a.refs.tableHeaderRef)==null?void 0:G.$el;e.showHeader&&(j==null?void 0:j.offsetHeight)!==B&&(F=!0),h.value=((ee=a.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,p.value=(j==null?void 0:j.scrollHeight)||0,v.value=((te=a.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((ue=a.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,g.value=h.value-p.value-v.value-m.value,F&&(u.value={width:K,height:W,headerHeight:e.showHeader&&(j==null?void 0:j.offsetHeight)||0},S())},L=_n(),z=x(()=>{const{bodyWidth:U,scrollY:F,gutterWidth:N}=t;return U.value?`${U.value-(F.value?N:0)}px`:""}),q=x(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:l,setDragVisible:s,isGroup:c,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&g.value&&(U=`${g.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:U}}),resizeProxyVisible:r,bodyWidth:z,resizeState:u,doLayout:S,tableBodyStyles:_,tableLayout:q,scrollbarViewStyle:d,scrollbarStyle:x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{})}}function Dne(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t=new MutationObserver(()=>{l.forEach(r=>r())}),t.observe(a,o)};gt(()=>{n()}),Fs(()=>{t==null||t.disconnect()})}var Hne={data:{type:Array,default:()=>[]},size:kn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function h5(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>Et(o))&&(n=[]);const a=o=>{const l={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?l.style={width:`${o.width}px`}:l.name=o.id,l};return Ye("colgroup",{},n.map(o=>Ye("col",a(o))))}h5.props=["columns","tableLayout"];const Fne=()=>{const e=V(),t=(l,r)=>{const s=e.value;s&&s.scrollTo(l,r)},n=(l,r)=>{const s=e.value;s&&He(r)&&["Top","Left"].includes(l)&&s[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let Kne=1;var Wne=D({name:"ElTable",directives:{Mousewheel:mM},components:{TableHeader:Ene,TableBody:Pne,TableFooter:Vne,ElScrollbar:ao,hColgroup:h5},props:Hne,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=kt(),n=ve("table"),a=_l("table"),o=vt();wt(vo,o);const l=pne(o,e);o.store=l;const r=new vne({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=r;const s=x(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:y}=Bne(l),{isHidden:b,renderExpanded:w,setDragVisible:_,isGroup:S,handleMouseLeave:k,handleHeaderFooterMousewheel:T,tableSize:M,emptyBlockStyle:A,resizeProxyVisible:O,bodyWidth:I,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N}=zne(e,r,l,o),{scrollBarRef:P,scrollTo:B,setScrollLeft:K,setScrollTop:W}=Fne(),j=Vo(z,50),G=`${n.namespace.value}-table_${Kne++}`;o.tableId=G,o.state={isGroup:S,resizeState:L,doLayout:z,debouncedUpdateLayout:j};const ee=x(()=>e.sumText??t("el.table.sumText")),te=x(()=>e.emptyText??t("el.table.emptyText")),ue=x(()=>{var se;return e.tooltipEffect??((se=a.value)==null?void 0:se.tooltipEffect)}),ne=x(()=>{var se;return e.tooltipOptions??((se=a.value)==null?void 0:se.tooltipOptions)}),de=x(()=>p5(l.states.originColumns.value)[0]);return Dne(o),Lt(()=>{j.cancel()}),{ns:n,layout:r,store:l,columns:de,handleHeaderFooterMousewheel:T,handleMouseLeave:k,tableId:G,tableSize:M,isHidden:b,isEmpty:s,renderExpanded:w,resizeProxyVisible:O,resizeState:L,isGroup:S,bodyWidth:I,tableBodyStyles:q,emptyBlockStyle:A,debouncedUpdateLayout:j,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,doLayout:z,sort:m,updateKeyChildren:y,t,setDragVisible:_,context:o,computedSumText:ee,computedEmptyText:te,computedTooltipEffect:ue,computedTooltipOptions:ne,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N,scrollBarRef:P,scrollTo:B,setScrollLeft:K,setScrollTop:W,allowDragLastColumn:e.allowDragLastColumn}}});const jne=["data-prefix"],qne={ref:"hiddenColumns",class:"hidden-columns"};function Une(e,t,n,a,o,l){const r=Ot("hColgroup"),s=Ot("table-header"),u=Ot("table-body"),c=Ot("table-footer"),d=Ot("el-scrollbar"),f=Sp("mousewheel");return C(),$("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:qe(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[E("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[E("div",qne,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?ft((C(),$("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:qe(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[Q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:ae(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:qe({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(C(),ie(s,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),Q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(C(),ie(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(C(),$("div",{key:0,ref:"emptyBlock",style:qe(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[St(Se(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(C(),$("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?ft((C(),$("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[E("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:qe(e.tableBodyStyles)},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[$t,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(C(),$("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),ft(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[$t,e.resizeProxyVisible]])],46,jne)}var Yne=En(Wne,[["render",Une]]);const Gne={selection:"table-column--selection",expand:"table__expand-column"},Xne={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Jne=e=>Gne[e]||"",Zne={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ye(lo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return Ye(lo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return He(a)?n=t+a:Fe(a)&&(n=a(t)),Ye("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){var c,d;const{ns:l}=n,r=[l.e("expand-icon")];!e.renderExpand&&a&&r.push(l.em("expand-icon","expanded"));const s=function(f){f.stopPropagation(),n.toggleRowExpansion(t)},u=((d=(c=n.states.rowExpandable).value)==null?void 0:d.call(c,t,o))??!0;return u||r.push(l.is("disabled")),Ye("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:r,onClick:s},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[Ye(De,null,{default:()=>[Ye(Un)]})]})},sortable:!1,resizable:!1}};function Qne({row:e,column:t,$index:n}){var l;const a=t.property,o=a&&zl(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((l=o==null?void 0:o.toString)==null?void 0:l.call(o))||""}function eae({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[Ye("span",{class:o.e("placeholder")})]:null;const l=[],r=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(Ye("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dt(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=Un;t.loading&&(u=no),l.push(Ye("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:r},{default:()=>[Ye(De,{class:o.is("loading",t.loading)},{default:()=>[Ye(u)]})]}))}else l.push(Ye("span",{class:o.e("placeholder")}));return l}function Dg(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function tae(e,t){const n=vt();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},s=Dg(l,r);Object.keys(s).forEach(u=>{const c=r[u];Mt(t,c)&&fe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=Jh(d)),c==="minWidth"&&u==="realMinWidth"&&(f=r5(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Dg(l,s);Object.keys(u).forEach(d=>{const f=s[d];Mt(t,f)&&fe(()=>t[f],h=>{n.columnConfig.value[d]=h,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(d=>{Mt(e.value.props,d)&&fe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&Et(t[d])&&(n.columnConfig.value[d]=f)})});const c=_l("table");c.value&&Mt(c.value,"showOverflowTooltip")&&fe(()=>{var d;return(d=c.value)==null?void 0:d.showOverflowTooltip},d=>{n.columnConfig.value.type!=="selection"&&(!Et(t.showOverflowTooltip)||!Et(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function nae(e,t,n){const a=vt(),o=V(""),l=V(!1),r=V(),s=V(),u=ve("table");da(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),da(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:r.value,s.value});const c=x(()=>{let _=a.vnode.vParent||a.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),d=x(()=>{const{store:_}=a.parent;if(!_)return!1;const{treeData:S}=_.states,k=S.value;return k&&Object.keys(k).length>0}),f=V(Jh(e.width)),h=V(r5(e.minWidth)),g=_=>(f.value&&(_.width=f.value),h.value&&(_.minWidth=h.value),!f.value&&h.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Et(_.width)?_.minWidth:_.width),_),p=_=>{const S=_.type,k=Zne[S]||{};Object.keys(k).forEach(M=>{const A=k[M];M!=="className"&&!Et(A)&&(_[M]=A)});const T=Jne(S);if(T){const M=`${i(u.namespace)}-${T}`;_.className=_.className?`${_.className} ${M}`:M}return _},v=_=>{be(_)?_.forEach(k=>S(k)):S(_);function S(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=a)}};return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:p,setColumnRenders:_=>{e.renderHeader?pt("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):_.type!=="selection"&&(_.renderHeader=k=>{if(a.columnConfig.value.label,t.header){const T=t.header(k);if(u5(T))return Ye(Ke,T)}return St(_.label)}),t["filter-icon"]&&(_.renderFilterIcon=k=>oe(t,"filter-icon",k)),t.expand&&(_.renderExpand=k=>oe(t,"expand",k));let S=_.renderCell;return _.type==="expand"?(_.renderCell=k=>Ye("div",{class:"cell"},[S(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(S=S||Qne,_.renderCell=k=>{let T=null;if(t.default){const L=t.default(k);T=L.some(z=>z.type!==mn)?L:S(k)}else T=S(k);const{columns:M}=n.value.store.states,A=M.value.findIndex(L=>L.type==="default"),O=eae(k,d.value&&k.cellIndex===A),I={class:"cell",style:{}};return _.showOverflowTooltip&&(I.class=`${I.class} ${i(u.namespace)}-tooltip`,I.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),v(T),Ye("div",I,[O,T])}),_},getPropsData:(..._)=>_.reduce((S,k)=>(be(k)&&k.forEach(T=>{S[T]=e[T]}),S),{}),getColumnElIndex:(_,S)=>Array.prototype.indexOf.call(_,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var aae={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let oae=1;var lae=D({name:"ElTableColumn",components:{ElCheckbox:lo},props:aae,setup(e,{slots:t}){const n=vt(),a=_l("table"),o=V({}),l=x(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:r,registerComplexWatchers:s}=tae(l,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:y,updateColumnOrder:b}=nae(e,t,l),w=f.value;u.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${oae++}`,Hd(()=>{var O,I;c.value=l.value!==w;const _=e.type||"default",S=e.sortable===""?!0:e.sortable,k=_==="selection"?!1:Et(e.showOverflowTooltip)?w.props.showOverflowTooltip??((O=a.value)==null?void 0:O.showOverflowTooltip):e.showOverflowTooltip,T=Et(e.tooltipFormatter)?w.props.tooltipFormatter??((I=a.value)==null?void 0:I.tooltipFormatter):e.tooltipFormatter,M={...Xne[_],id:u.value,type:_,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=tne(M,A),A=ane(p,h,g)(A),o.value=A,r(),s()}),gt(()=>{var T,M;const _=f.value,S=c.value?(T=_.vnode.el)==null?void 0:T.children:(M=_.refs.hiddenColumns)==null?void 0:M.children,k=()=>m(S||[],n.vnode.el);o.value.getColumnIndex=k,k()>-1&&l.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in _&&_.columnConfig.value:null,b)}),Lt(()=>{const _=o.value.getColumnIndex;(_?_():-1)>-1&&l.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in w&&w.columnConfig.value:null,b)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(be(a))for(const l of a)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===Ke&&be(l.children)&&l.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Be(r==null?void 0:r.children)&&o.push(r)});return Ye("div",o)}catch{return Ye("div",[])}}}),v5=lae;const rae=it(Yne,{TableColumn:v5}),sae=tn(v5);let Mo=function(e){return e.ASC="asc",e.DESC="desc",e}({}),Ed=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({}),iae=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const F2={[Mo.ASC]:Mo.DESC,[Mo.DESC]:Mo.ASC},uu=Symbol("placeholder"),m5=String,Hu={type:J(Array),required:!0},nv={type:J(Array)},g5={...nv,required:!0},uae=String,Hg={type:J(Array),default:()=>on([])},cr={type:Number,required:!0},y5={type:J([String,Number,Symbol]),default:"id"},Fg={type:J(Object)},gr=_e({class:String,columns:Hu,columnsStyles:{type:J(Object),required:!0},depth:Number,expandColumnKey:uae,estimatedRowHeight:{...xr.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:J(Function)},onRowHover:{type:J(Function)},onRowHeightChange:{type:J(Function)},rowData:{type:J(Object),required:!0},rowEventHandlers:{type:J(Object)},rowIndex:{type:Number,required:!0},rowKey:y5,style:{type:J(Object)}}),w0={type:Number,required:!0},av=_e({class:String,columns:Hu,fixedHeaderData:{type:J(Array)},headerData:{type:J(Array),required:!0},headerHeight:{type:J([Number,Array]),default:50},rowWidth:w0,rowHeight:{type:Number,default:50},height:w0,width:w0}),Lc=_e({columns:Hu,data:g5,fixedData:nv,estimatedRowHeight:gr.estimatedRowHeight,width:cr,height:cr,headerWidth:cr,headerHeight:av.headerHeight,bodyWidth:cr,rowHeight:cr,cache:zw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:xr.scrollbarAlwaysOn,scrollbarStartGap:xr.scrollbarStartGap,scrollbarEndGap:xr.scrollbarEndGap,class:m5,style:Fg,containerStyle:Fg,getRowHeight:{type:J(Function),required:!0},rowKey:gr.rowKey,onRowsRendered:{type:J(Function)},onScroll:{type:J(Function)}}),cae=_e({cache:Lc.cache,estimatedRowHeight:gr.estimatedRowHeight,rowKey:y5,headerClass:{type:J([String,Function])},headerProps:{type:J([Object,Function])},headerCellProps:{type:J([Object,Function])},headerHeight:av.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:J([String,Function])},rowProps:{type:J([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:J([Object,Function])},columns:Hu,data:g5,dataGetter:{type:J(Function)},fixedData:nv,expandColumnKey:gr.expandColumnKey,expandedRowKeys:Hg,defaultExpandedRowKeys:Hg,class:m5,fixed:Boolean,style:{type:J(Object)},width:cr,height:cr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:xr.hScrollbarSize,vScrollbarSize:xr.vScrollbarSize,scrollbarAlwaysOn:Fw.alwaysOn,sortBy:{type:J(Object),default:()=>({})},sortState:{type:J(Object),default:void 0},onColumnSort:{type:J(Function)},onExpandedRowsChange:{type:J(Function)},onEndReached:{type:J(Function)},onRowExpand:gr.onRowExpand,onScroll:Lc.onScroll,onRowsRendered:Lc.onRowsRendered,rowEventHandlers:gr.rowEventHandlers}),dae=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function fae(e,t,n){const a=x(()=>i(t).map((m,y)=>({...m,key:m.key??m.dataKey??y}))),o=x(()=>i(a).filter(m=>!m.hidden)),l=x(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),r=x(()=>i(o).filter(m=>m.fixed==="right")),s=x(()=>i(o).filter(m=>!m.fixed)),u=x(()=>{const m=[];return i(l).forEach(y=>{m.push({...y,placeholderSign:uu})}),i(s).forEach(y=>{m.push(y)}),i(r).forEach(y=>{m.push({...y,placeholderSign:uu})}),m}),c=x(()=>i(l).length||i(r).length),d=x(()=>i(a).reduce((m,y)=>(m[y.key]=dae(y,i(n),e.fixed),m),{})),f=x(()=>i(o).reduce((m,y)=>m+y.width,0)),h=m=>i(a).find(y=>y.key===m),g=m=>i(d)[m],p=(m,y)=>{m.width=y};function v(m){var S;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let _=Mo.ASC;lt(b)?_=F2[b[y]]:_=F2[w.order],(S=e.onColumnSort)==null||S.call(e,{column:h(y),key:y,order:_})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:s,visibleColumns:o,getColumn:h,getColumnStyle:g,updateColumnWidth:p,onColumnSorted:v}}const pae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=V({scrollLeft:0,scrollTop:0});function r(g){var v,m,y;const{scrollTop:p}=g;(v=t.value)==null||v.scrollTo(g),(m=n.value)==null||m.scrollToTop(p),(y=a.value)==null||y.scrollToTop(p)}function s(g){l.value=g,r(g)}function u(g){l.value.scrollTop=g,r(i(l))}function c(g){var p,v;l.value.scrollLeft=g,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,i(l))}function d(g){var p;s(g),(p=e.onScroll)==null||p.call(e,g)}function f({scrollTop:g}){const{scrollTop:p}=i(l);g!==p&&u(g)}function h(g,p="auto"){var v;(v=t.value)==null||v.scrollToRow(g,p)}return fe(()=>i(l).scrollTop,(g,p)=>{g>p&&o()}),{scrollPos:l,scrollTo:s,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},hae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const s=vt(),{emit:u}=s,c=qt(!1),d=V(e.defaultExpandedRowKeys||[]),f=V(-1),h=qt(null),g=V({}),p=V({}),v=qt({}),m=qt({}),y=qt({}),b=x(()=>He(e.estimatedRowHeight));function w(O){var I;(I=e.onRowsRendered)==null||I.call(e,O),O.rowCacheEnd>i(f)&&(f.value=O.rowCacheEnd)}function _({hovered:O,rowKey:I}){r.value||o.vnode.el.querySelectorAll(`[rowkey="${String(I)}"]`).forEach(L=>{O?L.classList.add(l.is("hovered")):L.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:I,rowIndex:L,rowKey:z}){var F,N;const q=[...i(d)],U=q.indexOf(z);O?U===-1&&q.push(z):U>-1&&q.splice(U,1),d.value=q,u("update:expandedRowKeys",q),(F=e.onRowExpand)==null||F.call(e,{expanded:O,rowData:I,rowIndex:L,rowKey:z}),(N=e.onExpandedRowsChange)==null||N.call(e,q),o.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(z)}"]`)&&Le(()=>_({hovered:!0,rowKey:z}))}const k=Vo(()=>{var O,I,L,z;c.value=!0,g.value={...i(g),...i(p)},T(i(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(I=n.value)==null||I.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(z=s.proxy)==null||z.$forceUpdate(),c.value=!1},0);function T(O,I=!1){i(b)&&[t,n,a].forEach(L=>{const z=i(L);z&&z.resetAfterRowIndex(O,I)})}function M(O,I,L){const z=i(h);(z===null||z>L)&&(h.value=L),p.value[O]=I}function A({rowKey:O,height:I,rowIndex:L},z){z?z===iae.RIGHT?y.value[O]=I:v.value[O]=I:m.value[O]=I;const q=Math.max(...[v,y,m].map(U=>U.value[O]||0));i(g)[O]!==q&&(M(O,q,L),k())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:b,isResetting:c,rowHeights:g,resetAfterIndex:T,onRowExpanded:S,onRowHovered:_,onRowsRendered:w,onRowHeightChange:A}},vae=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=V({}),l=x(()=>{const s={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let g=u.slice();for(g.forEach(p=>s[p[c]]=0);g.length>0;){const p=g.shift();f.push(p),h.has(p[c])&&be(p.children)&&p.children.length>0&&(g=[...p.children,...g],p.children.forEach(v=>s[v[c]]=s[p[c]]+1))}return o.value=s,f}),r=x(()=>{const{data:s,expandColumnKey:u}=e;return u?i(l):s});return fe(r,(s,u)=>{s!==u&&(n.value=-1,a(0,!0))}),{data:r,depthMap:o}},mae=(e,t)=>e+t,Vc=e=>be(e)?e.reduce(mae,0):e,Lr=(e,t,n={})=>Fe(e)?e(t):e??n,Bl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=ln(e[t])}),e),b5=e=>Wt(e)?t=>Ye(e,t):e,gae=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=x(()=>{const{fixed:v,width:m,vScrollbarSize:y}=e,b=m-y;return v?Math.max(Math.round(i(t)),b):b}),r=x(()=>{const{height:v=0,maxHeight:m=0,footerHeight:y,hScrollbarSize:b}=e;if(m>0){const w=i(h),_=i(n),S=i(f)+w+_+b;return Math.min(S,m-y)}return v-y}),s=x(()=>{const{maxHeight:v}=e,m=i(r);if(He(v)&&v>0)return m;const y=i(n)+i(f)+i(h);return Math.min(m,y)}),u=v=>v.width,c=x(()=>Vc(i(a).map(u))),d=x(()=>Vc(i(o).map(u))),f=x(()=>Vc(e.headerHeight)),h=x(()=>{var v;return(((v=e.fixedData)==null?void 0:v.length)||0)*e.rowHeight}),g=x(()=>i(r)-i(f)-i(h)),p=x(()=>{const{style:v={},height:m,width:y}=e;return Bl({...v,height:m,width:y})});return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:x(()=>Bl({height:e.footerHeight})),emptyStyle:x(()=>({top:ln(i(f)),bottom:ln(e.footerHeight),width:ln(e.width)})),rootStyle:p,headerHeight:f}};function yae(e){const t=V(),n=V(),a=V(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=fae(e,Bt(e,"columns"),Bt(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y,scrollPos:b}=pae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:Z}),w=ve("table-v2"),_=vt(),S=qt(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:M,isResetting:A,rowHeights:O,resetAfterIndex:I,onRowExpanded:L,onRowHeightChange:z,onRowHovered:q,onRowsRendered:U}=hae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:_,ns:w,isScrolling:S}),{data:F,depthMap:N}=vae(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:I}),P=x(()=>{const{estimatedRowHeight:le,rowHeight:ce}=e,ge=i(F);return He(le)?Object.values(i(O)).reduce((me,Ae)=>me+Ae,0):ge.length*ce}),{bodyWidth:B,fixedTableHeight:K,mainTableHeight:W,leftTableWidth:j,rightTableWidth:G,windowHeight:ee,footerHeight:te,emptyStyle:ue,rootStyle:ne,headerHeight:de}=gae(e,{columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,rowsHeight:P}),se=V(),Y=x(()=>{const le=i(F).length===0;return be(e.fixedData)?e.fixedData.length===0&&le:le});function X(le){const{estimatedRowHeight:ce,rowHeight:ge,rowKey:me}=e;return ce?i(O)[i(F)[le][me]]||ce:ge}const H=V(!1);function Z(){const{onEndReached:le}=e;if(!le)return;const{scrollTop:ce}=i(b),ge=i(P),me=ge-(ce+i(ee))+e.hScrollbarSize;!H.value&&i(T)>=0&&ge<=ce+i(W)-i(de)?(H.value=!0,le(me)):H.value=!1}return fe(()=>i(P),()=>H.value=!1),fe(()=>e.expandedRowKeys,le=>k.value=le,{deep:!0}),{columns:o,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:A,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:F,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:B,emptyStyle:ue,rootStyle:ne,footerHeight:te,mainTableHeight:W,fixedTableHeight:K,leftTableWidth:j,rightTableWidth:G,showEmpty:Y,getRowHeight:X,onColumnSorted:f,onRowHovered:q,onRowExpanded:L,onRowsRendered:U,onRowHeightChange:z,scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y}}const ov=Symbol("tableV2"),w5="tableV2GridScrollLeft",bae=D({name:"ElTableV2Header",props:av,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),o=Pe(w5),l=V(),r=x(()=>Bl({width:e.width,height:e.height})),s=x(()=>Bl({width:e.rowWidth,height:e.height})),u=x(()=>$n(i(e.headerHeight))),c=h=>{const g=i(l);Le(()=>{g!=null&&g.scroll&&g.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:g,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((m,y)=>{var w;const b=Bl({height:v,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:h,columns:g,rowData:m,rowIndex:-(y+1),style:b})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((p,v)=>{var y;const m=Bl({width:"100%",height:p});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:g,headerIndex:v,style:m})})};return so(()=>{o!=null&&o.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Q("div",{ref:l,class:e.class,style:i(r),role:"rowgroup"},[Q("div",{style:i(s),class:a.e("header")},[f(),d()])])}}}),wae="ElTableV2Grid",Cae=e=>{const t=V(),n=V(),a=V(0),o=x(()=>{const{data:m,rowHeight:y,estimatedRowHeight:b}=e;if(!b)return m.length*y}),l=x(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),r=x(()=>Vc(e.headerHeight)),s=x(()=>{const{height:m}=e;return Math.max(0,m-i(r)-i(l))}),u=x(()=>i(r)+i(l)>0),c=({data:m,rowIndex:y})=>m[y][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w})}function f(m,y){var b;(b=n.value)==null||b.resetAfterRowIndex(m,y)}function h(m,y){const b=i(t),w=i(n);lt(m)?(b==null||b.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,w==null||w.scrollTo(m)):(b==null||b.scrollToLeft(m),a.value=m,w==null||w.scrollTo({scrollLeft:m,scrollTop:y}))}function g(m){var y;(y=i(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){const b=i(n);if(!b)return;const w=a.value;b.scrollToItem(m,0,y),w&&h({scrollLeft:w})}function v(){var m,y;(m=i(n))==null||m.$forceUpdate(),(y=i(t))==null||y.$forceUpdate()}return fe(()=>e.bodyWidth,()=>{var m;He(e.estimatedRowHeight)&&((m=n.value)==null||m.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:s,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:g,scrollToRow:p,scrollLeft:a}},lv=D({name:wae,props:Lc,setup(e,{slots:t,expose:n}){const{ns:a}=Pe(ov),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:s,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:b}=Cae(e);wt(w5,b),vu(async()=>{var S;await Le();const _=(S=o.value)==null?void 0:S.states.scrollTop;_&&m(Math.round(_)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:y,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:_,columns:S,data:k,fixedData:T,useIsScrolling:M,scrollbarAlwaysOn:A,scrollbarEndGap:O,scrollbarStartGap:I,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:U,headerWidth:F,height:N,width:P,getRowHeight:B,onScroll:K}=e,W=He(U),j=W?xee:wee,G=i(c);return Q("div",{role:"table",class:[a.e("table"),e.class],style:L},[Q(j,{ref:o,data:k,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:W?w:q,totalColumn:1,totalRow:k.length,rowCache:_,rowHeight:W?B:z,width:P,height:i(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:O,scrollbarAlwaysOn:A,onScroll:K,onItemRendered:g,perfMode:!1},{default:ee=>{var ue;const te=k[ee.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...ee,columns:S,rowData:te})}}),i(s)&&Q(bae,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:F,rowHeight:z,width:P,height:Math.min(G+i(l),N)},{dynamic:t.header,fixed:t.row})])}}});function _ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Sae=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),_ae(t)?t:{default:()=>[t]})};function xae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const kae=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),xae(t)?t:{default:()=>[t]})};function Eae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Tae=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Q(lv,ht({ref:n},a),Eae(t)?t:{default:()=>[t]})},Mae=e=>{const{isScrolling:t}=Pe(ov),n=V(!1),a=V(),o=x(()=>He(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:g,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Le(()=>{if(u||v!==Number.parseInt(p.height)){const m=d[0],y=(m==null?void 0:m.placeholderSign)===uu;f==null||f({rowKey:h,height:v,rowIndex:g},m&&!y&&m.fixed)}})},r=x(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([p,v])=>{Fe(v)&&(g[p]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const m=g[p];g[p]=y=>{f({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m==null||m(y)}}),g}),s=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return gt(()=>{i(o)&&l(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:r,onExpand:s}},Oae=D({name:"ElTableV2TableRow",props:gr,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:s,rowRef:u,onExpand:c}=Mae(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:g,rowData:p,rowIndex:v,style:m}=e;let y=d.map((b,w)=>{const _=be(p.children)&&p.children.length>0&&b.key===h;return n.cell({column:b,columns:d,columnIndex:w,depth:g,style:f[b.key],rowData:p,rowIndex:v,isScrolling:i(l),expandIconProps:_?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(b=>be(b)&&b.length===1?b[0]:b),style:m,columns:d,depth:g,rowData:p,rowIndex:v,isScrolling:i(l)})),i(r)){const{height:b,...w}=m||{},_=i(s);return Q("div",ht({ref:u,class:e.class,style:_?m:w,role:"row"},a,i(o)),[y])}return Q("div",ht(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[y])}}});function $ae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Aae=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:s,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:g,rowClass:p,rowKey:v,rowEventHandlers:m,ns:y,onRowHovered:b,onRowExpanded:w}=e,_=Lr(p,{columns:n,rowData:c,rowIndex:d},""),S=Lr(g,{columns:n,rowData:c,rowIndex:d}),k=c[v],T=o[k]||0,M=!!l,A=d<0,O=[y.e("row"),_,y.is("expanded",M&&r.includes(k)),y.is("fixed",!T&&A),y.is("customized",!!t.row),{[y.e(`row-depth-${T}`)]:M&&d>=0}],I=u?b:void 0,L={...S,columns:n,columnsStyles:a,class:O,depth:T,expandColumnKey:l,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:m,style:f};return Q(Oae,ht(L,{onRowExpand:w,onMouseenter:U=>{I==null||I({hovered:!0,rowKey:k,event:U,rowData:c,rowIndex:d})},onMouseleave:U=>{I==null||I({hovered:!1,rowKey:k,event:U,rowData:c,rowIndex:d})},rowkey:k}),$ae(t)?t:{default:()=>[t]})},rv=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,o=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"",l=oe(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[l])};rv.displayName="ElTableV2Cell";rv.inheritAttrs=!1;const C5=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l,ariaLabel:r}=e;return Q("button",ht({onClick:n?()=>a(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class},{type:"button"}),[Q(De,{size:l,style:o},{default:()=>[Q(Un,null,null)]})])};C5.inheritAttrs=!1;const K2=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:s,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:g,indentSize:p,iconSize:v,rowKey:m},{slots:y})=>{const b=Bl(u);if(t.placeholderSign===uu)return Q("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:_,dataGetter:S}=t,k=Fe(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:s}):bn(r,_??""),T=Lr(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:r}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:s},A=b5(w),O=A?A(M):oe(y,"default",M,()=>[Q(rv,M,null)]),I=[d.e("row-cell"),t.class,t.align===Ed.CENTER&&d.is("align-center"),t.align===Ed.RIGHT&&d.is("align-right")],L=s>=0&&g&&t.key===g,z=s>=0&&c.includes(r[m]);let q;const U=`margin-inline-start: ${a*p}px;`;return L&&(lt(o)?q=Q(C5,ht(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:v,expanded:z,ariaLabel:f(z?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:U,expandable:!0}),null):q=Q("div",{style:[U,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Q("div",ht({class:I,style:b},T,{role:"cell"}),[q,O])};K2.inheritAttrs=!1;const Rae=_e({class:String,columns:Hu,columnsStyles:{type:J(Object),required:!0},headerIndex:Number,style:{type:J(Object)}}),Nae=D({name:"ElTableV2HeaderRow",props:Rae,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map((s,u)=>t.cell({columns:n,column:s,columnIndex:u,headerIndex:o,style:a[s.key]}));return t.header&&(r=t.header({cells:r.map(s=>be(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Q("div",{class:e.class,style:l,role:"row"},[r])}}});function Pae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Iae=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:s})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),Lr(o,u,""),r.is("customized",!!s.header)];return Q(Nae,{...Lr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},Pae(s)?s:{default:()=>[s]})},sv=(e,{slots:t})=>oe(t,"default",e,()=>{var n,a;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});sv.displayName="ElTableV2HeaderCell";sv.inheritAttrs=!1;const Lae=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(De,{size:14},{default:()=>[t===Mo.ASC?Q(My,null,null):Q(Ty,null,null)]})])},Kg=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:l,onColumnSorted:r}=e,s=Bl(l);if(n.placeholderSign===uu)return Q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},h=b5(u),g=h?h(f):oe(t,"default",f,()=>[Q(sv,f,null)]),{sortBy:p,sortState:v,headerCellProps:m}=e;let y,b,w;if(v){const S=v[n.key];y=!!F2[S],b=y?S:Mo.ASC}else y=n.key===p.key,b=y?p.order:Mo.ASC;b===Mo.ASC?w="ascending":b===Mo.DESC?w="descending":w=void 0;const _=[a.e("header-cell"),Lr(c,e,""),n.align===Ed.CENTER&&a.is("align-center"),n.align===Ed.RIGHT&&a.is("align-right"),d&&a.is("sortable")];return Q("div",ht({...Lr(m,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:_,style:s,"data-key":n.key},{role:"columnheader"}),[g,d&&Q(Lae,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},_5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};_5.displayName="ElTableV2Footer";const S5=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[Q(Ew,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};S5.displayName="ElTableV2Empty";const x5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};x5.displayName="ElTableV2Overlay";function fi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Vae=D({name:"ElTableV2",props:cae,slots:Object,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),{t:o}=kt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:g,depthMap:p,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:y,leftTableRef:b,rightTableRef:w,isDynamic:_,isResetting:S,isScrolling:k,bodyWidth:T,emptyStyle:M,rootStyle:A,footerHeight:O,showEmpty:I,scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U,getRowHeight:F,onColumnSorted:N,onRowHeightChange:P,onRowHovered:B,onRowExpanded:K,onRowsRendered:W,onScroll:j,onVerticalScroll:G}=yae(e);return n({scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U}),wt(ov,{ns:a,isResetting:S,isScrolling:k}),()=>{const{cache:ee,cellProps:te,estimatedRowHeight:ue,expandColumnKey:ne,fixedData:de,headerHeight:se,headerClass:Y,headerProps:X,headerCellProps:H,sortBy:Z,sortState:le,rowHeight:ce,rowClass:ge,rowEventHandlers:me,rowKey:Ae,rowProps:Ne,scrollbarAlwaysOn:Re,indentSize:ye,iconSize:Ee,useIsScrolling:we,vScrollbarSize:Ie,width:ze}=e,et=i(g),nt={cache:ee,class:a.e("main"),columns:i(u),data:et,fixedData:de,estimatedRowHeight:ue,bodyWidth:i(T),headerHeight:se,headerWidth:i(T),height:i(c),mainTableRef:y,rowKey:Ae,rowHeight:ce,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:ze,getRowHeight:F,onRowsRendered:W,onScroll:j},at=i(f),Me=i(d),Ge={cache:ee,class:a.e("left"),columns:i(r),data:et,fixedData:de,estimatedRowHeight:ue,leftTableRef:b,rowHeight:ce,bodyWidth:at,headerWidth:at,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,useIsScrolling:we,width:at,getRowHeight:F,onScroll:G},ut=i(h),je={cache:ee,class:a.e("right"),columns:i(s),data:et,fixedData:de,estimatedRowHeight:ue,rightTableRef:w,rowHeight:ce,bodyWidth:ut,headerWidth:ut,headerHeight:se,height:Me,rowKey:Ae,scrollbarAlwaysOn:Re,scrollbarStartGap:2,scrollbarEndGap:Ie,width:ut,style:`${a.cssVarName("table-scrollbar-size")}: ${Ie}px`,useIsScrolling:we,getRowHeight:F,onScroll:G},tt=i(l),yt={ns:a,depthMap:i(p),columnsStyles:tt,expandColumnKey:ne,expandedRowKeys:i(v),estimatedRowHeight:ue,hasFixedColumns:i(m),rowProps:Ne,rowClass:ge,rowKey:Ae,rowEventHandlers:me,onRowHovered:B,onRowExpanded:K,onRowHeightChange:P},he={cellProps:te,expandColumnKey:ne,indentSize:ye,iconSize:Ee,rowKey:Ae,expandedRowKeys:i(v),ns:a,t:o},Ve={ns:a,headerClass:Y,headerProps:X,columnsStyles:tt},pe={ns:a,t:o,sortBy:Z,sortState:le,headerCellProps:H,onColumnSorted:N},Te={row:Gt=>Q(Aae,ht(Gt,yt),{row:t.row,cell:Oe=>{let We;return t.cell?Q(K2,ht(Oe,he,{style:tt[Oe.column.key]}),fi(We=t.cell(Oe))?We:{default:()=>[We]}):Q(K2,ht(Oe,he,{style:tt[Oe.column.key]}),null)}}),header:Gt=>Q(Iae,ht(Gt,Ve),{header:t.header,cell:Oe=>{let We;return t["header-cell"]?Q(Kg,ht(Oe,pe,{style:tt[Oe.column.key]}),fi(We=t["header-cell"](Oe))?We:{default:()=>[We]}):Q(Kg,ht(Oe,pe,{style:tt[Oe.column.key]}),null)}})},ct=[e.class,a.b(),a.e("root"),a.is("dynamic",i(_))],Pt={class:a.e("footer"),style:i(O)};return Q("div",{class:ct,style:i(A)},[Q(Sae,nt,fi(Te)?Te:{default:()=>[Te]}),Q(kae,Ge,fi(Te)?Te:{default:()=>[Te]}),Q(Tae,je,fi(Te)?Te:{default:()=>[Te]}),t.footer&&Q(_5,Pt,{default:t.footer}),i(I)&&Q(S5,{class:a.e("empty"),style:i(M)},{default:t.empty}),t.overlay&&Q(x5,{class:a.e("overlay")},{default:t.overlay})])}}}),Bae=_e({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:J(Function)}}),zae=e=>{const t=V(),n=V(0),a=V(0);let o;return gt(()=>{o=Zt(t,([l])=>{const{width:r,height:s}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-g,a.value=s-p-v}).stop}),Lt(()=>{o==null||o()}),fe([n,a],([l,r])=>{var s;(s=e.onResize)==null||s.call(e,{width:l,height:r})}),{sizer:t,width:n,height:a}},Dae=D({name:"ElAutoResizer",props:Bae,setup(e,{slots:t}){const n=ve("auto-resizer"),{height:a,width:o,sizer:l}=zae(e),r={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:l,class:n.b(),style:r},[(s=t.default)==null?void 0:s.call(t,{height:a.value,width:o.value})])}}}),Hae=it(Vae),Fae=it(Dae),Cf=Symbol("tabsRootContextKey"),Kae=_e({tabs:{type:J(Array),default:()=>on([])},tabRefs:{type:J(Object),default:()=>on({})}}),Wg="ElTabBar";var Wae=D({name:Wg,__name:"tab-bar",props:Kae,setup(e,{expose:t}){const n=e,a=Pe(Cf);a||en(Wg,"");const o=ve("tabs"),l=V(),r=V(),s=x(()=>{var g;return Et(a.props.defaultValue)||!!((g=r.value)!=null&&g.transform)}),u=()=>{let g=0,p=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(b=>{if(Et(b.paneName))return!1;const w=n.tabRefs[b.paneName];if(!w)return!1;if(!b.active)return!0;g=w[`offset${Zf(y)}`],p=w[`client${Zf(v)}`];const _=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),g+=Number.parseFloat(_.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${Zf(m)}(${g}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(Zt(g,c))})};fe(()=>n.tabs,async()=>{await Le(),c(),f()},{immediate:!0});const h=Zt(l,()=>c());return Lt(()=>{d.forEach(g=>g.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(g,p)=>s.value?(C(),$("div",{key:0,ref_key:"barRef",ref:l,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:qe(r.value)},null,6)):re("v-if",!0)}}),jae=Wae;const qae=_e({panes:{type:J(Array),default:()=>on([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),Uae={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},jg="ElTabNav",Yae=D({name:jg,props:qae,emits:Uae,setup(e,{expose:t,emit:n}){const a=Pe(Cf);a||en(jg,"");const o=ve("tabs"),l=AS(),r=NS(),s=V(),u=V(),c=V(),d=V({}),f=V(),h=V(!1),g=V(0),p=V(!1),v=V(!0),m=V(!1),y=qt(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)),w=x(()=>b.value?"width":"height"),_=x(()=>{const j=w.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${j}(-${g.value}px)`}}),{width:S,height:k}=j0(s),{width:T,height:M}=j0(u,{width:0,height:0},{box:"border-box"}),A=x(()=>b.value?S.value:k.value),O=x(()=>b.value?T.value:M.value),{onWheel:I}=Ww({atStartEdge:x(()=>g.value<=0),atEndEdge:x(()=>O.value-g.value<=A.value),layout:x(()=>b.value?"horizontal":"vertical")},j=>{g.value=fr(g.value+j,0,O.value-A.value)}),L=j=>{m.value=!0,I(j),Fa(()=>{m.value=!1})},z=()=>{if(!s.value)return;const j=s.value.getBoundingClientRect()[w.value],G=g.value;G&&(g.value=G>j?G-j:0)},q=()=>{if(!s.value||!u.value)return;const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;Dl(j-ee,G)&&(g.value=j-ee>G*2?ee+G:j-G)},U=async()=>{const j=u.value;if(!h.value||!c.value||!s.value||!j)return;await Le();const G=d.value[e.currentName];if(!G)return;const ee=s.value,te=G.getBoundingClientRect(),ue=ee.getBoundingClientRect(),ne=ue.left+1,de=ue.right-1,se=j.getBoundingClientRect(),Y=b.value?se.width-ue.width:se.height-ue.height,X=g.value;let H=X;b.value?(te.leftde&&(H=X+te.right-de)):(te.topue.bottom&&(H=X+(te.bottom-ue.bottom))),H=Math.max(H,0),g.value=Math.min(H,Y)},F=()=>{var te;if(!u.value||!s.value)return;e.stretch&&((te=f.value)==null||te.update());const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;G0&&(g.value=0))},N=j=>{const G=Kt(j);let ee=0;switch(G){case Ce.left:case Ce.up:ee=-1;break;case Ce.right:case Ce.down:ee=1;break;default:return}const te=Array.from(j.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ue=te.indexOf(j.target)+ee;ue<0?ue=te.length-1:ue>=te.length&&(ue=0),te[ue].focus({preventScroll:!0}),te[ue].click(),P()},P=()=>{v.value&&(p.value=!0)},B=()=>p.value=!1,K=(j,G)=>{d.value[G]=j},W=async()=>{var j;await Le(),(j=d.value[e.currentName])==null||j.focus({preventScroll:!0})};return fe(l,j=>{j==="hidden"?v.value=!1:j==="visible"&&setTimeout(()=>v.value=!0,50)}),fe(r,j=>{j?setTimeout(()=>v.value=!0,50):v.value=!1}),Zt(c,()=>{Fa(F)}),gt(()=>setTimeout(()=>U(),0)),so(()=>F()),t({scrollToActiveTab:U,removeFocus:B,focusActiveTab:W,tabListRef:u,tabBarRef:f,scheduleRender:()=>Cc(y)}),()=>{const j=h.value?[Q("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:z},[Q(De,null,{default:()=>[Q(zo,null,null)]})]),Q("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:q},[Q(De,null,{default:()=>[Q(Un,null,null)]})])]:null,G=e.panes.map((ee,te)=>{var Z,le;const ue=ee.uid,ne=ee.props.disabled,de=ee.props.name??ee.index??`${te}`,se=!ne&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${te}`;const Y=se?Q(De,{class:"is-icon-close",onClick:ce=>n("tabRemove",ee,ce)},{default:()=>[Q(Na,null,null)]}):null,X=((le=(Z=ee.slots).label)==null?void 0:le.call(Z))||ee.props.label,H=!ne&&ee.active?e.tabindex??a.props.tabindex:-1;return Q("div",{ref:ce=>K(ce,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",ne),o.is("closable",se),o.is("focus",p.value)],id:`tab-${de}`,key:`tab-${ue}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:H,onFocus:()=>P(),onBlur:()=>B(),onClick:ce=>{B(),n("tabClick",ee,de,ce)},onKeydown:ce=>{const ge=Kt(ce);se&&(ge===Ce.delete||ge===Ce.backspace)&&n("tabRemove",ee,ce)}},[X,Y])});return y.value,Q("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(a.props.tabPosition)]},[j,Q("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:_.value,role:"tablist",onKeydown:N,onWheel:L},[e.type?null:Q(jae,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),G]):null])])}}}),Gae=_e({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:J(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),C0=e=>Be(e)||He(e),Xae={[ot]:e=>C0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>C0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>C0(e),tabAdd:()=>!0},Jae=D({name:"ElTabs",props:Gae,emits:Xae,setup(e,{emit:t,slots:n,expose:a}){const o=ve("tabs"),l=x(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:s,removeChild:u,ChildrenSorter:c}=cf(vt(),"ElTabPane"),d=V(),f=V((Et(e.modelValue)?e.defaultValue:e.modelValue)??"0"),h=async(b,w=!1)=>{var _,S,k,T;if(!(f.value===b||Et(b)))try{let M;if(e.beforeLeave){const A=e.beforeLeave(b,f.value);M=A instanceof Promise?await A:A}else M=!0;if(M!==!1){const A=(_=r.value.find(O=>O.paneName===f.value))==null?void 0:_.isFocusInsidePane();f.value=b,w&&(t(ot,b),t("tabChange",b)),(k=(S=d.value)==null?void 0:S.removeFocus)==null||k.call(S),A&&((T=d.value)==null||T.focusActiveTab())}}catch{}},g=(b,w,_)=>{b.props.disabled||(t("tabClick",b,_),h(w,!0))},p=(b,w)=>{b.props.disabled||Et(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=Kt(b);[Ce.enter,Ce.numpadEnter].includes(w)&&v()},y=b=>{const w=b.el.firstChild,_=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==_&&w.before(_)};return fe(()=>e.modelValue,b=>h(b)),fe(f,async()=>{var b;await Le(),(b=d.value)==null||b.scrollToActiveTab()}),wt(Cf,{props:e,currentName:f,registerPane:s,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return Su(d.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),l.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[b?oe(n,"add-icon"):Q(De,{class:o.is("icon-plus")},{default:()=>[Q(vh,null,null)]})]):null,_=()=>Q(Yae,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:g,onTabRemove:p},null),S=Q("div",{class:[o.e("header"),l.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:_,$stable:!0}),w]),k=Q("div",{class:o.e("content")},[oe(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[k,S])}}}),Zae=_e({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),Qae=["id","aria-hidden","aria-labelledby"],qg="ElTabPane";var eoe=D({name:qg,__name:"tab-pane",props:Zae,setup(e){const t=e,n=vt(),a=hn(),o=Pe(Cf);o||en(qg,"usage: ");const l=ve("tab-pane"),r=V(),s=V(),u=x(()=>t.closable??o.props.closable),c=x(()=>o.currentName.value===(t.name??s.value)),d=V(c.value),f=x(()=>t.name??s.value),h=x(()=>!t.lazy||d.value||c.value),g=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};fe(c,v=>{v&&(d.value=!0)});const p=Rt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:s,isClosable:u,isFocusInsidePane:g});return o.registerPane(p),Lt(()=>{o.unregisterPane(p)}),Cp(()=>{var v;a.label&&((v=o.nav$.value)==null||v.scheduleRender())}),(v,m)=>h.value?ft((C(),$("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:R(i(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,Qae)),[[$t,c.value]]):re("v-if",!0)}}),k5=eoe;const toe=it(Jae,{TabPane:k5}),noe=tn(k5),aoe=_e({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:io,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var ooe=D({name:"ElText",__name:"text",props:aoe,setup(e){const t=e,n=V(),a=_n(),o=ve("text"),l=x(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!Et(t.lineClamp))]),r=()=>{var c,d,f,h,g,p,v;if(gl().title)return;let s=!1;const u=((c=n.value)==null?void 0:c.textContent)||"";if(t.truncated){const m=(d=n.value)==null?void 0:d.offsetWidth,y=(f=n.value)==null?void 0:f.scrollWidth;m&&y&&y>m&&(s=!0)}else if(!Et(t.lineClamp)){const m=(h=n.value)==null?void 0:h.offsetHeight,y=(g=n.value)==null?void 0:g.scrollHeight;m&&y&&y>m&&(s=!0)}s?(p=n.value)==null||p.setAttribute("title",u):(v=n.value)==null||v.removeAttribute("title")};return gt(r),so(r),(s,u)=>(C(),ie(dt(e.tag),{ref_key:"textRef",ref:n,class:R(l.value),style:qe({"-webkit-line-clamp":e.lineClamp})},{default:ae(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),loe=ooe;const iv=it(loe),W2="00:30",roe=_e({format:{type:String,default:"HH:mm"},modelValue:{type:J(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:J(String),default:"light"},clearable:{type:Boolean,default:!0},size:kn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:W2},minTime:{type:J(String)},maxTime:{type:J(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:J([String,Object]),default:()=>hh},clearIcon:{type:J([String,Object]),default:()=>ho},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},...Wr}),el=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},_0=(e,t)=>{const n=el(e);if(!n)return-1;const a=el(t);if(!a)return-1;const o=n.minutes+n.hours*60,l=a.minutes+a.hours*60;return o===l?0:o>l?1:-1},Ug=e=>`${e}`.padStart(2,"0"),os=e=>`${Ug(e.hours)}:${Ug(e.minutes)}`,soe=(e,t)=>{const n=el(e);if(!n)return"";const a=el(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,os(o)};var ioe=D({name:"ElTimeSelect",__name:"time-select",props:roe,emits:[bt,"blur","focus","clear",ot],setup(e,{expose:t}){st.extend(Oh);const{Option:n}=Yl,a=e,o=ve("input"),l=V(),r=rn(),{lang:s}=kt(),u=x(()=>a.modelValue),c=x(()=>{const y=el(a.start);return y?os(y):null}),d=x(()=>{const y=el(a.end);return y?os(y):null}),f=x(()=>{const y=el(a.minTime||"");return y?os(y):null}),h=x(()=>{const y=el(a.maxTime||"");return y?os(y):null}),g=x(()=>{const y=el(a.step),b=!y||y.hours<0||y.minutes<0||Number.isNaN(y.hours)||Number.isNaN(y.minutes)||y.hours===0&&y.minutes===0;return b&&pt("ElTimeSelect",`invalid step, fallback to default step (${W2}).`),b?W2:os(y)}),p=x(()=>{var w;const y=[],b=(_,S)=>{y.push({value:_,rawValue:S,disabled:_0(S,f.value||"-1:-1")<=0||_0(S,h.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let _=c.value,S;for(;_&&d.value&&_0(_,d.value)<=0;)S=st(_,"HH:mm").locale(s.value).format(a.format),b(S,_),_=soe(_,g.value);a.includeEndTime&&d.value&&((w=y[y.length-1])==null?void 0:w.rawValue)!==d.value&&b(st(d.value,"HH:mm").locale(s.value).format(a.format),d.value)}return y});return t({blur:()=>{var y,b;(b=(y=l.value)==null?void 0:y.blur)==null||b.call(y)},focus:()=>{var y,b;(b=(y=l.value)==null?void 0:y.focus)==null||b.call(y)}}),(y,b)=>(C(),ie(i(Yl),{ref_key:"select",ref:l,name:e.name,"model-value":u.value,disabled:i(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":b[0]||(b[0]=w=>y.$emit(i(ot),w)),onChange:b[1]||(b[1]=w=>y.$emit(i(bt),w)),onBlur:b[2]||(b[2]=w=>y.$emit("blur",w)),onFocus:b[3]||(b[3]=w=>y.$emit("focus",w)),onClear:b[4]||(b[4]=()=>y.$emit("clear"))},{prefix:ae(()=>[e.prefixIcon?(C(),ie(i(De),{key:0,class:R(i(o).e("prefix-icon"))},{default:ae(()=>[(C(),ie(dt(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ae(()=>[(C(!0),$(Ke,null,_t(p.value,w=>(C(),ie(i(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),uoe=ioe;const coe=it(uoe),E5="timeline",doe=_e({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),foe=D({name:"ElTimeline",props:doe,setup(e,{slots:t}){const n=ve("timeline");wt(E5,{props:e,slots:t});const a=x(()=>[n.b(),n.is(e.mode)]);return()=>{var l;const o=Ta(((l=t.default)==null?void 0:l.call(t))??[]);return Ye("ul",{class:a.value},e.reverse?o.reverse():o)}}}),poe=_e({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ft},hollow:Boolean});var hoe=D({name:"ElTimelineItem",__name:"timeline-item",props:poe,setup(e){const t=e,{props:n}=Pe(E5),a=ve("timeline-item"),o=x(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),l=x(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(r,s)=>(C(),$("li",{class:R(l.value)},[E("div",{class:R(i(a).e("tail"))},null,2),r.$slots.dot?re("v-if",!0):(C(),$("div",{key:0,class:R(o.value),style:qe({backgroundColor:e.color})},[e.icon?(C(),ie(i(De),{key:0,class:R(i(a).e("icon"))},{default:ae(()=>[(C(),ie(dt(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),r.$slots.dot?(C(),$("div",{key:1,class:R(i(a).e("dot"))},[oe(r.$slots,"dot")],2)):re("v-if",!0),E("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(C(),$("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},Se(e.timestamp),3)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[oe(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(C(),$("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},Se(e.timestamp),3)):re("v-if",!0)],2)],2))}}),T5=hoe;const voe=it(foe,{TimelineItem:T5}),moe=tn(T5),M5="left-check-change",O5="right-check-change",ls=_e({data:{type:J(Array),default:()=>[]},titles:{type:J(Array),default:()=>[]},buttonTexts:{type:J(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:J(Function)},leftDefaultChecked:{type:J(Array),default:()=>[]},rightDefaultChecked:{type:J(Array),default:()=>[]},renderContent:{type:J(Function)},modelValue:{type:J(Array),default:()=>[]},format:{type:J(Object),default:()=>({})},filterable:Boolean,props:{type:J(Object),default:()=>on({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),j2=(e,t)=>[e,t].every(be)||be(e)&&gn(t),goe={[bt]:(e,t,n)=>[e,n].every(be)&&["left","right"].includes(t),[ot]:e=>be(e),[M5]:j2,[O5]:j2},Fu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},yoe=(e,t)=>({onSourceCheckedChange:(o,l)=>{e.leftChecked=o,l&&t(M5,o,l)},onTargetCheckedChange:(o,l)=>{e.rightChecked=o,l&&t(O5,o,l)}}),boe=e=>{const t=Fu(e),n=x(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:x(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:x(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const l=n.value[o];return l&&a.push(l),a},[]))}},woe=(e,t,n)=>{const a=Fu(e),o=(s,u,c)=>{n(ot,s),n(bt,s,u,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=s.indexOf(u);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);s=e.targetOrder==="unshift"?u.concat(s):s.concat(u),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[a.value.key])).map(c=>c[a.value.key])),o(s,"right",t.leftChecked)}}},q2="checked-change",Coe=_e({data:ls.data,optionRender:{type:J(Function)},placeholder:String,title:String,filterable:Boolean,format:ls.format,filterMethod:ls.filterMethod,defaultChecked:ls.leftDefaultChecked,props:ls.props}),_oe={[q2]:j2},Soe=(e,t,n)=>{const a=Fu(e),o=x(()=>e.data.filter(d=>Fe(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=x(()=>o.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),s=x(()=>{const d=t.checked.length;return d>0&&d{const d=l.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[a.value.key]):[]};return fe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(q2,d,d.concat(f).filter(h=>!d.includes(h)||!f.includes(h))):(n(q2,d),t.checkChangeByUser=!0)}),fe(l,()=>{u()}),fe(()=>e.data,()=>{const d=[],f=o.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),fe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],g=l.value.map(p=>p[a.value.key]);d.forEach(p=>{g.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:s,updateAllChecked:u,handleAllCheckedChange:c}};var xoe=D({name:"ElTransferPanel",__name:"transfer-panel",props:Coe,emits:_oe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=({option:_})=>_,{t:s}=kt(),u=ve("transfer"),c=Rt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Fu(a),{filteredData:f,checkedSummary:h,isIndeterminate:g,handleAllCheckedChange:p}=Soe(a,c,o),v=x(()=>!ca(c.query)&&ca(f.value)),m=x(()=>!ca(l.default()[0].children)),{checked:y,allChecked:b,query:w}=Nn(c);return t({query:w}),(_,S)=>(C(),$("div",{class:R(i(u).b("panel"))},[E("p",{class:R(i(u).be("panel","header"))},[Q(i(lo),{modelValue:i(b),"onUpdate:modelValue":S[0]||(S[0]=k=>Yt(b)?b.value=k:null),indeterminate:i(g),"validate-event":!1,onChange:i(p)},{default:ae(()=>[E("span",{class:R(i(u).be("panel","header-title"))},Se(e.title),3),E("span",{class:R(i(u).be("panel","header-count"))},Se(i(h)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(C(),ie(i(Dn),{key:0,modelValue:i(w),"onUpdate:modelValue":S[1]||(S[1]=k=>Yt(w)?w.value=k:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(Ey),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),ft(Q(i(Nh),{modelValue:i(y),"onUpdate:modelValue":S[2]||(S[2]=k=>Yt(y)?y.value=k:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ae(()=>[(C(!0),$(Ke,null,_t(i(f),k=>(C(),ie(i(lo),{key:k[i(d).key],class:R(i(u).be("panel","item")),value:k[i(d).key],disabled:k[i(d).disabled],"validate-event":!1},{default:ae(()=>{var T;return[Q(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[$t,!v.value&&!i(ca)(e.data)]]),ft(E("div",{class:R(i(u).be("panel","empty"))},[oe(_.$slots,"empty",{},()=>[St(Se(v.value?i(s)("el.transfer.noMatch"):i(s)("el.transfer.noData")),1)])],2),[[$t,v.value||i(ca)(e.data)]])],2),m.value?(C(),$("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(_.$slots,"default")],2)):re("v-if",!0)],2))}}),Yg=xoe;const koe={key:0},Eoe={key:0};var Toe=D({name:"ElTransfer",__name:"transfer",props:ls,emits:goe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),{t:r}=kt(),s=ve("transfer"),{formItem:u}=Bn(),c=Rt({leftChecked:[],rightChecked:[]}),d=Fu(a),{sourceData:f,targetData:h}=boe(a),{onSourceCheckedChange:g,onTargetCheckedChange:p}=yoe(c,o),{addToLeft:v,addToRight:m}=woe(a,c,o),y=V(),b=V(),w=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},_=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||r("el.transfer.titles.0")),k=x(()=>a.titles[1]||r("el.transfer.titles.1")),T=x(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));fe(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=u==null?void 0:u.validate)==null||A.call(u,"change").catch(O=>pt(O)))});const M=x(()=>A=>{var I;if(a.renderContent)return a.renderContent(Ye,A);const O=(((I=l.default)==null?void 0:I.call(l,{option:A}))||[]).filter(L=>L.type!==mn);return O.length?O:Ye("span",A[d.value.label]||A[d.value.key])});return t({clearQuery:w,leftPanel:y,rightPanel:b}),(A,O)=>(C(),$("div",{class:R(i(s).b())},[Q(Yg,{ref_key:"leftPanel",ref:y,data:i(f),"option-render":M.value,placeholder:T.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ae(()=>[oe(A.$slots,"left-empty")]),default:ae(()=>[oe(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:R(i(s).e("buttons"))},[Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",_.value)]),disabled:i(ca)(c.rightChecked),onClick:i(v)},{default:ae(()=>[Q(i(De),null,{default:ae(()=>[Q(i(zo))]),_:1}),i(Et)(e.buttonTexts[0])?re("v-if",!0):(C(),$("span",koe,Se(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(i(An),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",_.value)]),disabled:i(ca)(c.leftChecked),onClick:i(m)},{default:ae(()=>[i(Et)(e.buttonTexts[1])?re("v-if",!0):(C(),$("span",Eoe,Se(e.buttonTexts[1]),1)),Q(i(De),null,{default:ae(()=>[Q(i(Un))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(Yg,{ref_key:"rightPanel",ref:b,data:i(h),"option-render":M.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(p)},{empty:ae(()=>[oe(A.$slots,"right-empty")]),default:ae(()=>[oe(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),Moe=Toe;const Ooe=it(Moe),uv="RootTree",$5="NodeInstance",Gg="TreeNodeMap",A5=_e({data:{type:J(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:J(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:J(Function)},allowDrop:{type:J(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ft}}),$oe={"check-change":(e,t,n)=>e&&Dt(t)&&Dt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},ys="$treeNodeId",Xg=function(e,t){!t||t[ys]||Object.defineProperty(t,ys,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},cv=(e,t)=>t==null?void 0:t[e||ys],U2=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},R5=e=>{let t=!0,n=!0,a=!0,o=!0;for(let l=0,r=e.length;l{n.canFocus=t,Y2(n.childNodes,t)})};let Aoe=0;var G2=class Bc{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Aoe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Mt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var l;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=mc(this,"isLeaf");Dt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),be(this.data)||Xg(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!gn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((l=this.parent)==null?void 0:l.expanded)===!0)&&(this.canFocus=!0)}setData(t){be(t)||Xg(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&be(this.data)?n=this.data:n=mc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Bc)){if(!a){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(Et(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Rt(new Bc(t)),t instanceof Bc&&t.initialize()}t.level=this.level+1,Et(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),Y2(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{be(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||bi(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,Y2(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const s=this.childNodes;for(let f=0,h=s.length;f{r(),bi(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||a||bi(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),Et(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),a={},o=[];t.forEach((l,r)=>{const s=l[ys];s&&n.some(u=>(u==null?void 0:u[ys])===s)?a[s]={index:r,data:l}:o.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{a[l==null?void 0:l[ys]]||this.removeChildByData(l)}),o.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||bi(this)}},Roe=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)Mt(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new G2({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},It)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[r,s]of l.entries())s.visible=!!(t!=null&&t.call(s,e,s.data,s)),r%80===0&&r>0&&await Le(),await a(s);if(!o.visible&&l.length){let r=!0;r=!l.some(s=>s.visible),o.root?o.root.visible=r===!1:o.visible=r===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof G2)return e;const t=lt(e)?cv(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertBefore({data:e},n)}insertAfter(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=ya(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!gn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;gn(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf)&&n.push(l.data),a(l)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)Mt(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const l=a[o];this.remove(l.data)}for(let o=0,l=t.length;os.level-u.level),o=Object.create(null),l=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));const r=s=>{s.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&r(u)})};for(let s=0,u=a.length;s{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),h.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var o;const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(e,t=!0){var a;if(this.currentNodeKey=e,ya(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}};function N5(e){const t=Pe(Gg,null);let n={treeNodeExpand:a=>{var o;e.node!==a&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Lt(()=>{t&&t.children.delete(n),n=null}),wt(Gg,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const P5=Symbol("dragEvents");function Noe({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=ve("tree"),r=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return wt(P5,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(Fe(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,g=r.value.dropNode;g&&g.node.id!==h.node.id&&aa(g.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,m=!0,y=!0,b=!0;Fe(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),b=m=e.allowDrop(p.node,h.node,"inner"),y=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",p.node,g.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||m||y?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(y=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(m=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,m=!1,y=!1);const w=h.$el,_=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const M=v?m?.25:y?.45:1:Number.NEGATIVE_INFINITY,A=y?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const I=d.clientY-_.top;I<_.height*M?T="before":I>_.height*A?T="after":m?T="inner":T="none";const L=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),z=a.value;T==="before"?O=L.top-S.top+k:T==="after"&&(O=L.bottom-S.top+k),z.style.top=`${O}px`,z.style.left=`${L.right-S.left}px`,T==="inner"?Ba(w,l.is("drop-inner")):aa(w,l.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||b,r.value.dropType=T,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:f,dropType:h,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f!=null&&f.node.data&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?(p=g.node.parent)==null||p.insertBefore(m,g.node):h==="after"?(v=g.node.parent)==null||v.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(o.value.registerNode(m),o.value.key&&f.node.eachNode(y=>{var b;(b=o.value.nodesMap[y.data[o.value.key]])==null||b.setChecked(y.checked,!o.value.checkStrictly)})),aa(g.$el,l.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,d),h!=="none"&&t.emit("node-drop",f.node,g.node,h,d)}f&&!g&&t.emit("node-drag-end",f.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var Poe=D({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ve("tree"),n=Pe($5),a=Pe(uv);return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(Ye,{_self:n,node:o,data:l,store:r}):oe(a.ctx.slots,"default",{node:o,data:l},()=>[Ye(iv,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),Ioe=Poe,Loe=D({name:"ElTreeNode",components:{ElCollapseTransition:gf,ElCheckbox:lo,NodeContent:Ioe,ElIcon:De,Loading:no},props:{node:{type:G2,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ve("tree"),{broadcastExpanded:a}=N5(e),o=Pe(uv),l=V(!1),r=V(!1),s=V(),u=V(),c=V(),d=Pe(P5),f=vt();wt($5,f),o||pt("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const h=o.props.props.children||"children";fe(()=>{var O;const A=(O=e.node.data)==null?void 0:O[h];return A&&[...A]},()=>{e.node.updateChildren()}),fe(()=>e.node.indeterminate,A=>{v(e.node.checked,A)}),fe(()=>e.node.checked,A=>{v(A,e.node.indeterminate)}),fe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),fe(()=>e.node.expanded,A=>{Le(()=>l.value=A),A&&(r.value=!0)});const g=A=>o.props.nodeKey?cv(o.props.nodeKey,A.data):A.id,p=A=>{const O=e.props.class;if(!O)return{};let I;if(Fe(O)){const{data:L}=A;I=O(L,A)}else I=O;return Be(I)?{[I]:!0}:I},v=(A,O)=>{(s.value!==A||u.value!==O)&&o.ctx.emit("check-change",e.node.data,A,O),s.value=A,u.value=O},m=A=>{U2(o.store,o.ctx.emit,()=>{var O;if((O=o==null?void 0:o.props)!=null&&O.nodeKey){const I=g(e.node);o.store.value.setCurrentNodeKey(I)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,A)},y=A=>{var O;(O=o.instance.vnode.props)!=null&&O.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),o.ctx.emit("node-contextmenu",A,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=A=>{const O=o==null?void 0:o.props.checkStrictly,I=e.node.childNodes;!O&&I.length&&(A=I.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(A,!O),Le(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:l,childNodeRendered:r,oldChecked:s,oldIndeterminate:u,getNodeKey:g,getNodeClass:p,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,O,I)=>{a(O),o.ctx.emit("node-expand",A,O,I)},handleDragStart:A=>{o.props.draggable&&d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:c.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{o.props.draggable&&d.treeNodeDragEnd(A)},CaretRight:ph}}});const Voe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],Boe=["aria-expanded"];function zoe(e,t,n,a,o,l){const r=Ot("el-icon"),s=Ot("el-checkbox"),u=Ot("loading"),c=Ot("node-content"),d=Ot("el-tree-node"),f=Ot("el-collapse-transition");return ft((C(),$("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Je((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=Je((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=Je((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=Je((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=Je((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[E("div",{class:R(e.ns.be("node","content")),style:qe({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(C(),ie(r,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Je(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(C(),ie(dt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(C(),ie(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Je(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(C(),ie(r,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[Q(u)]),_:1},8,["class"])):re("v-if",!0),Q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?ft((C(),$("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Je(()=>{},["stop"]))},[(C(!0),$(Ke,null,_t(e.node.childNodes,h=>(C(),ie(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,Boe)),[[$t,e.expanded]]):re("v-if",!0)]),_:1})],42,Voe)),[[$t,e.node.visible]])}var Doe=En(Loe,[["render",zoe]]);function Hoe({el$:e},t){const n=ve("tree");gt(()=>{l()}),so(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(r,s){var c,d;const u=t.value.getNode(r[s].dataset.key);return u.canFocus&&u.visible&&(((c=u.parent)==null?void 0:c.expanded)||((d=u.parent)==null?void 0:d.level)===0)}Vt(e,"keydown",r=>{const s=r.target;if(!s.className.includes(n.b("node")))return;const u=Kt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(s);let f;if([Ce.up,Ce.down].includes(u)){if(r.preventDefault(),u===Ce.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[Ce.left,Ce.right].includes(u)&&(r.preventDefault(),s.click());const h=s.querySelector('[type="checkbox"]');[Ce.enter,Ce.numpadEnter,Ce.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var u;if(!e.value)return;const r=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const s=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(s.length){s[0].setAttribute("tabindex","0");return}(u=r[0])==null||u.setAttribute("tabindex","0")}}var Foe=D({name:"ElTree",components:{ElTreeNode:Doe},props:A5,emits:$oe,setup(e,t){const{t:n}=kt(),a=ve("tree"),o=V(new Roe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=V(o.value.root),r=V(null),s=V(null),u=V(null),{broadcastExpanded:c}=N5(e),{dragState:d}=Noe({props:e,ctx:t,el$:s,dropIndicator$:u,store:o});Hoe({el$:s},o);const f=vt(),h=x(()=>{let K=f==null?void 0:f.parent;for(;K;){if(K.type.name==="ElTreeSelect")return!0;K=K.parent}return!1}),g=x(()=>{const{childNodes:K}=l.value;return(!K||K.length===0||K.every(({visible:W})=>!W))&&!h.value});fe(()=>e.currentNodeKey,K=>{o.value.setCurrentNodeKey(K??null)}),fe(()=>e.defaultCheckedKeys,(K,W)=>{an(K,W)||o.value.setDefaultCheckedKey(K??[])}),fe(()=>e.defaultExpandedKeys,K=>{o.value.setDefaultExpandedKeys(K??[])}),fe(()=>e.data,K=>{o.value.setData(K)},{deep:!0}),fe(()=>e.checkStrictly,K=>{o.value.checkStrictly=K});const p=K=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(K)},v=K=>e.nodeKey?cv(e.nodeKey,K.data):K.id,m=K=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${K}`)},y=K=>{m("getNodePath");const W=o.value.getNode(K);if(!W)return[];const j=[W.data];let G=W.parent;for(;G&&G!==l.value;)j.push(G.data),G=G.parent;return j.reverse()},b=(K,W)=>o.value.getCheckedNodes(K,W),w=K=>o.value.getCheckedKeys(K),_=()=>{const K=o.value.getCurrentNode();return K?K.data:null},S=()=>{m("getCurrentKey");const K=_();return K?K[e.nodeKey]:null},k=(K,W)=>{m("setCheckedNodes"),o.value.setCheckedNodes(K,W)},T=(K,W)=>{m("setCheckedKeys"),o.value.setCheckedKeys(K,W)},M=(K,W,j)=>{o.value.setChecked(K,W,j)},A=()=>o.value.getHalfCheckedNodes(),O=()=>o.value.getHalfCheckedKeys(),I=(K,W=!0)=>{m("setCurrentNode"),U2(o,t.emit,()=>{c(K),o.value.setUserCurrentNode(K,W)})},L=(K=null,W=!0)=>{m("setCurrentKey"),U2(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(K,W)})},z=K=>o.value.getNode(K),q=K=>{o.value.remove(K)},U=(K,W)=>{o.value.append(K,W)},F=(K,W)=>{o.value.insertBefore(K,W)},N=(K,W)=>{o.value.insertAfter(K,W)},P=(K,W,j)=>{c(W),t.emit("node-expand",K,W,j)},B=(K,W)=>{m("updateKeyChildren"),o.value.updateChildren(K,W)};return wt(uv,{ctx:t,props:e,store:o,root:l,currentNode:r,instance:f}),wt(Do,void 0),{ns:a,store:o,root:l,currentNode:r,dragState:d,el$:s,dropIndicator$:u,isEmpty:g,filter:p,getNodeKey:v,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:_,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:T,setChecked:M,getHalfCheckedNodes:A,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:L,t:n,getNode:z,remove:q,append:U,insertBefore:F,insertAfter:N,handleNodeExpand:P,updateKeyChildren:B}}});function Koe(e,t,n,a,o,l){const r=Ot("el-tree-node");return C(),$("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(C(!0),$(Ke,null,_t(e.root.childNodes,s=>(C(),ie(r,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(C(),$("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[E("span",{class:R(e.ns.e("empty-text"))},Se(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),ft(E("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[$t,e.dragState.showDropIndicator]])],2)}var Woe=En(Foe,[["render",Koe]]);const dv=it(Woe),joe=(e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=ve("tree-select");fe(()=>e.data,()=>{e.filterable&&Le(()=>{var u,c;(c=o.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var d,f;const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))s([c.childNodes.at(-1)]);else{(f=(d=o.value.el$)==null?void 0:d.querySelector(`[data-key="${u.at(-1).key}"]`))==null||f.focus({preventScroll:!0});return}};return gt(()=>{Vt(()=>{var u;return(u=a.value)==null?void 0:u.$el},"keydown",async u=>{const c=Kt(u),{dropdownMenuVisible:d}=a.value;[Ce.down,Ce.up].includes(c)&&d&&(await Le(),setTimeout(()=>{var f,h,g;if(Ce.up===c){const p=o.value.store.root.childNodes;s(p);return}(g=(h=(f=a.value.optionsArray[a.value.states.hoveringIndex].$el)==null?void 0:f.parentNode)==null?void 0:h.parentNode)==null||g.focus({preventScroll:!0})}))},{capture:!0})}),{...ul(Nn(e),Object.keys(Yl.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":u=>n(ot,u),valueKey:l,popperClass:x(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}}},qoe=D({extends:fd,setup(e,t){const n=fd.setup(e,t);delete n.selectOptionClick;const a=vt().proxy;return Le(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),fe(()=>t.attrs.visible,o=>{Le(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function X2(e){return e||e===0}function fv(e){return be(e)&&e.length}function es(e){return be(e)?e:X2(e)?[e]:[]}function zc(e,t,n,a,o){for(let l=0;l{fe([()=>e.modelValue,l],()=>{e.showCheckbox&&Le(()=>{const p=l.value;p&&!an(p.getCheckedKeys(),es(e.modelValue))&&p.setCheckedKeys(es(e.modelValue))})},{immediate:!0,deep:!0});const s=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,v)=>{var y;const m=s.value[p];return Fe(m)?m(v,(y=l.value)==null?void 0:y.getNode(u("value",v))):v[m]},c=es(e.modelValue).map(p=>zc(e.data||[],v=>u("value",v)===p,v=>u("children",v),(v,m,y,b)=>b&&u("value",b))).filter(p=>X2(p)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return Dc(e.data.concat(e.cacheData),v=>{const m=u("value",v);p.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),p}),f=()=>{var p;return(p=l.value)==null?void 0:p.getCheckedKeys().filter(v=>{var y;const m=(y=l.value)==null?void 0:y.getNode(v);return!gn(m)&&ca(m.childNodes)})},h=p=>{an(e.modelValue,p)||a(bt,p)};function g(p){a(ot,p),h(p)}return{...ul(Nn(e),Object.keys(dv.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:v,data:m,store:y})=>p(qoe,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:m,store:y}):n.default?()=>n.default({node:v,data:m,store:y}):void 0),filterNodeMethod:(p,v,m)=>e.filterNodeMethod?e.filterNodeMethod(p,v,m):p?new RegExp(Yp(p),"i").test(u("label",v)||""):!0,onNodeClick:(p,v,m)=>{var y,b,w;if((y=t.onNodeClick)==null||y.call(t,p,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",p)){const _=(b=o.value)==null?void 0:b.states.options.get(u("value",p));(w=o.value)==null||w.handleOptionSelect(_)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,v)=>{var S;if(!e.showCheckbox)return;const m=u("value",p),y={};Dc([l.value.store.root],k=>y[k.key]=k,k=>k.childNodes);const b=v.checkedKeys,w=e.multiple?es(e.modelValue).filter(k=>!(k in y)&&!b.includes(k)):[],_=w.concat(b);if(e.checkStrictly)g(e.multiple?_:_.includes(m)?m:void 0);else if(e.multiple){const k=f();g(w.concat(k))}else{const k=zc([p],A=>!fv(u("children",A))&&!u("disabled",A),A=>u("children",A)),T=k?u("value",k):void 0,M=X2(e.modelValue)&&!!zc([p],A=>u("value",A)===e.modelValue,A=>u("children",A));g(T===e.modelValue||M?void 0:T)}Le(()=>{var T;const k=es(e.modelValue);l.value.setCheckedKeys(k),(T=t.onCheck)==null||T.call(t,p,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(S=o.value)==null||S.focus()},onNodeExpand:(p,v,m)=>{var y;(y=t.onNodeExpand)==null||y.call(t,p,v,m),Le(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=l.value.getCheckedKeys();Dc([l.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const _=es(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(_.concat(S))}})},cacheOptions:d}};var Yoe=D({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Pe(Bu);return fe(()=>e.data,()=>{var a;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const n=((a=t.selectRef)==null?void 0:a.querySelectorAll("input"))||[];At&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),Goe=D({name:"ElTreeSelect",inheritAttrs:!1,props:{...bb,...A5,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:l}=t,r={...l,onChange:void 0},s=V(),u=V(),c=x(()=>e.nodeKey||e.valueKey||"value"),d=joe(e,{attrs:l,emit:o},{select:s,tree:u,key:c}),{cacheOptions:f,...h}=Uoe(e,{attrs:r,slots:n,emit:o},{select:s,tree:u,key:c}),g=Rt({});return a(g),gt(()=>{Object.assign(g,{...ul(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ul(s.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:s.value})}),()=>Ye(Yl,Rt({...d,ref:p=>s.value=p}),{...n,default:()=>[Ye(Yoe,{data:f.value}),Ye(dv,Rt({...h,ref:p=>u.value=p}))]})}}),Xoe=Goe;const Joe=it(Xoe),pv=Symbol(),Zoe={key:-1,level:-1,data:{}};let tl=function(e){return e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e}({}),Jg=function(e){return e.ADD="add",e.DELETE="delete",e}({});const I5={type:Number,default:26},Qoe=_e({data:{type:J(Array),default:()=>on([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:J(Object),default:()=>on({children:tl.CHILDREN,label:tl.LABEL,disabled:tl.DISABLED,value:tl.KEY,class:tl.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:J(Array),default:()=>on([])},checkStrictly:Boolean,defaultExpandedKeys:{type:J(Array),default:()=>on([])},indent:{type:Number,default:16},itemSize:I5,icon:{type:Ft},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:J([String,Number])},accordion:Boolean,filterMethod:{type:J(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),ele=_e({node:{type:J(Object),default:()=>on(Zoe)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:I5}),tle=_e({node:{type:J(Object),required:!0}}),L5="node-click",V5="node-drop",B5="node-expand",z5="node-collapse",D5="current-change",H5="check",F5="check-change",K5="node-contextmenu",nle={[L5]:(e,t,n)=>e&&t&&n,[V5]:(e,t,n)=>e&&t&&n,[B5]:(e,t)=>e&&t,[z5]:(e,t)=>e&&t,[D5]:(e,t)=>e&&t,[H5]:(e,t)=>e&&t,[F5]:(e,t)=>e&&Dt(t),[K5]:(e,t,n)=>e&&t&&n},ale={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Dt(t)};function ole(e,t){const n=V(new Set),a=V(new Set),{emit:o}=vt();fe([()=>t.value,()=>e.defaultCheckedKeys],()=>Le(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:_}=t.value,S=n.value,k=new Set;for(let T=_;T>=1;--T){const M=w.get(T);M&&M.forEach(A=>{const O=A.children;let I=!A.isLeaf||A.disabled||S.has(A.key);if(O){let L=!0,z=!1;for(const q of O){const U=q.key;if(q.isEffectivelyChecked||(I=!1),S.has(U))z=!0;else if(k.has(U)){L=!1,z=!0;break}else L=!1}L?S.add(A.key):z?(k.add(A.key),S.delete(A.key)):(S.delete(A.key),k.delete(A.key))}A.isEffectivelyChecked=I})}a.value=k},r=w=>n.value.has(w.key),s=w=>a.value.has(w.key),u=(w,_,S=!0,k=!0)=>{const T=n.value,M=w.children;!e.checkStrictly&&S&&(M!=null&&M.length)&&(_=M.some(O=>!O.isEffectivelyChecked));const A=(O,I)=>{T[I?Jg.ADD:Jg.DELETE](O.key);const L=O.children;!e.checkStrictly&&L&&L.forEach(z=>{(!z.disabled||z.children)&&A(z,I)})};A(w,_),k&&l(),S&&c(w,_)},c=(w,_)=>{const{checkedNodes:S,checkedKeys:k}=p(),{halfCheckedNodes:T,halfCheckedKeys:M}=v();o(H5,w.data,{checkedKeys:k,checkedNodes:S,halfCheckedKeys:M,halfCheckedNodes:T}),o(F5,w.data,_)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function p(w=!1){const _=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const M=k.get(T);M&&(!w||w&&M.isLeaf)&&(S.push(T),_.push(M.data))})}return{checkedKeys:S,checkedNodes:_}}function v(){const w=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(k=>{const T=S.get(k);T&&(_.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:_}}function m(w){n.value.clear(),a.value.clear(),Le(()=>{b(w)})}function y(w,_){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,_,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(w==null?void 0:w.length)>0){for(const S of w){const k=_.get(S);k&&!r(k)&&u(k,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:y,setCheckedKeys:m}}function lle(e,t){const n=V(new Set([])),a=V(new Set([])),o=x(()=>Fe(e.filterMethod));function l(s){var v;if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],h=((v=t.value)==null?void 0:v.treeNodes)||[],g=e.filterMethod;d.clear();function p(m){m.forEach(y=>{f.push(y),g!=null&&g(s,y.data,y)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(y.expanded=!1,y.isLeaf&&d.add(y.key));const b=y.children;if(b&&p(b),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(b){let w=!0;for(const _ of b)if(!d.has(_.key)){w=!1;break}w?c.add(y.key):c.delete(y.key)}}f.pop()})}return p(h),u}function r(s){return a.value.has(s.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function rle(e,t){const n=V(new Set),a=V(),o=qt(),l=V(),{isIndeterminate:r,isChecked:s,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p}=ole(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=lle(e,o),b=x(()=>{var X;return((X=e.props)==null?void 0:X.value)||tl.KEY}),w=x(()=>{var X;return((X=e.props)==null?void 0:X.children)||tl.CHILDREN}),_=x(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||tl.DISABLED}),S=x(()=>{var X;return((X=e.props)==null?void 0:X.label)||tl.LABEL}),k=x(()=>{var ge;const X=n.value,H=m.value,Z=[],le=((ge=o.value)==null?void 0:ge.treeNodes)||[],ce=[];for(let me=le.length-1;me>=0;--me)ce.push(le[me]);for(;ce.length;){const me=ce.pop();if(!H.has(me.key)&&(Z.push(me),me.children&&X.has(me.key)))for(let Ae=me.children.length-1;Ae>=0;--Ae)ce.push(me.children[Ae])}return Z}),T=x(()=>k.value.length>0);function M(X){const H=new Map,Z=new Map;let le=1;function ce(me,Ae=1,Ne=void 0){var ye;const Re=[];for(const Ee of me){const we=I(Ee),Ie={level:Ae,key:we,data:Ee};Ie.label=z(Ee),Ie.parent=Ne;const ze=O(Ee);Ie.disabled=L(Ee),Ie.isLeaf=!ze||ze.length===0,Ie.expanded=n.value.has(we),ze&&ze.length&&(Ie.children=ce(ze,Ae+1,Ie)),Re.push(Ie),H.set(we,Ie),Z.has(Ae)||Z.set(Ae,[]),(ye=Z.get(Ae))==null||ye.push(Ie)}return Ae>le&&(le=Ae),Re}const ge=ce(X);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:le,treeNodes:ge}}function A(X){const H=v(X);H&&(n.value=H)}function O(X){return X[w.value]}function I(X){return X?X[b.value]:""}function L(X){return X[_.value]}function z(X){return X[S.value]}function q(X){n.value.has(X.key)?W(X):K(X)}function U(X){const H=new Set,Z=o.value.treeNodeMap;n.value.forEach(le=>{const ce=Z.get(le);ce&&(ce.expanded=!1)}),X.forEach(le=>{let ce=Z.get(le);for(;ce&&!H.has(ce.key);)H.add(ce.key),ce.expanded=!0,ce=ce.parent}),n.value=H}function F(X,H){t(L5,X.data,X,H),P(X),e.expandOnClickNode&&q(X),e.showCheckbox&&(e.checkOnClickNode||X.isLeaf&&e.checkOnClickLeaf)&&!X.disabled&&u(X,!s(X),!0)}function N(X,H){t(V5,X.data,X,H)}function P(X){G(X)||(a.value=X.key,t(D5,X.data,X))}function B(X,H){u(X,H)}function K(X){const H=n.value;if(o.value&&e.accordion){const{treeNodeMap:le}=o.value;H.forEach(ce=>{const ge=le.get(ce);X&&X.level===(ge==null?void 0:ge.level)&&(H.delete(ce),ge.expanded=!1)})}H.add(X.key);const Z=de(X.key);Z&&(Z.expanded=!0,t(B5,Z.data,Z))}function W(X){n.value.delete(X.key);const H=de(X.key);H&&(H.expanded=!1,t(z5,H.data,H))}function j(X){return!!X.disabled}function G(X){const H=a.value;return H!==void 0&&H===X.key}function ee(){var X,H;if(a.value)return(H=(X=o.value)==null?void 0:X.treeNodeMap.get(a.value))==null?void 0:H.data}function te(){return a.value}function ue(X){a.value=X}function ne(X){o.value=M(X)}function de(X){var Z;const H=lt(X)?I(X):X;return(Z=o.value)==null?void 0:Z.treeNodeMap.get(H)}function se(X,H="auto"){const Z=de(X);Z&&l.value&&l.value.scrollToItem(k.value.indexOf(Z),H)}function Y(X){var H;(H=l.value)==null||H.scrollTo(X)}return fe(()=>e.currentNodeKey,X=>{a.value=X},{immediate:!0}),fe(()=>e.defaultExpandedKeys,X=>{U(X||[])}),fe(()=>e.data,X=>{ne(X),U(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:T,listRef:l,getKey:I,getChildren:O,toggleExpand:q,toggleCheckbox:u,isChecked:s,isIndeterminate:r,isDisabled:j,isCurrent:G,isForceHiddenExpandIcon:y,handleNodeClick:F,handleNodeDrop:N,handleNodeCheck:B,getCurrentNode:ee,getCurrentKey:te,setCurrentKey:ue,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p,filter:A,setData:ne,getNode:de,expandNode:K,collapseNode:W,setExpandedKeys:U,scrollToNode:se,scrollTo:Y}}var sle=D({name:"ElTreeNodeContent",props:tle,setup(e){const t=Pe(pv),n=ve("tree");return()=>{const a=e.node,{data:o}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):Ye(iv,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const ile=["aria-expanded","aria-disabled","aria-checked","data-key"];var ule=D({name:"ElTreeNode",__name:"tree-node",props:ele,emits:ale,setup(e,{emit:t}){const n=e,a=t,o=Pe(pv),l=ve("tree"),r=x(()=>(o==null?void 0:o.props.indent)??16),s=x(()=>(o==null?void 0:o.props.icon)??ph),u=p=>{var y;const v=(y=o==null?void 0:o.props.props)==null?void 0:y.class;if(!v)return{};let m;if(Fe(v)){const{data:b}=p;m=v(b,p)}else m=v;return Be(m)?{[m]:!0}:m},c=p=>{a("click",n.node,p)},d=p=>{a("drop",n.node,p)},f=()=>{a("toggle",n.node)},h=p=>{a("check",n.node,p)},g=p=>{var v,m,y,b;(y=(m=(v=o==null?void 0:o.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),o==null||o.ctx.emit(K5,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var m,y,b;return C(),$("div",{ref:"node$",class:R([i(l).b("node"),i(l).is("expanded",e.expanded),i(l).is("current",e.current),i(l).is("focusable",!e.disabled),i(l).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(m=e.node)==null?void 0:m.key,onClick:Je(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Je(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Je(()=>{},["prevent"])),onDrop:Je(d,["stop"])},[E("div",{class:R(i(l).be("node","content")),style:qe({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[s.value?(C(),ie(i(De),{key:0,class:R([i(l).is("leaf",!!((y=e.node)!=null&&y.isLeaf)),i(l).is("hidden",e.hiddenExpandIcon),{expanded:!((b=e.node)!=null&&b.isLeaf)&&e.expanded},i(l).be("node","expand-icon")]),onClick:Je(f,["stop"])},{default:ae(()=>[(C(),ie(dt(s.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(C(),ie(i(lo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:v[0]||(v[0]=Je(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),Q(i(sle),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,ile)}}}),cle=ule,dle=D({name:"ElTreeV2",__name:"tree",props:Qoe,emits:nle,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=x(()=>a.itemSize);wt(pv,{ctx:{emit:o,slots:l},props:a,instance:vt()}),wt(Do,void 0);const{t:s}=kt(),u=ve("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:g,isChecked:p,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:w,handleNodeCheck:_,toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:K,scrollToNode:W,scrollTo:j}=rle(a,o);return t({toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:K,scrollToNode:W,scrollTo:j}),(G,ee)=>(C(),$("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(C(),ie(i(qw),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(({data:te,index:ue,style:ne})=>[(C(),ie(cle,{key:te[ue].key,style:qe(ne),node:te[ue],expanded:te[ue].expanded,"show-checkbox":e.showCheckbox,checked:i(p)(te[ue]),indeterminate:i(g)(te[ue]),"item-size":r.value,disabled:i(v)(te[ue]),current:i(m)(te[ue]),"hidden-expand-icon":i(y)(te[ue]),onClick:i(b),onToggle:i(h),onCheck:i(_),onDrop:i(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(C(),$("div",{key:1,class:R(i(u).e("empty-block"))},[oe(G.$slots,"empty",{},()=>[E("span",{class:R(i(u).e("empty-text"))},Se(e.emptyText??i(s)("el.tree.emptyText")),3)])],2))],2))}}),fle=dle;const ple=it(fle),hle="ElUpload";var vle=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function Zg(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new vle(a,n.status,t.method,e)}function mle(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const gle=e=>{typeof XMLHttpRequest>"u"&&en(hle,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))be(r)?r.length===2&&r[0]instanceof Blob&&Be(r[1])?a.append(l,r[0],r[1]):r.forEach(s=>{a.append(l,s)}):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Zg(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Zg(n,e,t));e.onSuccess(mle(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(o))gn(r)||t.setRequestHeader(l,String(r));return t.send(a),t},W5=["text","picture","picture-card"];let yle=1;const J2=()=>Date.now()+yle++,j5=_e({action:{type:String,default:"#"},headers:{type:J(Object)},method:{type:String,default:"post"},data:{type:J([Object,Function,Promise]),default:()=>on({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:J(Array),default:()=>on([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:W5,default:"text"},httpRequest:{type:J(Function),default:gle},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),ble=_e({...j5,beforeUpload:{type:J(Function),default:It},beforeRemove:{type:J(Function)},onRemove:{type:J(Function),default:It},onChange:{type:J(Function),default:It},onPreview:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It},crossorigin:{type:J(String)}}),q5=Symbol("uploadContextKey"),wle=_e({files:{type:J(Array),default:()=>on([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:J(Function),default:It},listType:{type:String,values:W5,default:"text"},crossorigin:{type:J(String)}}),Cle={remove:e=>!!e},_le=_e({...j5,beforeUpload:{type:J(Function),default:It},onRemove:{type:J(Function),default:It},onStart:{type:J(Function),default:It},onSuccess:{type:J(Function),default:It},onProgress:{type:J(Function),default:It},onError:{type:J(Function),default:It},onExceed:{type:J(Function),default:It}}),Sle=_e({disabled:{type:Boolean,default:void 0},directory:Boolean}),xle={file:e=>be(e)},kle=["tabindex","aria-disabled","onKeydown"],Ele=["src","crossorigin"],Tle=["onClick"],Mle=["title"],Ole=["onClick"],$le=["onClick"];var Ale=D({name:"ElUploadList",__name:"upload-list",props:wle,emits:Cle,setup(e,{emit:t}){const n=e,a=t,{t:o}=kt(),l=ve("upload"),r=ve("icon"),s=ve("list"),u=rn(),c=V(!1),d=x(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{a("remove",h)};return(h,g)=>(C(),ie(i6,{tag:"ul",class:R(d.value),name:i(s).b()},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.files,(p,v)=>(C(),$("li",{key:p.uid||p.name,class:R([i(l).be("list","item"),i(l).is(p.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:nn(m=>!i(u)&&f(p),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(h.$slots,"default",{file:p,index:v},()=>[e.listType==="picture"||p.status!=="uploading"&&e.listType==="picture-card"?(C(),$("img",{key:0,class:R(i(l).be("list","item-thumbnail")),src:p.url,crossorigin:e.crossorigin,alt:""},null,10,Ele)):re("v-if",!0),p.status==="uploading"||e.listType!=="picture-card"?(C(),$("div",{key:1,class:R(i(l).be("list","item-info"))},[E("a",{class:R(i(l).be("list","item-name")),onClick:Je(m=>e.handlePreview(p),["prevent"])},[Q(i(De),{class:R(i(r).m("document"))},{default:ae(()=>[Q(i(my))]),_:1},8,["class"]),E("span",{class:R(i(l).be("list","item-file-name")),title:p.name},Se(p.name),11,Mle)],10,Tle),p.status==="uploading"?(C(),ie(i(Iw),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:qe(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),E("label",{class:R(i(l).be("list","item-status-label"))},[e.listType==="text"?(C(),ie(i(De),{key:0,class:R([i(r).m("upload-success"),i(r).m("circle-check")])},{default:ae(()=>[Q(i(df))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(C(),ie(i(De),{key:1,class:R([i(r).m("upload-success"),i(r).m("check")])},{default:ae(()=>[Q(i(Gs))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(C(),ie(i(De),{key:2,class:R(i(r).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(p),onKeydown:nn(Je(m=>f(p),["prevent"]),["enter","space"])},{default:ae(()=>[Q(i(Na))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(C(),$("i",{key:3,class:R(i(r).m("close-tip"))},Se(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(C(),$("span",{key:4,class:R(i(l).be("list","item-actions"))},[E("span",{class:R(i(l).be("list","item-preview")),onClick:m=>e.handlePreview(p)},[Q(i(De),{class:R(i(r).m("zoom-in"))},{default:ae(()=>[Q(i(gh))]),_:1},8,["class"])],10,Ole),i(u)?re("v-if",!0):(C(),$("span",{key:0,class:R(i(l).be("list","item-delete")),onClick:m=>f(p)},[Q(i(De),{class:R(i(r).m("delete"))},{default:ae(()=>[Q(i(vy))]),_:1},8,["class"])],10,$le))],2)):re("v-if",!0)])],42,kle))),128)),oe(h.$slots,"append")]),_:3},8,["class","name"]))}}),Qg=Ale;const e4="ElUploadDrag";var Rle=D({name:e4,__name:"upload-dragger",props:Sle,emits:xle,setup(e,{emit:t}){const n=e,a=t;Pe(q5)||en(e4,"usage: ");const o=ve("upload"),l=V(!1),r=rn(),s=h=>new Promise((g,p)=>h.file(g,p)),u=async h=>{try{if(h.isFile){const g=await s(h);return g.isDirectory=!1,[g]}if(h.isDirectory){const g=h.createReader(),p=()=>new Promise((b,w)=>g.readEntries(b,w)),v=[];let m=await p();for(;m.length>0;)v.push(...m),m=await p();const y=v.map(b=>u(b).catch(()=>[]));return nd(await Promise.all(y))}}catch{return[]}return[]},c=async h=>{if(r.value)return;l.value=!1,h.stopPropagation();const g=Array.from(h.dataTransfer.files),p=h.dataTransfer.items||[];if(n.directory){const v=Array.from(p).map(m=>{var y;return(y=m==null?void 0:m.webkitGetAsEntry)==null?void 0:y.call(m)}).filter(m=>m);a("file",nd(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{var b,w;const y=(w=(b=p[m])==null?void 0:b.webkitGetAsEntry)==null?void 0:w.call(b);y&&(v.isDirectory=y.isDirectory)}),a("file",g)},d=()=>{r.value||(l.value=!0)},f=h=>{h.currentTarget.contains(h.relatedTarget)||(l.value=!1)};return(h,g)=>(C(),$("div",{class:R([i(o).b("dragger"),i(o).is("dragover",l.value)]),onDrop:Je(c,["prevent"]),onDragover:Je(d,["prevent"]),onDragleave:Je(f,["prevent"])},[oe(h.$slots,"default")],34))}}),Nle=Rle;const Ple=["tabindex","aria-disabled","onKeydown"],Ile=["name","disabled","multiple","accept","webkitdirectory"];var Lle=D({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:_le,setup(e,{expose:t}){const n=e,a=ve("upload"),o=rn(),l=qt({}),r=qt(),s=v=>{if(v.length===0)return;const{autoUpload:m,limit:y,fileList:b,multiple:w,onStart:_,onExceed:S}=n;if(y&&b.length+v.length>y){S(v,b);return}w||(v=v.slice(0,1));for(const k of v){const T=k;T.uid=J2(),_(T),m&&u(T)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let m,y={};try{const w=n.data,_=n.beforeUpload(v);y=Vi(n.data)?Eo(n.data):n.data,m=await _,Vi(n.data)&&an(w,y)&&(y=Eo(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let b=v;m instanceof Blob&&(m instanceof File?b=m:b=new File([m],v.name,{type:v.type})),d(Object.assign(b,{uid:v.uid}),y)},c=async(v,m)=>Fe(v)?v(m):v,d=async(v,m)=>{const{headers:y,data:b,method:w,withCredentials:_,name:S,action:k,onProgress:T,onSuccess:M,onError:A,httpRequest:O}=n;try{m=await c(m??b,v)}catch{n.onRemove(v);return}const{uid:I}=v,L={headers:y||{},withCredentials:_,file:v,data:m,method:w,filename:S,action:k,onProgress:q=>{T(q,v)},onSuccess:q=>{M(q,v),delete l.value[I]},onError:q=>{A(q,v),delete l.value[I]}},z=O(L);l.value[I]=z,z instanceof Promise&&z.then(L.onSuccess,L.onError)},f=v=>{const m=v.target.files;m&&s(Array.from(m))},h=()=>{o.value||(r.value.value="",r.value.click())},g=()=>{h()};return t({abort:v=>{_8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(v,m)=>(C(),$("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:h,onKeydown:nn(Je(g,["self"]),["enter","space"])},[e.drag?(C(),ie(Nle,{key:0,disabled:i(o),directory:e.directory,onFile:s},{default:ae(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:r,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Je(()=>{},["stop"]))},null,42,Ile)],42,Ple))}}),t4=Lle;const n4="ElUpload",a4=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Vle=(e,t)=>{const n=S6(e,"fileList",void 0,{passive:!0}),a=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=p=>{Le(()=>e.onChange(p,n.value))},u=(p,v)=>{const m=a(v);m&&(console.error(p),m.status="fail",r(m),e.onError(p,m,n.value),s(m))},c=(p,v)=>{const m=a(v);m&&(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},d=(p,v)=>{const m=a(v);m&&(m.status="success",m.response=p,e.onSuccess(p,m,n.value),s(m))},f=p=>{gn(p.uid)&&(p.uid=J2());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(m){pt(n4,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],s(v)},h=async p=>{const v=p instanceof File?a(p):p;v||en(n4,"file to be removed not found");const m=y=>{o(y),r(y),e.onRemove(y,n.value),a4(y)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return fe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:y}=v;if(!y&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,n.value)}return v}))}),fe(n,p=>{for(const v of p)v.uid||(v.uid=J2()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:g,revokeFileObjectURL:a4}};var Ble=D({name:"ElUpload",__name:"upload",props:ble,setup(e,{expose:t}){const n=e,a=rn(),o=qt(),{abort:l,submit:r,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:p}=Vle(n,o),v=x(()=>n.listType==="picture-card"),m=x(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return Lt(()=>{u.value.forEach(p)}),wt(q5,{accept:Bt(n,"accept")}),t({abort:l,submit:r,clearFiles:s,handleStart:c,handleRemove:f}),(y,b)=>(C(),$("div",null,[v.value&&e.showFileList?(C(),ie(Qg,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({append:ae(()=>[Q(t4,ht({ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:_})=>[oe(y.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(C(),ie(t4,ht({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),y.$slots.trigger?oe(y.$slots,"default",{key:2}):re("v-if",!0),oe(y.$slots,"tip"),!v.value&&e.showFileList?(C(),ie(Qg,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},fa({_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:_})=>[oe(y.$slots,"file",{file:w,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),zle=Ble;const Dle=it(zle),Hle=_e({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:J([String,Array]),default:"Element Plus"},font:{type:J(Object)},gap:{type:J(Array),default:()=>[100,100]},offset:{type:J(Array)}});function Fle(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Kle(e){return Object.keys(e).map(t=>`${Fle(t)}: ${e[t]};`).join(" ")}function Wle(){return window.devicePixelRatio||1}const jle=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},qle={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function S0(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function Ule(){function e(t,n,a,o,l,r,s,u,c){const[d,f,h,g]=S0(o,l,a);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,g);else{const{color:j,fontSize:G,fontStyle:ee,fontWeight:te,fontFamily:ue,textAlign:ne,textBaseline:de}=r,se=Number(G)*a;d.font=`${ee} normal ${te} ${se}px/${l}px ${ue}`,d.fillStyle=j,d.textAlign=ne,d.textBaseline=de;const Y=be(t)?t:[t];if(de!=="top"&&Y[0]){const X=d.measureText(Y[0]);d.textBaseline="top";const H=d.measureText(Y[0]);p=X.actualBoundingBoxAscent-H.actualBoundingBoxAscent}Y==null||Y.forEach((X,H)=>{const[Z,le]=qle[ne];d.fillText(X??"",h*Z+c*le,H*(se+r.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,l),[y,b,w]=S0(m,m,a);y.translate(w/2,w/2),y.rotate(v),h>0&&g>0&&y.drawImage(f,-h/2,-g/2);function _(j,G){return[j*Math.cos(v)-G*Math.sin(v),j*Math.sin(v)+G*Math.cos(v)]}let S=0,k=0,T=0,M=0;const A=h/2,O=g/2;[[0-A,0-O],[0+A,0-O],[0+A,0+O],[0-A,0+O]].forEach(([j,G])=>{const[ee,te]=_(j,G);S=Math.min(S,ee),k=Math.max(k,ee),T=Math.min(T,te),M=Math.max(M,te)});const I=S+w/2,L=T+w/2,z=k-S,q=M-T,U=s*a,F=u*a,N=(z+U)*2,P=q+F,[B,K]=S0(N,P);function W(j=0,G=0){B.drawImage(b,I,L,z,q,j,G+p,z,q)}return W(),W(z+U,-q/2-F/2),W(z+U,+q/2+F/2),[K.toDataURL(),N/a,P/a]}return e}var Yle=D({name:"ElWatermark",__name:"watermark",props:Hle,setup(e){const t={position:"relative"},n=e,a=x(()=>{var I;return((I=n.font)==null?void 0:I.fontGap)??3}),o=x(()=>{var I;return((I=n.font)==null?void 0:I.color)??"rgba(0,0,0,.15)"}),l=x(()=>{var I;return((I=n.font)==null?void 0:I.fontSize)??16}),r=x(()=>{var I;return((I=n.font)==null?void 0:I.fontWeight)??"normal"}),s=x(()=>{var I;return((I=n.font)==null?void 0:I.fontStyle)??"normal"}),u=x(()=>{var I;return((I=n.font)==null?void 0:I.fontFamily)??"sans-serif"}),c=x(()=>{var I;return((I=n.font)==null?void 0:I.textAlign)??"center"}),d=x(()=>{var I;return((I=n.font)==null?void 0:I.textBaseline)??"hanging"}),f=x(()=>n.gap[0]),h=x(()=>n.gap[1]),g=x(()=>f.value/2),p=x(()=>h.value/2),v=x(()=>{var I;return((I=n.offset)==null?void 0:I[0])??g.value}),m=x(()=>{var I;return((I=n.offset)==null?void 0:I[1])??p.value}),y=()=>{const I={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=v.value-g.value,z=m.value-p.value;return L>0&&(I.left=`${L}px`,I.width=`calc(100% - ${L}px)`,L=0),z>0&&(I.top=`${z}px`,I.height=`calc(100% - ${z}px)`,z=0),I.backgroundPosition=`${L}px ${z}px`,I},b=qt(null),w=qt(),_=V(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=(I,L)=>{var z;b.value&&w.value&&(_.value=!0,w.value.setAttribute("style",Kle({...y(),backgroundImage:`url('${I}')`,backgroundSize:`${Math.floor(L)}px`})),(z=b.value)==null||z.append(w.value),setTimeout(()=>{_.value=!1}))},T=I=>{let L=120,z=64,q=0;const{image:U,content:F,width:N,height:P,rotate:B}=n;if(!U&&I.measureText){I.font=`${Number(l.value)}px ${u.value}`;const K=be(F)?F:[F];let W=0,j=0;K.forEach(ee=>{const{width:te,fontBoundingBoxAscent:ue,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:de,actualBoundingBoxDescent:se}=I.measureText(ee),Y=Et(ue)?de+se:ue+ne;te>W&&(W=Math.ceil(te)),Y>j&&(j=Math.ceil(Y))}),L=W,z=j*K.length+(K.length-1)*a.value;const G=Math.PI/180*Number(B);q=Math.ceil(Math.abs(Math.sin(G)*z)/2),L+=q}return[N??L,P??z,q]},M=Ule(),A=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,z=n.content,q=n.rotate;if(I){w.value||(w.value=document.createElement("div"));const U=Wle(),[F,N,P]=T(I),B=K=>{const[W,j]=M(K||"",q,U,F,N,{color:o.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,P);k(W,j)};if(L){const K=new Image;K.onload=()=>{B(K)},K.onerror=()=>{B(z)},K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=L}else B(z)}};return gt(()=>{A()}),fe(()=>n,()=>{A()},{deep:!0,flush:"post"}),Lt(()=>{S()}),yu(b,I=>{_.value||I.forEach(L=>{jle(L,w.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(I,L)=>(C(),$("div",{ref_key:"containerRef",ref:b,style:qe([t])},[oe(I.$slots,"default")],4))}}),Gle=Yle;const Xle=it(Gle),Jle=["absolute","fixed"],Zle=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],hv=_e({placement:{type:J(String),values:Zle,default:"bottom"},reference:{type:J(Object),default:null},strategy:{type:J(String),values:Jle,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Qle={close:()=>!0},ere=_e({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ft},placement:hv.placement,contentStyle:{type:J([Object])},mask:{type:J([Boolean,Object]),default:!0},gap:{type:J(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:J([Boolean,Object]),default:()=>({block:"center"})},type:{type:J(String)},appendTo:{type:Eu.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),tre={[ot]:e=>Dt(e),"update:current":e=>He(e),close:e=>He(e),finish:()=>!0,change:e=>He(e)},nre=_e({target:{type:J([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ft},showArrow:{type:Boolean,default:void 0},placement:hv.placement,mask:{type:J([Boolean,Object]),default:void 0},contentStyle:{type:J([Object])},prevButtonProps:{type:J(Object)},nextButtonProps:{type:J(Object)},scrollIntoViewOptions:{type:J([Boolean,Object]),default:void 0},type:{type:J(String)}}),are={close:()=>!0},ore=(e,t,n,a,o)=>{const l=V(null),r=()=>{let d;return Be(e.value)?d=document.querySelector(e.value):Fe(e.value)?d=e.value():d=e.value,d},s=()=>{const d=r();if(!d||!t.value){l.value=null;return}lre(d)||d.scrollIntoView(o.value);const{left:f,top:h,width:g,height:p}=d.getBoundingClientRect();l.value={left:f,top:h,width:g,height:p,radius:0}};gt(()=>{fe([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Lt(()=>{window.removeEventListener("resize",s)});const u=d=>(be(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=x(()=>{var g;if(!l.value)return l.value;const d=u(0),f=u(1),h=((g=n.value)==null?void 0:g.radius)||2;return{left:l.value.left-d,top:l.value.top-f,width:l.value.width+d*2,height:l.value.height+f*2,radius:h}});return{mergedPosInfo:c,triggerTarget:x(()=>{const d=r();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var f,h,g,p;return window.DOMRect.fromRect({width:((f=c.value)==null?void 0:f.width)||0,height:((h=c.value)==null?void 0:h.height)||0,x:((g=c.value)==null?void 0:g.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}})}},_f=Symbol("ElTour");function lre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n}const rre=(e,t,n,a,o,l,r,s)=>{const u=V(),c=V(),d=V({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},h=x(()=>{const y=[$$(i(l)),R$(),A$(),sre()];return i(s)&&i(n)&&y.push(N$({element:i(n)})),y}),g=async()=>{if(!At)return;const y=i(e),b=i(t);if(!y||!b)return;const w=await P$(y,b,{placement:i(a),strategy:i(o),middleware:i(h)});Gi(f).forEach(_=>{f[_].value=w[_]})},p=x(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(r)};const{overflow:y}=i(d);return{position:i(o),zIndex:i(r),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),v=x(()=>{if(!i(s))return{};const{arrow:y}=i(d);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let m;return gt(()=>{const y=i(e),b=i(t);y&&b&&(m=M$(y,b,g)),da(()=>{g()})}),Lt(()=>{m&&m()}),{update:g,contentStyle:p,arrowStyle:v}},sre=()=>({name:"overflow",async fn(e){const t=await O$(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),ire=_e({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:J(Object)},targetAreaClickable:{type:Boolean,default:!0}}),ure={style:{width:"100%",height:"100%"}},cre=["d"];var dre=D({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:ire,setup(e){const t=e,{ns:n}=Pe(_f),a=x(()=>{var d;return((d=t.pos)==null?void 0:d.radius)??2}),o=x(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=Ap(),s=x(()=>{const d=l.value,f=r.value,h=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=a.value;return t.pos?`${g} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:g}),u=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return af(Bt(t,"visible"),{ns:n}),(d,f)=>e.visible?(C(),$("div",ht({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(C(),$("svg",ure,[E("path",{class:R(i(n).e("hollow")),style:qe(c.value),d:s.value},null,14,cre)]))],16)):re("v-if",!0)}}),fre=dre;const pre=["data-side"];var hre=D({name:"ElTourContent",__name:"content",props:hv,emits:Qle,setup(e,{emit:t}){const n=e,a=t,o=V(n.placement),l=V(n.strategy),r=V(null),s=V(null);fe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=rre(Bt(n,"reference"),r,s,o,l,Bt(n,"offset"),Bt(n,"zIndex"),Bt(n,"showArrow")),d=x(()=>o.value.split("-")[0]),{ns:f}=Pe(_f),h=()=>{a("close")},g=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(C(),$("div",{ref_key:"contentRef",ref:r,style:qe(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[Q(i(Xs),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:g},{default:ae(()=>[oe(p.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(C(),$("span",{key:0,ref_key:"arrowRef",ref:s,style:qe(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,pre))}}),vre=hre,mre=D({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var u,c;const o=(u=t.default)==null?void 0:u.call(t),l=[];let r=0;function s(d){be(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(l.push(f),r+=1)})}return o.length&&s(Ta((c=o[0])==null?void 0:c.children)),a!==r&&(a=r,n("update-total",r)),l.length?l[e.current]:null}}}),gre=D({name:"ElTour",inheritAttrs:!1,__name:"tour",props:ere,emits:tre,setup(e,{emit:t}){const n=e,a=t,o=ve("tour"),l=V(0),r=V(),s=S6(n,"current",a,{passive:!0}),u=x(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=x(()=>[o.b(),y.value==="primary"?o.m("primary"):""]),d=x(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=x(()=>{var O;return((O=r.value)==null?void 0:O.contentStyle)??n.contentStyle}),h=x(()=>{var O;return((O=r.value)==null?void 0:O.mask)??n.mask}),g=x(()=>!!h.value&&n.modelValue),p=x(()=>Dt(h.value)?void 0:h.value),v=x(()=>{var O;return!!u.value&&(((O=r.value)==null?void 0:O.showArrow)??n.showArrow)}),m=x(()=>{var O;return((O=r.value)==null?void 0:O.scrollIntoViewOptions)??n.scrollIntoViewOptions}),y=x(()=>{var O;return((O=r.value)==null?void 0:O.type)??n.type}),{nextZIndex:b}=Ou(),w=b(),_=x(()=>n.zIndex??w),{mergedPosInfo:S,triggerTarget:k}=ore(u,Bt(n,"modelValue"),Bt(n,"gap"),h,m);fe(()=>n.modelValue,O=>{O||(s.value=0)});const T=()=>{n.closeOnPressEscape&&(a(ot,!1),a("close",s.value))},M=O=>{l.value=O},A=hn();return wt(_f,{currentStep:r,current:s,total:l,showClose:Bt(n,"showClose"),closeIcon:Bt(n,"closeIcon"),mergedType:y,ns:o,slots:A,updateModelValue(O){a(ot,O)},onClose(){a("close",s.value)},onFinish(){a("finish")},onChange(){a(bt,s.value)}}),(O,I)=>(C(),$(Ke,null,[Q(i(Ys),{to:e.appendTo},{default:ae(()=>{var L,z;return[E("div",ht({class:c.value},O.$attrs),[Q(fre,{visible:g.value,fill:(L=p.value)==null?void 0:L.color,style:qe((z=p.value)==null?void 0:z.style),pos:i(S),"z-index":_.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(C(),ie(vre,{key:i(s),reference:i(k),placement:d.value,"show-arrow":v.value,"z-index":_.value,style:qe(f.value),onClose:T},{default:ae(()=>[Q(i(mre),{current:i(s),onUpdateTotal:M},{default:ae(()=>[oe(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]}),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}}),yre=gre;const bre=["aria-label"];var wre=D({name:"ElTourStep",__name:"step",props:nre,emits:are,setup(e,{emit:t}){const n=e,a=t,{Close:o}=Ry,{t:l}=kt(),{currentStep:r,current:s,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:g,updateModelValue:p,onClose:v,onFinish:m,onChange:y}=Pe(_f);fe(n,O=>{r.value=O},{immediate:!0});const b=x(()=>n.showClose??c.value),w=x(()=>n.closeIcon??d.value??o),_=O=>{if(O)return Su(O,["children","onClick"])},S=()=>{var O,I;s.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((I=n.prevButtonProps)==null||I.onClick()),y()},k=()=>{var O;s.value>=u.value-1?T():s.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),y()},T=()=>{M(),m()},M=()=>{p(!1),v(),a("close")},A=O=>{var I;if(!((I=O.target)!=null&&I.isContentEditable))switch(Kt(O)){case Ce.left:O.preventDefault(),s.value>0&&S();break;case Ce.right:O.preventDefault(),k();break}};return gt(()=>{window.addEventListener("keydown",A)}),Lt(()=>{window.removeEventListener("keydown",A)}),(O,I)=>(C(),$(Ke,null,[b.value?(C(),$("button",{key:0,"aria-label":i(l)("el.tour.close"),class:R(i(h).e("closebtn")),type:"button",onClick:M},[Q(i(De),{class:R(i(h).e("close"))},{default:ae(()=>[(C(),ie(dt(w.value)))]),_:1},8,["class"])],10,bre)):re("v-if",!0),E("header",{class:R([i(h).e("header"),{"show-close":i(c)}])},[oe(O.$slots,"header",{},()=>[E("span",{role:"heading",class:R(i(h).e("title"))},Se(e.title),3)])],2),E("div",{class:R(i(h).e("body"))},[oe(O.$slots,"default",{},()=>[E("span",null,Se(e.description),1)])],2),E("footer",{class:R(i(h).e("footer"))},[E("div",{class:R(i(h).b("indicators"))},[i(g).indicators?(C(),ie(dt(i(g).indicators),{key:0,current:i(s),total:i(u)},null,8,["current","total"])):(C(!0),$(Ke,{key:1},_t(i(u),(L,z)=>(C(),$("span",{key:L,class:R([i(h).b("indicator"),i(h).is("active",z===i(s))])},null,2))),128))],2),E("div",{class:R(i(h).b("buttons"))},[i(s)>0?(C(),ie(i(An),ht({key:0,size:"small",type:i(f)},_(e.prevButtonProps),{onClick:S}),{default:ae(()=>{var L;return[St(Se(((L=e.prevButtonProps)==null?void 0:L.children)??i(l)("el.tour.previous")),1)]}),_:1},16,["type"])):re("v-if",!0),i(s)<=i(u)-1?(C(),ie(i(An),ht({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},_(e.nextButtonProps),{onClick:k}),{default:ae(()=>{var L;return[St(Se(((L=e.nextButtonProps)==null?void 0:L.children)??(i(s)===i(u)-1?i(l)("el.tour.finish"):i(l)("el.tour.next"))),1)]}),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),U5=wre;const Cre=it(yre,{TourStep:U5}),_re=tn(U5),Sre=_e({container:{type:J([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:J(String),default:"default"},direction:{type:J(String),default:"vertical"},selectScrollTop:Boolean}),xre={change:e=>Be(e),click:(e,t)=>e instanceof MouseEvent&&(Be(t)||Et(t))},gc=e=>{if(!At||e==="")return null;if(Be(e))try{return document.querySelector(e)}catch{return null}return e};function kre(e){let t=0;const n=(...a)=>{t&&cl(t),t=Fa(()=>{e(...a),t=0})};return n.cancel=()=>{cl(t),t=0},n}const Y5=Symbol("anchor");var Ere=D({name:"ElAnchor",__name:"anchor",props:Sre,emits:xre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=hn(),r=V(""),s=V({}),u=V(null),c=V(null),d=V(),f={};let h=!1,g=0;const p=ve("anchor"),v=x(()=>[p.b(),a.type==="underline"?p.m("underline"):"",p.m(a.direction)]),m=L=>{f[L.href]=L.el},y=L=>{delete f[L]},b=L=>{r.value!==L&&(r.value=L,o(bt,L))};let w=null,_="";const S=L=>{if(!d.value)return;const z=gc(L);if(!z)return;if(w){if(_===L)return;w()}_=L,h=!0;const q=om(z,d.value),U=O2(z,q),F=q.scrollHeight-q.clientHeight,N=Math.min(U-a.offset,F);w=$M(d.value,g,N,a.duration,()=>{setTimeout(()=>{h=!1,_=""},20)})},k=L=>{L&&(b(L),S(L))},T=(L,z)=>{o("click",L,z),k(z)},M=kre(()=>{d.value&&(g=lm(d.value));const L=A();h||Et(L)||b(L)}),A=()=>{if(!d.value)return;const L=lm(d.value),z=[];for(const q of Object.keys(f)){const U=gc(q);if(!U)continue;const F=O2(U,om(U,d.value));z.push({top:F-a.offset-a.bound,href:q})}z.sort((q,U)=>q.top-U.top);for(let q=0;qL))return U.href}},O=()=>{const L=gc(a.container);!L||xu(L)?d.value=window:d.value=L};Vt(d,"scroll",M);const I=()=>{Le(()=>{if(!u.value||!c.value||!r.value){s.value={};return}const L=f[r.value];if(!L){s.value={};return}const z=u.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),U=L.getBoundingClientRect();a.direction==="horizontal"?s.value={left:`${U.left-z.left}px`,width:`${U.width}px`,opacity:1}:s.value={top:`${U.top-z.top+(U.height-q.height)/2}px`,opacity:1}})};return fe(r,I),fe(()=>{var L;return(L=l.default)==null?void 0:L.call(l)},I),gt(()=>{O();const L=decodeURIComponent(window.location.hash);gc(L)?k(L):M()}),fe(()=>a.container,()=>{O()}),wt(Y5,{ns:p,direction:a.direction,currentAnchor:r,addLink:m,removeLink:y,handleClick:T}),t({scrollTo:k}),(L,z)=>(C(),$("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(C(),$("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(p).e("marker")),style:qe(s.value)},null,6)):re("v-if",!0),E("div",{class:R(i(p).e("list"))},[oe(L.$slots,"default")],2)],2))}}),Tre=Ere;const Mre=_e({title:String,href:String}),Ore=["href"];var $re=D({name:"ElAnchorLink",__name:"anchor-link",props:Mre,setup(e){const t=e,n=V(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:s,handleClick:u}=Pe(Y5),c=x(()=>[a.e("link"),a.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return fe(()=>t.href,(f,h)=>{Le(()=>{h&&s(h),f&&r({href:f,el:n.value})})}),gt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Lt(()=>{const{href:f}=t;f&&s(f)}),(f,h)=>(C(),$("div",{class:R(i(a).e("item"))},[E("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[St(Se(e.title),1)])],10,Ore),f.$slots["sub-link"]&&i(o)==="vertical"?(C(),$("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),G5=$re;const Are=it(Tre,{AnchorLink:G5}),Rre=tn(G5),X5={label:"label",value:"value",disabled:"disabled"},Nre=_e({direction:{type:J(String),default:"horizontal"},options:{type:J(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:J(Object),default:()=>X5},block:Boolean,size:kn,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...oa(["ariaLabel"])}),Pre={[ot]:e=>Be(e)||He(e)||Dt(e),[bt]:e=>Be(e)||He(e)||Dt(e)},Ire=["id","aria-label","aria-labelledby"],Lre=["name","disabled","checked","onChange"];var Vre=D({name:"ElSegmented",__name:"segmented",props:Nre,emits:Pre,setup(e,{emit:t}){const n=e,a=t,o=ve("segmented"),l=Kn(),r=_n(),s=rn(),{formItem:u}=Bn(),{inputId:c,isLabeledByFormItem:d}=Pa(n,{formItemContext:u}),f=V(null),h=TS(),g=Rt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(I,L)=>{const z=m(L);a(ot,z),a(bt,z),I.target.checked=z===n.modelValue},v=x(()=>({...X5,...n.props})),m=I=>lt(I)?I[v.value.value]:I,y=I=>lt(I)?I[v.value.label]:I,b=I=>!!(s.value||lt(I)&&I[v.value.disabled]),w=I=>n.modelValue===m(I),_=I=>n.options.find(L=>m(L)===I),S=I=>[o.e("item"),o.is("selected",w(I)),o.is("disabled",b(I))],k=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=I.offsetHeight,g.translateY=I.offsetTop):(g.width=I.offsetWidth,g.translateX=I.offsetLeft);try{g.focusVisible=L.matches(":focus-visible")}catch{}},T=x(()=>[o.b(),o.m(r.value),o.is("block",n.block)]),M=x(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),A=x(()=>[o.e("item-selected"),o.is("disabled",b(_(n.modelValue))),o.is("focus-visible",g.focusVisible)]),O=x(()=>n.name||l.value);return Zt(f,k),fe(h,k),fe(()=>n.modelValue,()=>{var I;k(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>pt(L)))},{flush:"post"}),(I,L)=>e.options.length?(C(),$("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(T.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[E("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[E("div",{style:qe(M.value),class:R(A.value)},null,6),(C(!0),$(Ke,null,_t(e.options,(z,q)=>(C(),$("label",{key:q,class:R(S(z))},[E("input",{class:R(i(o).e("item-input")),type:"radio",name:O.value,disabled:b(z),checked:w(z),onChange:U=>p(U,z)},null,42,Lre),E("div",{class:R(i(o).e("item-label"))},[oe(I.$slots,"default",{item:z},()=>[St(Se(y(z)),1)])],2)],2))),128))],2)],10,Ire)):re("v-if",!0)}}),Bre=Vre;const zre=it(Bre),Dre=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},Hre=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,l=$n(t);let r=-1,s;for(let u=a-1;u>=0;--u){const c=o[u];if(r===-1&&(c===n||c===` -`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},Fre=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?s.lineHeight=`${g-p}px`:g===v?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[h]=u[h]}),qd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},Kre=_e({...Sh,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Be(e)?e.length===1:e.every(t=>Be(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>Dre,validator:e=>e===!1?!0:Fe(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>J5}}),Wre={[ot]:e=>Be(e),"whole-remove":(e,t)=>Be(e)&&Be(t),input:e=>Be(e),search:(e,t)=>Be(e)&&Be(t),select:(e,t)=>lt(e)&&Be(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},J5={value:"value",label:"label",disabled:"disabled"},jre=_e({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),qre={select:e=>Be(e.value)},Ure=["id","aria-disabled","aria-selected","onMousemove","onClick"];var Yre=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:jre,emits:qre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:r}=kt(),s=V(-1),u=V(),c=V(),d=V(),f=(_,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",_.disabled||a.disabled)],h=_=>{_.disabled||a.disabled||o("select",_)},g=_=>{s.value=_},p=x(()=>a.disabled||a.options.every(_=>_.disabled)),v=x(()=>a.options[s.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=_=>{const{options:S}=a;if(S.length===0||p.value)return;_==="next"?(s.value++,s.value===S.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(_);return}Le(()=>b(k))},b=_=>{var M,A,O,I;const{options:S}=a,k=S.findIndex(L=>L.value===_.value),T=(M=c.value)==null?void 0:M[k];if(T){const L=(O=(A=d.value)==null?void 0:A.querySelector)==null?void 0:O.call(A,`.${l.be("dropdown","wrap")}`);L&&Jp(L,T)}(I=u.value)==null||I.handleScroll()};return fe(()=>a.options,()=>{p.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(_=>!_.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:m,hoverOption:v}),(_,S)=>(C(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(l).b("dropdown"))},[_.$slots.header?(C(),$("div",{key:0,class:R(i(l).be("dropdown","header"))},[oe(_.$slots,"header")],2)):re("v-if",!0),ft(Q(i(ao),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(l).be("dropdown","wrap"),"view-class":i(l).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(C(!0),$(Ke,null,_t(e.options,(k,T)=>(C(),$("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:R(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":s.value===T,onMousemove:M=>g(T),onClick:Je(M=>h(k),["stop"])},[oe(_.$slots,"label",{item:k,index:T},()=>[E("span",null,Se(k.label??k.value),1)])],42,Ure))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[$t,e.options.length>0&&!e.loading]]),e.loading?(C(),$("div",{key:1,class:R(i(l).be("dropdown","loading"))},[oe(_.$slots,"loading",{},()=>[St(Se(i(r)("el.mention.loading")),1)])],2)):re("v-if",!0),_.$slots.footer?(C(),$("div",{key:2,class:R(i(l).be("dropdown","footer"))},[oe(_.$slots,"footer")],2)):re("v-if",!0)],2))}}),Gre=Yre,Xre=D({name:"ElMention",inheritAttrs:!1,__name:"mention",props:Kre,emits:Wre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const N=Dn.props??[];return ul(a,be(N)?N:Object.keys(N))}),r=ve("mention"),s=rn(),u=Kn(),c=V(),d=V(),f=V(),h=V(!1),g=V(),p=V(),v=x(()=>a.showArrow?a.placement:`${a.placement}-start`),m=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>({...J5,...a.props})),b=N=>{const P={label:N[y.value.label],value:N[y.value.value],disabled:N[y.value.disabled]};return{...N,...P}},w=x(()=>a.options.map(b)),_=x(()=>{const{filterOption:N}=a;return!p.value||!N?w.value:w.value.filter(P=>N(p.value.pattern,P))}),S=x(()=>h.value&&(!!_.value.length||a.loading)),k=x(()=>{var N;return`${u.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{o(ot,N),o(wn,N),q()},M=N=>{var B,K,W,j;if((B=c.value)!=null&&B.isComposing)return;const P=Kt(N);switch(P){case Ce.left:case Ce.right:q();break;case Ce.up:case Ce.down:if(!h.value)return;N.preventDefault(),(K=f.value)==null||K.navigateOptions(P===Ce.up?"prev":"next");break;case Ce.enter:case Ce.numpadEnter:if(!h.value){a.type!=="textarea"&&q();return}N.preventDefault(),(W=f.value)!=null&&W.hoverOption?(j=f.value)==null||j.selectHoverOption():h.value=!1;break;case Ce.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case Ce.backspace:if(a.whole&&p.value){const{splitIndex:G,selectionEnd:ee,pattern:te,prefixIndex:ue,prefix:ne}=p.value,de=z();if(!de)return;const se=de.value,Y=w.value.find(X=>X.value===te);if((Fe(a.checkIsWhole)?a.checkIsWhole(te,ne):Y)&&G!==-1&&G+1===ee){N.preventDefault();const X=se.slice(0,ue)+se.slice(G+1);o(ot,X),o(wn,X),o("whole-remove",te,ne);const H=ue;Le(()=>{de.selectionStart=H,de.selectionEnd=H,F()})}}}},{wrapperRef:A}=Cl(c,{disabled:s,afterFocus(){q()},beforeBlur(N){var P;return(P=d.value)==null?void 0:P.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),O=()=>{q()},I=N=>a.options.find(P=>N.value===P[y.value.value]),L=N=>{if(!p.value)return;const P=z();if(!P)return;const B=P.value,{split:K}=a,W=B.slice(p.value.end),j=W.startsWith(K),G=`${N.value}${j?"":K}`,ee=B.slice(0,p.value.start)+G+W;o(ot,ee),o(wn,ee),o("select",I(N),p.value.prefix);const te=p.value.start+G.length+(j?1:0);Le(()=>{P.selectionStart=te,P.selectionEnd=te,P.focus(),F()})},z=()=>{var N,P;return a.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(P=c.value)==null?void 0:P.input},q=()=>{setTimeout(()=>{U(),F(),Le(()=>{var N;return(N=d.value)==null?void 0:N.updatePopper()})},0)},U=()=>{const N=z();if(!N)return;const P=Fre(N),B=N.getBoundingClientRect(),K=A.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+B.left-K.left}px`,top:`${P.top+B.top-K.top}px`}},F=()=>{const N=z();if(document.activeElement!==N){h.value=!1;return}const{prefix:P,split:B}=a;if(p.value=Hre(N,P,B),p.value&&p.value.splitIndex===-1){h.value=!0,o("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(N,P)=>(C(),$("div",{ref_key:"wrapperRef",ref:A,class:R(i(r).b())},[Q(i(Dn),ht(ht(l.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?k.value||"":void 0,"aria-controls":S.value?i(u):void 0,"aria-expanded":S.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:T,onKeydown:M,onMousedown:O}),fa({_:2},[_t(N.$slots,(B,K)=>({name:K,fn:ae(W=>[oe(N.$slots,K,nl(al(W)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(i(Vn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[i(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ae(()=>[E("div",{style:qe(g.value)},null,4)]),content:ae(()=>[Q(Gre,{ref_key:"dropdownRef",ref:f,options:_.value,disabled:i(s),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:L,onClick:P[0]||(P[0]=Je(B=>{var K;return(K=c.value)==null?void 0:K.focus()},["stop"]))},fa({_:2},[_t(N.$slots,(B,K)=>({name:K,fn:ae(W=>[oe(N.$slots,K,nl(al(W)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),Jre=Xre;const Zre=it(Jre),Qre=_e({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),ese={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},tse=_e({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),nse={"update:size":e=>typeof e=="number"||typeof e=="string"};function ase(e){const t=V(),{width:n,height:a}=j0(t);return{containerEl:t,containerSize:x(()=>e.value==="horizontal"?n.value:a.value)}}function vv(e){return Number(e.slice(0,-1))/100}function mv(e){return Number(e.slice(0,-2))}function gv(e){return Be(e)&&e.endsWith("%")}function yv(e){return Be(e)&&e.endsWith("px")}function ose(e,t){const n=x(()=>e.value.map(r=>r.size)),a=x(()=>e.value.length),o=V([]);fe([n,a,t],()=>{var c;let r=[],s=0;for(let d=0;dd+(f||0),0);if(u>1||!s){const d=1/u;r=r.map(f=>f===void 0?0:f*d)}else{const d=(1-u)/s;r=r.map(f=>f===void 0?d:f)}o.value=r});const l=r=>r*t.value;return{percentSizes:o,pxSizes:x(()=>o.value.map(l))}}function lse(e,t,n,a){const o=m=>m*t.value||0;function l(m,y){return gv(m)?o(vv(m)):yv(m)?mv(m):m??y}const r=V(0),s=V(null);let u=[],c=It;const d=x(()=>e.value.map(m=>[m.min,m.max]));fe(a,()=>{if(r.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{r.value=0,s.value={index:m,confirmed:!1},u=n.value},h=(m,y)=>{var I;let b=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)b=m,s.value={index:m,confirmed:!0};else for(let L=m;L>=0;L-=1)if(u[L]>0){b=L,s.value={index:L,confirmed:!0};break}}const w=b??((I=s.value)==null?void 0:I.index)??m,_=[...u],S=w+1,k=l(d.value[w][0],0),T=l(d.value[S][0],0),M=l(d.value[w][1],t.value||0),A=l(d.value[S][1],t.value||0);let O=y;_[w]+OM&&(O=M-_[w]),_[S]-O>A&&(O=_[S]-A),_[w]+=O,_[S]-=O,r.value=O,c=()=>{e.value.forEach((L,z)=>{L.size=_[z]}),c=It},a.value||c()},g=()=>{a.value&&c(),r.value=0,s.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:g,movingIndex:s,onCollapse:(m,y)=>{p.length||p.push(...n.value);const b=n.value,w=y==="start"?m:m+1,_=y==="start"?m+1:m,S=b[w],k=b[_];if(S!==0&&k!==0)b[w]=0,b[_]+=S,p[m]=S;else{const T=S+k,M=p[m],A=T-M;b[_]=M,b[w]=A}e.value.forEach((T,M)=>{T.size=b[M]})}}}const Z5=Symbol("splitterRootContextKey");var rse=D({name:"ElSplitter",__name:"splitter",props:Qre,emits:ese,setup(e,{emit:t}){const n=ve("splitter"),a=t,o=e,l=Bt(o,"layout"),r=Bt(o,"lazy"),{containerEl:s,containerSize:u}=ase(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=cf(vt(),"ElSplitterPanel");fe(d,()=>{m.value=null,d.value.forEach((O,I)=>{O.setIndex(I)})});const{percentSizes:g,pxSizes:p}=ose(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:y,onMoving:b,onMoveEnd:w,onCollapse:_}=lse(d,u,p,r),S=x(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return wt(Z5,Rt({panels:d,percentSizes:g,pxSizes:p,layout:l,lazy:r,movingIndex:m,containerSize:u,onMoveStart:O=>{y(O),a("resizeStart",O,p.value)},onMoving:(O,I)=>{b(O,I),r.value||a("resize",O,p.value)},onMoveEnd:async O=>{w(),await Le(),a("resizeEnd",O,p.value)},onCollapse:(O,I)=>{_(O,I),a("collapse",O,I,p.value)},registerPanel:f,unregisterPanel:c})),(O,I)=>(C(),$("div",{ref_key:"containerEl",ref:s,class:R([i(n).b(),i(n).e(l.value)]),style:qe(S.value)},[oe(O.$slots,"default"),Q(i(h)),re(" Prevent iframe touch events from breaking "),i(m)?(C(),$("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${l.value}`)])},null,2)):re("v-if",!0)],6))}}),sse=rse;function ise(e){return e&<(e)?e:{start:!!e,end:!!e}}function o4(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}var use=D({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ve("splitter-bar"),a=e,o=t,l=x(()=>a.layout==="horizontal"),r=x(()=>l.value?{width:0}:{height:0}),s=x(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:a.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=x(()=>{const b=n.e("dragger");return{[`${b}-horizontal`]:l.value,[`${b}-vertical`]:!l.value,[`${b}-active`]:!!c.value}}),c=V(null),d=b=>{a.resizable&&(c.value=[b.pageX,b.pageY],o("moveStart",a.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=b=>{if(a.resizable&&b.touches.length===1){b.preventDefault();const w=b.touches[0];c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},h=b=>{const{pageX:w,pageY:_}=b,S=w-c.value[0],k=_-c.value[1],T=l.value?S:k;o("moving",a.index,T)},g=b=>{if(b.touches.length===1){b.preventDefault();const w=b.touches[0],_=w.pageX-c.value[0],S=w.pageY-c.value[1],k=l.value?_:S;o("moving",a.index,k)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=x(()=>l.value?zo:Iu),y=x(()=>l.value?Un:po);return(b,w)=>(C(),$("div",{class:R([i(n).b()]),style:qe(r.value)},[e.startCollapsible?(C(),$("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=_=>o("collapse",e.index,"start"))},[oe(b.$slots,"start-collapsible",{},()=>[(C(),ie(dt(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),E("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:qe(s.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(C(),$("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=_=>o("collapse",e.index,"end"))},[oe(b.$slots,"end-collapsible",{},()=>[(C(),ie(dt(y.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),cse=use;const l4="ElSplitterPanel";var dse=D({name:l4,__name:"split-panel",props:tse,emits:nse,setup(e,{expose:t,emit:n}){const a=ve("splitter-panel"),o=e,l=n,r=Pe(Z5);r||en(l4,"usage: ");const{panels:s,layout:u,lazy:c,containerSize:d,pxSizes:f}=Nn(r),{registerPanel:h,unregisterPanel:g,onCollapse:p,onMoveEnd:v,onMoveStart:m,onMoving:y}=r,b=V(),w=vt(),_=w.uid,S=V(0),k=x(()=>s.value[S.value]),T=P=>{S.value=P},M=x(()=>k.value?f.value[S.value]??0:0),A=x(()=>k.value?f.value[S.value+1]??0:0),O=x(()=>k.value?s.value[S.value+1]:null),I=x(()=>{var P;return O.value?o.resizable&&((P=O.value)==null?void 0:P.resizable)&&(M.value!==0||!o.min)&&(A.value!==0||!O.value.min):!1}),L=x(()=>k.value?S.value!==s.value.length-1:!1),z=x(()=>o4(k.value,M.value,O.value,A.value)),q=x(()=>o4(O.value,A.value,k.value,M.value));function U(P){return gv(P)?vv(P)*d.value||0:yv(P)?mv(P):P??0}let F=!1;fe(()=>o.size,()=>{if(!F&&k.value){if(!d.value){k.value.size=o.size;return}const P=U(o.size),B=U(o.max),K=U(o.min),W=Math.min(Math.max(P,K||0),B||P);W!==P&&l("update:size",W),k.value.size=W}}),fe(()=>{var P;return(P=k.value)==null?void 0:P.size},P=>{P!==o.size&&(F=!0,l("update:size",P),Le(()=>F=!1))}),fe(()=>o.resizable,P=>{k.value&&(k.value.resizable=P)});const N=Rt({uid:_,getVnode:()=>w.vnode,setIndex:T,...o,collapsible:x(()=>ise(o.collapsible))});return h(N),Lt(()=>g(N)),t({splitterPanelRef:b}),(P,B)=>(C(),$(Ke,null,[E("div",ht({ref_key:"panelEl",ref:b,class:[i(a).b()],style:{flexBasis:`${M.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),L.value?(C(),ie(cse,{key:0,index:S.value,layout:i(u),lazy:i(c),resizable:I.value,"start-collapsible":z.value,"end-collapsible":q.value,onMoveStart:i(m),onMoving:i(y),onMoveEnd:i(v),onCollapse:i(p)},{"start-collapsible":ae(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ae(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),Q5=dse;const fse=it(sse,{SplitPanel:Q5}),pse=tn(Q5),hse="2.13.7",vse=(e=[])=>({version:hse,install:(n,a)=>{n[m1]||(n[m1]=!0,e.forEach(o=>n.use(o)),a&&kh(a,n,!0))}}),ka="ElInfiniteScroll",mse=50,gse=200,yse=0,bse={delay:{type:Number,default:gse},distance:{type:Number,default:yse},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},bv=(e,t)=>Object.entries(bse).reduce((n,[a,o])=>{const{type:l,default:r}=o,s=e.getAttribute(`infinite-scroll-${a}`);let u=t[s]??s??r;return u=u==="false"?!1:u,u=l(u),n[a]=Number.isNaN(u)?r:u,n},{}),e9=e=>{const{observer:t}=e[ka];t&&(t.disconnect(),delete e[ka].observer)},wse=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[ka],{disabled:s,distance:u}=bv(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-r;if(e[ka].lastScrollTop=f,l||s||h<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,m=O2(e,a);g=f+c>=m+p+v-u}g&&t.call(o)};function x0(e,t){const{containerEl:n,instance:a}=e[ka],{disabled:o}=bv(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):e9(e))}const Cse={async mounted(e,t){const{instance:n,value:a}=t;$o({scope:ka,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),Fe(a)||en(ka,"'v-infinite-scroll' binding value must be a function"),await Le();const{delay:o,immediate:l}=bv(e,n),r=Xp(e,!0),s=r===window?document.documentElement:r,u=Il(wse.bind(null,e,a),o);if(r){if(e[ka]={instance:n,container:r,containerEl:s,delay:o,cb:a,onScroll:u,lastScrollTop:s.scrollTop},l){const c=new MutationObserver(Il(x0.bind(null,e,a),mse));e[ka].observer=c,c.observe(e,{childList:!0,subtree:!0}),x0(e,a)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[ka])return;const{container:t,onScroll:n}=e[ka];t==null||t.removeEventListener("scroll",n),e9(e)},async updated(e){if(!e[ka])await Le();else{const{containerEl:t,cb:n,observer:a}=e[ka];t.clientHeight&&a&&x0(e,n)}}},Z2=Cse;Z2.install=e=>{e.directive("InfiniteScroll",Z2)};const _se=Z2;function Sse(e,t){let n;const a=V(!1),o=Rt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){o.text=h}function r(){const h=o.parent,g=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(aa(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),aa(h,g.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function u(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!a.value)return;const h=o.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const d=m6(D({name:"ElLoading",setup(h,{expose:g}){const{ns:p,zIndex:v}=vf("loading");return g({ns:p,zIndex:v}),()=>{const m=o.spinner||o.svg,y=Ye("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[Ye("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?Ye("p",{class:p.b("text")},[o.text]):void 0;return Ye(Fn,{name:p.b("fade"),onAfterLeave:c},{default:ae(()=>[ft(Q("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,p.is("fullscreen",o.fullscreen)]},[Ye("div",{class:p.b("spinner")},[y,b])]),[[$t,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Nn(o),setText:l,removeElLoadingChild:s,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let yc;const bs=function(e={},t){if(!At)return;const n=xse(e);if(n.fullscreen&&yc)return yc;const a=Sse({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(yc=void 0)}},t??bs._context);kse(n,n.parent,a),r4(n,n.parent,a),n.parent.vLoadingAddClassList=()=>r4(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Le(()=>a.visible.value=n.visible),n.fullscreen&&(yc=a),a},xse=e=>{let t;return Be(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},kse=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Zo(document.body,"position"),n.originalOverflow.value=Zo(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Zo(document.body,"position"),await Le();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";o[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(Zo(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])o[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=Zo(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},r4=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?aa(t,a.bm("parent","relative")):Ba(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ba(t,a.bm("parent","hidden")):aa(t,a.bm("parent","hidden"))};bs._context=null;const wi=Symbol("ElLoading"),lr=e=>`element-loading-${vl(e)}`,s4=(e,t)=>{const n=t.instance,a=c=>lt(t.value)?t.value[c]:void 0,o=c=>V(Be(c)&&(n==null?void 0:n[c])||c),l=c=>o(a(c)||e.getAttribute(lr(c))),r=a("fullscreen")??t.modifiers.fullscreen,s={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:r,target:a("target")??(r?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=bs(s);u._context=Ii._context,e[wi]={options:s,instance:u}},Ese=(e,t)=>{for(const n of Object.keys(e))Yt(e[n])&&(e[n].value=t[n])},Ii={mounted(e,t){t.value&&s4(e,t)},updated(e,t){const n=e[wi];if(!t.value){n==null||n.instance.close(),e[wi]=null;return}n?Ese(n.options,lt(t.value)?t.value:{text:e.getAttribute(lr("text")),svg:e.getAttribute(lr("svg")),svgViewBox:e.getAttribute(lr("svgViewBox")),spinner:e.getAttribute(lr("spinner")),background:e.getAttribute(lr("background")),customClass:e.getAttribute(lr("customClass"))}):s4(e,t)},unmounted(e){var t;(t=e[wi])==null||t.instance.close(),e[wi]=null}};Ii._context=null;const Tse={install(e){bs._context=e._context,Ii._context=e._context,e.directive("loading",Ii),e.config.globalProperties.$loading=bs},directive:Ii,service:bs},t9=["primary","success","info","warning","error"],n9=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ws="top",Xn=on({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:At?document.body:void 0}),Mse=_e({customClass:{type:String,default:Xn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Xn.dangerouslyUseHTMLString},duration:{type:Number,default:Xn.duration},icon:{type:Ft,default:Xn.icon},id:{type:String,default:Xn.id},message:{type:J([String,Object,Function]),default:Xn.message},onClose:{type:J(Function),default:Xn.onClose},showClose:{type:Boolean,default:Xn.showClose},type:{type:String,values:t9,default:Xn.type},plain:{type:Boolean,default:Xn.plain},offset:{type:Number,default:Xn.offset},placement:{type:String,values:n9,default:Xn.placement},zIndex:{type:Number,default:Xn.zIndex},grouping:{type:Boolean,default:Xn.grouping},repeatNum:{type:Number,default:Xn.repeatNum}}),Ose={destroy:()=>!0},Ja=Ld({}),$se=e=>(Ja[e]||(Ja[e]=Ld([])),Ja[e]),Ase=(e,t)=>{const n=Ja[t]||[],a=n.findIndex(r=>r.id===e),o=n[a];let l;return a>0&&(l=n[a-1]),{current:o,prev:l}},Rse=(e,t)=>{const{prev:n}=Ase(e,t);return n?n.vm.exposed.bottom.value:0},Nse=(e,t,n)=>(Ja[n]||[]).findIndex(a=>a.id===e)>0?16:t,Pse=["id"],Ise=["innerHTML"];var Lse=D({name:"ElMessage",__name:"message",props:Mse,emits:Ose,setup(e,{expose:t,emit:n}){const{Close:a}=yh,o=e,l=n,r=V(!1),{ns:s,zIndex:u}=vf("message"),{currentZIndex:c,nextZIndex:d}=u,f=V(),h=V(!1),g=V(0);let p;const v=x(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=x(()=>{const z=o.type;return{[s.bm("icon",z)]:z&&Ul[z]}}),y=x(()=>o.icon||Ul[o.type]||""),b=x(()=>o.placement||ws),w=x(()=>Rse(o.id,b.value)),_=x(()=>Math.max(Nse(o.id,o.offset,b.value)+w.value,o.offset)),S=x(()=>g.value+_.value),k=x(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),T=x(()=>b.value.startsWith("top")?"top":"bottom"),M=x(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:p}=xs(()=>{I()},o.duration))}function O(){p==null||p()}function I(){h.value=!1,Le(()=>{var z;r.value||((z=o.onClose)==null||z.call(o),l("destroy"))})}function L(z){Kt(z)===Ce.esc&&I()}return gt(()=>{A(),d(),h.value=!0}),fe(()=>o.repeatNum,()=>{O(),A()}),Vt(document,"keydown",L),Zt(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:I}),(z,q)=>(C(),ie(Fn,{name:i(s).b("fade"),onBeforeEnter:q[0]||(q[0]=U=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=U=>z.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(s).b(),{[i(s).m(e.type)]:e.type},i(s).is("closable",e.showClose),i(s).is("plain",e.plain),i(s).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:qe(M.value),role:"alert",onMouseenter:O,onMouseleave:A},[e.repeatNum>1?(C(),ie(i(Jy),{key:0,value:e.repeatNum,type:v.value,class:R(i(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),y.value?(C(),ie(i(De),{key:1,class:R([i(s).e("icon"),m.value])},{default:ae(()=>[(C(),ie(dt(y.value)))]),_:1},8,["class"])):re("v-if",!0),oe(z.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(i(s).e("content")),innerHTML:e.message},null,10,Ise)],2112)):(C(),$("p",{key:0,class:R(i(s).e("content"))},Se(e.message),3))]),e.showClose?(C(),ie(i(De),{key:2,class:R(i(s).e("closeBtn")),onClick:Je(I,["stop"])},{default:ae(()=>[Q(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,Pse),[[$t,h.value]])]),_:3},8,["name","onBeforeLeave"]))}}),Vse=Lse;let Bse=1;const zse=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Be(e.appendTo)){let t=document.querySelector(e.appendTo);ga(t)||(pt("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},Dse=e=>{!e.placement&&Be(Zn.placement)&&Zn.placement&&(e.placement=Zn.placement),e.placement||(e.placement=ws),n9.includes(e.placement)||(pt("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${ws}'.`),e.placement=ws)},a9=e=>{const t=!e||Be(e)||Wt(e)||Fe(e)?{message:e}:e,n={...Xn,...t};return zse(n),Dse(n),Dt(Zn.grouping)&&!n.grouping&&(n.grouping=Zn.grouping),He(Zn.duration)&&n.duration===3e3&&(n.duration=Zn.duration),He(Zn.offset)&&n.offset===16&&(n.offset=Zn.offset),Dt(Zn.showClose)&&!n.showClose&&(n.showClose=Zn.showClose),Dt(Zn.plain)&&!n.plain&&(n.plain=Zn.plain),n},Hse=e=>{const t=Ja[e.props.placement||ws],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},Fse=({appendTo:e,...t},n)=>{const a=`message_${Bse++}`,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{o==null||o(),Hse(c)},onDestroy:()=>{Wl(null,l)}},s=Q(Vse,r,Fe(r.message)||Wt(r.message)?{default:Fe(r.message)?r.message:()=>r.message}:null);s.appContext=n||Vr._context,Wl(s,l),e.appendChild(l.firstElementChild);const u=s.component,c={id:a,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return c},Vr=(e={},t)=>{if(!At)return{close:()=>{}};const n=a9(e),a=$se(n.placement||ws);if(n.grouping&&a.length){const l=a.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(He(Zn.max)&&a.length>=Zn.max)return{close:()=>{}};const o=Fse(n,t);return a.push(o),o.handler};t9.forEach(e=>{Vr[e]=(t={},n)=>Vr({...a9(t),type:e},n)});function Kse(e){for(const t in Ja)if(Mt(Ja,t)){const n=[...Ja[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function Wse(e){Ja[e]&&[...Ja[e]].forEach(t=>t.handler.close())}Vr.closeAll=Kse;Vr.closeAllByPlacement=Wse;Vr._context=null;const o9=cy(Vr,"$message");var jse=D({name:"ElMessageBox",directives:{TrapFocus:uM},components:{ElButton:An,ElFocusTrap:Xs,ElInput:Dn,ElOverlay:Fh,ElIcon:De,...yh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:o5},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=vf("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:s}=a,u=V(!1),c=Rt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Oo(no),cancelButtonLoadingIcon:Oo(no),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=x(()=>{const U=c.type;return{[o.bm("icon",U)]:U&&Ul[U]}}),f=Kn(),h=Kn(),g=x(()=>{const U=c.type;return c.icon||U&&Ul[U]||""}),p=x(()=>!!c.message),v=V(),m=V(),y=V(),b=V(),w=V(),_=x(()=>c.confirmButtonClass);fe(()=>c.inputValue,async U=>{await Le(),e.boxType==="prompt"&&U&&I()},{immediate:!0}),fe(()=>u.value,U=>{var F;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=((F=w.value)==null?void 0:F.$el)??v.value:y.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(U?Le().then(()=>{b.value&&b.value.$el&&(c.autofocus?y.value=L()??v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:S}=T8(v,m,x(()=>e.draggable),x(()=>e.overflow));gt(async()=>{await Le(),e.closeOnHashChange&&window.addEventListener("hashchange",k)}),Lt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",k)});function k(){u.value&&(u.value=!1,Le(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=rh(T),A=U=>{var F;if(c.inputType!=="textarea"&&!((F=b.value)!=null&&F.isComposing))return U.preventDefault(),O("confirm")},O=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!I()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,k):k())},I=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(Fe(F)){const N=F(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Be(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{var F;const U=(F=b.value)==null?void 0:F.$refs;return(U==null?void 0:U.input)??(U==null?void 0:U.textarea)},z=()=>{O("close")},q=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&af(u,{ns:o}),{...Nn(c),ns:o,overlayEvent:M,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:g,confirmButtonClasses:_,rootRef:v,focusStartRef:y,headerRef:m,inputRef:b,isDragging:S,confirmRef:w,doClose:k,handleClose:z,onCloseRequested:q,handleWrapperClick:T,handleInputEnter:A,handleAction:O,t:r}}});const qse=["aria-label","aria-describedby"],Use=["aria-label"],Yse=["id"];function Gse(e,t,n,a,o,l){const r=Ot("el-icon"),s=Ot("el-input"),u=Ot("el-button"),c=Ot("el-focus-trap"),d=Ot("el-overlay");return C(),ie(Fn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ae(()=>[ft(Q(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ae(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:qe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Je(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(C(),$("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(C(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),E("span",null,Se(e.title),1)],2),e.showClose?(C(),$("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=nn(Je(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(r,{class:R(e.ns.e("close"))},{default:ae(()=>[(C(),ie(dt(e.closeIcon||"close")))]),_:1},8,["class"])],42,Use)):re("v-if",!0)],2)):re("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(C(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(C(),ie(dt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(C(),$("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),ie(dt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(C(),ie(dt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Se(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),ft(E("div",{class:R(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:nn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:qe({visibility:e.editorErrorMessage?"visible":"hidden"})},Se(e.editorErrorMessage),7)],2),[[$t,e.showInput]])],10,Yse),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(C(),ie(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=nn(Je(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),ft(Q(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=nn(Je(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[St(Se(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[$t,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,qse)]),_:3},8,["z-index","overlay-class","mask"]),[[$t,e.visible]])]),_:3})}var Xse=En(jse,[["render",Gse]]);const cu=new Map,Jse=e=>{let t=document.body;return e.appendTo&&(Be(e.appendTo)&&(t=document.querySelector(e.appendTo)),ga(e.appendTo)&&(t=e.appendTo),ga(t)||(pt("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Zse=(e,t,n=null)=>{const a=Q(Xse,e,Fe(e.message)||Wt(e.message)?{default:Fe(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Wl(a,t),Jse(e).appendChild(t.firstElementChild),a.component},Qse=()=>document.createElement("div"),eie=(e,t)=>{const n=Qse();e.onVanish=()=>{Wl(null,n),cu.delete(o)},e.onAction=l=>{const r=cu.get(o);let s;e.showInput?s={value:o.inputValue,action:l}:s=l,e.callback?e.callback(s,a.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(s)};const a=Zse(e,n,t),o=a.proxy;for(const l in e)Mt(e,l)&&!Mt(o.$props,l)&&(l==="closeIcon"&<(e[l])?o[l]=Oo(e[l]):o[l]=e[l]);return o.visible=!0,o};function Zs(e,t=null){if(!At)return Promise.reject();let n;return Be(e)||Wt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const l=eie(e,t??Zs._context);cu.set(l,{options:e,callback:n,resolve:a,reject:o})})}const tie=["alert","confirm","prompt"],nie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};tie.forEach(e=>{Zs[e]=aie(e)});function aie(e){return(t,n,a,o)=>{let l="";return lt(n)?(a=n,l=""):Et(n)?l="":l=n,Zs(Object.assign({title:l,message:t,type:"",...nie[e]},a,{boxType:e}),o)}}Zs.close=()=>{cu.forEach((e,t)=>{t.doClose()}),cu.clear()};Zs._context=null;const Al=Zs;Al.install=e=>{Al._context=e._context,e.config.globalProperties.$msgbox=Al,e.config.globalProperties.$messageBox=Al,e.config.globalProperties.$alert=Al.alert,e.config.globalProperties.$confirm=Al.confirm,e.config.globalProperties.$prompt=Al.prompt};const oie=Al,l9=["primary","success","info","warning","error"],lie=_e({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ft},id:{type:String,default:""},message:{type:J([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...l9,""],default:""},zIndex:Number,closeIcon:{type:Ft,default:Na}}),rie={destroy:()=>!0},sie=["id"],iie=["textContent"],uie={key:0},cie=["innerHTML"];var die=D({name:"ElNotification",__name:"notification",props:lie,emits:rie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=vf("notification"),{nextZIndex:l,currentZIndex:r}=o,s=V(!1);let u;const c=x(()=>{const b=n.type;return b&&Ul[n.type]?a.m(b):""}),d=x(()=>n.type&&Ul[n.type]||n.icon),f=x(()=>n.position.endsWith("right")?"right":"left"),h=x(()=>n.position.startsWith("top")?"top":"bottom"),g=x(()=>({[h.value]:`${n.offset}px`,zIndex:n.zIndex??r.value}));function p(){n.duration>0&&({stop:u}=xs(()=>{s.value&&m()},n.duration))}function v(){u==null||u()}function m(){s.value=!1}function y(b){switch(Kt(b)){case Ce.delete:case Ce.backspace:v();break;case Ce.esc:s.value&&m();break;default:p();break}}return gt(()=>{p(),l(),s.value=!0}),Vt(document,"keydown",y),t({visible:s,close:m}),(b,w)=>(C(),ie(Fn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=_=>b.$emit("destroy")),persisted:""},{default:ae(()=>[ft(E("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:qe(g.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(..._)=>e.onClick&&e.onClick(..._))},[d.value?(C(),ie(i(De),{key:0,class:R([i(a).e("icon"),c.value])},{default:ae(()=>[(C(),ie(dt(d.value)))]),_:1},8,["class"])):re("v-if",!0),E("div",{class:R(i(a).e("group"))},[E("h2",{class:R(i(a).e("title")),textContent:Se(e.title)},null,10,iie),ft(E("div",{class:R(i(a).e("content")),style:qe(e.title?void 0:{margin:0})},[oe(b.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(C(),$(Ke,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,cie)],2112)):(C(),$("p",uie,Se(e.message),1))])],6),[[$t,e.message]]),e.showClose?(C(),ie(i(De),{key:0,class:R(i(a).e("closeBtn")),onClick:Je(m,["stop"])},{default:ae(()=>[(C(),ie(dt(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,sie),[[$t,s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),fie=die;const Bs={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Td=16;let pie=1;const Br=function(e={},t){if(!At)return{close:()=>{}};(Be(e)||Wt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;Bs[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Td}),a+=Td;const o=`notification_${pie++}`,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{hie(o,n,l)}};let s=document.body;ga(e.appendTo)?s=e.appendTo:Be(e.appendTo)&&(s=document.querySelector(e.appendTo)),ga(s)||(pt("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const u=document.createElement("div"),c=Q(fie,r,Fe(r.message)?r.message:Wt(r.message)?()=>r.message:null);return c.appContext=Et(t)?Br._context:t,c.props.onDestroy=()=>{Wl(null,u)},Wl(c,u),Bs[n].push({vm:c}),s.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};l9.forEach(e=>{Br[e]=(t={},n)=>((Be(t)||Wt(t))&&(t={message:t}),Br({...t,type:e},n))});function hie(e,t,n){const a=Bs[t],o=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:l}=a[o];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,s=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function mie(e="top-right"){var n,a,o,l;let t=((o=(a=(n=Bs[e][0])==null?void 0:n.vm.component)==null?void 0:a.props)==null?void 0:o.offset)||0;for(const{vm:r}of Bs[e])r.component.props.offset=t,t+=(((l=r.el)==null?void 0:l.offsetHeight)||0)+Td}Br.closeAll=vie;Br.updateOffsets=mie;Br._context=null;const gie=cy(Br,"$notify");var yie=[G$,uH,yK,Fae,xK,kK,AK,Jy,HK,FK,An,ob,Oj,Nj,Yj,Gj,Kq,zb,Yq,lo,dq,Nh,oU,bU,wU,gf,Jb,YU,YK,tY,nY,aY,oY,lY,BG,uw,UG,YG,uX,gw,_X,uJ,cJ,dJ,Ew,sF,iF,De,QJ,Tw,Dn,Mw,mZ,_Z,BZ,zZ,DZ,HZ,UZ,TQ,RQ,DQ,jy,Iw,Bb,Sq,_q,tee,lee,tU,ao,Yl,fd,uj,Uee,Qee,ete,wte,kte,t5,Pte,Hte,Fte,Zte,rae,sae,Hae,toe,noe,ll,iv,VW,coe,voe,moe,Vn,Ooe,dv,Joe,ple,Dle,Xle,Cre,_re,Are,Rre,zre,Zre,fse,pse],bie=[_se,Tse,o9,oie,gie,Pw],wv=vse([...yie,...bie]);wv.install;wv.version;var wie=wv;const Cie={__name:"App",setup(e){return gt(()=>{const t=localStorage.getItem("theme");t?document.documentElement.classList.toggle("dark",t==="dark"):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark")}),(t,n)=>{const a=Ot("router-view");return C(),ie(a)}}},_ie="modulepreload",Sie=function(e){return"/"+e},i4={},ts=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Sie(u),u in i4)return;i4[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":_ie,c||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return o.then(r=>{for(const s of r||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})};/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const rs=typeof document<"u";function r9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&r9(e.default)}const Qt=Object.assign;function k0(e,t){const n={};for(const a in t){const o=t[a];n[a]=ro(o)?o.map(e):e(o)}return n}const Li=()=>{},ro=Array.isArray;function u4(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const s9=/#/g,kie=/&/g,Eie=/\//g,Tie=/=/g,Mie=/\?/g,i9=/\+/g,Oie=/%5B/g,$ie=/%5D/g,u9=/%5E/g,Aie=/%60/g,c9=/%7B/g,Rie=/%7C/g,d9=/%7D/g,Nie=/%20/g;function Cv(e){return e==null?"":encodeURI(""+e).replace(Rie,"|").replace(Oie,"[").replace($ie,"]")}function Pie(e){return Cv(e).replace(c9,"{").replace(d9,"}").replace(u9,"^")}function Q2(e){return Cv(e).replace(i9,"%2B").replace(Nie,"+").replace(s9,"%23").replace(kie,"%26").replace(Aie,"`").replace(c9,"{").replace(d9,"}").replace(u9,"^")}function Iie(e){return Q2(e).replace(Tie,"%3D")}function Lie(e){return Cv(e).replace(s9,"%23").replace(Mie,"%3F")}function Vie(e){return Lie(e).replace(Eie,"%2F")}function du(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Bie=/\/$/,zie=e=>e.replace(Bie,"");function E0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=Kie(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:du(r)}}function Die(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function c4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hie(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&zs(t.matched[a],n.matched[o])&&f9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function f9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fie(e[n],t[n]))return!1;return!0}function Fie(e,t){return ro(e)?d4(e,t):ro(t)?d4(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function d4(e,t){return ro(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Kie(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Tl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ep=function(e){return e.pop="pop",e.push="push",e}({}),T0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Wie(e){if(!e)if(rs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zie(e)}const jie=/^[^#]+#/;function qie(e,t){return e.replace(jie,"#")+t}function Uie(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Sf=()=>({left:window.scrollX,top:window.scrollY});function Yie(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Uie(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function f4(e,t){return(history.state?history.state.position-t:-1)+e}const tp=new Map;function Gie(e,t){tp.set(e,t)}function Xie(e){const t=tp.get(e);return tp.delete(e),t}function Jie(e){return typeof e=="string"||e&&typeof e=="object"}function p9(e){return typeof e=="string"||typeof e=="symbol"}let Sn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const h9=Symbol("");Sn.MATCHER_NOT_FOUND+"",Sn.NAVIGATION_GUARD_REDIRECT+"",Sn.NAVIGATION_ABORTED+"",Sn.NAVIGATION_CANCELLED+"",Sn.NAVIGATION_DUPLICATED+"";function Ds(e,t){return Qt(new Error,{type:e,[h9]:!0},t)}function qo(e,t){return e instanceof Error&&h9 in e&&(t==null||!!(e.type&t))}const Zie=["params","query","hash"];function Qie(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Zie)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function eue(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&Q2(o)):[a&&Q2(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function tue(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=ro(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const nue=Symbol(""),h4=Symbol(""),xf=Symbol(""),_v=Symbol(""),np=Symbol("");function pi(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Nl(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((s,u)=>{const c=h=>{h===!1?u(Ds(Sn.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):Jie(h)?u(Ds(Sn.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&a.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(h=>u(h))})}function M0(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const s in r.components){let u=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(r9(u)){const c=(u.__vccOpts||u)[t];c&&l.push(Nl(c,n,a,r,s,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${r.path}"`);const f=xie(d)?d.default:d;r.mods[s]=d,r.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Nl(h,n,a,r,s,o)()}))}}return l}function aue(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rzs(c,s))?a.push(s):n.push(s));const u=e.matched[r];u&&(t.matched.find(c=>zs(c,u))||o.push(u))}return[n,a,o]}/*! - * vue-router v4.6.4 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let oue=()=>location.protocol+"//"+location.host;function v9(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),c4(s,"")}return c4(n,e)+a+o}function lue(e,t,n,a){let o=[],l=[],r=null;const s=({state:h})=>{const g=v9(e,location),p=n.value,v=t.value;let m=0;if(h){if(n.value=g,t.value=h,r&&r===p){r=null;return}m=v?h.position-v.position:0}else a(g);o.forEach(y=>{y(n.value,p,{delta:m,type:ep.pop,direction:m?m>0?T0.forward:T0.back:T0.unknown})})};function u(){r=n.value}function c(h){o.push(h);const g=()=>{const p=o.indexOf(h);p>-1&&o.splice(p,1)};return l.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Qt({},h.state,{scroll:Sf()}),"")}}function f(){for(const h of l)h();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function v4(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Sf():null}}function rue(e){const{history:t,location:n}=window,a={value:v9(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:oue()+e+u;try{t[d?"replaceState":"pushState"](c,"",h),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function r(u,c){l(u,Qt({},t.state,v4(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=Qt({},o.value,t.state,{forward:u,scroll:Sf()});l(d.current,d,!0),l(u,Qt({},v4(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function sue(e){e=Wie(e);const t=rue(e),n=lue(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=Qt({location:"",base:e,go:a,createHref:qie.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let yr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var In=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(In||{});const iue={type:yr.Static,value:""},uue=/[a-zA-Z0-9_]/;function cue(e){if(!e)return[[]];if(e==="/")return[[iue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=In.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===In.Static?l.push({type:yr.Static,value:c}):n===In.Param||n===In.ParamRegExp||n===In.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:yr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=u}for(;st.length?t.length===1&&t[0]===ia.Static+ia.Segment?1:-1:0}function m9(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vue={strict:!1,end:!0,sensitive:!1};function mue(e,t,n){const a=pue(cue(e.path),n),o=Qt(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function gue(e,t){const n=[],a=new Map;t=u4(vue,t);function o(f){return a.get(f)}function l(f,h,g){const p=!g,v=b4(f);v.aliasOf=g&&g.record;const m=u4(t,f),y=[v];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of _)y.push(b4(Qt({},v,{components:g?g.record.components:v.components,path:S,aliasOf:g?g.record:v})))}let b,w;for(const _ of y){const{path:S}=_;if(h&&S[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";_.path=h.record.path+(S&&T+S)}if(b=mue(_,h,m),g?g.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!w4(b)&&r(f.name)),g9(b)&&u(b),v.children){const k=v.children;for(let T=0;T{r(w)}:Li}function r(f){if(p9(f)){const h=a.get(f);h&&(a.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function s(){return n}function u(f){const h=wue(f,n);n.splice(h,0,f),f.record.name&&!w4(f)&&a.set(f.record.name,f)}function c(f,h){let g,p={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Ds(Sn.MATCHER_NOT_FOUND,{location:f});m=g.record.name,p=Qt(y4(h.params,g.keys.filter(w=>!w.optional).concat(g.parent?g.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&y4(f.params,g.keys.map(w=>w.name))),v=g.stringify(p)}else if(f.path!=null)v=f.path,g=n.find(w=>w.re.test(v)),g&&(p=g.parse(v),m=g.record.name);else{if(g=h.name?a.get(h.name):n.find(w=>w.re.test(h.path)),!g)throw Ds(Sn.MATCHER_NOT_FOUND,{location:f,currentLocation:h});m=g.record.name,p=Qt({},h.params,f.params),v=g.stringify(p)}const y=[];let b=g;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:v,params:p,matched:y,meta:bue(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function y4(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function b4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function yue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function w4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function bue(e){return e.reduce((t,n)=>Qt(t,n.meta),{})}function wue(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;m9(e,t[l])<0?a=l:n=l+1}const o=Cue(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Cue(e){let t=e;for(;t=t.parent;)if(g9(t)&&m9(e,t)===0)return t}function g9({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function C4(e){const t=Pe(xf),n=Pe(_v),a=x(()=>{const u=i(e.to);return t.resolve(u)}),o=x(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(zs.bind(null,d));if(h>-1)return h;const g=_4(u[c-2]);return c>1&&_4(d)===g&&f[f.length-1].path!==g?f.findIndex(zs.bind(null,u[c-2])):h}),l=x(()=>o.value>-1&&Eue(n.params,a.value.params)),r=x(()=>o.value>-1&&o.value===n.matched.length-1&&f9(n.params,a.value.params));function s(u={}){if(kue(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Li);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:l,isExactActive:r,navigate:s}}function _ue(e){return e.length===1?e[0]:e}const Sue=D({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:C4,setup(e,{slots:t}){const n=Rt(C4(e)),{options:a}=Pe(xf),o=x(()=>({[S4(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[S4(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&_ue(t.default(n));return e.custom?l:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),xue=Sue;function kue(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Eue(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!ro(o)||o.length!==a.length||a.some((l,r)=>l.valueOf()!==o[r].valueOf()))return!1}return!0}function _4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const S4=(e,t,n)=>e??t??n,Tue=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Pe(np),o=x(()=>e.route||a.value),l=Pe(h4,0),r=x(()=>{let c=i(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),s=x(()=>o.value.matched[r.value]);wt(h4,x(()=>r.value+1)),wt(nue,s),wt(np,o);const u=V();return fe(()=>[u.value,s.value,e.name],([c,d,f],[h,g,p])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!zs(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=s.value,h=f&&f.components[d];if(!h)return x4(n.default,{Component:h,route:c});const g=f.props[d],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=Ye(h,Qt({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return x4(n.default,{Component:m,route:c})||m}}});function x4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mue=Tue;function Oue(e){const t=gue(e.routes,e),n=e.parseQuery||eue,a=e.stringifyQuery||p4,o=e.history,l=pi(),r=pi(),s=pi(),u=qt(Tl);let c=Tl;rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=k0.bind(null,ne=>""+ne),f=k0.bind(null,Vie),h=k0.bind(null,du);function g(ne,de){let se,Y;return p9(ne)?(se=t.getRecordMatcher(ne),Y=de):Y=ne,t.addRoute(Y,se)}function p(ne){const de=t.getRecordMatcher(ne);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(ne=>ne.record)}function m(ne){return!!t.getRecordMatcher(ne)}function y(ne,de){if(de=Qt({},de||u.value),typeof ne=="string"){const le=E0(n,ne,de.path),ce=t.resolve({path:le.path},de),ge=o.createHref(le.fullPath);return Qt(le,ce,{params:h(ce.params),hash:du(le.hash),redirectedFrom:void 0,href:ge})}let se;if(ne.path!=null)se=Qt({},ne,{path:E0(n,ne.path,de.path).path});else{const le=Qt({},ne.params);for(const ce in le)le[ce]==null&&delete le[ce];se=Qt({},ne,{params:f(le)}),de.params=f(de.params)}const Y=t.resolve(se,de),X=ne.hash||"";Y.params=d(h(Y.params));const H=Die(a,Qt({},ne,{hash:Pie(X),path:Y.path})),Z=o.createHref(H);return Qt({fullPath:H,hash:X,query:a===p4?tue(ne.query):ne.query||{}},Y,{redirectedFrom:void 0,href:Z})}function b(ne){return typeof ne=="string"?E0(n,ne,u.value.path):Qt({},ne)}function w(ne,de){if(c!==ne)return Ds(Sn.NAVIGATION_CANCELLED,{from:de,to:ne})}function _(ne){return T(ne)}function S(ne){return _(Qt(b(ne),{replace:!0}))}function k(ne,de){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:Y}=se;let X=typeof Y=="function"?Y(ne,de):Y;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),Qt({query:ne.query,hash:ne.hash,params:X.path!=null?{}:ne.params},X)}}function T(ne,de){const se=c=y(ne),Y=u.value,X=ne.state,H=ne.force,Z=ne.replace===!0,le=k(se,Y);if(le)return T(Qt(b(le),{state:typeof le=="object"?Qt({},X,le.state):X,force:H,replace:Z}),de||se);const ce=se;ce.redirectedFrom=de;let ge;return!H&&Hie(a,Y,se)&&(ge=Ds(Sn.NAVIGATION_DUPLICATED,{to:ce,from:Y}),W(Y,Y,!0,!1)),(ge?Promise.resolve(ge):O(ce,Y)).catch(me=>qo(me)?qo(me,Sn.NAVIGATION_GUARD_REDIRECT)?me:K(me):P(me,ce,Y)).then(me=>{if(me){if(qo(me,Sn.NAVIGATION_GUARD_REDIRECT))return T(Qt({replace:Z},b(me.to),{state:typeof me.to=="object"?Qt({},X,me.to.state):X,force:H}),de||ce)}else me=L(ce,Y,!0,Z,X);return I(ce,Y,me),me})}function M(ne,de){const se=w(ne,de);return se?Promise.reject(se):Promise.resolve()}function A(ne){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ne):ne()}function O(ne,de){let se;const[Y,X,H]=aue(ne,de);se=M0(Y.reverse(),"beforeRouteLeave",ne,de);for(const le of Y)le.leaveGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});const Z=M.bind(null,ne,de);return se.push(Z),ue(se).then(()=>{se=[];for(const le of l.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).then(()=>{se=M0(X,"beforeRouteUpdate",ne,de);for(const le of X)le.updateGuards.forEach(ce=>{se.push(Nl(ce,ne,de))});return se.push(Z),ue(se)}).then(()=>{se=[];for(const le of H)if(le.beforeEnter)if(ro(le.beforeEnter))for(const ce of le.beforeEnter)se.push(Nl(ce,ne,de));else se.push(Nl(le.beforeEnter,ne,de));return se.push(Z),ue(se)}).then(()=>(ne.matched.forEach(le=>le.enterCallbacks={}),se=M0(H,"beforeRouteEnter",ne,de,A),se.push(Z),ue(se))).then(()=>{se=[];for(const le of r.list())se.push(Nl(le,ne,de));return se.push(Z),ue(se)}).catch(le=>qo(le,Sn.NAVIGATION_CANCELLED)?le:Promise.reject(le))}function I(ne,de,se){s.list().forEach(Y=>A(()=>Y(ne,de,se)))}function L(ne,de,se,Y,X){const H=w(ne,de);if(H)return H;const Z=de===Tl,le=rs?history.state:{};se&&(Y||Z?o.replace(ne.fullPath,Qt({scroll:Z&&le&&le.scroll},X)):o.push(ne.fullPath,X)),u.value=ne,W(ne,de,se,Z),K()}let z;function q(){z||(z=o.listen((ne,de,se)=>{if(!te.listening)return;const Y=y(ne),X=k(Y,te.currentRoute.value);if(X){T(Qt(X,{replace:!0,force:!0}),Y).catch(Li);return}c=Y;const H=u.value;rs&&Gie(f4(H.fullPath,se.delta),Sf()),O(Y,H).catch(Z=>qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_CANCELLED)?Z:qo(Z,Sn.NAVIGATION_GUARD_REDIRECT)?(T(Qt(b(Z.to),{force:!0}),Y).then(le=>{qo(le,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===ep.pop&&o.go(-1,!1)}).catch(Li),Promise.reject()):(se.delta&&o.go(-se.delta,!1),P(Z,Y,H))).then(Z=>{Z=Z||L(Y,H,!1),Z&&(se.delta&&!qo(Z,Sn.NAVIGATION_CANCELLED)?o.go(-se.delta,!1):se.type===ep.pop&&qo(Z,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),I(Y,H,Z)}).catch(Li)}))}let U=pi(),F=pi(),N;function P(ne,de,se){K(ne);const Y=F.list();return Y.length?Y.forEach(X=>X(ne,de,se)):console.error(ne),Promise.reject(ne)}function B(){return N&&u.value!==Tl?Promise.resolve():new Promise((ne,de)=>{U.add([ne,de])})}function K(ne){return N||(N=!ne,q(),U.list().forEach(([de,se])=>ne?se(ne):de()),U.reset()),ne}function W(ne,de,se,Y){const{scrollBehavior:X}=e;if(!rs||!X)return Promise.resolve();const H=!se&&Xie(f4(ne.fullPath,0))||(Y||!se)&&history.state&&history.state.scroll||null;return Le().then(()=>X(ne,de,H)).then(Z=>Z&&Yie(Z)).catch(Z=>P(Z,ne,de))}const j=ne=>o.go(ne);let G;const ee=new Set,te={currentRoute:u,listening:!0,addRoute:g,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:y,options:e,push:_,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:r.add,afterEach:s.add,onError:F.add,isReady:B,install(ne){ne.component("RouterLink",xue),ne.component("RouterView",Mue),ne.config.globalProperties.$router=te,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),rs&&!G&&u.value===Tl&&(G=!0,_(o.location).catch(Y=>{}));const de={};for(const Y in Tl)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});ne.provide(xf,te),ne.provide(_v,Ld(de)),ne.provide(np,u);const se=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=Tl,z&&z(),z=null,u.value=Tl,G=!1,N=!1),se()}}};function ue(ne){return ne.reduce((de,se)=>de.then(()=>A(se)),Promise.resolve())}return te}function mde(){return Pe(xf)}function gde(e){return Pe(_v)}function y9(e,t){return function(){return e.apply(t,arguments)}}const{toString:$ue}=Object.prototype,{getPrototypeOf:Sv}=Object,{iterator:kf,toStringTag:b9}=Symbol,Ef=(e=>t=>{const n=$ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mo=e=>(e=e.toLowerCase(),t=>Ef(t)===e),Tf=e=>t=>typeof t===e,{isArray:Qs}=Array,Hs=Tf("undefined");function Ku(e){return e!==null&&!Hs(e)&&e.constructor!==null&&!Hs(e.constructor)&&Ca(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w9=mo("ArrayBuffer");function Aue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&w9(e.buffer),t}const Rue=Tf("string"),Ca=Tf("function"),C9=Tf("number"),Wu=e=>e!==null&&typeof e=="object",Nue=e=>e===!0||e===!1,Hc=e=>{if(Ef(e)!=="object")return!1;const t=Sv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(b9 in e)&&!(kf in e)},Pue=e=>{if(!Wu(e)||Ku(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Iue=mo("Date"),Lue=mo("File"),Vue=e=>!!(e&&typeof e.uri<"u"),Bue=e=>e&&typeof e.getParts<"u",zue=mo("Blob"),Due=mo("FileList"),Hue=e=>Wu(e)&&Ca(e.pipe);function Fue(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const k4=Fue(),E4=typeof k4.FormData<"u"?k4.FormData:void 0,Kue=e=>{let t;return e&&(E4&&e instanceof E4||Ca(e.append)&&((t=Ef(e))==="formdata"||t==="object"&&Ca(e.toString)&&e.toString()==="[object FormData]"))},Wue=mo("URLSearchParams"),[jue,que,Uue,Yue]=["ReadableStream","Request","Response","Headers"].map(mo),Gue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ju(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Qs(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S9=e=>!Hs(e)&&e!==br;function ap(){const{caseless:e,skipUndefined:t}=S9(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const r=e&&_9(n,l)||l;Hc(n[r])&&Hc(o)?n[r]=ap(n[r],o):Hc(o)?n[r]=ap({},o):Qs(o)?n[r]=o.slice():(!t||!Hs(o))&&(n[r]=o)};for(let o=0,l=arguments.length;o(ju(t,(o,l)=>{n&&Ca(o)?Object.defineProperty(e,l,{value:y9(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),Jue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zue=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Que=(e,t,n,a)=>{let o,l,r;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)r=o[l],(!a||a(r,e,t))&&!s[r]&&(t[r]=e[r],s[r]=!0);e=n!==!1&&Sv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ece=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},tce=e=>{if(!e)return null;if(Qs(e))return e;let t=e.length;if(!C9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sv(Uint8Array)),ace=(e,t)=>{const a=(e&&e[kf]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},oce=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},lce=mo("HTMLFormElement"),rce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),T4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sce=mo("RegExp"),x9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};ju(n,(o,l)=>{let r;(r=t(o,l,e))!==!1&&(a[l]=r||o)}),Object.defineProperties(e,a)},ice=e=>{x9(e,(t,n)=>{if(Ca(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Ca(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uce=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return Qs(e)?a(e):a(String(e).split(t)),n},cce=()=>{},dce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fce(e){return!!(e&&Ca(e.append)&&e[b9]==="FormData"&&e[kf])}const pce=e=>{const t=new Array(10),n=(a,o)=>{if(Wu(a)){if(t.indexOf(a)>=0)return;if(Ku(a))return a;if(!("toJSON"in a)){t[o]=a;const l=Qs(a)?[]:{};return ju(a,(r,s)=>{const u=n(r,o+1);!Hs(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},hce=mo("AsyncFunction"),vce=e=>e&&(Wu(e)||Ca(e))&&Ca(e.then)&&Ca(e.catch),k9=((e,t)=>e?setImmediate:t?((n,a)=>(br.addEventListener("message",({source:o,data:l})=>{o===br&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),br.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ca(br.postMessage)),mce=typeof queueMicrotask<"u"?queueMicrotask.bind(br):typeof process<"u"&&process.nextTick||k9,gce=e=>e!=null&&Ca(e[kf]),$e={isArray:Qs,isArrayBuffer:w9,isBuffer:Ku,isFormData:Kue,isArrayBufferView:Aue,isString:Rue,isNumber:C9,isBoolean:Nue,isObject:Wu,isPlainObject:Hc,isEmptyObject:Pue,isReadableStream:jue,isRequest:que,isResponse:Uue,isHeaders:Yue,isUndefined:Hs,isDate:Iue,isFile:Lue,isReactNativeBlob:Vue,isReactNative:Bue,isBlob:zue,isRegExp:sce,isFunction:Ca,isStream:Hue,isURLSearchParams:Wue,isTypedArray:nce,isFileList:Due,forEach:ju,merge:ap,extend:Xue,trim:Gue,stripBOM:Jue,inherits:Zue,toFlatObject:Que,kindOf:Ef,kindOfTest:mo,endsWith:ece,toArray:tce,forEachEntry:ace,matchAll:oce,isHTMLForm:lce,hasOwnProperty:T4,hasOwnProp:T4,reduceDescriptors:x9,freezeMethods:ice,toObjectSet:uce,toCamelCase:rce,noop:cce,toFiniteNumber:dce,findKey:_9,global:br,isContextDefined:S9,isSpecCompliantForm:fce,toJSONObject:pce,isAsyncFn:hce,isThenable:vce,setImmediate:k9,asap:mce,isIterable:gce};let Nt=class E9 extends Error{static from(t,n,a,o,l,r){const s=new E9(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){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:$e.toJSONObject(this.config),code:this.code,status:this.status}}};Nt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Nt.ERR_BAD_OPTION="ERR_BAD_OPTION";Nt.ECONNABORTED="ECONNABORTED";Nt.ETIMEDOUT="ETIMEDOUT";Nt.ERR_NETWORK="ERR_NETWORK";Nt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Nt.ERR_DEPRECATED="ERR_DEPRECATED";Nt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Nt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Nt.ERR_CANCELED="ERR_CANCELED";Nt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Nt.ERR_INVALID_URL="ERR_INVALID_URL";const yce=null;function op(e){return $e.isPlainObject(e)||$e.isArray(e)}function T9(e){return $e.endsWith(e,"[]")?e.slice(0,-2):e}function O0(e,t,n){return e?e.concat(t).map(function(o,l){return o=T9(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function bce(e){return $e.isArray(e)&&!e.some(op)}const wce=$e.toFlatObject($e,{},null,function(t){return/^is[A-Z]/.test(t)});function Mf(e,t,n){if(!$e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!$e.isUndefined(m[v])});const a=n.metaTokens,o=n.visitor||d,l=n.dots,r=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&$e.isSpecCompliantForm(t);if(!$e.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if($e.isDate(p))return p.toISOString();if($e.isBoolean(p))return p.toString();if(!u&&$e.isBlob(p))throw new Nt("Blob is not supported. Use a Buffer instead.");return $e.isArrayBuffer(p)||$e.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,v,m){let y=p;if($e.isReactNative(t)&&$e.isReactNativeBlob(p))return t.append(O0(m,v,l),c(p)),!1;if(p&&!m&&typeof p=="object"){if($e.endsWith(v,"{}"))v=a?v:v.slice(0,-2),p=JSON.stringify(p);else if($e.isArray(p)&&bce(p)||($e.isFileList(p)||$e.endsWith(v,"[]"))&&(y=$e.toArray(p)))return v=T9(v),y.forEach(function(w,_){!($e.isUndefined(w)||w===null)&&t.append(r===!0?O0([v],_,l):r===null?v:v+"[]",c(w))}),!1}return op(p)?!0:(t.append(O0(m,v,l),c(p)),!1)}const f=[],h=Object.assign(wce,{defaultVisitor:d,convertValue:c,isVisitable:op});function g(p,v){if(!$e.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),$e.forEach(p,function(y,b){(!($e.isUndefined(y)||y===null)&&o.call(t,y,$e.isString(b)?b.trim():b,v,h))===!0&&g(y,v?v.concat(b):[b])}),f.pop()}}if(!$e.isObject(e))throw new TypeError("data must be an object");return g(e),t}function M4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function xv(e,t){this._pairs=[],e&&Mf(e,this,t)}const M9=xv.prototype;M9.append=function(t,n){this._pairs.push([t,n])};M9.toString=function(t){const n=t?function(a){return t.call(this,a,M4)}:M4;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function O9(e,t,n){if(!t)return e;const a=n&&n.encode||Cce,o=$e.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let r;if(l?r=l(t,o):r=$e.isURLSearchParams(t)?t.toString():new xv(t,o).toString(a),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class O4{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$e.forEach(this.handlers,function(a){a!==null&&t(a)})}}const kv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_ce=typeof URLSearchParams<"u"?URLSearchParams:xv,Sce=typeof FormData<"u"?FormData:null,xce=typeof Blob<"u"?Blob:null,kce={isBrowser:!0,classes:{URLSearchParams:_ce,FormData:Sce,Blob:xce},protocols:["http","https","file","blob","url","data"]},Ev=typeof window<"u"&&typeof document<"u",lp=typeof navigator=="object"&&navigator||void 0,Ece=Ev&&(!lp||["ReactNative","NativeScript","NS"].indexOf(lp.product)<0),Tce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mce=Ev&&window.location.href||"http://localhost",Oce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ev,hasStandardBrowserEnv:Ece,hasStandardBrowserWebWorkerEnv:Tce,navigator:lp,origin:Mce},Symbol.toStringTag,{value:"Module"})),na={...Oce,...kce};function $ce(e,t){return Mf(e,new na.classes.URLSearchParams,{visitor:function(n,a,o,l){return na.isNode&&$e.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Ace(e){return $e.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rce(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a=n.length;return r=!r&&$e.isArray(o)?o.length:r,u?($e.hasOwnProp(o,r)?o[r]=[o[r],a]:o[r]=a,!s):((!o[r]||!$e.isObject(o[r]))&&(o[r]=[]),t(n,a,o[r],l)&&$e.isArray(o[r])&&(o[r]=Rce(o[r])),!s)}if($e.isFormData(e)&&$e.isFunction(e.entries)){const n={};return $e.forEachEntry(e,(a,o)=>{t(Ace(a),o,n,0)}),n}return null}function Nce(e,t,n){if($e.isString(e))try{return(t||JSON.parse)(e),$e.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const qu={transitional:kv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=$e.isObject(t);if(l&&$e.isHTMLForm(t)&&(t=new FormData(t)),$e.isFormData(t))return o?JSON.stringify($9(t)):t;if($e.isArrayBuffer(t)||$e.isBuffer(t)||$e.isStream(t)||$e.isFile(t)||$e.isBlob(t)||$e.isReadableStream(t))return t;if($e.isArrayBufferView(t))return t.buffer;if($e.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return $ce(t,this.formSerializer).toString();if((s=$e.isFileList(t))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Mf(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),Nce(t)):t}],transformResponse:[function(t){const n=this.transitional||qu.transitional,a=n&&n.forcedJSONParsing,o=this.responseType==="json";if($e.isResponse(t)||$e.isReadableStream(t))return t;if(t&&$e.isString(t)&&(a&&!this.responseType||o)){const r=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(r)throw s.name==="SyntaxError"?Nt.from(s,Nt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$e.forEach(["delete","get","head","post","put","patch"],e=>{qu.headers[e]={}});const Pce=$e.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"]),Ice=e=>{const t={};let n,a,o;return e&&e.split(` -`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&Pce[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},$4=Symbol("internals"),Lce=e=>!/[\r\n]/.test(e);function A9(e,t){if(!(e===!1||e==null)){if($e.isArray(e)){e.forEach(n=>A9(n,t));return}if(!Lce(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}}function hi(e){return e&&String(e).trim().toLowerCase()}function Vce(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(n!==10&&n!==13)break;t-=1}return t===e.length?e:e.slice(0,t)}function Fc(e){return e===!1||e==null?e:$e.isArray(e)?e.map(Fc):Vce(String(e))}function Bce(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const zce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $0(e,t,n,a,o){if($e.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!$e.isString(t)){if($e.isString(a))return t.indexOf(a)!==-1;if($e.isRegExp(a))return a.test(t)}}function Dce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function Hce(e,t){const n=$e.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let _a=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=hi(u);if(!d)throw new Error("header name must be a non-empty string");const f=$e.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(A9(s,u),o[f||u]=Fc(s))}const r=(s,u)=>$e.forEach(s,(c,d)=>l(c,d,u));if($e.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if($e.isString(t)&&(t=t.trim())&&!zce(t))r(Ice(t),n);else if($e.isObject(t)&&$e.isIterable(t)){let s={},u,c;for(const d of t){if(!$e.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(u=s[c])?$e.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=hi(t),t){const a=$e.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return Bce(o);if($e.isFunction(n))return n.call(this,o,a);if($e.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=hi(t),t){const a=$e.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||$0(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=hi(r),r){const s=$e.findKey(a,r);s&&(!n||$0(a,a[s],s,n))&&(delete a[s],o=!0)}}return $e.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||$0(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return $e.forEach(this,(o,l)=>{const r=$e.findKey(a,l);if(r){n[r]=Fc(o),delete n[l];return}const s=t?Dce(l):String(l).trim();s!==l&&delete n[l],n[s]=Fc(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $e.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&$e.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[$4]=this[$4]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=hi(r);a[s]||(Hce(o,r),a[s]=!0)}return $e.isArray(t)?t.forEach(l):l(t),this}};_a.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$e.reduceDescriptors(_a.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});$e.freezeMethods(_a);function A0(e,t){const n=this||qu,a=t||n,o=_a.from(a.headers);let l=a.data;return $e.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function R9(e){return!!(e&&e.__CANCEL__)}let Uu=class extends Nt{constructor(t,n,a){super(t??"canceled",Nt.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function N9(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Nt("Request failed with status code "+n.status,[Nt.ERR_BAD_REQUEST,Nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kce(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[l];r||(r=c),n[o]=u,a[o]=c;let f=l,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),c-r{n=d,o=null,l&&(clearTimeout(l),l=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?r(c,d):(o=c,l||(l=setTimeout(()=>{l=null,r(o)},a-f)))},()=>o&&r(o)]}const Md=(e,t,n=3)=>{let a=0;const o=Kce(50,250);return Wce(l=>{const r=l.loaded,s=l.lengthComputable?l.total:void 0,u=r-a,c=o(u),d=r<=s;a=r;const f={loaded:r,total:s,progress:s?r/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&d?(s-r)/c:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},A4=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},R4=e=>(...t)=>$e.asap(()=>e(...t)),jce=na.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,na.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(na.origin),na.navigator&&/(msie|trident)/i.test(na.navigator.userAgent)):()=>!0,qce=na.hasStandardBrowserEnv?{write(e,t,n,a,o,l,r){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];$e.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),$e.isString(a)&&s.push(`path=${a}`),$e.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),$e.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Uce(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yce(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function P9(e,t,n){let a=!Uce(t);return e&&(a||n==!1)?Yce(e,t):t}const N4=e=>e instanceof _a?{...e}:e;function zr(e,t){t=t||{};const n={};function a(c,d,f,h){return $e.isPlainObject(c)&&$e.isPlainObject(d)?$e.merge.call({caseless:h},c,d):$e.isPlainObject(d)?$e.merge({},d):$e.isArray(d)?d.slice():d}function o(c,d,f,h){if($e.isUndefined(d)){if(!$e.isUndefined(c))return a(void 0,c,f,h)}else return a(c,d,f,h)}function l(c,d){if(!$e.isUndefined(d))return a(void 0,d)}function r(c,d){if($e.isUndefined(d)){if(!$e.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,f){if(f in t)return a(c,d);if(f in e)return a(void 0,c)}const u={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(c,d,f)=>o(N4(c),N4(d),f,!0)};return $e.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=$e.hasOwnProp(u,d)?u[d]:o,h=f(e[d],t[d],d);$e.isUndefined(h)&&f!==s||(n[d]=h)}),n}const I9=e=>{const t=zr({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:r,auth:s}=t;if(t.headers=r=_a.from(r),t.url=O9(P9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),$e.isFormData(n)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if($e.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(na.hasStandardBrowserEnv&&(a&&$e.isFunction(a)&&(a=a(t)),a||a!==!1&&jce(t.url))){const u=o&&l&&qce.read(l);u&&r.set(o,u)}return t},Gce=typeof XMLHttpRequest<"u",Xce=Gce&&function(e){return new Promise(function(n,a){const o=I9(e);let l=o.data;const r=_a.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=o,d,f,h,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const w=_a.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};N9(function(T){n(T),v()},function(T){a(T),v()},S),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new Nt("Request aborted",Nt.ECONNABORTED,e,m)),m=null)},m.onerror=function(_){const S=_&&_.message?_.message:"Network Error",k=new Nt(S,Nt.ERR_NETWORK,e,m);k.event=_||null,a(k),m=null},m.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||kv;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),a(new Nt(_,S.clarifyTimeoutError?Nt.ETIMEDOUT:Nt.ECONNABORTED,e,m)),m=null},l===void 0&&r.setContentType(null),"setRequestHeader"in m&&$e.forEach(r.toJSON(),function(_,S){m.setRequestHeader(S,_)}),$e.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),c&&([h,p]=Md(c,!0),m.addEventListener("progress",h)),u&&m.upload&&([f,g]=Md(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=w=>{m&&(a(!w||w.type?new Uu(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const b=Fce(o.url);if(b&&na.protocols.indexOf(b)===-1){a(new Nt("Unsupported protocol "+b+":",Nt.ERR_BAD_REQUEST,e));return}m.send(l||null)})},Jce=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(c){if(!o){o=!0,s();const d=c instanceof Error?c:this.reason;a.abort(d instanceof Nt?d:new Uu(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,l(new Nt(`timeout of ${t}ms exceeded`,Nt.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>$e.asap(s),u}},Zce=function*(e,t){let n=e.byteLength;if(n{const o=Qce(e,t);let l=0,r,s=u=>{r||(r=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){s(),u.close();return}let f=d.byteLength;if(n){let h=l+=f;n(h)}u.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},I4=64*1024,{isFunction:bc}=$e,tde=(({Request:e,Response:t})=>({Request:e,Response:t}))($e.global),{ReadableStream:L4,TextEncoder:V4}=$e.global,B4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nde=e=>{e=$e.merge.call({skipUndefined:!0},tde,e);const{fetch:t,Request:n,Response:a}=e,o=t?bc(t):typeof fetch=="function",l=bc(n),r=bc(a);if(!o)return!1;const s=o&&bc(L4),u=o&&(typeof V4=="function"?(p=>v=>p.encode(v))(new V4):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=l&&s&&B4(()=>{let p=!1;const v=new L4,m=new n(na.origin,{body:v,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return v.cancel(),p&&!m}),d=r&&s&&B4(()=>$e.isReadableStream(new a("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(v,m)=>{let y=v&&v[p];if(y)return y.call(v);throw new Nt(`Response type '${p}' is not supported`,Nt.ERR_NOT_SUPPORT,m)})});const h=async p=>{if(p==null)return 0;if($e.isBlob(p))return p.size;if($e.isSpecCompliantForm(p))return(await new n(na.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if($e.isArrayBufferView(p)||$e.isArrayBuffer(p))return p.byteLength;if($e.isURLSearchParams(p)&&(p=p+""),$e.isString(p))return(await u(p)).byteLength},g=async(p,v)=>{const m=$e.toFiniteNumber(p.getContentLength());return m??h(v)};return async p=>{let{url:v,method:m,data:y,signal:b,cancelToken:w,timeout:_,onDownloadProgress:S,onUploadProgress:k,responseType:T,headers:M,withCredentials:A="same-origin",fetchOptions:O}=I9(p),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=Jce([b,w&&w.toAbortSignal()],_),z=null;const q=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let U;try{if(k&&c&&m!=="get"&&m!=="head"&&(U=await g(M,y))!==0){let W=new n(v,{method:"POST",body:y,duplex:"half"}),j;if($e.isFormData(y)&&(j=W.headers.get("content-type"))&&M.setContentType(j),W.body){const[G,ee]=A4(U,Md(R4(k)));y=P4(W.body,I4,G,ee)}}$e.isString(A)||(A=A?"include":"omit");const F=l&&"credentials"in n.prototype,N={...O,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:F?A:void 0};z=l&&new n(v,N);let P=await(l?I(z,O):I(v,N));const B=d&&(T==="stream"||T==="response");if(d&&(S||B&&q)){const W={};["status","statusText","headers"].forEach(te=>{W[te]=P[te]});const j=$e.toFiniteNumber(P.headers.get("content-length")),[G,ee]=S&&A4(j,Md(R4(S),!0))||[];P=new a(P4(P.body,I4,G,()=>{ee&&ee(),q&&q()}),W)}T=T||"text";let K=await f[$e.findKey(f,T)||"text"](P,p);return!B&&q&&q(),await new Promise((W,j)=>{N9(W,j,{data:K,headers:_a.from(P.headers),status:P.status,statusText:P.statusText,config:p,request:z})})}catch(F){throw q&&q(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Nt("Network Error",Nt.ERR_NETWORK,p,z,F&&F.response),{cause:F.cause||F}):Nt.from(F,F&&F.code,p,z,F&&F.response)}}},ade=new Map,L9=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let r=l.length,s=r,u,c,d=ade;for(;s--;)u=l[s],c=d.get(u),c===void 0&&d.set(u,c=s?new Map:nde(t)),d=c;return c};L9();const Tv={http:yce,xhr:Xce,fetch:{get:L9}};$e.forEach(Tv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const z4=e=>`- ${e}`,ode=e=>$e.isFunction(e)||e===null||e===!1;function lde(e,t){e=$e.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?r.length>1?`since : -`+r.map(z4).join(` -`):" "+z4(r[0]):"as no adapter specified";throw new Nt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const V9={getAdapter:lde,adapters:Tv};function R0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Uu(null,e)}function D4(e){return R0(e),e.headers=_a.from(e.headers),e.data=A0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),V9.getAdapter(e.adapter||qu.adapter,e)(e).then(function(a){return R0(e),a.data=A0.call(e,e.transformResponse,a),a.headers=_a.from(a.headers),a},function(a){return R9(a)||(R0(e),a&&a.response&&(a.response.data=A0.call(e,e.transformResponse,a.response),a.response.headers=_a.from(a.response.headers))),Promise.reject(a)})}const B9="1.15.0",Of={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Of[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const H4={};Of.transitional=function(t,n,a){function o(l,r){return"[Axios v"+B9+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new Nt(o(r," has been removed"+(n?" in "+n:"")),Nt.ERR_DEPRECATED);return n&&!H4[r]&&(H4[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};Of.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function rde(e,t,n){if(typeof e!="object")throw new Nt("options must be an object",Nt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=t[l];if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new Nt("option "+l+" must be "+u,Nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Nt("Unknown option "+l,Nt.ERR_BAD_OPTION)}}const Kc={assertOptions:rde,validators:Of},La=Kc.validators;let kr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new O4,response:new O4}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` -`);return r===-1?"":o.stack.slice(r+1)})();try{if(!a.stack)a.stack=l;else if(l){const r=l.indexOf(` -`),s=r===-1?-1:l.indexOf(` -`,r+1),u=s===-1?"":l.slice(s+1);String(a.stack).endsWith(u)||(a.stack+=` -`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zr(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Kc.assertOptions(a,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean),legacyInterceptorReqResOrdering:La.transitional(La.boolean)},!1),o!=null&&($e.isFunction(o)?n.paramsSerializer={serialize:o}:Kc.assertOptions(o,{encode:La.function,serialize:La.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Kc.assertOptions(n,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&$e.merge(l.common,l[n.method]);l&&$e.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=_a.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||kv;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!u){const p=[D4.bind(this),void 0];for(p.unshift(...s),p.push(...c),h=p.length,d=Promise.resolve(n);f{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Uu(l,r,s),n(a.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)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new z9(function(o){t=o}),cancel:t}}};function ide(e){return function(n){return e.apply(null,n)}}function ude(e){return $e.isObject(e)&&e.isAxiosError===!0}const rp={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(rp).forEach(([e,t])=>{rp[t]=e});function D9(e){const t=new kr(e),n=y9(kr.prototype.request,t);return $e.extend(n,kr.prototype,t,{allOwnKeys:!0}),$e.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return D9(zr(e,o))},n}const Tn=D9(qu);Tn.Axios=kr;Tn.CanceledError=Uu;Tn.CancelToken=sde;Tn.isCancel=R9;Tn.VERSION=B9;Tn.toFormData=Mf;Tn.AxiosError=Nt;Tn.Cancel=Tn.CanceledError;Tn.all=function(t){return Promise.all(t)};Tn.spread=ide;Tn.isAxiosError=ude;Tn.mergeConfig=zr;Tn.AxiosHeaders=_a;Tn.formToJSON=e=>$9($e.isHTMLForm(e)?new FormData(e):e);Tn.getAdapter=V9.getAdapter;Tn.HttpStatusCode=rp;Tn.default=Tn;const{Axios:Cde,AxiosError:_de,CanceledError:Sde,isCancel:xde,CancelToken:kde,VERSION:Ede,all:Tde,Cancel:Mde,isAxiosError:Ode,spread:$de,toFormData:Ade,AxiosHeaders:Rde,HttpStatusCode:Nde,formToJSON:Pde,getAdapter:Ide,mergeConfig:Lde}=Tn,yn=Tn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});yn.interceptors.response.use(e=>e,e=>{var n,a,o;const t=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message||"请求失败";return((o=e.response)==null?void 0:o.status)===401?(pde(),window.location.href="/login",Promise.reject(e)):(o9.error(t),Promise.reject(e))});let cde=1e4;const dde=()=>yn.get("/auth/me").then(e=>(e.data&&typeof e.data.ui_refresh_interval=="number"&&(cde=e.data.ui_refresh_interval),e)),Vde=e=>yn.post("/auth/login",e),Bde=()=>yn.post("/auth/guest"),zde=()=>yn.post("/auth/logout"),Dde=e=>yn.get("/machines",{params:e}),Hde=e=>yn.get(`/machines/${e}`),Fde=e=>yn.post("/machines",e),Kde=(e,t)=>yn.put(`/machines/${e}`,t),Wde=e=>yn.delete(`/machines/${e}`),jde=(e,t)=>yn.post(`/machines/${e}/ssh-info`,t),qde=(e,t)=>yn.post(`/machines/${e}/sync-ssh`,t),Ude=e=>yn.get(`/machines/${e}/offline-logs`),Yde=e=>yn.get(`/machines/${e}/services`),Gde=()=>yn.get("/services"),Xde=(e,t)=>yn.post(`/machines/${e}/services`,t),Jde=(e,t)=>yn.put(`/services/${e}`,t),Zde=e=>yn.delete(`/services/${e}`),Qde=()=>yn.get("/relationships"),efe=e=>yn.post("/relationships",e),tfe=(e,t)=>yn.put(`/relationships/${e}`,t),nfe=e=>yn.delete(`/relationships/${e}`),afe=e=>yn.get("/logs",{params:e}),ofe=()=>yn.get("/export",{responseType:"blob"}),lfe=e=>yn.post("/import",e,{headers:{"Content-Type":"multipart/form-data"}}),fde=[{path:"/login",name:"Login",component:()=>ts(()=>import("./Login-BsBJ5Qco.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guestOnly:!0}},{path:"/",component:()=>ts(()=>import("./MainLayout-BzeQKWOs.js"),__vite__mapDeps([3,1,4])),children:[{path:"",redirect:"/machines"},{path:"machines",name:"MachineList",component:()=>ts(()=>import("./MachineList-xoH6VyjV.js"),__vite__mapDeps([5,1,6])),meta:{public:!0}},{path:"machines/:id",name:"MachineDetail",component:()=>ts(()=>import("./MachineDetail-EJEjie9p.js"),__vite__mapDeps([7,1,8])),meta:{public:!0}},{path:"topology",name:"Topology",component:()=>ts(()=>import("./Topology-CVKO0hET.js"),__vite__mapDeps([9,1,10])),meta:{admin:!0}},{path:"logs",name:"Logs",component:()=>ts(()=>import("./Logs-dZIuK9lS.js"),__vite__mapDeps([11,1,12])),meta:{admin:!0}}]}],H9=Oue({history:sue(),routes:fde});let sp=!1,dr={is_admin:!1};H9.beforeEach(async(e,t,n)=>{if(!sp){try{const{data:a}=await dde();dr=a}catch{dr={is_admin:!1}}sp=!0}if(e.name==="MachineDetail"&&!dr.is_admin)return n("/machines");if(e.meta.admin&&!dr.is_admin)return n("/login?redirect="+encodeURIComponent(e.fullPath));if(e.meta.guestOnly&&dr.is_admin)return n("/");n()});function pde(){sp=!1}function rfe(e){dr=e}function sfe(){return dr}const $f=m6(Cie);for(const[e,t]of Object.entries(eH))$f.component(e,t);$f.use(wie);$f.use(H9);$f.mount("#app");export{Qde as $,Az as A,UL as B,Vz as C,zde as D,o9 as E,sfe as F,pde as G,dde as H,cde as I,Fs as J,Dde as K,vh as L,Ke as M,_t as N,lfe as O,Ey as P,qe as Q,Kde as R,Fde as S,ofe as T,Hde as U,Yde as V,nP as W,vy as X,wB as Y,gde as Z,Ude as _,E as a,zo as a0,Gz as a1,MB as a2,Je as a3,oie as a4,Wde as a5,jde as a6,qde as a7,nfe as a8,Jde as a9,Xde as aa,tfe as ab,efe as ac,Zde as ad,vde as ae,xl as af,Sl as ag,Gde as ah,hde as ai,afe as aj,ft as ak,Sp as al,Q as b,$ as c,Ot as d,i as e,kD as f,nn as g,St as h,Vde as i,Bde as j,gt as k,cL as l,ie as m,re as n,C as o,R as p,x as q,V as r,rfe as s,Se as t,mde as u,KL as v,ae as w,YB as x,my as y,dt as z}; diff --git a/web/dist/index.html b/web/dist/index.html index 4eb6640..c94c067 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ 局域网机器管理后台 - +