diff --git a/litellm/proxy/_experimental/out/404.html b/litellm/proxy/_experimental/out/404.html index f27612ff54e..03276fe6f34 100644 --- a/litellm/proxy/_experimental/out/404.html +++ b/litellm/proxy/_experimental/out/404.html @@ -1 +1 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/404/index.html b/litellm/proxy/_experimental/out/404/index.html index f27612ff54e..03276fe6f34 100644 --- a/litellm/proxy/_experimental/out/404/index.html +++ b/litellm/proxy/_experimental/out/404/index.html @@ -1 +1 @@ -404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.LiteLLM Dashboard

404

This page could not be found.

\ No newline at end of file diff --git a/litellm/proxy/_experimental/out/__next.__PAGE__.txt b/litellm/proxy/_experimental/out/__next.__PAGE__.txt index c024136e8dc..757891ff2bf 100644 --- a/litellm/proxy/_experimental/out/__next.__PAGE__.txt +++ b/litellm/proxy/_experimental/out/__next.__PAGE__.txt @@ -1,10 +1,10 @@ 1:"$Sreact.fragment" -2:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"] -3:I[952683,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js","/litellm-asset-prefix/_next/static/chunks/52c4ecc57f72065e.js","/litellm-asset-prefix/_next/static/chunks/4bb663ff806dc32f.js","/litellm-asset-prefix/_next/static/chunks/ee8f89c672745c59.js","/litellm-asset-prefix/_next/static/chunks/2954392b7a60a6a1.js","/litellm-asset-prefix/_next/static/chunks/04711b0f8ffa7bbd.js","/litellm-asset-prefix/_next/static/chunks/9710770c6333a72f.js","/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","/litellm-asset-prefix/_next/static/chunks/d734cb3d5659b0da.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/09c1f51da7e82268.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/d028f8c28935d281.js","/litellm-asset-prefix/_next/static/chunks/61aa637257592262.js","/litellm-asset-prefix/_next/static/chunks/bf962cd5264be987.js","/litellm-asset-prefix/_next/static/chunks/37f229ef9335f8c3.js","/litellm-asset-prefix/_next/static/chunks/36d1c027ba991a4f.js","/litellm-asset-prefix/_next/static/chunks/786e88f4abdd5c58.js","/litellm-asset-prefix/_next/static/chunks/43c3db1352241a8b.js","/litellm-asset-prefix/_next/static/chunks/31275eb5c6f6332f.js","/litellm-asset-prefix/_next/static/chunks/0ac09b227f50edb4.js","/litellm-asset-prefix/_next/static/chunks/4c848b12d4ecda3d.js","/litellm-asset-prefix/_next/static/chunks/91c828abd7c0aff5.js","/litellm-asset-prefix/_next/static/chunks/08c348f8e09a5cb0.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/b323e0ef008e6348.js","/litellm-asset-prefix/_next/static/chunks/4ac3235460262f36.js","/litellm-asset-prefix/_next/static/chunks/51494a4a4b6fc437.js","/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","/litellm-asset-prefix/_next/static/chunks/9f1486622270556b.js"],"default"] -6:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"] +2:I[347257,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"ClientPageRoot"] +3:I[952683,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js","/litellm-asset-prefix/_next/static/chunks/0auv9g47yrkai.js","/litellm-asset-prefix/_next/static/chunks/0gd8l6682ujrz.js","/litellm-asset-prefix/_next/static/chunks/18bsuhu-1s0cz.js","/litellm-asset-prefix/_next/static/chunks/0.75_v4.brf7u.js","/litellm-asset-prefix/_next/static/chunks/0fjtk3ms7ltm7.js","/litellm-asset-prefix/_next/static/chunks/0a5xyteya~y3m.js","/litellm-asset-prefix/_next/static/chunks/0m9lbtn5j.yqa.js","/litellm-asset-prefix/_next/static/chunks/0t28fxbaqkp~..js","/litellm-asset-prefix/_next/static/chunks/14ykv2.fgxav6.js","/litellm-asset-prefix/_next/static/chunks/10k3_0czay_~6.js","/litellm-asset-prefix/_next/static/chunks/0bk6q7~o9hmrf.js","/litellm-asset-prefix/_next/static/chunks/0zdmk-9be.l80.js","/litellm-asset-prefix/_next/static/chunks/0us~8fr5zd8k6.js","/litellm-asset-prefix/_next/static/chunks/01g5ls2__cy9q.js","/litellm-asset-prefix/_next/static/chunks/04t5-ov_30e4v.js","/litellm-asset-prefix/_next/static/chunks/0~.wcs-1fo68s.js","/litellm-asset-prefix/_next/static/chunks/10h6dv3e~ar3h.js","/litellm-asset-prefix/_next/static/chunks/13yop0jp5v3-t.js","/litellm-asset-prefix/_next/static/chunks/0q5_icyoybikt.js","/litellm-asset-prefix/_next/static/chunks/0m6zdocif1gl4.js","/litellm-asset-prefix/_next/static/chunks/1020gaq5v7m~7.js","/litellm-asset-prefix/_next/static/chunks/02_ols0zt.cn1.js","/litellm-asset-prefix/_next/static/chunks/0xc35daysu~r-.js","/litellm-asset-prefix/_next/static/chunks/12oh4mr992lpv.js","/litellm-asset-prefix/_next/static/chunks/08ruw9sxszdlf.js","/litellm-asset-prefix/_next/static/chunks/14ut9b-iwzfct.js","/litellm-asset-prefix/_next/static/chunks/0t~.s-~ou-l3k.js","/litellm-asset-prefix/_next/static/chunks/0iyx_uw0285xw.js","/litellm-asset-prefix/_next/static/chunks/0ak1e2yaoi6cs.js"],"default"] +6:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"OutletBoundary"] 7:"$Sreact.suspense" -:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] -0:{"buildId":"TrcGiQpTupSbDYFFfkFHY","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/52c4ecc57f72065e.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/4bb663ff806dc32f.js","async":true}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/ee8f89c672745c59.js","async":true}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/2954392b7a60a6a1.js","async":true}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/04711b0f8ffa7bbd.js","async":true}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/9710770c6333a72f.js","async":true}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","async":true}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/d734cb3d5659b0da.js","async":true}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/09c1f51da7e82268.js","async":true}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/d028f8c28935d281.js","async":true}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/61aa637257592262.js","async":true}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/bf962cd5264be987.js","async":true}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/37f229ef9335f8c3.js","async":true}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/36d1c027ba991a4f.js","async":true}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/786e88f4abdd5c58.js","async":true}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/43c3db1352241a8b.js","async":true}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/31275eb5c6f6332f.js","async":true}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/0ac09b227f50edb4.js","async":true}],["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/4c848b12d4ecda3d.js","async":true}],["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/91c828abd7c0aff5.js","async":true}],["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/08c348f8e09a5cb0.js","async":true}],["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true}],["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/b323e0ef008e6348.js","async":true}],["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/4ac3235460262f36.js","async":true}],["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/51494a4a4b6fc437.js","async":true}],["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","async":true}],["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/9f1486622270556b.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false} +:HL["/litellm-asset-prefix/_next/static/chunks/0jib1e4hgitwz.css","style"] +0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/0jib1e4hgitwz.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0auv9g47yrkai.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0gd8l6682ujrz.js","async":true}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/18bsuhu-1s0cz.js","async":true}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0.75_v4.brf7u.js","async":true}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/0fjtk3ms7ltm7.js","async":true}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/0a5xyteya~y3m.js","async":true}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0m9lbtn5j.yqa.js","async":true}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0t28fxbaqkp~..js","async":true}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/14ykv2.fgxav6.js","async":true}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/10k3_0czay_~6.js","async":true}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/0bk6q7~o9hmrf.js","async":true}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/0zdmk-9be.l80.js","async":true}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/0us~8fr5zd8k6.js","async":true}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/01g5ls2__cy9q.js","async":true}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/04t5-ov_30e4v.js","async":true}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/0~.wcs-1fo68s.js","async":true}],["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/10h6dv3e~ar3h.js","async":true}],["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/13yop0jp5v3-t.js","async":true}],["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/0q5_icyoybikt.js","async":true}],["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/0m6zdocif1gl4.js","async":true}],["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/1020gaq5v7m~7.js","async":true}],["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/02_ols0zt.cn1.js","async":true}],["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/0xc35daysu~r-.js","async":true}],["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/12oh4mr992lpv.js","async":true}],["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/08ruw9sxszdlf.js","async":true}],["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/14ut9b-iwzfct.js","async":true}],["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/0t~.s-~ou-l3k.js","async":true}],["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/0iyx_uw0285xw.js","async":true}],["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/0ak1e2yaoi6cs.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7o4v-MnrxWxNwFJm2AelY"} 4:{} 5:"$0:rsc:props:children:0:props:serverProvidedParams:params" 8:null diff --git a/litellm/proxy/_experimental/out/__next._full.txt b/litellm/proxy/_experimental/out/__next._full.txt index 0c119086b9e..6cd7240b27c 100644 --- a/litellm/proxy/_experimental/out/__next._full.txt +++ b/litellm/proxy/_experimental/out/__next._full.txt @@ -1,39 +1,41 @@ 1:"$Sreact.fragment" -2:I[867271,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"default"] -3:I[71195,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"default"] -4:I[557951,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"AuthProvider"] -5:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"] -6:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"] -7:I[347257,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ClientPageRoot"] -8:I[952683,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js","/litellm-asset-prefix/_next/static/chunks/52c4ecc57f72065e.js","/litellm-asset-prefix/_next/static/chunks/4bb663ff806dc32f.js","/litellm-asset-prefix/_next/static/chunks/ee8f89c672745c59.js","/litellm-asset-prefix/_next/static/chunks/2954392b7a60a6a1.js","/litellm-asset-prefix/_next/static/chunks/04711b0f8ffa7bbd.js","/litellm-asset-prefix/_next/static/chunks/9710770c6333a72f.js","/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","/litellm-asset-prefix/_next/static/chunks/d734cb3d5659b0da.js","/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","/litellm-asset-prefix/_next/static/chunks/09c1f51da7e82268.js","/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","/litellm-asset-prefix/_next/static/chunks/d028f8c28935d281.js","/litellm-asset-prefix/_next/static/chunks/61aa637257592262.js","/litellm-asset-prefix/_next/static/chunks/bf962cd5264be987.js","/litellm-asset-prefix/_next/static/chunks/37f229ef9335f8c3.js","/litellm-asset-prefix/_next/static/chunks/36d1c027ba991a4f.js","/litellm-asset-prefix/_next/static/chunks/786e88f4abdd5c58.js","/litellm-asset-prefix/_next/static/chunks/43c3db1352241a8b.js","/litellm-asset-prefix/_next/static/chunks/31275eb5c6f6332f.js","/litellm-asset-prefix/_next/static/chunks/0ac09b227f50edb4.js","/litellm-asset-prefix/_next/static/chunks/4c848b12d4ecda3d.js","/litellm-asset-prefix/_next/static/chunks/91c828abd7c0aff5.js","/litellm-asset-prefix/_next/static/chunks/08c348f8e09a5cb0.js","/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","/litellm-asset-prefix/_next/static/chunks/b323e0ef008e6348.js","/litellm-asset-prefix/_next/static/chunks/4ac3235460262f36.js","/litellm-asset-prefix/_next/static/chunks/51494a4a4b6fc437.js","/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","/litellm-asset-prefix/_next/static/chunks/9f1486622270556b.js"],"default"] -1a:I[168027,[],"default"] -:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] -:HL["/litellm-asset-prefix/_next/static/chunks/1bcca3c38c9deb02.css","style"] -:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] -0:{"P":null,"b":"TrcGiQpTupSbDYFFfkFHY","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/1bcca3c38c9deb02.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/52c4ecc57f72065e.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/4bb663ff806dc32f.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/ee8f89c672745c59.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/2954392b7a60a6a1.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/04711b0f8ffa7bbd.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/9710770c6333a72f.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/88c74f8b4b20d25a.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/d734cb3d5659b0da.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/a1ef280b7ad5ae6a.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/09c1f51da7e82268.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/542a1a209eb732c6.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/d028f8c28935d281.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/61aa637257592262.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/bf962cd5264be987.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/37f229ef9335f8c3.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/36d1c027ba991a4f.js","async":true,"nonce":"$undefined"}],"$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17"],"$L18"]}],{},null,false,false]},null,false,false],"$L19",false]],"m":"$undefined","G":["$1a",[]],"S":true} -1b:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"OutletBoundary"] -1c:"$Sreact.suspense" -1e:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"] -20:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"] -b:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/786e88f4abdd5c58.js","async":true,"nonce":"$undefined"}] -c:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/43c3db1352241a8b.js","async":true,"nonce":"$undefined"}] -d:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/31275eb5c6f6332f.js","async":true,"nonce":"$undefined"}] -e:["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/0ac09b227f50edb4.js","async":true,"nonce":"$undefined"}] -f:["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/4c848b12d4ecda3d.js","async":true,"nonce":"$undefined"}] -10:["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/91c828abd7c0aff5.js","async":true,"nonce":"$undefined"}] -11:["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/08c348f8e09a5cb0.js","async":true,"nonce":"$undefined"}] -12:["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/7e417dd24c8becd0.js","async":true,"nonce":"$undefined"}] -13:["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/b323e0ef008e6348.js","async":true,"nonce":"$undefined"}] -14:["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/4ac3235460262f36.js","async":true,"nonce":"$undefined"}] -15:["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/51494a4a4b6fc437.js","async":true,"nonce":"$undefined"}] -16:["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/878832edb30e99a4.js","async":true,"nonce":"$undefined"}] -17:["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/9f1486622270556b.js","async":true,"nonce":"$undefined"}] -18:["$","$L1b",null,{"children":["$","$1c",null,{"name":"Next.MetadataOutlet","children":"$@1d"}]}] -19:["$","$1","h",{"children":[null,["$","$L1e",null,{"children":"$L1f"}],["$","div",null,{"hidden":true,"children":["$","$L20",null,{"children":["$","$1c",null,{"name":"Next.Metadata","children":"$L21"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}] +2:I[867271,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +3:I[71195,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +4:I[557951,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"AuthProvider"] +5:I[339756,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +6:I[837457,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +7:I[347257,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"ClientPageRoot"] +8:I[952683,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js","/litellm-asset-prefix/_next/static/chunks/0auv9g47yrkai.js","/litellm-asset-prefix/_next/static/chunks/0gd8l6682ujrz.js","/litellm-asset-prefix/_next/static/chunks/18bsuhu-1s0cz.js","/litellm-asset-prefix/_next/static/chunks/0.75_v4.brf7u.js","/litellm-asset-prefix/_next/static/chunks/0fjtk3ms7ltm7.js","/litellm-asset-prefix/_next/static/chunks/0a5xyteya~y3m.js","/litellm-asset-prefix/_next/static/chunks/0m9lbtn5j.yqa.js","/litellm-asset-prefix/_next/static/chunks/0t28fxbaqkp~..js","/litellm-asset-prefix/_next/static/chunks/14ykv2.fgxav6.js","/litellm-asset-prefix/_next/static/chunks/10k3_0czay_~6.js","/litellm-asset-prefix/_next/static/chunks/0bk6q7~o9hmrf.js","/litellm-asset-prefix/_next/static/chunks/0zdmk-9be.l80.js","/litellm-asset-prefix/_next/static/chunks/0us~8fr5zd8k6.js","/litellm-asset-prefix/_next/static/chunks/01g5ls2__cy9q.js","/litellm-asset-prefix/_next/static/chunks/04t5-ov_30e4v.js","/litellm-asset-prefix/_next/static/chunks/0~.wcs-1fo68s.js","/litellm-asset-prefix/_next/static/chunks/10h6dv3e~ar3h.js","/litellm-asset-prefix/_next/static/chunks/13yop0jp5v3-t.js","/litellm-asset-prefix/_next/static/chunks/0q5_icyoybikt.js","/litellm-asset-prefix/_next/static/chunks/0m6zdocif1gl4.js","/litellm-asset-prefix/_next/static/chunks/1020gaq5v7m~7.js","/litellm-asset-prefix/_next/static/chunks/02_ols0zt.cn1.js","/litellm-asset-prefix/_next/static/chunks/0xc35daysu~r-.js","/litellm-asset-prefix/_next/static/chunks/12oh4mr992lpv.js","/litellm-asset-prefix/_next/static/chunks/08ruw9sxszdlf.js","/litellm-asset-prefix/_next/static/chunks/14ut9b-iwzfct.js","/litellm-asset-prefix/_next/static/chunks/0t~.s-~ou-l3k.js","/litellm-asset-prefix/_next/static/chunks/0iyx_uw0285xw.js","/litellm-asset-prefix/_next/static/chunks/0ak1e2yaoi6cs.js"],"default"] +1a:I[168027,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default",1] +:HL["/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","style"] +:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2","font",{"crossOrigin":"","type":"font/woff2"}] +:HL["/litellm-asset-prefix/_next/static/chunks/0jib1e4hgitwz.css","style"] +0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/0jib1e4hgitwz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0auv9g47yrkai.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0gd8l6682ujrz.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/18bsuhu-1s0cz.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/litellm-asset-prefix/_next/static/chunks/0.75_v4.brf7u.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/litellm-asset-prefix/_next/static/chunks/0fjtk3ms7ltm7.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/litellm-asset-prefix/_next/static/chunks/0a5xyteya~y3m.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/litellm-asset-prefix/_next/static/chunks/0m9lbtn5j.yqa.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/litellm-asset-prefix/_next/static/chunks/0t28fxbaqkp~..js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/litellm-asset-prefix/_next/static/chunks/14ykv2.fgxav6.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/litellm-asset-prefix/_next/static/chunks/10k3_0czay_~6.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/litellm-asset-prefix/_next/static/chunks/0bk6q7~o9hmrf.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/litellm-asset-prefix/_next/static/chunks/0zdmk-9be.l80.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/litellm-asset-prefix/_next/static/chunks/0us~8fr5zd8k6.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/litellm-asset-prefix/_next/static/chunks/01g5ls2__cy9q.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/litellm-asset-prefix/_next/static/chunks/04t5-ov_30e4v.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/litellm-asset-prefix/_next/static/chunks/0~.wcs-1fo68s.js","async":true,"nonce":"$undefined"}],"$Lb","$Lc","$Ld","$Le","$Lf","$L10","$L11","$L12","$L13","$L14","$L15","$L16","$L17"],"$L18"]}],{},null,false,null]},null,false,null],"$L19",false]],"m":"$undefined","G":["$1a",["$L1b","$L1c"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"7o4v-MnrxWxNwFJm2AelY"} +1d:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"OutletBoundary"] +1e:"$Sreact.suspense" +20:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"ViewportBoundary"] +22:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"MetadataBoundary"] +b:["$","script","script-16",{"src":"/litellm-asset-prefix/_next/static/chunks/10h6dv3e~ar3h.js","async":true,"nonce":"$undefined"}] +c:["$","script","script-17",{"src":"/litellm-asset-prefix/_next/static/chunks/13yop0jp5v3-t.js","async":true,"nonce":"$undefined"}] +d:["$","script","script-18",{"src":"/litellm-asset-prefix/_next/static/chunks/0q5_icyoybikt.js","async":true,"nonce":"$undefined"}] +e:["$","script","script-19",{"src":"/litellm-asset-prefix/_next/static/chunks/0m6zdocif1gl4.js","async":true,"nonce":"$undefined"}] +f:["$","script","script-20",{"src":"/litellm-asset-prefix/_next/static/chunks/1020gaq5v7m~7.js","async":true,"nonce":"$undefined"}] +10:["$","script","script-21",{"src":"/litellm-asset-prefix/_next/static/chunks/02_ols0zt.cn1.js","async":true,"nonce":"$undefined"}] +11:["$","script","script-22",{"src":"/litellm-asset-prefix/_next/static/chunks/0xc35daysu~r-.js","async":true,"nonce":"$undefined"}] +12:["$","script","script-23",{"src":"/litellm-asset-prefix/_next/static/chunks/12oh4mr992lpv.js","async":true,"nonce":"$undefined"}] +13:["$","script","script-24",{"src":"/litellm-asset-prefix/_next/static/chunks/08ruw9sxszdlf.js","async":true,"nonce":"$undefined"}] +14:["$","script","script-25",{"src":"/litellm-asset-prefix/_next/static/chunks/14ut9b-iwzfct.js","async":true,"nonce":"$undefined"}] +15:["$","script","script-26",{"src":"/litellm-asset-prefix/_next/static/chunks/0t~.s-~ou-l3k.js","async":true,"nonce":"$undefined"}] +16:["$","script","script-27",{"src":"/litellm-asset-prefix/_next/static/chunks/0iyx_uw0285xw.js","async":true,"nonce":"$undefined"}] +17:["$","script","script-28",{"src":"/litellm-asset-prefix/_next/static/chunks/0ak1e2yaoi6cs.js","async":true,"nonce":"$undefined"}] +18:["$","$L1d",null,{"children":["$","$1e",null,{"name":"Next.MetadataOutlet","children":"$@1f"}]}] +19:["$","$1","h",{"children":[null,["$","$L20",null,{"children":"$L21"}],["$","div",null,{"hidden":true,"children":["$","$L22",null,{"children":["$","$1e",null,{"name":"Next.Metadata","children":"$L23"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}] +1b:["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}] +1c:["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}] 9:{} a:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params" -1f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -22:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"] -1d:null -21:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L22","4",{}]] +21:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +24:I[27201,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"IconMark"] +1f:null +23:[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~dgapwhi~75y.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L24","4",{}]] diff --git a/litellm/proxy/_experimental/out/__next._head.txt b/litellm/proxy/_experimental/out/__next._head.txt index ea6e5095458..a9d39c9acbd 100644 --- a/litellm/proxy/_experimental/out/__next._head.txt +++ b/litellm/proxy/_experimental/out/__next._head.txt @@ -1,6 +1,6 @@ 1:"$Sreact.fragment" -2:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"ViewportBoundary"] -3:I[897367,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"MetadataBoundary"] +2:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"ViewportBoundary"] +3:I[897367,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"MetadataBoundary"] 4:"$Sreact.suspense" -5:I[27201,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"IconMark"] -0:{"buildId":"TrcGiQpTupSbDYFFfkFHY","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.1d32c690.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L5","4",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false} +5:I[27201,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"IconMark"] +0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"LiteLLM Dashboard"}],["$","meta","1",{"name":"description","content":"LiteLLM Proxy Admin UI"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~dgapwhi~75y.ico","sizes":"48x48","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"./favicon.ico"}],["$","$L5","4",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7o4v-MnrxWxNwFJm2AelY"} diff --git a/litellm/proxy/_experimental/out/__next._index.txt b/litellm/proxy/_experimental/out/__next._index.txt index ebf6d8fec08..fd0336268b9 100644 --- a/litellm/proxy/_experimental/out/__next._index.txt +++ b/litellm/proxy/_experimental/out/__next._index.txt @@ -1,9 +1,9 @@ 1:"$Sreact.fragment" -2:I[867271,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"default"] -3:I[71195,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"default"] -4:I[557951,["/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js"],"AuthProvider"] -5:I[339756,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"] -6:I[837457,["/litellm-asset-prefix/_next/static/chunks/d96012bcfc98706a.js","/litellm-asset-prefix/_next/static/chunks/dbca964212122d58.js"],"default"] -:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] -:HL["/litellm-asset-prefix/_next/static/chunks/1bcca3c38c9deb02.css","style"] -0:{"buildId":"TrcGiQpTupSbDYFFfkFHY","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/1bcca3c38c9deb02.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/aefca6f40ea185cd.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/632b4c8e836bd956.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","template":["$","$L6",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]}]]}],"loading":null,"isPartial":false} +2:I[867271,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +3:I[71195,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +4:I[557951,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"AuthProvider"] +5:I[339756,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +6:I[837457,["/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js"],"default"] +:HL["/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","style"] +0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","precedence":"next"}],["$","script","script-0",{"src":"/litellm-asset-prefix/_next/static/chunks/0oa-jh7hxv9xq.js","async":true}],["$","script","script-1",{"src":"/litellm-asset-prefix/_next/static/chunks/0w~2~hgrug7lz.js","async":true}],["$","script","script-2",{"src":"/litellm-asset-prefix/_next/static/chunks/0pidya1qvuvx8.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"inter_5972bc34-module__OU16Qa__className","children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","template":["$","$L6",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"7o4v-MnrxWxNwFJm2AelY"} diff --git a/litellm/proxy/_experimental/out/__next._tree.txt b/litellm/proxy/_experimental/out/__next._tree.txt index 4a08f4f9e11..819c0faf8bb 100644 --- a/litellm/proxy/_experimental/out/__next._tree.txt +++ b/litellm/proxy/_experimental/out/__next._tree.txt @@ -1,5 +1,5 @@ -:HL["/litellm-asset-prefix/_next/static/chunks/4e20891f2fd03463.css","style"] -:HL["/litellm-asset-prefix/_next/static/chunks/1bcca3c38c9deb02.css","style"] -:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.3a6ba036.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/litellm-asset-prefix/_next/static/chunks/3f3fa56b5786d58c.css","style"] -0:{"buildId":"TrcGiQpTupSbDYFFfkFHY","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300} +:HL["/litellm-asset-prefix/_next/static/chunks/05qmwjqau64bz.css","style"] +:HL["/litellm-asset-prefix/_next/static/chunks/12m09n5~yfa~7.css","style"] +:HL["/litellm-asset-prefix/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2","font",{"crossOrigin":"","type":"font/woff2"}] +:HL["/litellm-asset-prefix/_next/static/chunks/0jib1e4hgitwz.css","style"] +0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"7o4v-MnrxWxNwFJm2AelY"} diff --git a/litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_buildManifest.js b/litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_buildManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_buildManifest.js rename to litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_buildManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_clientMiddlewareManifest.js b/litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_clientMiddlewareManifest.js new file mode 100644 index 00000000000..a8acaffa33a --- /dev/null +++ b/litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_clientMiddlewareManifest.js @@ -0,0 +1 @@ +self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB() \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_ssgManifest.js b/litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_ssgManifest.js similarity index 100% rename from litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_ssgManifest.js rename to litellm/proxy/_experimental/out/_next/static/7o4v-MnrxWxNwFJm2AelY/_ssgManifest.js diff --git a/litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_clientMiddlewareManifest.json b/litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_clientMiddlewareManifest.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/litellm/proxy/_experimental/out/_next/static/TrcGiQpTupSbDYFFfkFHY/_clientMiddlewareManifest.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/0-5_90boa8wzd.js b/litellm/proxy/_experimental/out/_next/static/chunks/0-5_90boa8wzd.js new file mode 100644 index 00000000000..f7896d06c9c --- /dev/null +++ b/litellm/proxy/_experimental/out/_next/static/chunks/0-5_90boa8wzd.js @@ -0,0 +1,21 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,246349,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},107233,603908,841947,37727,e=>{"use strict";var t=e.i(475254);let r=(0,t.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["default",0,r],603908),e.s(["Plus",0,r],107233);let n=(0,t.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,n],841947),e.s(["X",0,n],37727)},59935,(e,t,r)=>{var n;let i;e.e,n=function e(){var t,r="u">typeof self?self:"u">typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,a={},o=0,s={};function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=y(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,t){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0=this._config.preview,i)r.postMessage({results:a,workerId:s.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!n||!_(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):i&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),n||(t.onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e,r,i=this._config.downloadRequestHeaders;for(r in i)t.setRequestHeader(r,i[r])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),l.call(this,e);var t,r,n="u">typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=w(this._chunkLoaded,this),t.onerror=w(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return t=(e=this._config.chunkSize)?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function f(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=w(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=w(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=w(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=w(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function p(e){var t,r,n,i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,o=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,l=this,u=0,c=0,d=!1,f=!1,p=[],g={data:[],errors:[],meta:{}};function v(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function b(){if(g&&n&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!v(e)})),w()){if(g)if(Array.isArray(g.data[0])){for(var t,r=0;w()&&r(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&((e=>{if(a.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(r)?parseFloat(r):o.test(r)?new Date(r):""===r?null:r):r)(s=e.header?i>=p.length?"__parsed_extra":p[i]:s,l=e.transform?e.transform(l,s):l);"__parsed_extra"===s?(n[s]=n[s]||[],n[s].push(l)):n[s]=l}return e.header&&(i>p.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+i,c+r):ie.preview?r.abort():(g.data=g.data[0],i(g,l))))}),this.parse=function(i,a,o){var l=e.quoteChar||'"',l=(e.newline||(e.newline=this.guessLineEndings(i,l)),n=!1,e.delimiter?_(e.delimiter)&&(e.delimiter=e.delimiter(i),g.meta.delimiter=e.delimiter):((l=((t,r,n,i,a)=>{var o,l,u,c;a=a||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var d=0;d=r.length/2?"\r\n":"\r"}}function h(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){var t=(e=e||{}).delimiter,r=e.newline,n=e.comments,i=e.step,a=e.preview,o=e.fastMode,l=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,d=c;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof t||-1=a)return P(!0);break}$.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:f}),F++}}else if(n&&0===x.length&&s.substring(f,f+w)===n){if(-1===I)return P();f=I+y,I=s.indexOf(r,f),R=s.indexOf(t,f)}else if(-1!==R&&(R=a)return P(!0)}return T();function L(e){E.push(e),C=f}function A(e){return -1!==e&&(e=s.substring(F+1,e))&&""===e.trim()?e.length:0}function T(e){return g||(void 0===e&&(e=s.substring(f)),x.push(e),f=v,L(x),k&&z()),P()}function M(e){f=e,L(x),x=[],I=s.indexOf(r,f)}function P(n){if(e.header&&!m&&E.length&&!u){var i=E[0],a=Object.create(null),o=new Set(i);let t=!1;for(let r=0;r{if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+o),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),RegExp(h(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,u);if("object"==typeof e[0])return p(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),p(e.fields||[],e.data||[],u);throw Error("Unable to serialize unrecognized input");function p(e,t,r){var o="",s=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0{for(var r=0;r{"use strict";e.i(247167);var t,r=e.i(271645),n=e.i(8211),i=e.i(174080),a=e.i(343794),o=e.i(931067),s=e.i(278409),l=e.i(233848),u=e.i(971151),c=e.i(868917),d=e.i(674813),f=e.i(211577),p=e.i(209428),h=e.i(703923),m=e.i(410160),g=e.i(31575),v=e.i(33968),b=e.i(244009),y=e.i(883110);let w=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),o=t.toLowerCase(),s=[o];return(".jpg"===o||".jpeg"===o)&&(s=[".jpg",".jpeg"]),s.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):i===t||!!/^\w+$/.test(t)&&((0,y.default)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function _(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function k(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var n=e.data[t];Array.isArray(n)?n.forEach(function(e){r.append("".concat(t,"[]"),e)}):r.append(t,n)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),_(t))}return e.onSuccess(_(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(e){null!==n[e]&&t.setRequestHeader(e,n[e])}),t.send(r),{abort:function(){t.abort()}}}var E=(t=(0,v.default)((0,g.default)().mark(function e(t,r){var i,a,o,s,l,u;return(0,g.default)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=function(){return(s=(0,v.default)((0,g.default)().mark(function e(t){return(0,g.default)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(n){r(n)?(t.fullPath&&!n.webkitRelativePath&&(Object.defineProperties(n,{webkitRelativePath:{writable:!0}}),n.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(n,{webkitRelativePath:{writable:!1}})),e(n)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},o=function(){return(o=(0,v.default)((0,g.default)().mark(function e(t){var r,n,i,a,o;return(0,g.default)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.createReader(),n=[];case 2:return e.next=5,new Promise(function(e){r.readEntries(e,function(){return e([])})});case 5:if(a=(i=e.sent).length){e.next=9;break}return e.abrupt("break",12);case 9:for(o=0;o0||u.some(function(e){return"file"===e.kind}))&&(null==i||i()),!l){t.next=11;break}return t.next=7,E(Array.prototype.slice.call(u),function(t){return w(t,e.props.accept)});case 7:c=t.sent,e.uploadFiles(c),t.next=14;break;case 11:d=(0,n.default)(c).filter(function(e){return w(e,s)}),!1===o&&(d=c.slice(0,1)),e.uploadFiles(d);case 14:case"end":return t.stop()}},t)})),function(e,t){return r.apply(this,arguments)})),(0,f.default)((0,u.default)(e),"onFilePaste",(a=(0,v.default)((0,g.default)().mark(function t(r){var n;return(0,g.default)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==r.type){t.next=6;break}return n=r.clipboardData,t.abrupt("return",e.onDataTransferFiles(n,function(){r.preventDefault()}));case 6:case"end":return t.stop()}},t)})),function(e){return a.apply(this,arguments)})),(0,f.default)((0,u.default)(e),"onFileDragOver",function(e){e.preventDefault()}),(0,f.default)((0,u.default)(e),"onFileDrop",(o=(0,v.default)((0,g.default)().mark(function t(r){var n;return(0,g.default)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),"drop"!==r.type){t.next=4;break}return n=r.dataTransfer,t.abrupt("return",e.onDataTransferFiles(n));case 4:case"end":return t.stop()}},t)})),function(e){return o.apply(this,arguments)})),(0,f.default)((0,u.default)(e),"uploadFiles",function(t){var r=(0,n.default)(t);Promise.all(r.map(function(t){return t.uid=C(),e.processFile(t,r)})).then(function(t){var r=e.props.onBatchStart;null==r||r(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),(0,f.default)((0,u.default)(e),"processFile",(l=(0,v.default)((0,g.default)().mark(function t(r,n){var i,a,o,s,l,u,c,d;return(0,g.default)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.props.beforeUpload,a=r,!i){t.next=14;break}return t.prev=3,t.next=6,i(r,n);case 6:a=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),a=!1;case 12:if(!1!==a){t.next=14;break}return t.abrupt("return",{origin:r,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(o=e.props.action)){t.next=21;break}return t.next=18,o(r);case 18:s=t.sent,t.next=22;break;case 21:s=o;case 22:if("function"!=typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(r);case 26:u=t.sent,t.next=30;break;case 29:u=l;case 30:return(d=(c=("object"===(0,m.default)(a)||"string"==typeof a)&&a?a:r)instanceof File?c:new File([c],r.name,{type:r.type})).uid=r.uid,t.abrupt("return",{origin:r,data:u,parsedFile:d,action:s});case 35:case"end":return t.stop()}},t,null,[[3,9]])})),function(e,t){return l.apply(this,arguments)})),(0,f.default)((0,u.default)(e),"saveFileInput",function(t){e.fileInput=t}),e}return(0,l.default)(i,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,r=e.data,n=e.origin,i=e.action,a=e.parsedFile;if(this._isMounted){var o=this.props,s=o.onStart,l=o.customRequest,u=o.name,c=o.headers,d=o.withCredentials,f=o.method,p=n.uid,h=l||k;s(n),this.reqs[p]=h({action:i,filename:u,data:r,file:a,headers:c,withCredentials:d,method:f||"post",onProgress:function(e){var r=t.props.onProgress;null==r||r(e,a)},onSuccess:function(e,r){var n=t.props.onSuccess;null==n||n(e,a,r),delete t.reqs[p]},onError:function(e,r){var n=t.props.onError;null==n||n(e,r,a),delete t.reqs[p]}},{defaultRequest:k})}}},{key:"reset",value:function(){this.setState({uid:C()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var r=e.uid?e.uid:e;t[r]&&t[r].abort&&t[r].abort(),delete t[r]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,i=e.className,s=e.classNames,l=e.disabled,u=e.id,c=e.name,d=e.style,m=e.styles,g=e.multiple,v=e.accept,y=e.capture,w=e.children,_=e.directory,k=e.folder,E=e.openFileDialogOnClick,$=e.onMouseEnter,x=e.onMouseLeave,C=e.hasControlInside,S=(0,h.default)(e,O),R=(0,a.default)((0,f.default)((0,f.default)((0,f.default)({},n,!0),"".concat(n,"-disabled"),l),i,i)),I=l?{}:{onClick:E?this.onClick:function(){},onKeyDown:E?this.onKeyDown:function(){},onMouseEnter:$,onMouseLeave:x,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:C?void 0:"0"};return r.default.createElement(t,(0,o.default)({},I,{className:R,role:C?void 0:"button",style:d}),r.default.createElement("input",(0,o.default)({},(0,b.default)(S,{aria:!0,data:!0}),{id:u,name:c,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,p.default)({display:"none"},(void 0===m?{}:m).input),className:(void 0===s?{}:s).input,accept:v},_||k?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},{multiple:g,onChange:this.onChange},null!=y?{capture:y}:{})),w)}}]),i}(r.Component);function R(){}var I=function(e){(0,c.default)(n,e);var t=(0,d.default)(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,i=Array(r),a=0;a{let{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:i,calc:a}=e,o=(0,z.mergeToken)(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:i});return[(e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,T.resetComponent)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}})(o),(e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,N.unit)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,N.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,N.unit)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}})(o),(e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + ${o}${o}-picture, + ${o}${o}-picture-card, + ${o}${o}-picture-circle + `]:{[s]:{position:"relative",height:a(n).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,N.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},T.textEllipsis),{width:n,height:n,lineHeight:(0,N.unit)(a(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${(0,N.unit)(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${H.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${H.blue.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}})(o),(e=>{let{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,T.clearFix)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,N.unit)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,N.unit)(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,N.unit)(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${r}-eye, + ${r}-download, + ${r}-delete + `]:{zIndex:10,width:n,margin:`0 ${(0,N.unit)(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,N.unit)(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,N.unit)(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}})(o),(e=>{let{componentCls:t,iconCls:r,fontSize:n,lineHeight:i,calc:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,T.clearFix)()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:a(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},T.textEllipsis),{padding:`0 ${(0,N.unit)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${l}:focus-visible, + &.picture ${l} + `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}})(o),(e=>{let{componentCls:t}=e,r=new U.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new U.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:r},[`${i}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:(0,q.initFadeMotion)(e)},r,n]})(o),(e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}})(o),(0,M.genCollapseMotion)(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG})),W={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var X=e.i(9583),K=r.forwardRef(function(e,t){return r.createElement(X.default,(0,o.default)({},e,{ref:t,icon:W}))}),V=e.i(739295);let G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var J=r.forwardRef(function(e,t){return r.createElement(X.default,(0,o.default)({},e,{ref:t,icon:G}))});e.s(["default",0,J],955719);let Q={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var Z=r.forwardRef(function(e,t){return r.createElement(X.default,(0,o.default)({},e,{ref:t,icon:Q}))}),Y=e.i(361275),ee=e.i(629587),et=e.i(529681),er=e.i(149809),en=e.i(613541),ei=e.i(763731),ea=e.i(920228);function eo(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function es(e,t){let r=(0,n.default)(t),i=r.findIndex(({uid:t})=>t===e.uid);return -1===i?r.push(e):r[i]=e,r}function el(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let eu=e=>0===e.indexOf("image/"),ec=e=>{if(e.type&&!e.thumbUrl)return eu(e.type);let t=e.thumbUrl||e.url||"",r=((e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]})(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function ed(e){return new Promise(t=>{if(!e.type||!eu(e.type))return void t("");let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let n=r.getContext("2d"),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=200,s=200,l=0,u=0;e>a?u=-((s=200/e*a)-o)/2:l=-((o=200/a*e)-s)/2,n.drawImage(i,l,u,o,s);let c=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(c)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){let r=new FileReader;r.onload=()=>{r.result&&t(r.result)},r.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var ef=e.i(597440);let ep={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var eh=r.forwardRef(function(e,t){return r.createElement(X.default,(0,o.default)({},e,{ref:t,icon:ep}))});e.s(["default",0,eh],184163);var em=e.i(984125),eg=e.i(309821),ev=e.i(491816);let eb=r.forwardRef(({prefixCls:e,className:t,style:n,locale:i,listType:o,file:s,items:l,progress:u,iconRender:c,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:h,showRemoveIcon:m,showDownloadIcon:g,previewIcon:v,removeIcon:b,downloadIcon:y,extra:w,onPreview:_,onDownload:k,onClose:E},$)=>{var x,C;let{status:O}=s,[S,R]=r.useState(O);r.useEffect(()=>{"removed"!==O&&R(O)},[O]);let[I,D]=r.useState(!1);r.useEffect(()=>{let e=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(e)}},[]);let j=c(s),L=r.createElement("div",{className:`${e}-icon`},j);if("picture"===o||"picture-card"===o||"picture-circle"===o)if("uploading"!==S&&(s.thumbUrl||s.url)){let t=(null==p?void 0:p(s))?r.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):j,n=(0,a.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});L=r.createElement("a",{className:n,onClick:e=>_(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}else{let t=(0,a.default)(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==S});L=r.createElement("div",{className:t},j)}let A=(0,a.default)(`${e}-list-item`,`${e}-list-item-${S}`),T="string"==typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,M=("function"==typeof m?m(s):m)?d(("function"==typeof b?b(s):b)||r.createElement(ef.default,null),()=>E(s),e,i.removeFile,!0):null,P=("function"==typeof g?g(s):g)&&"done"===S?d(("function"==typeof y?y(s):y)||r.createElement(eh,null),()=>k(s),e,i.downloadFile):null,z="picture-card"!==o&&"picture-circle"!==o&&r.createElement("span",{key:"download-delete",className:(0,a.default)(`${e}-list-item-actions`,{picture:"picture"===o})},P,M),N="function"==typeof w?w(s):w,U=N&&r.createElement("span",{className:`${e}-list-item-extra`},N),q=(0,a.default)(`${e}-list-item-name`),H=s.url?r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:s.name},T,{href:s.url,onClick:e=>_(s,e)}),s.name,U):r.createElement("span",{key:"view",className:q,onClick:e=>_(s,e),title:s.name},s.name,U),B=("function"==typeof h?h(s):h)&&(s.url||s.thumbUrl)?r.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>_(s,e),title:i.previewFile},"function"==typeof v?v(s):v||r.createElement(em.default,null)):null,W=("picture-card"===o||"picture-circle"===o)&&"uploading"!==S&&r.createElement("span",{className:`${e}-list-item-actions`},B,"done"===S&&P,M),{getPrefixCls:X}=r.useContext(F.ConfigContext),K=X(),V=r.createElement("div",{className:A},L,H,z,W,I&&r.createElement(Y.default,{motionName:`${K}-fade`,visible:"uploading"===S,motionDeadline:2e3},({className:t})=>{let n="percent"in s?r.createElement(eg.default,Object.assign({type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]},u)):null;return r.createElement("div",{className:(0,a.default)(`${e}-list-item-progress`,t)},n)})),G=s.response&&"string"==typeof s.response?s.response:(null==(x=s.error)?void 0:x.statusText)||(null==(C=s.error)?void 0:C.message)||i.uploadError,J="error"===S?r.createElement(ev.default,{title:G,getPopupContainer:e=>e.parentNode},V):V;return r.createElement("div",{className:(0,a.default)(`${e}-list-item-container`,t),style:n,ref:$},f?f(J,s,l,{download:k.bind(null,s),preview:_.bind(null,s),remove:E.bind(null,s)}):J)}),ey=r.forwardRef((e,t)=>{let{listType:i="text",previewFile:o=ed,onPreview:s,onDownload:l,onRemove:u,locale:c,iconRender:d,isImageUrl:f=ec,prefixCls:p,items:h=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:y,downloadIcon:w,extra:_,progress:k={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:$=!0,itemRender:x,disabled:C}=e,[,O]=(0,er.useForceUpdate)(),[S,R]=r.useState(!1),I=["picture-card","picture-circle"].includes(i);r.useEffect(()=>{i.startsWith("picture")&&(h||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==o||o(e.originFileObj).then(t=>{e.thumbUrl=t||"",O()}))})},[i,h,o]),r.useEffect(()=>{R(!0)},[]);let D=(e,t)=>{if(s)return null==t||t.preventDefault(),s(e)},j=e=>{"function"==typeof l?l(e):e.url&&window.open(e.url)},L=e=>{null==u||u(e)},A=e=>{if(d)return d(e,i);let t="uploading"===e.status;if(i.startsWith("picture")){let n="picture"===i?r.createElement(V.default,null):c.uploading,a=(null==f?void 0:f(e))?r.createElement(Z,null):r.createElement(K,null);return t?n:a}return t?r.createElement(V.default,null):r.createElement(J,null)},T=(e,t,n,i,a)=>{let o={type:"text",size:"small",title:i,onClick:n=>{var i,a;t(),r.isValidElement(e)&&(null==(a=(i=e.props).onClick)||a.call(i,n))},className:`${n}-list-item-action`,disabled:!!a&&C};return r.isValidElement(e)?r.createElement(ea.default,Object.assign({},o,{icon:(0,ei.cloneElement)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):r.createElement(ea.default,Object.assign({},o),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:j}));let{getPrefixCls:M}=r.useContext(F.ConfigContext),P=M("upload",p),z=M(),N=(0,a.default)(`${P}-list`,`${P}-list-${i}`),U=r.useMemo(()=>(0,et.default)((0,en.default)(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),q=Object.assign(Object.assign({},I?{}:U),{motionDeadline:2e3,motionName:`${P}-${I?"animate-inline":"animate"}`,keys:(0,n.default)(h.map(e=>({key:e.uid,file:e}))),motionAppear:S});return r.createElement("div",{className:N},r.createElement(ee.CSSMotionList,Object.assign({},q,{component:!1}),({key:e,file:t,className:n,style:a})=>r.createElement(eb,{key:e,locale:c,prefixCls:P,className:n,style:a,file:t,items:h,progress:k,listType:i,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:w,extra:_,iconRender:A,actionIconRender:T,itemRender:x,onPreview:D,onDownload:j,onClose:L})),E&&r.createElement(Y.default,Object.assign({},q,{visible:$,forceRender:!0}),({className:e,style:t})=>(0,ei.cloneElement)(E,r=>({className:(0,a.default)(r.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),r.style)}))))}),ew=`__LIST_IGNORE_${Date.now()}__`,e_=r.forwardRef((e,t)=>{let o=(0,F.useComponentConfig)("upload"),{fileList:s,defaultFileList:l,onRemove:u,showUploadList:c=!0,listType:d="text",onPreview:f,onDownload:p,onChange:h,onDrop:m,previewFile:g,disabled:v,locale:b,iconRender:y,isImageUrl:w,progress:_,prefixCls:k,className:E,type:$="select",children:x,style:C,itemRender:O,maxCount:S,data:R={},multiple:T=!1,hasControlInside:M=!0,action:P="",accept:z="",supportServerRender:N=!0,rootClassName:U}=e,q=r.useContext(j.default),H=null!=v?v:q,W=e.customRequest||o.customRequest,[X,K]=(0,D.default)(l||[],{value:s,postState:e=>null!=e?e:[]}),[V,G]=r.useState("drop"),J=r.useRef(null),Q=r.useRef(null);r.useMemo(()=>{let e=Date.now();(s||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[s]);let Z=(e,t,r)=>{let a=(0,n.default)(t),o=!1;1===S?a=a.slice(-1):S&&(o=a.length>S,a=a.slice(0,S)),(0,i.flushSync)(()=>{K(a)});let s={file:e,fileList:a};r&&(s.event=r),(!o||"removed"===e.status||a.some(t=>t.uid===e.uid))&&(0,i.flushSync)(()=>{null==h||h(s)})},Y=e=>{let t=e.filter(e=>!e.file[ew]);if(!t.length)return;let r=t.map(e=>eo(e.file)),i=(0,n.default)(X);r.forEach(e=>{i=es(e,i)}),r.forEach((e,r)=>{let n=e;if(t[r].parsedFile)e.status="uploading";else{let t,{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,n=t}Z(n,i)})},ee=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!el(t,X))return;let n=eo(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;let i=es(n,X);Z(n,i)},et=(e,t)=>{if(!el(t,X))return;let r=eo(t);r.status="uploading",r.percent=e.percent;let n=es(r,X);Z(r,n,e)},er=(e,t,r)=>{if(!el(r,X))return;let n=eo(r);n.error=e,n.response=t,n.status="error";let i=es(n,X);Z(n,i)},en=e=>{let t;Promise.resolve("function"==typeof u?u(e):u).then(r=>{var n;let i,a;if(!1===r)return;let o=(i=void 0!==e.uid?"uid":"name",(a=X.filter(t=>t[i]!==e[i])).length===X.length?null:a);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==X||X.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null==(n=J.current)||n.abort(t),Z(t,o))})},ei=e=>{G(e.type),"drop"===e.type&&(null==m||m(e))};r.useImperativeHandle(t,()=>({onBatchStart:Y,onSuccess:ee,onProgress:et,onError:er,fileList:X,upload:J.current,nativeElement:Q.current}));let{getPrefixCls:ea,direction:eu,upload:ec}=r.useContext(F.ConfigContext),ed=ea("upload",k),ef=Object.assign(Object.assign({onBatchStart:Y,onError:er,onProgress:et,onSuccess:ee},e),{customRequest:W,data:R,multiple:T,action:P,accept:z,supportServerRender:N,prefixCls:ed,disabled:H,beforeUpload:(t,r)=>{var n,i,a,o;return n=void 0,i=void 0,a=void 0,o=function*(){let{beforeUpload:n,transformFile:i}=e,a=t;if(n){let e=yield n(t,r);if(!1===e)return!1;if(delete t[ew],e===ew)return Object.defineProperty(t,ew,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return i&&(a=yield i(a)),a},new(a||(a=Promise))(function(e,t){function r(e){try{l(o.next(e))}catch(e){t(e)}}function s(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(r,s)}l((o=o.apply(n,i||[])).next())})},onChange:void 0,hasControlInside:M});delete ef.className,delete ef.style,(!x||H)&&delete ef.id;let ep=`${ed}-wrapper`,[eh,em,eg]=B(ed,ep),[ev]=(0,L.useLocale)("Upload",A.default.Upload),{showRemoveIcon:eb,showPreviewIcon:e_,showDownloadIcon:ek,removeIcon:eE,previewIcon:e$,downloadIcon:ex,extra:eC}="boolean"==typeof c?{}:c,eO=void 0===eb?!H:eb,eS=(e,t)=>c?r.createElement(ey,{prefixCls:ed,listType:d,items:X,previewFile:g,onPreview:f,onDownload:p,onRemove:en,showRemoveIcon:eO,showPreviewIcon:e_,showDownloadIcon:ek,removeIcon:eE,previewIcon:e$,downloadIcon:ex,iconRender:y,extra:eC,locale:Object.assign(Object.assign({},ev),b),isImageUrl:w,progress:_,appendAction:e,appendActionVisible:t,itemRender:O,disabled:H}):e,eR=(0,a.default)(ep,E,U,em,eg,null==ec?void 0:ec.className,{[`${ed}-rtl`]:"rtl"===eu,[`${ed}-picture-card-wrapper`]:"picture-card"===d,[`${ed}-picture-circle-wrapper`]:"picture-circle"===d}),eI=Object.assign(Object.assign({},null==ec?void 0:ec.style),C);if("drag"===$){let e=(0,a.default)(em,ed,`${ed}-drag`,{[`${ed}-drag-uploading`]:X.some(e=>"uploading"===e.status),[`${ed}-drag-hover`]:"dragover"===V,[`${ed}-disabled`]:H,[`${ed}-rtl`]:"rtl"===eu});return eh(r.createElement("span",{className:eR,ref:Q},r.createElement("div",{className:e,style:eI,onDrop:ei,onDragOver:ei,onDragLeave:ei},r.createElement(I,Object.assign({},ef,{ref:J,className:`${ed}-btn`}),r.createElement("div",{className:`${ed}-drag-container`},x))),eS()))}let eD=(0,a.default)(ed,`${ed}-select`,{[`${ed}-disabled`]:H,[`${ed}-hidden`]:!x}),eF=r.createElement("div",{className:eD,style:eI},r.createElement(I,Object.assign({},ef,{ref:J})));return eh("picture-card"===d||"picture-circle"===d?r.createElement("span",{className:eR,ref:Q},eS(eF,!!x)):r.createElement("span",{className:eR,ref:Q},eF,eS()))});var ek=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let eE=r.forwardRef((e,t)=>{let{style:n,height:i,hasControlInside:a=!1,children:o}=e,s=ek(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:i});return r.createElement(e_,Object.assign({ref:t,hasControlInside:a},s,{style:l,type:"drag"}),o)});e_.Dragger=eE,e_.LIST_IGNORE=ew,e.s(["Upload",0,e_],515831)},916940,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(199133),i=e.i(764205);e.s(["default",0,({onChange:e,value:a,className:o,accessToken:s,placeholder:l="Select vector stores",disabled:u=!1})=>{let[c,d]=(0,r.useState)([]),[f,p]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{(async()=>{if(s){p(!0);try{let e=await (0,i.vectorStoreListCall)(s);e.data&&d(e.data)}catch(e){console.error("Error fetching vector stores:",e)}finally{p(!1)}}})()},[s]),(0,t.jsx)("div",{children:(0,t.jsx)(n.Select,{mode:"multiple",placeholder:l,onChange:e,value:a,loading:f,className:o,allowClear:!0,options:c.map(e=>({label:`${e.vector_store_name||e.vector_store_id} (${e.vector_store_id})`,value:e.vector_store_id,title:e.vector_store_description||e.vector_store_id})),optionFilterProp:"label",showSearch:!0,style:{width:"100%"},disabled:u})})}])},270377,e=>{"use strict";e.i(247167);var t=e.i(931067),r=e.i(271645);let n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var i=e.i(9583),a=r.forwardRef(function(e,a){return r.createElement(i.default,(0,t.default)({},e,{ref:a,icon:n}))});e.s(["ExclamationCircleOutlined",0,a],270377)},737434,e=>{"use strict";var t=e.i(184163);e.s(["DownloadOutlined",()=>t.default])}]); \ No newline at end of file diff --git a/litellm/proxy/_experimental/out/_next/static/chunks/0-fg123e80k5b.js b/litellm/proxy/_experimental/out/_next/static/chunks/0-fg123e80k5b.js new file mode 100644 index 00000000000..6127a290eaf --- /dev/null +++ b/litellm/proxy/_experimental/out/_next/static/chunks/0-fg123e80k5b.js @@ -0,0 +1,100 @@ +(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,950724,(e,t,n)=>{t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},100236,(e,t,n)=>{t.exports=e.g&&e.g.Object===Object&&e.g},139088,(e,t,n)=>{var r=e.r(100236),l="object"==typeof self&&self&&self.Object===Object&&self;t.exports=r||l||Function("return this")()},631926,(e,t,n)=>{var r=e.r(139088);t.exports=function(){return r.Date.now()}},748891,(e,t,n)=>{var r=/\s/;t.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},830364,(e,t,n)=>{var r=e.r(748891),l=/^\s+/;t.exports=function(e){return e?e.slice(0,r(e)+1).replace(l,""):e}},630353,(e,t,n)=>{t.exports=e.r(139088).Symbol},243436,(e,t,n)=>{var r=e.r(630353),l=Object.prototype,a=l.hasOwnProperty,o=l.toString,i=r?r.toStringTag:void 0;t.exports=function(e){var t=a.call(e,i),n=e[i];try{e[i]=void 0;var r=!0}catch(e){}var l=o.call(e);return r&&(t?e[i]=n:delete e[i]),l}},223243,(e,t,n)=>{var r=Object.prototype.toString;t.exports=function(e){return r.call(e)}},377684,(e,t,n)=>{var r=e.r(630353),l=e.r(243436),a=e.r(223243),o=r?r.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?l(e):a(e)}},877289,(e,t,n)=>{t.exports=function(e){return null!=e&&"object"==typeof e}},361884,(e,t,n)=>{var r=e.r(377684),l=e.r(877289);t.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==r(e)}},773759,(e,t,n)=>{var r=e.r(830364),l=e.r(950724),a=e.r(361884),o=0/0,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,d=/^0o[0-7]+$/i,c=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(l(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=l(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||d.test(e)?c(e.slice(2),n?2:8):i.test(e)?o:+e}},374009,(e,t,n)=>{var r=e.r(950724),l=e.r(631926),a=e.r(773759),o=Math.max,i=Math.min;t.exports=function(e,t,n){var s,d,c,u,f,m,p=0,g=!1,h=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=s,r=d;return s=d=void 0,p=t,u=e.apply(r,n)}function b(e){var n=e-m,r=e-p;return void 0===m||n>=t||n<0||h&&r>=c}function y(){var e,n,r,a=l();if(b(a))return w(a);f=setTimeout(y,(e=a-m,n=a-p,r=t-e,h?i(r,c-n):r))}function w(e){return(f=void 0,x&&s)?v(e):(s=d=void 0,u)}function j(){var e,n=l(),r=b(n);if(s=arguments,d=this,m=n,r){if(void 0===f)return p=e=m,f=setTimeout(y,t),g?v(e):u;if(h)return clearTimeout(f),f=setTimeout(y,t),v(m)}return void 0===f&&(f=setTimeout(y,t)),u}return t=a(t)||0,r(n)&&(g=!!n.leading,c=(h="maxWait"in n)?o(a(n.maxWait)||0,t):c,x="trailing"in n?!!n.trailing:x),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,s=m=d=f=void 0},j.flush=function(){return void 0===f?u:w(l())},j}},309426,e=>{"use strict";var t=e.i(290571),n=e.i(444755),r=e.i(673706),l=e.i(271645),a=e.i(46757);let o=(0,r.makeClassName)("Col"),i=l.default.forwardRef((e,r)=>{let i,s,d,c,{numColSpan:u=1,numColSpanSm:f,numColSpanMd:m,numColSpanLg:p,children:g,className:h}=e,x=(0,t.__rest)(e,["numColSpan","numColSpanSm","numColSpanMd","numColSpanLg","children","className"]),v=(e,t)=>e&&Object.keys(t).includes(String(e))?t[e]:"";return l.default.createElement("div",Object.assign({ref:r,className:(0,n.tremorTwMerge)(o("root"),(i=v(u,a.colSpan),s=v(f,a.colSpanSm),d=v(m,a.colSpanMd),c=v(p,a.colSpanLg),(0,n.tremorTwMerge)(i,s,d,c)),h)},x),g)});i.displayName="Col",e.s(["Col",0,i],309426)},500330,e=>{"use strict";var t=e.i(727749);let n=(e,t=0,n=!1,r=!0)=>{if(null==e||!Number.isFinite(e)||0===e&&!r)return"-";let l={minimumFractionDigits:t,maximumFractionDigits:t};if(!n)return e.toLocaleString("en-US",l);let a=e<0?"-":"",o=Math.abs(e),i=o,s="";return o>=1e6?(i=o/1e6,s="M"):o>=1e3&&(i=o/1e3,s="K"),`${a}${i.toLocaleString("en-US",l)}${s}`},r=async(e,n="Copied to clipboard")=>{if(!e)return!1;if(!navigator||!navigator.clipboard||!navigator.clipboard.writeText)return l(e,n);try{return await navigator.clipboard.writeText(e),t.default.success(n),!0}catch(t){return console.error("Clipboard API failed: ",t),l(e,n)}},l=(e,n)=>{try{let r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.left="-999999px",r.style.top="-999999px",r.setAttribute("readonly",""),document.body.appendChild(r),r.focus(),r.select();let l=document.execCommand("copy");if(document.body.removeChild(r),l)return t.default.success(n),!0;throw Error("execCommand failed")}catch(e){return t.default.fromBackend("Failed to copy to clipboard"),console.error("Failed to copy: ",e),!1}};e.s(["copyToClipboard",0,r,"formatNumberWithCommas",0,n,"getSpendString",0,(e,t=6)=>{if(null==e||!Number.isFinite(e)||0===e)return"-";let r=n(e,t,!1,!1);if(0===Number(r.replace(/,/g,""))){let e=(1/10**t).toFixed(t);return`< $${e}`}return`$${r}`},"updateExistingKeys",0,function(e,t){let n=structuredClone(e);for(let[e,r]of Object.entries(t))e in n&&(n[e]=r);return n}])},127952,869216,368869,e=>{"use strict";var t=e.i(843476),n=e.i(560445),r=e.i(175712);e.i(247167);var l=e.i(271645),a=e.i(343794),o=e.i(908206),i=e.i(242064),s=e.i(517455),d=e.i(150073);let c={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},u=l.default.createContext({});var f=e.i(876556),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let g=e=>{let{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:s,contentStyle:d,bordered:c,label:f,content:m,colon:p,type:g,styles:h}=e,{classNames:x}=l.useContext(u),v=Object.assign(Object.assign({},s),null==h?void 0:h.label),b=Object.assign(Object.assign({},d),null==h?void 0:h.content);if(c)return l.createElement(n,{colSpan:r,style:i,className:(0,a.default)(o,{[`${t}-item-${g}`]:"label"===g||"content"===g,[null==x?void 0:x.label]:(null==x?void 0:x.label)&&"label"===g,[null==x?void 0:x.content]:(null==x?void 0:x.content)&&"content"===g})},null!=f&&l.createElement("span",{style:v},f),null!=m&&l.createElement("span",{style:b},m));return l.createElement(n,{colSpan:r,style:i,className:(0,a.default)(`${t}-item`,o)},l.createElement("div",{className:`${t}-item-container`},null!=f&&l.createElement("span",{style:v,className:(0,a.default)(`${t}-item-label`,null==x?void 0:x.label,{[`${t}-item-no-colon`]:!p})},f),null!=m&&l.createElement("span",{style:b,className:(0,a.default)(`${t}-item-content`,null==x?void 0:x.content)},m)))};function h(e,{colon:t,prefixCls:n,bordered:r},{component:a,type:o,showLabel:i,showContent:s,labelStyle:d,contentStyle:c,styles:u}){return e.map(({label:e,children:f,prefixCls:m=n,className:p,style:h,labelStyle:x,contentStyle:v,span:b=1,key:y,styles:w},j)=>"string"==typeof a?l.createElement(g,{key:`${o}-${y||j}`,className:p,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},d),null==u?void 0:u.label),x),null==w?void 0:w.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},c),null==u?void 0:u.content),v),null==w?void 0:w.content)},span:b,colon:t,component:a,itemPrefixCls:m,bordered:r,label:i?e:null,content:s?f:null,type:o}):[l.createElement(g,{key:`label-${y||j}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null==u?void 0:u.label),h),x),null==w?void 0:w.label),span:1,colon:t,component:a[0],itemPrefixCls:m,bordered:r,label:e,type:"label"}),l.createElement(g,{key:`content-${y||j}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),null==u?void 0:u.content),h),v),null==w?void 0:w.content),span:2*b-1,component:a[1],itemPrefixCls:m,bordered:r,content:f,type:"content"})])}let x=e=>{let t=l.useContext(u),{prefixCls:n,vertical:r,row:a,index:o,bordered:i}=e;return r?l.createElement(l.Fragment,null,l.createElement("tr",{key:`label-${o}`,className:`${n}-row`},h(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),l.createElement("tr",{key:`content-${o}`,className:`${n}-row`},h(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):l.createElement("tr",{key:o,className:`${n}-row`},h(a,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))};e.i(296059);var v=e.i(915654),b=e.i(183293),y=e.i(246422),w=e.i(838378);let j=(0,y.genStyleHooks)("Descriptions",e=>(e=>{let{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:l,colonMarginRight:a,colonMarginLeft:o,titleMarginBottom:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,b.resetComponent)(e)),(e=>{let{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,v.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${(0,v.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,v.unit)(e.padding)} ${(0,v.unit)(e.paddingLG)}`,borderInlineEnd:`${(0,v.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,v.unit)(e.paddingSM)} ${(0,v.unit)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,v.unit)(e.paddingXS)} ${(0,v.unit)(e.padding)}`}}}}}})(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:Object.assign(Object.assign({},b.textEllipsis),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:l},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,v.unit)(o)} ${(0,v.unit)(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})((0,w.mergeToken)(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let k=e=>{let t,{prefixCls:n,title:r,extra:g,column:h,colon:v=!0,bordered:b,layout:y,children:w,className:k,rootClassName:S,style:N,size:E,labelStyle:_,contentStyle:O,styles:$,items:T,classNames:I}=e,P=C(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:M,direction:R,className:L,style:D,classNames:A,styles:K}=(0,i.useComponentConfig)("descriptions"),B=M("descriptions",n),F=(0,d.default)(),z=l.useMemo(()=>{var e;return"number"==typeof h?h:null!=(e=(0,o.matchScreen)(F,Object.assign(Object.assign({},c),h)))?e:3},[F,h]),H=(t=l.useMemo(()=>T||(0,f.default)(w).map(e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key})),[T,w]),l.useMemo(()=>t.map(e=>{var{span:t}=e,n=m(e,["span"]);return"filled"===t?Object.assign(Object.assign({},n),{filled:!0}):Object.assign(Object.assign({},n),{span:"number"==typeof t?t:(0,o.matchScreen)(F,t)})}),[t,F])),V=(0,s.default)(E),W=((e,t)=>{let[n,r]=(0,l.useMemo)(()=>{let n,r,l,a;return n=[],r=[],l=!1,a=0,t.filter(e=>e).forEach(t=>{let{filled:o}=t,i=p(t,["filled"]);if(o){r.push(i),n.push(r),r=[],a=0;return}let s=e-a;(a+=t.span||1)>=e?(a>e?(l=!0,r.push(Object.assign(Object.assign({},i),{span:s}))):r.push(i),n.push(r),r=[],a=0):r.push(i)}),r.length>0&&n.push(r),[n=n.map(t=>{let n=t.reduce((e,t)=>e+(t.span||1),0);if(n({labelStyle:_,contentStyle:O,styles:{content:Object.assign(Object.assign({},K.content),null==$?void 0:$.content),label:Object.assign(Object.assign({},K.label),null==$?void 0:$.label)},classNames:{label:(0,a.default)(A.label,null==I?void 0:I.label),content:(0,a.default)(A.content,null==I?void 0:I.content)}}),[_,O,$,I,A,K]);return U(l.createElement(u.Provider,{value:X},l.createElement("div",Object.assign({className:(0,a.default)(B,L,A.root,null==I?void 0:I.root,{[`${B}-${V}`]:V&&"default"!==V,[`${B}-bordered`]:!!b,[`${B}-rtl`]:"rtl"===R},k,S,q,G),style:Object.assign(Object.assign(Object.assign(Object.assign({},D),K.root),null==$?void 0:$.root),N)},P),(r||g)&&l.createElement("div",{className:(0,a.default)(`${B}-header`,A.header,null==I?void 0:I.header),style:Object.assign(Object.assign({},K.header),null==$?void 0:$.header)},r&&l.createElement("div",{className:(0,a.default)(`${B}-title`,A.title,null==I?void 0:I.title),style:Object.assign(Object.assign({},K.title),null==$?void 0:$.title)},r),g&&l.createElement("div",{className:(0,a.default)(`${B}-extra`,A.extra,null==I?void 0:I.extra),style:Object.assign(Object.assign({},K.extra),null==$?void 0:$.extra)},g)),l.createElement("div",{className:`${B}-view`},l.createElement("table",null,l.createElement("tbody",null,W.map((e,t)=>l.createElement(x,{key:t,index:t,colon:v,prefixCls:B,vertical:"vertical"===y,bordered:b,row:e}))))))))};k.Item=({children:e})=>e,e.s(["Descriptions",0,k],869216);var S=e.i(311451),N=e.i(212931),E=e.i(898586),_=e.i(868297),O=e.i(732961),$=e.i(289882),T=e.i(170517),I=e.i(628882),P=e.i(320890),M=e.i(104458),R=e.i(722319),L=e.i(8398),D=e.i(279728);e.i(765846);var A=e.i(602716),K=e.i(328052),B=e.i(135551);let F=(e,t)=>new B.FastColor(e).setA(t).toRgbString(),z=(e,t)=>new B.FastColor(e).lighten(t).toHexString(),H=e=>{let t=(0,A.generate)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},V=(e,t)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:F(r,.85),colorTextSecondary:F(r,.65),colorTextTertiary:F(r,.45),colorTextQuaternary:F(r,.25),colorFill:F(r,.18),colorFillSecondary:F(r,.12),colorFillTertiary:F(r,.08),colorFillQuaternary:F(r,.04),colorBgSolid:F(r,.95),colorBgSolidHover:F(r,1),colorBgSolidActive:F(r,.9),colorBgElevated:z(n,12),colorBgContainer:z(n,8),colorBgLayout:z(n,0),colorBgSpotlight:z(n,26),colorBgBlur:F(r,.04),colorBorder:z(n,26),colorBorderSecondary:z(n,19)}},W={defaultSeed:P.defaultConfig.token,useToken:function(){let[e,t,n]=(0,M.useToken)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:R.default,darkAlgorithm:(e,t)=>{let n=Object.keys(T.defaultPresetColors).map(t=>{let n=(0,A.generate)(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,l)=>(e[`${t}-${l+1}`]=n[l],e[`${t}${l+1}`]=n[l],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:(0,R.default)(e),l=(0,K.default)(e,{generateColorPalettes:H,generateNeutralColorPalettes:V});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),l),{colorPrimaryBg:l.colorPrimaryBorder,colorPrimaryBgHover:l.colorPrimaryBorderHover})},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,R.default)(e),r=n.fontSizeSM,l=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,D.default)(r)),{controlHeight:l}),(0,L.default)(Object.assign(Object.assign({},n),{controlHeight:l})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,_.createTheme)(e.algorithm):$.default,n=Object.assign(Object.assign({},T.default),null==e?void 0:e.token);return(0,O.getComputedToken)(n,{override:null==e?void 0:e.token},t,I.default)},defaultConfig:P.defaultConfig,_internalContext:P.DesignTokenContext};e.s(["theme",0,W],368869);var U=e.i(270377);e.s(["default",0,function({isOpen:e,title:a,alertMessage:o,message:i,resourceInformationTitle:s,resourceInformation:d,onCancel:c,onOk:u,confirmLoading:f,requiredConfirmation:m}){let{Title:p,Text:g}=E.Typography,{token:h}=W.useToken(),[x,v]=(0,l.useState)("");return(0,l.useEffect)(()=>{e&&v("")},[e]),(0,t.jsx)(N.Modal,{title:a,open:e,onOk:u,onCancel:c,confirmLoading:f,okText:f?"Deleting...":"Delete",cancelText:"Cancel",okButtonProps:{danger:!0,disabled:!!m&&x!==m||f},cancelButtonProps:{disabled:f},children:(0,t.jsxs)("div",{className:"space-y-4",children:[o&&(0,t.jsx)(n.Alert,{message:o,type:"warning"}),(0,t.jsx)(r.Card,{title:s,className:"mt-4",styles:{body:{padding:"16px"},header:{backgroundColor:h.colorErrorBg,borderColor:h.colorErrorBorder}},style:{backgroundColor:h.colorErrorBg,borderColor:h.colorErrorBorder},children:(0,t.jsx)(k,{column:1,size:"small",children:d&&d.map(({label:e,value:n,...r})=>(0,t.jsx)(k.Item,{label:(0,t.jsx)("span",{className:"font-semibold",children:e}),children:(0,t.jsx)(g,{...r,children:n??"-"})},e))})}),(0,t.jsx)("div",{children:(0,t.jsx)(g,{children:i})}),m&&(0,t.jsxs)("div",{className:"mb-6 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:[(0,t.jsxs)(g,{className:"block text-base font-medium text-gray-700 dark:text-gray-300 mb-2",children:[(0,t.jsx)(g,{children:"Type "}),(0,t.jsx)(g,{strong:!0,type:"danger",children:m}),(0,t.jsx)(g,{children:" to confirm deletion:"})]}),(0,t.jsx)(S.Input,{value:x,onChange:e=>v(e.target.value),placeholder:m,className:"rounded-md",prefix:(0,t.jsx)(U.ExclamationCircleOutlined,{style:{color:h.colorError}}),autoFocus:!0})]})]})})}],127952)},355619,e=>{"use strict";var t=e.i(764205);let n=async(e,n,r)=>{try{if(null===e||null===n)return;if(null!==r){let l=(await (0,t.modelAvailableCall)(r,e,n,!0,null,!0)).data.map(e=>e.id),a=[],o=[];return l.forEach(e=>{e.endsWith("/*")?a.push(e):o.push(e)}),[...a,...o]}}catch(e){console.error("Error fetching user models:",e)}};e.s(["fetchAvailableModelsForTeamOrKey",0,n,"getModelDisplayName",0,e=>{if("all-proxy-models"===e)return"All Proxy Models";if(e.endsWith("/*")){let t=e.replace("/*","");return`All ${t} models`}return e},"unfurlWildcardModelsInList",0,(e,t)=>{let n=[],r=[];return console.log("teamModels",e),console.log("allModels",t),e.forEach(e=>{if(e.endsWith("/*")){let l=e.replace("/*",""),a=t.filter(e=>e.startsWith(l+"/"));r.push(...a),n.push(e)}else r.push(e)}),[...n,...r].filter((e,t,n)=>n.indexOf(e)===t)}])},75921,500727,699857,234713,e=>{"use strict";var t=e.i(843476),n=e.i(266027),r=e.i(243652),l=e.i(764205),a=e.i(135214);let o=(0,r.createQueryKeys)("mcpAccessGroups"),i=(0,r.createQueryKeys)("mcpServers"),s=e=>{let{accessToken:t}=(0,a.default)();return(0,n.useQuery)({queryKey:i.list(e?{filters:{teamId:e}}:void 0),queryFn:async()=>await (0,l.fetchMCPServers)(t,e),enabled:!!t})};e.s(["useMCPServers",0,s],500727);let d=(0,r.createQueryKeys)("mcpToolsets"),c=()=>{let{accessToken:e}=(0,a.default)();return(0,n.useQuery)({queryKey:d.list(),queryFn:async()=>await (0,l.fetchMCPToolsets)(e),enabled:!!e})};e.s(["useMCPToolsets",0,c],699857);var u=e.i(199133);let f="no-mcp-servers";e.s(["NO_MCP_SERVERS_SENTINEL",0,f],234713);let m="toolset:";e.s(["default",0,({onChange:e,value:r,className:i,accessToken:d,placeholder:p="Select MCP servers",disabled:g=!1,teamId:h,allowNoMcpServers:x=!1})=>{let{data:v=[],isLoading:b}=s(h),{data:y=[],isLoading:w}=(()=>{let{accessToken:e}=(0,a.default)();return(0,n.useQuery)({queryKey:o.list({}),queryFn:async()=>await (0,l.fetchMCPAccessGroups)(e),enabled:!!e})})(),{data:j=[],isLoading:C}=c(),k=new Set(y),S=[...y.map(e=>({label:e,value:e,type:"accessGroup",searchText:`${e} Access Group`})),...v.map(e=>({label:`${e.server_name||e.server_id} (${e.server_id})`,value:e.server_id,type:"server",searchText:`${e.server_name||e.server_id} ${e.server_id} MCP Server`})),...j.map(e=>({label:e.toolset_name,value:`${m}${e.toolset_id}`,type:"toolset",searchText:`${e.toolset_name} ${e.toolset_id} Toolset`}))],N={accessGroup:"#52c41a",server:"#1890ff",toolset:"#722ed1"},E={accessGroup:"Access Group",server:"MCP Server",toolset:"Toolset"},_=[...r?.servers||[],...r?.accessGroups||[],...(r?.toolsets||[]).map(e=>`${m}${e}`)],O=x&&_.includes(f);return(0,t.jsx)("div",{children:(0,t.jsxs)(u.Select,{mode:"multiple",placeholder:p,onChange:t=>{if(x&&t.includes(f))return void e({servers:[f],accessGroups:[],toolsets:[]});let n=t.filter(e=>e.startsWith(m)).map(e=>e.slice(m.length)),r=t.filter(e=>!e.startsWith(m));e({servers:r.filter(e=>!k.has(e)),accessGroups:r.filter(e=>k.has(e)),toolsets:n})},value:_,loading:b||w||C,className:i,allowClear:!0,showSearch:!0,style:{width:"100%"},disabled:g,filterOption:(e,t)=>t?.value===f||(S.find(e=>e.value===t?.value)?.searchText||"").toLowerCase().includes(e.toLowerCase()),children:[x&&(0,t.jsx)(u.Select.Option,{value:f,label:"No MCP Servers",children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)("span",{style:{flex:1},children:"No MCP Servers"}),(0,t.jsx)("span",{style:{color:"#8c8c8c",fontSize:"12px",fontWeight:500,opacity:.8},children:"Block all"})]})},f),S.map(e=>(0,t.jsx)(u.Select.Option,{value:e.value,label:e.label,disabled:O,children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:N[e.type],flexShrink:0}}),(0,t.jsx)("span",{style:{flex:1},children:e.label}),(0,t.jsx)("span",{style:{color:N[e.type],fontSize:"12px",fontWeight:500,opacity:.8},children:E[e.type]})]})},e.value))]})})}],75921)},530212,e=>{"use strict";var t=e.i(271645);let n=t.forwardRef(function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}))});e.s(["ArrowLeftIcon",0,n],530212)},213205,e=>{"use strict";e.i(247167);var t=e.i(931067),n=e.i(271645);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"};var l=e.i(9583),a=n.forwardRef(function(e,a){return n.createElement(l.default,(0,t.default)({},e,{ref:a,icon:r}))});e.s(["UserAddOutlined",0,a],213205)},541384,893856,441450,642493,576671,451668,841770,637134,550715,870345,699018,825270,405979,769257,946727,94844,e=>{"use strict";var t={},n="rc-table-internal-hook";e.s(["EXPAND_COLUMN",0,t,"INTERNAL_HOOKS",0,n],893856),e.i(247167);var r=e.i(392221),l=e.i(175066),a=e.i(174428),o=e.i(929123),i=e.i(271645),s=e.i(174080);function d(e){var t=i.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,l=e.children,o=i.useRef(n);o.current=n;var d=i.useState(function(){return{getValue:function(){return o.current},listeners:new Set}}),c=(0,r.default)(d,1)[0];return(0,a.default)(function(){(0,s.unstable_batchedUpdates)(function(){c.listeners.forEach(function(e){e(n)})})},[n]),i.createElement(t.Provider,{value:c},l)},defaultValue:e}}function c(e,t){var n=(0,l.default)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),s=i.useContext(null==e?void 0:e.Context),d=s||{},c=d.listeners,u=d.getValue,f=i.useRef();f.current=n(s?u():null==e?void 0:e.defaultValue);var m=i.useState({}),p=(0,r.default)(m,2)[1];return(0,a.default)(function(){if(s)return c.add(e),function(){c.delete(e)};function e(e){var t=n(e);(0,o.default)(f.current,t,!0)||p({})}},[s]),f.current}var u=e.i(931067),f=e.i(611935);function m(){var e=i.createContext(null);function t(){return i.useContext(e)}return{makeImmutable:function(n,r){var l=(0,f.supportRef)(n),a=function(a,o){var s=l?{ref:o}:{},d=i.useRef(0),c=i.useRef(a);return null!==t()?i.createElement(n,(0,u.default)({},a,s)):((!r||r(c.current,a))&&(d.current+=1),c.current=a,i.createElement(e.Provider,{value:d.current},i.createElement(n,(0,u.default)({},a,s))))};return l?i.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,f.supportRef)(e),l=function(n,l){return t(),i.createElement(e,(0,u.default)({},n,r?{ref:l}:{}))};return r?i.memo(i.forwardRef(l),n):i.memo(l,n)},useImmutableMark:t}}var p=m();p.makeImmutable,p.responseImmutable,p.useImmutableMark;var g=m(),h=g.makeImmutable,x=g.responseImmutable,v=g.useImmutableMark,b=d(),y=e.i(410160),w=e.i(209428),j=e.i(211577),C=e.i(343794),k=e.i(182585),S=e.i(657791),N=e.i(883110),E=i.createContext({renderWithProps:!1});function _(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,a=r.dataIndex,o=l||(null==a?[]:Array.isArray(a)?a:[a]).join("-")||"RC_TABLE_KEY";n[o];)o="".concat(o,"_next");n[o]=!0,t.push(o)}),t}e.i(62664);var O=e.i(697539),$=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():i.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t};let T=i.memo(function(e){var t,n,l,a,s,d,f,m,p,g,h=e.component,x=e.children,N=e.ellipsis,_=e.scope,T=e.prefixCls,I=e.className,P=e.align,M=e.record,R=e.render,L=e.dataIndex,D=e.renderIndex,A=e.shouldCellUpdate,K=e.index,B=e.rowType,F=e.colSpan,z=e.rowSpan,H=e.fixLeft,V=e.fixRight,W=e.firstFixLeft,U=e.lastFixLeft,q=e.firstFixRight,G=e.lastFixRight,X=e.appendNode,Q=e.additionalProps,Y=void 0===Q?{}:Q,J=e.isSticky,Z="".concat(T,"-cell"),ee=c(b,["supportSticky","allColumnsFixedLeft","rowHoverable"]),et=ee.supportSticky,en=ee.allColumnsFixedLeft,er=ee.rowHoverable,el=(t=i.useContext(E),n=v(),(0,k.default)(function(){if(null!=x)return[x];var e=null==L||""===L?[]:Array.isArray(L)?L:[L],n=(0,S.default)(M,e),r=n,l=void 0;if(R){var a=R(n,M,D);!a||"object"!==(0,y.default)(a)||Array.isArray(a)||i.isValidElement(a)?r=a:(r=a.children,l=a.props,t.renderWithProps=!0)}return[r,l]},[n,M,x,L,R,D],function(e,n){if(A){var l=(0,r.default)(e,2)[1];return A((0,r.default)(n,2)[1],l)}return!!t.renderWithProps||!(0,o.default)(e,n,!0)})),ea=(0,r.default)(el,2),eo=ea[0],ei=ea[1],es={},ed="number"==typeof H&&et,ec="number"==typeof V&&et;ed&&(es.position="sticky",es.left=H),ec&&(es.position="sticky",es.right=V);var eu=null!=(l=null!=(a=null!=(s=null==ei?void 0:ei.colSpan)?s:Y.colSpan)?a:F)?l:1,ef=null!=(d=null!=(f=null!=(m=null==ei?void 0:ei.rowSpan)?m:Y.rowSpan)?f:z)?d:1,em=c(b,function(e){var t,n;return[(t=ef||1,n=e.hoverStartRow,K<=e.hoverEndRow&&K+t-1>=n),e.onHover]}),ep=(0,r.default)(em,2),eg=ep[0],eh=ep[1],ex=(0,O.useEvent)(function(e){var t;M&&eh(K,K+ef-1),null==Y||null==(t=Y.onMouseEnter)||t.call(Y,e)}),ev=(0,O.useEvent)(function(e){var t;M&&eh(-1,-1),null==Y||null==(t=Y.onMouseLeave)||t.call(Y,e)});if(0===eu||0===ef)return null;var eb=null!=(p=Y.title)?p:$({rowType:B,ellipsis:N,children:eo}),ey=(0,C.default)(Z,I,(g={},(0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)(g,"".concat(Z,"-fix-left"),ed&&et),"".concat(Z,"-fix-left-first"),W&&et),"".concat(Z,"-fix-left-last"),U&&et),"".concat(Z,"-fix-left-all"),U&&en&&et),"".concat(Z,"-fix-right"),ec&&et),"".concat(Z,"-fix-right-first"),q&&et),"".concat(Z,"-fix-right-last"),G&&et),"".concat(Z,"-ellipsis"),N),"".concat(Z,"-with-append"),X),"".concat(Z,"-fix-sticky"),(ed||ec)&&J&&et),(0,j.default)(g,"".concat(Z,"-row-hover"),!ei&&eg)),Y.className,null==ei?void 0:ei.className),ew={};P&&(ew.textAlign=P);var ej=(0,w.default)((0,w.default)((0,w.default)((0,w.default)({},null==ei?void 0:ei.style),es),ew),Y.style),eC=eo;return"object"!==(0,y.default)(eC)||Array.isArray(eC)||i.isValidElement(eC)||(eC=null),N&&(U||q)&&(eC=i.createElement("span",{className:"".concat(Z,"-content")},eC)),i.createElement(h,(0,u.default)({},ei,Y,{className:ey,style:ej,title:eb,scope:_,onMouseEnter:er?ex:void 0,onMouseLeave:er?ev:void 0,colSpan:1!==eu?eu:null,rowSpan:1!==ef?ef:null}),X,eC)});function I(e,t,n,r,l){var a,o,i=n[e]||{},s=n[t]||{};"left"===i.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(o=r.right["rtl"===l?e:t]);var d=!1,c=!1,u=!1,f=!1,m=n[t+1],p=n[e-1],g=m&&!m.fixed||p&&!p.fixed||n.every(function(e){return"left"===e.fixed});return"rtl"===l?void 0!==a?f=!(p&&"left"===p.fixed)&&g:void 0!==o&&(u=!(m&&"right"===m.fixed)&&g):void 0!==a?d=!(m&&"left"===m.fixed)&&g:void 0!==o&&(c=!(p&&"right"===p.fixed)&&g),{fixLeft:a,fixRight:o,lastFixLeft:d,firstFixRight:c,lastFixRight:u,firstFixLeft:f,isSticky:r.isSticky}}var P=i.createContext({}),M=e.i(703923),R=["children"];function L(e){return e.children}L.Row=function(e){var t=e.children,n=(0,M.default)(e,R);return i.createElement("tr",n,t)},L.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,a=void 0===l?1:l,o=e.rowSpan,s=e.align,d=c(b,["prefixCls","direction"]),f=d.prefixCls,m=d.direction,p=i.useContext(P),g=p.scrollColumnIndex,h=p.stickyOffsets,x=p.flattenColumns,v=n+a-1+1===g?a+1:a,y=I(n,n+v-1,x,h,m);return i.createElement(T,(0,u.default)({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:o,render:function(){return r}},y))};let D=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=c(b,"prefixCls"),a=r.length-1,o=r[a],s=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=o&&o.scrollbar?a:null}},[o,r,a,n]);return i.createElement(P.Provider,{value:s},i.createElement("tfoot",{className:"".concat(l,"-summary")},t))});var A=e.i(430073),K=e.i(735049),B=e.i(815289),F=e.i(244009);function z(e,t,n,r){return i.useMemo(function(){if(null!=n&&n.size){for(var l=[],a=0;a<(null==e?void 0:e.length);a+=1)!function e(t,n,r,l,a,o,i){var s=o(n,i);t.push({record:n,indent:r,index:i,rowKey:s});var d=null==a?void 0:a.has(s);if(n&&Array.isArray(n[l])&&d)for(var c=0;c1?n-1:0),l=1;l5&&void 0!==arguments[5]?arguments[5]:[],d=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=e.record,u=e.prefixCls,f=e.columnsKey,m=e.fixedInfoList,p=e.expandIconColumnIndex,g=e.nestExpandable,h=e.indentSize,x=e.expandIcon,v=e.expanded,b=e.hasNestChildren,y=e.onTriggerExpand,w=e.expandable,j=e.expandedKeys,C=f[n],k=m[n];n===(p||0)&&g&&(o=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),x({prefixCls:u,expanded:v,expandable:b,record:c,onExpand:y})));var S=(null==(a=t.onCell)?void 0:a.call(t,c,l))||{};if(d){var N=S.rowSpan,E=void 0===N?1:N;if(w&&E&&n=1)),style:(0,w.default)((0,w.default)({},r),null==S?void 0:S.style)}),b.map(function(e,t){var n=e.render,r=e.dataIndex,s=e.className,c=q(x,e,t,f,a,d,null==h?void 0:h.offset),m=c.key,b=c.fixedInfo,y=c.appendCellNode,w=c.additionalCellProps;return i.createElement(T,(0,u.default)({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?g:p,prefixCls:v,key:m,record:l,index:a,renderIndex:o,dataIndex:r,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:y,additionalProps:w}))}));if(E&&(_.current||N)){var I=k(l,a,f+1,N);t=i.createElement(V,{expanded:N,className:(0,C.default)("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),O),prefixCls:v,component:m,cellComponent:p,colSpan:h?h.colSpan:b.length,stickyOffset:null==h?void 0:h.sticky,isEmpty:!1},I)}return i.createElement(i.Fragment,null,$,t)});function X(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,l=e.title,o=i.useRef();return(0,a.default)(function(){o.current&&n(t,o.current.offsetWidth)},[]),i.createElement(A.default,{data:t},i.createElement("th",{ref:o,className:"".concat(r,"-measure-cell")},i.createElement("div",{className:"".concat(r,"-measure-cell-content")},l||" ")))}var Q=e.i(606262);function Y(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,l=e.columns,a=i.useRef(null),o=c(b,["measureRowRender"]).measureRowRender,s=i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},i.createElement(A.default.Collection,{onBatchResize:function(e){(0,Q.default)(a.current)&&e.forEach(function(e){r(e.data,e.size.offsetWidth)})}},n.map(function(e){var n=l.find(function(t){return t.key===e}),a=null==n?void 0:n.title,o=i.isValidElement(a)?i.cloneElement(a,{ref:null}):a;return i.createElement(X,{prefixCls:t,key:e,columnKey:e,onColumnResize:r,title:o})})));return o?o(s):s}let J=x(function(e){var t,n=e.data,r=e.measureColumnWidth,l=c(b,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=l.prefixCls,o=l.getComponent,s=l.onColumnResize,d=l.flattenColumns,u=l.getRowKey,f=l.expandedKeys,m=l.childrenColumnName,p=l.emptyNode,g=l.expandedRowOffset,h=void 0===g?0:g,x=l.colWidths,v=z(n,m,f,u),y=i.useMemo(function(){return v.map(function(e){return e.rowKey})},[v]),w=i.useRef({renderWithProps:!1}),j=i.useMemo(function(){for(var e=d.length-h,t=0,n=0;n=0;d-=1){var f=t[d],m=n&&n[d],p=void 0,g=void 0;if(m&&(p=m[ee],"auto"===l&&(g=m.minWidth)),f||g||p||s){var h=p||{},x=(h.columnType,(0,M.default)(h,en));a.unshift(i.createElement("col",(0,u.default)({key:d,style:{width:f,minWidth:g}},x))),s=!0}}return a.length>0?i.createElement("colgroup",null,a):null};var el=e.i(8211),ea=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"],eo=i.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,a=e.flattenColumns,o=e.colWidths,s=e.colGroup,d=e.columCount,u=e.stickyOffsets,m=e.direction,p=e.fixHeader,g=e.stickyTopOffset,h=e.stickyBottomOffset,x=e.stickyClassName,v=e.scrollX,y=e.tableLayout,k=e.onScroll,S=e.children,N=(0,M.default)(e,ea),E=c(b,["prefixCls","scrollbarSize","isSticky","getComponent"]),_=E.prefixCls,O=E.scrollbarSize,$=E.isSticky,T=(0,E.getComponent)(["header","table"],"table"),I=$&&!p?0:O,P=i.useRef(null),R=i.useCallback(function(e){(0,f.fillRef)(t,e),(0,f.fillRef)(P,e)},[]);i.useEffect(function(){function e(e){var t=e.currentTarget,n=e.deltaX;n&&(k({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}var t=P.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}},[]);var L=a[a.length-1],D={fixed:L?L.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},A=(0,i.useMemo)(function(){return I?[].concat((0,el.default)(l),[D]):l},[I,l]),K=(0,i.useMemo)(function(){return I?[].concat((0,el.default)(a),[D]):a},[I,a]),B=(0,i.useMemo)(function(){var e=u.right,t=u.left;return(0,w.default)((0,w.default)({},u),{},{left:"rtl"===m?[].concat((0,el.default)(t.map(function(e){return e+I})),[0]):t,right:"rtl"===m?e:[].concat((0,el.default)(e.map(function(e){return e+I})),[0]),isSticky:$})},[I,u,$]),F=(0,i.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:o,prefixCls:m,key:g[t]},s,{additionalProps:n,rowType:"header"}))}))},ed=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,a=c(b,["prefixCls","getComponent"]),o=a.prefixCls,s=a.getComponent,d=i.useMemo(function(){var e=[];!function t(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e[l]=e[l]||[];var a=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},o=1,i=n.children;return i&&i.length>0&&(o=t(i,a,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(o=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=o,r.colEnd=r.colStart+o-1,e[l].push(r),a+=o,o})}(n,0);for(var t=e.length,r=function(n){e[n].forEach(function(e){"rowSpan"in e||e.hasSubColumns||(e.rowSpan=t-n)})},l=0;l1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var ef=["children"],em=["fixed"];function ep(e){return(0,ec.default)(e).filter(function(e){return i.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,r=n.children,l=(0,M.default)(n,ef),a=(0,w.default)({key:t},l);return r&&(a.children=ep(r)),a})}function eg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===(0,y.default)(e)}).reduce(function(e,n,r){var l=n.fixed,a=!0===l?"left":l,o="".concat(t,"-").concat(r),i=n.children;return i&&i.length>0?[].concat((0,el.default)(e),(0,el.default)(eg(i,o).map(function(e){var t;return(0,w.default)((0,w.default)({},e),{},{fixed:null!=(t=e.fixed)?t:a})}))):[].concat((0,el.default)(e),[(0,w.default)((0,w.default)({key:o},n),{},{fixed:a})])},[])}let eh=function(e,n){var l=e.prefixCls,a=e.columns,o=e.children,s=e.expandable,d=e.expandedKeys,c=e.columnTitle,u=e.getRowKey,f=e.onTriggerExpand,m=e.expandIcon,p=e.rowExpandable,g=e.expandIconColumnIndex,h=e.expandedRowOffset,x=void 0===h?0:h,v=e.direction,b=e.expandRowByClick,C=e.columnWidth,k=e.fixed,S=e.scrollWidth,N=e.clientWidth,E=i.useMemo(function(){return function e(t){return t.filter(function(e){return e&&"object"===(0,y.default)(e)&&!e.hidden}).map(function(t){var n=t.children;return n&&n.length>0?(0,w.default)((0,w.default)({},t),{},{children:e(n)}):t})}((a||ep(o)||[]).slice())},[a,o]),_=i.useMemo(function(){if(s){var e,n=E.slice();if(!n.includes(t)){var r=g||0,a=0===r&&"right"===k?E.length:r;a>=0&&n.splice(a,0,t)}var o=n.indexOf(t);n=n.filter(function(e,n){return e!==t||n===o});var h=E[o];e=k||(h?h.fixed:null);var v=(0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)((0,j.default)({},ee,{className:"".concat(l,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",e),"className","".concat(l,"-row-expand-icon-cell")),"width",C),"render",function(e,t,n){var r=u(t,n),a=m({prefixCls:l,expanded:d.has(r),expandable:!p||p(t),record:t,onExpand:f});return b?i.createElement("span",{onClick:function(e){return e.stopPropagation()}},a):a});return n.map(function(e,n){var r=e===t?v:e;return n=0;t-=1){var n=$[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var l=$[r].fixed;if("left"!==l&&!0!==l)return!0}var a=$.findIndex(function(e){return"right"===e.fixed});if(a>=0){for(var o=a;o<$.length;o+=1)if("right"!==$[o].fixed)return!0}return!1},[$]),I=i.useMemo(function(){if(S&&S>0){var e=0,t=0;$.forEach(function(n){var r=eu(S,n.width);r?e+=r:t+=1});var n=Math.max(S,N),r=Math.max(n-e,t),l=t,a=r/t,o=0,i=$.map(function(e){var t=(0,w.default)({},e),n=eu(S,t.width);if(n)t.width=n;else{var i=Math.floor(a);t.width=1===l?r:i,r-=i,l-=1}return o+=t.width,t});if(o=n-g})})}})},F=function(e){$(function(t){return(0,w.default)((0,w.default)({},t),{},{scrollLeft:y?e/y*k:0})})};return(i.useImperativeHandle(t,function(){return{setScrollLeft:F,checkScrollBarVisible:K}}),i.useEffect(function(){var e=eb(document.body,"mouseup",D,!1),t=eb(document.body,"mousemove",A,!1);return K(),function(){e.remove(),t.remove()}},[S,M]),i.useEffect(function(){if(m.current){for(var e=[],t=(0,ew.getDOM)(m.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",K,!1)}),window.addEventListener("resize",K,!1),window.addEventListener("scroll",K,!1),h.addEventListener("scroll",K,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",K)}),window.removeEventListener("resize",K),window.removeEventListener("scroll",K),h.removeEventListener("scroll",K)}}},[h]),i.useEffect(function(){O.isHiddenScrollBar||$(function(e){var t=m.current;return t?(0,w.default)((0,w.default)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[O.isHiddenScrollBar]),y<=k||!S||O.isHiddenScrollBar)?null:i.createElement("div",{style:{height:(0,B.default)(),width:k,bottom:g},className:"".concat(v,"-sticky-scroll")},i.createElement("div",{onMouseDown:function(e){e.persist(),T.current.delta=e.pageX-O.scrollLeft,T.current.x=0,R(!0),e.preventDefault()},ref:N,className:(0,C.default)("".concat(v,"-sticky-scroll-bar"),(0,j.default)({},"".concat(v,"-sticky-scroll-bar-active"),M)),style:{width:"".concat(S,"px"),transform:"translate3d(".concat(O.scrollLeft,"px, 0, 0)")}}))});var ek="rc-table",eS=[],eN={};function eE(){return"No Data"}var e_=i.forwardRef(function(e,t){var s,d=(0,w.default)({rowKey:"key",prefixCls:ek,emptyText:eE},e),c=d.prefixCls,f=d.className,m=d.rowClassName,p=d.style,g=d.data,h=d.rowKey,x=d.scroll,v=d.tableLayout,N=d.direction,E=d.title,O=d.footer,$=d.summary,T=d.caption,P=d.id,M=d.showHeader,R=d.components,z=d.emptyText,H=d.onRow,V=d.onHeaderRow,U=d.measureRowRender,q=d.onScroll,G=d.internalHooks,X=d.transformColumns,Q=d.internalRefs,Y=d.tailor,Z=d.getContainerWidth,ee=d.sticky,en=d.rowHoverable,ea=void 0===en||en,eo=g||eS,es=!!eo.length,ec=G===n,eu=i.useCallback(function(e,t){return(0,S.default)(R,e)||t},[R]),ef=i.useMemo(function(){return"function"==typeof h?h:function(e){return e&&e[h]}},[h]),em=eu(["body"]),ep=(tq=i.useState(-1),tX=(tG=(0,r.default)(tq,2))[0],tQ=tG[1],tY=i.useState(-1),tZ=(tJ=(0,r.default)(tY,2))[0],t0=tJ[1],[tX,tZ,i.useCallback(function(e,t){tQ(e),t0(t)},[])]),eg=(0,r.default)(ep,3),eb=eg[0],ey=eg[1],ej=eg[2],e_=(t2=(t1=et(d)).expandIcon,t4=t1.expandedRowKeys,t3=t1.defaultExpandedRowKeys,t5=t1.defaultExpandAllRows,t6=t1.expandedRowRender,t7=t1.onExpand,t8=t1.onExpandedRowsChange,t9=t1.childrenColumnName||"children",ne=i.useMemo(function(){return t6?"row":!!(d.expandable&&d.internalHooks===n&&d.expandable.__PARENT_RENDER_ICON__||eo.some(function(e){return e&&"object"===(0,y.default)(e)&&e[t9]}))&&"nest"},[!!t6,eo]),nt=i.useState(function(){if(t3)return t3;if(t5){var e;return e=[],!function t(n){(n||[]).forEach(function(n,r){e.push(ef(n,r)),t(n[t9])})}(eo),e}return[]}),nr=(nn=(0,r.default)(nt,2))[0],nl=nn[1],na=i.useMemo(function(){return new Set(t4||nr||[])},[t4,nr]),no=i.useCallback(function(e){var t,n=ef(e,eo.indexOf(e)),r=na.has(n);r?(na.delete(n),t=(0,el.default)(na)):t=[].concat((0,el.default)(na),[n]),nl(t),t7&&t7(!r,e),t8&&t8(t)},[ef,na,eo,t7,t8]),[t1,ne,na,t2||W,t9,no]),eO=(0,r.default)(e_,6),e$=eO[0],eT=eO[1],eI=eO[2],eP=eO[3],eM=eO[4],eR=eO[5],eL=null==x?void 0:x.x,eD=i.useState(0),eA=(0,r.default)(eD,2),eK=eA[0],eB=eA[1],eF=eh((0,w.default)((0,w.default)((0,w.default)({},d),e$),{},{expandable:!!e$.expandedRowRender,columnTitle:e$.columnTitle,expandedKeys:eI,getRowKey:ef,onTriggerExpand:eR,expandIcon:eP,expandIconColumnIndex:e$.expandIconColumnIndex,direction:N,scrollWidth:ec&&Y&&"number"==typeof eL?eL:null,clientWidth:eK}),ec?X:null),ez=(0,r.default)(eF,4),eH=ez[0],eV=ez[1],eW=ez[2],eU=ez[3],eq=null!=eW?eW:eL,eG=i.useMemo(function(){return{columns:eH,flattenColumns:eV}},[eH,eV]),eX=i.useRef(),eQ=i.useRef(),eY=i.useRef(),eJ=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:eX.current,scrollTo:function(e){var t;if(eY.current instanceof HTMLElement){var n=e.index,r=e.top,l=e.key;if("number"!=typeof r||Number.isNaN(r)){var a,o,i=null!=l?l:ef(eo[n]);null==(o=eY.current.querySelector('[data-row-key="'.concat(i,'"]')))||o.scrollIntoView()}else null==(a=eY.current)||a.scrollTo({top:r})}else null!=(t=eY.current)&&t.scrollTo&&eY.current.scrollTo(e)}}});var eZ=i.useRef(),e0=i.useState(!1),e1=(0,r.default)(e0,2),e2=e1[0],e4=e1[1],e3=i.useState(!1),e5=(0,r.default)(e3,2),e6=e5[0],e7=e5[1],e8=i.useState(new Map),e9=(0,r.default)(e8,2),te=e9[0],tt=e9[1],tn=_(eV).map(function(e){return te.get(e)}),tr=i.useMemo(function(){return tn},[tn.join("_")]),tl=(0,i.useMemo)(function(){var e=eV.length,t=function(e,t,n){for(var r=[],l=0,a=e;a!==t;a+=n)r.push(l),eV[a].fixed&&(l+=tr[a]||0);return r},n=t(0,e,1),r=t(e-1,-1,-1).reverse();return"rtl"===N?{left:r,right:n}:{left:n,right:r}},[tr,eV,N]),ta=x&&null!=x.y,to=x&&null!=eq||!!e$.fixed,ti=to&&eV.some(function(e){return e.fixed}),ts=i.useRef(),td=(nd=void 0===(ns=(ni="object"===(0,y.default)(ee)?ee:{}).offsetHeader)?0:ns,nu=void 0===(nc=ni.offsetSummary)?0:nc,nm=void 0===(nf=ni.offsetScroll)?0:nf,ng=(void 0===(np=ni.getContainer)?function(){return ex}:np)()||ex,nh=!!ee,i.useMemo(function(){return{isSticky:nh,stickyClassName:nh?"".concat(c,"-sticky-holder"):"",offsetHeader:nd,offsetSummary:nu,offsetScroll:nm,container:ng}},[nh,nm,nd,nu,c,ng])),tc=td.isSticky,tu=td.offsetHeader,tf=td.offsetSummary,tm=td.offsetScroll,tp=td.stickyClassName,tg=td.container,th=i.useMemo(function(){return null==$?void 0:$(eo)},[$,eo]),tx=(ta||tc)&&i.isValidElement(th)&&th.type===L&&th.props.fixed;ta&&(nv={overflowY:es?"scroll":"auto",maxHeight:x.y}),to&&(nx={overflowX:"auto"},ta||(nv={overflowY:"hidden"}),nb={width:!0===eq?"auto":eq,minWidth:"100%"});var tv=i.useCallback(function(e,t){tt(function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n})},[]),tb=function(){var e=(0,i.useRef)(null),t=(0,i.useRef)();function n(){window.clearTimeout(t.current)}return(0,i.useEffect)(function(){return n},[]),[function(r){e.current=r,n(),t.current=window.setTimeout(function(){e.current=null,t.current=void 0},100)},function(){return e.current}]}(),ty=(0,r.default)(tb,2),tw=ty[0],tj=ty[1];function tC(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var tk=(0,l.default)(function(e){var t,n=e.currentTarget,r=e.scrollLeft,l="rtl"===N,a="number"==typeof r?r:n.scrollLeft,o=n||eN;tj()&&tj()!==o||(tw(o),tC(a,eQ.current),tC(a,eY.current),tC(a,eZ.current),tC(a,null==(t=ts.current)?void 0:t.setScrollLeft));var i=n||eQ.current;if(i){var s=ec&&Y&&"number"==typeof eq?eq:i.scrollWidth,d=i.clientWidth;if(s===d){e4(!1),e7(!1);return}l?(e4(-a0)):(e4(a>0),e7(a1?y-R:0,pointerEvents:"auto"}),D=i.useMemo(function(){return g?M<=1:0===I||0===M||M>1},[M,I,g]);D?L.visibility="hidden":g&&(L.height=null==h?void 0:h(M));var A={};return(0===M||0===I)&&(A.rowSpan=1,A.colSpan=1),i.createElement(T,(0,u.default)({className:(0,C.default)(b,p),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:s,prefixCls:n.prefixCls,key:S,record:f,index:o,renderIndex:d,dataIndex:v,render:D?function(){return null}:x,shouldCellUpdate:r.shouldCellUpdate},N,{appendNode:E,additionalProps:(0,w.default)((0,w.default)({},_),{},{style:L},A)}))};var eR=["data","index","className","rowKey","style","extra","getHeight"],eL=x(i.forwardRef(function(e,t){var n,r=e.data,l=e.index,a=e.className,o=e.rowKey,s=e.style,d=e.extra,f=e.getHeight,m=(0,M.default)(e,eR),p=r.record,g=r.indent,h=r.index,x=c(b,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=x.scrollX,y=x.flattenColumns,k=x.prefixCls,S=x.fixColumn,N=x.componentWidth,E=c(eI,["getComponent"]).getComponent,_=H(p,o,l,g),O=E(["body","row"],"div"),$=E(["body","cell"],"div"),I=_.rowSupportExpand,P=_.expanded,R=_.rowProps,L=_.expandedRowRender,D=_.expandedRowClassName;if(I&&P){var A=L(p,l,g+1,P),K=U(D,p,l,g),B={};S&&(B={style:(0,j.default)({},"--virtual-width","".concat(N,"px"))});var F="".concat(k,"-expanded-row-cell");n=i.createElement(O,{className:(0,C.default)("".concat(k,"-expanded-row"),"".concat(k,"-expanded-row-level-").concat(g+1),K)},i.createElement(T,{component:$,prefixCls:k,className:(0,C.default)(F,(0,j.default)({},"".concat(F,"-fixed"),S)),additionalProps:B},A))}var z=(0,w.default)((0,w.default)({},s),{},{width:v});d&&(z.position="absolute",z.pointerEvents="none");var V=i.createElement(O,(0,u.default)({},R,m,{"data-row-key":o,ref:I?null:t,className:(0,C.default)(a,"".concat(k,"-row"),null==R?void 0:R.className,(0,j.default)({},"".concat(k,"-row-extra"),d)),style:(0,w.default)((0,w.default)({},z),null==R?void 0:R.style)}),y.map(function(e,t){return i.createElement(eM,{key:t,component:$,rowInfo:_,column:e,colIndex:t,indent:g,index:l,renderIndex:h,record:p,inverse:d,getHeight:f})}));return I?i.createElement("div",{ref:t},V,n):V})),eD=x(i.forwardRef(function(e,t){var n=e.data,l=e.onScroll,a=c(b,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,s=a.onColumnResize,d=a.getRowKey,u=a.expandedKeys,f=a.prefixCls,m=a.childrenColumnName,p=a.scrollX,g=a.direction,h=c(eI),x=h.sticky,v=h.scrollY,w=h.listItemHeight,j=h.getComponent,C=h.onScroll,k=i.useRef(),S=z(n,m,u,d),N=i.useMemo(function(){var e=0;return o.map(function(t){var n=t.width,r=t.minWidth,l=t.key,a=Math.max(n||0,r||0);return e+=a,[l,a,e]})},[o]),E=i.useMemo(function(){return N.map(function(e){return e[2]})},[N]);i.useEffect(function(){N.forEach(function(e){var t=(0,r.default)(e,2);s(t[0],t[1])})},[N]),i.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null==(t=k.current)||t.scrollTo(e)},nativeElement:null==(e=k.current)?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null==(e=k.current)?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null==(t=k.current)||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:function(){var e;return(null==(e=k.current)?void 0:e.getScrollInfo().y)||0},set:function(e){var t;null==(t=k.current)||t.scrollTo({top:e})}}),t});var _=function(e,t){var n=null==(l=S[t])?void 0:l.record,r=e.onCell;if(r){var l,a,o=r(n,t);return null!=(a=null==o?void 0:o.rowSpan)?a:1}return 1},O=i.useMemo(function(){return{columnsOffset:E}},[E]),$="".concat(f,"-tbody"),T=j(["body","wrapper"]),I={};return x&&(I.position="sticky",I.bottom=0,"object"===(0,y.default)(x)&&x.offsetScroll&&(I.bottom=x.offsetScroll)),i.createElement(eP.Provider,{value:O},i.createElement(eT.default,{fullHeight:!1,ref:k,prefixCls:"".concat($,"-virtual"),styles:{horizontalScrollBar:I},className:$,height:v,itemHeight:w||24,data:S,itemKey:function(e){return d(e.record)},component:T,scrollWidth:p,direction:g,onVirtualScroll:function(e){var t,n=e.x;l({currentTarget:null==(t=k.current)?void 0:t.nativeElement,scrollLeft:n})},onScroll:C,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,l=e.offsetY;if(n<0)return null;for(var a=o.filter(function(e){return 0===_(e,t)}),s=t,c=function(e){if(!(a=a.filter(function(t){return 0===_(t,e)})).length)return s=e,1},u=t;u>=0&&!c(u);u-=1);for(var f=o.filter(function(e){return 1!==_(e,n)}),m=n,p=function(e){if(!(f=f.filter(function(t){return 1!==_(t,e)})).length)return m=Math.max(e-1,n),1},g=n;g1})&&h.push(e)},v=s;v<=m;v+=1)if(x(v))continue;return h.map(function(e){var t=S[e],n=d(t.record,e),a=r(n);return i.createElement(eL,{key:e,data:t,rowKey:n,index:e,style:{top:-l+a.top},extra:!0,getHeight:function(t){var l=e+t-1,a=r(n,d(S[l].record,l));return a.bottom-a.top}})})}},function(e,t,n){var r=d(e.record,t);return i.createElement(eL,{data:e,rowKey:r,index:t,style:n.style})}))})),eA=function(e,t){var n=t.ref,r=t.onScroll;return i.createElement(eD,{ref:n,data:e,onScroll:r})},eK=i.forwardRef(function(e,t){var r=e.data,l=e.columns,a=e.scroll,o=e.sticky,s=e.prefixCls,d=void 0===s?ek:s,c=e.className,f=e.listItemHeight,m=e.components,p=e.onScroll,g=a||{},h=g.x,x=g.y;"number"!=typeof h&&(h=1),"number"!=typeof x&&(x=500);var v=(0,O.useEvent)(function(e,t){return(0,S.default)(m,e)||t}),b=(0,O.useEvent)(p),y=i.useMemo(function(){return{sticky:o,scrollY:x,listItemHeight:f,getComponent:v,onScroll:b}},[o,x,f,v,b]);return i.createElement(eI.Provider,{value:y},i.createElement(e$,(0,u.default)({},e,{className:(0,C.default)(c,"".concat(d,"-virtual")),scroll:(0,w.default)((0,w.default)({},a),{},{x:h}),components:(0,w.default)((0,w.default)({},m),{},{body:null!=r&&r.length?eA:void 0}),columns:l,internalHooks:n,tailor:!0,ref:t})))});function eB(e){return h(eK,e)}let eF=eB();e.s(["default",0,eF,"genVirtualTable",0,eB],451668),e.s([],541384),e.s(["Summary",0,L],841770),e.s(["default",0,e=>null],637134),e.s(["default",0,e=>null],550715);var ez=i.createContext(null),eH=i.createContext({});e.s(["TreeContext",0,ez,"UnstableContext",0,eH],870345);let eV=i.memo(function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,l=e.isEnd,a="".concat(t,"-indent-unit"),o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:{},f=u.initWrapper,m=u.processEntity,p=u.onProcessFinished,g=u.externalGetKey,h=u.childrenPropName,x=u.fieldNames,v=arguments.length>2?arguments[2]:void 0,b={},w={},j={posEntities:b,keyEntities:w};return f&&(j=f(j)||j),t=function(e){var t=e.node,n=e.index,r=e.pos,l=e.key,a=e.parentPos,o=e.level,i={node:t,nodes:e.nodes,index:n,key:l,pos:r,level:o},s=eX(l,r);b[r]=i,w[s]=i,i.parent=b[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i)),m&&m(i,j)},n={externalGetKey:g||v,childrenPropName:h,fieldNames:x},a=(l=("object"===(0,y.default)(n)?n:{externalGetKey:n})||{}).childrenPropName,o=l.externalGetKey,s=(i=eQ(l.fieldNames)).key,d=i.children,c=a||d,o?"string"==typeof o?r=function(e){return e[o]}:"function"==typeof o&&(r=function(e){return o(e)}):r=function(e,t){return eX(e[s],t)},function n(l,a,o,i){var s=l?l[c]:e,d=l?eG(o.pos,a):"0",u=l?[].concat((0,el.default)(i),[l]):[];if(l){var f=r(l,d);t({node:l,index:a,pos:d,key:f,parentPos:o.node?o.pos:null,level:o.level+1,nodes:u})}s&&s.forEach(function(e,t){n(e,t,{node:l,pos:d,level:o?o.level+1:-1},u)})}(null),p&&p(j),j},"convertNodePropsToEventData",0,eY,"convertTreeToData",0,function(e){return function e(t){return(0,ec.default)(t).map(function(t){if(!(t&&t.type&&t.type.isTreeNode))return(0,N.default)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,l=r.children,a=(0,M.default)(r,eq),o=(0,w.default)({key:n},a),i=e(l);return i.length&&(o.children=i),o}).filter(function(e){return e})}(e)},"fillFieldNames",0,eQ,"flattenTreeData",0,function(e,t,n){var r=eQ(n),l=r._title,a=r.key,o=r.children,i=new Set(!0===t?[]:t),s=[];return!function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(d,c){for(var u,f=eG(r?r.pos:"0",c),m=eX(d[a],f),p=0;p=0&&n.splice(r,1),n},"calcDropPosition",0,function(e,t,n,r,l,a,o,i,s,d){var c,u,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),g=p.top,h=p.height,x=(("rtl"===d?-1:1)*(((null==l?void 0:l.x)||0)-f)-12)/r,v=s.filter(function(e){var t;return null==(t=i[e])||null==(t=t.children)?void 0:t.length}),b=eW(i,n.eventKey);if(m-1.5?a({dragNode:E,dropNode:_,dropPosition:1})?k=1:O=!1:a({dragNode:E,dropNode:_,dropPosition:0})?k=0:a({dragNode:E,dropNode:_,dropPosition:1})?k=1:O=!1:a({dragNode:E,dropNode:_,dropPosition:1})?k=1:O=!1,{dropPosition:k,dropLevelOffset:S,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===k?null:(null==(u=b.parent)?void 0:u.key)||null,dropAllowed:O}},"calcSelectedKeys",0,function(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e},"conductExpandParent",0,function(e,t){var n=new Set;return(e||[]).forEach(function(e){!function e(r){if(!n.has(r)){var l=eW(t,r);if(l){n.add(r);var a=l.parent;!l.node.disabled&&a&&e(a.key)}}}(e)}),(0,el.default)(n)},"getDragChildrenKeys",0,function(e,t){var n=[];return!function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var r=t.key,l=t.children;n.push(r),e(l)})}(eW(t,e).children),n},"parseCheckedKeys",0,function(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,y.default)(e))return(0,N.default)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t},"posToArr",0,e2],769257),e.s(["conductCheck",0,function(e,t,n,r){var l,a=[];l=r||e3;var o=new Set(e.filter(function(e){var t=!!eW(n,e);return t||a.push(e),t})),i=new Map,s=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,l=i.get(r);l||(l=new Set,i.set(r,l)),l.add(t),s=Math.max(s,r)}),(0,N.default)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,n,r){for(var l=new Set(e),a=new Set,o=0;o<=n;o+=1)(t.get(o)||new Set).forEach(function(e){var t=e.key,n=e.node,a=e.children,o=void 0===a?[]:a;l.has(t)&&!r(n)&&o.filter(function(e){return!r(e.node)}).forEach(function(e){l.add(e.key)})});for(var i=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||i.has(e.parent.key))){if(r(e.parent.node))return void i.add(t.key);var n=!0,o=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=l.has(t);n&&!r&&(n=!1),!o&&(r||a.has(t))&&(o=!0)}),n&&l.add(t.key),o&&a.add(t.key),i.add(t.key)}});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(e4(a,l))}}(o,i,s,l):function(e,t,n,r,l){for(var a=new Set(e),o=new Set(t),i=0;i<=r;i+=1)(n.get(i)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)||o.has(t)||l(n)||i.filter(function(e){return!l(e.node)}).forEach(function(e){a.delete(e.key)})});o=new Set;for(var s=new Set,d=r;d>=0;d-=1)(n.get(d)||new Set).forEach(function(e){var t=e.parent;if(!(l(e.node)||!e.parent||s.has(e.parent.key))){if(l(e.parent.node))return void s.add(t.key);var n=!0,r=!1;(t.children||[]).filter(function(e){return!l(e.node)}).forEach(function(e){var t=e.key,l=a.has(t);n&&!l&&(n=!1),!r&&(l||o.has(t))&&(r=!0)}),n||a.delete(t.key),r&&o.add(t.key),s.add(t.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(e4(o,a))}}(o,t.halfCheckedKeys,i,s,l)}],946727),e.s(["useMultipleSelect",0,e=>{let[t,n]=(0,i.useState)(null);return[(0,i.useCallback)((r,l,a)=>{let o=null!=t?t:r,i=Math.min(o||0,r),s=Math.max(o||0,r),d=l.slice(i,s+1).map(e),c=d.some(e=>!a.has(e)),u=[];return d.forEach(e=>{c?(a.has(e)||u.push(e),a.add(e)):(a.delete(e),u.push(e))}),n(c?s:null),u},[t]),n]}],94844)},544195,e=>{"use strict";var t=e.i(271645),n=e.i(343794),r=e.i(981444),l=e.i(914949),a=e.i(244009),o=e.i(242064),i=e.i(321883),s=e.i(517455);let d=t.createContext(null),c=d.Provider,u=t.createContext(null),f=u.Provider;e.i(247167);var m=e.i(91874),p=e.i(611935),g=e.i(121872),h=e.i(26905),x=e.i(681216),v=e.i(937328),b=e.i(62139);e.i(296059);var y=e.i(915654),w=e.i(183293),j=e.i(246422),C=e.i(838378);let k=(0,j.genStyleHooks)("Radio",e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${(0,y.unit)(n)} ${t}`,l=(0,C.mergeToken)(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[(e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,w.resetComponent)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}})(l),(e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:l,motionDurationSlow:a,motionDurationMid:o,motionEaseInOutCirc:i,colorBgContainer:s,colorBorder:d,lineWidth:c,colorBgContainerDisabled:u,colorTextDisabled:f,paddingXS:m,dotColorDisabled:p,lineType:g,radioColor:h,radioBgColor:x,calc:v}=e,b=`${t}-inner`,j=v(l).sub(v(4).mul(2)),C=v(1).mul(l).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,w.resetComponent)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,y.unit)(c)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,w.resetComponent)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:(0,w.genFocusOutline)(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:v(1).mul(l).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(l).div(-2).equal({unit:!0}),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${i}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:s,borderColor:d,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:x,"&::after":{transform:`scale(${e.calc(e.dotSize).div(l).equal()})`,opacity:1,transition:`all ${a} ${i}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:u,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${v(j).div(l).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}})(l),(e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:l,lineType:a,colorBorder:o,motionDurationMid:i,buttonPaddingInline:s,fontSize:d,buttonBg:c,fontSizeLG:u,controlHeightLG:f,controlHeightSM:m,paddingXS:p,borderRadius:g,borderRadiusSM:h,borderRadiusLG:x,buttonCheckedBg:v,buttonSolidCheckedColor:b,colorTextDisabled:j,colorBgContainerDisabled:C,buttonCheckedBgDisabled:k,buttonCheckedColorDisabled:S,colorPrimary:N,colorPrimaryHover:E,colorPrimaryActive:_,buttonSolidCheckedBg:O,buttonSolidCheckedHoverBg:$,buttonSolidCheckedActiveBg:T,calc:I}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:d,lineHeight:(0,y.unit)(I(n).sub(I(l).mul(2)).equal()),background:c,border:`${(0,y.unit)(l)} ${a} ${o}`,borderBlockStartWidth:I(l).add(.02).equal(),borderInlineEndWidth:l,cursor:"pointer",transition:`color ${i},background ${i},box-shadow ${i}`,a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:I(l).mul(-1).equal()},"&:first-child":{borderInlineStart:`${(0,y.unit)(l)} ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:u,lineHeight:(0,y.unit)(I(f).sub(I(l).mul(2)).equal()),"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:m,paddingInline:I(p).sub(l).equal(),paddingBlock:0,lineHeight:(0,y.unit)(I(m).sub(I(l).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:N},"&:has(:focus-visible)":(0,w.genFocusOutline)(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:N,background:v,borderColor:N,"&::before":{backgroundColor:N},"&:first-child":{borderColor:N},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:b,background:O,borderColor:O,"&:hover":{color:b,background:$,borderColor:$},"&:active":{color:b,background:T,borderColor:T}},"&-disabled":{color:j,backgroundColor:C,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:j,backgroundColor:C,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:k,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}})(l)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:l,fontSizeLG:a,colorText:o,colorBgContainer:i,colorTextDisabled:s,controlItemBgActiveDisabled:d,colorTextLightSolid:c,colorPrimary:u,colorPrimaryHover:f,colorPrimaryActive:m,colorWhite:p}=e;return{radioSize:a,dotSize:t?a-8:a-(4+l)*2,dotColorDisabled:s,buttonSolidCheckedColor:c,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:m,buttonBg:i,buttonCheckedBg:i,buttonColor:o,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:s,buttonPaddingInline:n-l,wrapperMarginInlineEnd:r,radioColor:t?u:p,radioBgColor:t?i:u}},{unitless:{radioSize:!0,dotSize:!0}});var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let N=t.forwardRef((e,r)=>{var l,a;let s=t.useContext(d),c=t.useContext(u),{getPrefixCls:f,direction:y,radio:w}=t.useContext(o.ConfigContext),j=t.useRef(null),C=(0,p.composeRef)(r,j),{isFormItemInput:N}=t.useContext(b.FormItemInputContext),{prefixCls:E,className:_,rootClassName:O,children:$,style:T,title:I}=e,P=S(e,["prefixCls","className","rootClassName","children","style","title"]),M=f("radio",E),R="button"===((null==s?void 0:s.optionType)||c),L=R?`${M}-button`:M,D=(0,i.default)(M),[A,K,B]=k(M,D),F=Object.assign({},P),z=t.useContext(v.default);s&&(F.name=s.name,F.onChange=t=>{var n,r;null==(n=e.onChange)||n.call(e,t),null==(r=null==s?void 0:s.onChange)||r.call(s,t)},F.checked=e.value===s.value,F.disabled=null!=(l=F.disabled)?l:s.disabled),F.disabled=null!=(a=F.disabled)?a:z;let H=(0,n.default)(`${L}-wrapper`,{[`${L}-wrapper-checked`]:F.checked,[`${L}-wrapper-disabled`]:F.disabled,[`${L}-wrapper-rtl`]:"rtl"===y,[`${L}-wrapper-in-form-item`]:N,[`${L}-wrapper-block`]:!!(null==s?void 0:s.block)},null==w?void 0:w.className,_,O,K,B,D),[V,W]=(0,x.default)(F.onClick);return A(t.createElement(g.default,{component:"Radio",disabled:F.disabled},t.createElement("label",{className:H,style:Object.assign(Object.assign({},null==w?void 0:w.style),T),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:I,onClick:V},t.createElement(m.default,Object.assign({},F,{className:(0,n.default)(F.className,{[h.TARGET_CLS]:!R}),type:"radio",prefixCls:L,ref:C,onClick:W})),void 0!==$?t.createElement("span",{className:`${L}-label`},$):null)))});var E=e.i(286039);let _=t.forwardRef((e,d)=>{let{getPrefixCls:u,direction:f}=t.useContext(o.ConfigContext),{name:m}=t.useContext(b.FormItemInputContext),p=(0,r.default)((0,E.toNamePathStr)(m)),{prefixCls:g,className:h,rootClassName:x,options:v,buttonStyle:y="outline",disabled:w,children:j,size:C,style:S,id:_,optionType:O,name:$=p,defaultValue:T,value:I,block:P=!1,onChange:M,onMouseEnter:R,onMouseLeave:L,onFocus:D,onBlur:A}=e,[K,B]=(0,l.default)(T,{value:I}),F=t.useCallback(t=>{let n=t.target.value;"value"in e||B(n),n!==K&&(null==M||M(t))},[K,B,M]),z=u("radio",g),H=`${z}-group`,V=(0,i.default)(z),[W,U,q]=k(z,V),G=j;v&&v.length>0&&(G=v.map(e=>"string"==typeof e||"number"==typeof e?t.createElement(N,{key:e.toString(),prefixCls:z,disabled:w,value:e,checked:K===e},e):t.createElement(N,{key:`radio-group-value-options-${e.value}`,prefixCls:z,disabled:e.disabled||w,value:e.value,checked:K===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let X=(0,s.default)(C),Q=(0,n.default)(H,`${H}-${y}`,{[`${H}-${X}`]:X,[`${H}-rtl`]:"rtl"===f,[`${H}-block`]:P},h,x,U,q,V),Y=t.useMemo(()=>({onChange:F,value:K,disabled:w,name:$,optionType:O,block:P}),[F,K,w,$,O,P]);return W(t.createElement("div",Object.assign({},(0,a.default)(e,{aria:!0,data:!0}),{className:Q,style:S,onMouseEnter:R,onMouseLeave:L,onFocus:D,onBlur:A,id:_,ref:d}),t.createElement(c,{value:Y},G)))}),O=t.memo(_);var $=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let T=t.forwardRef((e,n)=>{let{getPrefixCls:r}=t.useContext(o.ConfigContext),{prefixCls:l}=e,a=$(e,["prefixCls"]),i=r("radio",l);return t.createElement(f,{value:"button"},t.createElement(N,Object.assign({prefixCls:i},a,{type:"radio",ref:n})))});N.Button=T,N.Group=O,N.__ANT_RADIO=!0,e.s(["default",0,N],544195)},291542,165370,e=>{"use strict";e.i(247167);var t=e.i(271645);e.i(541384);var n=e.i(893856),r=e.i(841770),l=e.i(637134),a=e.i(550715),o=e.i(8211),i=e.i(247153),s=e.i(343794),d=e.i(441450),c=e.i(769257),u=e.i(946727),f=e.i(825270),m=e.i(914949),p=e.i(94844),g=e.i(747656),h=e.i(374276),x=e.i(21539),v=e.i(544195);let b={},y="SELECT_ALL",w="SELECT_INVERT",j="SELECT_NONE",C=[],k=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&k(e,t[e],n)}),n);var S=e.i(642493),N=e.i(529681),E=e.i(963188);function _(e){return null!=e&&e===e.window}var O=e.i(609587),$=e.i(242064),T=e.i(721132),I=e.i(321883),P=e.i(517455),M=e.i(150073),R=e.i(87414),L=e.i(931067);let D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var A=e.i(9583),K=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:D}))});let B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var F=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:B}))}),z=e.i(801312),H=e.i(286612),V=e.i(211577),W=e.i(410160),U=e.i(209428),q=e.i(392221),G=e.i(404948),X=e.i(244009),Q=e.i(883110);let Y={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var J=[10,20,50,100];let Z=function(e){var n=e.pageSizeOptions,r=void 0===n?J:n,l=e.locale,a=e.changeSize,o=e.pageSize,i=e.goButton,s=e.quickGo,d=e.rootPrefixCls,c=e.disabled,u=e.buildOptionText,f=e.showSizeChanger,m=e.sizeChangerRender,p=t.default.useState(""),g=(0,q.default)(p,2),h=g[0],x=g[1],v=function(){return!h||Number.isNaN(h)?void 0:Number(h)},b="function"==typeof u?u:function(e){return"".concat(e," ").concat(l.items_per_page)},y=function(e){""!==h&&(e.keyCode===G.default.ENTER||"click"===e.type)&&(x(""),null==s||s(v()))},w="".concat(d,"-options");if(!f&&!s)return null;var j=null,C=null,k=null;return f&&m&&(j=m({disabled:c,size:o,onSizeChange:function(e){null==a||a(Number(e))},"aria-label":l.page_size,className:"".concat(w,"-size-changer"),options:(r.some(function(e){return e.toString()===o.toString()})?r:r.concat([o]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:b(e),value:e}})})),s&&(i&&(k="boolean"==typeof i?t.default.createElement("button",{type:"button",onClick:y,onKeyUp:y,disabled:c,className:"".concat(w,"-quick-jumper-button")},l.jump_to_confirm):t.default.createElement("span",{onClick:y,onKeyUp:y},i)),C=t.default.createElement("div",{className:"".concat(w,"-quick-jumper")},l.jump_to,t.default.createElement("input",{disabled:c,type:"text",value:h,onChange:function(e){x(e.target.value)},onKeyUp:y,onBlur:function(e){i||""===h||(x(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==s||s(v()))},"aria-label":l.page}),l.page,k)),t.default.createElement("li",{className:w},j,C)},ee=function(e){var n=e.rootPrefixCls,r=e.page,l=e.active,a=e.className,o=e.showTitle,i=e.onClick,d=e.onKeyPress,c=e.itemRender,u="".concat(n,"-item"),f=(0,s.default)(u,"".concat(u,"-").concat(r),(0,V.default)((0,V.default)({},"".concat(u,"-active"),l),"".concat(u,"-disabled"),!r),a),m=c(r,"page",t.default.createElement("a",{rel:"nofollow"},r));return m?t.default.createElement("li",{title:o?String(r):null,className:f,onClick:function(){i(r)},onKeyDown:function(e){d(e,i,r)},tabIndex:0},m):null};var et=function(e,t,n){return n};function en(){}function er(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function el(e,t,n){return Math.floor((n-1)/(void 0===e?t:e))+1}let ea=function(e){var n,r,l,a,o=e.prefixCls,i=void 0===o?"rc-pagination":o,d=e.selectPrefixCls,c=e.className,u=e.current,f=e.defaultCurrent,p=e.total,g=void 0===p?0:p,h=e.pageSize,x=e.defaultPageSize,v=e.onChange,b=void 0===v?en:v,y=e.hideOnSinglePage,w=e.align,j=e.showPrevNextJumpers,C=e.showQuickJumper,k=e.showLessItems,S=e.showTitle,N=void 0===S||S,E=e.onShowSizeChange,_=void 0===E?en:E,O=e.locale,$=void 0===O?Y:O,T=e.style,I=e.totalBoundaryShowSizeChanger,P=e.disabled,M=e.simple,R=e.showTotal,D=e.showSizeChanger,A=void 0===D?g>(void 0===I?50:I):D,K=e.sizeChangerRender,B=e.pageSizeOptions,F=e.itemRender,z=void 0===F?et:F,H=e.jumpPrevIcon,Q=e.jumpNextIcon,J=e.prevIcon,ea=e.nextIcon,eo=t.default.useRef(null),ei=(0,m.default)(10,{value:h,defaultValue:void 0===x?10:x}),es=(0,q.default)(ei,2),ed=es[0],ec=es[1],eu=(0,m.default)(1,{value:u,defaultValue:void 0===f?1:f,postState:function(e){return Math.max(1,Math.min(e,el(void 0,ed,g)))}}),ef=(0,q.default)(eu,2),em=ef[0],ep=ef[1],eg=t.default.useState(em),eh=(0,q.default)(eg,2),ex=eh[0],ev=eh[1];(0,t.useEffect)(function(){ev(em)},[em]);var eb=Math.max(1,em-(k?3:5)),ey=Math.min(el(void 0,ed,g),em+(k?3:5));function ew(n,r){var l=n||t.default.createElement("button",{type:"button","aria-label":r,className:"".concat(i,"-item-link")});return"function"==typeof n&&(l=t.default.createElement(n,(0,U.default)({},e))),l}function ej(e){var t=e.target.value,n=el(void 0,ed,g);return""===t?t:Number.isNaN(Number(t))?ex:t>=n?n:Number(t)}var eC=g>ed&&C;function ek(e){var t=ej(e);switch(t!==ex&&ev(t),e.keyCode){case G.default.ENTER:eS(t);break;case G.default.UP:eS(t-1);break;case G.default.DOWN:eS(t+1)}}function eS(e){if(er(e)&&e!==em&&er(g)&&g>0&&!P){var t=el(void 0,ed,g),n=e;return e>t?n=t:e<1&&(n=1),n!==ex&&ev(n),ep(n),null==b||b(n,ed),n}return em}var eN=em>1,eE=em2?n-2:0),l=2;lg?g:em*ed])),eD=null,eA=el(void 0,ed,g);if(y&&g<=ed)return null;var eK=[],eB={rootPrefixCls:i,onClick:eS,onKeyPress:eI,showTitle:N,itemRender:z,page:-1},eF=em-1>0?em-1:0,ez=em+1=2*eq&&3!==em&&(eK[0]=t.default.cloneElement(eK[0],{className:(0,s.default)("".concat(i,"-item-after-jump-prev"),eK[0].props.className)}),eK.unshift(eM)),eA-em>=2*eq&&em!==eA-2){var e2=eK[eK.length-1];eK[eK.length-1]=t.default.cloneElement(e2,{className:(0,s.default)("".concat(i,"-item-before-jump-next"),e2.props.className)}),eK.push(eD)}1!==eZ&&eK.unshift(t.default.createElement(ee,(0,L.default)({},eB,{key:1,page:1}))),e0!==eA&&eK.push(t.default.createElement(ee,(0,L.default)({},eB,{key:eA,page:eA})))}var e4=(n=z(eF,"prev",ew(J,"prev page")),t.default.isValidElement(n)?t.default.cloneElement(n,{disabled:!eN}):n);if(e4){var e3=!eN||!eA;e4=t.default.createElement("li",{title:N?$.prev_page:null,onClick:e_,tabIndex:e3?null:0,onKeyDown:function(e){eI(e,e_)},className:(0,s.default)("".concat(i,"-prev"),(0,V.default)({},"".concat(i,"-disabled"),e3)),"aria-disabled":e3},e4)}var e5=(r=z(ez,"next",ew(ea,"next page")),t.default.isValidElement(r)?t.default.cloneElement(r,{disabled:!eE}):r);e5&&(M?(l=!eE,a=eN?0:null):a=(l=!eE||!eA)?null:0,e5=t.default.createElement("li",{title:N?$.next_page:null,onClick:eO,tabIndex:a,onKeyDown:function(e){eI(e,eO)},className:(0,s.default)("".concat(i,"-next"),(0,V.default)({},"".concat(i,"-disabled"),l)),"aria-disabled":l},e5));var e6=(0,s.default)(i,c,(0,V.default)((0,V.default)((0,V.default)((0,V.default)((0,V.default)({},"".concat(i,"-start"),"start"===w),"".concat(i,"-center"),"center"===w),"".concat(i,"-end"),"end"===w),"".concat(i,"-simple"),M),"".concat(i,"-disabled"),P));return t.default.createElement("ul",(0,L.default)({className:e6,style:T,ref:eo},eR),eL,e4,M?eU:eK,e5,t.default.createElement(Z,{locale:$,rootPrefixCls:i,disabled:P,selectPrefixCls:void 0===d?"rc-select":d,changeSize:function(e){var t=el(e,ed,g),n=em>t&&0!==t?t:em;ec(e),ev(n),null==_||_(em,e),ep(n),null==b||b(n,e)},pageSize:ed,pageSizeOptions:B,quickGo:eC?eS:null,goButton:eW,showSizeChanger:A,sizeChangerRender:K}))};var eo=e.i(727214),ei=e.i(408850),es=e.i(327494),ed=e.i(104458);e.i(296059);var ec=e.i(915654),eu=e.i(349942),ef=e.i(517458),em=e.i(889943),ep=e.i(183293),eg=e.i(246422),eh=e.i(838378);let ex=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ef.initComponentToken)(e)),ev=e=>(0,eh.mergeToken)(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ef.initInputToken)(e)),eb=(0,eg.genStyleHooks)("Pagination",e=>{let t=ev(e);return[(e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ep.resetComponent)(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,ec.unit)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),(e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,ec.unit)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,ec.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,ec.unit)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}})(e)),(e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,ec.unit)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,ec.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,ec.unit)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,eu.genBasicInputStyle)(e)),(0,em.genBaseOutlinedStyle)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,em.genDisabledStyle)(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}})(e)),(e=>{let{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:(0,ec.unit)(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:(0,ec.unit)(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${(0,ec.unit)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,ec.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,ec.unit)(e.inputOutlineOffset)} 0 ${(0,ec.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:(0,ec.unit)(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:(0,ec.unit)(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}})(e)),(e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,ec.unit)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,ec.unit)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,ec.unit)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,ec.unit)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,ec.unit)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,ec.unit)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,eu.genInputSmallStyle)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}})(e)),(e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}})(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,ep.genFocusStyle)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,ep.genFocusOutline)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:(0,ep.genFocusOutline)(e)}}}})(t)]},ex),ey=(0,eg.genSubStyleComponent)(["Pagination","bordered"],e=>(e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,ec.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(ev(e)),ex);function ew(e){return(0,t.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}var ej=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let eC=e=>{let{align:n,prefixCls:r,selectPrefixCls:l,className:a,rootClassName:o,style:i,size:d,locale:c,responsive:u,showSizeChanger:f,selectComponentClass:m,pageSizeOptions:p}=e,g=ej(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=(0,M.default)(u),[,x]=(0,ed.useToken)(),{getPrefixCls:v,direction:b,showSizeChanger:y,className:w,style:j}=(0,$.useComponentConfig)("pagination"),C=v("pagination",r),[k,S,N]=eb(C),E=(0,P.default)(d),_="small"===E||!!(h&&!E&&u),[O]=(0,ei.useLocale)("Pagination",eo.default),T=Object.assign(Object.assign({},O),c),[I,R]=ew(f),[L,D]=ew(y),A=null!=R?R:D,B=m||es.default,V=t.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]),W=t.useMemo(()=>{let e=t.createElement("span",{className:`${C}-item-ellipsis`},"•••"),n=t.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?t.createElement(H.default,null):t.createElement(z.default,null)),r=t.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===b?t.createElement(z.default,null):t.createElement(H.default,null));return{prevIcon:n,nextIcon:r,jumpPrevIcon:t.createElement("a",{className:`${C}-item-link`},t.createElement("div",{className:`${C}-item-container`},"rtl"===b?t.createElement(F,{className:`${C}-item-link-icon`}):t.createElement(K,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:t.createElement("a",{className:`${C}-item-link`},t.createElement("div",{className:`${C}-item-container`},"rtl"===b?t.createElement(K,{className:`${C}-item-link-icon`}):t.createElement(F,{className:`${C}-item-link-icon`}),e))}},[b,C]),U=v("select",l),q=(0,s.default)({[`${C}-${n}`]:!!n,[`${C}-mini`]:_,[`${C}-rtl`]:"rtl"===b,[`${C}-bordered`]:x.wireframe},w,a,o,S,N),G=Object.assign(Object.assign({},j),i);return k(t.createElement(t.Fragment,null,x.wireframe&&t.createElement(ey,{prefixCls:C}),t.createElement(ea,Object.assign({},W,g,{style:G,prefixCls:C,selectPrefixCls:U,className:q,locale:T,pageSizeOptions:V,showSizeChanger:null!=I?I:L,sizeChangerRender:e=>{var n;let{disabled:r,size:l,onSizeChange:a,"aria-label":o,className:i,options:d}=e,{className:c,onChange:u}=A||{},f=null==(n=d.find(e=>String(e.value)===String(l)))?void 0:n.value;return t.createElement(B,Object.assign({disabled:r,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":o,options:d},A,{value:f,onChange:(e,t)=>{null==a||a(e),null==u||u(e,t)},size:_?"small":"middle",className:(0,s.default)(i,c)}))}}))))};e.s(["default",0,eC],165370);var ek=e.i(244451);let eS=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function eN(e,t){return t?`${t}-${e}`:`${e}`}let eE=(e,t)=>"function"==typeof e?e(t):e,e_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var eO=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:e_}))}),e$=e.i(929123),eT=e.i(887719),eI=e.i(149809),eP=e.i(920228),eM=e.i(616303),eR=e.i(60699),eL=e.i(652199),eD=e.i(278409),eA=e.i(233848),eK=e.i(971151),eB=e.i(868917),eF=e.i(674813),ez=e.i(870345);function eH(e){if(null==e)throw TypeError("Cannot destructure "+e)}var eV=e.i(703923),eW=e.i(174428),eU=e.i(323002),eq=e.i(361275),eG=e.i(405979);let eX=function(e,n){var r=t.useState(!1),l=(0,q.default)(r,2),a=l[0],o=l[1];(0,eW.default)(function(){if(a)return e(),function(){n()}},[a]),(0,eW.default)(function(){return o(!0),function(){o(!1)}},[])};var eQ=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],eY=t.forwardRef(function(e,n){var r=e.className,l=e.style,a=e.motion,o=e.motionNodes,i=e.motionType,d=e.onMotionStart,c=e.onMotionEnd,u=e.active,m=e.treeNodeRequiredProps,p=(0,eV.default)(e,eQ),g=t.useState(!0),h=(0,q.default)(g,2),x=h[0],v=h[1],b=t.useContext(ez.TreeContext).prefixCls,y=o&&"hide"!==i;(0,eW.default)(function(){o&&y!==x&&v(y)},[o]);var w=t.useRef(!1),j=function(){o&&!w.current&&(w.current=!0,c())};return(eX(function(){o&&d()},j),o)?t.createElement(eq.default,(0,L.default)({ref:n,visible:x},a,{motionAppear:"show"===i,onVisibleChanged:function(e){y===e&&j()}}),function(e,n){var r=e.className,l=e.style;return t.createElement("div",{ref:n,className:(0,s.default)("".concat(b,"-treenode-motion"),r),style:l},o.map(function(e){var n=Object.assign({},(eH(e.data),e.data)),r=e.title,l=e.key,a=e.isStart,o=e.isEnd;delete n.children;var i=(0,f.getTreeNodeProps)(l,m);return t.createElement(eG.default,(0,L.default)({},n,i,{title:r,active:u,data:e.data,key:l,isStart:a,isEnd:o}))}))}):t.createElement(eG.default,(0,L.default)({domRef:n,className:r,style:l},p,{active:u}))});function eJ(e,t,n){var r=e.findIndex(function(e){return e.key===n}),l=e[r+1],a=t.findIndex(function(e){return e.key===n});if(l){var o=t.findIndex(function(e){return e.key===l.key});return t.slice(a+1,o)}return t.slice(a+1)}var eZ=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],e0={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},e1=function(){},e2="RC_TREE_MOTION_".concat(Math.random()),e4={key:e2},e3={key:e2,level:0,index:0,pos:"0",node:e4,nodes:[e4]},e5={parent:null,children:[],pos:e3.pos,data:e4,title:null,key:e2,isStart:[],isEnd:[]};function e6(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function e7(e){var t=e.key,n=e.pos;return(0,f.getKey)(t,n)}var e8=t.forwardRef(function(e,n){var r=e.prefixCls,l=e.data,a=(e.selectable,e.checkable,e.expandedKeys),o=e.selectedKeys,i=e.checkedKeys,s=e.loadedKeys,d=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,m=e.disabled,p=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,x=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,w=e.scrollWidth,j=e.focusable,C=e.activeItem,k=e.focused,S=e.tabIndex,N=e.onKeyDown,E=e.onFocus,_=e.onBlur,O=e.onActiveChange,$=e.onListChangeStart,T=e.onListChangeEnd,I=(0,eV.default)(e,eZ),P=t.useRef(null),M=t.useRef(null);t.useImperativeHandle(n,function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return M.current.offsetWidth}}});var R=t.useState(a),D=(0,q.default)(R,2),A=D[0],K=D[1],B=t.useState(l),F=(0,q.default)(B,2),z=F[0],H=F[1],V=t.useState(l),W=(0,q.default)(V,2),U=W[0],G=W[1],X=t.useState([]),Q=(0,q.default)(X,2),Y=Q[0],J=Q[1],Z=t.useState(null),ee=(0,q.default)(Z,2),et=ee[0],en=ee[1],er=t.useRef(l);function el(){var e=er.current;H(e),G(e),J([]),en(null),T()}er.current=l,(0,eW.default)(function(){K(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function l(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n ").concat(t);return t}(C)),t.createElement("div",null,t.createElement("input",{style:e0,disabled:!1===j||m,tabIndex:!1!==j?S:null,onKeyDown:N,onFocus:E,onBlur:_,value:"",onChange:e1,"aria-label":"for screen reader"})),t.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},t.createElement("div",{className:"".concat(r,"-indent")},t.createElement("div",{ref:M,className:"".concat(r,"-indent-unit")}))),t.createElement(eU.default,(0,L.default)({},I,{data:ea,itemKey:e7,height:v,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:w,prefixCls:"".concat(r,"-list"),ref:P,role:"tree",onVisibleChange:function(e){e.every(function(e){return e7(e)!==e2})&&el()}}),function(e){var n=e.pos,r=Object.assign({},(eH(e.data),e.data)),l=e.title,a=e.key,o=e.isStart,i=e.isEnd,s=(0,f.getKey)(a,n);delete r.key,delete r.children;var d=(0,f.getTreeNodeProps)(s,eo);return t.createElement(eY,(0,L.default)({},r,d,{title:l,active:!!C&&a===C.key,pos:n,data:e.data,isStart:o,isEnd:i,motion:x,motionNodes:a===e2?Y:null,motionType:et,onMotionStart:$,onMotionEnd:el,treeNodeRequiredProps:eo,onMouseMove:function(){O(null)}}))}))}),e9=e.i(699018),te=function(e){(0,eB.default)(r,e);var n=(0,eF.default)(r);function r(){var e;(0,eD.default)(this,r);for(var l=arguments.length,a=Array(l),i=0;i2&&void 0!==arguments[2]&&arguments[2],a=e.state,o=a.dragChildrenKeys,i=a.dropPosition,s=a.dropTargetKey,d=a.dropTargetPos;if(a.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var m=(0,U.default)((0,U.default)({},(0,f.getTreeNodeProps)(s,e.getTreeNodeRequiredProps())),{},{active:(null==(r=e.getActiveItem())?void 0:r.key)===s,data:(0,e9.default)(e.state.keyEntities,s).node}),p=o.includes(s);(0,Q.default)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=(0,c.posToArr)(d),h={event:t,node:(0,f.convertNodePropsToEventData)(m),dragNode:e.dragNodeProps?(0,f.convertNodePropsToEventData)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(o),dropToGap:0!==i,dropPosition:i+Number(g[g.length-1])};l||null==u||u(h),e.dragNodeProps=null}}}),(0,V.default)((0,eK.default)(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),(0,V.default)((0,eK.default)(e),"triggerExpandActionExpand",function(t,n){var r=e.state,l=r.expandedKeys,a=r.flattenNodes,o=n.expanded,i=n.key;if(!n.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var s=a.filter(function(e){return e.key===i})[0],d=(0,f.convertNodePropsToEventData)((0,U.default)((0,U.default)({},(0,f.getTreeNodeProps)(i,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(o?(0,c.arrDel)(l,i):(0,c.arrAdd)(l,i)),e.onNodeExpand(t,d)}}),(0,V.default)((0,eK.default)(e),"onNodeClick",function(t,n){var r=e.props,l=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==l||l(t,n)}),(0,V.default)((0,eK.default)(e),"onNodeDoubleClick",function(t,n){var r=e.props,l=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==l||l(t,n)}),(0,V.default)((0,eK.default)(e),"onNodeSelect",function(t,n){var r=e.state.selectedKeys,l=e.state,a=l.keyEntities,o=l.fieldNames,i=e.props,s=i.onSelect,d=i.multiple,u=n.selected,f=n[o.key],m=!u,p=(r=m?d?(0,c.arrAdd)(r,f):[f]:(0,c.arrDel)(r,f)).map(function(e){var t=(0,e9.default)(a,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==s||s(r,{event:"select",selected:m,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})}),(0,V.default)((0,eK.default)(e),"onNodeCheck",function(t,n,r){var l,a=e.state,i=a.keyEntities,s=a.checkedKeys,d=a.halfCheckedKeys,f=e.props,m=f.checkStrictly,p=f.onCheck,g=n.key,h={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(m){var x=r?(0,c.arrAdd)(s,g):(0,c.arrDel)(s,g);l={checked:x,halfChecked:(0,c.arrDel)(d,g)},h.checkedNodes=x.map(function(e){return(0,e9.default)(i,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:x})}else{var v=(0,u.conductCheck)([].concat((0,o.default)(s),[g]),!0,i),b=v.checkedKeys,y=v.halfCheckedKeys;if(!r){var w=new Set(b);w.delete(g);var j=(0,u.conductCheck)(Array.from(w),{checked:!1,halfCheckedKeys:y},i);b=j.checkedKeys,y=j.halfCheckedKeys}l=b,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=y,b.forEach(function(e){var t=(0,e9.default)(i,e);if(t){var n=t.node,r=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:r})}}),e.setUncontrolledState({checkedKeys:b},!1,{halfCheckedKeys:y})}null==p||p(l,h)}),(0,V.default)((0,eK.default)(e),"onNodeLoad",function(t){var n,r=t.key,l=e.state.keyEntities,a=(0,e9.default)(l,r);if(null==a||null==(n=a.children)||!n.length){var o=new Promise(function(n,l){e.setState(function(a){var o=a.loadedKeys,i=a.loadingKeys,s=void 0===i?[]:i,d=e.props,u=d.loadData,f=d.onLoad;return!u||(void 0===o?[]:o).includes(r)||s.includes(r)?null:(u(t).then(function(){var l=e.state.loadedKeys,a=(0,c.arrAdd)(l,r);null==f||f(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState(function(e){return{loadingKeys:(0,c.arrDel)(e.loadingKeys,r)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:(0,c.arrDel)(e.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var a=e.state.loadedKeys;(0,Q.default)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,c.arrAdd)(a,r)}),n()}l(t)}),{loadingKeys:(0,c.arrAdd)(s,r)})})});return o.catch(function(){}),o}}),(0,V.default)((0,eK.default)(e),"onNodeMouseEnter",function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})}),(0,V.default)((0,eK.default)(e),"onNodeMouseLeave",function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})}),(0,V.default)((0,eK.default)(e),"onNodeContextMenu",function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))}),(0,V.default)((0,eK.default)(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=Array(n),l=0;l1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var l=!1,a=!0,o={};Object.keys(t).forEach(function(n){if(e.props.hasOwnProperty(n)){a=!1;return}l=!0,o[n]=t[n]}),l&&(!n||a)&&e.setState((0,U.default)((0,U.default)({},o),r))}}),(0,V.default)((0,eK.default)(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return(0,eA.default)(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:void 0===n?0:n}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n=this.state,r=n.focused,l=n.flattenNodes,a=n.keyEntities,o=n.draggingNodeKey,i=n.activeKey,d=n.dropLevelOffset,c=n.dropContainerKey,u=n.dropTargetKey,f=n.dropPosition,m=n.dragOverNodeKey,p=n.indent,g=this.props,h=g.prefixCls,x=g.className,v=g.style,b=g.showLine,y=g.focusable,w=g.tabIndex,j=g.selectable,C=g.showIcon,k=g.icon,S=g.switcherIcon,N=g.draggable,E=g.checkable,_=g.checkStrictly,O=g.disabled,$=g.motion,T=g.loadData,I=g.filterTreeNode,P=g.height,M=g.itemHeight,R=g.scrollWidth,D=g.virtual,A=g.titleRender,K=g.dropIndicatorRender,B=g.onContextMenu,F=g.onScroll,z=g.direction,H=g.rootClassName,U=g.rootStyle,q=(0,X.default)(this.props,{aria:!0,data:!0});N&&(e="object"===(0,W.default)(N)?N:"function"==typeof N?{nodeDraggable:N}:{});var G={prefixCls:h,selectable:j,showIcon:C,icon:k,switcherIcon:S,draggable:e,draggingNodeKey:o,checkable:E,checkStrictly:_,disabled:O,keyEntities:a,dropLevelOffset:d,dropContainerKey:c,dropTargetKey:u,dropPosition:f,dragOverNodeKey:m,indent:p,direction:z,dropIndicatorRender:K,loadData:T,filterTreeNode:I,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return t.createElement(ez.TreeContext.Provider,{value:G},t.createElement("div",{className:(0,s.default)(h,x,H,(0,V.default)((0,V.default)((0,V.default)({},"".concat(h,"-show-line"),b),"".concat(h,"-focused"),r),"".concat(h,"-active-focused"),null!==i)),style:U},t.createElement(e8,(0,L.default)({ref:this.listRef,prefixCls:h,style:v,data:l,disabled:O,selectable:j,checkable:!!E,motion:$,dragging:null!==o,height:P,itemHeight:M,virtual:D,focusable:y,focused:r,tabIndex:void 0===w?0:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:F,scrollWidth:R},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r,l=t.prevProps,a={prevProps:e};function o(t){return!l&&e.hasOwnProperty(t)||l&&l[t]!==e[t]}var i=t.fieldNames;if(o("fieldNames")&&(a.fieldNames=i=(0,f.fillFieldNames)(e.fieldNames)),o("treeData")?n=e.treeData:o("children")&&((0,Q.default)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,f.convertTreeToData)(e.children)),n){a.treeData=n;var s=(0,f.convertDataToEntities)(n,{fieldNames:i});a.keyEntities=(0,U.default)((0,V.default)({},e2,e3),s.keyEntities)}var d=a.keyEntities||t.keyEntities;if(o("expandedKeys")||l&&o("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!l&&e.defaultExpandParent?(0,c.conductExpandParent)(e.expandedKeys,d):e.expandedKeys;else if(!l&&e.defaultExpandAll){var m=(0,U.default)({},d);delete m[e2];var p=[];Object.keys(m).forEach(function(e){var t=m[e];t.children&&t.children.length&&p.push(t.key)}),a.expandedKeys=p}else!l&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,c.conductExpandParent)(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,n||a.expandedKeys){var g=(0,f.flattenTreeData)(n||t.treeData,a.expandedKeys||t.expandedKeys,i);a.flattenNodes=g}if(e.selectable&&(o("selectedKeys")?a.selectedKeys=(0,c.calcSelectedKeys)(e.selectedKeys,e):!l&&e.defaultSelectedKeys&&(a.selectedKeys=(0,c.calcSelectedKeys)(e.defaultSelectedKeys,e))),e.checkable&&(o("checkedKeys")?r=(0,c.parseCheckedKeys)(e.checkedKeys)||{}:!l&&e.defaultCheckedKeys?r=(0,c.parseCheckedKeys)(e.defaultCheckedKeys)||{}:n&&(r=(0,c.parseCheckedKeys)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),r)){var h=r,x=h.checkedKeys,v=void 0===x?[]:x,b=h.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var w=(0,u.conductCheck)(v,!0,d);v=w.checkedKeys,y=w.halfCheckedKeys}a.checkedKeys=v,a.halfCheckedKeys=y}return o("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),r}(t.Component);(0,V.default)(te,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,r=e.dropLevelOffset,l=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case -1:a.top=0,a.left=-r*l;break;case 1:a.bottom=0,a.left=-r*l;break;case 0:a.bottom=0,a.left=l}return t.default.createElement("div",{style:a})},allowDrop:function(){return!0},expandAction:!1}),(0,V.default)(te,"TreeNode",eG.default);let tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var tn=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tt}))});let tr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var tl=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tr}))}),ta=e.i(366845);let to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var ti=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:to}))}),ts=e.i(613541),td=e.i(937328),tc=e.i(694758),tu=e.i(236836),tf=e.i(447580);let tm=new tc.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),tp=(0,eg.genStyleHooks)("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:(0,tu.getStyle)(`${t}-checkbox`,e)},((e,t,n=!0)=>{let r=`.${e}`,l=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),o=(0,eh.mergeToken)(t,{treeCls:r,treeNodeCls:l,treeNodePadding:a});return[((e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:l,titleHeight:a,indentSize:o,nodeSelectedBg:i,nodeHoverBg:s,colorTextQuaternary:d,controlItemBgActiveDisabled:c}=t;return{[n]:Object.assign(Object.assign({},(0,ep.resetComponent)(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:(0,ep.genFocusOutline)(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:tm,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:l,lineHeight:(0,ec.unit)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:l},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:c},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},{[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(l).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},{[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,ec.unit)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),{"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(l).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,ec.unit)(t.calc(a).div(2).equal())} !important`}})}})(e,o),n&&(({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:l,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${l}`,content:'""',borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}))(o)].filter(Boolean)})(t,e),(0,tf.genCollapseMotion)(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),tg=function(e){let{dropPosition:n,dropLevelOffset:r,prefixCls:l,indent:a,direction:o="ltr"}=e,i="ltr"===o?"left":"right",s={[i]:-r*a+4,["ltr"===o?"right":"left"]:0};switch(n){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[i]=a+4}return t.default.createElement("div",{style:s,className:`${l}-drop-indicator`})},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var tx=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:th}))}),tv=e.i(739295);let tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var ty=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tb}))});let tw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var tj=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tw}))}),tC=e.i(763731);let tk=e=>{var n,r;let l,{prefixCls:a,switcherIcon:o,treeNodeProps:i,showLine:d,switcherLoadingIcon:c}=e,{isLeaf:u,expanded:f,loading:m}=i;if(m)return t.isValidElement(c)?c:t.createElement(tv.default,{className:`${a}-switcher-loading-icon`});if(d&&"object"==typeof d&&(l=d.showLeafIcon),u){if(!d)return null;if("boolean"!=typeof l&&l){let e="function"==typeof l?l(i):l,r=`${a}-switcher-line-custom-icon`;return t.isValidElement(e)?(0,tC.cloneElement)(e,{className:(0,s.default)(null==(n=e.props)?void 0:n.className,r)}):e}return l?t.createElement(tn,{className:`${a}-switcher-line-icon`}):t.createElement("span",{className:`${a}-switcher-leaf-line`})}let p=`${a}-switcher-icon`,g="function"==typeof o?o(i):o;return t.isValidElement(g)?(0,tC.cloneElement)(g,{className:(0,s.default)(null==(r=g.props)?void 0:r.className,p)}):void 0!==g?g:d?f?t.createElement(ty,{className:`${a}-switcher-line-icon`}):t.createElement(tj,{className:`${a}-switcher-line-icon`}):t.createElement(tx,{className:p})},tS=t.default.forwardRef((e,n)=>{var r;let{getPrefixCls:l,direction:a,virtual:o,tree:i}=t.default.useContext($.ConfigContext),{prefixCls:d,className:c,showIcon:u=!1,showLine:f,switcherIcon:m,switcherLoadingIcon:p,blockNode:g=!1,children:h,checkable:x=!1,selectable:v=!0,draggable:b,disabled:y,motion:w,style:j}=e,C=l("tree",d),k=l(),S=t.default.useContext(td.default),N=null!=y?y:S,E=null!=w?w:Object.assign(Object.assign({},(0,ts.default)(k)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:x,selectable:v,showIcon:u,motion:E,blockNode:g,disabled:N,showLine:!!f,dropIndicatorRender:tg}),[O,T,I]=tp(C),[,P]=(0,ed.useToken)(),M=P.paddingXS/2+((null==(r=P.Tree)?void 0:r.titleHeight)||P.controlHeightSM),R=t.default.useMemo(()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||t.default.createElement(ti,null)),e},[b]);return O(t.default.createElement(te,Object.assign({itemHeight:M,ref:n,virtual:o},_,{style:Object.assign(Object.assign({},null==i?void 0:i.style),j),prefixCls:C,className:(0,s.default)({[`${C}-icon-hide`]:!u,[`${C}-block-node`]:g,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===a,[`${C}-disabled`]:N},null==i?void 0:i.className,c,T,I),direction:a,checkable:x?t.default.createElement("span",{className:`${C}-checkbox-inner`}):x,selectable:v,switcherIcon:e=>t.default.createElement(tk,{prefixCls:C,switcherIcon:m,switcherLoadingIcon:p,treeNodeProps:e,showLine:f}),draggable:R}),h))});function tN(e,t,n){let{key:r,children:l}=n;e.forEach(function(e){let a=e[r],o=e[l];!1!==t(a,e)&&tN(o||[],t,n)})}var tE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};function t_(e){let{isLeaf:n,expanded:r}=e;return n?t.createElement(tn,null):r?t.createElement(tl,null):t.createElement(ta.default,null)}function tO({treeData:e,children:t}){return e||(0,f.convertTreeToData)(t)}let t$=t.forwardRef((e,n)=>{var{defaultExpandAll:r,defaultExpandParent:l,defaultExpandedKeys:a}=e,i=tE(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);let d=t.useRef(null),u=t.useRef(null),[m,p]=t.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[g,h]=t.useState(()=>(()=>{let{keyEntities:e}=(0,f.convertDataToEntities)(tO(i),{fieldNames:i.fieldNames});return r?Object.keys(e):l?(0,c.conductExpandParent)(i.expandedKeys||a||[],e):i.expandedKeys||a||[]})());t.useEffect(()=>{"selectedKeys"in i&&p(i.selectedKeys)},[i.selectedKeys]),t.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);let{getPrefixCls:x,direction:v}=t.useContext($.ConfigContext),{prefixCls:b,className:y,showIcon:w=!0,expandAction:j="click"}=i,C=tE(i,["prefixCls","className","showIcon","expandAction"]),k=x("tree",b),S=(0,s.default)(`${k}-directory`,{[`${k}-directory-rtl`]:"rtl"===v},y);return t.createElement(tS,Object.assign({icon:t_,ref:n,blockNode:!0},C,{showIcon:w,expandAction:j,prefixCls:k,className:S,expandedKeys:g,selectedKeys:m,onSelect:(e,t)=>{var n,r,l,a;let s,c,m,{multiple:h,fieldNames:x}=i,{node:v,nativeEvent:b}=t,{key:y=""}=v,w=tO(i),j=Object.assign(Object.assign({},t),{selected:!0}),C=(null==b?void 0:b.ctrlKey)||(null==b?void 0:b.metaKey),k=null==b?void 0:b.shiftKey;h&&C?(m=e,d.current=y,u.current=m):h&&k?m=Array.from(new Set([].concat((0,o.default)(u.current||[]),(0,o.default)(function({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:l}){let a=[],o=0;return n&&n===r?[n]:n&&r?(tN(e,e=>{if(2===o)return!1;if(e===n||e===r){if(a.push(e),0===o)o=1;else if(1===o)return o=2,!1}else 1===o&&a.push(e);return t.includes(e)},(0,f.fillFieldNames)(l)),a):[]}({treeData:w,expandedKeys:g,startKey:y,endKey:d.current,fieldNames:x}))))):(m=[y],d.current=y,u.current=m),r=w,l=m,a=x,s=(0,o.default)(l),c=[],tN(r,(e,t)=>{let n=s.indexOf(e);return -1!==n&&(c.push(t),s.splice(n,1)),!!s.length},(0,f.fillFieldNames)(a)),j.selectedNodes=c,null==(n=i.onSelect)||n.call(i,m,j),"selectedKeys"in i||p(m)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||h(e),null==(n=i.onExpand)?void 0:n.call(i,e,t)}}))});tS.DirectoryTree=t$,tS.TreeNode=eG.default;var tT=e.i(38953),tI=e.i(90635);let tP=e=>{let{value:n,filterSearch:r,tablePrefixCls:l,locale:a,onChange:o}=e;return r?t.createElement("div",{className:`${l}-filter-dropdown-search`},t.createElement(tI.default,{prefix:t.createElement(tT.default,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:n,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},tM=e=>{let{keyCode:t}=e;t===G.default.ENTER&&e.stopPropagation()},tR=t.forwardRef((e,n)=>t.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:tM,ref:n},e.children));function tL(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat((0,o.default)(t),(0,o.default)(tL(n))))}),t}function tD(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}let tA=e=>{var n,r,l,a;let o,i,{tablePrefixCls:d,prefixCls:c,column:u,dropdownPrefixCls:f,columnKey:m,filterOnClose:p,filterMultiple:g,filterMode:b="menu",filterSearch:y=!1,filterState:w,triggerFilter:j,locale:C,children:k,getPopupContainer:S,rootClassName:N}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:_,filterDropdownProps:O={},filterDropdownOpen:T,filterDropdownVisible:I,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:M}=u,[R,L]=t.useState(!1),D=!!(w&&((null==(n=w.filteredKeys)?void 0:n.length)||w.forceFiltered)),A=e=>{var t;L(e),null==(t=O.onOpenChange)||t.call(O,e),null==M||M(e),null==P||P(e)},K=null!=(a=null!=(l=null!=(r=O.open)?r:T)?l:I)?a:R,B=null==w?void 0:w.filteredKeys,[F,z]=(e=>{let n=t.useRef(e),[,r]=(0,eI.useForceUpdate)();return[()=>n.current,e=>{n.current=e,r()}]})(B||[]),H=({selectedKeys:e})=>{z(e)},V=(e,{node:t,checked:n})=>{g?H({selectedKeys:e}):H({selectedKeys:n&&t.key?[t.key]:[]})};t.useEffect(()=>{R&&H({selectedKeys:B||[]})},[B]);let[W,U]=t.useState([]),q=e=>{U(e)},[G,X]=t.useState(""),Q=e=>{let{value:t}=e.target;X(t)};t.useEffect(()=>{R||X("")},[R]);let Y=e=>{let t=(null==e?void 0:e.length)?e:null;if(null===t&&(!w||!w.filteredKeys)||(0,e$.default)(t,null==w?void 0:w.filteredKeys,!0))return null;j({column:u,key:m,filteredKeys:t})},J=()=>{A(!1),Y(F())},Z=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&Y([]),t&&A(!1),X(""),E?z((_||[]).map(e=>String(e))):z([])},ee=(0,s.default)({[`${f}-menu-without-submenu`]:!(u.filters||[]).some(({children:e})=>e)}),et=e=>{e.target.checked?z(tL(null==u?void 0:u.filters).map(e=>String(e))):z([])},en=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=en({filters:e.children})),r}),er=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null==(t=e.children)?void 0:t.map(e=>er(e)))||[]})},{direction:el,renderEmpty:ea}=t.useContext($.ConfigContext);if("function"==typeof u.filterDropdown)o=u.filterDropdown({prefixCls:`${f}-custom`,setSelectedKeys:e=>H({selectedKeys:e}),selectedKeys:F(),confirm:({closeDropdown:e}={closeDropdown:!0})=>{e&&A(!1),Y(F())},clearFilters:Z,filters:u.filters,visible:K,close:()=>{A(!1)}});else if(u.filterDropdown)o=u.filterDropdown;else{let e=F()||[];o=t.createElement(t.Fragment,null,(()=>{var n,r;let l=null!=(n=null==ea?void 0:ea("Table.filter"))?n:t.createElement(eM.default,{image:eM.default.PRESENTED_IMAGE_SIMPLE,description:C.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(u.filters||[]).length)return l;if("tree"===b)return t.createElement(t.Fragment,null,t.createElement(tP,{filterSearch:y,value:G,onChange:Q,tablePrefixCls:d,locale:C}),t.createElement("div",{className:`${d}-filter-dropdown-tree`},g?t.createElement(h.default,{checked:e.length===tL(u.filters).length,indeterminate:e.length>0&&e.length"function"==typeof y?y(G,er(e)):tD(G,e.title):void 0})));let a=function e({filters:n,prefixCls:r,filteredKeys:l,filterMultiple:a,searchValue:o,filterSearch:i}){return n.map((n,s)=>{let d=String(n.value);if(n.children)return{key:d||s,label:n.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:n.children,prefixCls:r,filteredKeys:l,filterMultiple:a,searchValue:o,filterSearch:i})};let c=a?h.default:v.default,u={key:void 0!==n.value?d:s,label:t.createElement(t.Fragment,null,t.createElement(c,{checked:l.includes(d)}),t.createElement("span",null,n.text))};return o.trim()?"function"==typeof i?i(o,n)?u:null:tD(o,n.text)?u:null:u})}({filters:u.filters||[],filterSearch:y,prefixCls:c,filteredKeys:F(),filterMultiple:g,searchValue:G}),o=a.every(e=>null===e);return t.createElement(t.Fragment,null,t.createElement(tP,{filterSearch:y,value:G,onChange:Q,tablePrefixCls:d,locale:C}),o?l:t.createElement(eR.default,{selectable:!0,multiple:g,prefixCls:`${f}-menu`,className:ee,onSelect:H,onDeselect:H,selectedKeys:e,getPopupContainer:S,openKeys:W,onOpenChange:q,items:a}))})(),t.createElement("div",{className:`${c}-dropdown-btns`},t.createElement(eP.default,{type:"link",size:"small",disabled:E?(0,e$.default)((_||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>Z()},C.filterReset),t.createElement(eP.default,{type:"primary",size:"small",onClick:J},C.filterConfirm)))}u.filterDropdown&&(o=t.createElement(eL.OverrideProvider,{selectable:void 0},o)),o=t.createElement(tR,{className:`${c}-dropdown`},o);let eo=(0,eT.default)({trigger:["click"],placement:"rtl"===el?"bottomLeft":"bottomRight",children:(i="function"==typeof u.filterIcon?u.filterIcon(D):u.filterIcon?u.filterIcon:t.createElement(eO,null),t.createElement("span",{role:"button",tabIndex:-1,className:(0,s.default)(`${c}-trigger`,{active:D}),onClick:e=>{e.stopPropagation()}},i)),getPopupContainer:S},Object.assign(Object.assign({},O),{rootClassName:(0,s.default)(N,O.rootClassName),open:K,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==B&&z(B||[]),A(e),e||u.filterDropdown||!p||J())},popupRender:()=>"function"==typeof(null==O?void 0:O.dropdownRender)?O.dropdownRender(o):o}));return t.createElement("div",{className:`${c}-column`},t.createElement("span",{className:`${d}-column-title`},k),t.createElement(x.default,Object.assign({},eo)))},tK=(e,t,n)=>{let r=[];return(e||[]).forEach((e,l)=>{var a;let i=eN(l,n),s=void 0!==e.filterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!=(a=null==t?void 0:t.map(String))?a:t),r.push({column:e,key:eS(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:eS(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,o.default)(r),(0,o.default)(tK(e.children,t,i))))}),r},tB=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let{filters:l,filterDropdown:a}=r;if(a)t[e]=n||null;else if(Array.isArray(n)){let r=tL(l);t[e]=r.filter(e=>n.includes(String(e)))}else t[e]=null}),t},tF=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:l,filters:a},filteredKeys:o}=r;return l&&o&&o.length?e.map(e=>Object.assign({},e)).filter(e=>o.some(r=>{let o=tL(a),i=o.findIndex(e=>String(e)===String(r)),s=-1!==i?o[i]:r;return e[n]&&(e[n]=tF(e[n],t,n)),l(s,e)})):e},e),tz=e=>e.flatMap(e=>"children"in e?[e].concat((0,o.default)(tz(e.children||[]))):[e]);var tH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let tV=function(e,n,r){let l=r&&"object"==typeof r?r:{},{total:a=0}=l,o=tH(l,["total"]),[i,s]=(0,t.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),d=(0,eT.default)(i,o,{total:a>0?a:e}),c=Math.ceil((a||e)/d.pageSize);d.current>c&&(d.current=c||1);let u=(e,t)=>{s({current:null!=e?e:1,pageSize:t||d.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:(e,t)=>{var l;r&&(null==(l=r.onChange)||l.call(r,e,t)),u(e,t),n(e,t||(null==d?void 0:d.pageSize))}}),u]},tW={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var tU=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tW}))});let tq={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var tG=t.forwardRef(function(e,n){return t.createElement(A.default,(0,L.default)({},e,{ref:n,icon:tq}))}),tX=e.i(491816);let tQ="ascend",tY="descend",tJ=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,tZ=e=>"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare,t0=(e,t,n)=>{let r=[],l=(e,t)=>{r.push({column:e,key:eS(e,t),multiplePriority:tJ(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let i=eN(a,n);e.children?("sortOrder"in e&&l(e,i),r=[].concat((0,o.default)(r),(0,o.default)(t0(e.children,t,i)))):e.sorter&&("sortOrder"in e?l(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:eS(e,i),multiplePriority:tJ(e),sortOrder:e.defaultSortOrder}))}),r},t1=(e,n,r,l,a,o,i,d)=>(n||[]).map((n,c)=>{let u=eN(c,d),f=n;if(f.sorter){let d,c=f.sortDirections||a,m=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=eS(f,u),g=r.find(({key:e})=>e===p),h=g?g.sortOrder:null,x=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)d=n.sortIcon({sortOrder:h});else{let n=c.includes(tQ)&&t.createElement(tG,{className:(0,s.default)(`${e}-column-sorter-up`,{active:h===tQ})}),r=c.includes(tY)&&t.createElement(tU,{className:(0,s.default)(`${e}-column-sorter-down`,{active:h===tY})});d=t.createElement("span",{className:(0,s.default)(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(n&&r)})},t.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:v,triggerAsc:b,triggerDesc:y}=o||{},w=v;x===tY?w=y:x===tQ&&(w=b);let j="object"==typeof m?Object.assign({title:w},m):{title:w};f=Object.assign(Object.assign({},f),{className:(0,s.default)(f.className,{[`${e}-column-sort`]:h}),title:r=>{let l=`${e}-column-sorters`,a=t.createElement("span",{className:`${e}-column-title`},eE(n.title,r)),o=t.createElement("div",{className:l},a,d);return m?"boolean"!=typeof m&&(null==m?void 0:m.target)==="sorter-icon"?t.createElement("div",{className:(0,s.default)(l,`${l}-tooltip-target-sorter`)},a,t.createElement(tX.default,Object.assign({},j),d)):t.createElement(tX.default,Object.assign({},j),o):o},onHeaderCell:t=>{var r;let a,o=(null==(r=n.onHeaderCell)?void 0:r.call(n,t))||{},i=o.onClick,d=o.onKeyDown;o.onClick=e=>{l({column:n,key:p,sortOrder:x,multiplePriority:tJ(n)}),null==i||i(e)},o.onKeyDown=e=>{e.keyCode===G.default.ENTER&&(l({column:n,key:p,sortOrder:x,multiplePriority:tJ(n)}),null==d||d(e))};let c=(a=eE(n.title,{}),"[object Object]"===Object.prototype.toString.call(a)?"":a),u=null==c?void 0:c.toString();return h&&(o["aria-sort"]="ascend"===h?"ascending":"descending"),o["aria-label"]=u||"",o.className=(0,s.default)(o.className,`${e}-column-has-sorters`),o.tabIndex=0,n.ellipsis&&(o.title=(null!=c?c:"").toString()),o}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:t1(e,f.children,r,l,a,o,i,u)})),f}),t2=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},t4=e=>{let t=e.filter(({sortOrder:e})=>e).map(t2);if(0===t.length&&e.length){let t=e.length-1;return Object.assign(Object.assign({},t2(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},t3=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>tZ(e)&&t);return a.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:t3(r,t,n)}):e}):l},t5=(e,t)=>e.map(e=>{let n=Object.assign({},e);return n.title=eE(e.title,t),"children"in n&&(n.children=t5(n.children,t)),n}),t6=(0,e.i(576671).genTable)((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),t7=(0,e.i(451668).genVirtualTable)((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});var t8=e.i(135551);let t9=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${(0,ec.unit)(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,ec.unit)(l(n).mul(-1).equal())} 0 ${r}`}}}},ne=(0,eg.genStyleHooks)("Table",e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:o,headerSortActiveBg:i,headerSortHoverBg:s,bodySortBg:d,rowHoverBg:c,rowSelectedBg:u,rowSelectedHoverBg:f,rowExpandedBg:m,cellPaddingBlock:p,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:x,cellPaddingBlockSM:v,cellPaddingInlineSM:b,borderColor:y,footerBg:w,footerColor:j,headerBorderRadius:C,cellFontSize:k,cellFontSizeMD:S,cellFontSizeSM:N,headerSplitColor:E,fixedHeaderSortActiveBg:_,headerFilterHoverBg:O,filterDropdownBg:$,expandIconBg:T,selectionColumnWidth:I,stickyScrollBarBg:P,calc:M}=e,R=(0,eh.mergeToken)(e,{tableFontSize:k,tableBg:r,tableRadius:C,tablePaddingVertical:p,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:x,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:b,tableBorderColor:y,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:j,tableFooterBg:w,tableHeaderCellSplitColor:E,tableHeaderSortBg:i,tableHeaderSortHoverBg:s,tableBodySortBg:d,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:O,tableFilterDropdownBg:$,tableRowHoverBg:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:M(2).add(1).equal({unit:!1}),tableFontSizeMiddle:S,tableFontSizeSmall:N,tableSelectionColumnWidth:I,tableExpandIconBg:T,tableExpandColumnWidth:M(l).add(M(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[(e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,tableExpandColumnWidth:a,lineWidth:o,lineType:i,tableBorderColor:s,tableFontSize:d,tableBg:c,tableRadius:u,tableHeaderTextColor:f,motionDurationMid:m,tableHeaderBg:p,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:x,calc:v}=e,b=`${(0,ec.unit)(o)} ${i} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},(0,ep.clearFix)()),{[t]:Object.assign(Object.assign({},(0,ep.resetComponent)(e)),{fontSize:d,background:c,borderRadius:`${(0,ec.unit)(u)} ${(0,ec.unit)(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ec.unit)(u)} ${(0,ec.unit)(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${(0,ec.unit)(r)} ${(0,ec.unit)(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,ec.unit)(r)} ${(0,ec.unit)(l)}`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:f,fontWeight:n,textAlign:"start",background:p,borderBottom:b,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:b,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:(0,ec.unit)(v(r).mul(-1).equal()),marginInline:`${(0,ec.unit)(v(a).sub(l).equal())} + ${(0,ec.unit)(v(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:p,borderBottom:b,transition:`background ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${(0,ec.unit)(r)} ${(0,ec.unit)(l)}`,color:h,background:x}})}})(R),(e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${(0,ec.unit)(r)} 0`}}})(R),t9(R),(e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}})(R),(e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:i,colorText:s,lineWidth:d,lineType:c,tableBorderColor:u,headerIconColor:f,fontSizeSM:m,tablePaddingHorizontal:p,borderRadius:g,motionDurationSlow:h,colorIcon:x,colorPrimary:v,tableHeaderFilterActiveBg:b,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:j,controlItemBgHover:C,controlItemBgActive:k,boxShadowSecondary:S,filterDropdownMenuBg:N,calc:E}=e,_=`${n}-dropdown`,O=`${t}-filter-dropdown`,$=`${n}-tree`,T=`${(0,ec.unit)(d)} ${c} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:E(o).mul(-1).equal(),marginInline:`${(0,ec.unit)(o)} ${(0,ec.unit)(E(p).div(2).mul(-1).equal())}`,padding:`0 ${(0,ec.unit)(o)}`,color:f,fontSize:m,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:x,background:b},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[O]:Object.assign(Object.assign({},(0,ep.resetComponent)(e)),{minWidth:l,backgroundColor:w,borderRadius:g,boxShadow:S,overflow:"hidden",[`${_}-menu`]:{maxHeight:j,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:N,"&:empty::after":{display:"block",padding:`${(0,ec.unit)(i)} 0`,color:y,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${O}-tree`]:{paddingBlock:`${(0,ec.unit)(i)} 0`,paddingInline:i,[$]:{padding:0},[`${$}-treenode ${$}-node-content-wrapper:hover`]:{backgroundColor:C},[`${$}-treenode-checkbox-checked ${$}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${O}-search`]:{padding:i,borderBottom:T,"&-input":{input:{minWidth:a},[r]:{color:y}}},[`${O}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${O}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ec.unit)(E(i).sub(d).equal())} ${(0,ec.unit)(i)}`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${O}, ${O}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]})(R),(e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:l,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:i,calc:s}=e,d=`${(0,ec.unit)(n)} ${r} ${l}`,c=(e,r,l)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,ec.unit)(s(r).mul(-1).equal())} + ${(0,ec.unit)(s(s(l).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,ec.unit)(s(o).mul(-1).equal())} ${(0,ec.unit)(s(s(i).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},c("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),c("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ec.unit)(n)} 0 ${(0,ec.unit)(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}})(R),(e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,ec.unit)(n)} ${(0,ec.unit)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,ec.unit)(n)} ${(0,ec.unit)(n)}`}}}}})(R),(e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:o,tableBorderColor:i,tableExpandIconBg:s,tableExpandColumnWidth:d,borderRadius:c,tablePaddingVertical:u,tablePaddingHorizontal:f,tableExpandedRowBg:m,paddingXXS:p,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:x,expandIconScale:v,calc:b}=e,y=`${(0,ec.unit)(l)} ${o} ${i}`,w=b(p).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,ep.operationUnit)(e)),{position:"relative",float:"left",width:h,height:h,color:"inherit",lineHeight:(0,ec.unit)(h),background:s,border:y,borderRadius:c,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:w,insetInlineStart:w,height:l},"&::after":{top:w,bottom:w,insetInlineStart:x,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ec.unit)(b(u).mul(-1).equal())} ${(0,ec.unit)(b(f).mul(-1).equal())}`,padding:`${(0,ec.unit)(u)} ${(0,ec.unit)(f)}`}}}})(R),t9(R),(e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}})(R),(e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:a,paddingXS:o,headerIconColor:i,headerIconHoverColor:s,tableSelectionColumnWidth:d,tableSelectedRowBg:c,tableSelectedRowHoverBg:u,tableRowHoverBg:f,tablePaddingHorizontal:m,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:p(d).add(l).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(d).add(p(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(d).add(l).add(p(a).div(4)).add(p(o).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ec.unit)(p(m).div(4).equal()),[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:c,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}})(R),(e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:i,calc:s}=e;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:a,background:o},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(i).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${r}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}})(R),(e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:i,stickyScrollBarBorderRadius:s,lineWidth:d,lineType:c,tableBorderColor:u}=e,f=`${(0,ec.unit)(d)} ${c} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ec.unit)(a)} !important`,zIndex:i,display:"flex",alignItems:"center",background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}})(R),(e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ep.textEllipsis),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}})(R),(e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(e,l,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${(0,ec.unit)(l)} ${(0,ec.unit)(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,ec.unit)(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,ec.unit)(r(l).mul(-1).equal())} ${(0,ec.unit)(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,ec.unit)(r(l).mul(-1).equal()),marginInline:`${(0,ec.unit)(r(n).sub(a).equal())} ${(0,ec.unit)(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,ec.unit)(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}})(R),(e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}})(R),(e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:o}=e,i=`${(0,ec.unit)(r)} ${l} ${a}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + & > ${t}-row, + & > div:not(${t}-row) > ${t}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:i,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ec.unit)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:i,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:i,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:i}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:i,borderBottom:i}}}}}})(R)]},e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:i,padding:s,paddingSM:d,paddingXS:c,colorBorderSecondary:u,borderRadiusLG:f,controlHeight:m,colorTextPlaceholder:p,fontSize:g,fontSizeSM:h,lineHeight:x,lineWidth:v,colorIcon:b,colorIconHover:y,opacityLoading:w,controlInteractiveSize:j}=e,C=new t8.FastColor(l).onBackground(n).toHexString(),k=new t8.FastColor(a).onBackground(n).toHexString(),S=new t8.FastColor(t).onBackground(n).toHexString(),N=new t8.FastColor(b),E=new t8.FastColor(y),_=j/2-v,O=2*_+3*v;return{headerBg:S,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:k,bodySortBg:S,rowHoverBg:S,rowSelectedBg:o,rowSelectedHoverBg:i,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:d,cellPaddingInlineMD:c,cellPaddingBlockSM:c,cellPaddingInlineSM:c,borderColor:u,headerBorderRadius:f,footerBg:S,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:u,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*x-3*v)/2-Math.ceil((1.4*h-3*v)/2),headerIconColor:N.clone().setA(N.a*w).toRgbString(),headerIconHoverColor:E.clone().setA(E.a*w).toRgbString(),expandIconHalfInner:_,expandIconSize:O,expandIconScale:j/O}},{unitless:{expandIconScale:!0}}),nt=[],nn=t.forwardRef((e,r)=>{var l,a,L;let D,A,{prefixCls:K,className:B,rootClassName:F,style:z,size:H,bordered:V,dropdownPrefixCls:W,dataSource:U,pagination:q,rowSelection:G,rowKey:X="key",rowClassName:Q,columns:Y,children:J,childrenColumnName:Z,onChange:ee,getPopupContainer:et,loading:en,expandIcon:er,expandable:el,expandedRowRender:ea,expandIconColumnIndex:eo,indentSize:ei,scroll:es,sortDirections:ec,locale:eu,showSorterTooltip:ef={target:"full-header"},virtual:em}=e;(0,g.devUseWarning)("Table");let ep=t.useMemo(()=>Y||(0,S.convertChildrenToColumns)(J),[Y,J]),eg=t.useMemo(()=>ep.some(e=>e.responsive),[ep]),eh=(0,M.default)(eg),ex=t.useMemo(()=>{let e=new Set(Object.keys(eh).filter(e=>eh[e]));return ep.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[ep,eh]),ev=(0,N.default)(e,["className","style","columns"]),{locale:eb=R.default,direction:ey,table:ew,renderEmpty:ej,getPrefixCls:e_,getPopupContainer:eO}=t.useContext($.ConfigContext),e$=(0,P.default)(H),eT=Object.assign(Object.assign({},eb.Table),eu),eI=U||nt,eP=e_("table",K),eM=e_("dropdown",W),[,eR]=(0,ed.useToken)(),eL=(0,I.default)(eP),[eD,eA,eK]=ne(eP,eL),eB=Object.assign(Object.assign({childrenColumnName:Z,expandIconColumnIndex:eo},el),{expandIcon:null!=(l=null==el?void 0:el.expandIcon)?l:null==(a=null==ew?void 0:ew.expandable)?void 0:a.expandIcon}),{childrenColumnName:eF="children"}=eB,ez=t.useMemo(()=>eI.some(e=>null==e?void 0:e[eF])?"nest":ea||(null==el?void 0:el.expandedRowRender)?"row":null,[eI]),eH={body:t.useRef(null)},eV=(e,t)=>{let n=e.querySelector(`.${eP}-container`),r=t;if(n){let e=getComputedStyle(n);r=t-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return r},eW=t.useRef(null),eU=t.useRef(null);(0,t.useImperativeHandle)(r,()=>{let e=(()=>Object.assign(Object.assign({},eU.current),{nativeElement:eW.current}))(),{nativeElement:t}=e;return"u">typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(t._antProxy=t._antProxy||{},Object.keys(e).forEach(n=>{if(!(n in t._antProxy)){let r=t[n];t._antProxy[n]=r,t[n]=e[n]}}),t)});let eq=t.useMemo(()=>"function"==typeof X?X:e=>null==e?void 0:e[X],[X]),[eG]=(D=t.useRef({}),[function(e){var t;if(!D.current||D.current.data!==eI||D.current.childrenColumnName!==eF||D.current.getRowKey!==eq){let e=new Map;!function t(n){n.forEach((n,r)=>{let l=eq(n,r);e.set(l,n),n&&"object"==typeof n&&eF in n&&t(n[eF]||[])})}(eI),D.current={data:eI,childrenColumnName:eF,kvMap:e,getRowKey:eq}}return null==(t=D.current.kvMap)?void 0:t.get(e)}]),eX={},eQ=(e,t,n=!1)=>{var r,l,a,o;let i=Object.assign(Object.assign({},eX),e);n&&(null==(r=eX.resetPagination)||r.call(eX),(null==(l=i.pagination)?void 0:l.current)&&(i.pagination.current=1),q&&(null==(a=q.onChange)||a.call(q,1,null==(o=i.pagination)?void 0:o.pageSize))),es&&!1!==es.scrollToFirstRowOnChange&&eH.body.current&&function(e={}){let{getContainer:t=()=>window,callback:n,duration:r=450}=e,l=t(),a=(e=>{var t,n;if("u"{var e;let t,s=Date.now()-o,d=(e=s>r?r:s,t=0-a,(e/=r/2)<1?t/2*e*e*e+a:t/2*((e-=2)*e*e+2)+a);_(l)?l.scrollTo(window.pageXOffset,d):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=d:l.scrollTop=d,seH.body.current}),null==ee||ee(i.pagination,i.filters,i.sorter,{currentDataSource:tF(t3(eI,i.sorterStates,eF),i.filterStates,eF),action:t})},[eY,eJ,eZ,e0]=(e=>{let{prefixCls:n,mergedColumns:r,sortDirections:l,tableLocale:a,showSorterTooltip:i,onSorterChange:s}=e,[d,c]=t.useState(()=>t0(r,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let l=eN(r,t);if(n.push(eS(e,l)),Array.isArray(e.children)){let t=u(e.children,l);n.push.apply(n,(0,o.default)(t))}}),n},f=t.useMemo(()=>{let e=!0,t=t0(r,!1);if(!t.length){let e=u(r);return d.filter(({key:t})=>e.includes(t))}let n=[];function l(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach(t=>{null===a?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),l(t))}),n},[r,d]),m=t.useMemo(()=>{var e,t;let n=f.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null==(e=n[0])?void 0:e.column,sortOrder:null==(t=n[0])?void 0:t.order}},[f]),p=e=>{let t;c(t=!1!==e.multiplePriority&&f.length&&!1!==f[0].multiplePriority?[].concat((0,o.default)(f.filter(({key:t})=>t!==e.key)),[e]):[e]),s(t4(t),t)};return[e=>t1(n,e,f,p,l,a,i),f,m,()=>t4(f)]})({prefixCls:eP,mergedColumns:ex,onSorterChange:(e,t)=>{eQ({sorter:e,sorterStates:t},"sort",!1)},sortDirections:ec||["ascend","descend"],tableLocale:eT,showSorterTooltip:ef}),e1=t.useMemo(()=>t3(eI,eJ,eF),[eI,eJ]);eX.sorter=e0(),eX.sorterStates=eJ;let[e2,e4,e3]=(e=>{let{prefixCls:n,dropdownPrefixCls:r,mergedColumns:l,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:s}=e;(0,g.devUseWarning)("Table");let d=t.useMemo(()=>tz(l||[]),[l]),[c,u]=t.useState(()=>tK(d,!0)),f=t.useMemo(()=>{let e=tK(d,!1);if(0===e.length)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){let e=(d||[]).map((e,t)=>eS(e,eN(t)));return c.filter(({key:t})=>e.includes(t)).map(t=>{let n=d[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[d,c]),m=t.useMemo(()=>tB(f),[f]),p=e=>{let t=f.filter(({key:t})=>t!==e.key);t.push(e),u(t),a(tB(t),t)};return[e=>(function e(n,r,l,a,o,i,s,d,c){return l.map((l,u)=>{let f=eN(u,d),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:g,filterSearch:h}=l,x=l;if(x.filters||x.filterDropdown){let e=eS(x,f),d=a.find(({key:t})=>e===t);x=Object.assign(Object.assign({},x),{title:a=>t.createElement(tA,{tablePrefixCls:n,prefixCls:`${n}-filter`,dropdownPrefixCls:r,column:x,columnKey:e,filterState:d,filterOnClose:m,filterMultiple:p,filterMode:g,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:s,rootClassName:c},eE(l.title,a))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:e(n,r,x.children,a,o,i,s,f,c)})),x})})(n,r,e,f,i,p,o,void 0,s),f,m]})({prefixCls:eP,locale:eT,dropdownPrefixCls:eM,mergedColumns:ex,onFilterChange:(e,t)=>{eQ({filters:e,filterStates:t},"filter",!0)},getPopupContainer:et||eO,rootClassName:(0,s.default)(F,eL)}),e5=tF(e1,e4,eF);eX.filters=e3,eX.filterStates=e4;let[e6]=(L=t.useMemo(()=>{let e={};return Object.keys(e3).forEach(t=>{null!==e3[t]&&(e[t]=e3[t])}),Object.assign(Object.assign({},eZ),{filters:e})},[eZ,e3]),[t.useCallback(e=>t5(e,L),[L])]),[e7,e8]=tV(e5.length,(e,t)=>{eQ({pagination:Object.assign(Object.assign({},eX.pagination),{current:e,pageSize:t})},"paginate")},q);eX.pagination=!1===q?{}:(A={current:e7.current,pageSize:e7.pageSize},Object.keys(q&&"object"==typeof q?q:{}).forEach(e=>{let t=e7[e];"function"!=typeof t&&(A[e]=t)}),A),eX.resetPagination=e8;let e9=t.useMemo(()=>{if(!1===q||!e7.pageSize)return e5;let{current:e=1,total:t,pageSize:n=10}=e7;return e5.lengthn?e5.slice((e-1)*n,e*n):e5:e5.slice((e-1)*n,e*n)},[!!q,e5,null==e7?void 0:e7.current,null==e7?void 0:e7.pageSize,null==e7?void 0:e7.total]),[te,tt]=((e,n)=>{let{preserveSelectedRowKeys:r,selectedRowKeys:l,defaultSelectedRowKeys:a,getCheckboxProps:S,getTitleCheckboxProps:N,onChange:E,onSelect:_,onSelectAll:O,onSelectInvert:$,onSelectNone:T,onSelectMultiple:I,columnWidth:P,type:M,selections:R,fixed:L,renderCell:D,hideSelectAll:A,checkStrictly:K=!0}=n||{},{prefixCls:B,data:F,pageData:z,getRecordByKey:H,getRowKey:V,expandType:W,childrenColumnName:U,locale:q,getPopupContainer:G}=e,X=(0,g.devUseWarning)("Table"),[Q,Y]=(0,p.useMultipleSelect)(e=>e),[J,Z]=(0,m.default)(l||a||C,{value:l}),ee=t.useRef(new Map),et=(0,t.useCallback)(e=>{if(r){let t=new Map;e.forEach(e=>{let n=H(e);!n&&ee.current.has(e)&&(n=ee.current.get(e)),t.set(e,n)}),ee.current=t}},[H,r]);t.useEffect(()=>{et(J)},[J]);let en=(0,t.useMemo)(()=>k(U,z),[U,z]),{keyEntities:er}=(0,t.useMemo)(()=>{if(K)return{keyEntities:null};let e=F;if(r){let t=new Set(en.map((e,t)=>V(e,t))),n=Array.from(ee.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat((0,o.default)(e),(0,o.default)(n))}return(0,f.convertDataToEntities)(e,{externalGetKey:V,childrenPropName:U})},[F,V,K,U,r,en]),el=(0,t.useMemo)(()=>{let e=new Map;return en.forEach((t,n)=>{let r=V(t,n),l=(S?S(t):null)||{};e.set(r,l)}),e},[en,V,S]),ea=(0,t.useCallback)(e=>{let t,n=V(e);return!!(null==(t=el.has(n)?el.get(V(e)):S?S(e):void 0)?void 0:t.disabled)},[el,V]),[eo,ei]=(0,t.useMemo)(()=>{if(K)return[J||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,u.conductCheck)(J,!0,er,ea);return[e||[],t]},[J,K,er,ea]),es=(0,t.useMemo)(()=>new Set("radio"===M?eo.slice(0,1):eo),[eo,M]),ed=(0,t.useMemo)(()=>"radio"===M?new Set:new Set(ei),[ei,M]);t.useEffect(()=>{n||Z(C)},[!!n]);let ec=(0,t.useCallback)((e,t)=>{let n,l;et(e),r?(n=e,l=e.map(e=>ee.current.get(e))):(n=[],l=[],e.forEach(e=>{let t=H(e);void 0!==t&&(n.push(e),l.push(t))})),Z(n),null==E||E(n,l,{type:t})},[Z,H,E,r]),eu=(0,t.useCallback)((e,t,n,r)=>{if(_){let l=n.map(e=>H(e));_(H(e),t,l,r)}ec(n,"single")},[_,H,ec]),ef=(0,t.useMemo)(()=>!R||A?null:(!0===R?[y,w,j]:R).map(e=>e===y?{key:"all",text:q.selectionAll,onSelect(){ec(F.map((e,t)=>V(e,t)).filter(e=>{let t=el.get(e);return!(null==t?void 0:t.disabled)||es.has(e)}),"all")}}:e===w?{key:"invert",text:q.selectInvert,onSelect(){let e=new Set(es);z.forEach((t,n)=>{let r=V(t,n),l=el.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);$&&(X.deprecated(!1,"onSelectInvert","onChange"),$(t)),ec(t,"invert")}}:e===j?{key:"none",text:q.selectNone,onSelect(){null==T||T(),ec(Array.from(es).filter(e=>{let t=el.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n;null==(n=e.onSelect)||n.call.apply(n,[e].concat(t)),Y(null)}})),[R,es,z,V,$,ec]);return[(0,t.useCallback)(e=>{var r;let l,a,f;if(!n)return e.filter(e=>e!==b);let m=(0,o.default)(e),p=new Set(es),g=en.map(V).filter(e=>!el.get(e).disabled),y=g.every(e=>p.has(e)),w=g.some(e=>p.has(e));if("radio"!==M){let e;if(ef){let n={getPopupContainer:G,items:ef.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(g)},label:r}})};e=t.createElement("div",{className:`${B}-selection-extra`},t.createElement(x.default,{menu:n,getPopupContainer:G},t.createElement("span",null,t.createElement(i.default,null))))}let n=en.map((e,t)=>{let n=V(e,t),r=el.get(n)||{};return Object.assign({checked:p.has(n)},r)}).filter(({disabled:e})=>e),r=!!n.length&&n.length===en.length,o=r&&n.every(({checked:e})=>e),s=r&&n.some(({checked:e})=>e),d=(null==N?void 0:N())||{},{onChange:c,disabled:u}=d;a=t.createElement(h.default,Object.assign({"aria-label":e?"Custom selection":"Select all"},d,{checked:r?o:!!en.length&&y,indeterminate:r?!o&&s:!y&&w,onChange:e=>{let t,n;t=[],y?g.forEach(e=>{p.delete(e),t.push(e)}):g.forEach(e=>{p.has(e)||(p.add(e),t.push(e))}),n=Array.from(p),null==O||O(!y,n.map(e=>H(e)),t.map(e=>H(e))),ec(n,"all"),Y(null),null==c||c(e)},disabled:null!=u?u:0===en.length||r,skipGroup:!0})),l=!A&&t.createElement("div",{className:`${B}-selection`},a,e)}if(f="radio"===M?(e,n,r)=>{let l=V(n,r),a=p.has(l),o=el.get(l);return{node:t.createElement(v.default,Object.assign({},o,{checked:a,onClick:e=>{var t;e.stopPropagation(),null==(t=null==o?void 0:o.onClick)||t.call(o,e)},onChange:e=>{var t;p.has(l)||eu(l,!0,[l],e.nativeEvent),null==(t=null==o?void 0:o.onChange)||t.call(o,e)}})),checked:a}}:(e,n,r)=>{var l;let a,i=V(n,r),s=p.has(i),d=ed.has(i),f=el.get(i);return a="nest"===W?d:null!=(l=null==f?void 0:f.indeterminate)?l:d,{node:t.createElement(h.default,Object.assign({},f,{indeterminate:a,checked:s,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null==(t=null==f?void 0:f.onClick)||t.call(f,e)},onChange:e=>{var t;let{nativeEvent:n}=e,{shiftKey:r}=n,l=g.indexOf(i),a=eo.some(e=>g.includes(e));if(r&&K&&a){let e=Q(l,g,p),t=Array.from(p);null==I||I(!s,t.map(e=>H(e)),e.map(e=>H(e))),ec(t,"multiple")}else if(K){let e=s?(0,c.arrDel)(eo,i):(0,c.arrAdd)(eo,i);eu(i,!s,e,n)}else{let{checkedKeys:e,halfCheckedKeys:t}=(0,u.conductCheck)([].concat((0,o.default)(eo),[i]),!0,er,ea),r=e;if(s){let n=new Set(e);n.delete(i),r=(0,u.conductCheck)(Array.from(n),{checked:!1,halfCheckedKeys:t},er,ea).checkedKeys}eu(i,!s,r,n)}s?Y(null):Y(l),null==(t=null==f?void 0:f.onChange)||t.call(f,e)}})),checked:s}},!m.includes(b))if(0===m.findIndex(e=>{var t;return(null==(t=e[d.INTERNAL_COL_DEFINE])?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=m;m=[e,b].concat((0,o.default)(t))}else m=[b].concat((0,o.default)(m));let j=m.indexOf(b),C=(m=m.filter((e,t)=>e!==b||t===j))[j-1],k=m[j+1],S=L;void 0===S&&((null==k?void 0:k.fixed)!==void 0?S=k.fixed:(null==C?void 0:C.fixed)!==void 0&&(S=C.fixed)),S&&C&&(null==(r=C[d.INTERNAL_COL_DEFINE])?void 0:r.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=S);let E=(0,s.default)(`${B}-selection-col`,{[`${B}-selection-col-with-dropdown`]:R&&"checkbox"===M}),_={fixed:S,width:P,className:`${B}-selection-column`,title:(null==n?void 0:n.columnTitle)?"function"==typeof n.columnTitle?n.columnTitle(a):n.columnTitle:l,render:(e,t,n)=>{let{node:r,checked:l}=f(e,t,n);return D?D(l,t,n,r):r},onCell:n.onCell,align:n.align,[d.INTERNAL_COL_DEFINE]:{className:E}};return m.map(e=>e===b?_:e)},[V,en,n,eo,es,ed,P,ef,W,el,I,eu,ea]),es]})({prefixCls:eP,data:e5,pageData:e9,getRowKey:eq,getRecordByKey:eG,expandType:ez,childrenColumnName:eF,locale:eT,getPopupContainer:et||eO},G);eB.__PARENT_RENDER_ICON__=eB.expandIcon,eB.expandIcon=eB.expandIcon||er||(e=>{let{prefixCls:n,onExpand:r,record:l,expanded:a,expandable:o}=e,i=`${n}-row-expand-icon`;return t.createElement("button",{type:"button",onClick:e=>{r(l,e),e.stopPropagation()},className:(0,s.default)(i,{[`${i}-spaced`]:!o,[`${i}-expanded`]:o&&a,[`${i}-collapsed`]:o&&!a}),"aria-label":a?eT.collapse:eT.expand,"aria-expanded":a})}),"nest"===ez&&void 0===eB.expandIconColumnIndex?eB.expandIconColumnIndex=+!!G:eB.expandIconColumnIndex>0&&G&&(eB.expandIconColumnIndex-=1),"number"!=typeof eB.indentSize&&(eB.indentSize="number"==typeof ei?ei:15);let tn=t.useCallback(e=>e6(te(e2(eY(e)))),[eY,e2,te]),tr=t.useMemo(()=>"boolean"==typeof en?{spinning:en}:"object"==typeof en&&null!==en?Object.assign({spinning:!0},en):void 0,[en]),tl=(0,s.default)(eK,eL,`${eP}-wrapper`,null==ew?void 0:ew.className,{[`${eP}-wrapper-rtl`]:"rtl"===ey},B,F,eA),ta=Object.assign(Object.assign({},null==ew?void 0:ew.style),z),to=t.useMemo(()=>(null==tr?void 0:tr.spinning)&&eI===nt?null:void 0!==(null==eu?void 0:eu.emptyText)?eu.emptyText:(null==ej?void 0:ej("Table"))||t.createElement(T.default,{componentName:"Table"}),[null==tr?void 0:tr.spinning,eI,null==eu?void 0:eu.emptyText,ej]),ti={},ts=t.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:l,paddingSM:a}=eR,o=Math.floor(e*t);switch(e$){case"middle":return 2*a+o+n;case"small":return 2*l+o+n;default:return 2*r+o+n}},[eR,e$]);em&&(ti.listItemHeight=ts);let{top:td,bottom:tc}=(()=>{if(!1===q||!(null==e7?void 0:e7.total))return{};let e=e=>t.createElement(eC,Object.assign({},e7,{align:e7.align||("left"===e?"start":"right"===e?"end":e),className:(0,s.default)(`${eP}-pagination`,e7.className),size:e7.size||("small"===e$||"middle"===e$?"small":void 0)})),n="rtl"===ey?"left":"right",r=e7.position;if(null===r||!Array.isArray(r))return{bottom:e(n)};let l=r.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),a=r.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),o=r.every(e=>"none"==`${e}`),i=l?l.toLowerCase().replace("top",""):"",d=a?a.toLowerCase().replace("bottom",""):"",c=!l&&!a&&!o;return{top:i?e(i):void 0,bottom:d?e(d):c?e(n):void 0}})();return eD(t.createElement("div",{ref:eW,className:tl,style:ta},t.createElement(ek.default,Object.assign({spinning:!1},tr),td,t.createElement(em?t7:t6,Object.assign({},ti,ev,{ref:eU,columns:ex,direction:ey,expandable:eB,prefixCls:eP,className:(0,s.default)({[`${eP}-middle`]:"middle"===e$,[`${eP}-small`]:"small"===e$,[`${eP}-bordered`]:V,[`${eP}-empty`]:0===eI.length},eK,eL,eA),data:e9,rowKey:eq,rowClassName:(e,t,n)=>{let r;return r="function"==typeof Q?(0,s.default)(Q(e,t,n)):(0,s.default)(Q),(0,s.default)({[`${eP}-row-selected`]:tt.has(eq(e,t))},r)},emptyText:to,internalHooks:n.INTERNAL_HOOKS,internalRefs:eH,transformColumns:tn,getContainerWidth:eV,measureRowRender:e=>t.createElement(O.default,{getPopupContainer:e=>e},e)})),tc)))}),nr=t.forwardRef((e,n)=>{let r=t.useRef(0);return r.current+=1,t.createElement(nn,Object.assign({},e,{ref:n,_renderTimes:r.current}))});nr.SELECTION_COLUMN=b,nr.EXPAND_COLUMN=n.EXPAND_COLUMN,nr.SELECTION_ALL=y,nr.SELECTION_INVERT=w,nr.SELECTION_NONE=j,nr.Column=l.default,nr.ColumnGroup=a.default,nr.Summary=r.Summary,e.s(["Table",0,nr],291542)},384767,e=>{"use strict";var t=e.i(843476),n=e.i(599724),r=e.i(271645),l=e.i(389083);let a=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))});var o=e.i(764205);let i=function({vectorStores:e,accessToken:i}){let[s,d]=(0,r.useState)([]);return(0,r.useEffect)(()=>{(async()=>{if(i&&0!==e.length)try{let e=await (0,o.vectorStoreListCall)(i);e.data&&d(e.data.map(e=>({vector_store_id:e.vector_store_id,vector_store_name:e.vector_store_name})))}catch(e){console.error("Error fetching vector stores:",e)}})()},[i,e.length]),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(a,{className:"h-4 w-4 text-blue-600"}),(0,t.jsx)(n.Text,{className:"font-semibold text-gray-900",children:"Vector Stores"}),(0,t.jsx)(l.Badge,{color:"blue",size:"xs",children:e.length})]}),e.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((e,n)=>{let r;return(0,t.jsx)("div",{className:"inline-flex items-center px-3 py-1.5 rounded-lg bg-blue-50 border border-blue-200 text-blue-800 text-sm font-medium",children:(r=s.find(t=>t.vector_store_id===e))?`${r.vector_store_name||r.vector_store_id} (${r.vector_store_id})`:e},n)})}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-gray-50 border border-gray-200",children:[(0,t.jsx)(a,{className:"h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Text,{className:"text-gray-500 text-sm",children:"No vector stores configured"})]})]})},s=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))});var d=e.i(871943),c=e.i(502547),u=e.i(592968),f=e.i(234713);let m=function({mcpServers:e,mcpAccessGroups:a=[],mcpToolPermissions:i={},mcpToolsets:m=[],accessToken:p}){let[g,h]=(0,r.useState)([]),[x,v]=(0,r.useState)([]),[b,y]=(0,r.useState)(new Set),[w,j]=(0,r.useState)(new Set);(0,r.useEffect)(()=>{(async()=>{if(p&&e.length>0)try{let e=await (0,o.fetchMCPServers)(p);e&&Array.isArray(e)?h(e):e.data&&Array.isArray(e.data)&&h(e.data)}catch(e){console.error("Error fetching MCP servers:",e)}})()},[p,e.length]),(0,r.useEffect)(()=>{(async()=>{if(p&&m.length>0)try{let e=await (0,o.fetchMCPToolsets)(p),t=Array.isArray(e)?e.filter(e=>m.includes(e.toolset_id)):[];v(t)}catch(e){console.error("Error fetching toolsets:",e)}})()},[p,m.length]);let C=e.includes(f.NO_MCP_SERVERS_SENTINEL),k=[...e.filter(e=>e!==f.NO_MCP_SERVERS_SENTINEL).map(e=>({type:"server",value:e})),...a.map(e=>({type:"accessGroup",value:e}))],S=k.length+m.length;return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s,{className:"h-4 w-4 text-blue-600"}),(0,t.jsx)(n.Text,{className:"font-semibold text-gray-900",children:"MCP Servers"}),(0,t.jsx)(l.Badge,{color:C?"red":"blue",size:"xs",children:C?"Blocked":S})]}),C?(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-red-50 border border-red-200",children:[(0,t.jsx)(s,{className:"h-4 w-4 text-red-400"}),(0,t.jsx)(n.Text,{className:"text-red-700 text-sm",children:"No MCP servers — this key is blocked from all MCP servers, including its team's servers"})]}):S>0?(0,t.jsxs)("div",{className:"max-h-[400px] overflow-y-auto space-y-2 pr-1",children:[k.map((e,n)=>{let r="server"===e.type?i[e.value]:void 0,l=r&&r.length>0,a=b.has(e.value);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{onClick:()=>{var t;return l&&(t=e.value,void y(e=>{let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}))},className:`flex items-center gap-3 py-2 px-3 rounded-lg border border-gray-200 transition-all ${l?"cursor-pointer hover:bg-gray-50 hover:border-gray-300":"bg-white"}`,children:[(0,t.jsx)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:"server"===e.type?(0,t.jsx)(u.Tooltip,{title:`Full ID: ${e.value}`,placement:"top",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 min-w-0",children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-blue-500 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:(e=>{let t=g.find(t=>t.server_id===e);if(t){let n=e.length>7?`${e.slice(0,3)}...${e.slice(-4)}`:e;return`${t.alias} (${n})`}return e})(e.value)})]})}):(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 min-w-0",children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-green-500 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:e.value}),(0,t.jsx)("span",{className:"ml-1 px-1.5 py-0.5 text-[9px] font-semibold text-green-600 bg-green-50 border border-green-200 rounded uppercase tracking-wide flex-shrink-0",children:"Group"})]})}),l&&(0,t.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0 whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-gray-600",children:r.length}),(0,t.jsx)("span",{className:"text-xs text-gray-500",children:1===r.length?"tool":"tools"}),a?(0,t.jsx)(d.ChevronDownIcon,{className:"h-3.5 w-3.5 text-gray-400 ml-0.5"}):(0,t.jsx)(c.ChevronRightIcon,{className:"h-3.5 w-3.5 text-gray-400 ml-0.5"})]})]}),l&&a&&(0,t.jsx)("div",{className:"ml-4 pl-4 border-l-2 border-blue-200 pb-1",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:r.map((e,n)=>(0,t.jsx)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-lg bg-blue-50 border border-blue-200 text-blue-800 text-xs font-medium",children:e},n))})})]},n)}),m.length>0&&m.map((e,n)=>{let r=x.find(t=>t.toolset_id===e),l=w.has(e),a=r?.tools.length??0;return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{onClick:()=>a>0&&void j(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),className:`flex items-center gap-3 py-2 px-3 rounded-lg border border-purple-200 transition-all ${a>0?"cursor-pointer hover:bg-purple-50 hover:border-purple-300":"bg-white"}`,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-purple-500 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:r?.toolset_name??e}),(0,t.jsx)("span",{className:"ml-1 px-1.5 py-0.5 text-[9px] font-semibold text-purple-600 bg-purple-50 border border-purple-200 rounded uppercase tracking-wide flex-shrink-0",children:"Toolset"})]}),a>0&&(0,t.jsxs)("div",{className:"flex items-center gap-1 flex-shrink-0 whitespace-nowrap",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-gray-600",children:a}),(0,t.jsx)("span",{className:"text-xs text-gray-500",children:1===a?"tool":"tools"}),l?(0,t.jsx)(d.ChevronDownIcon,{className:"h-3.5 w-3.5 text-gray-400 ml-0.5"}):(0,t.jsx)(c.ChevronRightIcon,{className:"h-3.5 w-3.5 text-gray-400 ml-0.5"})]})]}),a>0&&l&&r&&(0,t.jsx)("div",{className:"ml-4 pl-4 border-l-2 border-purple-200 pb-1",children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:r.tools.map((e,n)=>(0,t.jsxs)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-lg bg-purple-50 border border-purple-200 text-purple-800 text-xs font-medium",children:[(0,t.jsxs)("span",{className:"text-purple-400 mr-1 text-[10px]",children:[e.server_id.slice(0,6),"…"]}),e.tool_name]},n))})})]},`toolset-${n}`)})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-gray-50 border border-gray-200",children:[(0,t.jsx)(s,{className:"h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Text,{className:"text-gray-500 text-sm",children:"No MCP servers, access groups, or toolsets configured"})]})]})},p=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"}))}),g=function({agents:e,agentAccessGroups:a=[],accessToken:i}){let[s,d]=(0,r.useState)([]);(0,r.useEffect)(()=>{(async()=>{if(i&&e.length>0)try{let e=await (0,o.getAgentsList)(i);e&&e.agents&&Array.isArray(e.agents)&&d(e.agents)}catch(e){console.error("Error fetching agents:",e)}})()},[i,e.length]);let c=[...e.map(e=>({type:"agent",value:e})),...a.map(e=>({type:"accessGroup",value:e}))],f=c.length;return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p,{className:"h-4 w-4 text-purple-600"}),(0,t.jsx)(n.Text,{className:"font-semibold text-gray-900",children:"Agents"}),(0,t.jsx)(l.Badge,{color:"purple",size:"xs",children:f})]}),f>0?(0,t.jsx)("div",{className:"max-h-[400px] overflow-y-auto space-y-2 pr-1",children:c.map((e,n)=>(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsx)("div",{className:"flex items-center gap-3 py-2 px-3 rounded-lg border border-gray-200 bg-white",children:(0,t.jsx)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:"agent"===e.type?(0,t.jsx)(u.Tooltip,{title:`Full ID: ${e.value}`,placement:"top",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 min-w-0",children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-purple-500 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:(e=>{let t=s.find(t=>t.agent_id===e);if(t){let n=e.length>7?`${e.slice(0,3)}...${e.slice(-4)}`:e;return`${t.agent_name} (${n})`}return e})(e.value)})]})}):(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 min-w-0",children:[(0,t.jsx)("span",{className:"inline-block w-1.5 h-1.5 bg-green-500 rounded-full flex-shrink-0"}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:e.value}),(0,t.jsx)("span",{className:"ml-1 px-1.5 py-0.5 text-[9px] font-semibold text-green-600 bg-green-50 border border-green-200 rounded uppercase tracking-wide flex-shrink-0",children:"Group"})]})})})},n))}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-gray-50 border border-gray-200",children:[(0,t.jsx)(p,{className:"h-4 w-4 text-gray-400"}),(0,t.jsx)(n.Text,{className:"text-gray-500 text-sm",children:"No agents or access groups configured"})]})]})};e.s(["default",0,function({objectPermission:e,variant:r="card",className:l="",accessToken:a}){let o=e?.vector_stores||[],s=e?.mcp_servers||[],d=e?.mcp_access_groups||[],c=e?.mcp_tool_permissions||{},u=e?.mcp_toolsets||[],f=e?.agents||[],p=e?.agent_access_groups||[],h=e?.search_tools||[],x=(0,t.jsxs)("div",{className:"card"===r?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6":"space-y-4",children:[(0,t.jsx)(i,{vectorStores:o,accessToken:a}),(0,t.jsx)(m,{mcpServers:s,mcpAccessGroups:d,mcpToolPermissions:c,mcpToolsets:u,accessToken:a}),(0,t.jsx)(g,{agents:f,agentAccessGroups:p,accessToken:a}),(0,t.jsxs)("div",{className:"rounded-md border border-gray-100 p-4",children:[(0,t.jsx)(n.Text,{className:"text-sm font-medium text-gray-800",children:"Search tools"}),0===h.length?(0,t.jsx)(n.Text,{className:"mt-1 block text-xs text-gray-500",children:"No restriction — all configured search tools are allowed for this team."}):(0,t.jsx)(n.Text,{className:"mt-1 block text-xs text-gray-700",children:h.join(", ")})]})]});return"card"===r?(0,t.jsxs)("div",{className:`bg-white border border-gray-200 rounded-lg p-6 ${l}`,children:[(0,t.jsx)("div",{className:"flex items-center gap-2 mb-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Text,{className:"font-semibold text-gray-900",children:"Object Permissions"}),(0,t.jsx)(n.Text,{className:"text-xs text-gray-500",children:"Access control for Vector Stores and MCP Servers"})]})}),x]}):(0,t.jsxs)("div",{className:`${l}`,children:[(0,t.jsx)(n.Text,{className:"font-medium text-gray-900 mb-3",children:"Object Permissions"}),x]})}],384767)},435451,620250,e=>{"use strict";var t=e.i(843476),n=e.i(290571),r=e.i(271645);let l=e=>{var t=(0,n.__rest)(e,[]);return r.default.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),r.default.createElement("path",{d:"M12 4v16m8-8H4"}))},a=e=>{var t=(0,n.__rest)(e,[]);return r.default.createElement("svg",Object.assign({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"}),r.default.createElement("path",{d:"M20 12H4"}))};var o=e.i(444755),i=e.i(673706),s=e.i(677955);let d="flex mx-auto text-tremor-content-subtle dark:text-dark-tremor-content-subtle",c="cursor-pointer hover:text-tremor-content dark:hover:text-dark-tremor-content",u=r.default.forwardRef((e,t)=>{let{onSubmit:u,enableStepper:f=!0,disabled:m,onValueChange:p,onChange:g}=e,h=(0,n.__rest)(e,["onSubmit","enableStepper","disabled","onValueChange","onChange"]),x=(0,r.useRef)(null),[v,b]=r.default.useState(!1),y=r.default.useCallback(()=>{b(!0)},[]),w=r.default.useCallback(()=>{b(!1)},[]),[j,C]=r.default.useState(!1),k=r.default.useCallback(()=>{C(!0)},[]),S=r.default.useCallback(()=>{C(!1)},[]);return r.default.createElement(s.default,Object.assign({type:"number",ref:(0,i.mergeRefs)([x,t]),disabled:m,makeInputClassName:(0,i.makeClassName)("NumberInput"),onKeyDown:e=>{var t;if("Enter"===e.key&&!e.ctrlKey&&!e.altKey&&!e.shiftKey){let e=null==(t=x.current)?void 0:t.value;null==u||u(parseFloat(null!=e?e:""))}"ArrowDown"===e.key&&y(),"ArrowUp"===e.key&&k()},onKeyUp:e=>{"ArrowDown"===e.key&&w(),"ArrowUp"===e.key&&S()},onChange:e=>{m||(null==p||p(parseFloat(e.target.value)),null==g||g(e))},stepper:f?r.default.createElement("div",{className:(0,o.tremorTwMerge)("flex justify-center align-middle")},r.default.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>{e.cancelable&&e.preventDefault()},onMouseUp:()=>{var e,t;m||(null==(e=x.current)||e.stepDown(),null==(t=x.current)||t.dispatchEvent(new Event("input",{bubbles:!0})))},className:(0,o.tremorTwMerge)(!m&&c,d,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},r.default.createElement(a,{"data-testid":"step-down",className:(v?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"})),r.default.createElement("div",{tabIndex:-1,onClick:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),onTouchStart:e=>{e.cancelable&&e.preventDefault()},onMouseUp:()=>{var e,t;m||(null==(e=x.current)||e.stepUp(),null==(t=x.current)||t.dispatchEvent(new Event("input",{bubbles:!0})))},className:(0,o.tremorTwMerge)(!m&&c,d,"group py-[10px] px-2.5 border-l border-tremor-border dark:border-dark-tremor-border")},r.default.createElement(l,{"data-testid":"step-up",className:(j?"scale-95":"")+" h-4 w-4 duration-75 transition group-active:scale-95"}))):null},h))});u.displayName="NumberInput",e.s(["NumberInput",0,u],620250),e.s(["default",0,({step:e=.01,style:n={width:"100%"},placeholder:r="Enter a numerical value",min:l,max:a,onChange:o,...i})=>(0,t.jsx)(u,{onWheel:e=>e.currentTarget.blur(),step:e,style:n,placeholder:r,min:l,max:a,onChange:o,...i})],435451)},207082,510674,e=>{"use strict";var t=e.i(619273),n=e.i(266027),r=e.i(243652),l=e.i(764205),a=e.i(135214);let o=(0,r.createQueryKeys)("keys"),i=async(e,t,n,r={})=>{try{let a=(0,l.getProxyBaseUrl)(),o=new URLSearchParams(Object.entries({team_id:r.teamID,project_id:r.projectID,organization_id:r.organizationID,key_alias:r.selectedKeyAlias,key_hash:r.keyHash,user_id:r.userID,page:t,size:n,sort_by:r.sortBy,sort_order:r.sortOrder,expand:r.expand,status:r.status,return_full_object:"true",include_team_keys:"true",include_created_by_keys:"true"}).filter(([,e])=>null!=e).map(([e,t])=>[e,String(t)])),i=`${a?`${a}/key/list`:"/key/list"}?${o}`,s=await fetch(i,{method:"GET",headers:{[(0,l.getGlobalLitellmHeaderName)()]:`Bearer ${e}`,"Content-Type":"application/json"}});if(!s.ok){let e=await s.json(),t=(0,l.deriveErrorMessage)(e);throw(0,l.handleError)(t),Error(t)}let d=await s.json();return console.log("/key/list API Response:",d),d}catch(e){throw console.error("Failed to list keys:",e),e}},s=(0,r.createQueryKeys)("deletedKeys");e.s(["keyKeys",0,o,"useDeletedKeys",0,(e,r,l={})=>{let{accessToken:o}=(0,a.default)();return(0,n.useQuery)({queryKey:s.list({page:e,limit:r,...l}),queryFn:async()=>await i(o,e,r,{...l,status:"deleted"}),enabled:!!o,staleTime:3e4,placeholderData:t.keepPreviousData})},"useKeys",0,(e,r,l={})=>{let{accessToken:s}=(0,a.default)();return(0,n.useQuery)({queryKey:o.list({page:e,limit:r,...l}),queryFn:async()=>await i(s,e,r,l),enabled:!!s,staleTime:3e4,placeholderData:t.keepPreviousData})}],207082);var d=e.i(708347);let c=(0,r.createQueryKeys)("projects"),u=async e=>{let t=(0,l.getProxyBaseUrl)(),n=`${t}/project/list`,r=await fetch(n,{method:"GET",headers:{[(0,l.getGlobalLitellmHeaderName)()]:`Bearer ${e}`,"Content-Type":"application/json"}});if(!r.ok){let e=await r.json(),t=(0,l.deriveErrorMessage)(e);throw(0,l.handleError)(t),Error(t)}return r.json()};e.s(["projectKeys",0,c,"useProjects",0,()=>{let{accessToken:e,userRole:t}=(0,a.default)();return(0,n.useQuery)({queryKey:c.list({}),queryFn:async()=>u(e),enabled:!!e&&d.all_admin_roles.includes(t)})}],510674)},109034,e=>{"use strict";var t=e.i(266027),n=e.i(243652),r=e.i(764205),l=e.i(135214);let a=(0,n.createQueryKeys)("tags");e.s(["useTags",0,()=>{let{accessToken:e,userId:n,userRole:o}=(0,l.default)();return(0,t.useQuery)({queryKey:a.list({}),queryFn:async()=>await (0,r.tagListCall)(e),enabled:!!(e&&n&&o)})}])},83733,e=>{"use strict";let t;var n,r,l=e.i(247167),a=e.i(271645),o=e.i(544508),i=e.i(746725),s=e.i(835696);void 0!==l.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==l.default?void 0:l.default.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(r=null==Element?void 0:Element.prototype)?void 0:r.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` +`)),[]});var d=((t=d||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);e.s(["transitionDataAttributes",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"useTransition",0,function(e,t,n,r){let[l,d]=(0,a.useState)(n),{hasFlag:c,addFlag:u,removeFlag:f}=function(e=0){let[t,n]=(0,a.useState)(e),r=(0,a.useCallback)(e=>n(e),[t]),l=(0,a.useCallback)(e=>n(t=>t|e),[t]),o=(0,a.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:l,hasFlag:o,removeFlag:(0,a.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,a.useCallback)(e=>n(t=>t^e),[n])}}(e&&l?3:0),m=(0,a.useRef)(!1),p=(0,a.useRef)(!1),g=(0,i.useDisposables)();return(0,s.useIsoMorphicEffect)(()=>{var l;if(e){if(n&&d(!0),!t){n&&u(3);return}return null==(l=null==r?void 0:r.start)||l.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:l}){let a=(0,o.disposables)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:l}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(function(e,t){var n,r;let l=(0,o.disposables)();if(!e)return l.dispose;let a=!1;l.add(()=>{a=!0});let i=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===i.length?t():Promise.allSettled(i.map(e=>e.finished)).then(()=>{a||t()}),l.dispose}(e,r))})}),a.dispose}(t,{inFlight:m,prepare(){p.current?p.current=!1:p.current=m.current,m.current=!0,p.current||(n?(u(3),f(4)):(u(4),f(2)))},run(){p.current?n?(f(3),u(4)):(f(4),u(3)):n?f(1):u(1)},done(){var e;p.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(m.current=!1,f(7),n||d(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,g]),e?[l,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}],83733)},674175,e=>{"use strict";var t=e.i(271645);let n=(0,t.createContext)(()=>{});e.s(["CloseProvider",0,function({value:e,children:r}){return t.default.createElement(n.Provider,{value:e},r)}])},233137,233538,e=>{"use strict";let t;var n=e.i(271645);let r=(0,n.createContext)(null);r.displayName="OpenClosedContext";var l=((t=l||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["OpenClosedProvider",0,function({value:e,children:t}){return n.default.createElement(r.Provider,{value:e},t)},"ResetOpenClosedProvider",0,function({children:e}){return n.default.createElement(r.Provider,{value:null},e)},"State",0,l,"useOpenClosed",0,function(){return(0,n.useContext)(r)}],233137),e.s(["isDisabledReactIssue7711",0,function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}],233538)},677667,886148,543086,e=>{"use strict";let t,n;var r,l=e.i(290571),a=e.i(783222),o=e.i(433336),i=e.i(271645),s=e.i(394487),d=e.i(914189),c=e.i(144279),u=e.i(294316),f=e.i(83733),m=e.i(674175),p=e.i(233137),g=e.i(233538),h=e.i(397701),x=e.i(402155),v=e.i(700020);let b=null!=(r=i.default.startTransition)?r:function(e){e()};var y=e.i(998348),w=((t=w||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),j=((n=j||{})[n.ToggleDisclosure=0]="ToggleDisclosure",n[n.CloseDisclosure=1]="CloseDisclosure",n[n.SetButtonId=2]="SetButtonId",n[n.SetPanelId=3]="SetPanelId",n[n.SetButtonElement=4]="SetButtonElement",n[n.SetPanelElement=5]="SetPanelElement",n);let C={0:e=>({...e,disclosureState:(0,h.match)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},k=(0,i.createContext)(null);function S(e){let t=(0,i.useContext)(k);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,S),t}return t}k.displayName="DisclosureContext";let N=(0,i.createContext)(null);N.displayName="DisclosureAPIContext";let E=(0,i.createContext)(null);function _(e,t){return(0,h.match)(t.type,C,e,t)}E.displayName="DisclosurePanelContext";let O=i.Fragment,$=v.RenderFeatures.RenderStrategy|v.RenderFeatures.Static,T=Object.assign((0,v.forwardRefWithAs)(function(e,t){let{defaultOpen:n=!1,...r}=e,l=(0,i.useRef)(null),a=(0,u.useSyncRefs)(t,(0,u.optionalRef)(e=>{l.current=e},void 0===e.as||e.as===i.Fragment)),o=(0,i.useReducer)(_,{disclosureState:+!n,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:s,buttonId:c},f]=o,g=(0,d.useEvent)(e=>{f({type:1});let t=(0,x.getOwnerDocument)(l);if(!t||!c)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(c):t.getElementById(c);null==n||n.focus()}),b=(0,i.useMemo)(()=>({close:g}),[g]),y=(0,i.useMemo)(()=>({open:0===s,close:g}),[s,g]),w=(0,v.useRender)();return i.default.createElement(k.Provider,{value:o},i.default.createElement(N.Provider,{value:b},i.default.createElement(m.CloseProvider,{value:g},i.default.createElement(p.OpenClosedProvider,{value:(0,h.match)(s,{0:p.State.Open,1:p.State.Closed})},w({ourProps:{ref:a},theirProps:r,slot:y,defaultTag:O,name:"Disclosure"})))))}),{Button:(0,v.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-disclosure-button-${n}`,disabled:l=!1,autoFocus:f=!1,...m}=e,[p,h]=S("Disclosure.Button"),x=(0,i.useContext)(E),b=null!==x&&x===p.panelId,w=(0,i.useRef)(null),j=(0,u.useSyncRefs)(w,t,(0,d.useEvent)(e=>{if(!b)return h({type:4,element:e})}));(0,i.useEffect)(()=>{if(!b)return h({type:2,buttonId:r}),()=>{h({type:2,buttonId:null})}},[r,h,b]);let C=(0,d.useEvent)(e=>{var t;if(b){if(1===p.disclosureState)return;switch(e.key){case y.Keys.Space:case y.Keys.Enter:e.preventDefault(),e.stopPropagation(),h({type:0}),null==(t=p.buttonElement)||t.focus()}}else switch(e.key){case y.Keys.Space:case y.Keys.Enter:e.preventDefault(),e.stopPropagation(),h({type:0})}}),k=(0,d.useEvent)(e=>{e.key===y.Keys.Space&&e.preventDefault()}),N=(0,d.useEvent)(e=>{var t;(0,g.isDisabledReactIssue7711)(e.currentTarget)||l||(b?(h({type:0}),null==(t=p.buttonElement)||t.focus()):h({type:0}))}),{isFocusVisible:_,focusProps:O}=(0,a.useFocusRing)({autoFocus:f}),{isHovered:$,hoverProps:T}=(0,o.useHover)({isDisabled:l}),{pressed:I,pressProps:P}=(0,s.useActivePress)({disabled:l}),M=(0,i.useMemo)(()=>({open:0===p.disclosureState,hover:$,active:I,disabled:l,focus:_,autofocus:f}),[p,$,I,_,l,f]),R=(0,c.useResolveButtonType)(e,p.buttonElement),L=b?(0,v.mergeProps)({ref:j,type:R,disabled:l||void 0,autoFocus:f,onKeyDown:C,onClick:N},O,T,P):(0,v.mergeProps)({ref:j,id:r,type:R,"aria-expanded":0===p.disclosureState,"aria-controls":p.panelElement?p.panelId:void 0,disabled:l||void 0,autoFocus:f,onKeyDown:C,onKeyUp:k,onClick:N},O,T,P);return(0,v.useRender)()({ourProps:L,theirProps:m,slot:M,defaultTag:"button",name:"Disclosure.Button"})}),Panel:(0,v.forwardRefWithAs)(function(e,t){let n=(0,i.useId)(),{id:r=`headlessui-disclosure-panel-${n}`,transition:l=!1,...a}=e,[o,s]=S("Disclosure.Panel"),{close:c}=function e(t){let n=(0,i.useContext)(N);if(null===n){let n=Error(`<${t} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}("Disclosure.Panel"),[m,g]=(0,i.useState)(null),h=(0,u.useSyncRefs)(t,(0,d.useEvent)(e=>{b(()=>s({type:5,element:e}))}),g);(0,i.useEffect)(()=>(s({type:3,panelId:r}),()=>{s({type:3,panelId:null})}),[r,s]);let x=(0,p.useOpenClosed)(),[y,w]=(0,f.useTransition)(l,m,null!==x?(x&p.State.Open)===p.State.Open:0===o.disclosureState),j=(0,i.useMemo)(()=>({open:0===o.disclosureState,close:c}),[o.disclosureState,c]),C={ref:h,id:r,...(0,f.transitionDataAttributes)(w)},k=(0,v.useRender)();return i.default.createElement(p.ResetOpenClosedProvider,null,i.default.createElement(E.Provider,{value:o.panelId},k({ourProps:C,theirProps:a,slot:j,defaultTag:"div",features:$,visible:y,name:"Disclosure.Panel"})))})});e.s(["Disclosure",0,T],886148);let I=(0,i.createContext)(void 0);var P=e.i(444755);let M=(0,e.i(673706).makeClassName)("Accordion"),R=(0,i.createContext)({isOpen:!1}),L=i.default.forwardRef((e,t)=>{var n;let{defaultOpen:r=!1,children:a,className:o}=e,s=(0,l.__rest)(e,["defaultOpen","children","className"]),d=null!=(n=(0,i.useContext)(I))?n:(0,P.tremorTwMerge)("rounded-tremor-default border");return i.default.createElement(T,Object.assign({as:"div",ref:t,className:(0,P.tremorTwMerge)(M("root"),"overflow-hidden","bg-tremor-background border-tremor-border","dark:bg-dark-tremor-background dark:border-dark-tremor-border",d,o),defaultOpen:r},s),({open:e})=>i.default.createElement(R.Provider,{value:{isOpen:e}},a))});L.displayName="Accordion",e.s(["OpenContext",0,R,"default",0,L],543086),e.s(["Accordion",0,L],677667)},130643,e=>{"use strict";var t=e.i(290571),n=e.i(271645),r=e.i(886148),l=e.i(444755);let a=(0,e.i(673706).makeClassName)("AccordionBody"),o=n.default.forwardRef((e,o)=>{let{children:i,className:s}=e,d=(0,t.__rest)(e,["children","className"]);return n.default.createElement(r.Disclosure.Panel,Object.assign({ref:o,className:(0,l.tremorTwMerge)(a("root"),"w-full text-tremor-default px-4 pb-3","text-tremor-content","dark:text-dark-tremor-content",s)},d),i)});o.displayName="AccordionBody",e.s(["AccordionBody",0,o],130643)},898667,e=>{"use strict";var t=e.i(290571),n=e.i(271645),r=e.i(886148);let l=e=>{var r=(0,t.__rest)(e,[]);return n.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},r),n.default.createElement("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"}))};var a=e.i(543086),o=e.i(444755);let i=(0,e.i(673706).makeClassName)("AccordionHeader"),s=n.default.forwardRef((e,s)=>{let{children:d,className:c}=e,u=(0,t.__rest)(e,["children","className"]),{isOpen:f}=(0,n.useContext)(a.OpenContext);return n.default.createElement(r.Disclosure.Button,Object.assign({ref:s,className:(0,o.tremorTwMerge)(i("root"),"w-full flex items-center justify-between px-4 py-3","text-tremor-content-emphasis","dark:text-dark-tremor-content-emphasis",c)},u),n.default.createElement("div",{className:(0,o.tremorTwMerge)(i("children"),"flex flex-1 text-inherit mr-4")},d),n.default.createElement("div",null,n.default.createElement(l,{className:(0,o.tremorTwMerge)(i("arrowIcon"),"h-5 w-5 -mr-1","text-tremor-content-subtle","dark:text-dark-tremor-content-subtle",f?"transition-all":"transition-all -rotate-180")})))});s.displayName="AccordionHeader",e.s(["AccordionHeader",0,s],898667)},91739,e=>{"use strict";var t=e.i(544195);e.s(["Radio",()=>t.default])},552130,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(199133),l=e.i(764205);e.s(["default",0,({onChange:e,value:a,className:o,accessToken:i,placeholder:s="Select agents",disabled:d=!1})=>{let[c,u]=(0,n.useState)([]),[f,m]=(0,n.useState)([]),[p,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{(async()=>{if(i){g(!0);try{let e=await (0,l.getAgentsList)(i),t=e?.agents||[];u(t);let n=new Set;t.forEach(e=>{let t=e.agent_access_groups;t&&Array.isArray(t)&&t.forEach(e=>n.add(e))}),m(Array.from(n))}catch(e){console.error("Error fetching agents:",e)}finally{g(!1)}}})()},[i]);let h=[...f.map(e=>({label:e,value:`group:${e}`,isAccessGroup:!0,searchText:`${e} Access Group`})),...c.map(e=>({label:`${e.agent_name||e.agent_id}`,value:e.agent_id,isAccessGroup:!1,searchText:`${e.agent_name||e.agent_id} ${e.agent_id} Agent`}))],x=[...a?.agents||[],...(a?.accessGroups||[]).map(e=>`group:${e}`)];return(0,t.jsx)("div",{children:(0,t.jsx)(r.Select,{mode:"multiple",placeholder:s,onChange:t=>{e({agents:t.filter(e=>!e.startsWith("group:")),accessGroups:t.filter(e=>e.startsWith("group:")).map(e=>e.replace("group:",""))})},value:x,loading:p,className:o,allowClear:!0,showSearch:!0,style:{width:"100%"},disabled:d,filterOption:(e,t)=>(h.find(e=>e.value===t?.value)?.searchText||"").toLowerCase().includes(e.toLowerCase()),children:h.map(e=>(0,t.jsx)(r.Select.Option,{value:e.value,label:e.label,children:(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,t.jsx)("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:e.isAccessGroup?"#52c41a":"#722ed1",flexShrink:0}}),(0,t.jsx)("span",{style:{flex:1},children:e.label}),(0,t.jsx)("span",{style:{color:e.isAccessGroup?"#52c41a":"#722ed1",fontSize:"12px",fontWeight:500,opacity:.8},children:e.isAccessGroup?"Access Group":"Agent"})]})},e.value))})})}])},557662,e=>{"use strict";let t="../ui/assets/logos/",n=[{id:"arize",displayName:"Arize",logo:`${t}arize.png`,supports_key_team_logging:!0,dynamic_params:{arize_api_key:"password",arize_space_id:"password"},description:"Arize Logging Integration"},{id:"braintrust",displayName:"Braintrust",logo:`${t}braintrust.png`,supports_key_team_logging:!1,dynamic_params:{braintrust_api_key:"password",braintrust_project_name:"text"},description:"Braintrust Logging Integration"},{id:"custom_callback_api",displayName:"Custom Callback API",logo:`${t}custom.svg`,supports_key_team_logging:!0,dynamic_params:{custom_callback_api_url:"text",custom_callback_api_headers:"text"},description:"Custom Callback API Logging Integration"},{id:"datadog",displayName:"Datadog",logo:`${t}datadog.png`,supports_key_team_logging:!1,dynamic_params:{dd_api_key:"password",dd_site:"text"},description:"Datadog Logging Integration"},{id:"lago",displayName:"Lago",logo:`${t}lago.svg`,supports_key_team_logging:!1,dynamic_params:{lago_api_url:"text",lago_api_key:"password"},description:"Lago Billing Logging Integration"},{id:"langfuse",displayName:"Langfuse",logo:`${t}langfuse.png`,supports_key_team_logging:!0,dynamic_params:{langfuse_public_key:"text",langfuse_secret_key:"password",langfuse_host:"text"},description:"Langfuse v2 Logging Integration"},{id:"langfuse_otel",displayName:"Langfuse OTEL",logo:`${t}langfuse.png`,supports_key_team_logging:!0,dynamic_params:{langfuse_public_key:"text",langfuse_secret_key:"password",langfuse_host:"text"},description:"Langfuse v3 OTEL Logging Integration"},{id:"langsmith",displayName:"LangSmith",logo:`${t}langsmith.png`,supports_key_team_logging:!0,dynamic_params:{langsmith_api_key:"password",langsmith_project:"text",langsmith_base_url:"text",langsmith_sampling_rate:"number"},description:"Langsmith Logging Integration"},{id:"openmeter",displayName:"OpenMeter",logo:`${t}openmeter.png`,supports_key_team_logging:!1,dynamic_params:{openmeter_api_key:"password",openmeter_base_url:"text"},description:"OpenMeter Logging Integration"},{id:"otel",displayName:"Open Telemetry",logo:`${t}otel.png`,supports_key_team_logging:!1,dynamic_params:{otel_endpoint:"text",otel_headers:"text"},description:"OpenTelemetry Logging Integration"},{id:"s3",displayName:"S3",logo:`${t}aws.svg`,supports_key_team_logging:!1,dynamic_params:{s3_bucket_name:"text",aws_access_key_id:"password",aws_secret_access_key:"password",aws_region:"text"},description:"S3 Bucket (AWS) Logging Integration"},{id:"SQS",displayName:"SQS",logo:`${t}aws.svg`,supports_key_team_logging:!1,dynamic_params:{sqs_queue_url:"text",aws_access_key_id:"password",aws_secret_access_key:"password",aws_region:"text"},description:"SQS Queue (AWS) Logging Integration"}],r=n.reduce((e,t)=>(e[t.displayName]=t,e),{}),l=n.reduce((e,t)=>(e[t.displayName]=t.id,e),{}),a=n.reduce((e,t)=>(e[t.id]=t.displayName,e),{});e.s(["callbackInfo",0,r,"callback_map",0,l,"mapDisplayToInternalNames",0,e=>e.map(e=>l[e]||e),"mapInternalToDisplayNames",0,e=>e.map(e=>a[e]||e),"reverse_callback_map",0,a])},9314,263147,e=>{"use strict";var t=e.i(843476),n=e.i(199133),r=e.i(981339),l=e.i(645526),a=e.i(599724),o=e.i(266027),i=e.i(243652),s=e.i(764205),d=e.i(708347),c=e.i(135214);let u=(0,i.createQueryKeys)("accessGroups"),f=async e=>{let t=(0,s.getProxyBaseUrl)(),n=`${t}/v1/access_group`,r=await fetch(n,{method:"GET",headers:{[(0,s.getGlobalLitellmHeaderName)()]:`Bearer ${e}`,"Content-Type":"application/json"}});if(!r.ok){let e=await r.json(),t=(0,s.deriveErrorMessage)(e);throw(0,s.handleError)(t),Error(t)}return r.json()},m=()=>{let{accessToken:e,userRole:t}=(0,c.default)();return(0,o.useQuery)({queryKey:u.list({}),queryFn:async()=>f(e),enabled:!!e&&d.all_admin_roles.includes(t||"")})};e.s(["accessGroupKeys",0,u,"useAccessGroups",0,m],263147),e.s(["default",0,({value:e,onChange:o,placeholder:i="Select access groups",disabled:s=!1,style:d,className:c,showLabel:u=!1,labelText:f="Access Group",allowClear:p=!0})=>{let{data:g,isLoading:h,isError:x}=m();if(h)return(0,t.jsxs)("div",{children:[u&&(0,t.jsxs)(a.Text,{className:"font-medium block mb-2 text-gray-700 flex items-center",children:[(0,t.jsx)(l.TeamOutlined,{className:"mr-2"})," ",f]}),(0,t.jsx)(r.Skeleton.Input,{active:!0,block:!0,style:{height:32,...d}})]});let v=(g??[]).map(e=>({label:(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium",children:e.access_group_name})," ",(0,t.jsxs)("span",{className:"text-gray-400 text-xs",children:["(",e.access_group_id,")"]})]}),value:e.access_group_id,selectedLabel:e.access_group_name,searchText:`${e.access_group_name} ${e.access_group_id}`}));return(0,t.jsxs)("div",{children:[u&&(0,t.jsxs)(a.Text,{className:"font-medium block mb-2 text-gray-700 flex items-center",children:[(0,t.jsx)(l.TeamOutlined,{className:"mr-2"})," ",f]}),(0,t.jsx)(n.Select,{mode:"multiple",value:e,placeholder:i,onChange:o,disabled:s,allowClear:p,showSearch:!0,style:{width:"100%",...d},className:`rounded-md ${c??""}`,notFoundContent:x?(0,t.jsx)("span",{className:"text-red-500",children:"Failed to load access groups"}):"No access groups found",filterOption:(e,t)=>(v.find(e=>e.value===t?.value)?.searchText??"").toLowerCase().includes(e.toLowerCase()),optionLabelProp:"selectedLabel",options:v.map(e=>({label:e.label,value:e.value,selectedLabel:e.selectedLabel}))})]})}],9314)},860585,e=>{"use strict";var t=e.i(843476),n=e.i(199133);let{Option:r}=n.Select;e.s(["default",0,({value:e,onChange:l,className:a="",style:o={}})=>(0,t.jsxs)(n.Select,{style:{width:"100%",...o},value:e||void 0,onChange:l,className:a,placeholder:"n/a",allowClear:!0,children:[(0,t.jsx)(r,{value:"1h",children:"hourly"}),(0,t.jsx)(r,{value:"24h",children:"daily"}),(0,t.jsx)(r,{value:"7d",children:"weekly"}),(0,t.jsx)(r,{value:"30d",children:"monthly"})]}),"getBudgetDurationLabel",0,e=>e?({"1h":"hourly","24h":"daily","7d":"weekly","30d":"monthly"})[e]||e:"Not set"])},392110,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(199133),l=e.i(592968),a=e.i(312361),o=e.i(790848),i=e.i(536916),s=e.i(827252),d=e.i(779241);let{Option:c}=r.Select;e.s(["default",0,({form:e,autoRotationEnabled:u,onAutoRotationChange:f,rotationInterval:m,onRotationIntervalChange:p,isCreateMode:g=!1,neverExpire:h=!1,onNeverExpireChange:x})=>{let v=m&&!["7d","30d","90d","180d","365d"].includes(m),[b,y]=(0,n.useState)(v),[w,j]=(0,n.useState)(v?m:""),[C,k]=(0,n.useState)(e?.getFieldValue?.("duration")||"");return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Key Expiry Settings"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-medium text-gray-700 flex items-center space-x-1",children:[(0,t.jsx)("span",{children:"Expire Key"}),(0,t.jsx)(l.Tooltip,{title:"Set when this key should expire. Format: 30s (seconds), 30m (minutes), 30h (hours), 30d (days). Leave empty to keep the current expiry unchanged.",children:(0,t.jsx)(s.InfoCircleOutlined,{className:"text-gray-400 cursor-help text-xs"})}),!g&&x&&(0,t.jsx)(i.Checkbox,{checked:h,onChange:t=>{let n=t.target.checked;x(n),n&&(k(""),e&&"function"==typeof e.setFieldValue?e.setFieldValue("duration",""):e&&"function"==typeof e.setFieldsValue&&e.setFieldsValue({duration:""}))},className:"ml-2 text-sm font-normal text-gray-600",children:"Never Expire"})]}),(0,t.jsx)(d.TextInput,{name:"duration",placeholder:g?"e.g., 30d or leave empty to never expire":"e.g., 30d",className:"w-full",value:C,onValueChange:t=>{k(t),e&&"function"==typeof e.setFieldValue?e.setFieldValue("duration",t):e&&"function"==typeof e.setFieldsValue&&e.setFieldsValue({duration:t})},disabled:!g&&h})]})]}),(0,t.jsx)(a.Divider,{}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Auto-Rotation Settings"}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-medium text-gray-700 flex items-center space-x-1",children:[(0,t.jsx)("span",{children:"Enable Auto-Rotation"}),(0,t.jsx)(l.Tooltip,{title:"Key will automatically regenerate at the specified interval for enhanced security.",children:(0,t.jsx)(s.InfoCircleOutlined,{className:"text-gray-400 cursor-help text-xs"})})]}),(0,t.jsx)(o.Switch,{checked:u,onChange:f,size:"default",className:u?"":"bg-gray-400"})]}),u&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-medium text-gray-700 flex items-center space-x-1",children:[(0,t.jsx)("span",{children:"Rotation Interval"}),(0,t.jsx)(l.Tooltip,{title:"How often the key should be automatically rotated. Choose the interval that best fits your security requirements.",children:(0,t.jsx)(s.InfoCircleOutlined,{className:"text-gray-400 cursor-help text-xs"})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(r.Select,{value:b?"custom":m,onChange:e=>{"custom"===e?y(!0):(y(!1),j(""),p(e))},className:"w-full",placeholder:"Select interval",children:[(0,t.jsx)(c,{value:"7d",children:"7 days"}),(0,t.jsx)(c,{value:"30d",children:"30 days"}),(0,t.jsx)(c,{value:"90d",children:"90 days"}),(0,t.jsx)(c,{value:"180d",children:"180 days"}),(0,t.jsx)(c,{value:"365d",children:"365 days"}),(0,t.jsx)(c,{value:"custom",children:"Custom interval"})]}),b&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)(d.TextInput,{value:w,onChange:e=>{let t=e.target.value;j(t),p(t)},placeholder:"e.g., 1s, 5m, 2h, 14d"}),(0,t.jsx)("div",{className:"text-xs text-gray-500",children:"Supported formats: seconds (s), minutes (m), hours (h), days (d)"})]})]})]})]}),u&&(0,t.jsx)("div",{className:"bg-blue-50 p-3 rounded-md text-sm text-blue-700",children:"When rotation occurs, you'll receive a notification with the new key. The old key will be deactivated after a brief grace period."})]})]})}])},797672,e=>{"use strict";var t=e.i(271645);let n=t.forwardRef(function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))});e.s(["PencilIcon",0,n],797672)},533882,992619,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(250980),l=e.i(797672),a=e.i(68155),o=e.i(304967),i=e.i(629569),s=e.i(599724),d=e.i(269200),c=e.i(427612),u=e.i(64848),f=e.i(942232),m=e.i(496020),p=e.i(977572),g=e.i(779241),h=e.i(199133),x=e.i(983561),v=e.i(689020);let b=({accessToken:e,value:r,placeholder:l="Select a Model",onChange:a,disabled:o=!1,style:i,className:d,showLabel:c=!0,labelText:u="Select Model"})=>{let[f,m]=(0,n.useState)(r),[p,b]=(0,n.useState)(!1),[y,w]=(0,n.useState)([]),j=(0,n.useRef)(null);return(0,n.useEffect)(()=>{m(r)},[r]),(0,n.useEffect)(()=>{e&&(async()=>{try{let t=await (0,v.fetchAvailableModels)(e);console.log("Fetched models for selector:",t),t.length>0&&w(t)}catch(e){console.error("Error fetching model info:",e)}})()},[e]),(0,t.jsxs)("div",{children:[c&&(0,t.jsxs)(s.Text,{className:"font-medium block mb-2 text-gray-700 flex items-center",children:[(0,t.jsx)(x.RobotOutlined,{className:"mr-2"})," ",u]}),(0,t.jsx)(h.Select,{value:f,placeholder:l,onChange:e=>{"custom"===e?(b(!0),m(void 0)):(b(!1),m(e),a&&a(e))},options:[...Array.from(new Set(y.map(e=>e.model_group))).map((e,t)=>({value:e,label:e,key:t})),{value:"custom",label:"Enter custom model",key:"custom"}],style:{width:"100%",...i},showSearch:!0,className:`rounded-md ${d||""}`,disabled:o}),p&&(0,t.jsx)(g.TextInput,{className:"mt-2",placeholder:"Enter custom model name",onValueChange:e=>{j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{m(e),a&&a(e)},500)},disabled:o})]})};e.s(["default",0,b],992619);var y=e.i(727749);e.s(["default",0,({accessToken:e,initialModelAliases:g={},onAliasUpdate:h,showExampleConfig:x=!0})=>{let[v,w]=(0,n.useState)([]),[j,C]=(0,n.useState)({aliasName:"",targetModel:""}),[k,S]=(0,n.useState)(null);(0,n.useEffect)(()=>{w(Object.entries(g).map(([e,t],n)=>({id:`${n}-${e}`,aliasName:e,targetModel:t})))},[g]);let N=()=>{if(!k)return;if(!k.aliasName||!k.targetModel)return void y.default.fromBackend("Please provide both alias name and target model");if(v.some(e=>e.id!==k.id&&e.aliasName===k.aliasName))return void y.default.fromBackend("An alias with this name already exists");let e=v.map(e=>e.id===k.id?k:e);w(e),S(null);let t={};e.forEach(e=>{t[e.aliasName]=e.targetModel}),h&&h(t),y.default.success("Alias updated successfully")},E=()=>{S(null)},_=v.reduce((e,t)=>(e[t.aliasName]=t.targetModel,e),{});return(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)(s.Text,{className:"text-sm font-medium text-gray-700 mb-2",children:"Add New Alias"}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Alias Name"}),(0,t.jsx)("input",{type:"text",value:j.aliasName,onChange:e=>C({...j,aliasName:e.target.value}),placeholder:"e.g., gpt-4o",className:"w-full px-3 py-2 border border-gray-300 rounded-md text-sm"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-xs text-gray-500 mb-1",children:"Target Model"}),(0,t.jsx)(b,{accessToken:e,value:j.targetModel,placeholder:"Select target model",onChange:e=>C({...j,targetModel:e}),showLabel:!1})]}),(0,t.jsx)("div",{className:"flex items-end",children:(0,t.jsxs)("button",{onClick:()=>{if(!j.aliasName||!j.targetModel)return void y.default.fromBackend("Please provide both alias name and target model");if(v.some(e=>e.aliasName===j.aliasName))return void y.default.fromBackend("An alias with this name already exists");let e=[...v,{id:`${Date.now()}-${j.aliasName}`,aliasName:j.aliasName,targetModel:j.targetModel}];w(e),C({aliasName:"",targetModel:""});let t={};e.forEach(e=>{t[e.aliasName]=e.targetModel}),h&&h(t),y.default.success("Alias added successfully")},disabled:!j.aliasName||!j.targetModel,className:`flex items-center px-4 py-2 rounded-md text-sm ${!j.aliasName||!j.targetModel?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-green-600 text-white hover:bg-green-700"}`,children:[(0,t.jsx)(r.PlusCircleIcon,{className:"w-4 h-4 mr-1"}),"Add Alias"]})})]})]}),(0,t.jsx)(s.Text,{className:"text-sm font-medium text-gray-700 mb-2",children:"Manage Existing Aliases"}),(0,t.jsx)("div",{className:"rounded-lg custom-border relative mb-6",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)(d.Table,{className:"[&_td]:py-0.5 [&_th]:py-1",children:[(0,t.jsx)(c.TableHead,{children:(0,t.jsxs)(m.TableRow,{children:[(0,t.jsx)(u.TableHeaderCell,{className:"py-1 h-8",children:"Alias Name"}),(0,t.jsx)(u.TableHeaderCell,{className:"py-1 h-8",children:"Target Model"}),(0,t.jsx)(u.TableHeaderCell,{className:"py-1 h-8",children:"Actions"})]})}),(0,t.jsxs)(f.TableBody,{children:[v.map(n=>(0,t.jsx)(m.TableRow,{className:"h-8",children:k&&k.id===n.id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.TableCell,{className:"py-0.5",children:(0,t.jsx)("input",{type:"text",value:k.aliasName,onChange:e=>S({...k,aliasName:e.target.value}),className:"w-full px-2 py-1 border border-gray-300 rounded-md text-sm"})}),(0,t.jsx)(p.TableCell,{className:"py-0.5",children:(0,t.jsx)(b,{accessToken:e,value:k.targetModel,onChange:e=>S({...k,targetModel:e}),showLabel:!1,style:{height:"32px"}})}),(0,t.jsx)(p.TableCell,{className:"py-0.5 whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsx)("button",{onClick:N,className:"text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded hover:bg-blue-100",children:"Save"}),(0,t.jsx)("button",{onClick:E,className:"text-xs bg-gray-50 text-gray-600 px-2 py-1 rounded hover:bg-gray-100",children:"Cancel"})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.TableCell,{className:"py-0.5 text-sm text-gray-900",children:n.aliasName}),(0,t.jsx)(p.TableCell,{className:"py-0.5 text-sm text-gray-500",children:n.targetModel}),(0,t.jsx)(p.TableCell,{className:"py-0.5 whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsx)("button",{onClick:()=>{S({...n})},className:"text-xs bg-blue-50 text-blue-600 px-2 py-1 rounded hover:bg-blue-100",children:(0,t.jsx)(l.PencilIcon,{className:"w-3 h-3"})}),(0,t.jsx)("button",{onClick:()=>{var e;let t,r;return e=n.id,w(t=v.filter(t=>t.id!==e)),r={},void(t.forEach(e=>{r[e.aliasName]=e.targetModel}),h&&h(r),y.default.success("Alias deleted successfully"))},className:"text-xs bg-red-50 text-red-600 px-2 py-1 rounded hover:bg-red-100",children:(0,t.jsx)(a.TrashIcon,{className:"w-3 h-3"})})]})})]})},n.id)),0===v.length&&(0,t.jsx)(m.TableRow,{children:(0,t.jsx)(p.TableCell,{colSpan:3,className:"py-0.5 text-sm text-gray-500 text-center",children:"No aliases added yet. Add a new alias above."})})]})]})})}),x&&(0,t.jsxs)(o.Card,{children:[(0,t.jsx)(i.Title,{className:"mb-4",children:"Configuration Example"}),(0,t.jsx)(s.Text,{className:"text-gray-600 mb-4",children:"Here's how your current aliases would look in the config:"}),(0,t.jsx)("div",{className:"bg-gray-100 rounded-lg p-4 font-mono text-sm",children:(0,t.jsxs)("div",{className:"text-gray-700",children:["model_aliases:",0===Object.keys(_).length?(0,t.jsxs)("span",{className:"text-gray-500",children:[(0,t.jsx)("br",{}),"  # No aliases configured yet"]}):Object.entries(_).map(([e,n])=>(0,t.jsxs)("span",{children:[(0,t.jsx)("br",{}),'  "',e,'": "',n,'"']},e))]})})]})]})}],533882)},844565,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(199133),l=e.i(764205);e.s(["default",0,({onChange:e,value:a,className:o,accessToken:i,placeholder:s="Select pass through routes",disabled:d=!1,teamId:c})=>{let[u,f]=(0,n.useState)([]),[m,p]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(async()=>{if(i){p(!0);try{let e=await (0,l.getPassThroughEndpointsCall)(i,c);if(e.endpoints){let t=e.endpoints.flatMap(e=>{let t=e.path,n=e.methods;return n&&n.length>0?n.map(e=>({label:`${e} ${t}`,value:t})):[{label:t,value:t}]});f(t)}}catch(e){console.error("Error fetching pass through routes:",e)}finally{p(!1)}}})()},[i,c]),(0,t.jsx)(r.Select,{mode:"tags",placeholder:s,onChange:e,value:a,loading:m,className:o,allowClear:!0,options:u,optionFilterProp:"label",showSearch:!0,style:{width:"100%"},disabled:d})}])},988297,e=>{"use strict";var t=e.i(271645);let n=t.forwardRef(function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))});e.s(["PlusIcon",0,n],988297)},810757,477386,e=>{"use strict";var t=e.i(271645);let n=t.forwardRef(function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))});e.s(["CogIcon",0,n],810757);let r=t.forwardRef(function(e,n){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},e),t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"}))});e.s(["BanIcon",0,r],477386)},266484,e=>{"use strict";var t=e.i(843476),n=e.i(199133),r=e.i(592968),l=e.i(312361),a=e.i(827252),o=e.i(994388),i=e.i(304967),s=e.i(779241),d=e.i(988297),c=e.i(68155),u=e.i(810757),f=e.i(477386),m=e.i(557662),p=e.i(435451);let{Option:g}=n.Select;e.s(["default",0,({value:e=[],onChange:h,disabledCallbacks:x=[],onDisabledCallbacksChange:v})=>{let b=Object.entries(m.callbackInfo).filter(([e,t])=>t.supports_key_team_logging).map(([e,t])=>e),y=Object.keys(m.callbackInfo),w=e=>{h?.(e)},j=(t,n,r)=>{let l=[...e];if("callback_name"===n){let e=m.callback_map[r]||r;l[t]={...l[t],[n]:e,callback_vars:{}}}else l[t]={...l[t],[n]:r};w(l)},C=(t,n,r)=>{let l=[...e];l[t]={...l[t],callback_vars:{...l[t].callback_vars,[n]:r}},w(l)};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(f.BanIcon,{className:"w-5 h-5 text-red-500"}),(0,t.jsx)("span",{className:"text-base font-semibold text-gray-800",children:"Disabled Callbacks"}),(0,t.jsx)(r.Tooltip,{title:"Select callbacks to disable for this key. Disabled callbacks will not receive any logging data.",children:(0,t.jsx)(a.InfoCircleOutlined,{className:"text-gray-400 cursor-help"})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Disabled Callbacks"}),(0,t.jsx)(n.Select,{mode:"multiple",placeholder:"Select callbacks to disable",value:x,onChange:e=>{let t=(0,m.mapDisplayToInternalNames)(e);v?.(t)},style:{width:"100%"},optionLabelProp:"label",children:y.map(e=>{let n=m.callbackInfo[e]?.logo,l=m.callbackInfo[e]?.description;return(0,t.jsx)(g,{value:e,label:e,children:(0,t.jsx)(r.Tooltip,{title:l,placement:"right",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[n&&(0,t.jsx)("img",{src:n,alt:e,className:"w-4 h-4 object-contain",onError:t=>{let n=t.target,r=n.parentElement;if(r){let t=document.createElement("div");t.className="w-4 h-4 rounded-full bg-gray-200 flex items-center justify-center text-xs",t.textContent=e.charAt(0),r.replaceChild(t,n)}}}),(0,t.jsx)("span",{children:e})]})})},e)})}),(0,t.jsx)("div",{className:"text-xs text-gray-500",children:"Select callbacks that should be disabled for this key. These callbacks will not receive any logging data."})]})]}),(0,t.jsx)(l.Divider,{}),(0,t.jsxs)("div",{className:"flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(u.CogIcon,{className:"w-5 h-5 text-blue-500"}),(0,t.jsx)("span",{className:"text-base font-semibold text-gray-800",children:"Logging Integrations"}),(0,t.jsx)(r.Tooltip,{title:"Configure callback logging integrations for this team.",children:(0,t.jsx)(a.InfoCircleOutlined,{className:"text-gray-400 cursor-help"})})]}),(0,t.jsx)(o.Button,{variant:"secondary",onClick:()=>{w([...e,{callback_name:"",callback_type:"success",callback_vars:{}}])},icon:d.PlusIcon,size:"sm",className:"hover:border-blue-400 hover:text-blue-500",type:"button",children:"Add Integration"})]}),(0,t.jsx)("div",{className:"space-y-4",children:e.map((l,d)=>{let u=l.callback_name?Object.entries(m.callback_map).find(([e,t])=>t===l.callback_name)?.[0]:void 0,f=u?m.callbackInfo[u]?.logo:null;return(0,t.jsxs)(i.Card,{className:"border border-gray-200 shadow-sm hover:shadow-md transition-shadow duration-200",decoration:"top",decorationColor:"blue",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[f&&(0,t.jsx)("img",{src:f,alt:u,className:"w-5 h-5 object-contain"}),(0,t.jsxs)("span",{className:"text-sm font-medium",children:[u||"New Integration"," Configuration"]})]}),(0,t.jsx)(o.Button,{variant:"light",onClick:()=>{w(e.filter((e,t)=>t!==d))},icon:c.TrashIcon,size:"xs",color:"red",className:"hover:bg-red-50",type:"button",children:"Remove"})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Integration Type"}),(0,t.jsx)(n.Select,{value:u,placeholder:"Select integration",onChange:e=>j(d,"callback_name",e),className:"w-full",optionLabelProp:"label",children:b.map(e=>{let n=m.callbackInfo[e]?.logo,l=m.callbackInfo[e]?.description;return(0,t.jsx)(g,{value:e,label:e,children:(0,t.jsx)(r.Tooltip,{title:l,placement:"right",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[n&&(0,t.jsx)("img",{src:n,alt:e,className:"w-4 h-4 object-contain",onError:t=>{let n=t.target,r=n.parentElement;if(r){let t=document.createElement("div");t.className="w-4 h-4 rounded-full bg-gray-200 flex items-center justify-center text-xs",t.textContent=e.charAt(0),r.replaceChild(t,n)}}}),(0,t.jsx)("span",{children:e})]})})},e)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-gray-700",children:"Event Type"}),(0,t.jsxs)(n.Select,{value:l.callback_type,onChange:e=>j(d,"callback_type",e),className:"w-full",children:[(0,t.jsx)(g,{value:"success",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),(0,t.jsx)("span",{children:"Success Only"})]})}),(0,t.jsx)(g,{value:"failure",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-red-500 rounded-full"}),(0,t.jsx)("span",{children:"Failure Only"})]})}),(0,t.jsx)(g,{value:"success_and_failure",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),(0,t.jsx)("span",{children:"Success & Failure"})]})})]})]})]}),((e,n)=>{if(!e.callback_name)return null;let l=Object.entries(m.callback_map).find(([t,n])=>n===e.callback_name)?.[0];if(!l)return null;let o=m.callbackInfo[l]?.dynamic_params||{};return 0===Object.keys(o).length?null:(0,t.jsxs)("div",{className:"mt-6 pt-4 border-t border-gray-100",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2 mb-4",children:[(0,t.jsx)("div",{className:"w-3 h-3 bg-blue-100 rounded-full flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-1.5 h-1.5 bg-blue-500 rounded-full"})}),(0,t.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Integration Parameters"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-4",children:Object.entries(o).map(([l,o])=>(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-medium text-gray-700 capitalize flex items-center space-x-1",children:[(0,t.jsx)("span",{children:l.replace(/_/g," ")}),(0,t.jsx)(r.Tooltip,{title:`Environment variable reference recommended: os.environ/${l.toUpperCase()}`,children:(0,t.jsx)(a.InfoCircleOutlined,{className:"text-gray-400 cursor-help text-xs"})}),"password"===o&&(0,t.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"Sensitive"}),"number"===o&&(0,t.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-yellow-100 text-yellow-800",children:"Number"})]}),"number"===o&&(0,t.jsx)("span",{className:"text-xs text-gray-500",children:"Value must be between 0 and 1"}),"number"===o?(0,t.jsx)(p.default,{step:.01,width:400,placeholder:`os.environ/${l.toUpperCase()}`,value:e.callback_vars[l]||"",onChange:e=>C(n,l,e.target.value)}):(0,t.jsx)(s.TextInput,{type:"password"===o?"password":"text",placeholder:`os.environ/${l.toUpperCase()}`,value:e.callback_vars[l]||"",onChange:e=>C(n,l,e.target.value)})]},l))})]})})(l,d)]})]},d)})}),0===e.length&&(0,t.jsxs)("div",{className:"text-center py-12 text-gray-500 border-2 border-dashed border-gray-200 rounded-lg bg-gray-50/50",children:[(0,t.jsx)(u.CogIcon,{className:"w-12 h-12 text-gray-300 mb-3 mx-auto"}),(0,t.jsx)("div",{className:"text-base font-medium mb-1",children:"No logging integrations configured"}),(0,t.jsx)("div",{className:"text-sm text-gray-400",children:'Click "Add Integration" to configure logging for this team'})]})]})}])},651904,e=>{"use strict";var t=e.i(843476),n=e.i(599724),r=e.i(266484);e.s(["default",0,function({value:e,onChange:l,premiumUser:a=!1,disabledCallbacks:o=[],onDisabledCallbacksChange:i}){return a?(0,t.jsx)(r.default,{value:e,onChange:l,disabledCallbacks:o,onDisabledCallbacksChange:i}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,t.jsx)("div",{className:"inline-flex items-center px-3 py-1.5 rounded-lg bg-green-50 border border-green-200 text-green-800 text-sm font-medium opacity-50",children:"✨ langfuse-logging"}),(0,t.jsx)("div",{className:"inline-flex items-center px-3 py-1.5 rounded-lg bg-green-50 border border-green-200 text-green-800 text-sm font-medium opacity-50",children:"✨ datadog-logging"})]}),(0,t.jsx)("div",{className:"p-3 bg-yellow-50 border border-yellow-200 rounded-lg",children:(0,t.jsxs)(n.Text,{className:"text-sm text-yellow-800",children:["Setting Key/Team logging settings is a LiteLLM Enterprise feature. Global Logging Settings are available for all free users. Get a trial key"," ",(0,t.jsx)("a",{href:"https://www.litellm.ai/#pricing",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"here"}),"."]})})]})}])},939510,e=>{"use strict";var t=e.i(843476),n=e.i(808613),r=e.i(199133),l=e.i(592968),a=e.i(827252);let{Option:o}=r.Select;e.s(["default",0,({type:e,name:i,showDetailedDescriptions:s=!0,className:d="",initialValue:c=null,form:u,onChange:f})=>{let m=e.toUpperCase(),p=e.toLowerCase(),g=`Select 'guaranteed_throughput' to prevent overallocating ${m} limit when the key belongs to a Team with specific ${m} limits.`;return(0,t.jsx)(n.Form.Item,{label:(0,t.jsxs)("span",{children:[m," Rate Limit Type"," ",(0,t.jsx)(l.Tooltip,{title:g,children:(0,t.jsx)(a.InfoCircleOutlined,{style:{marginLeft:"4px"}})})]}),name:i,initialValue:c,className:d,children:(0,t.jsx)(r.Select,{defaultValue:s?"default":void 0,placeholder:"Select rate limit type",style:{width:"100%"},optionLabelProp:s?"label":void 0,onChange:e=>{u&&u.setFieldValue(i,e),f&&f(e)},children:s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{value:"best_effort_throughput",label:"Default",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"Default"}),(0,t.jsxs)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:["Best effort throughput - no error if we're overallocating ",p," (Team/Key Limits checked at runtime)."]})]})}),(0,t.jsx)(o,{value:"guaranteed_throughput",label:"Guaranteed throughput",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"Guaranteed throughput"}),(0,t.jsxs)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:["Guaranteed throughput - raise an error if we're overallocating ",p," (also checks model-specific limits)"]})]})}),(0,t.jsx)(o,{value:"dynamic",label:"Dynamic",children:(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[(0,t.jsx)("div",{style:{fontWeight:500},children:"Dynamic"}),(0,t.jsxs)("div",{style:{fontSize:"11px",color:"#6b7280",marginTop:"2px"},children:["If the key has a set ",m," (e.g. 2 ",m,") and there are no 429 errors, it can dynamically exceed the limit when the model being called is not erroring."]})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o,{value:"best_effort_throughput",children:"Best effort throughput"}),(0,t.jsx)(o,{value:"guaranteed_throughput",children:"Guaranteed throughput"}),(0,t.jsx)(o,{value:"dynamic",children:"Dynamic"})]})})})}])},460285,158392,361653,419470,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(404206),l=e.i(723731),a=e.i(653824),o=e.i(881073),i=e.i(197647),s=e.i(764205),d=e.i(311451);let c={ttl:3600,lowest_latency_buffer:0},u=({routingStrategyArgs:e})=>{let n={ttl:"Sliding window to look back over when calculating the average latency of a deployment. Default - 1 hour (in seconds).",lowest_latency_buffer:"Shuffle between deployments within this % of the lowest latency. Default - 0 (i.e. always pick lowest latency)."};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-gray-900",children:"Latency-Based Configuration"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Fine-tune latency-based routing behavior"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3",children:Object.entries(e||c).map(([e,r])=>(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-gray-700 uppercase tracking-wide",children:e.replace(/_/g," ")}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-0.5 mb-2",children:n[e]||""}),(0,t.jsx)(d.Input,{name:e,defaultValue:"object"==typeof r?JSON.stringify(r,null,2):r?.toString(),className:"font-mono text-sm w-full"})]})},e))})]}),(0,t.jsx)("div",{className:"border-t border-gray-200"})]})},f=({routerSettings:e,routerFieldsMetadata:n})=>(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-gray-900",children:"Reliability & Retries"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Configure retry logic and failure handling"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2 xl:grid-cols-3",children:Object.entries(e).filter(([e,t])=>"fallbacks"!=e&&"context_window_fallbacks"!=e&&"routing_strategy_args"!=e&&"routing_strategy"!=e&&"enable_tag_filtering"!=e).map(([e,r])=>(0,t.jsx)("div",{className:"space-y-2",children:(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-gray-700 uppercase tracking-wide",children:n[e]?.ui_field_name||e}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-0.5 mb-2",children:n[e]?.field_description||""}),(0,t.jsx)(d.Input,{name:e,defaultValue:null==r||"null"===r?"":"object"==typeof r?JSON.stringify(r,null,2):r?.toString()||"",placeholder:"—",className:"font-mono text-sm w-full"})]})},e))})]});var m=e.i(199133);let p=({selectedStrategy:e,availableStrategies:n,routingStrategyDescriptions:r,routerFieldsMetadata:l,onStrategyChange:a})=>(0,t.jsxs)("div",{className:"space-y-2 max-w-3xl",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"text-xs font-medium text-gray-700 uppercase tracking-wide",children:l.routing_strategy?.ui_field_name||"Routing Strategy"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-0.5 mb-2",children:l.routing_strategy?.field_description||""})]}),(0,t.jsx)("div",{className:"routing-strategy-select max-w-3xl",children:(0,t.jsx)(m.Select,{value:e,onChange:a,style:{width:"100%"},size:"large",children:n.map(e=>(0,t.jsx)(m.Select.Option,{value:e,label:e,children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5 py-1",children:[(0,t.jsx)("span",{className:"font-mono text-sm font-medium",children:e}),r[e]&&(0,t.jsx)("span",{className:"text-xs text-gray-500 font-normal",children:r[e]})]})},e))})})]});var g=e.i(790848);let h=({enabled:e,routerFieldsMetadata:n,onToggle:r})=>(0,t.jsx)("div",{className:"space-y-3 max-w-3xl",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{className:"text-xs font-medium text-gray-700 uppercase tracking-wide",children:n.enable_tag_filtering?.ui_field_name||"Enable Tag Filtering"}),(0,t.jsxs)("p",{className:"text-xs text-gray-500 mt-0.5",children:[n.enable_tag_filtering?.field_description||"",n.enable_tag_filtering?.link&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("a",{href:n.enable_tag_filtering.link,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 underline",children:"Learn more"})]})]})]}),(0,t.jsx)(g.Switch,{checked:e,onChange:r,className:"ml-4"})]})}),x=({value:e,onChange:n,routerFieldsMetadata:r,availableRoutingStrategies:l,routingStrategyDescriptions:a})=>(0,t.jsxs)("div",{className:"w-full space-y-8 py-2",children:[(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-gray-900",children:"Routing Settings"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Configure how requests are routed to deployments"})]}),l.length>0&&(0,t.jsx)(p,{selectedStrategy:e.selectedStrategy||e.routerSettings.routing_strategy||null,availableStrategies:l,routingStrategyDescriptions:a,routerFieldsMetadata:r,onStrategyChange:t=>{n({...e,selectedStrategy:t})}}),(0,t.jsx)(h,{enabled:e.enableTagFiltering,routerFieldsMetadata:r,onToggle:t=>{n({...e,enableTagFiltering:t})}})]}),(0,t.jsx)("div",{className:"border-t border-gray-200"}),"latency-based-routing"===e.selectedStrategy&&(0,t.jsx)(u,{routingStrategyArgs:e.routerSettings.routing_strategy_args}),(0,t.jsx)(f,{routerSettings:e.routerSettings,routerFieldsMetadata:r})]});e.s(["default",0,x],158392);var v=e.i(994388),b=e.i(653496),y=e.i(107233),w=e.i(888259),j=e.i(592968),C=e.i(475254);let k=(0,C.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["default",0,k],361653);let S=(0,C.default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var N=e.i(37727);function E({group:e,onChange:n,availableModels:r,maxFallbacks:l}){let a=r.filter(t=>t!==e.primaryModel),o=e.fallbackModels.length{let r=[...e.fallbackModels];r.includes(t)&&(r=r.filter(e=>e!==t)),n({...e,primaryModel:t,fallbackModels:r})},showSearch:!0,getPopupContainer:e=>e.parentElement||document.body,filterOption:(e,t)=>(t?.label??"").toLowerCase().includes(e.toLowerCase()),options:r.map(e=>({label:e,value:e}))}),!e.primaryModel&&(0,t.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-amber-600 text-xs bg-amber-50 p-2 rounded",children:[(0,t.jsx)(k,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Select a model to begin configuring fallbacks"})]})]}),(0,t.jsx)("div",{className:"flex items-center justify-center -my-4 z-10",children:(0,t.jsxs)("div",{className:"bg-indigo-50 text-indigo-500 px-4 py-1 rounded-full text-xs font-bold border border-indigo-100 flex items-center gap-2 shadow-sm",children:[(0,t.jsx)(S,{className:"w-4 h-4"}),"IF FAILS, TRY..."]})}),(0,t.jsxs)("div",{className:`transition-opacity duration-300 ${!e.primaryModel?"opacity-50 pointer-events-none":"opacity-100"}`,children:[(0,t.jsxs)("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:["Fallback Chain ",(0,t.jsx)("span",{className:"text-red-500",children:"*"}),(0,t.jsxs)("span",{className:"text-xs text-gray-500 font-normal ml-2",children:["(Max ",l," fallbacks at a time)"]})]}),(0,t.jsxs)("div",{className:"bg-gray-50 rounded-xl p-4 border border-gray-200",children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsx)(m.Select,{mode:"multiple",className:"w-full",size:"large",placeholder:o?"Select fallback models to add...":`Maximum ${l} fallbacks reached`,value:e.fallbackModels,onChange:t=>{let r=t.slice(0,l);n({...e,fallbackModels:r})},disabled:!e.primaryModel,getPopupContainer:e=>e.parentElement||document.body,options:a.map(e=>({label:e,value:e})),optionRender:(n,r)=>{let l=e.fallbackModels.includes(n.value),a=l?e.fallbackModels.indexOf(n.value)+1:null;return(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[l&&null!==a&&(0,t.jsx)("span",{className:"flex items-center justify-center w-5 h-5 rounded bg-indigo-100 text-indigo-600 text-xs font-bold",children:a}),(0,t.jsx)("span",{children:n.label})]})},maxTagCount:"responsive",maxTagPlaceholder:e=>(0,t.jsx)(j.Tooltip,{styles:{root:{pointerEvents:"none"}},title:e.map(({value:e})=>e).join(", "),children:(0,t.jsxs)("span",{children:["+",e.length," more"]})}),showSearch:!0,filterOption:(e,t)=>(t?.label??"").toLowerCase().includes(e.toLowerCase())}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1 ml-1",children:o?`Search and select multiple models. Selected models will appear below in order. (${e.fallbackModels.length}/${l} used)`:`Maximum ${l} fallbacks reached. Remove some to add more.`})]}),(0,t.jsx)("div",{className:"space-y-2 min-h-[100px]",children:0===e.fallbackModels.length?(0,t.jsxs)("div",{className:"h-32 border-2 border-dashed border-gray-300 rounded-lg flex flex-col items-center justify-center text-gray-400",children:[(0,t.jsx)("span",{className:"text-sm",children:"No fallback models selected"}),(0,t.jsx)("span",{className:"text-xs mt-1",children:"Add models from the dropdown above"})]}):e.fallbackModels.map((r,l)=>(0,t.jsxs)("div",{className:"group flex items-center justify-between p-3 bg-white rounded-lg border border-gray-200 hover:border-indigo-300 hover:shadow-sm transition-all",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex items-center justify-center w-6 h-6 rounded bg-gray-100 text-gray-400 group-hover:text-indigo-500 group-hover:bg-indigo-50",children:(0,t.jsx)("span",{className:"text-xs font-bold",children:l+1})}),(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"font-medium text-gray-800",children:r})})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{let t;return t=e.fallbackModels.filter((e,t)=>t!==l),void n({...e,fallbackModels:t})},className:"opacity-0 group-hover:opacity-100 transition-opacity text-gray-400 hover:text-red-500 p-1",children:(0,t.jsx)(N.X,{className:"w-4 h-4"})})]},`${r}-${l}`))})]})]})]})}function _({groups:e,onGroupsChange:r,availableModels:l,maxFallbacks:a=10,maxGroups:o=5}){let[i,s]=(0,n.useState)(e.length>0?e[0].id:"1");(0,n.useEffect)(()=>{e.length>0?e.some(e=>e.id===i)||s(e[0].id):s("1")},[e]);let d=()=>{if(e.length>=o)return;let t=Date.now().toString();r([...e,{id:t,primaryModel:null,fallbackModels:[]}]),s(t)},c=t=>{r(e.map(e=>e.id===t.id?t:e))},u=e.map((n,r)=>{let o=n.primaryModel?n.primaryModel:`Group ${r+1}`;return{key:n.id,label:o,closable:e.length>1,children:(0,t.jsx)(E,{group:n,onChange:c,availableModels:l,maxFallbacks:a})}});return 0===e.length?(0,t.jsxs)("div",{className:"text-center py-12 bg-gray-50 rounded-lg border border-dashed border-gray-300",children:[(0,t.jsx)("p",{className:"text-gray-500 mb-4",children:"No fallback groups configured"}),(0,t.jsx)(v.Button,{variant:"primary",onClick:d,icon:()=>(0,t.jsx)(y.Plus,{className:"w-4 h-4"}),children:"Create First Group"})]}):(0,t.jsx)(b.Tabs,{type:"editable-card",activeKey:i,onChange:s,onEdit:(t,n)=>{"add"===n?d():"remove"===n&&e.length>1&&(t=>{if(1===e.length)return w.default.warning("At least one group is required");let n=e.filter(e=>e.id!==t);r(n),i===t&&n.length>0&&s(n[n.length-1].id)})(t)},items:u,className:"fallback-tabs",tabBarStyle:{marginBottom:0},hideAdd:e.length>=o})}e.s(["FallbackSelectionForm",0,_],419470);var O=e.i(689020);let $=(0,n.forwardRef)(({accessToken:e,value:d,onChange:c,modelData:u},f)=>{let[m,p]=(0,n.useState)({routerSettings:{},selectedStrategy:null,enableTagFiltering:!1}),[g,h]=(0,n.useState)([]),[v,b]=(0,n.useState)([]),[y,w]=(0,n.useState)([]),[j,C]=(0,n.useState)([]),[k,S]=(0,n.useState)({}),[N,E]=(0,n.useState)({}),$=(0,n.useRef)(!1),T=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=d?.router_settings?JSON.stringify({routing_strategy:d.router_settings.routing_strategy,fallbacks:d.router_settings.fallbacks,enable_tag_filtering:d.router_settings.enable_tag_filtering}):null;if($.current&&e===T.current){$.current=!1;return}if($.current&&e!==T.current&&($.current=!1),e!==T.current)if(T.current=e,d?.router_settings){let e=d.router_settings,{fallbacks:t,...n}=e;p({routerSettings:n,selectedStrategy:e.routing_strategy||null,enableTagFiltering:e.enable_tag_filtering??!1});let r=e.fallbacks||[];h(r),b(r&&0!==r.length?r.map((e,t)=>{let[n,r]=Object.entries(e)[0];return{id:(t+1).toString(),primaryModel:n||null,fallbackModels:r||[]}}):[{id:"1",primaryModel:null,fallbackModels:[]}])}else p({routerSettings:{},selectedStrategy:null,enableTagFiltering:!1}),h([]),b([{id:"1",primaryModel:null,fallbackModels:[]}])},[d]),(0,n.useEffect)(()=>{e&&(0,s.getRouterSettingsCall)(e).then(e=>{if(e.fields){let t={};e.fields.forEach(e=>{t[e.field_name]={ui_field_name:e.ui_field_name,field_description:e.field_description,options:e.options,link:e.link}}),S(t);let n=e.fields.find(e=>"routing_strategy"===e.field_name);n?.options&&C(n.options),e.routing_strategy_descriptions&&E(e.routing_strategy_descriptions)}})},[e]),(0,n.useEffect)(()=>{e&&(async()=>{try{let t=await (0,O.fetchAvailableModels)(e);w(t)}catch(e){console.error("Error fetching model info for fallbacks:",e)}})()},[e]);let I=()=>{let e=new Set(["allowed_fails","cooldown_time","num_retries","timeout","retry_after"]),t=new Set(["model_group_alias","retry_policy"]),n=Object.fromEntries(Object.entries({...m.routerSettings,enable_tag_filtering:m.enableTagFiltering,routing_strategy:m.selectedStrategy,fallbacks:g.length>0?g:null}).map(([n,r])=>{if("routing_strategy_args"!==n&&"routing_strategy"!==n&&"enable_tag_filtering"!==n&&"fallbacks"!==n){let l=document.querySelector(`input[name="${n}"]`);if(l){if(void 0!==l.value&&""!==l.value){let a=((n,r,l)=>{if(null==r)return l;let a=String(r).trim();if(""===a||"null"===a.toLowerCase())return null;if(e.has(n)){let e=Number(a);return Number.isNaN(e)?l:e}if(t.has(n)){if(""===a)return null;try{return JSON.parse(a)}catch{return l}}return"true"===a.toLowerCase()||"false"!==a.toLowerCase()&&a})(n,l.value,r);return[n,a]}return[n,null]}}else if("routing_strategy"===n)return[n,m.selectedStrategy];else if("enable_tag_filtering"===n)return[n,m.enableTagFiltering];else if("fallbacks"===n)return[n,g.length>0?g:null];else if("routing_strategy_args"===n&&"latency-based-routing"===m.selectedStrategy){let e=document.querySelector('input[name="lowest_latency_buffer"]'),t=document.querySelector('input[name="ttl"]'),n={};return e?.value&&(n.lowest_latency_buffer=Number(e.value)),t?.value&&(n.ttl=Number(t.value)),["routing_strategy_args",Object.keys(n).length>0?n:null]}return[n,r]}).filter(e=>null!=e)),r=(e,t=!1)=>null==e||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length||t&&("number"!=typeof e||Number.isNaN(e))?null:e;return{routing_strategy:r(n.routing_strategy),allowed_fails:r(n.allowed_fails,!0),cooldown_time:r(n.cooldown_time,!0),num_retries:r(n.num_retries,!0),timeout:r(n.timeout,!0),retry_after:r(n.retry_after,!0),fallbacks:g.length>0?g:null,context_window_fallbacks:r(n.context_window_fallbacks),retry_policy:r(n.retry_policy),model_group_alias:r(n.model_group_alias),enable_tag_filtering:m.enableTagFiltering,routing_strategy_args:r(n.routing_strategy_args)}};(0,n.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>{$.current=!0,c({router_settings:I()})},100);return()=>clearTimeout(e)},[m,g]);let P=Array.from(new Set(y.map(e=>e.model_group))).sort();return((0,n.useImperativeHandle)(f,()=>({getValue:()=>({router_settings:I()})})),e)?(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(a.TabGroup,{className:"w-full",children:[(0,t.jsxs)(o.TabList,{variant:"line",defaultValue:"1",className:"px-8 pt-4",children:[(0,t.jsx)(i.Tab,{value:"1",children:"Loadbalancing"}),(0,t.jsx)(i.Tab,{value:"2",children:"Fallbacks"})]}),(0,t.jsxs)(l.TabPanels,{className:"px-8 py-6",children:[(0,t.jsx)(r.TabPanel,{children:(0,t.jsx)(x,{value:m,onChange:p,routerFieldsMetadata:k,availableRoutingStrategies:j,routingStrategyDescriptions:N})}),(0,t.jsx)(r.TabPanel,{children:(0,t.jsx)(_,{groups:v,onGroupsChange:e=>{b(e),h(e.filter(e=>e.primaryModel&&e.fallbackModels.length>0).map(e=>({[e.primaryModel]:e.fallbackModels})))},availableModels:P,maxGroups:5})})]})]})}):null});$.displayName="RouterSettingsAccordion",e.s(["default",0,$],460285)},663435,152473,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(199133),l=e.i(898586),a=e.i(56456);let o={enabled:!0,leading:!1,trailing:!0,wait:0,onExecute:()=>{}};class i{constructor(e,t){this.fn=e,this._canLeadingExecute=!0,this._isPending=!1,this._executionCount=0,this._options={...o,...t}}setOptions(e){return this._options={...this._options,...e},this._options.enabled||(this._isPending=!1),this._options}getOptions(){return this._options}maybeExecute(...e){this._options.leading&&this._canLeadingExecute&&(this.executeFunction(...e),this._canLeadingExecute=!1),(this._options.leading||this._options.trailing)&&(this._isPending=!0),this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=setTimeout(()=>{this._canLeadingExecute=!0,this._isPending=!1,this._options.trailing&&this.executeFunction(...e)},this._options.wait)}executeFunction(...e){this._options.enabled&&(this.fn(...e),this._executionCount++,this._options.onExecute(this))}cancel(){this._timeoutId&&(clearTimeout(this._timeoutId),this._canLeadingExecute=!0,this._isPending=!1)}getExecutionCount(){return this._executionCount}getIsPending(){return this._options.enabled&&this._isPending}}function s(e,t){let[r,l]=(0,n.useState)(e),a=function(e,t){let[r]=(0,n.useState)(()=>{var n;return Object.getOwnPropertyNames(Object.getPrototypeOf(n=new i(e,t))).filter(e=>"function"==typeof n[e]).reduce((e,t)=>{let r=n[t];return"function"==typeof r&&(e[t]=r.bind(n)),e},{})});return r.setOptions(t),r}(l,t);return[r,a.maybeExecute,a]}e.s(["useDebouncedState",0,s],152473);var d=e.i(785242);let{Text:c}=l.Typography;e.s(["default",0,({value:e,onChange:l,onTeamSelect:o,disabled:i,organizationId:u,pageSize:f=20})=>{let[m,p]=(0,n.useState)(""),[g,h]=s("",{wait:300}),{data:x,fetchNextPage:v,hasNextPage:b,isFetchingNextPage:y,isLoading:w}=(0,d.useInfiniteTeams)(f,g||void 0,u),j=(0,n.useMemo)(()=>{if(!x?.pages)return[];let e=new Set,t=[];for(let n of x.pages)for(let r of n.teams)e.has(r.team_id)||(e.add(r.team_id),t.push(r));return t},[x]);return(0,t.jsx)(r.Select,{showSearch:!0,placeholder:"Search or select a team",value:e||void 0,onChange:e=>{l?.(e??""),o&&o(e?j.find(t=>t.team_id===e)??null:null)},disabled:i,allowClear:!0,filterOption:!1,onSearch:e=>{p(e),h(e)},searchValue:m,onPopupScroll:e=>{let t=e.currentTarget;(t.scrollTop+t.clientHeight)/t.scrollHeight>=.8&&b&&!y&&v()},loading:w,notFoundContent:w?(0,t.jsx)(a.LoadingOutlined,{spin:!0}):"No teams found","data-testid":"team-dropdown",popupRender:e=>(0,t.jsxs)(t.Fragment,{children:[e,y&&(0,t.jsx)("div",{style:{textAlign:"center",padding:8},children:(0,t.jsx)(a.LoadingOutlined,{spin:!0})})]}),children:j.map(e=>(0,t.jsxs)(r.Select.Option,{value:e.team_id,children:[(0,t.jsx)("span",{className:"font-medium",children:e.team_alias})," ",(0,t.jsxs)(c,{type:"secondary",children:["(",e.team_id,")"]})]},e.team_id))})}],663435)},363256,e=>{"use strict";var t=e.i(843476),n=e.i(199133);let{Text:r}=e.i(898586).Typography;e.s(["default",0,({organizations:e,value:l,onChange:a,disabled:o,loading:i,style:s})=>(0,t.jsx)(n.Select,{showSearch:!0,placeholder:"All Organizations",value:l,onChange:a,disabled:o,loading:i,allowClear:!0,style:{minWidth:280,...s},filterOption:(t,n)=>{if(!n)return!1;let r=e?.find(e=>e.organization_id===n.key);if(!r)return!1;let l=t.toLowerCase().trim(),a=(r.organization_alias||"").toLowerCase(),o=(r.organization_id||"").toLowerCase();return a.includes(l)||o.includes(l)},children:e?.map(e=>(0,t.jsxs)(n.Select.Option,{value:e.organization_id,children:[(0,t.jsx)("span",{className:"font-medium",children:e.organization_alias})," ",(0,t.jsxs)(r,{type:"secondary",children:["(",e.organization_id,")"]})]},e.organization_id))})])},575260,e=>{"use strict";var t=e.i(843476),n=e.i(199133),r=e.i(482725),l=e.i(56456);e.s(["default",0,({projects:e,value:a,onChange:o,disabled:i,loading:s,teamId:d})=>{let c=d?e?.filter(e=>e.team_id===d):e;return(0,t.jsx)(n.Select,{showSearch:!0,placeholder:"Search or select a project",value:a,onChange:o,disabled:i,loading:s,allowClear:!0,notFoundContent:s?(0,t.jsx)(r.Spin,{indicator:(0,t.jsx)(l.LoadingOutlined,{spin:!0}),size:"small"}):void 0,filterOption:(e,t)=>{if(!t)return!1;let n=c?.find(e=>e.project_id===t.key);if(!n)return!1;let r=e.toLowerCase().trim(),l=(n.project_alias||"").toLowerCase(),a=(n.project_id||"").toLowerCase();return l.includes(r)||a.includes(r)},optionFilterProp:"children",children:!s&&c?.map(e=>(0,t.jsxs)(n.Select.Option,{value:e.project_id,children:[(0,t.jsx)("span",{className:"font-medium",children:e.project_alias||e.project_id})," ",(0,t.jsxs)("span",{className:"text-gray-500",children:["(",e.project_id,")"]})]},e.project_id))})}])},436289,503269,214520,814379,992704,684653,877891,401141,952744,605083,101852,249578,571616,e=>{"use strict";var t=e.i(271645);function n(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}e.s(["useByComparator",0,function(e=n){return(0,t.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}],436289);var r=e.i(914189);e.s(["useControllable",0,function(e,n,l){let[a,o]=(0,t.useState)(l),i=void 0!==e,s=(0,t.useRef)(i),d=(0,t.useRef)(!1),c=(0,t.useRef)(!1);return!i||s.current||d.current?i||!s.current||c.current||(c.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(d.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:a,(0,r.useEvent)(e=>(i||o(e),null==n?void 0:n(e)))]}],503269),e.s(["useDefaultValue",0,function(e){let[n]=(0,t.useState)(e);return n}],214520);var l=e.i(835696);e.s(["useDidElementMove",0,function(e,n){let r=(0,t.useRef)({left:0,top:0});if((0,l.useIsoMorphicEffect)(()=>{if(!n)return;let e=n.getBoundingClientRect();e&&(r.current=e)},[e,n]),null==n||!e||n===document.activeElement)return!1;let a=n.getBoundingClientRect();return a.top!==r.current.top||a.left!==r.current.left}],814379),e.s(["useElementSize",0,function(e,n=!1){let[r,a]=(0,t.useReducer)(()=>({}),{}),o=(0,t.useMemo)(()=>(function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}})(e),[e,r]);return(0,l.useIsoMorphicEffect)(()=>{if(!e)return;let t=new ResizeObserver(a);return t.observe(e),()=>{t.disconnect()}},[e]),n?{width:`${o.width}px`,height:`${o.height}px`}:o}],992704);var a=e.i(544508),o=e.i(402155);class i extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function s(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...l){let a=t[e].call(n,...l);a&&(n=a,r.forEach(e=>e()))}}}function d(e){return(0,t.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let c=new i(()=>s(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function u(e,n){let r=c.get(n),a=(0,t.useId)(),o=d(r);if((0,l.useIsoMorphicEffect)(()=>{if(e)return r.dispatch("ADD",a),()=>r.dispatch("REMOVE",a)},[r,e]),!e)return!1;let i=o.indexOf(a),s=o.length;return -1===i&&(i=s,s+=1),i===s-1}let f=new Map,m=new Map;function p(e){var t;let n=null!=(t=m.get(e))?t:0;return m.set(e,n+1),0!==n||(f.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=m.get(e))?t:1;if(1===n?m.delete(e):m.set(e,n-1),1!==n)return;let r=f.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,f.delete(e))})(e)}e.s(["useInertOthers",0,function(e,{allowed:t,disallowed:n}={}){let r=u(e,"inert-others");(0,l.useIsoMorphicEffect)(()=>{var e,l;if(!r)return;let i=(0,a.disposables)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(p(t));let s=null!=(l=null==t?void 0:t())?l:[];for(let e of s){if(!e)continue;let t=(0,o.getOwnerDocument)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||i.add(p(e));n=n.parentElement}}return i.dispose},[r,t,n])}],684653);var g=e.i(941444);e.s(["useOnDisappear",0,function(e,n,r){let l=(0,g.useLatestValue)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()});(0,t.useEffect)(()=>{if(!e)return;let t=null===n?null:n instanceof HTMLElement?n:n.current;if(!t)return;let r=(0,a.disposables)();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>l.current(t));e.observe(t),r.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>l.current(t));e.observe(t),r.add(()=>e.disconnect())}return()=>r.dispose()},[n,l,e])}],877891);var h=e.i(652265);function x(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function v(e,n,r,l){let a=(0,g.useLatestValue)(r);(0,t.useEffect)(()=>{if(e)return document.addEventListener(n,t,l),()=>document.removeEventListener(n,t,l);function t(e){a.current(e)}},[e,n,l])}function b(e,n,r,l){let a=(0,g.useLatestValue)(r);(0,t.useEffect)(()=>{if(e)return window.addEventListener(n,t,l),()=>window.removeEventListener(n,t,l);function t(e){a.current(e)}},[e,n,l])}e.s(["useWindowEvent",0,b],401141),e.s(["useOutsideClick",0,function(e,n,r){let l=u(e,"outside-click"),a=(0,g.useLatestValue)(r),o=(0,t.useCallback)(function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(n))if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return(0,h.isFocusableElement)(r,h.FocusableMode.Loose)||-1===r.tabIndex||e.preventDefault(),a.current(e,r)}},[a,n]),i=(0,t.useRef)(null);v(l,"pointerdown",e=>{var t,n;i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),v(l,"mousedown",e=>{var t,n;i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),v(l,"click",e=>{x()||/Android/gi.test(window.navigator.userAgent)||i.current&&(o(e,()=>i.current),i.current=null)},!0);let s=(0,t.useRef)({x:0,y:0});v(l,"touchstart",e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),v(l,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-s.current.x)>=30||Math.abs(t.y-s.current.y)>=30))return o(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),b(l,"blur",e=>o(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}],952744),e.s(["useOwnerDocument",0,function(...e){return(0,t.useMemo)(()=>(0,o.getOwnerDocument)(...e),[...e])}],605083);let y=s(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,a.disposables)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r,l={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},o=[x()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,a.disposables)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let l=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:l}=new URL(n.href),a=e.querySelector(l);a&&!r(a)&&(o=a)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName)if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;l!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,l),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;r=Math.max(0,(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth)},after({doc:e,d:t}){let n=e.documentElement,l=Math.max(0,n.clientWidth-n.offsetWidth),a=Math.max(0,r-l);t.style(n,"paddingRight",`${a}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach(({before:e})=>null==e?void 0:e(l)),o.forEach(({after:e})=>null==e?void 0:e(l))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});y.subscribe(()=>{let e=y.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&y.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&y.dispatch("TEARDOWN",n)}}),e.s(["useScrollLock",0,function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=d(y),a=t?r.get(t):void 0;a&&a.count,(0,l.useIsoMorphicEffect)(()=>{if(!(!t||!e))return y.dispatch("PUSH",t,n),()=>y.dispatch("POP",t,n)},[e,t])}(u(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}],101852);let w=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function j(e){var t,n;let r=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!(l instanceof HTMLElement))return r;let a=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let o=a?null!=(n=l.innerText)?n:"":r;return w.test(o)&&(o=o.replace(w,"")),o}function C(e){return[e.screenX,e.screenY]}e.s(["useTextValue",0,function(e){let n=(0,t.useRef)(""),l=(0,t.useRef)("");return(0,r.useEvent)(()=>{let t=e.current;if(!t)return"";let r=t.innerText;if(n.current===r)return l.current;let a=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():j(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return j(e).trim()})(t).trim().toLowerCase();return n.current=r,l.current=a,a})}],249578),e.s(["useTrackedPointer",0,function(){let e=(0,t.useRef)([-1,-1]);return{wasMoved(t){let n=C(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=C(t)}}}],571616)},601893,919751,694421,140721,904016,942803,e=>{"use strict";var t=e.i(271645);let n=(0,t.createContext)(void 0);e.s(["useDisabled",0,function(){return(0,t.useContext)(n)}],601893);var r=e.i(953760),l=e.i(174080),a="u">typeof document?t.useLayoutEffect:function(){};function o(e,t){let n,r,l;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!o(e[r],t[r]))return!1;return!0}if((n=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,l[r]))return!1;for(r=n;0!=r--;){let n=l[r];if(("_owner"!==n||!e.$$typeof)&&!o(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function i(e){return"u"{n.current=e}),n}let c=(e,t)=>{let n=(0,r.offset)(e);return{name:n.name,fn:n.fn,options:[e,t]}};e.i(247167);var u=e.i(229315),f=e.i(343084);e.i(397126);let m={...t},p=m.useInsertionEffect||(e=>e());function g(e){let n=t.useRef(()=>{});return p(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;rtypeof document?t.useLayoutEffect:t.useEffect;let x=!1,v=0,b=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+v++,y=m.useId||function(){let[e,n]=t.useState(()=>x?b():void 0);return h(()=>{null==e&&n(b())},[]),t.useEffect(()=>{x=!0},[]),e},w=t.createContext(null),j=t.createContext(null),C="active",k="selected";function S(e,t,n){let r=new Map,l="item"===n,a=e;if(l&&e){let{[C]:t,[k]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...a,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(l&&[C,k].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof a){var o;null==(o=r.get(n))||o.push(a),e[n]=function(){for(var e,t=arguments.length,l=Array(t),a=0;ae(...l)).find(e=>void 0!==e)}}}else e[n]=a}),e),{})}}function N(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}var E=e.i(746725),_=e.i(914189),O=e.i(835696);let $=(0,t.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});$.displayName="FloatingContext";let T=(0,t.createContext)(null);function I(e,n,r){let l=(0,E.useDisposables)(),a=(0,_.useEvent)((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let n=P(e,t);return[n,r=>{let a=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),l=n[1].slice(t+1).trim();return l?[r,...e(l)]:[r]}return[]}(e);{let o=a.map(e=>window.getComputedStyle(t).getPropertyValue(e));l.requestAnimationFrame(function i(){l.nextFrame(i);let s=!1;for(let[e,n]of a.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(o[e]!==r){o[e]=r,s=!0;break}}if(!s)return;let d=P(e,t);n!==d&&(r(d),n=d)})}return l.dispose}]}return[r,null]}),o=(0,t.useMemo)(()=>a(e,n)[0],[e,n]),[i=o,s]=(0,t.useState)();return(0,O.useIsoMorphicEffect)(()=>{let[t,r]=a(e,n);if(s(t),r)return r(s)},[e,n]),i}function P(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function M(e={},t=null,n=[]){for(let[r,l]of Object.entries(e))!function e(t,n,r){if(Array.isArray(r))for(let[l,a]of r.entries())e(t,R(n,l.toString()),a);else r instanceof Date?t.push([n,r.toISOString()]):"boolean"==typeof r?t.push([n,r?"1":"0"]):"string"==typeof r?t.push([n,r]):"number"==typeof r?t.push([n,`${r}`]):null==r?t.push([n,""]):M(r,n,t)}(n,R(t,r),l);return n}function R(e,t){return e?e+"["+t+"]":t}T.displayName="PlacementContext",e.s(["FloatingProvider",0,function({children:e,enabled:n=!0}){var m,p,x,v,b,C,k,E,P,M,R,L,D;let A,K,B,F,z,H,V,W,U,q,G,X,Q,[Y,J]=(0,t.useState)(null),[Z,ee]=(0,t.useState)(0),et=(0,t.useRef)(null),[en,er]=(0,t.useState)(null);E=en,(0,O.useIsoMorphicEffect)(()=>{if(!E)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(E).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(E.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(E,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[E]);let el=n&&null!==Y&&null!==en,{to:ea="bottom",gap:eo=0,offset:ei=0,padding:es=0,inner:ed}=(P=Y,M=en,A=I(null!=(R=null==P?void 0:P.gap)?R:"var(--anchor-gap, 0)",M),K=I(null!=(L=null==P?void 0:P.offset)?L:"var(--anchor-offset, 0)",M),B=I(null!=(D=null==P?void 0:P.padding)?D:"var(--anchor-padding, 0)",M),{...P,gap:A,offset:K,padding:B}),[ec,eu="center"]=ea.split(" ");(0,O.useIsoMorphicEffect)(()=>{el&&ee(0)},[el]);let{refs:ef,floatingStyles:em,context:ep}=function(e){void 0===e&&(e={});let{nodeId:n}=e,c=function(e){var n;let{open:r=!1,onOpenChange:l,elements:a}=e,o=y(),i=t.useRef({}),[s]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),d=null!=((null==(n=t.useContext(w))?void 0:n.id)||null),[c,u]=t.useState(a.reference),f=g((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:d}),null==l||l(e,t,n)}),m=t.useMemo(()=>({setPositionReference:u}),[]),p=t.useMemo(()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference}),[c,a.reference,a.floating]);return t.useMemo(()=>({dataRef:i,open:r,onOpenChange:f,elements:p,events:s,floatingId:o,refs:m}),[r,f,p,s,o,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),f=e.rootContext||c,m=f.elements,[p,x]=t.useState(null),[v,b]=t.useState(null),C=(null==m?void 0:m.domReference)||p,k=t.useRef(null),S=t.useContext(j);h(()=>{C&&(k.current=C)},[C]);let N=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:c="absolute",middleware:u=[],platform:f,elements:{reference:m,floating:p}={},transform:g=!0,whileElementsMounted:h,open:x}=e,[v,b]=t.useState({x:0,y:0,strategy:c,placement:n,middlewareData:{},isPositioned:!1}),[y,w]=t.useState(u);o(y,u)||w(u);let[j,C]=t.useState(null),[k,S]=t.useState(null),N=t.useCallback(e=>{e!==$.current&&($.current=e,C(e))},[]),E=t.useCallback(e=>{e!==T.current&&(T.current=e,S(e))},[]),_=m||j,O=p||k,$=t.useRef(null),T=t.useRef(null),I=t.useRef(v),P=null!=h,M=d(h),R=d(f),L=d(x),D=t.useCallback(()=>{if(!$.current||!T.current)return;let e={placement:n,strategy:c,middleware:y};R.current&&(e.platform=R.current),(0,r.computePosition)($.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};A.current&&!o(I.current,t)&&(I.current=t,l.flushSync(()=>{b(t)}))})},[y,n,c,R,L]);a(()=>{!1===x&&I.current.isPositioned&&(I.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[x]);let A=t.useRef(!1);a(()=>(A.current=!0,()=>{A.current=!1}),[]),a(()=>{if(_&&($.current=_),O&&(T.current=O),_&&O){if(M.current)return M.current(_,O,D);D()}},[_,O,D,M,P]);let K=t.useMemo(()=>({reference:$,floating:T,setReference:N,setFloating:E}),[N,E]),B=t.useMemo(()=>({reference:_,floating:O}),[_,O]),F=t.useMemo(()=>{let e={position:c,left:0,top:0};if(!B.floating)return e;let t=s(B.floating,v.x),n=s(B.floating,v.y);return g?{...e,transform:"translate("+t+"px, "+n+"px)",...i(B.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:t,top:n}},[c,g,B.floating,v.x,v.y]);return t.useMemo(()=>({...v,update:D,refs:K,elements:B,floatingStyles:F}),[v,D,K,B,F])}({...e,elements:{...m,...v&&{reference:v}}}),E=t.useCallback(e=>{let t=(0,u.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;b(t),N.refs.setReference(t)},[N.refs]),_=t.useCallback(e=>{((0,u.isElement)(e)||null===e)&&(k.current=e,x(e)),((0,u.isElement)(N.refs.reference.current)||null===N.refs.reference.current||null!==e&&!(0,u.isElement)(e))&&N.refs.setReference(e)},[N.refs]),O=t.useMemo(()=>({...N.refs,setReference:_,setPositionReference:E,domReference:k}),[N.refs,_,E]),$=t.useMemo(()=>({...N.elements,domReference:C}),[N.elements,C]),T=t.useMemo(()=>({...N,...f,refs:O,elements:$,nodeId:n}),[N,O,$,n,f]);return h(()=>{f.dataRef.current.floatingContext=T;let e=null==S?void 0:S.nodesRef.current.find(e=>e.id===n);e&&(e.context=T)}),t.useMemo(()=>({...N,context:T,refs:O,elements:$}),[N,O,$,T])}({open:el,placement:"selection"===ec?"center"===eu?"bottom":`bottom-${eu}`:"center"===eu?`${ec}`:`${ec}-${eu}`,strategy:"absolute",transform:!1,middleware:[c({mainAxis:"selection"===ec?0:eo,crossAxis:ei}),(m={padding:es},{name:(F=(0,r.shift)(m)).name,fn:F.fn,options:[m,p]}),"selection"!==ec&&(x={padding:es},{name:(z=(0,r.flip)(x)).name,fn:z.fn,options:[x,v]}),"selection"===ec&&ed?{name:"inner",options:H={...ed,padding:es,overflowRef:et,offset:Z,minItemsVisible:4,referenceOverflowThreshold:es,onFallbackChange(e){var t,n;if(!e)return;let r=ep.elements.floating;if(!r)return;let l=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),o=0,i=0;for(let e of null!=(n=null==(t=ep.elements.floating)?void 0:t.childNodes)?n:[])if(e instanceof HTMLElement){let t=e.offsetTop,n=t+e.clientHeight+l,s=r.scrollTop,d=s+r.clientHeight;if(t>=s&&n<=d)a--;else{i=Math.max(0,Math.min(n,d)-Math.max(t,s)),o=e.clientHeight;break}}a>=1&&ee(e=>{let t=o*a-i+l;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:a,offset:o=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:d=0,scrollRef:u,...m}=(0,f.evaluate)(H,e),{rects:p,elements:{floating:g}}=e,h=t.current[i],x=(null==u?void 0:u.current)||g,v=g.clientTop||x.clientTop,b=0!==g.clientTop,y=0!==x.clientTop,w=g===x;if(!h)return{};let j={...e,...await c(-h.offsetTop-g.clientTop-p.reference.height/2-h.offsetHeight/2-o).fn(e)},C=await (0,r.detectOverflow)(N(j,x.scrollHeight+v+g.clientTop),m),k=await (0,r.detectOverflow)(j,{...m,elementContext:"reference"}),S=(0,f.max)(0,C.top),E=j.y+S,_=(x.scrollHeight>x.clientHeight?e=>e:f.round)((0,f.max)(0,x.scrollHeight+(b&&w||y?2*v:0)-S-(0,f.max)(0,C.bottom)));if(x.style.maxHeight=_+"px",x.scrollTop=S,a){let e=x.offsetHeight=-d||k.bottom>=-d;l.flushSync(()=>a(e))}return n&&(n.current=await (0,r.detectOverflow)(N({...j,y:E},x.offsetHeight+v+g.clientTop),m)),{y:E}}}:null,(b={padding:es,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},{name:(V=(0,r.size)(b)).name,fn:V.fn,options:[b,C]})].filter(Boolean),whileElementsMounted:r.autoUpdate}),[eg=ec,eh=eu]=ep.placement.split("-");"selection"===ec&&(eg="selection");let ex=(0,t.useMemo)(()=>({anchor:[eg,eh].filter(Boolean).join(" ")}),[eg,eh]),{getReferenceProps:ev,getFloatingProps:eb}=(W=(k=[function(e,n){let{open:r,elements:a}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:d}=n,c=g(d),u=t.useRef(!1),f=t.useRef(null),m=t.useRef(null);t.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,a=i.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,s=n<0?-1:1,d=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!a&&n<0)e.preventDefault(),l.flushSync(()=>{c(e=>e+Math[d](n,o*s))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==s?void 0:s.current)||a.floating;if(r&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{f.current=t.scrollTop,null!=i.current&&(m.current={...i.current})}),()=>{f.current=null,m.current=null,t.removeEventListener("wheel",e)}},[o,r,a.floating,i,s,c]);let p=t.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==s?void 0:s.current)||a.floating;if(i.current&&e&&u.current){if(null!==f.current){let t=e.scrollTop-f.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&l.flushSync(()=>c(e=>e+t))}requestAnimationFrame(()=>{f.current=e.scrollTop})}}}),[a.floating,c,i,s]);return t.useMemo(()=>o?{floating:p}:{},[o,p])}(ep,{overflowRef:et,onChange:ee})]).map(e=>null==e?void 0:e.reference),U=k.map(e=>null==e?void 0:e.floating),q=k.map(e=>null==e?void 0:e.item),G=t.useCallback(e=>S(e,k,"reference"),W),X=t.useCallback(e=>S(e,k,"floating"),U),Q=t.useCallback(e=>S(e,k,"item"),q),t.useMemo(()=>({getReferenceProps:G,getFloatingProps:X,getItemProps:Q}),[G,X,Q])),ey=(0,_.useEvent)(e=>{er(e),ef.setFloating(e)});return t.createElement(T.Provider,{value:J},t.createElement($.Provider,{value:{setFloating:ey,setReference:ef.setReference,styles:em,getReferenceProps:ev,getFloatingProps:eb,slot:ex}},e))},"useFloatingPanel",0,function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let n=(0,t.useContext)(T),r=(0,t.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,O.useIsoMorphicEffect)(()=>{null==n||n(null!=r?r:null)},[n,r]);let l=(0,t.useContext)($);return(0,t.useMemo)(()=>[l.setFloating,e?l.styles:{}],[l.setFloating,e,l.styles])},"useFloatingPanelProps",0,function(){let{getFloatingProps:e,slot:n}=(0,t.useContext)($);return(0,t.useCallback)((...t)=>Object.assign({},e(...t),{"data-anchor":n.anchor}),[e,n])},"useFloatingReference",0,function(){return(0,t.useContext)($).setReference},"useFloatingReferenceProps",0,function(){return(0,t.useContext)($).getReferenceProps},"useResolvedAnchor",0,function(e){return(0,t.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}],919751),e.s(["attemptSubmit",0,function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}},"objectToFormEntries",0,M],694421);var L=e.i(700020),D=e.i(2788);let A=(0,t.createContext)(null);function K({children:e}){let n=(0,t.useContext)(A);if(!n)return t.default.createElement(t.default.Fragment,null,e);let{target:r}=n;return r?(0,l.createPortal)(t.default.createElement(t.default.Fragment,null,e),r):null}function B({setForm:e,formId:n}){return(0,t.useEffect)(()=>{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(D.Hidden,{features:D.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",0,function({data:e,form:n,disabled:r,onReset:l,overrides:a}){let[o,i]=(0,t.useState)(null),s=(0,E.useDisposables)();return(0,t.useEffect)(()=>{if(l&&o)return s.addEventListener(o,"reset",l)},[o,n,l]),t.default.createElement(K,null,t.default.createElement(B,{setForm:i,formId:n}),M(e).map(([e,l])=>t.default.createElement(D.Hidden,{features:D.HiddenFeatures.Hidden,...(0,L.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:l,...a})})))}],140721),e.s(["useFrozenData",0,function(e,n){let[r,l]=(0,t.useState)(n);return e||r===n||l(n),e?r:n}],904016);let F=(0,t.createContext)(void 0);e.s(["useProvidedId",0,function(){return(0,t.useContext)(F)}],942803)},35983,35889,722678,178677,635307,495470,333771,e=>{"use strict";let t,n,r,l,a;var o=e.i(290571),i=e.i(271645),s=e.i(783222),d=e.i(433336),c=e.i(174080),u=e.i(394487),f=e.i(436289),m=e.i(503269),p=e.i(214520),g=e.i(814379),h=e.i(746725),x=e.i(992704),v=e.i(914189),b=e.i(684653),y=e.i(835696),w=e.i(941444),j=e.i(877891),C=e.i(952744),k=e.i(605083),S=e.i(144279),N=e.i(101852),E=e.i(294316),_=e.i(249578),O=e.i(571616),$=e.i(83733),T=e.i(601893),I=e.i(919751),P=e.i(140721),M=e.i(904016),R=e.i(942803),L=e.i(233137),D=e.i(233538),A=((t=A||{})[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t);function K(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),l=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=l+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),s=(0,E.useSyncRefs)(t);(0,y.useIsoMorphicEffect)(()=>o.register(l),[l,o.register]);let d=r||!1,c=(0,i.useMemo)(()=>({...o.slot,disabled:d}),[o.slot,d]),u={ref:s,...o.props,id:l};return(0,W.useRender)()({ourProps:u,theirProps:a,slot:c,defaultTag:"p",name:o.name||"Description"})}),{});e.s(["Description",0,G,"useDescribedBy",0,q,"useDescriptions",0,function(){let[e,t]=(0,i.useState)([]);return[e.length>0?e.join(" "):void 0,(0,i.useMemo)(()=>function(e){let n=(0,v.useEvent)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,i.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return i.default.createElement(U.Provider,{value:r},e.children)},[t])]}],35889);var X=e.i(998348);let Q=(0,i.createContext)(null);function Y(e){var t,n,r;let l=null!=(n=null==(t=(0,i.useContext)(Q))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[l,...e].filter(Boolean).join(" "):l}function J({inherit:e=!1}={}){let t=Y(),[n,r]=(0,i.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,i.useMemo)(()=>function(e){let t=(0,v.useEvent)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,i.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return i.default.createElement(Q.Provider,{value:n},e.children)},[r])]}Q.displayName="LabelContext";let Z=Object.assign((0,W.forwardRefWithAs)(function(e,t){var n;let r=(0,i.useId)(),l=function e(){let t=(0,i.useContext)(Q);if(null===t){let t=Error("You used a