From 7a35bf2d62dc9970d7f3262fc514e35d03752390 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Thu, 26 Oct 2023 16:04:52 +0800 Subject: [PATCH] fix(ChatKnowledge):text limit bug --- pilot/server/static/404.html | 2 +- pilot/server/static/404/index.html | 2 +- .../2DHoqE6YLNDUgtBJJVe8p/_buildManifest.js | 1 + .../_ssgManifest.js | 0 .../static/chunks/104-953a3907bb8d7bfd.js | 1 - .../static/chunks/270-2f094a936d056513.js | 16 ---- .../static/chunks/304.b9722ef34a01988f.js | 1 - .../static/chunks/304.f9e3c1ab25dda485.js | 1 + .../chunks/355a6ca7.6a7668307202b4ab.js | 1 + .../static/chunks/367-2a6e805cba0c79d3.js | 78 ++++++++++++++++++ .../static/chunks/367-5b7ab3e8e2777607.js | 78 ------------------ .../static/chunks/63-d9f1013be8e4599a.js | 1 + ...f894de95084.js => 643-d8f53f40dd3c5b40.js} | 0 .../static/chunks/719-5a18c3c696beda6f.js | 16 ++++ .../static/chunks/747-ec60adab93bb6758.js | 1 - ...376cd3.js => 75fc9c18-a784766a129ec5fb.js} | 0 ...d63a2e1860f.js => 830.959c3f306e690976.js} | 79 ++++++++++++++----- ...e9c52cbcbe7.js => 856.7d208912c36b6821.js} | 10 +-- .../static/chunks/924-ba8e16df4d61ff5c.js | 1 - ...c1b3c2f440.js => _app-7394a5c2fd417054.js} | 6 +- .../chunks/pages/agent-25358689f05784e9.js | 1 + .../chunks/pages/agent-dbb8ff019a2c71c2.js | 1 - ...d512cc5b14.js => chat-4b4742a8b97ead61.js} | 2 +- ...85f9639f4f.js => [id]-c4ba90e8044f953b.js} | 2 +- ...094b3c.js => database-ed7e37a49de751e1.js} | 0 .../chunks/pages/index-02331aee6ba6a7fc.js | 1 - .../chunks/pages/index-195d2b50dab810dd.js | 1 + .../pages/knowledge-c73b240310994685.js | 1 + .../pages/knowledge-fe88b529e40b0db6.js | 1 - .../[knowledgeName]/[id]-288d3a43e60ca611.js | 4 - .../pages/knowledge/chunk-e27c2e349b868b28.js | 4 + ...32bdc672.js => models-fab5e316babfc6de.js} | 4 +- ...01523b25.js => prompt-f7fa6931310ae8ba.js} | 2 +- .../static/chunks/webpack-d3a85272b0e75370.js | 1 - .../static/chunks/webpack-fbcb320c82fd7041.js | 1 + .../_next/static/css/3380fc16c2dbf0f6.css | 3 - .../_next/static/css/6e82c5f591153e56.css | 3 + .../ip766cXopjZ_vl18rrSLK/_buildManifest.js | 1 - pilot/server/static/agent/index.html | 2 +- .../static/chat/[scene]/[id]/index.html | 2 +- pilot/server/static/chat/index.html | 2 +- pilot/server/static/database/index.html | 2 +- pilot/server/static/index.html | 2 +- .../knowledge/[knowledgeName]/[id]/index.html | 1 - .../server/static/knowledge/chunk/index.html | 1 + pilot/server/static/knowledge/index.html | 2 +- pilot/server/static/models/index.html | 2 +- pilot/server/static/prompt/index.html | 2 +- 48 files changed, 191 insertions(+), 155 deletions(-) create mode 100644 pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_buildManifest.js rename pilot/server/static/_next/static/{ip766cXopjZ_vl18rrSLK => 2DHoqE6YLNDUgtBJJVe8p}/_ssgManifest.js (100%) delete mode 100644 pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js delete mode 100644 pilot/server/static/_next/static/chunks/270-2f094a936d056513.js delete mode 100644 pilot/server/static/_next/static/chunks/304.b9722ef34a01988f.js create mode 100644 pilot/server/static/_next/static/chunks/304.f9e3c1ab25dda485.js create mode 100644 pilot/server/static/_next/static/chunks/355a6ca7.6a7668307202b4ab.js create mode 100644 pilot/server/static/_next/static/chunks/367-2a6e805cba0c79d3.js delete mode 100644 pilot/server/static/_next/static/chunks/367-5b7ab3e8e2777607.js create mode 100644 pilot/server/static/_next/static/chunks/63-d9f1013be8e4599a.js rename pilot/server/static/_next/static/chunks/{643-d2492f894de95084.js => 643-d8f53f40dd3c5b40.js} (100%) create mode 100644 pilot/server/static/_next/static/chunks/719-5a18c3c696beda6f.js delete mode 100644 pilot/server/static/_next/static/chunks/747-ec60adab93bb6758.js rename pilot/server/static/_next/static/chunks/{75fc9c18-36ac6f5a83376cd3.js => 75fc9c18-a784766a129ec5fb.js} (100%) rename pilot/server/static/_next/static/chunks/{207.60c86d63a2e1860f.js => 830.959c3f306e690976.js} (56%) rename pilot/server/static/_next/static/chunks/{266.b9b43e9c52cbcbe7.js => 856.7d208912c36b6821.js} (80%) delete mode 100644 pilot/server/static/_next/static/chunks/924-ba8e16df4d61ff5c.js rename pilot/server/static/_next/static/chunks/pages/{_app-e86697c1b3c2f440.js => _app-7394a5c2fd417054.js} (91%) create mode 100644 pilot/server/static/_next/static/chunks/pages/agent-25358689f05784e9.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/agent-dbb8ff019a2c71c2.js rename pilot/server/static/_next/static/chunks/pages/{chat-197b88d512cc5b14.js => chat-4b4742a8b97ead61.js} (83%) rename pilot/server/static/_next/static/chunks/pages/chat/[scene]/{[id]-ac949685f9639f4f.js => [id]-c4ba90e8044f953b.js} (84%) rename pilot/server/static/_next/static/chunks/pages/{database-ee0ff45d60094b3c.js => database-ed7e37a49de751e1.js} (100%) delete mode 100644 pilot/server/static/_next/static/chunks/pages/index-02331aee6ba6a7fc.js create mode 100644 pilot/server/static/_next/static/chunks/pages/index-195d2b50dab810dd.js create mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge-c73b240310994685.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge-fe88b529e40b0db6.js delete mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge/[knowledgeName]/[id]-288d3a43e60ca611.js create mode 100644 pilot/server/static/_next/static/chunks/pages/knowledge/chunk-e27c2e349b868b28.js rename pilot/server/static/_next/static/chunks/pages/{models-58b1d88132bdc672.js => models-fab5e316babfc6de.js} (98%) rename pilot/server/static/_next/static/chunks/pages/{prompt-741cf72801523b25.js => prompt-f7fa6931310ae8ba.js} (98%) delete mode 100644 pilot/server/static/_next/static/chunks/webpack-d3a85272b0e75370.js create mode 100644 pilot/server/static/_next/static/chunks/webpack-fbcb320c82fd7041.js delete mode 100644 pilot/server/static/_next/static/css/3380fc16c2dbf0f6.css create mode 100644 pilot/server/static/_next/static/css/6e82c5f591153e56.css delete mode 100644 pilot/server/static/_next/static/ip766cXopjZ_vl18rrSLK/_buildManifest.js delete mode 100644 pilot/server/static/knowledge/[knowledgeName]/[id]/index.html create mode 100644 pilot/server/static/knowledge/chunk/index.html diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 1a5fba1f0..63a2f9803 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index 1a5fba1f0..63a2f9803 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_buildManifest.js b/pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_buildManifest.js new file mode 100644 index 000000000..95dcfcb73 --- /dev/null +++ b/pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,c,a,e,t,n,b,d,k,h,i,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[b,s,c,a,n,d,"static/chunks/539-dcd22f1f6b99ebee.js","static/chunks/pages/index-195d2b50dab810dd.js"],"/_error":["static/chunks/pages/_error-dee72aff9b2e2c12.js"],"/agent":[s,c,e,k,t,"static/chunks/pages/agent-25358689f05784e9.js"],"/chat":["static/chunks/pages/chat-4b4742a8b97ead61.js"],"/chat/[scene]/[id]":["static/chunks/pages/chat/[scene]/[id]-c4ba90e8044f953b.js"],"/database":[s,c,a,e,t,n,h,"static/chunks/643-d8f53f40dd3c5b40.js","static/chunks/pages/database-ed7e37a49de751e1.js"],"/knowledge":[i,s,c,e,k,t,n,"static/chunks/63-d9f1013be8e4599a.js","static/chunks/pages/knowledge-c73b240310994685.js"],"/knowledge/chunk":[e,t,"static/chunks/pages/knowledge/chunk-e27c2e349b868b28.js"],"/models":[i,s,c,a,u,h,"static/chunks/pages/models-fab5e316babfc6de.js"],"/prompt":[b,s,c,a,u,d,"static/chunks/45-9ff739c09925ea35.js","static/chunks/61-d2f6cba798a49339.js","static/chunks/367-2a6e805cba0c79d3.js","static/chunks/pages/prompt-f7fa6931310ae8ba.js"],sortedPages:["/","/_app","/_error","/agent","/chat","/chat/[scene]/[id]","/database","/knowledge","/knowledge/chunk","/models","/prompt"]}}("static/chunks/44-941ba89e47567ba3.js","static/chunks/479-68b22ee2b7a47fb3.js","static/chunks/9-bb2c54d5c06ba4bf.js","static/chunks/442-197e6cbc1e54109a.js","static/chunks/813-cce9482e33f2430c.js","static/chunks/411-d9eba2657c72f766.js","static/chunks/29107295-90b90cb30c825230.js","static/chunks/719-5a18c3c696beda6f.js","static/chunks/365-2cad3676ccbb1b1a.js","static/chunks/928-74244889bd7f2699.js","static/chunks/75fc9c18-a784766a129ec5fb.js","static/chunks/815-fa0a8da2d0a72116.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/ip766cXopjZ_vl18rrSLK/_ssgManifest.js b/pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/ip766cXopjZ_vl18rrSLK/_ssgManifest.js rename to pilot/server/static/_next/static/2DHoqE6YLNDUgtBJJVe8p/_ssgManifest.js diff --git a/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js b/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js deleted file mode 100644 index 6ca0f2040..000000000 --- a/pilot/server/static/_next/static/chunks/104-953a3907bb8d7bfd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[104],{6321:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27704:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},31326:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},31545:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27595:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},27329:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:function(t,i){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:i}},{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:t}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:t}}]}},name:"file-word",theme:"twotone"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},68346:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},64082:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},88008:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},18754:function(t,i,e){e.d(i,{Z:function(){return c}});var n=e(87462),o=e(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=e(84089),c=o.forwardRef(function(t,i){return o.createElement(a.Z,(0,n.Z)({},t,{ref:i,icon:r}))})},15746:function(t,i,e){var n=e(21584);i.Z=n.Z},96074:function(t,i,e){e.d(i,{Z:function(){return m}});var n=e(94184),o=e.n(n),r=e(67294),a=e(53124),c=e(14747),l=e(67968),s=e(45503);let d=t=>{let{componentCls:i,sizePaddingEdgeHorizontal:e,colorSplit:n,lineWidth:o}=t;return{[i]:Object.assign(Object.assign({},(0,c.Wf)(t)),{borderBlockStart:`${o}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${i}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${i}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${i}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${i}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${i}-with-text${i}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${i}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${i}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${i}-with-text-left${i}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${i}-inner-text`]:{paddingInlineStart:e}},[`&-horizontal${i}-with-text-right${i}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${i}-inner-text`]:{paddingInlineEnd:e}}})}};var h=(0,l.Z)("Divider",t=>{let i=(0,s.TS)(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[d(i)]},{sizePaddingEdgeHorizontal:0}),g=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e},m=t=>{let{getPrefixCls:i,direction:e,divider:n}=r.useContext(a.E_),{prefixCls:c,type:l="horizontal",orientation:s="center",orientationMargin:d,className:m,rootClassName:p,children:$,dashed:u,plain:f,style:b}=t,S=g(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),v=i("divider",c),[w,x]=h(v),I=s.length>0?`-${s}`:s,z=!!$,M="left"===s&&null!=d,y="right"===s&&null!=d,C=o()(v,null==n?void 0:n.className,x,`${v}-${l}`,{[`${v}-with-text`]:z,[`${v}-with-text${I}`]:z,[`${v}-dashed`]:!!u,[`${v}-plain`]:!!f,[`${v}-rtl`]:"rtl"===e,[`${v}-no-default-orientation-margin-left`]:M,[`${v}-no-default-orientation-margin-right`]:y},m,p),k=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),E=Object.assign(Object.assign({},M&&{marginLeft:k}),y&&{marginRight:k});return w(r.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==n?void 0:n.style),b)},S,{role:"separator"}),$&&"vertical"!==l&&r.createElement("span",{className:`${v}-inner-text`,style:E},$)))}},25378:function(t,i,e){var n=e(67294),o=e(8410),r=e(57838),a=e(74443);i.Z=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=(0,n.useRef)({}),e=(0,r.Z)(),c=(0,a.Z)();return(0,o.Z)(()=>{let n=c.subscribe(n=>{i.current=n,t&&e()});return()=>c.unsubscribe(n)},[]),i.current}},71230:function(t,i,e){var n=e(92820);i.Z=n.Z},3363:function(t,i,e){e.d(i,{Z:function(){return G}});var n,o,r=e(63606),a=e(97937),c=e(94184),l=e.n(c),s=e(87462),d=e(1413),h=e(4942),g=e(45987),m=e(67294),p=e(15105),$=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function u(t){return"string"==typeof t}var f=function(t){var i,e,n,o,r,a=t.className,c=t.prefixCls,f=t.style,b=t.active,S=t.status,v=t.iconPrefix,w=t.icon,x=(t.wrapperStyle,t.stepNumber),I=t.disabled,z=t.description,M=t.title,y=t.subTitle,C=t.progressDot,k=t.stepIcon,E=t.tailContent,H=t.icons,Z=t.stepIndex,O=t.onStepClick,P=t.onClick,T=t.render,N=(0,g.Z)(t,$),W={};O&&!I&&(W.role="button",W.tabIndex=0,W.onClick=function(t){null==P||P(t),O(Z)},W.onKeyDown=function(t){var i=t.which;(i===p.Z.ENTER||i===p.Z.SPACE)&&O(Z)});var j=S||"wait",X=l()("".concat(c,"-item"),"".concat(c,"-item-").concat(j),a,(r={},(0,h.Z)(r,"".concat(c,"-item-custom"),w),(0,h.Z)(r,"".concat(c,"-item-active"),b),(0,h.Z)(r,"".concat(c,"-item-disabled"),!0===I),r)),B=(0,d.Z)({},f),D=m.createElement("div",(0,s.Z)({},N,{className:X,style:B}),m.createElement("div",(0,s.Z)({onClick:P},W,{className:"".concat(c,"-item-container")}),m.createElement("div",{className:"".concat(c,"-item-tail")},E),m.createElement("div",{className:"".concat(c,"-item-icon")},(n=l()("".concat(c,"-icon"),"".concat(v,"icon"),(i={},(0,h.Z)(i,"".concat(v,"icon-").concat(w),w&&u(w)),(0,h.Z)(i,"".concat(v,"icon-check"),!w&&"finish"===S&&(H&&!H.finish||!H)),(0,h.Z)(i,"".concat(v,"icon-cross"),!w&&"error"===S&&(H&&!H.error||!H)),i)),o=m.createElement("span",{className:"".concat(c,"-icon-dot")}),e=C?"function"==typeof C?m.createElement("span",{className:"".concat(c,"-icon")},C(o,{index:x-1,status:S,title:M,description:z})):m.createElement("span",{className:"".concat(c,"-icon")},o):w&&!u(w)?m.createElement("span",{className:"".concat(c,"-icon")},w):H&&H.finish&&"finish"===S?m.createElement("span",{className:"".concat(c,"-icon")},H.finish):H&&H.error&&"error"===S?m.createElement("span",{className:"".concat(c,"-icon")},H.error):w||"finish"===S||"error"===S?m.createElement("span",{className:n}):m.createElement("span",{className:"".concat(c,"-icon")},x),k&&(e=k({index:x-1,status:S,title:M,description:z,node:e})),e)),m.createElement("div",{className:"".concat(c,"-item-content")},m.createElement("div",{className:"".concat(c,"-item-title")},M,y&&m.createElement("div",{title:"string"==typeof y?y:void 0,className:"".concat(c,"-item-subtitle")},y)),z&&m.createElement("div",{className:"".concat(c,"-item-description")},z))));return T&&(D=T(D)||null),D},b=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function S(t){var i,e=t.prefixCls,n=void 0===e?"rc-steps":e,o=t.style,r=void 0===o?{}:o,a=t.className,c=(t.children,t.direction),p=t.type,$=void 0===p?"default":p,u=t.labelPlacement,S=t.iconPrefix,v=void 0===S?"rc":S,w=t.status,x=void 0===w?"process":w,I=t.size,z=t.current,M=void 0===z?0:z,y=t.progressDot,C=t.stepIcon,k=t.initial,E=void 0===k?0:k,H=t.icons,Z=t.onChange,O=t.itemRender,P=t.items,T=(0,g.Z)(t,b),N="inline"===$,W=N||void 0!==y&&y,j=N?"horizontal":void 0===c?"horizontal":c,X=N?void 0:I,B=W?"vertical":void 0===u?"horizontal":u,D=l()(n,"".concat(n,"-").concat(j),a,(i={},(0,h.Z)(i,"".concat(n,"-").concat(X),X),(0,h.Z)(i,"".concat(n,"-label-").concat(B),"horizontal"===j),(0,h.Z)(i,"".concat(n,"-dot"),!!W),(0,h.Z)(i,"".concat(n,"-navigation"),"navigation"===$),(0,h.Z)(i,"".concat(n,"-inline"),N),i)),R=function(t){Z&&M!==t&&Z(t)};return m.createElement("div",(0,s.Z)({className:D,style:r},T),(void 0===P?[]:P).filter(function(t){return t}).map(function(t,i){var e=(0,d.Z)({},t),o=E+i;return"error"===x&&i===M-1&&(e.className="".concat(n,"-next-error")),e.status||(o===M?e.status=x:o{let{componentCls:i,customIconTop:e,customIconSize:n,customIconFontSize:o}=t;return{[`${i}-item-custom`]:{[`> ${i}-item-container > ${i}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${i}-icon`]:{top:e,width:n,height:n,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${i}-vertical)`]:{[`${i}-item-custom`]:{[`${i}-item-icon`]:{width:"auto",background:"none"}}}}},E=t=>{let{componentCls:i,inlineDotSize:e,inlineTitleColor:n,inlineTailColor:o}=t,r=t.paddingXS+t.lineWidth,a={[`${i}-item-container ${i}-item-content ${i}-item-title`]:{color:n}};return{[`&${i}-inline`]:{width:"auto",display:"inline-flex",[`${i}-item`]:{flex:"none","&-container":{padding:`${r}px ${t.paddingXXS}px 0`,margin:`0 ${t.marginXXS/2}px`,borderRadius:t.borderRadiusSM,cursor:"pointer",transition:`background-color ${t.motionDurationMid}`,"&:hover":{background:t.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,[`> ${i}-icon`]:{top:0},[`${i}-icon-dot`]:{borderRadius:t.fontSizeSM/4}},"&-content":{width:"auto",marginTop:t.marginXS-t.lineWidth},"&-title":{color:n,fontSize:t.fontSizeSM,lineHeight:t.lineHeightSM,fontWeight:"normal",marginBottom:t.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+e/2,transform:"translateY(-50%)","&:after":{width:"100%",height:t.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${i}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${i}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${i}-item-icon ${i}-icon ${i}-icon-dot`]:{backgroundColor:t.colorBorderBg,border:`${t.lineWidth}px ${t.lineType} ${o}`}},a),"&-finish":Object.assign({[`${i}-item-tail::after`]:{backgroundColor:o},[`${i}-item-icon ${i}-icon ${i}-icon-dot`]:{backgroundColor:o,border:`${t.lineWidth}px ${t.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${i}-item-icon`]:{width:e,height:e,marginInlineStart:`calc(50% - ${e/2}px)`,top:0}},a),[`&:not(${i}-item-active) > ${i}-item-container[role='button']:hover`]:{[`${i}-item-title`]:{color:n}}}}}},H=t=>{let{componentCls:i,iconSize:e,lineHeight:n,iconSizeSM:o}=t;return{[`&${i}-label-vertical`]:{[`${i}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e/2+t.controlHeightLG,padding:`${t.paddingXXS}px ${t.paddingLG}px`},"&-content":{display:"block",width:(e/2+t.controlHeightLG)*2,marginTop:t.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:t.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:t.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${i}-small:not(${i}-dot)`]:{[`${i}-item`]:{"&-icon":{marginInlineStart:t.controlHeightLG+(e-o)/2}}}}}},Z=t=>{let{componentCls:i,navContentMaxWidth:e,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=t;return{[`&${i}-navigation`]:{paddingTop:t.paddingSM,[`&${i}-small`]:{[`${i}-item`]:{"&-container":{marginInlineStart:-t.marginSM}}},[`${i}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-t.margin,paddingBottom:t.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${i}-item-content`]:{maxWidth:e},[`${i}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},M.vS),{"&::after":{display:"none"}})},[`&:not(${i}-item-active)`]:{[`${i}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${t.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,borderTop:`${t.lineWidth}px ${t.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${t.lineWidth}px ${t.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:t.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${i}-item${i}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${i}-navigation${i}-vertical`]:{[`> ${i}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${i}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*t.lineWidth,height:`calc(100% - ${t.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*t.controlHeight,height:.25*t.controlHeight,marginBottom:t.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${i}-item-container > ${i}-item-tail`]:{visibility:"hidden"}}},[`&${i}-navigation${i}-horizontal`]:{[`> ${i}-item > ${i}-item-container > ${i}-item-tail`]:{visibility:"hidden"}}}},O=t=>{let{antCls:i,componentCls:e}=t;return{[`&${e}-with-progress`]:{[`${e}-item`]:{paddingTop:t.paddingXXS,[`&-process ${e}-item-container ${e}-item-icon ${e}-icon`]:{color:t.processIconColor}},[`&${e}-vertical > ${e}-item `]:{paddingInlineStart:t.paddingXXS,[`> ${e}-item-container > ${e}-item-tail`]:{top:t.marginXXS,insetInlineStart:t.iconSize/2-t.lineWidth+t.paddingXXS}},[`&, &${e}-small`]:{[`&${e}-horizontal ${e}-item:first-child`]:{paddingBottom:t.paddingXXS,paddingInlineStart:t.paddingXXS}},[`&${e}-small${e}-vertical > ${e}-item > ${e}-item-container > ${e}-item-tail`]:{insetInlineStart:t.iconSizeSM/2-t.lineWidth+t.paddingXXS},[`&${e}-label-vertical`]:{[`${e}-item ${e}-item-tail`]:{top:t.margin-2*t.lineWidth}},[`${e}-item-icon`]:{position:"relative",[`${i}-progress`]:{position:"absolute",insetBlockStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2,insetInlineStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2}}}}},P=t=>{let{componentCls:i,descriptionMaxWidth:e,lineHeight:n,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=t;return{[`&${i}-dot, &${i}-dot${i}-small`]:{[`${i}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:Math.floor((t.dotSize-3*t.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${e/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*t.marginSM}px)`,height:3*t.lineWidth,marginInlineStart:t.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(t.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${i}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-t.marginSM,insetInlineStart:(r-1.5*t.controlHeightLG)/2,width:1.5*t.controlHeightLG,height:t.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},[`&-process ${i}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(t.descriptionMaxWidth-o)/2},[`&-process ${i}-icon`]:{[`&:first-child ${i}-icon-dot`]:{insetInlineStart:0}}}},[`&${i}-vertical${i}-dot`]:{[`${i}-item-icon`]:{marginTop:(t.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${i}-item-process ${i}-item-icon`]:{marginTop:(t.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${i}-item > ${i}-item-container > ${i}-item-tail`]:{top:(t.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+t.paddingXS}px 0 ${t.paddingXS}px`,"&::after":{marginInlineStart:(r-t.lineWidth)/2}},[`&${i}-small`]:{[`${i}-item-icon`]:{marginTop:(t.controlHeightSM-r)/2},[`${i}-item-process ${i}-item-icon`]:{marginTop:(t.controlHeightSM-o)/2},[`${i}-item > ${i}-item-container > ${i}-item-tail`]:{top:(t.controlHeightSM-r)/2}},[`${i}-item:first-child ${i}-icon-dot`]:{insetInlineStart:0},[`${i}-item-content`]:{width:"inherit"}}}},T=t=>{let{componentCls:i}=t;return{[`&${i}-rtl`]:{direction:"rtl",[`${i}-item`]:{"&-subtitle":{float:"left"}},[`&${i}-navigation`]:{[`${i}-item::after`]:{transform:"rotate(-45deg)"}},[`&${i}-vertical`]:{[`> ${i}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${i}-item-icon`]:{float:"right"}}},[`&${i}-dot`]:{[`${i}-item-icon ${i}-icon-dot, &${i}-small ${i}-item-icon ${i}-icon-dot`]:{float:"right"}}}}},N=t=>{let{componentCls:i,iconSizeSM:e,fontSizeSM:n,fontSize:o,colorTextDescription:r}=t;return{[`&${i}-small`]:{[`&${i}-horizontal:not(${i}-label-vertical) ${i}-item`]:{paddingInlineStart:t.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${i}-item-icon`]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:`0 ${t.marginXS}px`,fontSize:n,lineHeight:`${e}px`,textAlign:"center",borderRadius:e},[`${i}-item-title`]:{paddingInlineEnd:t.paddingSM,fontSize:o,lineHeight:`${e}px`,"&::after":{top:e/2}},[`${i}-item-description`]:{color:r,fontSize:o},[`${i}-item-tail`]:{top:e/2-t.paddingXXS},[`${i}-item-custom ${i}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${i}-icon`]:{fontSize:e,lineHeight:`${e}px`,transform:"none"}}}}},W=t=>{let{componentCls:i,iconSizeSM:e,iconSize:n}=t;return{[`&${i}-vertical`]:{display:"flex",flexDirection:"column",[`> ${i}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${i}-item-icon`]:{float:"left",marginInlineEnd:t.margin},[`${i}-item-content`]:{display:"block",minHeight:1.5*t.controlHeight,overflow:"hidden"},[`${i}-item-title`]:{lineHeight:`${n}px`},[`${i}-item-description`]:{paddingBottom:t.paddingSM}},[`> ${i}-item > ${i}-item-container > ${i}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-t.lineWidth,width:t.lineWidth,height:"100%",padding:`${n+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`,"&::after":{width:t.lineWidth,height:"100%"}},[`> ${i}-item:not(:last-child) > ${i}-item-container > ${i}-item-tail`]:{display:"block"},[` > ${i}-item > ${i}-item-container > ${i}-item-content > ${i}-item-title`]:{"&::after":{display:"none"}},[`&${i}-small ${i}-item-container`]:{[`${i}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e/2-t.lineWidth,padding:`${e+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`},[`${i}-item-title`]:{lineHeight:`${e}px`}}}}};(n=o||(o={})).wait="wait",n.process="process",n.finish="finish",n.error="error";let j=(t,i)=>{let e=`${i.componentCls}-item`,n=`${t}IconColor`,o=`${t}TitleColor`,r=`${t}DescriptionColor`,a=`${t}TailColor`,c=`${t}IconBgColor`,l=`${t}IconBorderColor`,s=`${t}DotColor`;return{[`${e}-${t} ${e}-icon`]:{backgroundColor:i[c],borderColor:i[l],[`> ${i.componentCls}-icon`]:{color:i[n],[`${i.componentCls}-icon-dot`]:{background:i[s]}}},[`${e}-${t}${e}-custom ${e}-icon`]:{[`> ${i.componentCls}-icon`]:{color:i[s]}},[`${e}-${t} > ${e}-container > ${e}-content > ${e}-title`]:{color:i[o],"&::after":{backgroundColor:i[a]}},[`${e}-${t} > ${e}-container > ${e}-content > ${e}-description`]:{color:i[r]},[`${e}-${t} > ${e}-container > ${e}-tail::after`]:{backgroundColor:i[a]}}},X=t=>{let{componentCls:i,motionDurationSlow:e}=t,n=`${i}-item`,r=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,M.oN)(t))}},[`${r}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:t.iconSize,height:t.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:t.marginXS,fontSize:t.iconFontSize,fontFamily:t.fontFamily,lineHeight:`${t.iconSize}px`,textAlign:"center",borderRadius:t.iconSize,border:`${t.lineWidth}px ${t.lineType} transparent`,transition:`background-color ${e}, border-color ${e}`,[`${i}-icon`]:{position:"relative",top:t.iconTop,color:t.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:t.iconSize/2-t.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:t.lineWidth,background:t.colorSplit,borderRadius:t.lineWidth,transition:`background ${e}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:t.padding,color:t.colorText,fontSize:t.fontSizeLG,lineHeight:`${t.titleLineHeight}px`,"&::after":{position:"absolute",top:t.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:t.lineWidth,background:t.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize},[`${n}-description`]:{color:t.colorTextDescription,fontSize:t.fontSize}},j(o.wait,t)),j(o.process,t)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:t.fontWeightStrong}}),j(o.finish,t)),j(o.error,t)),{[`${n}${i}-next-error > ${i}-item-title::after`]:{background:t.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},B=t=>{let{componentCls:i,motionDurationSlow:e}=t;return{[`& ${i}-item`]:{[`&:not(${i}-item-active)`]:{[`& > ${i}-item-container[role='button']`]:{cursor:"pointer",[`${i}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${i}-icon`]:{transition:`color ${e}`}},"&:hover":{[`${i}-item`]:{"&-title, &-subtitle, &-description":{color:t.colorPrimary}}}},[`&:not(${i}-item-process)`]:{[`& > ${i}-item-container[role='button']:hover`]:{[`${i}-item`]:{"&-icon":{borderColor:t.colorPrimary,[`${i}-icon`]:{color:t.colorPrimary}}}}}}},[`&${i}-horizontal:not(${i}-label-vertical)`]:{[`${i}-item`]:{paddingInlineStart:t.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${i}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:t.descriptionMaxWidth,whiteSpace:"normal"}}}}},D=t=>{let{componentCls:i}=t;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,M.Wf)(t)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),X(t)),B(t)),k(t)),N(t)),W(t)),H(t)),P(t)),Z(t)),T(t)),O(t)),E(t))}};var R=(0,y.Z)("Steps",t=>{let{wireframe:i,colorTextDisabled:e,controlHeightLG:n,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:c,colorTextDescription:l,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:h,colorError:g,colorBgContainer:m,colorBorderSecondary:p,colorSplit:$}=t,u=(0,C.TS)(t,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:$,waitIconColor:i?e:c,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:$,waitIconBgColor:i?m:d,waitIconBorderColor:i?e:"transparent",waitDotColor:e,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:l,finishTailColor:a,finishIconBgColor:i?m:h,finishIconBorderColor:i?a:h,finishDotColor:a,errorIconColor:o,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:$,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:p});return[D(u)]},t=>{let{colorTextDisabled:i,fontSize:e,controlHeightSM:n,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=t;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:n,iconSize:o,iconTop:-.5,iconFontSize:e,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:i,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=e(50344),A=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};let V=t=>{let{percent:i,size:e,className:n,rootClassName:o,direction:c,items:s,responsive:d=!0,current:h=0,children:g,style:p}=t,$=A(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:u}=(0,x.Z)(d),{getPrefixCls:f,direction:b,steps:M}=m.useContext(v.E_),y=m.useMemo(()=>d&&u?"vertical":c,[u,c]),C=(0,w.Z)(e),k=f("steps",t.prefixCls),[E,H]=R(k),Z="inline"===t.type,O=f("",t.iconPrefix),P=function(t,i){if(t)return t;let e=(0,L.Z)(i).map(t=>{if(m.isValidElement(t)){let{props:i}=t,e=Object.assign({},i);return e}return null});return e.filter(t=>t)}(s,g),T=Z?void 0:i,N=Object.assign(Object.assign({},null==M?void 0:M.style),p),W=l()(null==M?void 0:M.className,{[`${k}-rtl`]:"rtl"===b,[`${k}-with-progress`]:void 0!==T},n,o,H),j={finish:m.createElement(r.Z,{className:`${k}-finish-icon`}),error:m.createElement(a.Z,{className:`${k}-error-icon`})};return E(m.createElement(S,Object.assign({icons:j},$,{style:N,current:h,size:C,items:P,itemRender:Z?(t,i)=>t.description?m.createElement(z.Z,{title:t.description},i):i:void 0,stepIcon:t=>{let{node:i,status:e}=t;return"process"===e&&void 0!==T?m.createElement("div",{className:`${k}-progress-icon`},m.createElement(I.Z,{type:"circle",percent:T,size:"small"===C?32:40,strokeWidth:4,format:()=>null}),i):i},direction:y,prefixCls:k,iconPrefix:O,className:W})))};V.Step=S.Step;var G=V},72269:function(t,i,e){e.d(i,{Z:function(){return Z}});var n=e(50888),o=e(94184),r=e.n(o),a=e(87462),c=e(4942),l=e(97685),s=e(45987),d=e(67294),h=e(21770),g=e(15105),m=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],p=d.forwardRef(function(t,i){var e,n=t.prefixCls,o=void 0===n?"rc-switch":n,p=t.className,$=t.checked,u=t.defaultChecked,f=t.disabled,b=t.loadingIcon,S=t.checkedChildren,v=t.unCheckedChildren,w=t.onClick,x=t.onChange,I=t.onKeyDown,z=(0,s.Z)(t,m),M=(0,h.Z)(!1,{value:$,defaultValue:u}),y=(0,l.Z)(M,2),C=y[0],k=y[1];function E(t,i){var e=C;return f||(k(e=t),null==x||x(e,i)),e}var H=r()(o,p,(e={},(0,c.Z)(e,"".concat(o,"-checked"),C),(0,c.Z)(e,"".concat(o,"-disabled"),f),e));return d.createElement("button",(0,a.Z)({},z,{type:"button",role:"switch","aria-checked":C,disabled:f,className:H,ref:i,onKeyDown:function(t){t.which===g.Z.LEFT?E(!1,t):t.which===g.Z.RIGHT&&E(!0,t),null==I||I(t)},onClick:function(t){var i=E(!C,t);null==w||w(i,t)}}),b,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},S),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},v)))});p.displayName="Switch";var $=e(45353),u=e(53124),f=e(98866),b=e(98675),S=e(10274),v=e(14747),w=e(67968),x=e(45503);let I=t=>{let{componentCls:i}=t,e=`${i}-inner`;return{[i]:{[`&${i}-small`]:{minWidth:t.switchMinWidthSM,height:t.switchHeightSM,lineHeight:`${t.switchHeightSM}px`,[`${i}-inner`]:{paddingInlineStart:t.switchInnerMarginMaxSM,paddingInlineEnd:t.switchInnerMarginMinSM,[`${e}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`},[`${e}-unchecked`]:{marginTop:-t.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${i}-handle`]:{width:t.switchPinSizeSM,height:t.switchPinSizeSM},[`${i}-loading-icon`]:{top:(t.switchPinSizeSM-t.switchLoadingIconSize)/2,fontSize:t.switchLoadingIconSize},[`&${i}-checked`]:{[`${i}-inner`]:{paddingInlineStart:t.switchInnerMarginMinSM,paddingInlineEnd:t.switchInnerMarginMaxSM,[`${e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${e}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`}},[`${i}-handle`]:{insetInlineStart:`calc(100% - ${t.switchPinSizeSM+t.switchPadding}px)`}},[`&:not(${i}-disabled):active`]:{[`&:not(${i}-checked) ${e}`]:{[`${e}-unchecked`]:{marginInlineStart:t.marginXXS/2,marginInlineEnd:-t.marginXXS/2}},[`&${i}-checked ${e}`]:{[`${e}-checked`]:{marginInlineStart:-t.marginXXS/2,marginInlineEnd:t.marginXXS/2}}}}}}},z=t=>{let{componentCls:i}=t;return{[i]:{[`${i}-loading-icon${t.iconCls}`]:{position:"relative",top:(t.switchPinSize-t.fontSize)/2,color:t.switchLoadingIconColor,verticalAlign:"top"},[`&${i}-checked ${i}-loading-icon`]:{color:t.switchColor}}}},M=t=>{let{componentCls:i,motion:e}=t,n=`${i}-handle`;return{[i]:{[n]:{position:"absolute",top:t.switchPadding,insetInlineStart:t.switchPadding,width:t.switchPinSize,height:t.switchPinSize,transition:`all ${t.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:t.colorWhite,borderRadius:t.switchPinSize/2,boxShadow:t.switchHandleShadow,transition:`all ${t.switchDuration} ease-in-out`,content:'""'}},[`&${i}-checked ${n}`]:{insetInlineStart:`calc(100% - ${t.switchPinSize+t.switchPadding}px)`},[`&:not(${i}-disabled):active`]:e?{[`${n}::before`]:{insetInlineEnd:t.switchHandleActiveInset,insetInlineStart:0},[`&${i}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:t.switchHandleActiveInset}}:{}}}},y=t=>{let{componentCls:i}=t,e=`${i}-inner`;return{[i]:{[e]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:t.switchInnerMarginMax,paddingInlineEnd:t.switchInnerMarginMin,transition:`padding-inline-start ${t.switchDuration} ease-in-out, padding-inline-end ${t.switchDuration} ease-in-out`,[`${e}-checked, ${e}-unchecked`]:{display:"block",color:t.colorTextLightSolid,fontSize:t.fontSizeSM,transition:`margin-inline-start ${t.switchDuration} ease-in-out, margin-inline-end ${t.switchDuration} ease-in-out`,pointerEvents:"none"},[`${e}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`},[`${e}-unchecked`]:{marginTop:-t.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${i}-checked ${e}`]:{paddingInlineStart:t.switchInnerMarginMin,paddingInlineEnd:t.switchInnerMarginMax,[`${e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${e}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`}},[`&:not(${i}-disabled):active`]:{[`&:not(${i}-checked) ${e}`]:{[`${e}-unchecked`]:{marginInlineStart:2*t.switchPadding,marginInlineEnd:-(2*t.switchPadding)}},[`&${i}-checked ${e}`]:{[`${e}-checked`]:{marginInlineStart:-(2*t.switchPadding),marginInlineEnd:2*t.switchPadding}}}}}},C=t=>{let{componentCls:i}=t;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(t)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:t.switchMinWidth,height:t.switchHeight,lineHeight:`${t.switchHeight}px`,verticalAlign:"middle",background:t.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${t.motionDurationMid}`,userSelect:"none",[`&:hover:not(${i}-disabled)`]:{background:t.colorTextTertiary}}),(0,v.Qy)(t)),{[`&${i}-checked`]:{background:t.switchColor,[`&:hover:not(${i}-disabled)`]:{background:t.colorPrimaryHover}},[`&${i}-loading, &${i}-disabled`]:{cursor:"not-allowed",opacity:t.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${i}-rtl`]:{direction:"rtl"}})}};var k=(0,w.Z)("Switch",t=>{let i=t.fontSize*t.lineHeight,e=t.controlHeight/2,n=i-4,o=e-4,r=(0,x.TS)(t,{switchMinWidth:2*n+8,switchHeight:i,switchDuration:t.motionDurationMid,switchColor:t.colorPrimary,switchDisabledOpacity:t.opacityLoading,switchInnerMarginMin:n/2,switchInnerMarginMax:n+2+4,switchPadding:2,switchPinSize:n,switchBg:t.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:e,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new S.C("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*t.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${t.opacityLoading})`,switchHandleActiveInset:"-30%"});return[C(r),y(r),M(r),z(r),I(r)]}),E=function(t,i){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>i.indexOf(n)&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);oi.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]]);return e};let H=d.forwardRef((t,i)=>{let{prefixCls:e,size:o,disabled:a,loading:c,className:l,rootClassName:s,style:h}=t,g=E(t,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:m,direction:S,switch:v}=d.useContext(u.E_),w=d.useContext(f.Z),x=(null!=a?a:w)||c,I=m("switch",e),z=d.createElement("div",{className:`${I}-handle`},c&&d.createElement(n.Z,{className:`${I}-loading-icon`})),[M,y]=k(I),C=(0,b.Z)(o),H=r()(null==v?void 0:v.className,{[`${I}-small`]:"small"===C,[`${I}-loading`]:c,[`${I}-rtl`]:"rtl"===S},l,s,y),Z=Object.assign(Object.assign({},null==v?void 0:v.style),h);return M(d.createElement($.Z,{component:"Switch"},d.createElement(p,Object.assign({},g,{prefixCls:I,className:H,style:Z,disabled:x,ref:i,loadingIcon:z}))))});H.__ANT_SWITCH=!0;var Z=H}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/270-2f094a936d056513.js b/pilot/server/static/_next/static/chunks/270-2f094a936d056513.js deleted file mode 100644 index 448d44730..000000000 --- a/pilot/server/static/_next/static/chunks/270-2f094a936d056513.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))})},38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let i=n[t];void 0!==i&&(e[t]=i)})}return e}},66367:function(e,t,n){function i(e){return null!=e&&e===e.window}function r(e,t){var n,r;if("undefined"==typeof window)return 0;let o=t?"scrollTop":"scrollLeft",a=0;return i(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!i(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}n.d(t,{F:function(){return i},Z:function(){return r}})},58375:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(75164),r=n(66367);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:o,duration:a=450}=t,l=n(),c=(0,r.Z)(l,!0),s=Date.now(),u=()=>{let t=Date.now(),n=t-s,p=function(e,t,n,i){let r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,r.F)(l)?l.scrollTo(window.pageXOffset,p):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=p:l.scrollTop=p,n0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,o.Z)(),l=(0,a.Z)();return(0,r.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),r=n(67294),o={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"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))}),c={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"},s=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:c}))}),u=n(6171),p=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),x=n(73568),C=n(64217),S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,r=Array(i),o=0;o=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===S.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,o=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(o,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&s){var x=f.map(function(t,n){return r.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});h=r.createElement(s,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},x)}return l&&(c&&(b="boolean"==typeof c?r.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):r.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=r.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,r.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),r.createElement("li",{className:"".concat(g)},h,v)}}]),n}(r.Component);$.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=function(e){var t,n=e.rootPrefixCls,i=e.page,o=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),o),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",r.createElement("a",{rel:"nofollow"},i));return h?r.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){c(i)},onKeyPress:function(e){s(e,c,i)},tabIndex:0},h):null};function y(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var I=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=r.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,o=e||r.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=r.createElement(e,(0,h.Z)({},i.props))),o},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===S.ARROW_UP||e.keyCode===S.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===S.ENTER?i.handleChange(t):e.keyCode===S.ARROW_UP?i.handleChange(t-1):e.keyCode===S.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,r=t.onChange,o=i.state,a=o.pageSize,l=o.current,c=o.currentInputValue;if(i.isValid(e)&&!n){var s=N(void 0,i.state,i.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==c&&i.setState({currentInputValue:u}),r(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.style,a=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,x=e.jumpPrevIcon,S=e.jumpNextIcon,y=e.selectComponentClass,E=e.selectPrefixCls,I=e.pageSizeOptions,P=this.state,z=P.current,O=P.pageSize,w=P.currentInputValue;if(!0===l&&c<=O)return null;var T=N(void 0,this.state,this.props),j=[],B=null,M=null,Z=null,D=null,_=null,A=u&&u.goButton,R=p?1:2,H=z-1>0?z-1:0,V=z+1c?c:z*O]));if(v){A&&(_="boolean"==typeof A?r.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):r.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A),_=r.createElement("li",{title:m?"".concat(s.jump_to).concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},_));var W=this.renderPrev(H);return r.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:o,ref:this.paginationNode},K),L,W?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,r.createElement("li",{title:m?"".concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},r.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),r.createElement("span",{className:"".concat(t,"-slash")},"/"),T),r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),_)}if(T<=3+2*R){var J={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};T||j.push(r.createElement(k,(0,i.Z)({},J,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=T;X+=1){var U=z===X;j.push(r.createElement(k,(0,i.Z)({},J,{key:X,page:X,active:U})))}}else{var G=p?s.prev_3:s.prev_5,F=p?s.next_3:s.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(x,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(S,"next page"));f&&(B=q?r.createElement("li",{title:m?G:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!x))},q):null,M=Q?r.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!S))},Q):null),D=r.createElement(k,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:m,itemRender:b}),Z=r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,z-R),ee=Math.min(z+R,T);z-1<=R&&(ee=1+2*R),T-z<=R&&(Y=T-2*R);for(var et=Y;et<=ee;et+=1){var en=z===et;j.push(r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}z-1>=2*R&&3!==z&&(j[0]=(0,r.cloneElement)(j[0],{className:"".concat(t,"-item-after-jump-prev")}),j.unshift(B)),T-z>=2*R&&z!==T-2&&(j[j.length-1]=(0,r.cloneElement)(j[j.length-1],{className:"".concat(t,"-item-before-jump-next")}),j.push(M)),1!==Y&&j.unshift(Z),ee!==T&&j.push(D)}var ei=!this.hasPrev()||!T,er=!this.hasNext()||!T,eo=this.renderPrev(H),ea=this.renderNext(V);return r.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:o,ref:this.paginationNode},K),L,eo?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},eo):null,j,ea?r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:er?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),er)),"aria-disabled":er},ea):null,r.createElement($,{disabled:a,locale:s,rootPrefixCls:t,selectComponentClass:y,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:O,pageSizeOptions:I,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:A}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,r=N(e.pageSize,t,e);i=i>r?r:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(r.Component);I.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:y,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:y,locale:{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:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var P=n(62906),z=n(53124),O=n(98675),w=n(25378),T=n(10110),j=n(51009);let B=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"middle"}));B.Option=j.default.Option,M.Option=j.default.Option;var Z=n(47673),D=n(14747),_=n(67968),A=n(45503);let R=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${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:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Z.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},V=e=>{let{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},K=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,fontFamily:"Arial, Helvetica, sans-serif",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:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${e.lineWidth}px ${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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Z.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},L=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(e)),{"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:`${e.itemSize-2}px`,verticalAlign:"middle"}}),L(e)),K(e)),V(e)),H(e)),R(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"}}},J=e=>{let{componentCls:t}=e;return{[`${t}${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}: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:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},X=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,D.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,D.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,D.oN)(e))}}}};var U=(0,_.Z)("Pagination",e=>{let t=(0,A.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Z.e5)(e));return[W(t),X(t),e.wireframe&&J(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:o,style:a,size:c,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=G(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,w.Z)(h),{getPrefixCls:x,direction:C,pagination:S={}}=r.useContext(z.E_),$=x("pagination",t),[k,y]=U($),E=null!=v?v:S.showSizeChanger,N=r.useMemo(()=>{let e=r.createElement("span",{className:`${$}-item-ellipsis`},"•••"),t=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(p.Z,null):r.createElement(u.Z,null)),n=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(u.Z,null):r.createElement(p.Z,null)),i=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(s,{className:`${$}-item-link-icon`}):r.createElement(l,{className:`${$}-item-link-icon`}),e)),o=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(l,{className:`${$}-item-link-icon`}):r.createElement(s,{className:`${$}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:o}},[C,$]),[j]=(0,T.Z)("Pagination",P.Z),Z=Object.assign(Object.assign({},j),m),D=(0,O.Z)(c),_="small"===D||!!(f&&!D&&h),A=x("select",n),R=d()({[`${$}-mini`]:_,[`${$}-rtl`]:"rtl"===C},null==S?void 0:S.className,i,o,y),H=Object.assign(Object.assign({},null==S?void 0:S.style),a);return k(r.createElement(I,Object.assign({},N,b,{style:H,prefixCls:$,selectPrefixCls:A,className:R,selectComponentClass:g||(_?B:M),locale:Z,showSizeChanger:E})))}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/304.b9722ef34a01988f.js b/pilot/server/static/_next/static/chunks/304.b9722ef34a01988f.js deleted file mode 100644 index 5d857c2f2..000000000 --- a/pilot/server/static/_next/static/chunks/304.b9722ef34a01988f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[304],{39156:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var a=l(85893),n=l(41118),r=l(30208),s=l(40911),c=l(75227),i=l(67294);function o(e){let{chart:t}=e,l=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{l.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new c.sg(l.current,{data:t.values,xField:"name",yField:"value",seriesField:"type",legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[t.values]),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(r.Z,{className:"h-full",children:[(0,a.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,a.jsx)("div",{className:"h-[300px]",ref:l})]})})})}function u(e){let{chart:t}=e,l=(0,i.useRef)(null),o=(0,i.useRef)({chart:null});return(0,i.useEffect)(()=>{l.current&&(o.current.chart&&o.current.chart.destroy(),o.current.chart=new c.x1(l.current,{data:t.values,xField:"name",yField:"value",seriesField:"type",smooth:!0,area:{style:{fillOpacity:.15}},legend:{position:"bottom"},animation:{appear:{animation:"wave-in",duration:3e3}}}),o.current.chart.render())},[t.values]),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(r.Z,{className:"h-full",children:[(0,a.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,a.jsx)("div",{className:"h-[300px]",ref:l})]})})})}var d=l(61685),h=l(96486);function x(e){var t,l;let{chart:c}=e,i=(0,h.groupBy)(c.values,"type");return(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,a.jsxs)(r.Z,{className:"h-full",children:[(0,a.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:c.chart_name}),(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",children:c.chart_desc}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(d.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:Object.keys(i).map(e=>(0,a.jsx)("th",{children:e},e))})}),(0,a.jsx)("tbody",{children:null===(t=Object.values(i))||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.map((e,t)=>{var l;return(0,a.jsx)("tr",{children:null===(l=Object.keys(i))||void 0===l?void 0:l.map(e=>{var l;return(0,a.jsx)("td",{children:(null==i?void 0:null===(l=i[e])||void 0===l?void 0:l[t].value)||""},e)})},t)})})]})})]})})})}var m=function(e){let{chartsData:t}=e,l=(0,i.useMemo)(()=>{if(t){let e=[],l=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let a=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),n=a.length,r=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][n].forEach(t=>{if(t>0){let l=a.slice(r,r+t);r+=t,e.push({charts:l})}}),e}},[t]);return(0,a.jsx)("div",{className:"flex flex-col gap-3",children:null==l?void 0:l.map((e,t)=>(0,a.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,a.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(n.Z,{sx:{background:"transparent"},children:(0,a.jsxs)(r.Z,{className:"justify-around",children:[(0,a.jsx)(s.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,a.jsx)(s.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,a.jsx)(u,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,a.jsx)(o,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,a.jsx)(x,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},70803:function(e,t,l){"use strict";l.d(t,{Z:function(){return B}});var a=l(85893),n=l(67294),r=l(2453),s=l(83062),c=l(31365),i=l(71577),o=l(49591),u=l(88484),d=l(29158),h=l(50489),x=l(41468),m=function(e){var t;let{convUid:l,chatMode:m,onComplete:p,...f}=e,[v,j]=(0,n.useState)(!1),[g,y]=r.ZP.useMessage(),[b,w]=(0,n.useState)([]),[Z,N]=(0,n.useState)(),{model:_}=(0,n.useContext)(x.p),P=async e=>{var t;if(!e){r.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){r.ZP.error("File type must be csv, xlsx or xls");return}w([e.file])},C=async()=>{j(!0);try{let e=new FormData;e.append("doc_file",b[0]),g.open({content:"Uploading ".concat(b[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:l,chatMode:m,data:e,model:_,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);N(t)}}}));if(t)return;r.ZP.success("success"),null==p||p()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{j(!1),g.destroy()}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[y,(0,a.jsx)(s.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,a.jsx)(c.default,{disabled:v,className:"mr-1",beforeUpload:()=>!1,fileList:b,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:P,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,a.jsx)(a.Fragment,{}),...f,children:(0,a.jsx)(i.ZP,{className:"flex justify-center items-center",type:"primary",disabled:v,icon:(0,a.jsx)(o.Z,{}),children:"Select File"})})}),(0,a.jsx)(i.ZP,{type:"primary",loading:v,className:"flex justify-center items-center",disabled:!b.length,icon:(0,a.jsx)(u.Z,{}),onClick:C,children:v?100===Z?"Analysis":"Uploading":"Upload"}),!!b.length&&(0,a.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,a.jsx)(d.Z,{className:"mr-2"}),(0,a.jsx)("span",{children:null===(t=b[0])||void 0===t?void 0:t.name})]})]})})},p=function(e){let{onComplete:t}=e,{currentDialogue:l,scene:r,chatId:s}=(0,n.useContext)(x.p);return"chat_excel"!==r?null:(0,a.jsx)("div",{className:"max-w-md h-full relative",children:l?(0,a.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,a.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,a.jsx)(d.Z,{className:"text-white"})}),(0,a.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:l.select_param})]}):(0,a.jsx)(m,{convUid:s,chatMode:r,onComplete:t})})};l(23293);var f=l(78045),v=l(16165),j=l(96991),g=function(){return(0,a.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,a.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})};function y(){let{isContract:e,setIsContract:t,scene:l}=(0,n.useContext)(x.p),r=l&&["chat_with_db_execute","chat_dashboard"].includes(l);return r?(0,a.jsxs)(f.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,a.jsxs)(f.ZP.Button,{value:!1,children:[(0,a.jsx)(v.Z,{component:g,className:"mr-1"}),"Preview"]}),(0,a.jsxs)(f.ZP.Button,{value:!0,children:[(0,a.jsx)(j.Z,{className:"mr-1"}),"Editor"]})]}):null}var b=l(81799),w=function(){return(0,a.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4870",children:(0,a.jsx)("path",{d:"M511.875 128.125c-211.875 0-383.75 76.25-383.75 170.625 0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625C896.25 204.375 724.375 128.125 511.875 128.125M128.125 383.75l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 555 128.125 478.125 128.125 383.75M128.125 597.5l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 768.125 128.125 691.875 128.125 597.5z","p-id":"4871"})})},Z=l(2093),N=l(51009),_=function(){let{scene:e,dbParam:t,setDbParam:l}=(0,n.useContext)(x.p),[r,s]=(0,n.useState)({});(0,Z.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));s(null!=t?t:{})},[e]);let c=(0,n.useMemo)(()=>Object.entries(r).map(e=>{let[t,l]=e;return{label:t,value:l}}),[r]);return((0,n.useEffect)(()=>{c.length&&!t&&l(c[0].value)},[c,l,t]),c.length)?(0,a.jsx)(N.default,{value:t,className:"w-36",onChange:e=>{l(e)},children:c.map(e=>(0,a.jsxs)(N.default.Option,{children:[(0,a.jsx)(v.Z,{component:w,className:"mr-1"}),e.label]},e.value))}):null},P=l(577),C=l(67421),k=function(){let{t:e}=(0,C.$G)(),{agentList:t,setAgentList:l}=(0,n.useContext)(x.p),{data:r=[]}=(0,P.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.N6)());return e&&e.length&&(null==l||l([e[0].name])),null!=e?e:[]});return r.length?(0,a.jsx)(N.default,{className:"w-60",value:t,mode:"multiple",maxTagCount:1,maxTagTextLength:12,placeholder:e("Select_Plugins"),options:r.map(e=>({label:e.name,value:e.name})),allowClear:!0,onChange:e=>{null==l||l(e)}}):null},B=function(e){let{refreshHistory:t,modelChange:l}=e,{scene:r,refreshDialogList:s}=(0,n.useContext)(x.p);return(0,a.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,a.jsx)(b.Z,{onChange:l}),(0,a.jsx)(_,{}),"chat_excel"===r&&(0,a.jsx)(p,{onComplete:()=>{null==s||s(),null==t||t()}}),"chat_agent"===r&&(0,a.jsx)(k,{}),(0,a.jsx)(y,{})]})}},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return d}});var a=l(85893),n=l(41468),r=l(51009),s=l(19284),c=l(25675),i=l.n(c),o=l(67294),u=l(67421);function d(e,t){var l;let{width:n,height:r}=t||{};return e?(0,a.jsx)(i(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:n||24,height:r||24,src:(null===(l=s.F[e])||void 0===l?void 0:l.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,u.$G)(),{modelList:c,model:i}=(0,o.useContext)(n.p);return!c||c.length<=0?null:(0,a.jsx)(r.default,{value:i,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:c.map(e=>{var t;return(0,a.jsx)(r.default.Option,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[d(e),(0,a.jsx)("span",{className:"ml-2",children:(null===(t=s.F[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},99513:function(e,t,l){"use strict";l.d(t,{Z:function(){return u}});var a=l(85893),n=l(77119),r=l(63764),s=l(94184),c=l.n(s),i=l(67294),o=l(36782);function u(e){let{className:t,value:l,language:n="mysql",onChange:s,thoughts:u}=e,d=(0,i.useMemo)(()=>"mysql"!==n?l:u&&u.length>0?(0,o.WU)("-- ".concat(u," \n").concat(l)):(0,o.WU)(l),[l,u]);return(0,a.jsx)(r.ZP,{className:c()(t),value:d,language:n,onChange:s,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}r._m.config({monaco:n})},30119:function(e,t,l){"use strict";l.d(t,{Tk:function(){return i},PR:function(){return o}});var a=l(2453),n=l(6154),r=l(83454);let s=n.Z.create({baseURL:r.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),l(96486);let c={"content-type":"application/json"},i=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return s.get("/api"+e,{headers:c}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},o=(e,t)=>s.post(e,t,{headers:c}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/304.f9e3c1ab25dda485.js b/pilot/server/static/_next/static/chunks/304.f9e3c1ab25dda485.js new file mode 100644 index 000000000..0cd7e35d9 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/304.f9e3c1ab25dda485.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[304],{39156:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var a=l(85893),n=l(41118),s=l(30208),r=l(40911),c=l(58234);function i(e){let{chart:t}=e;return(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(s.Z,{className:"h-full",children:[(0,a.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,a.jsx)(r.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,a.jsx)("div",{className:"h-[300px]",children:(0,a.jsx)(c.k,{style:{height:"100%"},options:{autoFit:!0,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})})}function o(e){let{chart:t}=e;return(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,a.jsxs)(s.Z,{className:"h-full",children:[(0,a.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,a.jsx)(r.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,a.jsx)("div",{className:"h-[300px]",children:(0,a.jsx)(c.k,{style:{height:"100%"},options:{autoFit:!0,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})})}var d=l(61685),u=l(96486);function h(e){var t,l;let{chart:c}=e,i=(0,u.groupBy)(c.values,"type");return(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(n.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,a.jsxs)(s.Z,{className:"h-full",children:[(0,a.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:c.chart_name}),(0,a.jsx)(r.ZP,{gutterBottom:!0,level:"body3",children:c.chart_desc}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsxs)(d.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:Object.keys(i).map(e=>(0,a.jsx)("th",{children:e},e))})}),(0,a.jsx)("tbody",{children:null===(t=Object.values(i))||void 0===t?void 0:null===(l=t[0])||void 0===l?void 0:l.map((e,t)=>{var l;return(0,a.jsx)("tr",{children:null===(l=Object.keys(i))||void 0===l?void 0:l.map(e=>{var l;return(0,a.jsx)("td",{children:(null==i?void 0:null===(l=i[e])||void 0===l?void 0:l[t].value)||""},e)})},t)})})]})})]})})})}var x=l(67294),m=function(e){let{chartsData:t}=e,l=(0,x.useMemo)(()=>{if(t){let e=[],l=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let a=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),n=a.length,s=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][n].forEach(t=>{if(t>0){let l=a.slice(s,s+t);s+=t,e.push({charts:l})}}),e}},[t]);return(0,a.jsx)("div",{className:"flex flex-col gap-3",children:null==l?void 0:l.map((e,t)=>(0,a.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,a.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(n.Z,{sx:{background:"transparent"},children:(0,a.jsxs)(s.Z,{className:"justify-around",children:[(0,a.jsx)(r.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,a.jsx)(r.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,a.jsx)(o,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,a.jsx)(i,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,a.jsx)(h,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},70803:function(e,t,l){"use strict";l.d(t,{Z:function(){return B}});var a=l(85893),n=l(67294),s=l(2453),r=l(83062),c=l(31365),i=l(71577),o=l(49591),d=l(88484),u=l(29158),h=l(50489),x=l(41468),m=function(e){var t;let{convUid:l,chatMode:m,onComplete:p,...v}=e,[f,j]=(0,n.useState)(!1),[g,y]=s.ZP.useMessage(),[b,Z]=(0,n.useState)([]),[w,N]=(0,n.useState)(),{model:_}=(0,n.useContext)(x.p),P=async e=>{var t;if(!e){s.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){s.ZP.error("File type must be csv, xlsx or xls");return}Z([e.file])},C=async()=>{j(!0);try{let e=new FormData;e.append("doc_file",b[0]),g.open({content:"Uploading ".concat(b[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:l,chatMode:m,data:e,model:_,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);N(t)}}}));if(t)return;s.ZP.success("success"),null==p||p()}catch(e){s.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{j(!1),g.destroy()}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex items-start gap-2",children:[y,(0,a.jsx)(r.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,a.jsx)(c.default,{disabled:f,className:"mr-1",beforeUpload:()=>!1,fileList:b,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:P,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,a.jsx)(a.Fragment,{}),...v,children:(0,a.jsx)(i.ZP,{className:"flex justify-center items-center",type:"primary",disabled:f,icon:(0,a.jsx)(o.Z,{}),children:"Select File"})})}),(0,a.jsx)(i.ZP,{type:"primary",loading:f,className:"flex justify-center items-center",disabled:!b.length,icon:(0,a.jsx)(d.Z,{}),onClick:C,children:f?100===w?"Analysis":"Uploading":"Upload"}),!!b.length&&(0,a.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,a.jsx)(u.Z,{className:"mr-2"}),(0,a.jsx)("span",{children:null===(t=b[0])||void 0===t?void 0:t.name})]})]})})},p=function(e){let{onComplete:t}=e,{currentDialogue:l,scene:s,chatId:r}=(0,n.useContext)(x.p);return"chat_excel"!==s?null:(0,a.jsx)("div",{className:"max-w-md h-full relative",children:l?(0,a.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,a.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,a.jsx)(u.Z,{className:"text-white"})}),(0,a.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:l.select_param})]}):(0,a.jsx)(m,{convUid:r,chatMode:s,onComplete:t})})};l(23293);var v=l(78045),f=l(16165),j=l(96991),g=function(){return(0,a.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,a.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})};function y(){let{isContract:e,setIsContract:t,scene:l}=(0,n.useContext)(x.p),s=l&&["chat_with_db_execute","chat_dashboard"].includes(l);return s?(0,a.jsxs)(v.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,a.jsxs)(v.ZP.Button,{value:!1,children:[(0,a.jsx)(f.Z,{component:g,className:"mr-1"}),"Preview"]}),(0,a.jsxs)(v.ZP.Button,{value:!0,children:[(0,a.jsx)(j.Z,{className:"mr-1"}),"Editor"]})]}):null}var b=l(81799),Z=function(){return(0,a.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4870",children:(0,a.jsx)("path",{d:"M511.875 128.125c-211.875 0-383.75 76.25-383.75 170.625 0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625C896.25 204.375 724.375 128.125 511.875 128.125M128.125 383.75l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 555 128.125 478.125 128.125 383.75M128.125 597.5l0 128.125c0 94.375 171.875 170.625 383.75 170.625 211.875 0 383.75-76.25 383.75-170.625l0-128.125c0 94.375-171.875 170.625-383.75 170.625C300 768.125 128.125 691.875 128.125 597.5z","p-id":"4871"})})},w=l(2093),N=l(51009),_=function(){let{scene:e,dbParam:t,setDbParam:l}=(0,n.useContext)(x.p),[s,r]=(0,n.useState)({});(0,w.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));r(null!=t?t:{})},[e]);let c=(0,n.useMemo)(()=>Object.entries(s).map(e=>{let[t,l]=e;return{label:t,value:l}}),[s]);return((0,n.useEffect)(()=>{c.length&&!t&&l(c[0].value)},[c,l,t]),c.length)?(0,a.jsx)(N.default,{value:t,className:"w-36",onChange:e=>{l(e)},children:c.map(e=>(0,a.jsxs)(N.default.Option,{children:[(0,a.jsx)(f.Z,{component:Z,className:"mr-1"}),e.label]},e.value))}):null},P=l(577),C=l(67421),k=function(){let{t:e}=(0,C.$G)(),{agentList:t,setAgentList:l}=(0,n.useContext)(x.p),{data:s=[]}=(0,P.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.N6)());return e&&e.length&&(null==l||l([e[0].name])),null!=e?e:[]});return s.length?(0,a.jsx)(N.default,{className:"w-60",value:t,mode:"multiple",maxTagCount:1,maxTagTextLength:12,placeholder:e("Select_Plugins"),options:s.map(e=>({label:e.name,value:e.name})),allowClear:!0,onChange:e=>{null==l||l(e)}}):null},B=function(e){let{refreshHistory:t,modelChange:l}=e,{scene:s,refreshDialogList:r}=(0,n.useContext)(x.p);return(0,a.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,a.jsx)(b.Z,{onChange:l}),(0,a.jsx)(_,{}),"chat_excel"===s&&(0,a.jsx)(p,{onComplete:()=>{null==r||r(),null==t||t()}}),"chat_agent"===s&&(0,a.jsx)(k,{}),(0,a.jsx)(y,{})]})}},81799:function(e,t,l){"use strict";l.d(t,{A:function(){return u}});var a=l(85893),n=l(41468),s=l(51009),r=l(19284),c=l(25675),i=l.n(c),o=l(67294),d=l(67421);function u(e,t){var l;let{width:n,height:s}=t||{};return e?(0,a.jsx)(i(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:n||24,height:s||24,src:(null===(l=r.H[e])||void 0===l?void 0:l.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:l}=(0,d.$G)(),{modelList:c,model:i}=(0,o.useContext)(n.p);return!c||c.length<=0?null:(0,a.jsx)(s.default,{value:i,placeholder:l("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:c.map(e=>{var t;return(0,a.jsx)(s.default.Option,{children:(0,a.jsxs)("div",{className:"flex items-center",children:[u(e),(0,a.jsx)("span",{className:"ml-2",children:(null===(t=r.H[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},99513:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=l(85893),n=l(77119),s=l(63764),r=l(94184),c=l.n(r),i=l(67294),o=l(36782);function d(e){let{className:t,value:l,language:n="mysql",onChange:r,thoughts:d}=e,u=(0,i.useMemo)(()=>"mysql"!==n?l:d&&d.length>0?(0,o.WU)("-- ".concat(d," \n").concat(l)):(0,o.WU)(l),[l,d]);return(0,a.jsx)(s.ZP,{className:c()(t),value:u,language:n,onChange:r,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}s._m.config({monaco:n})},30119:function(e,t,l){"use strict";l.d(t,{Tk:function(){return i},PR:function(){return o}});var a=l(2453),n=l(6154),s=l(83454);let r=n.Z.create({baseURL:s.env.API_BASE_URL});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),l(96486);let c={"content-type":"application/json"},i=(e,t)=>{if(t){let l=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");l&&(e+="?".concat(l))}return r.get("/api"+e,{headers:c}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},o=(e,t)=>r.post(e,t,{headers:c}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/355a6ca7.6a7668307202b4ab.js b/pilot/server/static/_next/static/chunks/355a6ca7.6a7668307202b4ab.js new file mode 100644 index 000000000..52e2a27e6 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/355a6ca7.6a7668307202b4ab.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[34],{4559:function(t,e,n){n.d(e,{$6:function(){return j},$p:function(){return nK},Aw:function(){return rE},Cd:function(){return rQ},Cm:function(){return I},Dk:function(){return H},E9:function(){return tW},Ee:function(){return r5},F6:function(){return tC},G$:function(){return na},G0:function(){return nL},GL:function(){return U},GZ:function(){return rG},I8:function(){return tw},L1:function(){return nQ},N1:function(){return nx},NB:function(){return rb},O4:function(){return tL},Oi:function(){return nz},Pj:function(){return r1},R:function(){return eR},RV:function(){return rX},Rr:function(){return X},Rx:function(){return ex},UL:function(){return r7},V1:function(){return t$},Vl:function(){return tI},Xz:function(){return iv},YR:function(){return e9},ZA:function(){return r2},_O:function(){return tO},aH:function(){return r6},b_:function(){return r0},bn:function(){return M},gz:function(){return eK},h0:function(){return Y},iM:function(){return A},jU:function(){return nj},jd:function(){return rw},jf:function(){return tK},k9:function(){return r3},lu:function(){return eO},mN:function(){return tX},mg:function(){return r8},o6:function(){return eb},qA:function(){return eA},s$:function(){return rJ},ux:function(){return r$},x1:function(){return r4},xA:function(){return rv},xv:function(){return it},y$:function(){return r9}});var r,i,o,a,s,l,c,u,h,p,f,d,v,y,g,m,E,x,b,T,P,S,N,C,w,M,k,R,A,O,L,I,D,G,_,F,B,U,Z,V,Y,X,H,j,W=n(97582),z=n(54146),K=n(77160),q=n(85975),J=n(35600),$=n(98333),Q=n(32945),tt=n(31437),te=n(68797),tn=n(6393),tr=n(37377),ti=n(4663),to=n(53984),ta=n(72888),ts=n(58133),tl=n(26380),tc=n(76703),tu=n(25995),th=n(28024),tp=n(75066),tf=n(10353),td=n(49958),tv=n(49908),ty=n(8699),tg=n(88154),tm=n(63725),tE=n(72614),tx=n(36522),tb=n(80431),tT=n(33439),tP=n(73743),tS=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self,{exports:{}});tS.exports=function(){function t(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function e(t,e){return te?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e){i(t,0,t.children.length,e,t)}function i(t,e,n,r,i){i||(i=p(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=e;a=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function f(n,r,i,o,a){for(var s=[r,i];s.length;)if(i=s.pop(),r=s.pop(),!(i-r<=o)){var l=r+Math.ceil((i-r)/o/2)*o;(function e(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),p=Math.max(i,Math.floor(r-l*u/s+h)),f=Math.min(o,Math.floor(r+(s-l)*u/s+h));e(n,r,p,f,a)}var d=n[r],v=i,y=o;for(t(n,i,r),a(n[o],d)>0&&t(n,i,o);va(n[v],d);)v++;for(;a(n[y],d)>0;)y--}0===a(n[i],d)?t(n,i,y):t(n,++y,o),y<=r&&(i=y+1),r<=y&&(o=y-1)}})(n,l,r||0,i||n.length-1,a||e),s.push(r,l,l,i)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,n=[];if(!h(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o=0;)if(i[e].children.length>this._maxEntries)this._split(i,e),e--;else break;this._adjustParentBBoxes(r,i,e)},n.prototype._split=function(t,e){var n=t[e],i=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,i);var a=this._chooseSplitIndex(n,o,i),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,r(n,this.toBBox),r(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},n.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,n){for(var r,o=1/0,a=1/0,s=e;s<=n-e;s++){var c=i(t,0,s,this.toBBox),u=i(t,s,n,this.toBBox),h=function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return Math.max(0,Math.min(t.maxX,e.maxX)-n)*Math.max(0,Math.min(t.maxY,e.maxY)-r)}(c,u),p=l(c)+l(u);h=e;f--){var d=t.children[f];o(l,t.leaf?a(d):d),u+=c(l)}return u},n.prototype._adjustParentBBoxes=function(t,e,n){for(var r=n;r>=0;r--)o(e[r],t)},n.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():r(t[e],this.toBBox)},n}();var tN=tS.exports;(r=M||(M={})).GROUP="g",r.CIRCLE="circle",r.ELLIPSE="ellipse",r.IMAGE="image",r.RECT="rect",r.LINE="line",r.POLYLINE="polyline",r.POLYGON="polygon",r.TEXT="text",r.PATH="path",r.HTML="html",r.MESH="mesh",(i=k||(k={}))[i.ZERO=0]="ZERO",i[i.NEGATIVE_ONE=1]="NEGATIVE_ONE";var tC=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(t){this.plugins.push(t),this.context.renderingPlugins.push(t)},t.prototype.removeAllRenderingPlugins=function(){var t=this;this.plugins.forEach(function(e){var n=t.context.renderingPlugins.indexOf(e);n>=0&&t.context.renderingPlugins.splice(n,1)})},t}(),tw=function(){function t(t){this.clipSpaceNearZ=k.NEGATIVE_ONE,this.plugins=[],this.config=(0,W.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},t)}return t.prototype.registerPlugin=function(t){-1===this.plugins.findIndex(function(e){return e===t})&&this.plugins.push(t)},t.prototype.unregisterPlugin=function(t){var e=this.plugins.findIndex(function(e){return e===t});e>-1&&this.plugins.splice(e,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(t){Object.assign(this.config,t)},t}();function tM(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function tk(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function tR(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function tA(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function tO(t){return void 0===t?0:t>360||t<-360?t%360:t}function tL(t,e,n){return(void 0===e&&(e=0),void 0===n&&(n=0),Array.isArray(t)&&3===t.length)?K.d9(t):(0,te.Z)(t)?K.al(t,e,n):K.al(t[0],t[1]||e,t[2]||n)}function tI(t){return t*(Math.PI/180)}function tD(t){return t*(180/Math.PI)}function tG(t,e){var n,r,i,o,a,s,l,c,u,h,p,f,d,v,y,g,m;return 16===e.length?(i=.5*Math.PI,a=(o=(0,W.CR)(q.getScaling(K.Ue(),e),3))[0],s=o[1],l=o[2],(c=Math.asin(-e[2]/a))-i?(n=Math.atan2(e[6]/s,e[10]/l),r=Math.atan2(e[1]/a,e[0]/a)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=c,t[2]=r,t):(u=e[0],h=e[1],p=e[2],f=e[3],g=u*u+(d=h*h)+(v=p*p)+(y=f*f),(m=u*f-h*p)>.499995*g?(t[0]=Math.PI/2,t[1]=2*Math.atan2(h,u),t[2]=0):m<-.499995*g?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(h,u),t[2]=0):(t[0]=Math.asin(2*(u*p-f*h)),t[1]=Math.atan2(2*(u*f+h*p),1-2*(v+y)),t[2]=Math.atan2(2*(u*h+p*f),1-2*(d+v))),t)}function t_(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(eh&&(h=N),Cf&&(f=w),Mv&&(v=k),n[0]=(u+h)*.5,n[1]=(p+f)*.5,n[2]=(d+v)*.5,a[0]=(h-u)*.5,a[1]=(f-p)*.5,a[2]=(v-d)*.5,this.min[0]=u,this.min[1]=p,this.min[2]=d,this.max[0]=h,this.max[1]=f,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,o=t.halfExtents,a=e[0],s=e[4],l=e[8],c=e[1],u=e[5],h=e[9],p=e[2],f=e[6],d=e[10],v=Math.abs(a),y=Math.abs(s),g=Math.abs(l),m=Math.abs(c),E=Math.abs(u),x=Math.abs(h),b=Math.abs(p),T=Math.abs(f),P=Math.abs(d);n[0]=e[12]+a*i[0]+s*i[1]+l*i[2],n[1]=e[13]+c*i[0]+u*i[1]+h*i[2],n[2]=e[14]+p*i[0]+f*i[1]+d*i[2],r[0]=v*o[0]+y*o[1]+g*o[2],r[1]=m*o[0]+E*o[1]+x*o[2],r[2]=b*o[0]+T*o[1]+P*o[2],tk(this.min,n,r),tR(this.max,n,r)},t.prototype.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n,r,i,o,a,s,l=new t,c=(n=[0,0,0],r=this.getMin(),i=e.getMin(),n[0]=Math.max(r[0],i[0]),n[1]=Math.max(r[1],i[1]),n[2]=Math.max(r[2],i[2]),n),u=(o=[0,0,0],a=this.getMax(),s=e.getMax(),o[0]=Math.min(a[0],s[0]),o[1]=Math.min(a[1],s[1]),o[2]=Math.min(a[2],s[2]),o);return l.setMinMax(c,u),l},t.prototype.getNegativeFarPoint=function(t){if(273===t.pnVertexFlag)return tM([0,0,0],this.min);if(272===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];if(257===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(256===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(17===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(16===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(1===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];else return[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(t){if(273===t.pnVertexFlag)return tM([0,0,0],this.max);if(272===t.pnVertexFlag)return[this.max[0],this.max[1],this.min[2]];if(257===t.pnVertexFlag)return[this.max[0],this.min[1],this.max[2]];if(256===t.pnVertexFlag)return[this.max[0],this.min[1],this.min[2]];if(17===t.pnVertexFlag)return[this.min[0],this.max[1],this.max[2]];if(16===t.pnVertexFlag)return[this.min[0],this.max[1],this.min[2]];if(1===t.pnVertexFlag)return[this.min[0],this.min[1],this.max[2]];else return[this.min[0],this.min[1],this.min[2]]},t}(),tH=function(){function t(t,e){this.distance=t||0,this.normal=e||K.al(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)},t.prototype.distanceToPoint=function(t){return K.AK(t,this.normal)-this.distance},t.prototype.normalize=function(){var t=1/K.Zh(this.normal);K.bA(this.normal,this.normal,t),this.distance*=t},t.prototype.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),o=i>=0&&i<=1;return o&&n&&K.t7(n,t,e,i),o},t}();(o=R||(R={}))[o.OUTSIDE=4294967295]="OUTSIDE",o[o.INSIDE=0]="INSIDE",o[o.INDETERMINATE=2147483647]="INDETERMINATE";var tj=function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new tH)}return t.prototype.extractFromVPMatrix=function(t){var e=(0,W.CR)(t,16),n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],p=e[10],f=e[11],d=e[12],v=e[13],y=e[14],g=e[15];K.t8(this.planes[0].normal,o-n,c-a,f-u),this.planes[0].distance=g-d,K.t8(this.planes[1].normal,o+n,c+a,f+u),this.planes[1].distance=g+d,K.t8(this.planes[2].normal,o+r,c+s,f+h),this.planes[2].distance=g+v,K.t8(this.planes[3].normal,o-r,c-s,f-h),this.planes[3].distance=g-v,K.t8(this.planes[4].normal,o-i,c-l,f-p),this.planes[4].distance=g-y,K.t8(this.planes[5].normal,o+i,c+l,f+p),this.planes[5].distance=g+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}(),tW=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){this.x=t.x,this.y=t.y},t}(),tz=function(){function t(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}(),tK="Method not implemented.",tq="Use document.documentElement instead.";(a=A||(A={}))[a.ORBITING=0]="ORBITING",a[a.EXPLORING=1]="EXPLORING",a[a.TRACKING=2]="TRACKING",(s=O||(O={}))[s.DEFAULT=0]="DEFAULT",s[s.ROTATIONAL=1]="ROTATIONAL",s[s.TRANSLATIONAL=2]="TRANSLATIONAL",s[s.CINEMATIC=3]="CINEMATIC",(l=L||(L={}))[l.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",l[l.PERSPECTIVE=1]="PERSPECTIVE";var tJ={UPDATED:"updated"},t$=function(){function t(){this.clipSpaceNearZ=k.NEGATIVE_ONE,this.eventEmitter=new z.Z,this.matrix=q.create(),this.right=K.al(1,0,0),this.up=K.al(0,1,0),this.forward=K.al(0,0,1),this.position=K.al(0,0,1),this.focalPoint=K.al(0,0,0),this.distanceVector=K.al(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=q.create(),this.projectionMatrixInverse=q.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=A.EXPLORING,this.trackingMode=O.DEFAULT,this.projectionMode=L.PERSPECTIVE,this.frustum=new tj,this.orthoMatrix=q.create()}return t.prototype.isOrtho=function(){return this.projectionMode===L.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(t){this.enableUpdate=t},t.prototype.setType=function(t,e){return this.type=t,this.type===A.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===A.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.prototype.setProjectionMode=function(t){return this.projectionMode=t,this},t.prototype.setTrackingMode=function(t){if(this.type!==A.TRACKING)throw Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.prototype.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.prototype.getViewTransform=function(){return q.invert(q.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(t,e){var n=q.fromTranslation(q.create(),[t,e,0]);this.jitteredProjectionMatrix=q.multiply(q.create(),n,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(t){return this.matrix=t,this._update(),this},t.prototype.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.prototype.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.prototype.setNear=function(t){return this.projectionMode===L.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.prototype.setFar=function(t){return this.projectionMode===L.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.prototype.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===L.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===L.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(t){return this.zoom=t,this.projectionMode===L.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===L.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(t,e){var n=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),r=n.x,i=n.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(t),this.rotate(0,0,o);var a=this.canvas.viewport2Canvas({x:e[0],y:e[1]}),s=a.x,l=a.y,c=K.al(s-r,l-i,0),u=K.AK(c,this.right)/K.kE(this.right),h=K.AK(c,this.up)/K.kE(this.up);return this.pan(-u,-h),this},t.prototype.setPerspective=function(t,e,n,r){this.projectionMode=L.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,l,c,u,h,p,f=this.near*Math.tan(tI(.5*this.fov))/this.zoom,d=2*f,v=this.aspect*d,y=-.5*v;if(null===(p=this.view)||void 0===p?void 0:p.enabled){var g=this.view.fullWidth,m=this.view.fullHeight;y+=this.view.offsetX*v/g,f-=this.view.offsetY*d/m,v*=this.view.width/g,d*=this.view.height/m}return i=this.projectionMatrix,o=y,a=y+v,s=f,l=f-d,c=this.far,this.clipSpaceNearZ===k.ZERO?(u=-c/(c-t),h=-c*t/(c-t)):(u=-(c+t)/(c-t),h=-2*c*t/(c-t)),i[0]=2*t/(a-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=2*t/(s-l),i[6]=0,i[7]=0,i[8]=(a+o)/(a-o),i[9]=(s+l)/(s-l),i[10]=u,i[11]=-1,i[12]=0,i[13]=0,i[14]=h,i[15]=0,q.scale(this.projectionMatrix,this.projectionMatrix,K.al(1,-1,1)),q.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=L.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),c=(this.rright+this.left)/2,u=(this.top+this.bottom)/2,h=c-s,p=c+s,f=u+l,d=u-l;if(null===(a=this.view)||void 0===a?void 0:a.enabled){var v=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=v*this.view.offsetX,p=h+v*this.view.width,f-=y*this.view.offsetY,d=f-y*this.view.height}return this.clipSpaceNearZ===k.NEGATIVE_ONE?q.ortho(this.projectionMatrix,h,p,d,f,i,o):q.orthoZO(this.projectionMatrix,h,p,d,f,i,o),q.scale(this.projectionMatrix,this.projectionMatrix,K.al(1,-1,1)),q.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(t,e,n){void 0===e&&(e=this.position[1]),void 0===n&&(n=this.position[2]);var r=tL(t,e,n);return this._setPosition(r),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r=K.al(0,1,0);if(this.focalPoint=tL(t,e,n),this.trackingMode===O.CINEMATIC){var i=K.$X(K.Ue(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var o=tD(Math.asin(e/K.kE(i))),a=90+tD(Math.atan2(n,t)),s=q.create();q.rotateY(s,s,tI(a)),q.rotateX(s,s,tI(o)),r=K.fF(K.Ue(),[0,1,0],s)}return q.invert(this.matrix,q.lookAt(q.create(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(t){if(this.distance===t||t<0)return this;this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100;var e=K.Ue();t=this.distance;var n=this.forward,r=this.focalPoint;return e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate(),this},t.prototype.setMaxDistance=function(t){return this.maxDistance=t,this},t.prototype.setMinDistance=function(t){return this.minDistance=t,this},t.prototype.setAzimuth=function(t){return this.azimuth=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getAzimuth=function(){return this.azimuth},t.prototype.setElevation=function(t){return this.elevation=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getElevation=function(){return this.elevation},t.prototype.setRoll=function(t){return this.roll=tO(t),this.computeMatrix(),this._getAxes(),this.type===A.ORBITING||this.type===A.EXPLORING?this._getPosition():this.type===A.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getRoll=function(){return this.roll},t.prototype._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.prototype.computeMatrix=function(){var t=Q.yY(Q.Ue(),[0,0,1],tI(this.roll));q.identity(this.matrix);var e=Q.yY(Q.Ue(),[1,0,0],tI((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.elevation)),n=Q.yY(Q.Ue(),[0,1,0],tI((this.rotateWorld&&this.type!==A.TRACKING||this.type===A.TRACKING?1:-1)*this.azimuth)),r=Q.Jp(Q.Ue(),n,e);r=Q.Jp(Q.Ue(),r,t);var i=q.fromQuat(q.create(),r);this.type===A.ORBITING||this.type===A.EXPLORING?(q.translate(this.matrix,this.matrix,this.focalPoint),q.multiply(this.matrix,this.matrix,i),q.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===A.TRACKING&&(q.translate(this.matrix,this.matrix,this.position),q.multiply(this.matrix,this.matrix,i))},t.prototype._setPosition=function(t,e,n){this.position=tL(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()},t.prototype._getAxes=function(){K.JG(this.right,tL($.fF($.Ue(),[1,0,0,0],this.matrix))),K.JG(this.up,tL($.fF($.Ue(),[0,1,0,0],this.matrix))),K.JG(this.forward,tL($.fF($.Ue(),[0,0,1,0],this.matrix))),K.Fv(this.right,this.right),K.Fv(this.up,this.up),K.Fv(this.forward,this.forward)},t.prototype._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=K.kE(this.distanceVector);if(0===r){this.elevation=0,this.azimuth=0;return}this.type===A.TRACKING?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):this.rotateWorld?(this.elevation=tD(Math.asin(e/r)),this.azimuth=tD(Math.atan2(-t,-n))):(this.elevation=-tD(Math.asin(e/r)),this.azimuth=-tD(Math.atan2(-t,-n)))},t.prototype._getPosition=function(){K.JG(this.position,tL($.fF($.Ue(),[0,0,0,1],this.matrix))),this._getDistance()},t.prototype._getFocalPoint=function(){K.kK(this.distanceVector,[0,0,-this.distance],J.xO(J.Ue(),this.matrix)),K.IH(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t.prototype._getDistance=function(){this.distanceVector=K.$X(K.Ue(),this.focalPoint,this.position),this.distance=K.kE(this.distanceVector),this.dollyingStep=this.distance/100},t.prototype._getOrthoMatrix=function(){if(this.projectionMode===L.ORTHOGRAPHIC){var t=this.position,e=Q.yY(Q.Ue(),[0,0,1],-this.roll*Math.PI/180);q.fromRotationTranslationScaleOrigin(this.orthoMatrix,e,K.al((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),K.al(this.zoom,this.zoom,1),t)}},t.prototype.triggerUpdate=function(){if(this.enableUpdate){var t=this.getViewTransform(),e=q.multiply(q.create(),this.getPerspective(),t);this.getFrustum().extractFromVPMatrix(e),this.eventEmitter.emit(tJ.UPDATED)}},t.prototype.rotate=function(t,e,n){throw Error(tK)},t.prototype.pan=function(t,e){throw Error(tK)},t.prototype.dolly=function(t){throw Error(tK)},t.prototype.createLandmark=function(t,e){throw Error(tK)},t.prototype.gotoLandmark=function(t,e){throw Error(tK)},t.prototype.cancelLandmarkAnimation=function(){throw Error(tK)},t}();function tQ(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){for(var r=[],i=0;i=I.kEms&&t=B.kUnitType&&this.getType()<=B.kClampType},t}(),t9=function(t){function e(e){var n=t.call(this)||this;return n.colorSpace=e,n}return(0,W.ZT)(e,t),e.prototype.getType=function(){return B.kColorType},e.prototype.to=function(t){return this},e}(t4);(v=U||(U={}))[v.Constant=0]="Constant",v[v.LinearGradient=1]="LinearGradient",v[v.RadialGradient=2]="RadialGradient";var t8=function(t){function e(e,n){var r=t.call(this)||this;return r.type=e,r.value=n,r}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(t,e,n){return n},e.prototype.getType=function(){return B.kColorType},e}(t4),t6=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return B.kKeywordType},e.prototype.buildCSSText=function(t,e,n){return n+this.value},e}(t4),t7=tQ(function(t){return void 0===t&&(t=""),t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}),et=function(t){return t.split("").map(function(t,e){return t.toUpperCase()===t?"".concat(0!==e?"-":"").concat(t.toLowerCase()):t}).join("")};function ee(t){return"function"==typeof t}var en={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},er=tQ(function(t){var e=t7(t),n=en[e];return(null==n?void 0:n.alias)||e}),ei=function(t,e){void 0===e&&(e="");var n="";return Number.isFinite(t)?(function(t){if(!t)throw Error()}(Number.isNaN(t)),n="NaN"):n=t>0?"infinity":"-infinity",n+e},eo=function(t){return t2(t1(t))},ea=function(t){function e(e,n){void 0===n&&(n=I.kNumber);var r,i,o=t.call(this)||this;return i="string"==typeof n?(r=n)?"number"===r?I.kNumber:"percent"===r||"%"===r?I.kPercentage:t0.find(function(t){return t.name===r}).unit_type:I.kUnknown:n,o.unit=i,o.value=e,o}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(t){return this.value===t.value&&this.unit===t.unit},e.prototype.getType=function(){return B.kUnitType},e.prototype.convertTo=function(t){if(this.unit===t)return new e(this.value,this.unit);var n=eo(this.unit);if(n!==eo(t)||n===I.kUnknown)return null;var r=t3(this.unit)/t3(t);return new e(this.value*r,t)},e.prototype.buildCSSText=function(t,e,n){var r;switch(this.unit){case I.kUnknown:break;case I.kInteger:r=Number(this.value).toFixed(0);break;case I.kNumber:case I.kPercentage:case I.kEms:case I.kRems:case I.kPixels:case I.kDegrees:case I.kRadians:case I.kGradians:case I.kMilliseconds:case I.kSeconds:case I.kTurns:var i=this.value,o=t5(this.unit);if(i<-999999||i>999999){var a=t5(this.unit);r=!Number.isFinite(i)||Number.isNaN(i)?ei(i,a):i+(a||"")}else r="".concat(i).concat(o)}return n+r},e}(t4),es=new ea(0,"px");new ea(1,"px");var el=new ea(0,"deg"),ec=function(t){function e(e,n,r,i,o){void 0===i&&(i=1),void 0===o&&(o=!1);var a=t.call(this,"rgb")||this;return a.r=e,a.g=n,a.b=r,a.alpha=i,a.isNone=o,a}return(0,W.ZT)(e,t),e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(t,e,n){return n+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(t9),eu=new t6("unset"),eh={"":eu,unset:eu,initial:new t6("initial"),inherit:new t6("inherit")},ep=function(t){return eh[t]||(eh[t]=new t6(t)),eh[t]},ef=new ec(0,0,0,0,!0),ed=new ec(0,0,0,0),ev=tQ(function(t,e,n,r){return new ec(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ey=function(t,e){return void 0===e&&(e=I.kNumber),new ea(t,e)},eg=new ea(50,"%");(y=Z||(Z={}))[y.Standard=0]="Standard",(g=V||(V={}))[g.ADDED=0]="ADDED",g[g.REMOVED=1]="REMOVED",g[g.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED";var em={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tz(0,0,0,0)};(m=Y||(Y={})).COORDINATE="",m.COLOR="",m.PAINT="",m.NUMBER="",m.ANGLE="",m.OPACITY_VALUE="",m.SHADOW_BLUR="",m.LENGTH="",m.PERCENTAGE="",m.LENGTH_PERCENTAGE=" | ",m.LENGTH_PERCENTAGE_12="[ | ]{1,2}",m.LENGTH_PERCENTAGE_14="[ | ]{1,4}",m.LIST_OF_POINTS="",m.PATH="",m.FILTER="",m.Z_INDEX="",m.OFFSET_DISTANCE="",m.DEFINED_PATH="",m.MARKER="",m.TRANSFORM="",m.TRANSFORM_ORIGIN="",m.TEXT="",m.TEXT_TRANSFORM="";var eE=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(t){throw Error(e+": "+t)}function r(){return i("linear-gradient",t.linearGradient,a)||i("repeating-linear-gradient",t.repeatingLinearGradient,a)||i("radial-gradient",t.radialGradient,s)||i("repeating-radial-gradient",t.repeatingRadialGradient,s)||i("conic-gradient",t.conicGradient,s)}function i(e,r,i){return o(r,function(r){var o=i();return o&&!m(t.comma)&&n("Missing comma before color stops"),{type:e,orientation:o,colorStops:p(f)}})}function o(e,r){var i=m(e);if(i){m(t.startCall)||n("Missing (");var o=r(i);return m(t.endCall)||n("Missing )"),o}}function a(){return g("directional",t.sideOrCorner,1)||g("angular",t.angleValue,1)}function s(){var n,r,i=l();return i&&((n=[]).push(i),r=e,m(t.comma)&&((i=l())?n.push(i):e=r)),n}function l(){var t,e,n=((t=g("shape",/^(circle)/i,0))&&(t.style=y()||c()),t||((e=g("shape",/^(ellipse)/i,0))&&(e.style=v()||c()),e));if(n)n.at=u();else{var r=c();if(r){n=r;var i=u();i&&(n.at=i)}else{var o=h();o&&(n={type:"default-radial",at:o})}}return n}function c(){return g("extent-keyword",t.extentKeywords,1)}function u(){if(g("position",/^at/,0)){var t=h();return t||n("Missing positioning value"),t}}function h(){var t={x:v(),y:v()};if(t.x||t.y)return{type:"position",value:t}}function p(e){var r=e(),i=[];if(r)for(i.push(r);m(t.comma);)(r=e())?i.push(r):n("One extra comma");return i}function f(){var e=g("hex",t.hexColor,1)||o(t.rgbaColor,function(){return{type:"rgba",value:p(d)}})||o(t.rgbColor,function(){return{type:"rgb",value:p(d)}})||g("literal",t.literalColor,0);return e||n("Expected color definition"),e.length=v(),e}function d(){return m(t.number)[1]}function v(){return g("%",t.percentageValue,1)||g("position-keyword",t.positionKeywords,1)||y()}function y(){return g("px",t.pixelValue,1)||g("em",t.emValue,1)}function g(t,e,n){var r=m(e);if(r)return{type:t,value:r[n]}}function m(t){var n=/^[\n\r\t\s]+/.exec(e);n&&E(n[0].length);var r=t.exec(e);return r&&E(r[0].length),r}function E(t){e=e.substring(t)}return function(t){var i;return e=t,i=p(r),e.length>0&&n("Invalid input not EOF"),i}}();function ex(t,e,n){var r=tI(n.value),i=0+t/2,o=0+e/2,a=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r));return{x1:i-Math.cos(r)*a/2,y1:o-Math.sin(r)*a/2,x2:i+Math.cos(r)*a/2,y2:o+Math.sin(r)*a/2}}function eb(t,e,n,r,i){var o=n.value,a=r.value;n.unit===I.kPercentage&&(o=n.value/100*t),r.unit===I.kPercentage&&(a=r.value/100*e);var s=Math.max((0,tn.y)([0,0],[o,a]),(0,tn.y)([0,e],[o,a]),(0,tn.y)([t,e],[o,a]),(0,tn.y)([t,0],[o,a]));return i&&(i instanceof ea?s=i.value:i instanceof t6&&("closest-side"===i.value?s=Math.min(o,t-o,a,e-a):"farthest-side"===i.value?s=Math.max(o,t-o,a,e-a):"closest-corner"===i.value&&(s=Math.min((0,tn.y)([0,0],[o,a]),(0,tn.y)([0,e],[o,a]),(0,tn.y)([t,e],[o,a]),(0,tn.y)([t,0],[o,a]))))),{x:o,y:a,r:s}}var eT=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,eP=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,eS=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,eN=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,eC={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},ew=tQ(function(t){return ey("angular"===t.type?Number(t.value):eC[t.value]||0,"deg")}),eM=tQ(function(t){var e=50,n=50,r="%",i="%";if((null==t?void 0:t.type)==="position"){var o=t.value,a=o.x,s=o.y;(null==a?void 0:a.type)==="position-keyword"&&("left"===a.value?e=0:"center"===a.value?e=50:"right"===a.value?e=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),(null==s?void 0:s.type)==="position-keyword"&&("left"===s.value?e=0:"center"===s.value?n=50:"right"===s.value?e=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),((null==a?void 0:a.type)==="px"||(null==a?void 0:a.type)==="%"||(null==a?void 0:a.type)==="em")&&(r=null==a?void 0:a.type,e=Number(a.value)),((null==s?void 0:s.type)==="px"||(null==s?void 0:s.type)==="%"||(null==s?void 0:s.type)==="em")&&(i=null==s?void 0:s.type,n=Number(s.value))}return{cx:ey(e,r),cy:ey(n,i)}}),ek=tQ(function(t){if(t.indexOf("linear")>-1||t.indexOf("radial")>-1){var e;return eE(t).map(function(t){var e=t.type,n=t.orientation,r=t.colorStops;!function(t){var e,n,r,i=t.length;t[i-1].length=null!==(e=t[i-1].length)&&void 0!==e?e:{type:"%",value:"100"},i>1&&(t[0].length=null!==(n=t[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var o=0,a=Number(t[0].length.value),s=1;s=0)return ey(Number(e),"px");if("deg".search(t)>=0)return ey(Number(e),"deg")}var n=[];e=e.replace(t,function(t){return n.push(t),"U"+t});var r="U("+t.source+")";return n.map(function(t){return ey(Number(e.replace(RegExp("U"+t,"g"),"").replace(RegExp(r,"g"),"*0")),t)})[0]}var eD=tQ(function(t){return eI(/px/g,t)});tQ(function(t){return eI(RegExp("%","g"),t)});var eG=function(t){return(0,te.Z)(t)||isFinite(Number(t))?ey(Number(t)||0,"px"):eI(RegExp("px|%|em|rem","g"),t)},e_=tQ(function(t){return eI(RegExp("deg|rad|grad|turn","g"),t)});function eF(t){var e=0;return t.unit===I.kDegrees?e=t.value:t.unit===I.kRadians?e=tD(Number(t.value)):t.unit===I.kTurns&&(e=360*Number(t.value)),e}function eB(t,e){var n;return(Array.isArray(t)?n=t.map(function(t){return Number(t)}):(0,ti.Z)(t)?n=t.split(" ").map(function(t){return Number(t)}):(0,te.Z)(t)&&(n=[t]),2===e)?1===n.length?[n[0],n[0]]:[n[0],n[1]]:1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function eU(t){return(0,ti.Z)(t)?t.split(" ").map(function(t){return eG(t)}):t.map(function(t){return eG(t.toString())})}function eZ(t,e,n){if(0===t.value)return 0;if(t.unit===I.kPixels)return Number(t.value);if(t.unit===I.kPercentage&&n){var r=n.nodeName===M.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var eV=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function eY(t){if(void 0===t&&(t=""),"none"===(t=t.toLowerCase().trim()))return[];for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;(e=n.exec(t))&&e.index===i;)if(i=e.index+e[0].length,eV.indexOf(e[1])>-1&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return eI(/deg|rad|grad|turn|px|%/g,t)||eO(t)})}),n.lastIndex===t.length)return r;return[]}function eX(t){return t.toString()}var eH=tQ(function(t){return"number"==typeof t?ey(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ey(Number(t)):ey(0)});function ej(t,e){return[t,e,eX]}function eW(t,e){return function(n,r){return[n,r,function(n){return eX((0,to.Z)(n,t,e))}]}}function ez(t,e){if(t.length===e.length)return[t,e,function(t){return t}]}function eK(t){return 0===t.parsedStyle.path.totalLength&&(t.parsedStyle.path.totalLength=(0,ta.D)(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function eq(t,e){return t[0]===e[0]&&t[1]===e[1]}function eJ(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.acos((o+a-(Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2)))/(2*Math.sqrt(o)*Math.sqrt(a)));if(!s||0===Math.sin(s)||(0,tc.Z)(s,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),c=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return{xExtra:Math.cos(s/2-(l=l>Math.PI/2?Math.PI-l:l))*(e/2*(1/Math.sin(s/2)))-e/2||0,yExtra:Math.cos((c=c>Math.PI/2?Math.PI-c:c)-s/2)*(e/2*(1/Math.sin(s/2)))-e/2||0}}function e$(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}tQ(function(t){return(0,ti.Z)(t)?t.split(" ").map(eH):t.map(eH)});var eQ=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2)));return(t.x*e.y-t.y*e.x<0?-1:1)*Math.acos(n/r)},e0=function(t,e,n,r,i,o,a,s){e=Math.abs(e),n=Math.abs(n);var l=tI(r=(0,tu.Z)(r,360));if(t.x===a.x&&t.y===a.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(0===e||0===n)return{x:0,y:0,ellipticalArcAngle:0};var c=(t.x-a.x)/2,u=(t.y-a.y)/2,h={x:Math.cos(l)*c+Math.sin(l)*u,y:-Math.sin(l)*c+Math.cos(l)*u},p=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(n,2);p>1&&(e=Math.sqrt(p)*e,n=Math.sqrt(p)*n);var f=(Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(n,2)*Math.pow(h.x,2))/(Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(n,2)*Math.pow(h.x,2)),d=(i!==o?1:-1)*Math.sqrt(f=f<0?0:f),v={x:d*(e*h.y/n),y:d*(-(n*h.x)/e)},y={x:Math.cos(l)*v.x-Math.sin(l)*v.y+(t.x+a.x)/2,y:Math.sin(l)*v.x+Math.cos(l)*v.y+(t.y+a.y)/2},g={x:(h.x-v.x)/e,y:(h.y-v.y)/n},m=eQ({x:1,y:0},g),E=eQ(g,{x:(-h.x-v.x)/e,y:(-h.y-v.y)/n});!o&&E>0?E-=2*Math.PI:o&&E<0&&(E+=2*Math.PI);var x=m+(E%=2*Math.PI)*s,b=e*Math.cos(x),T=n*Math.sin(x);return{x:Math.cos(l)*b-Math.sin(l)*T+y.x,y:Math.sin(l)*b+Math.cos(l)*T+y.y,ellipticalArcStartAngle:m,ellipticalArcEndAngle:m+E,ellipticalArcAngle:x,ellipticalArcCenter:y,resultantRx:e,resultantRy:n}};function e1(t,e,n){void 0===n&&(n=!0);var r=t.arcParams,i=r.rx,o=void 0===i?0:i,a=r.ry,s=void 0===a?0:a,l=r.xRotation,c=r.arcFlag,u=r.sweepFlag,h=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!c,!!u,{x:t.currentPoint[0],y:t.currentPoint[1]},e),p=e0({x:t.prePoint[0],y:t.prePoint[1]},o,s,l,!!c,!!u,{x:t.currentPoint[0],y:t.currentPoint[1]},n?e+.005:e-.005),f=p.x-h.x,d=p.y-h.y,v=Math.sqrt(f*f+d*d);return{x:-f/v,y:-d/v}}function e2(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function e3(t,e){return e2(t)*e2(e)?(t[0]*e[0]+t[1]*e[1])/(e2(t)*e2(e)):1}function e5(t,e){return(t[0]*e[1]0?1:-1,h=e>0?1:-1,p=u+h!==0?1:0;return[["M",u*a+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,p,t+n,h*s+r]:null,["L",t+n,e-h*l+r],l?["A",l,l,0,0,p,t+n-u*l,e+r]:null,["L",n+u*c,e+r],c?["A",c,c,0,0,p,n,e+r-h*c]:null,["L",n,h*a+r],a?["A",a,a,0,0,p,u*a+n,r]:null,["Z"]].filter(function(t){return t})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}(D,_,B,Z,V&&V.some(function(t){return 0!==t})&&V.map(function(t){return(0,to.Z)(t,0,Math.min(Math.abs(D)/2,Math.abs(_)/2))}));break;case M.PATH:var Y=t.parsedStyle.path.absolutePath;p=(0,W.ev)([],(0,W.CR)(Y),!1)}if(p.length)return o=p,a=e,c=void 0===(l=(s=t.parsedStyle).defX)?0:l,h=void 0===(u=s.defY)?0:u,o.reduce(function(t,e){var n="";if("M"===e[0]||"L"===e[0]){var r=K.al(e[1]-c,e[2]-h,0);a&&K.fF(r,r,a),n="".concat(e[0]).concat(r[0],",").concat(r[1])}else if("Z"===e[0])n=e[0];else if("C"===e[0]){var i=K.al(e[1]-c,e[2]-h,0),o=K.al(e[3]-c,e[4]-h,0),s=K.al(e[5]-c,e[6]-h,0);a&&(K.fF(i,i,a),K.fF(o,o,a),K.fF(s,s,a)),n="".concat(e[0]).concat(i[0],",").concat(i[1],",").concat(o[0],",").concat(o[1],",").concat(s[0],",").concat(s[1])}else if("A"===e[0]){var l=K.al(e[6]-c,e[7]-h,0);a&&K.fF(l,l,a),n="".concat(e[0]).concat(e[1],",").concat(e[2],",").concat(e[3],",").concat(e[4],",").concat(e[5],",").concat(l[0],",").concat(l[1])}else if("Q"===e[0]){var i=K.al(e[1]-c,e[2]-h,0),o=K.al(e[3]-c,e[4]-h,0);a&&(K.fF(i,i,a),K.fF(o,o,a)),n="".concat(e[0]).concat(e[1],",").concat(e[2],",").concat(e[3],",").concat(e[4],"}")}return t+n},"")}var e8=function(t){if(""===t||Array.isArray(t)&&0===t.length)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};try{e=(0,th.A)(t)}catch(n){e=(0,th.A)(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}!function(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}(e),i=r.polygons,o=r.polylines,a=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var d=n*n*(p*p)+r*r*(h*h),v=d?Math.sqrt((n*n*(r*r)-d)/d):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,g=n?-(v*r)*h/n:0,m=(s+c)/2+Math.cos(i)*y-Math.sin(i)*g,E=(l+u)/2+Math.sin(i)*y+Math.cos(i)*g,x=[(h-y)/n,(p-g)/r],b=[(-1*h-y)/n,(-1*p-g)/r],T=e5([1,0],x),P=e5(x,b);return -1>=e3(x,b)&&(P=Math.PI),e3(x,b)>=1&&(P=0),0===a&&P>0&&(P-=2*Math.PI),1===a&&P<0&&(P+=2*Math.PI),{cx:m,cy:E,rx:eq(t,[c,u])?0:n,ry:eq(t,[c,u])?0:r,startAngle:T,endAngle:T+P,xRotation:i,arcFlag:o,sweepFlag:a}}(n,l);u.arcParams=h}if("Z"===c)n=i,r=t[o+1];else{var p=l.length;n=[l[p-2],l[p-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),u.currentPoint=n,e[o]&&eq(n,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=f;var d=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]];else if("Q"===c){var v=[l[1],l[2]];u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===c){var y=e[s-1],v=e$(y.currentPoint,d);"Q"===y.command?(u.command="Q",u.startTangent=[d[0]-v[0],d[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]):(u.command="TL",u.startTangent=[d[0]-n[0],d[1]-n[1]],u.endTangent=[n[0]-d[0],n[1]-d[1]])}else if("C"===c){var g=[l[1],l[2]],m=[l[3],l[4]];u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[g[0]-m[0],g[1]-m[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[m[0]-g[0],m[1]-g[1]])}else if("S"===c){var y=e[s-1],g=e$(y.currentPoint,d),m=[l[1],l[2]];"C"===y.command?(u.command="C",u.startTangent=[d[0]-g[0],d[1]-g[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]]):(u.command="SQ",u.startTangent=[d[0]-m[0],d[1]-m[1]],u.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===c){var E=e1(u,0),x=E.x,b=E.y,T=e1(u,1,!1),P=T.x,S=T.y;u.startTangent=[x,b],u.endTangent=[P,S]}e.push(u)}return e}(e),s=function(t,e){for(var n=[],r=[],i=[],o=0;oMath.abs(q.determinant(tB))))){var a=tF[3],s=tF[7],l=tF[11],c=tF[12],u=tF[13],h=tF[14],p=tF[15];if(0!==a||0!==s||0!==l){if(tU[0]=a,tU[1]=s,tU[2]=l,tU[3]=p,!q.invert(tB,tB))return;q.transpose(tB,tB),$.fF(i,tU,tB)}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=c,e[1]=u,e[2]=h,tZ[0][0]=tF[0],tZ[0][1]=tF[1],tZ[0][2]=tF[2],tZ[1][0]=tF[4],tZ[1][1]=tF[5],tZ[1][2]=tF[6],tZ[2][0]=tF[8],tZ[2][1]=tF[9],tZ[2][2]=tF[10],n[0]=K.kE(tZ[0]),K.Fv(tZ[0],tZ[0]),r[0]=K.AK(tZ[0],tZ[1]),tY(tZ[1],tZ[1],tZ[0],1,-r[0]),n[1]=K.kE(tZ[1]),K.Fv(tZ[1],tZ[1]),r[0]/=n[1],r[1]=K.AK(tZ[0],tZ[2]),tY(tZ[2],tZ[2],tZ[0],1,-r[1]),r[2]=K.AK(tZ[1],tZ[2]),tY(tZ[2],tZ[2],tZ[1],1,-r[2]),n[2]=K.kE(tZ[2]),K.Fv(tZ[2],tZ[2]),r[1]/=n[2],r[2]/=n[2],K.kC(tV,tZ[1],tZ[2]),0>K.AK(tZ[0],tV))for(var f=0;f<3;f++)n[f]*=-1,tZ[f][0]*=-1,tZ[f][1]*=-1,tZ[f][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+tZ[0][0]-tZ[1][1]-tZ[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-tZ[0][0]+tZ[1][1]-tZ[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-tZ[0][0]-tZ[1][1]+tZ[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+tZ[0][0]+tZ[1][1]+tZ[2][2],0)),tZ[2][1]>tZ[1][2]&&(o[0]=-o[0]),tZ[0][2]>tZ[2][0]&&(o[1]=-o[1]),tZ[1][0]>tZ[0][1]&&(o[2]=-o[2])}}(0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(ns).reduce(nl),e,n,r,i,o),[[e,n,r,o,i]]}var nu=function(){function t(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}return function(e,n,r,i,o){for(var a,s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)s[l][3]=o[l];for(var l=0;l<3;l++)for(var c=0;c<3;c++)s[3][l]+=e[c]*s[c][l];var u=i[0],h=i[1],p=i[2],f=i[3],d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];d[0][0]=1-2*(h*h+p*p),d[0][1]=2*(u*h-p*f),d[0][2]=2*(u*p+h*f),d[1][0]=2*(u*h+p*f),d[1][1]=1-2*(u*u+p*p),d[1][2]=2*(h*p-u*f),d[2][0]=2*(u*p-h*f),d[2][1]=2*(h*p+u*f),d[2][2]=1-2*(u*u+h*h),s=t(s,d);var v=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];r[2]&&(v[2][1]=r[2],s=t(s,v)),r[1]&&(v[2][1]=0,v[2][0]=r[0],s=t(s,v)),r[0]&&(v[2][0]=0,v[1][0]=r[0],s=t(s,v));for(var l=0;l<3;l++)for(var c=0;c<3;c++)s[l][c]*=n[l];return 0==(a=s)[0][2]&&0==a[0][3]&&0==a[1][2]&&0==a[1][3]&&0==a[2][0]&&0==a[2][1]&&1==a[2][2]&&0==a[2][3]&&0==a[3][2]&&1==a[3][3]?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();function nh(t){return t.toFixed(6).replace(".000000","")}function np(t,e){var n,r;return(t.decompositionPair!==e&&(t.decompositionPair=e,n=nc(t)),e.decompositionPair!==t&&(e.decompositionPair=t,r=nc(e)),null===n[0]||null===r[0])?[[!1],[!0],function(n){return n?e[0].d:t[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(t){var e=function(t,e,n){var r=function(t,e){for(var n=0,r=0;r"].calculator(null,null,{value:e.textTransform},t,null),e.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,e.clipPath,t,this.runtime),e.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",a,e.offsetPath,t,this.runtime),e.anchor&&(t.parsedStyle.anchor=eB(e.anchor,2)),e.transform&&(t.parsedStyle.transform=na(e.transform)),e.transformOrigin&&(t.parsedStyle.transformOrigin=ny(e.transformOrigin)),e.markerStart&&(t.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerStart,e.markerStart,null,null)),e.markerEnd&&(t.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,e.markerEnd,e.markerEnd,null,null)),e.markerMid&&(t.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",e.markerMid,e.markerMid,null,null)),(t.nodeName!==M.CIRCLE&&t.nodeName!==M.ELLIPSE||(0,tr.Z)(e.cx)&&(0,tr.Z)(e.cy))&&(t.nodeName!==M.RECT&&t.nodeName!==M.IMAGE&&t.nodeName!==M.GROUP&&t.nodeName!==M.HTML&&t.nodeName!==M.TEXT&&t.nodeName!==M.MESH||(0,tr.Z)(e.x)&&(0,tr.Z)(e.y)&&(0,tr.Z)(e.z))&&(t.nodeName!==M.LINE||(0,tr.Z)(e.x1)&&(0,tr.Z)(e.y1)&&(0,tr.Z)(e.z1)&&(0,tr.Z)(e.x2)&&(0,tr.Z)(e.y2)&&(0,tr.Z)(e.z2))||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),(0,tr.Z)(e.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),e.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),e.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),(0,tr.Z)(e.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),e.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(t,i),s&&this.updateGeometry(t);return}var c=n.skipUpdateAttribute,u=n.skipParse,h=n.forceUpdateGeometry,p=n.usedAttributes,f=h,d=Object.keys(e);d.forEach(function(n){var r;c||(t.attributes[n]=e[n]),!f&&(null===(r=nx[n])||void 0===r?void 0:r.l)&&(f=!0)}),u||d.forEach(function(e){t.computedStyle[e]=r.parseProperty(e,t.attributes[e],t)}),(null==p?void 0:p.length)&&(d=Array.from(new Set(d.concat(p)))),d.forEach(function(e){e in t.computedStyle&&(t.parsedStyle[e]=r.computeProperty(e,t.computedStyle[e],t))}),f&&this.updateGeometry(t),d.forEach(function(e){e in t.parsedStyle&&r.postProcessProperty(e,t,d)}),this.runtime.enableCSSParsing&&t.children.length&&d.forEach(function(e){e in t.parsedStyle&&r.isPropertyInheritable(e)&&t.children.forEach(function(t){t.internalSetAttribute(e,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(t,e,n){var r=nx[t],i=e;if((""===e||(0,tr.Z)(e))&&(e="unset"),"unset"===e||"initial"===e||"inherit"===e)i=ep(e);else if(r){var o=r.k,a=r.syntax,s=a&&this.getPropertySyntax(a);o&&o.indexOf(e)>-1?i=ep(e):s&&s.parser&&(i=s.parser(e,n))}return i},t.prototype.computeProperty=function(t,e,n){var r=nx[t],i="g-root"===n.id,o=e;if(r){var a=r.syntax,s=r.inh,l=r.d;if(e instanceof t6){var c=e.value;if("unset"===c&&(c=s&&!i?"inherit":"initial"),"initial"===c)(0,tr.Z)(l)||(e=this.parseProperty(t,ee(l)?l(n.nodeName):l,n));else if("inherit"===c){var u=this.tryToResolveProperty(n,t,{inherited:!0});return(0,tr.Z)(u)?void this.addUnresolveProperty(n,t):u}}var h=a&&this.getPropertySyntax(a);if(h&&h.calculator){var p=n.parsedStyle[t];o=h.calculator(t,p,e,n,this.runtime)}else o=e instanceof t6?e.value:e}return o},t.prototype.postProcessProperty=function(t,e,n){var r=nx[t];if(r&&r.syntax){var i=r.syntax&&this.getPropertySyntax(r.syntax);i&&i.postProcessor&&i.postProcessor(e,n)}},t.prototype.addUnresolveProperty=function(t,e){var n=nb.get(t);n||(nb.set(t,[]),n=nb.get(t)),-1===n.indexOf(e)&&n.push(e)},t.prototype.tryToResolveProperty=function(t,e,n){if(void 0===n&&(n={}),n.inherited&&t.parentElement&&nT(t.parentElement,e)){var r=t.parentElement.parsedStyle[e];if("unset"!==r&&"initial"!==r&&"inherit"!==r)return r}},t.prototype.recalc=function(t){var e=nb.get(t);if(e&&e.length){var n={};e.forEach(function(e){n[e]=t.attributes[e]}),this.processProperties(t,n),nb.delete(t)}},t.prototype.updateGeometry=function(t){var e=t.nodeName,n=this.runtime.geometryUpdaterFactory[e];if(n){var r=t.geometry;r.contentBounds||(r.contentBounds=new tX),r.renderBounds||(r.renderBounds=new tX);var i=t.parsedStyle,o=n.update(i,t),a=o.width,s=o.height,l=o.depth,c=o.offsetX,u=o.offsetY,h=o.offsetZ,p=[Math.abs(a)/2,Math.abs(s)/2,(void 0===l?0:l)/2],f=i.stroke,d=i.lineWidth,v=i.increasedLineWidthForHitTesting,y=i.shadowType,g=i.shadowColor,m=i.filter,E=i.transformOrigin,x=i.anchor;e===M.TEXT?delete i.anchor:e===M.MESH&&(i.anchor[2]=.5);var b=[(1-2*(x&&x[0]||0))*a/2+(void 0===c?0:c),(1-2*(x&&x[1]||0))*s/2+(void 0===u?0:u),(1-2*(x&&x[2]||0))*p[2]+(void 0===h?0:h)];r.contentBounds.update(b,p);var T=e===M.POLYLINE||e===M.POLYGON||e===M.PATH?Math.SQRT2:.5;if(f&&!f.isNone){var P=((d||0)+(v||0))*T;p[0]+=P,p[1]+=P}if(r.renderBounds.update(b,p),g&&y&&"inner"!==y){var S=r.renderBounds,N=S.min,C=S.max,w=i.shadowBlur,k=i.shadowOffsetX,R=i.shadowOffsetY,A=w||0,O=k||0,L=R||0,I=N[0]-A+O,D=C[0]+A+O,G=N[1]-A+L,_=C[1]+A+L;N[0]=Math.min(N[0],I),C[0]=Math.max(C[0],D),N[1]=Math.min(N[1],G),C[1]=Math.max(C[1],_),r.renderBounds.setMinMax(N,C)}(void 0===m?[]:m).forEach(function(t){var e=t.name,n=t.params;if("blur"===e){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,tR(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===e){var o=n[0].value,a=n[1].value,s=n[2].value,l=r.renderBounds,c=l.min,u=l.max,h=c[0]-s+o,p=u[0]+s+o,f=c[1]-s+a,d=u[1]+s+a;c[0]=Math.min(c[0],h),u[0]=Math.max(u[0],p),c[1]=Math.min(c[1],f),u[1]=Math.max(u[1],d),r.renderBounds.setMinMax(c,u)}}),x=i.anchor;var F=a<0,B=s<0,U=(F?-1:1)*(E?eZ(E[0],0,t):0),Z=(B?-1:1)*(E?eZ(E[1],1,t):0);U-=(F?-1:1)*(x&&x[0]||0)*r.contentBounds.halfExtents[0]*2,Z-=(B?-1:1)*(x&&x[1]||0)*r.contentBounds.halfExtents[1]*2,t.setOrigin(U,Z),this.runtime.sceneGraphService.dirtifyToRoot(t)}},t.prototype.isPropertyInheritable=function(t){var e=nx[t];return!!e&&e.inh},t}(),nS=function(){function t(){this.parser=e_,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r){return eF(n)},t}(),nN=function(){function t(){}return t.prototype.calculator=function(t,e,n,r,i){return n instanceof t6&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(t,e,n,r),"clipPath"===t&&r.forEach(function(t){0===t.childNodes.length&&i.sceneGraphService.dirtifyToRoot(t)}),n},t}(),nC=function(){function t(){this.parser=eO,this.parserWithCSSDisabled=eO,this.mixer=eL}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"none"===n.value?ef:ed:n},t}(),nw=function(){function t(){this.parser=eY}return t.prototype.calculator=function(t,e,n){return n instanceof t6?[]:n},t}();function nM(t){var e=t.parsedStyle.fontSize;return(0,tr.Z)(e)?null:e}var nk=function(){function t(){this.parser=eG,this.parserWithCSSDisabled=null,this.mixer=ej}return t.prototype.calculator=function(t,e,n,r,i){if((0,te.Z)(n))return n;if(!ea.isRelativeUnit(n.unit))return n.value;var o,a=i.styleValueRegistry;if(n.unit===I.kPercentage)return 0;if(n.unit===I.kEms){if(r.parentNode){var s=nM(r.parentNode);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}if(n.unit===I.kRems){if(null===(o=null==r?void 0:r.ownerDocument)||void 0===o?void 0:o.documentElement){var s=nM(r.ownerDocument.documentElement);if(s)return s*n.value;a.addUnresolveProperty(r,t)}else a.addUnresolveProperty(r,t);return 0}},t}(),nR=function(){function t(){this.mixer=ez}return t.prototype.parser=function(t){var e=eU((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0]]:[e[0],e[1]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nA=function(){function t(){this.mixer=ez}return t.prototype.parser=function(t){var e=eU((0,te.Z)(t)?[t]:t);return 1===e.length?[e[0],e[0],e[0],e[0]]:2===e.length?[e[0],e[1],e[0],e[1]]:3===e.length?[e[0],e[1],e[2],e[1]]:[e[0],e[1],e[2],e[3]]},t.prototype.calculator=function(t,e,n){return n.map(function(t){return t.value})},t}(),nO=q.create();function nL(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(t){var i=t.t,o=t.d;if("scale"===i){var a=(null==o?void 0:o.map(function(t){return t.value}))||[1,1];e.scaleLocal(a[0],a[1],1)}else if("scalex"===i){var a=(null==o?void 0:o.map(function(t){return t.value}))||[1];e.scaleLocal(a[0],1,1)}else if("scaley"===i){var a=(null==o?void 0:o.map(function(t){return t.value}))||[1];e.scaleLocal(1,a[0],1)}else if("scalez"===i){var a=(null==o?void 0:o.map(function(t){return t.value}))||[1];e.scaleLocal(1,1,a[0])}else if("scale3d"===i){var a=(null==o?void 0:o.map(function(t){return t.value}))||[1,1,1];e.scaleLocal(a[0],a[1],a[2])}else if("translate"===i){var s=o||[es,es];e.translateLocal(s[0].value,s[1].value,0)}else if("translatex"===i){var s=o||[es];e.translateLocal(s[0].value,0,0)}else if("translatey"===i){var s=o||[es];e.translateLocal(0,s[0].value,0)}else if("translatez"===i){var s=o||[es];e.translateLocal(0,0,s[0].value)}else if("translate3d"===i){var s=o||[es,es,es];e.translateLocal(s[0].value,s[1].value,s[2].value)}else if("rotate"===i){var l=o||[el];e.rotateLocal(0,0,eF(l[0]))}else if("rotatex"===i){var l=o||[el];e.rotateLocal(eF(l[0]),0,0)}else if("rotatey"===i){var l=o||[el];e.rotateLocal(0,eF(l[0]),0)}else if("rotatez"===i){var l=o||[el];e.rotateLocal(0,0,eF(l[0]))}else if("rotate3d"===i);else if("skew"===i){var c=(null==o?void 0:o.map(function(t){return t.value}))||[0,0];e.setLocalSkew(tI(c[0]),tI(c[1]))}else if("skewx"===i){var c=(null==o?void 0:o.map(function(t){return t.value}))||[0];e.setLocalSkew(tI(c[0]),e.getLocalSkew()[1])}else if("skewy"===i){var c=(null==o?void 0:o.map(function(t){return t.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],tI(c[0]))}else if("matrix"===i){var u=(0,W.CR)(o.map(function(t){return t.value}),6),h=u[0],p=u[1],f=u[2],d=u[3],v=u[4],y=u[5];e.setLocalTransform(q.set(nO,h,p,0,0,f,d,0,0,0,0,1,0,v+n,y+r,0,1))}else"matrix3d"===i&&(q.set.apply(q,(0,W.ev)([nO],(0,W.CR)(o.map(function(t){return t.value})),!1)),nO[12]+=n,nO[13]+=r,e.setLocalTransform(nO))}),e.getLocalTransform()}var nI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,W.ZT)(e,t),e.prototype.postProcessor=function(t,e){switch(t.nodeName){case M.CIRCLE:case M.ELLIPSE:var n,r,i,o=t.parsedStyle,a=o.cx,s=o.cy,l=o.cz;(0,tr.Z)(a)||(n=a),(0,tr.Z)(s)||(r=s),(0,tr.Z)(l)||(i=l);break;case M.LINE:var c=t.parsedStyle,u=c.x1,h=c.x2,p=Math.min(c.y1,c.y2);n=Math.min(u,h),r=p,i=0;break;case M.RECT:case M.IMAGE:case M.GROUP:case M.HTML:case M.TEXT:case M.MESH:(0,tr.Z)(t.parsedStyle.x)||(n=t.parsedStyle.x),(0,tr.Z)(t.parsedStyle.y)||(r=t.parsedStyle.y),(0,tr.Z)(t.parsedStyle.z)||(i=t.parsedStyle.z)}if(t.nodeName!==M.PATH&&t.nodeName!==M.POLYLINE&&t.nodeName!==M.POLYGON&&(t.parsedStyle.defX=n||0,t.parsedStyle.defY=r||0),(!(0,tr.Z)(n)||!(0,tr.Z)(r)||!(0,tr.Z)(i))&&-1===e.indexOf("transform")){var f=t.parsedStyle.transform;if(f&&f.length)nL(f,t);else{var d=(0,W.CR)(t.getLocalPosition(),3),v=d[0],y=d[1],g=d[2];t.setLocalPosition((0,tr.Z)(n)?v:n,(0,tr.Z)(r)?y:r,(0,tr.Z)(i)?g:i)}}},e}(nk),nD=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n instanceof t6&&(n=null);var i=null==n?void 0:n.cloneNode(!0);return i&&(i.style.isMarker=!0),i},t}(),nG=function(){function t(){this.mixer=ej,this.parser=eH,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(t,e,n){return n.value},t}(),n_=function(){function t(){this.parser=eH,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t.prototype.postProcessor=function(t){var e=t.parsedStyle,n=e.offsetPath,r=e.offsetDistance;if(n){var i=n.nodeName;if(i===M.LINE||i===M.PATH||i===M.POLYLINE){var o=n.getPoint(r);o&&(t.parsedStyle.defX=o.x,t.parsedStyle.defY=o.y,t.setLocalPosition(o.x,o.y))}}},t}(),nF=function(){function t(){this.parser=eH,this.parserWithCSSDisabled=null,this.mixer=eW(0,1)}return t.prototype.calculator=function(t,e,n){return n.value},t}(),nB=function(){function t(){this.parser=e7,this.parserWithCSSDisabled=e7,this.mixer=nt}return t.prototype.calculator=function(t,e,n){return n instanceof t6&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new tz(0,0,0,0)}:n},t.prototype.postProcessor=function(t,e){if(t.parsedStyle.defX=t.parsedStyle.path.rect.x,t.parsedStyle.defY=t.parsedStyle.path.rect.y,t.nodeName===M.PATH&&-1===e.indexOf("transform")){var n=t.parsedStyle,r=n.defX,i=void 0===r?0:r,o=n.defY,a=void 0===o?0:o;t.setLocalPosition(i,a)}},t}(),nU=function(){function t(){this.parser=ne,this.mixer=nn}return t.prototype.postProcessor=function(t,e){if((t.nodeName===M.POLYGON||t.nodeName===M.POLYLINE)&&-1===e.indexOf("transform")){var n=t.parsedStyle,r=n.defX,i=n.defY;t.setLocalPosition(r,i)}},t}(),nZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mixer=eW(0,1/0),e}return(0,W.ZT)(e,t),e}(nk),nV=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){return n instanceof t6?"unset"===n.value?"":n.value:"".concat(n)},t.prototype.postProcessor=function(t){t.nodeValue="".concat(t.parsedStyle.text)||""},t}(),nY=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i=r.getAttribute("text");if(i){var o=i;"capitalize"===n.value?o=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?o=i.toLowerCase():"uppercase"===n.value&&(o=i.toUpperCase()),r.parsedStyle.text=o}return n.value},t}(),nX={},nH=0,nj="undefined"!=typeof window&&void 0!==window.document;function nW(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(t)-o.indexOf(e)}}return n-r}function nz(t){var e,n=t;do{if(null===(e=n.parsedStyle)||void 0===e?void 0:e.clipPath)return n;n=n.parentElement}while(null!==n);return null}function nK(t,e,n){nj&&t.style&&(t.style.width=e+"px",t.style.height=n+"px")}function nq(t,e){if(nj)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var nJ={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},n$="object"==typeof performance&&performance.now?performance:Date;function nQ(t,e,n){var r=!1,i=!1,o=!!e&&!e.isNone,a=!!n&&!n.isNone;return"visiblepainted"===t||"painted"===t||"auto"===t?(r=o,i=a):"visiblefill"===t||"fill"===t?r=!0:"visiblestroke"===t||"stroke"===t?i=!0:("visible"===t||"all"===t)&&(r=!0,i=!0),[r,i]}var n0=1,n1="object"==typeof self&&self.self==self?self:"object"==typeof n.g&&n.g.global==n.g?n.g:{},n2=Date.now(),n3={},n5=Date.now(),n4=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function");var e=Date.now(),n=e-n5,r=n0++;return n3[r]=t,Object.keys(n3).length>1||setTimeout(function(){n5=e;var t=n3;n3={},Object.keys(t).forEach(function(e){return t[e](n1.performance&&"function"==typeof n1.performance.now?n1.performance.now():Date.now()-n2)})},n>16?0:16-n),r},n9=function(t){return"string"!=typeof t?n4:""===t?n1.requestAnimationFrame:n1[t+"RequestAnimationFrame"]},n8=function(t,e){for(var n=0;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}}(["","webkit","moz","ms","o"],function(t){return!!n9(t)}),n6=n9(n8),n7="string"!=typeof n8?function(t){delete n3[t]}:""===n8?n1.cancelAnimationFrame:n1[n8+"CancelAnimationFrame"]||n1[n8+"CancelRequestAnimationFrame"];n1.requestAnimationFrame=n6,n1.cancelAnimationFrame=n7;var rt=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(t,e){this.callbacks.push(e)},t.prototype.promise=function(){for(var t=[],e=0;e-1){var l=(0,W.CR)(t.split(":"),2),c=l[0];t=l[1],s=c,a=!0}if(t=r?"".concat(t,"capture"):t,e=ee(e)?e:e.handleEvent,a){var u=e;e=function(){for(var t,e=[],n=0;n0},e.prototype.isDefaultNamespace=function(t){throw Error(tK)},e.prototype.lookupNamespaceURI=function(t){throw Error(tK)},e.prototype.lookupPrefix=function(t){throw Error(tK)},e.prototype.normalize=function(){throw Error(tK)},e.prototype.isEqualNode=function(t){return this===t},e.prototype.isSameNode=function(t){return this.isEqualNode(t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(t){if(t===this)return 0;for(var n,r=t,i=this,o=[r],a=[i];null!==(n=r.parentNode)&&void 0!==n?n:i.parentNode;)r=r.parentNode?(o.push(r.parentNode),r.parentNode):r,i=i.parentNode?(a.push(i.parentNode),i.parentNode):i;if(r!==i)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var s=o.length>a.length?o:a,l=s===o?a:o;if(s[s.length-l.length]===l[0])return s===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var c=s.length-l.length,u=l.length-1;u>=0;u--){var h=l[u],p=s[c+u];if(p!==h){var f=h.parentNode.childNodes;if(f.indexOf(h)0&&e;)e=e.parentNode,t--;return e},e.prototype.forEach=function(t,e){void 0===e&&(e=!1),t(this)||(e?this.childNodes.slice():this.childNodes).forEach(function(e){e.forEach(t)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(rx),rT=function(){function t(t,e){var n=this;this.globalRuntime=t,this.context=e,this.emitter=new z.Z,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=q.create(),this.tmpVec3=K.Ue(),this.onPointerDown=function(t){var e=n.createPointerEvent(t);if(n.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)n.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){var r=2===e.button;n.dispatchEvent(e,r?"rightdown":"mousedown")}n.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),n.freeEvent(e)},this.onPointerUp=function(t){var e,r=n$.now(),i=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);if(n.dispatchEvent(i,"pointerup"),"touch"===i.pointerType)n.dispatchEvent(i,"touchend");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.dispatchEvent(i,o?"rightup":"mouseup")}var a=n.trackingData(t.pointerId),s=n.findMountedTarget(a.pressTargetsByButton[t.button]),l=s;if(s&&!i.composedPath().includes(s)){for(var c=s;c&&!i.composedPath().includes(c);){if(i.currentTarget=c,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType)n.notifyTarget(i,"touchendoutside");else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;n.notifyTarget(i,o?"rightupoutside":"mouseupoutside")}rb.isNode(c)&&(c=c.parentNode)}delete a.pressTargetsByButton[t.button],l=c}if(l){var u=n.clonePointerEvent(i,"click");u.target=l,u.path=[],a.clicksByButton[t.button]||(a.clicksByButton[t.button]={clickCount:0,target:u.target,timeStamp:r});var h=a.clicksByButton[t.button];h.target===u.target&&r-h.timeStamp<200?++h.clickCount:h.clickCount=1,h.target=u.target,h.timeStamp=r,u.detail=h.clickCount,(null===(e=i.detail)||void 0===e?void 0:e.preventClick)||(n.context.config.useNativeClickEvent||"mouse"!==u.pointerType&&"touch"!==u.pointerType||n.dispatchEvent(u,"click"),n.dispatchEvent(u,"pointertap")),n.freeEvent(u)}n.freeEvent(i)},this.onPointerMove=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0),r="mouse"===e.pointerType||"pen"===e.pointerType,i=n.trackingData(t.pointerId),o=n.findMountedTarget(i.overTargets);if(i.overTargets&&o!==e.target){var a="mousemove"===t.type?"mouseout":"pointerout",s=n.createPointerEvent(t,a,o||void 0);if(n.dispatchEvent(s,"pointerout"),r&&n.dispatchEvent(s,"mouseout"),!e.composedPath().includes(o)){var l=n.createPointerEvent(t,"pointerleave",o||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&!e.composedPath().includes(l.target);)l.currentTarget=l.target,n.notifyTarget(l),r&&n.notifyTarget(l,"mouseleave"),rb.isNode(l.target)&&(l.target=l.target.parentNode);n.freeEvent(l)}n.freeEvent(s)}if(o!==e.target){var c="mousemove"===t.type?"mouseover":"pointerover",u=n.clonePointerEvent(e,c);n.dispatchEvent(u,"pointerover"),r&&n.dispatchEvent(u,"mouseover");for(var h=o&&rb.isNode(o)&&o.parentNode;h&&h!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode)&&h!==e.target;)h=h.parentNode;if(!h||h===(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode)){var p=n.clonePointerEvent(e,"pointerenter");for(p.eventPhase=p.AT_TARGET;p.target&&p.target!==o&&p.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)p.currentTarget=p.target,n.notifyTarget(p),r&&n.notifyTarget(p,"mouseenter"),rb.isNode(p.target)&&(p.target=p.target.parentNode);n.freeEvent(p)}n.freeEvent(u)}n.dispatchEvent(e,"pointermove"),"touch"===e.pointerType&&n.dispatchEvent(e,"touchmove"),r&&(n.dispatchEvent(e,"mousemove"),n.cursor=n.getCursor(e.target)),i.overTargets=e.composedPath(),n.freeEvent(e)},this.onPointerOut=function(t){var e=n.trackingData(t.pointerId);if(e.overTargets){var r="mouse"===t.pointerType||"pen"===t.pointerType,i=n.findMountedTarget(e.overTargets),o=n.createPointerEvent(t,"pointerout",i||void 0);n.dispatchEvent(o),r&&n.dispatchEvent(o,"mouseout");var a=n.createPointerEvent(t,"pointerleave",i||void 0);for(a.eventPhase=a.AT_TARGET;a.target&&a.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)a.currentTarget=a.target,n.notifyTarget(a),r&&n.notifyTarget(a,"mouseleave"),rb.isNode(a.target)&&(a.target=a.target.parentNode);e.overTargets=null,n.freeEvent(o),n.freeEvent(a)}n.cursor=null},this.onPointerOver=function(t){var e=n.trackingData(t.pointerId),r=n.createPointerEvent(t),i="mouse"===r.pointerType||"pen"===r.pointerType;n.dispatchEvent(r,"pointerover"),i&&n.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(n.cursor=n.getCursor(r.target));var o=n.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==(rb.isNode(n.rootTarget)&&n.rootTarget.parentNode);)o.currentTarget=o.target,n.notifyTarget(o),i&&n.notifyTarget(o,"mouseenter"),rb.isNode(o.target)&&(o.target=o.target.parentNode);e.overTargets=r.composedPath(),n.freeEvent(r),n.freeEvent(o)},this.onPointerUpOutside=function(t){var e=n.trackingData(t.pointerId),r=n.findMountedTarget(e.pressTargetsByButton[t.button]),i=n.createPointerEvent(t);if(r){for(var o=r;o;)i.currentTarget=o,n.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||("mouse"===i.pointerType||"pen"===i.pointerType)&&n.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),rb.isNode(o)&&(o=o.parentNode);delete e.pressTargetsByButton[t.button]}n.freeEvent(i)},this.onWheel=function(t){var e=n.createWheelEvent(t);n.dispatchEvent(e),n.freeEvent(e)},this.onClick=function(t){if(n.context.config.useNativeClickEvent){var e=n.createPointerEvent(t);n.dispatchEvent(e),n.freeEvent(e)}},this.onPointerCancel=function(t){var e=n.createPointerEvent(t,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);n.dispatchEvent(e),n.freeEvent(e)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(t){var e=this.context.contextService.getBoundingClientRect();return new tW(t.x-((null==e?void 0:e.left)||0),t.y-((null==e?void 0:e.top)||0))},t.prototype.viewport2Client=function(t){var e=this.context.contextService.getBoundingClientRect();return new tW(t.x+((null==e?void 0:e.left)||0),t.y+((null==e?void 0:e.top)||0))},t.prototype.viewport2Canvas=function(t){var e=t.x,n=t.y,r=this.rootTarget.defaultView.getCamera(),i=this.context.config,o=i.width,a=i.height,s=r.getPerspectiveInverse(),l=r.getWorldTransform(),c=q.multiply(this.tmpMatrix,l,s),u=K.t8(this.tmpVec3,e/o*2-1,(1-n/a)*2-1,0);return K.fF(u,u,c),new tW(u[0],u[1])},t.prototype.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),r=e.getViewTransform(),i=q.multiply(this.tmpMatrix,n,r),o=K.t8(this.tmpVec3,t.x,t.y,0);K.fF(this.tmpVec3,this.tmpVec3,i);var a=this.context.config,s=a.width,l=a.height;return new tW((o[0]+1)/2*s,(1-(o[1]+1)/2)*l)},t.prototype.setPickHandler=function(t){this.pickHandler=t},t.prototype.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},t.prototype.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n=1;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var r=i+1;ri||n>o?null:!a&&this.pickHandler(t)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(t){var e,n=this.context.contextService.getDomElement(),r=null===(e=t.nativeEvent)||void 0===e?void 0:e.target;if(r){if(r===n)return!0;if(n&&n.contains)return n.contains(r)}return!!t.nativeEvent.composedPath&&t.nativeEvent.composedPath().indexOf(n)>-1},t.prototype.getExistedHTML=function(t){var e,n;if(t.nativeEvent.composedPath)try{for(var r=(0,W.XA)(t.nativeEvent.composedPath()),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.globalRuntime.nativeHTMLMap.get(o);if(a)return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype.pickTarget=function(t){return this.hitTest({clientX:t.clientX,clientY:t.clientY,viewportX:t.viewportX,viewportY:t.viewportY,x:t.canvasX,y:t.canvasY})},t.prototype.createPointerEvent=function(t,e,n,r){var i=this.allocateEvent(rg);this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.nativeEvent=t.nativeEvent,i.originalEvent=t;var o=this.getExistedHTML(i);return i.target=null!=n?n:o||this.isNativeEventFromCanvas(i)&&this.pickTarget(i)||r,"string"==typeof e&&(i.type=e),i},t.prototype.createWheelEvent=function(t){var e=this.allocateEvent(rm);this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t;var n=this.getExistedHTML(e);return e.target=n||this.isNativeEventFromCanvas(e)&&this.pickTarget(e),e},t.prototype.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},t.prototype.cloneWheelEvent=function(t){var e=this.allocateEvent(rm);return e.nativeEvent=t.nativeEvent,e.originalEvent=t.originalEvent,this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.target=t.target,e.path=t.composedPath().slice(),e.type=t.type,e},t.prototype.clonePointerEvent=function(t,e){var n=this.allocateEvent(rg);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},t.prototype.copyPointerData=function(t,e){e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist},t.prototype.copyMouseData=function(t,e){e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset)},t.prototype.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},t.prototype.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=n$.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},t.prototype.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);var e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=[],e.target=null,e},t.prototype.freeEvent=function(t){if(t.manager!==this)throw Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},t.prototype.notifyTarget=function(t,e){e=null!=e?e:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?"".concat(e,"capture"):e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},t.prototype.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r){if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i=0;n--){var r=t[n];if(r===this.rootTarget||rb.isNode(r)&&r.parentNode===e)e=t[n];else break}return e},t.prototype.getCursor=function(t){for(var e=t;e;){var n=!!e.getAttribute&&e.getAttribute("cursor");if(n)return n;e=rb.isNode(e)&&e.parentNode}},t}(),rP=function(){function t(){}return t.prototype.getOrCreateCanvas=function(t,e){if(this.canvas)return this.canvas;if(t||rG.offscreenCanvas)this.canvas=t||rG.offscreenCanvas,this.context=this.canvas.getContext("2d",e);else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",e),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",e)}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(t,e){return this.context||this.getOrCreateCanvas(t,e),this.context},t}();(E=X||(X={}))[E.CAMERA_CHANGED=0]="CAMERA_CHANGED",E[E.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",E[E.NONE=2]="NONE";var rS=function(){function t(t,e){this.globalRuntime=t,this.context=e,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new rn,initAsync:new rt,dirtycheck:new rr,cull:new rr,beginFrame:new rn,beforeRender:new rn,render:new rn,afterRender:new rn,endFrame:new rn,destroy:new rn,pick:new re,pickSync:new rr,pointerDown:new rn,pointerUp:new rn,pointerMove:new rn,pointerOut:new rn,pointerOver:new rn,pointerWheel:new rn,pointerCancel:new rn,click:new rn}}return t.prototype.init=function(t){var e=this,n=(0,W.pi)((0,W.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(t){t.apply(n,e.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,t()):this.hooks.initAsync.promise().then(function(){e.inited=!0,t()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){return!this.context.config.renderer.getConfig().enableDirtyRectangleRendering||this.context.renderingContext.renderReasons.has(X.CAMERA_CHANGED)},t.prototype.render=function(t,e){var n=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var r=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(r.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),r.renderReasons.size&&this.inited){r.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var i=1===r.renderReasons.size&&r.renderReasons.has(X.CAMERA_CHANGED),o=!t.disableRenderHooks||!(t.disableRenderHooks&&i);o&&this.renderDisplayObject(r.root,t,r),this.hooks.beginFrame.call(),o&&r.renderListCurrentFrame.forEach(function(t){n.hooks.beforeRender.call(t),n.hooks.render.call(t),n.hooks.afterRender.call(t)}),this.hooks.endFrame.call(),r.renderListCurrentFrame=[],r.renderReasons.clear(),e()}},t.prototype.renderDisplayObject=function(t,e,n){var r=this,i=e.renderer.getConfig(),o=i.enableDirtyCheck,a=i.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(t);var s=t.renderable,l=o?s.dirty||n.dirtyRectangleRenderingDisabled?t:null:t;if(l){var c=a?this.hooks.cull.call(l,this.context.camera):l;c&&(this.stats.rendered++,n.renderListCurrentFrame.push(c))}t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var u=t.sortable;u.dirty&&(this.sort(t,u),u.dirty=!1,u.dirtyChildren=[],u.dirtyReason=void 0),(u.sorted||t.childNodes).forEach(function(t){r.renderDisplayObject(t,e,n)})},t.prototype.sort=function(t,e){e.sorted&&e.dirtyReason!==V.Z_INDEX_CHANGED?e.dirtyChildren.forEach(function(n){if(-1===t.childNodes.indexOf(n)){var r=e.sorted.indexOf(n);r>=0&&e.sorted.splice(r,1)}else if(0===e.sorted.length)e.sorted.push(n);else{var i=function(t,e){for(var n=0,r=t.length;n>>1;0>nW(t[i],e)?n=i+1:r=i}return n}(e.sorted,n);e.sorted.splice(i,0,n)}}):e.sorted=t.childNodes.slice().sort(nW)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(X.DISPLAY_OBJECT_CHANGED)},t}(),rN=/\[\s*(.*)=(.*)\s*\]/,rC=function(){function t(){}return t.prototype.selectOne=function(t,e){var n=this;if(t.startsWith("."))return e.find(function(e){return((null==e?void 0:e.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.find(function(e){return e.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.find(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.find(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):null},t.prototype.selectAll=function(t,e){var n=this;if(t.startsWith("."))return e.findAll(function(r){return e!==r&&((null==r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(t))>-1});if(t.startsWith("#"))return e.findAll(function(r){return e!==r&&r.id===n.getIdOrClassname(t)});if(!t.startsWith("["))return e.findAll(function(n){return e!==n&&n.nodeName===t});var r=this.getAttribute(t),i=r.name,o=r.value;return i?e.findAll(function(t){return e!==t&&("name"===i?t.name===o:n.attributeToString(t,i)===o)}):[]},t.prototype.is=function(t,e){if(t.startsWith("."))return e.className===this.getIdOrClassname(t);if(t.startsWith("#"))return e.id===this.getIdOrClassname(t);if(!t.startsWith("["))return e.nodeName===t;var n=this.getAttribute(t),r=n.name,i=n.value;return"name"===r?e.name===i:this.attributeToString(e,r)===i},t.prototype.getIdOrClassname=function(t){return t.substring(1)},t.prototype.getAttribute=function(t){var e=t.match(rN),n="",r="";return e&&e.length>2&&(n=e[1].replace(/"/g,""),r=e[2].replace(/"/g,"")),{name:n,value:r}},t.prototype.attributeToString=function(t,e){if(!t.getAttribute)return"";var n=t.getAttribute(e);return(0,tr.Z)(n)?"":n.toString?n.toString():""},t}(),rw=function(t){function e(e,n,r,i,o,a,s,l){var c=t.call(this,null)||this;return c.relatedNode=n,c.prevValue=r,c.newValue=i,c.attrName=o,c.attrChange=a,c.prevParsedValue=s,c.newParsedValue=l,c.type=e,c}return(0,W.ZT)(e,t),e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(rv);function rM(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}(x=H||(H={})).REPARENT="reparent",x.DESTROY="destroy",x.ATTR_MODIFIED="DOMAttrModified",x.INSERTED="DOMNodeInserted",x.REMOVED="removed",x.MOUNTED="DOMNodeInsertedIntoDocument",x.UNMOUNTED="DOMNodeRemovedFromDocument",x.BOUNDS_CHANGED="bounds-changed",x.CULLED="culled";var rk=new rw(H.REPARENT,null,"","","",0,"",""),rR=function(){function t(t){var e,n,r,i,o,a,s,l,c,u,h,p,f=this;this.runtime=t,this.pendingEvents=[],this.boundsChangedEvent=new rE(H.BOUNDS_CHANGED),this.rotate=(e=Q.Ue(),function(t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=0),"number"==typeof n&&(n=K.al(n,r,i));var o=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){var a=Q.Ue();Q.Su(a,n[0],n[1],n[2]);var s=f.getRotation(t),l=f.getRotation(t.parentNode);Q.JG(e,l),Q.U_(e,e),Q.Jp(a,e,a),Q.Jp(o.localRotation,a,s),Q.Fv(o.localRotation,o.localRotation),f.dirtifyLocal(t,o)}else f.rotateLocal(t,n)}),this.rotateLocal=(n=Q.Ue(),function(t,e,r,i){void 0===r&&(r=0),void 0===i&&(i=0),"number"==typeof e&&(e=K.al(e,r,i));var o=t.transformable;Q.Su(n,e[0],e[1],e[2]),Q.dC(o.localRotation,o.localRotation,n),f.dirtifyLocal(t,o)}),this.setEulerAngles=(r=Q.Ue(),function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=0),"number"==typeof e&&(e=K.al(e,n,i));var o=t.transformable;if(null!==t.parentNode&&t.parentNode.transformable){Q.Su(o.localRotation,e[0],e[1],e[2]);var a=f.getRotation(t.parentNode);Q.JG(r,Q.U_(Q.Ue(),a)),Q.dC(o.localRotation,o.localRotation,r),f.dirtifyLocal(t,o)}else f.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=K.al(e,n,r));var i=t.transformable;K.fS(e,K.Ue())||(K.VC(e,e,i.localRotation),K.IH(i.localPosition,i.localPosition,e),f.dirtifyLocal(t,i))},this.setPosition=(i=q.create(),o=K.Ue(),function(t,e){var n=t.transformable;if(o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,!K.fS(f.getPosition(t),o)){if(K.JG(n.position,o),null!==t.parentNode&&t.parentNode.transformable){var r=t.parentNode.transformable;q.copy(i,r.worldTransform),q.invert(i,i),K.fF(n.localPosition,o,i)}else K.JG(n.localPosition,o);f.dirtifyLocal(t,n)}}),this.setLocalPosition=(a=K.Ue(),function(t,e){var n=t.transformable;a[0]=e[0],a[1]=e[1],a[2]=e[2]||0,K.fS(n.localPosition,a)||(K.JG(n.localPosition,a),f.dirtifyLocal(t,n))}),this.translate=(s=K.Ue(),l=K.Ue(),c=K.Ue(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=K.t8(l,e,n,r)),K.fS(e,s)||(K.IH(c,f.getPosition(t),e),f.setPosition(t,c))}),this.setRotation=function(){var t=Q.Ue();return function(e,n,r,i,o){var a=e.transformable;if("number"==typeof n&&(n=Q.al(n,r,i,o)),null!==e.parentNode&&e.parentNode.transformable){var s=f.getRotation(e.parentNode);Q.JG(t,s),Q.U_(t,t),Q.Jp(a.localRotation,t,n),Q.Fv(a.localRotation,a.localRotation),f.dirtifyLocal(e,a)}else f.setLocalRotation(e,n)}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=(u=q.create(),h=K.Ue(),p=Q.al(0,0,0,1),function(t){if(0!==t.localSkew[0]||0!==t.localSkew[1]){if(q.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,K.al(1,1,1),t.origin),0!==t.localSkew[0]||0!==t.localSkew[1]){var e=q.identity(u);e[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),q.multiply(t.localTransform,t.localTransform,e)}var n=q.fromRotationTranslationScaleOrigin(u,p,h,t.localScale,t.origin);q.multiply(t.localTransform,t.localTransform,n)}else q.fromRotationTranslationScaleOrigin(t.localTransform,t.localRotation,t.localPosition,t.localScale,t.origin)})}return t.prototype.matches=function(t,e){return this.runtime.sceneGraphSelector.is(t,e)},t.prototype.querySelector=function(t,e){return this.runtime.sceneGraphSelector.selectOne(t,e)},t.prototype.querySelectorAll=function(t,e){return this.runtime.sceneGraphSelector.selectAll(t,e)},t.prototype.attach=function(t,e,n){var r,i,o=!1;t.parentNode&&(o=t.parentNode!==e,this.detach(t)),t.parentNode=e,(0,tr.Z)(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);var a=e.sortable;((null===(r=null==a?void 0:a.sorted)||void 0===r?void 0:r.length)||(null===(i=t.style)||void 0===i?void 0:i.zIndex))&&(-1===a.dirtyChildren.indexOf(t)&&a.dirtyChildren.push(t),a.dirty=!0,a.dirtyReason=V.ADDED);var s=t.transformable;s&&this.dirtifyWorld(t,s),s.frozen&&this.unfreezeParentToRoot(t),o&&t.dispatchEvent(rk)},t.prototype.detach=function(t){var e,n;if(t.parentNode){var r=t.transformable,i=t.parentNode.sortable;((null===(e=null==i?void 0:i.sorted)||void 0===e?void 0:e.length)||(null===(n=t.style)||void 0===n?void 0:n.zIndex))&&(-1===i.dirtyChildren.indexOf(t)&&i.dirtyChildren.push(t),i.dirty=!0,i.dirtyReason=V.REMOVED);var o=t.parentNode.childNodes.indexOf(t);o>-1&&t.parentNode.childNodes.splice(o,1),r&&this.dirtifyWorld(t,r),t.parentNode=null}},t.prototype.getOrigin=function(t){return t.transformable.origin},t.prototype.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=[e,n,r]);var i=t.transformable;if(e[0]!==i.origin[0]||e[1]!==i.origin[1]||e[2]!==i.origin[2]){var o=i.origin;o[0]=e[0],o[1]=e[1],o[2]=e[2]||0,this.dirtifyLocal(t,i)}},t.prototype.setLocalEulerAngles=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=K.al(e,n,r));var i=t.transformable;Q.Su(i.localRotation,e[0],e[1],e[2]),this.dirtifyLocal(t,i)},t.prototype.scaleLocal=function(t,e){var n=t.transformable;K.Jp(n.localScale,n.localScale,K.al(e[0],e[1],e[2]||1)),this.dirtifyLocal(t,n)},t.prototype.setLocalScale=function(t,e){var n=t.transformable,r=K.al(e[0],e[1],e[2]||n.localScale[2]);K.fS(r,n.localScale)||(K.JG(n.localScale,r),this.dirtifyLocal(t,n))},t.prototype.setLocalRotation=function(t,e,n,r,i){"number"==typeof e&&(e=Q.al(e,n,r,i));var o=t.transformable;Q.JG(o.localRotation,e),this.dirtifyLocal(t,o)},t.prototype.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=tt.al(e,n));var r=t.transformable;tt.JG(r.localSkew,e),this.dirtifyLocal(t,r)},t.prototype.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},t.prototype.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},t.prototype.triggerPendingEvents=function(){var t=this,e=new Set,n=function(n,r){n.isConnected&&!e.has(n.entity)&&(t.boundsChangedEvent.detail=r,t.boundsChangedEvent.target=n,n.isMutationObserved?n.dispatchEvent(t.boundsChangedEvent):n.ownerDocument.defaultView.dispatchEvent(t.boundsChangedEvent,!0),e.add(n.entity))};this.pendingEvents.forEach(function(t){var e=(0,W.CR)(t,2),r=e[0],i=e[1];i.affectChildren?r.forEach(function(t){n(t,i)}):n(r,i)}),this.clearPendingEvents(),e.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;)rM(n),n=n.parentNode;e&&t.forEach(function(t){rM(t)}),this.informDependentDisplayObjects(t),this.pendingEvents.push([t,{affectChildren:e}])},t.prototype.updateDisplayObjectDependency=function(t,e,n,r){if(e&&e!==n){var i=this.displayObjectDependencyMap.get(e);if(i&&i[t]){var o=i[t].indexOf(r);i[t].splice(o,1)}}if(n){var a=this.displayObjectDependencyMap.get(n);a||(this.displayObjectDependencyMap.set(n,{}),a=this.displayObjectDependencyMap.get(n)),a[t]||(a[t]=[]),a[t].push(r)}},t.prototype.informDependentDisplayObjects=function(t){var e=this,n=this.displayObjectDependencyMap.get(t);n&&Object.keys(n).forEach(function(t){n[t].forEach(function(n){e.dirtifyToRoot(n,!0),n.dispatchEvent(new rw(H.ATTR_MODIFIED,n,e,e,t,rw.MODIFICATION,e,e)),n.isCustomElement&&n.isConnected&&n.attributeChangedCallback&&n.attributeChangedCallback(t,e,e)})})},t.prototype.getPosition=function(t){var e=t.transformable;return q.getTranslation(e.position,this.getWorldTransform(t,e))},t.prototype.getRotation=function(t){var e=t.transformable;return q.getRotation(e.rotation,this.getWorldTransform(t,e))},t.prototype.getScale=function(t){var e=t.transformable;return q.getScaling(e.scaling,this.getWorldTransform(t,e))},t.prototype.getWorldTransform=function(t,e){return void 0===e&&(e=t.transformable),(e.localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},t.prototype.getLocalPosition=function(t){return t.transformable.localPosition},t.prototype.getLocalRotation=function(t){return t.transformable.localRotation},t.prototype.getLocalScale=function(t){return t.transformable.localScale},t.prototype.getLocalSkew=function(t){return t.transformable.localSkew},t.prototype.getLocalTransform=function(t){var e=t.transformable;return e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.localTransform},t.prototype.setLocalTransform=function(t,e){var n=q.getTranslation(K.Ue(),e),r=q.getRotation(Q.Ue(),e),i=q.getScaling(K.Ue(),e);this.setLocalScale(t,i),this.setLocalPosition(t,n),this.setLocalRotation(t,r)},t.prototype.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},t.prototype.getTransformedGeometryBounds=function(t,e,n){void 0===e&&(e=!1);var r=this.getGeometryBounds(t,e);if(tX.isEmpty(r))return null;var i=n||new tX;return i.setFromTransformedAABB(r,this.getWorldTransform(t)),i},t.prototype.getGeometryBounds=function(t,e){void 0===e&&(e=!1);var n=t.geometry;return(e?n.renderBounds:n.contentBounds||null)||new tX},t.prototype.getBounds=function(t,e){var n=this;void 0===e&&(e=!1);var r=t.renderable;if(!r.boundsDirty&&!e&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&e&&r.renderBounds)return r.renderBounds;var i=e?r.renderBounds:r.bounds,o=this.getTransformedGeometryBounds(t,e,i);if(t.childNodes.forEach(function(t){var r=n.getBounds(t,e);r&&(o?o.add(r):(o=i||new tX).update(r.center,r.halfExtents))}),e){var a=nz(t);if(a){var s=a.parsedStyle.clipPath.getBounds(e);o?s&&(o=s.intersection(o)):o=s}}return o||(o=new tX),o&&(e?r.renderBounds=o:r.bounds=o),e?r.renderBoundsDirty=!1:r.boundsDirty=!1,o},t.prototype.getLocalBounds=function(t){if(t.parentNode){var e=q.create();t.parentNode.transformable&&(e=q.invert(q.create(),this.getWorldTransform(t.parentNode)));var n=this.getBounds(t);if(!tX.isEmpty(n)){var r=new tX;return r.setFromTransformedAABB(n,e),r}}return this.getBounds(t)},t.prototype.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t);tX.isEmpty(i)||(r=new tX).setFromTransformedAABB(i,this.getWorldTransform(t));var o=null===(n=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0===n?void 0:n.getContextService().getBoundingClientRect();if(r){var a=(0,W.CR)(r.getMin(),2),s=a[0],l=a[1],c=(0,W.CR)(r.getMax(),2),u=c[0],h=c[1];return new tz(s+((null==o?void 0:o.left)||0),l+((null==o?void 0:o.top)||0),u-s,h-l)}return new tz((null==o?void 0:o.left)||0,(null==o?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(t,e){var n=this;if(!e.dirtyFlag){e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)});var r=t.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0,r.dirty=!0)}},t.prototype.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;rs;--p){for(var v=0;v=0;l--){var c=s[l].trim();!ro.test(c)&&0>ri.indexOf(c)&&(c='"'.concat(c,'"')),s[l]=c}return"".concat(r," ").concat(i," ").concat(o," ").concat(a," ").concat(s.join(","))}(e),d=this.measureFont(f,n);0===d.fontSize&&(d.fontSize=r,d.ascent=r);var v=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);v.font=f,e.isOverflowing=!1;var y=(i?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),g=Array(y.length),m=0;if(u){u.getTotalLength();for(var E=0;E=s){e.isOverflowing=!0;break}d=0,p[f]="";continue}if(d>0&&d+P>u){if(f+1>=s){if(e.isOverflowing=!0,g>0&&g<=u){for(var S=p[f].length,N=0,C=S,w=0;wu){C=w;break}N+=M}p[f]=(p[f]||"").slice(0,C)+h}break}if(d=0,p[++f]="",this.isBreakingSpace(x))continue;this.canBreakInLastChar(x)||(p=this.trimToBreakable(p),d=this.sumTextWidthByCache(p[f]||"",v)),this.shouldBreakByKinsokuShorui(x,T)&&(p=this.trimByKinsokuShorui(p),d+=y(b||""))}d+=P,p[f]=(p[f]||"")+x}return p.join("\n")},t.prototype.isBreakingSpace=function(t){return"string"==typeof t&&rA.BreakingSpaces.indexOf(t.charCodeAt(0))>=0},t.prototype.isNewline=function(t){return"string"==typeof t&&rA.Newlines.indexOf(t.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(t){var e=(0,W.ev)([],(0,W.CR)(t),!1),n=e[e.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return e;var i=n.slice(r,r+1),o=this.isBreakingSpace(i),a=r+1,s=r+(o?0:1);return e[e.length-1]+=n.slice(a,n.length),e[e.length-2]=n.slice(0,s),e},t.prototype.canBreakInLastChar=function(t){return!(t&&rO.test(t))},t.prototype.sumTextWidthByCache=function(t,e){return t.split("").reduce(function(t,n){if(!e[n])throw Error("cannot count the word without cache");return t+e[n]},0)},t.prototype.findBreakableIndex=function(t){for(var e=t.length-1;e>=0;e--)if(!rO.test(t[e]))return e;return -1},t.prototype.getFromCache=function(t,e,n,r){var i=n[t];if("number"!=typeof i){var o=t.length*e;i=r.measureText(t).width+o,n[t]=i}return i},t}(),rG={},r_=(T=new rf,P=new rp,(b={})[M.CIRCLE]=new rl,b[M.ELLIPSE]=new rc,b[M.RECT]=T,b[M.IMAGE]=T,b[M.GROUP]=T,b[M.LINE]=new ru,b[M.TEXT]=new rd(rG),b[M.POLYLINE]=P,b[M.POLYGON]=P,b[M.PATH]=new rh,b[M.HTML]=null,b[M.MESH]=null,b),rF=(N=new nC,C=new nk,(S={})[Y.PERCENTAGE]=null,S[Y.NUMBER]=new nG,S[Y.ANGLE]=new nS,S[Y.DEFINED_PATH]=new nN,S[Y.PAINT]=N,S[Y.COLOR]=N,S[Y.FILTER]=new nw,S[Y.LENGTH]=C,S[Y.LENGTH_PERCENTAGE]=C,S[Y.LENGTH_PERCENTAGE_12]=new nR,S[Y.LENGTH_PERCENTAGE_14]=new nA,S[Y.COORDINATE]=new nI,S[Y.OFFSET_DISTANCE]=new n_,S[Y.OPACITY_VALUE]=new nF,S[Y.PATH]=new nB,S[Y.LIST_OF_POINTS]=new nU,S[Y.SHADOW_BLUR]=new nZ,S[Y.TEXT]=new nV,S[Y.TEXT_TRANSFORM]=new nY,S[Y.TRANSFORM]=new ra,S[Y.TRANSFORM_ORIGIN]=new function(){this.parser=ny},S[Y.Z_INDEX]=new rs,S[Y.MARKER]=new nD,S);rG.CameraContribution=t$,rG.AnimationTimeline=null,rG.EasingFunction=null,rG.offscreenCanvasCreator=new rP,rG.nativeHTMLMap=new WeakMap,rG.sceneGraphSelector=new rC,rG.sceneGraphService=new rR(rG),rG.textService=new rD(rG),rG.geometryUpdaterFactory=r_,rG.CSSPropertySyntaxFactory=rF,rG.styleValueRegistry=new nP(rG),rG.layoutRegistry=null,rG.globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},rG.enableCSSParsing=!0,rG.enableDataset=!1,rG.enableStyleSyntax=!0;var rB=0,rU=new rw(H.INSERTED,null,"","","",0,"",""),rZ=new rw(H.REMOVED,null,"","","",0,"",""),rV=new rE(H.DESTROY),rY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.entity=rB++,e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.cullable={strategy:Z.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.geometry={contentBounds:void 0,renderBounds:void 0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.destroyed=!1,e.style={},e.computedStyle=rG.enableCSSParsing?{anchor:eu,opacity:eu,fillOpacity:eu,strokeOpacity:eu,fill:eu,stroke:eu,transform:eu,transformOrigin:eu,visibility:eu,pointerEvents:eu,lineWidth:eu,lineCap:eu,lineJoin:eu,increasedLineWidthForHitTesting:eu,fontSize:eu,fontFamily:eu,fontStyle:eu,fontWeight:eu,fontVariant:eu,textAlign:eu,textBaseline:eu,textTransform:eu,zIndex:eu,filter:eu,shadowType:eu}:null,e.parsedStyle={},e.attributes={},e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(t){return""!==t})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){throw Error(tK)},e.prototype.appendChild=function(t,e){var n;if(t.destroyed)throw Error("Cannot append a destroyed element.");return rG.sceneGraphService.attach(t,this,e),(null===(n=this.ownerDocument)||void 0===n?void 0:n.defaultView)&&this.ownerDocument.defaultView.mountChildren(t),rU.relatedNode=this,t.dispatchEvent(rU),t},e.prototype.insertBefore=function(t,e){if(e){var n=this.childNodes.indexOf(e);this.appendChild(t,n-1)}else this.appendChild(t);return t},e.prototype.replaceChild=function(t,e){var n=this.childNodes.indexOf(e);return this.removeChild(e),this.appendChild(t,n),e},e.prototype.removeChild=function(t){var e;return rZ.relatedNode=this,t.dispatchEvent(rZ),(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)&&t.ownerDocument.defaultView.unmountChildren(t),rG.sceneGraphService.detach(t),t},e.prototype.removeChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];this.removeChild(e)}},e.prototype.destroyChildren=function(){for(var t=this.childNodes.length-1;t>=0;t--){var e=this.childNodes[t];e.childNodes.length&&e.destroyChildren(),e.destroy()}},e.prototype.matches=function(t){return rG.sceneGraphService.matches(t,this)},e.prototype.getElementById=function(t){return rG.sceneGraphService.querySelector("#".concat(t),this)},e.prototype.getElementsByName=function(t){return rG.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)},e.prototype.getElementsByClassName=function(t){return rG.sceneGraphService.querySelectorAll(".".concat(t),this)},e.prototype.getElementsByTagName=function(t){return rG.sceneGraphService.querySelectorAll(t,this)},e.prototype.querySelector=function(t){return rG.sceneGraphService.querySelector(t,this)},e.prototype.querySelectorAll=function(t){return rG.sceneGraphService.querySelectorAll(t,this)},e.prototype.closest=function(t){var e=this;do{if(rG.sceneGraphService.matches(t,e))return e;e=e.parentElement}while(null!==e);return null},e.prototype.find=function(t){var e=this,n=null;return this.forEach(function(r){return!!(r!==e&&t(r))&&(n=r,!0)}),n},e.prototype.findAll=function(t){var e=this,n=[];return this.forEach(function(r){r!==e&&t(r)&&n.push(r)}),n},e.prototype.after=function(){for(var t=this,e=[],n=0;n1){var n=t[0].currentPoint,r=t[1].currentPoint,i=t[1].startTangent;e=[],i?(e.push([n[0]-i[0],n[1]-i[1]]),e.push([n[0],n[1]])):(e.push([r[0],r[1]]),e.push([n[0],n[1]]))}return e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.path.segments,e=t.length,n=[];if(e>1){var r=t[e-2].currentPoint,i=t[e-1].currentPoint,o=t[e-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n},e}(rJ),r8=function(t){function e(e){var n=this;void 0===e&&(e={});var r=e.style,i=(0,W._T)(e,["style"]);(n=t.call(this,(0,W.pi)({type:M.POLYGON,style:rG.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!0},r):(0,W.pi)({},r),initialParsedStyle:rG.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},i))||this).markerStartAngle=0,n.markerEndAngle=0,n.markerMidList=[];var o=n.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&rX(a)&&(n.markerStartAngle=a.getLocalEulerAngles(),n.appendChild(a)),l&&rX(l)&&n.placeMarkerMid(l),s&&rX(s)&&(n.markerEndAngle=s.getLocalEulerAngles(),n.appendChild(s)),n.transformMarker(!0),n.transformMarker(!1),n}return(0,W.ZT)(e,t),e.prototype.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&rX(r)&&(this.markerStartAngle=0,r.remove()),i&&rX(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&rX(r)&&(this.markerEndAngle=0,r.remove()),i&&rX(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.prototype.transformMarker=function(t){var e,n,r,i,o,a,s=this.parsedStyle,l=s.markerStart,c=s.markerEnd,u=s.markerStartOffset,h=s.markerEndOffset,p=s.points.points,f=s.defX,d=s.defY,v=t?l:c;if(v&&rX(v)){var y=0;if(r=p[0][0]-f,i=p[0][1]-d,t)e=p[1][0]-p[0][0],n=p[1][1]-p[0][1],o=u||0,a=this.markerStartAngle;else{var g=p.length;this.parsedStyle.isClosed?(e=p[g-1][0]-p[0][0],n=p[g-1][1]-p[0][1]):(r=p[g-1][0]-f,i=p[g-1][1]-d,e=p[g-2][0]-p[g-1][0],n=p[g-2][1]-p[g-1][1]),o=h||0,a=this.markerEndAngle}y=Math.atan2(n,e),v.setLocalEulerAngles(180*y/Math.PI+a),v.setLocalPosition(r+Math.cos(y)*o,i+Math.sin(y)*o)}},e.prototype.placeMarkerMid=function(t){var e=this.parsedStyle,n=e.points.points,r=e.defX,i=e.defY;if(this.markerMidList.forEach(function(t){t.remove()}),this.markerMidList=[],t&&rX(t))for(var o=1;o<(this.parsedStyle.isClosed?n.length:n.length-1);o++){var a=n[o][0]-r,s=n[o][1]-i,l=1===o?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(a,s)}},e}(rJ),r6=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:M.POLYLINE,style:rG.enableCSSParsing?(0,W.pi)({points:"",miterLimit:"",isClosed:!1},n):(0,W.pi)({},n),initialParsedStyle:rG.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r))||this}return(0,W.ZT)(e,t),e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(t,e){return void 0===e&&(e=!1),this.getPoint(t/this.getTotalLength(),e)},e.prototype.getPoint=function(t,e){void 0===e&&(e=!1);var n=this.parsedStyle,r=n.defX,i=n.defY,o=n.points,a=o.points,s=o.segments,l=0,c=0;s.forEach(function(e,n){t>=e[0]&&t<=e[1]&&(l=(t-e[0])/(e[1]-e[0]),c=n)});var u=(0,tP.U4)(a[c][0],a[c][1],a[c+1][0],a[c+1][1],l),h=u.x,p=u.y,f=K.fF(K.Ue(),K.al(h-r,p-i,0),e?this.getWorldTransform():this.getLocalTransform());return new tW(f[0],f[1])},e.prototype.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r8),r7=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:M.RECT,style:rG.enableCSSParsing?(0,W.pi)({x:"",y:"",width:"",height:"",radius:""},n):(0,W.pi)({},n)},r))||this}return(0,W.ZT)(e,t),e}(rJ),it=function(t){function e(e){void 0===e&&(e={});var n=e.style,r=(0,W._T)(e,["style"]);return t.call(this,(0,W.pi)({type:M.TEXT,style:rG.enableCSSParsing?(0,W.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},n):(0,W.pi)({fill:"black"},n),initialParsedStyle:rG.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},r))||this}return(0,W.ZT)(e,t),e.prototype.getComputedTextLength=function(){var t;return(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var t;return(null===(t=this.parsedStyle.metrics)||void 0===t?void 0:t.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}(rJ),ie=function(){function t(){this.registry={},this.define(M.CIRCLE,rQ),this.define(M.ELLIPSE,r1),this.define(M.RECT,r7),this.define(M.IMAGE,r5),this.define(M.LINE,r4),this.define(M.GROUP,r2),this.define(M.PATH,r9),this.define(M.POLYGON,r8),this.define(M.POLYLINE,r6),this.define(M.TEXT,it),this.define(M.HTML,r3)}return t.prototype.define=function(t,e){this.registry[t]=e},t.prototype.get=function(t){return this.registry[t]},t}(),ir=function(t){function e(){var e=t.call(this)||this;e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new rG.AnimationTimeline(e)}catch(t){}var n={};return nm.forEach(function(t){var e=t.n,r=t.inh,i=t.d;r&&i&&(n[e]=ee(i)?i(M.GROUP):i)}),e.documentElement=new r2({id:"g-root",style:n}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return(0,W.ZT)(e,t),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t);n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?it:r2);var r=new n(e);return r.ownerDocument=this,r},e.prototype.createElementNS=function(t,e,n){return this.createElement(e,n)},e.prototype.cloneNode=function(t){throw Error(tK)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(t){}},e.prototype.elementsFromBBox=function(t,e,n,r){var i=this.defaultView.context.rBushRoot.search({minX:t,minY:e,maxX:n,maxY:r}),o=[];return i.forEach(function(t){var e=t.displayObject,n=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(e.parsedStyle.pointerEvents);(!n||n&&e.isVisible())&&!e.isCulled()&&e.isInteractive()&&o.push(e)}),o.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),o},e.prototype.elementFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return null;var l=this.defaultView.viewport2Client({x:r,y:i}),c=l.x,u=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c,u,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,null];return c=(l=this.defaultView.viewport2Client({x:r,y:i})).x,u=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]})];case 1:return[2,(h=p.sent().picked)&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(t,e){var n=this.defaultView.canvas2Viewport({x:t,y:e}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return[];var l=this.defaultView.viewport2Client({x:r,y:i}),c=l.x,u=l.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(t,e){return(0,W.mG)(this,void 0,void 0,function(){var n,r,i,o,a,s,l,c,u,h;return(0,W.Jh)(this,function(p){switch(p.label){case 0:if(r=(n=this.defaultView.canvas2Viewport({x:t,y:e})).x,i=n.y,a=(o=this.defaultView.getConfig()).width,s=o.height,r<0||i<0||r>a||i>s)return[2,[]];return c=(l=this.defaultView.viewport2Client({x:r,y:i})).x,u=l.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:t,y:e,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]})];case 1:return(h=p.sent().picked)[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(t,e){throw Error(tq)},e.prototype.insertBefore=function(t,e){throw Error(tq)},e.prototype.removeChild=function(t,e){throw Error(tq)},e.prototype.replaceChild=function(t,e,n){throw Error(tq)},e.prototype.append=function(){throw Error(tq)},e.prototype.prepend=function(){throw Error(tq)},e.prototype.getElementById=function(t){return this.documentElement.getElementById(t)},e.prototype.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},e.prototype.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},e.prototype.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},e.prototype.querySelector=function(t){return this.documentElement.querySelector(t)},e.prototype.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},e.prototype.find=function(t){return this.documentElement.find(t)},e.prototype.findAll=function(t){return this.documentElement.findAll(t)},e}(rb),ii=function(){function t(t){this.strategies=t}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,o=this.strategies;r.hooks.cull.tap(t.tag,function(t){if(t){var e=t.cullable;return(0===o.length?e.visible=i.unculledEntities.indexOf(t.entity)>-1:e.visible=o.every(function(e){return e.isVisible(n,t)}),!t.isCulled()&&t.isVisible())?t:(t.dispatchEvent(new rE(H.CULLED)),null)}return t}),r.hooks.afterRender.tap(t.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),io=function(){function t(){var t=this;this.autoPreventDefault=!1,this.rootPointerEvent=new rg(null),this.rootWheelEvent=new rm(null),this.onPointerMove=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView;if(!a.supportsTouchEvents||"touch"!==e.pointerType){var s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),c=l.next();!c.done;c=l.next()){var u=c.value,h=t.bootstrapEvent(t.rootPointerEvent,u,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(e){var n,r,i,o,a=null===(o=null===(i=t.context.renderingContext.root)||void 0===i?void 0:i.ownerDocument)||void 0===o?void 0:o.defaultView,s=t.normalizeToPointerEvent(e,a);try{for(var l=(0,W.XA)(s),c=l.next();!c.done;c=l.next()){var u=c.value,h=t.bootstrapEvent(t.rootPointerEvent,u,a,e);t.context.eventService.mapEvent(h)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}t.setCursor(t.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(t){return n.context.renderingService.hooks.pickSync.call({position:t,picked:[],topmost:!0}).picked[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(t){var e=n.normalizeWheelEvent(t);n.context.eventService.mapEvent(e)}),r.hooks.pointerDown.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.normalizeToPointerEvent(t,i);n.autoPreventDefault&&o[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,c=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(t){if(!i.supportsTouchEvents||"touch"!==t.pointerType){var e,r,o=n.context.contextService.getDomElement(),a="outside";try{a=o&&t.target&&t.target!==o&&o.contains&&!o.contains(t.target)?"outside":""}catch(t){}var s=n.normalizeToPointerEvent(t,i);try{for(var l=(0,W.XA)(s),c=l.next();!c.done;c=l.next()){var u=c.value,h=n.bootstrapEvent(n.rootPointerEvent,u,i,t);h.type+=a,n.context.eventService.mapEvent(h)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(t){var e,r,o=n.normalizeToPointerEvent(t,i);try{for(var a=(0,W.XA)(o),s=a.next();!s.done;s=a.next()){var l=s.value,c=n.bootstrapEvent(n.rootPointerEvent,l,i,t);n.context.eventService.mapEvent(c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(t){var e,n,r=t.offsetX,i=t.offsetY,o=t.clientX,a=t.clientY;if(!this.context.config.supportsCSSTransform||(0,tr.Z)(r)||(0,tr.Z)(i)){var s=this.context.eventService.client2Viewport(new tW(o,a));e=s.x,n=s.y}else e=r,n=i;return{x:e,y:n}},t.prototype.bootstrapEvent=function(t,e,n,r){t.view=n,t.originalEvent=null,t.nativeEvent=r,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var i=this.getViewportXY(e),o=i.x,a=i.y;t.viewport.x=o,t.viewport.y=a;var s=this.context.eventService.viewport2Canvas(t.viewport),l=s.x,c=s.y;return t.canvas.x=l,t.canvas.y=c,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=r.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=nJ[t.type]||t.type),t},t.prototype.normalizeWheelEvent=function(t){var e=this.rootWheelEvent;this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ;var n=this.getViewportXY(t),r=n.x,i=n.y;e.viewport.x=r,e.viewport.y=i;var o=this.context.eventService.viewport2Canvas(e.viewport),a=o.x,s=o.y;return e.canvas.x=a,e.canvas.y=s,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},t.prototype.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=n$.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},t.prototype.setCursor=function(t){this.context.contextService.applyCursorStyle(t||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r-1,a=0,s=r.length;a=1?Math.ceil(M):1,C=l||("auto"===(n=nq(a,"width"))?a.offsetWidth:parseFloat(n))||a.width/M,w=c||("auto"===(r=nq(a,"height"))?a.offsetHeight:parseFloat(r))||a.height/M),s&&(rG.offscreenCanvas=s),i.devicePixelRatio=M,i.requestAnimationFrame=null!=v?v:n6.bind(rG.globalThis),i.cancelAnimationFrame=null!=y?y:n7.bind(rG.globalThis),i.supportsTouchEvents=null!=E?E:"ontouchstart"in rG.globalThis,i.supportsPointerEvents=null!=m?m:!!rG.globalThis.PointerEvent,i.isTouchEvent=null!=S?S:function(t){return i.supportsTouchEvents&&t instanceof rG.globalThis.TouchEvent},i.isMouseEvent=null!=N?N:function(t){return!rG.globalThis.MouseEvent||t instanceof rG.globalThis.MouseEvent&&(!i.supportsPointerEvents||!(t instanceof rG.globalThis.PointerEvent))},i.initRenderingContext({container:o,canvas:a,width:C,height:w,renderer:h,offscreenCanvas:s,devicePixelRatio:M,cursor:f||"default",background:p||"transparent",createImage:g,document:d,supportsCSSTransform:x,useNativeClickEvent:T,alwaysTriggerPointerEventOnCanvas:P}),i.initDefaultCamera(C,w,h.clipSpaceNearZ),i.initRenderer(h,!0),i}return(0,W.ZT)(e,t),e.prototype.initRenderingContext=function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(t,e,n){var r=this,i=new rG.CameraContribution;i.clipSpaceNearZ=n,i.setType(A.EXPLORING,O.DEFAULT).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(-(t/2),t/2,e/2,-(e/2),.1,1e3),i.canvas=this,i.eventEmitter.on(tJ.UPDATED,function(){r.context.renderingContext.renderReasons.add(X.CAMERA_CHANGED)}),this.context.camera=i},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var t=this;return!this.readyPromise&&(this.readyPromise=new Promise(function(e){t.resolveReadyPromise=function(){e(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!1),e||this.dispatchEvent(new rE(j.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),t&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),e||this.dispatchEvent(new rE(j.AFTER_DESTROY))},e.prototype.changeSize=function(t,e){this.resize(t,e)},e.prototype.resize=function(t,e){var n=this.context.config;n.width=t,n.height=e,this.getContextService().resize(t,e);var r=this.context.camera,i=r.getProjectionMode();r.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),i===L.ORTHOGRAPHIC?r.setOrthographic(-(t/2),t/2,e/2,-(e/2),r.getNear(),r.getFar()):r.setAspect(t/e),this.dispatchEvent(new rE(j.RESIZE,{width:t,height:e}))},e.prototype.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.prototype.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.prototype.removeChild=function(t){return this.document.documentElement.removeChild(t)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var t=this;this.dispatchEvent(ih),this.getRenderingService().render(this.getConfig(),function(){t.dispatchEvent(ip)}),this.dispatchEvent(id)},e.prototype.run=function(){var t=this,e=function(){t.render(),t.frameId=t.requestAnimationFrame(e)};e()},e.prototype.initRenderer=function(t,e){var n=this;if(void 0===e&&(e=!1),!t)throw Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new io,new il,new ii([new is])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService((0,W.pi)((0,W.pi)({},rG),this.context)),this.context.renderingService=new rS(rG,this.context),this.context.eventService=new rT(rG,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,e,!0)):this.context.contextService.initAsync().then(function(){n.initRenderingService(t,e)})},e.prototype.initRenderingService=function(t,e,n){var r=this;void 0===e&&(e=!1),void 0===n&&(n=!1),this.context.renderingService.init(function(){r.inited=!0,e?(n?r.requestAnimationFrame(function(){r.dispatchEvent(new rE(j.READY))}):r.dispatchEvent(new rE(j.READY)),r.readyPromise&&r.resolveReadyPromise()):r.dispatchEvent(new rE(j.RENDERER_CHANGED)),e||r.getRoot().forEach(function(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0)}),r.mountChildren(r.getRoot()),t.getConfig().enableAutoRendering&&r.run()})},e.prototype.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.context=e.context,t.init(rG)})},e.prototype.setRenderer=function(t){var e=this.getConfig();if(e.renderer!==t){var n=e.renderer;e.renderer=t,this.destroy(!1,!0),(0,W.ev)([],(0,W.CR)(null==n?void 0:n.getPlugins()),!1).reverse().forEach(function(t){t.destroy(rG)}),this.initRenderer(t)}},e.prototype.setCursor=function(t){this.getConfig().cursor=t,this.getContextService().applyCursorStyle(t)},e.prototype.unmountChildren=function(t){var e=this;t.childNodes.forEach(function(t){e.unmountChildren(t)}),this.inited&&(t.isMutationObserved?t.dispatchEvent(iu):(iu.target=t,this.dispatchEvent(iu,!0)),t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1),t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()},e.prototype.mountChildren=function(t){var e=this;this.inited?t.isConnected||(t.ownerDocument=this.document,t.isConnected=!0,t.isMutationObserved?t.dispatchEvent(ic):(ic.target=t,this.dispatchEvent(ic,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName),t.childNodes.forEach(function(t){e.mountChildren(t)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()},e.prototype.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.prototype.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.prototype.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.prototype.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.prototype.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.prototype.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})},e}(rx)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/367-2a6e805cba0c79d3.js b/pilot/server/static/_next/static/chunks/367-2a6e805cba0c79d3.js new file mode 100644 index 000000000..47c9cf585 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/367-2a6e805cba0c79d3.js @@ -0,0 +1,78 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[367],{27547:function(e,t,n){var r=n(64836);t.Z=void 0;var l=r(n(64938)),o=n(85893),a=(0,l.default)((0,o.jsx)("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}),"Groups");t.Z=a},15398:function(e,t,n){var r=n(64836);t.Z=void 0;var l=r(n(64938)),o=n(85893),a=(0,l.default)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=a},57838:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(67294);function l(){let[,e]=r.useReducer(e=>e+1,0);return e}},84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),l=n.n(r),o=n(50132),a=n(67294),i=n(53124),c=n(98866),s=n(65223);let u=a.createContext(null);var d=n(63185),f=n(45353),p=n(17415),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};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let z=S("checkbox",r),[P,T]=(0,d.ZP)(z),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${z}-wrapper`,{[`${z}-rtl`]:"rtl"===k,[`${z}-wrapper-checked`]:M.checked,[`${z}-wrapper-disabled`]:I,[`${z}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,T),L=l()({[`${z}-indeterminate`]:b},p.A,T);return P(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:z,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=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 v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,z={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},P=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:P,style:p},I,{ref:t}),a.createElement(u.Provider,{value:z},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("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}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,z=e.record,P=e.render,T=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,F=e.fixLeft,W=e.fixRight,D=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==T||""===T?[]:Array.isArray(T)?T:[T],n=(0,k.Z)(z,e),r=n,l=void 0;if(P){var o=P(n,z,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,z,x,T,P,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof F&&ee,ec="number"==typeof W&ⅇei&&(ea.position="sticky",ea.left=F),ec&&(ea.position="sticky",ea.right=W);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),D&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;z&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;z&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),z=n(45987),P=["children"];function T(e){return e.children}T.Row=function(e){var t=e.children,n=(0,z.Z)(e,P);return u.createElement("tr",n,t)},T.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},F=n(74204),W=n(64217),D=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,z=S.onTriggerExpand,P=S.rowClassName,T=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),F=_[0],W=_[1],D=m&&m.has(s);u.useEffect(function(){D&&W(!0)},[D]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(z);Y.current=z;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof P?t=P:"function"==typeof P&&(t=P(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,z.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,z.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),P=o[o.length-1],T={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(l),[T]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(o),[T]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,D.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,D.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,D.Z)(e),(0,D.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,D.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,z.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,F.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,F.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,P=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(P,e)||t},[P]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tT=u.useState(-1),tH=(tM=(0,a.Z)(tT,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tF=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tF(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tD=n.expandable,tK=(0,z.Z)(n,q),!1===(tW="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tD):tK).showExpandColumn&&(tW.expandIconColumnIndex=-1),tV=tW.expandIcon,tX=tW.expandedRowKeys,tU=tW.defaultExpandedRowKeys,tG=tW.defaultExpandAllRows,tY=tW.expandedRowRender,tJ=tW.onExpand,tq=tW.onExpandedRowsChange,tQ=tW.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t3=(t2=(0,a.Z)(t1,2))[0],t8=t2[1],t4=u.useMemo(function(){return new Set(tX||t3||[])},[tX,t3]),t6=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,D.Z)(t4)):t=[].concat((0,D.Z)(t4),[n]),t8(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tW,t0,t4,tV||ep,tQ,t6]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),ez=(0,a.Z)(ej,2),eP=ez[0],eT=ez[1],eM=u.useMemo(function(){return{columns:eP,flattenColumns:eT}},[eP,eT]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eF=u.useState(!1),eW=(0,a.Z)(eF,2),eD=eW[0],eK=eW[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(eT).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t5=eT.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function eT(e,t){return"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 eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={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"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eF=n(71577),eW=n(84567),eD=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,D.Z)(t),(0,D.Z)(e2(r))))}),t}function e3(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e8=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[z,P]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),T=e=>{let{selectedKeys:t}=e;P(t)};u.useEffect(()=>{Z&&T({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},F=()=>{R(!1),_(z())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?P(($||[]).map(e=>String(e))):P([])},D=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>T({selectedKeys:e}),selectedKeys:z(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(z())},clearFilters:W,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=z()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eW.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));P(e)}else P([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?T({selectedKeys:e}):T({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e3(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:D,onSelect:T,onDeselect:T,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eW.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e3(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:z(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eF.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>W()},x.filterReset),u.createElement(eF.ZP,{type:"primary",size:"small",onClick:F},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eD.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&P(j||[]),R(e),e||i.filterDropdown||F()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:eT(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:eT(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,D.Z)(r),(0,D.Z)(e4(e.children,t,a))))}),r}function e6(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e5(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e7=e=>e.flatMap(e=>"children"in e?[e].concat((0,D.Z)(e7(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e7(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>eT(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e6(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e6(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=eT(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e8,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=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},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,D.Z)(n),(0,D.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),z=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{z(R)},[R]);let{keyEntities:P}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,D.Z)(e),(0,D.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),T=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return T.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[T,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,P,H);return[e||[],t]},[R,v,P,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[F,W]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;z(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,D.Z)(e),a=new Set(A),i=T.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eD.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=T.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===T.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eW.Z,{checked:n?l:!!T.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),W(null)},disabled:0===T.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eW.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([F,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,D.Z)(L),[o]),!0,P,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},P,H).checkedKeys}V(o,!c,l,t)}c?W(null):W(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,D.Z)(t))}else o=[tc].concat((0,D.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,T,t,L,A,_,p,X,k,F,M,f,V,H]);return[U,A]},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:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={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"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:eT(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,D.Z)(r),(0,D.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:eT(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` + > ${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:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tz=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{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"}})}}},tP=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}}}}};let tT=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tM=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:l,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:x,paddingXXS:b}=e,v=r/2-o,y=2*v+3*o,w=`${o}px ${i} ${c}`,C=b-o;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${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({},tT(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/y})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,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:(f*m-3*o)/2-Math.ceil((1.4*p-3*o)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:x}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tH=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:i,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:x,colorPrimary:b,tableHeaderFilterActiveBg:v,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:E,boxShadowSecondary:S}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:v},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:l,backgroundColor:w,borderRadius:h,boxShadow:S,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${i}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${Z}-search`]:{padding:i,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-s}px ${i}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tL=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:i}=e;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:o,background:a},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${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:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+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`]:{position:"relative","&::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`]:{position:"relative","&::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}`}}}}},tB=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tA=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 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 ${n}px ${n}px`}}}}},t_=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"}}}}},tF=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4+2*a}},[` + table tr th${t}-selection-column, + table tr td${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:e.zIndexTableFixed+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:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}}}}},tW=e=>{let{componentCls:t}=e,n=(n,r,l,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tD=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:l,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&: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},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${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:o}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:i}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,l=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,lineWidth:o,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:x,tableFooterTextColor:b,tableFooterBg:v,paddingContentVerticalLG:y}=e,w=`${o}px ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${y}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${l}px`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} 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:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` + &${t}-row:hover > th, + &${t}-row:hover > td, + > th${t}-cell-row-hover, + > td${t}-cell-row-hover + `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:x}}}},[`${t}-footer`]:{padding:`${r}px ${l}px`,color:b,background:v}})}};var tU=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:l,colorSplit:o,colorBorderSecondary:a,fontSize:i,padding:c,paddingXS:s,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:x,colorFillContent:b,colorFillSecondary:v,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(b).onBackground(g).toHexShortString(),S=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:i,tableBg:g,tableRadius:x,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:a,tableHeaderTextColor:l,tableHeaderBg:S,tableFooterTextColor:l,tableFooterBg:S,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:S,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:S,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollBg:o});return[tX(k),tB(k),tV(k),tD(k),tH(k),tj(k),tA(k),tM(k),tV(k),tP(k),tF(k),tL(k),tK(k),tz(k),tW(k),t_(k)]});let tG=[];var tY=u.forwardRef((e,t)=>{let n,r,l;let{prefixCls:a,className:i,rootClassName:c,style:s,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:x="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:S,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:j,locale:z,showSorterTooltip:P=!0}=e,T=u.useMemo(()=>v||eu(y),[v,y]),M=u.useMemo(()=>T.some(e=>e.responsive),[T]),H=(0,eR.Z)(M),L=u.useMemo(()=>{let e=new Set(Object.keys(H).filter(e=>H[e]));return T.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[T,H]),B=(0,eS.Z)(e,["className","style","columns"]),{locale:A=eI.Z,direction:_,table:F,renderEmpty:W,getPrefixCls:K,getPopupContainer:V}=u.useContext(eZ.E_),X=(0,eO.Z)(d),U=Object.assign(Object.assign({},A.Table),z),G=m||tG,Y=K("table",a),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=u.useMemo(()=>G.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[G]),et={body:u.useRef()},en=u.useMemo(()=>"function"==typeof x?x:e=>null==e?void 0:e[x],[x]),[er]=function(e,t,n){let r=u.useRef({});return[function(l){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=new Map;!function e(r){r.forEach((r,o)=>{let a=n(r,o);l.set(a,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(l)}]}(G,Q,en),el={},eo=function(e,t){var n,r,l;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign(Object.assign({},el),e);o&&(null===(n=el.resetPagination)||void 0===n||n.call(el),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(l=a.pagination)||void 0===l?void 0:l.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:e5(tZ(G,a.sorterStates,Q),a.filterStates),action:t})},[ea,ei,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:o,showSorterTooltip:a}=e,[i,c]=u.useState(tE(n,!0)),s=u.useMemo(()=>{let e=!0,t=tE(n,!1);if(!t.length)return i;let r=[];function l(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach(t=>{null===o?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),l(t))}),r},[n,i]),d=u.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,D.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,l,o,a,i,c){return(n||[]).map((n,s)=>{let d=eM(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||o,s=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=eT(f,d),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&u.createElement(tb,{className:E()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&u.createElement(tg,{className:E()(`${t}-column-sorter-down`,{active:h===tw})});e=u.createElement("span",{className:E()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:x,triggerAsc:b,triggerDesc:v}=a||{},y=x;g===tw?y=v:g===ty&&(y=b);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:E()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let l=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},eH(n.title,r)),e);return s?u.createElement(tv.Z,Object.assign({},w),l):l},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick,a=r.onKeyDown;r.onClick=e=>{l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==o||o(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==a||a(e))};let i=function(e,t){let n=eH(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==i?void 0:i.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=E()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=i?i:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,l,o,a,i,d)})),f})})(t,e,s,f,l,o,a),s,d,()=>tk(s)]}({prefixCls:Y,mergedColumns:L,onSorterChange:(e,t)=>{eo({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:P}),ed=u.useMemo(()=>tZ(G,ei,Q),[G,ei]);el.sorter=es(),el.sorterStates=ei;let[ef,ep,em]=e9({prefixCls:Y,locale:U,dropdownPrefixCls:J,mergedColumns:L,onFilterChange:(e,t)=>{eo({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e5(ed,ep);el.filters=em,el.filterStates=ep;let eg=u.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[ex]=function(e){let t=u.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eH(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[eb,ev]=tn(eh.length,(e,t)=>{eo({pagination:Object.assign(Object.assign({},el.pagination),{current:e,pageSize:t})},"paginate")},h);el.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(eb,h),el.resetPagination=ev;let ey=u.useMemo(()=>{if(!1===h||!eb.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=eb;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,eb&&eb.current,eb&&eb.pageSize,eb&&eb.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:U,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:l,expandable:o}=e,a=`${t}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(a,{[`${a}-spaced`]:!o,[`${a}-expanded`]:o&&l,[`${a}-collapsed`]:o&&!l}),"aria-label":l?U.collapse:U.expand,"aria-expanded":l})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=u.useCallback(e=>ex(ew(ef(ea(e)))),[ea,ef,ew]);if(!1!==h&&(null==eb?void 0:eb.total)){let e;e=eb.size?eb.size:"small"===X||"middle"===X?"small":void 0;let t=t=>u.createElement(ej.Z,Object.assign({},eb,{className:E()(`${Y}-pagination ${Y}-pagination-${t}`,eb.className),size:e})),l="rtl"===_?"left":"right",{position:o}=eb;if(null!==o&&Array.isArray(o)){let e=o.find(e=>e.includes("top")),a=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||a||i||(r=t(l)),e&&(n=t(e.toLowerCase().replace("top",""))),a&&(r=t(a.toLowerCase().replace("bottom","")))}else r=t(l)}"boolean"==typeof S?l={spinning:S}:"object"==typeof S&&(l=Object.assign({spinning:!0},S));let[eE,eL]=tU(Y),eB=E()(`${Y}-wrapper`,null==F?void 0:F.className,{[`${Y}-wrapper-rtl`]:"rtl"===_},i,c,eL),eA=Object.assign(Object.assign({},null==F?void 0:F.style),s),e_=z&&z.emptyText||(null==W?void 0:W("Table"))||u.createElement(eN.Z,{componentName:"Table"});return eE(u.createElement("div",{ref:t,className:eB,style:eA},u.createElement(ez.Z,Object.assign({spinning:!1},l),n,u.createElement(eP,Object.assign({},B,{columns:L,direction:_,expandable:q,prefixCls:Y,className:E()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===G.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:e_,internalHooks:o,internalRefs:et,transformColumns:e$})),r)))});let tJ=u.forwardRef((e,t)=>{let n=u.useRef(0);return n.current+=1,u.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=l,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=tu,tJ.SELECTION_NONE=td,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=T;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(73935);function l(e,t,n,l){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,l),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,l)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function l(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return l}})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/367-5b7ab3e8e2777607.js b/pilot/server/static/_next/static/chunks/367-5b7ab3e8e2777607.js deleted file mode 100644 index a7a68b951..000000000 --- a/pilot/server/static/_next/static/chunks/367-5b7ab3e8e2777607.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[367],{27547:function(e,t,n){var r=n(64836);t.Z=void 0;var o=r(n(64938)),l=n(85893),i=(0,o.default)((0,l.jsx)("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91zM4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29zM20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3z"}),"Groups");t.Z=i},15398:function(e,t,n){var r=n(64836);t.Z=void 0;var o=r(n(64938)),l=n(85893),i=(0,o.default)((0,l.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.Z=i},57838:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(67294);function o(){let[,e]=r.useReducer(e=>e+1,0);return e}},84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),o=n.n(r),l=n(50132),i=n(67294),a=n(53124),c=n(98866),s=n(65223);let d=i.createContext(null);var u=n(63185),f=n(45353),p=n(17415),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 o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=i.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:b,indeterminate:v=!1,style:x,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,S=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:E,direction:k,checkbox:Z}=i.useContext(a.E_),N=i.useContext(d),{isFormItemInput:O}=i.useContext(s.aM),R=i.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,z=i.useRef(S.value);i.useEffect(()=>{null==N||N.registerValue(S.value)},[]),i.useEffect(()=>{if(!C)return S.value!==z.current&&(null==N||N.cancelValue(z.current),null==N||N.registerValue(S.value),z.current=S.value),()=>null==N?void 0:N.cancelValue(S.value)},[S.value]);let j=E("checkbox",r),[T,M]=(0,u.ZP)(j),P=Object.assign({},S);N&&!C&&(P.onChange=function(){S.onChange&&S.onChange.apply(S,arguments),N.toggleOption&&N.toggleOption({label:b,value:S.value})},P.name=N.name,P.checked=N.value.includes(S.value));let L=o()(`${j}-wrapper`,{[`${j}-rtl`]:"rtl"===k,[`${j}-wrapper-checked`]:P.checked,[`${j}-wrapper-disabled`]:I,[`${j}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,M),H=o()({[`${j}-indeterminate`]:v},p.A,M);return T(i.createElement(f.Z,{component:"Checkbox",disabled:I},i.createElement("label",{className:L,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),x),onMouseEnter:y,onMouseLeave:w},i.createElement(l.Z,Object.assign({"aria-checked":v?"mixed":void 0},P,{prefixCls:j,className:H,disabled:I,ref:t})),void 0!==b&&i.createElement("span",null,b))))});var g=n(74902),b=n(98423),v=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 o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let x=i.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:l=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,x=v(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=i.useContext(a.E_),[C,$]=i.useState(x.value||n||[]),[S,E]=i.useState([]);i.useEffect(()=>{"value"in x&&$(x.value||[])},[x.value]);let k=i.useMemo(()=>l.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[l]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,u.ZP)(Z),I=(0,b.Z)(x,["value","disabled"]),z=l.length?k.map(e=>i.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:x.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,j={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in x||$(n),null==m||m(n.filter(e=>S.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:x.disabled,name:x.name,registerValue:e=>{E(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{E(t=>t.filter(t=>t!==e))}},T=o()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(i.createElement("div",Object.assign({className:T,style:p},I,{ref:t}),i.createElement(d.Provider,{value:j},z)))});var y=i.memo(x);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},75081:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),o=n.n(r),l=n(98423),i=n(67294),a=n(96159),c=n(53124),s=n(23183),d=n(14747),u=n(67968),f=n(45503);let p=new s.E4("antSpinMove",{to:{opacity:1}}),m=new s.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:p,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:m,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var g=(0,u.Z)("Spin",e=>{let t=(0,f.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),b=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 o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let v=null,x=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:s,rootClassName:d,size:u="default",tip:f,wrapperClassName:p,style:m,children:h,hashId:g}=e,x=b(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[y,w]=i.useState(()=>n&&(!n||!r||!!isNaN(Number(r))));i.useEffect(()=>{if(n){var e;let t=function(e,t,n){var r,o=n||{},l=o.noTrailing,i=void 0!==l&&l,a=o.noLeading,c=void 0!==a&&a,s=o.debounceMode,d=void 0===s?void 0:s,u=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=Array(n),l=0;le?c?(f=Date.now(),i||(r=setTimeout(d?h:m,e))):m():!0!==i&&(r=setTimeout(d?h:m,void 0===d?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly;p(),u=!(void 0!==t&&t)},m}(r,()=>{w(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}w(!1)},[r,n]);let C=i.useMemo(()=>void 0!==h,[h]),{direction:$,spin:S}=i.useContext(c.E_),E=o()(t,null==S?void 0:S.className,{[`${t}-sm`]:"small"===u,[`${t}-lg`]:"large"===u,[`${t}-spinning`]:y,[`${t}-show-text`]:!!f,[`${t}-rtl`]:"rtl"===$},s,d,g),k=o()(`${t}-container`,{[`${t}-blur`]:y}),Z=(0,l.Z)(x,["indicator","prefixCls"]),N=Object.assign(Object.assign({},null==S?void 0:S.style),m),O=i.createElement("div",Object.assign({},Z,{style:N,className:E,"aria-live":"polite","aria-busy":y}),function(e,t){let{indicator:n}=t,r=`${e}-dot`;return null===n?null:(0,a.l$)(n)?(0,a.Tm)(n,{className:o()(n.props.className,r)}):(0,a.l$)(v)?(0,a.Tm)(v,{className:o()(v.props.className,r)}):i.createElement("span",{className:o()(r,`${e}-dot-spin`)},i.createElement("i",{className:`${e}-dot-item`,key:1}),i.createElement("i",{className:`${e}-dot-item`,key:2}),i.createElement("i",{className:`${e}-dot-item`,key:3}),i.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),f&&C?i.createElement("div",{className:`${t}-text`},f):null);return C?i.createElement("div",Object.assign({},Z,{className:o()(`${t}-nested-loading`,p,g)}),y&&i.createElement("div",{key:"loading"},O),i.createElement("div",{className:k,key:"container"},h)):O},y=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=i.useContext(c.E_),r=n("spin",t),[o,l]=g(r),a=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:l});return o(i.createElement(x,Object.assign({},a)))};y.setDefaultIndicator=e=>{v=e};var w=y},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,o={},l="rc-table-internal-hook",i=n(97685),a=n(66680),c=n(8410),s=n(91881),d=n(67294),u=n(73935);function f(e,t){var n=(0,a.Z)("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}),r=d.useContext(null==e?void 0:e.Context),o=r||{},l=o.listeners,u=o.getValue,f=d.useRef();f.current=n(r?u():null==e?void 0:e.defaultValue);var p=d.useState({}),m=(0,i.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return l.add(e),function(){l.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=d.createContext(null);function t(){return d.useContext(e)}return{makeImmutable:function(n,r){var o=(0,m.Yr)(n),l=function(l,i){var a=o?{ref:i}:{},c=d.useRef(0),s=d.useRef(l);return null!==t()?d.createElement(n,(0,p.Z)({},l,a)):((!r||r(s.current,l))&&(c.current+=1),s.current=l,d.createElement(e.Provider,{value:c.current},d.createElement(n,(0,p.Z)({},l,a))))};return o?d.forwardRef(l):l},responseImmutable:function(e,n){var r=(0,m.Yr)(e),o=function(n,o){var l=r?{ref:o}:{};return t(),d.createElement(e,(0,p.Z)({},n,l))};return r?d.memo(d.forwardRef(o),n):d.memo(o,n)},useImmutableMark:t}}(),g=h.makeImmutable,b=h.responseImmutable,v=h.useImmutableMark,x={Context:r=d.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,o=d.useRef(t);o.current=t;var l=d.useState(function(){return{getValue:function(){return o.current},listeners:new Set}}),a=(0,i.Z)(l,1)[0];return(0,c.Z)(function(){(0,u.unstable_batchedUpdates)(function(){a.listeners.forEach(function(e){e(t)})})},[t]),d.createElement(r.Provider,{value:a},n)},defaultValue:void 0};d.memo(function(){var e,t,n,r,o,l,i=(n=d.useRef(0),n.current+=1,r=d.useRef(e),o=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&o.push(t)}),r.current=e,l=d.useRef([]),o.length&&(l.current=o),d.useDebugValue(n.current),d.useDebugValue(l.current.join(", ")),t&&console.log("".concat(t,":"),n.current,l.current),n.current);return d.createElement("h1",null,"Render Times: ",i)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),S=n.n($),E=n(56982),k=n(88306);n(80334);var Z=d.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},o=r.key,l=r.dataIndex,i=o||(null==l?[]:Array.isArray(l)?l:[l]).join("-")||"RC_TABLE_KEY";n[i];)i="".concat(i,"_next");n[i]=!0,t.push(i)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,l=!0===n?{showTitle:!0}:n;return l&&(l.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():d.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t},R=d.memo(function(e){var t,n,r,o,l,a,c,u,m,h,g=e.component,b=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,z=e.align,j=e.record,T=e.render,M=e.dataIndex,P=e.renderIndex,L=e.shouldCellUpdate,H=e.index,D=e.rowType,B=e.colSpan,A=e.rowSpan,_=e.fixLeft,F=e.fixRight,W=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,G=e.appendNode,U=e.additionalProps,Y=void 0===U?{}:U,J=e.isSticky,q="".concat(R,"-cell"),Q=f(x,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=d.useContext(Z),n=v(),(0,E.Z)(function(){if(null!=b)return[b];var e=null==M||""===M?[]:Array.isArray(M)?M:[M],n=(0,k.Z)(j,e),r=n,o=void 0;if(T){var l=T(n,j,P);!l||"object"!==(0,y.Z)(l)||Array.isArray(l)||d.isValidElement(l)?r=l:(r=l.children,o=l.props,t.renderWithProps=!0)}return[r,o]},[n,j,b,M,T,P],function(e,n){if(L){var r=(0,i.Z)(e,2)[1];return L((0,i.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,i.Z)(en,2),eo=er[0],el=er[1],ei={},ea="number"==typeof _&&ee,ec="number"==typeof F&ⅇea&&(ei.position="sticky",ei.left=_),ec&&(ei.position="sticky",ei.right=F);var es=null!==(r=null!==(o=null!==(l=null==el?void 0:el.colSpan)&&void 0!==l?l:Y.colSpan)&&void 0!==o?o:B)&&void 0!==r?r:1,ed=null!==(a=null!==(c=null!==(u=null==el?void 0:el.rowSpan)&&void 0!==u?u:Y.rowSpan)&&void 0!==c?c:A)&&void 0!==a?a:1,eu=f(x,function(e){var t,n;return[(t=ed||1,n=e.hoverStartRow,H<=e.hoverEndRow&&H+t-1>=n),e.onHover]}),ef=(0,i.Z)(eu,2),ep=ef[0],em=ef[1];if(0===es||0===ed)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:D,ellipsis:$,children:eo}),eg=S()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ea&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),W&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),G),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ea||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!el&&ep),h),Y.className,null==el?void 0:el.className),eb={};z&&(eb.textAlign=z);var ev=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),eb),ei),null==el?void 0:el.style),ex=eo;return"object"!==(0,y.Z)(ex)||Array.isArray(ex)||d.isValidElement(ex)||(ex=null),$&&(K||V)&&(ex=d.createElement("span",{className:"".concat(q,"-content")},ex)),d.createElement(g,(0,p.Z)({},el,Y,{className:eg,style:ev,title:eh,scope:N,onMouseEnter:function(e){var t;j&&em(H,H+ed-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;j&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==ed?ed:null}),G,ex)});function I(e,t,n,r,o,l){var i,a,c=n[e]||{},s=n[t]||{};"left"===c.fixed?i=r.left["rtl"===o?t:e]:"right"===s.fixed&&(a=r.right["rtl"===o?e:t]);var d=!1,u=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=l&&l.children);return"rtl"===o?void 0!==i?p=!(h&&"left"===h.fixed)&&g:void 0!==a&&(f=!(m&&"right"===m.fixed)&&g):void 0!==i?d=!(m&&"left"===m.fixed)&&g:void 0!==a&&(u=!(h&&"right"===h.fixed)&&g),{fixLeft:i,fixRight:a,lastFixLeft:d,firstFixRight:u,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var z=d.createContext({}),j=n(45987),T=["children"];function M(e){return e.children}M.Row=function(e){var t=e.children,n=(0,j.Z)(e,T);return d.createElement("tr",n,t)},M.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,l=void 0===o?1:o,i=e.rowSpan,a=e.align,c=f(x,["prefixCls","direction"]),s=c.prefixCls,u=c.direction,m=d.useContext(z),h=m.scrollColumnIndex,g=m.stickyOffsets,b=m.flattenColumns,v=m.columns,y=n+l-1+1===h?l+1:l,w=I(n,n+y-1,b,g,u,null==v?void 0:v[n]);return d.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:a,colSpan:y,rowSpan:i,render:function(){return r}},w))};var P=b(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,l=f(x,"prefixCls"),i=r.length-1,a=r[i],c=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=a&&a.scrollbar?i:null,columns:o}},[a,r,i,n,o]);return d.createElement(z.Provider,{value:c},d.createElement("tfoot",{className:"".concat(l,"-summary")},t))}),L=n(9220),H=n(5110),D=n(98924),B=function(e){if((0,D.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},A=function(e,t){if(!B(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},_=n(74204),F=n(64217),W=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,l=e.className,i=e.expanded,a=e.colSpan,c=e.isEmpty,s=f(x,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,b=n;return(c?g:m)&&(b=d.createElement("div",{style:{width:h-(p?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&b)),d.createElement(r,{className:l,style:{display:i?null:"none"}},d.createElement(R,{component:o,prefixCls:t,colSpan:a},b))};function V(e){var t,n,r=e.className,o=e.style,l=e.record,a=e.index,c=e.renderIndex,s=e.rowKey,u=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,b=void 0===g?0:g,v=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,E=f(x,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=E.prefixCls,Z=E.fixedInfoList,O=E.flattenColumns,I=E.expandableType,z=E.expandRowByClick,j=E.onTriggerExpand,T=E.rowClassName,M=E.expandedRowClassName,P=E.indentSize,L=E.expandIcon,H=E.expandedRowRender,D=E.expandIconColumnIndex,B=d.useState(!1),A=(0,i.Z)(B,2),_=A[0],F=A[1],W=m&&m.has(s);d.useEffect(function(){W&&F(!0)},[W]);var V="row"===I&&(!u||u(l)),X="nest"===I,G=$&&l&&l[$],U=V||X,Y=d.useRef(j);Y.current=j;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(l,a);"string"==typeof T?t=T:"function"==typeof T&&(t=T(l,a,b));var Q=N(O),ee=d.createElement(v,(0,p.Z)({},q,{"data-row-key":s,className:S()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(b),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},o),q?q.style:null),onClick:function(e){var t;z&&U&&J(l,e);for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o=0;a-=1){var c=t[a],s=n&&n[a],u=s&&s[Q];if(c||u||i){var f=u||{},m=(f.columnType,(0,j.Z)(f,ee));o.unshift(d.createElement("col",(0,p.Z)({key:a,style:{width:c}},m))),i=!0}}return d.createElement("colgroup",null,o)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=d.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,l=e.flattenColumns,i=e.colWidths,a=e.columCount,c=e.stickyOffsets,s=e.direction,u=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,b=e.onScroll,v=e.maxContentScroll,y=e.children,$=(0,j.Z)(e,en),E=f(x,["prefixCls","scrollbarSize","isSticky"]),k=E.prefixCls,Z=E.scrollbarSize,N=E.isSticky,O=N&&!u?0:Z,R=d.useRef(null),I=d.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);d.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(b({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var z=d.useMemo(function(){return l.every(function(e){return e.width>=0})},[l]),T=l[l.length-1],M={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},P=(0,d.useMemo)(function(){return O?[].concat((0,W.Z)(o),[M]):o},[O,o]),L=(0,d.useMemo)(function(){return O?[].concat((0,W.Z)(l),[M]):l},[O,l]),H=(0,d.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,W.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,W.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),D=(0,d.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:l.ellipsis,align:l.align,component:l.title?i:a,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}el.displayName="HeaderRow";var ei=b(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,l=f(x,["prefixCls","getComponent"]),i=l.prefixCls,a=l.getComponent,c=d.useMemo(function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var l=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:l},i=1,a=n.children;return a&&a.length>0&&(i=e(a,l,o+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),l+=i,i})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},o=0;o0?[].concat((0,W.Z)(e),(0,W.Z)(eu(o).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,W.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,l=e.children,i=e.expandable,a=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,b=e.columnWidth,v=e.fixed,x=d.useMemo(function(){return r||ed(l)},[r,l]),y=d.useMemo(function(){if(i){var e,t,r=x.slice();if(!r.includes(o)){var l=m||0;l>=0&&r.splice(l,0,o)}var h=r.indexOf(o);r=r.filter(function(e,t){return e!==o||t===h});var y=x[h];t=("left"===v||v)&&!m?"left":("right"===v||v)&&m===x.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",b),(0,C.Z)(e,"render",function(e,t,r){var o=s(t,r),l=f({prefixCls:n,expanded:a.has(o),expandable:!p||p(t),record:t,onExpand:u});return g?d.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}),e);return r.map(function(e){return e===o?w:e})}return x.filter(function(e){return e!==o})},[i,x,s,a,f,h]),$=d.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),S=d.useMemo(function(){return"rtl"===h?eu($).map(function(e){var t=e.fixed,n=(0,j.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):eu($)},[$,h]);return[$,S]};function ep(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,l=e.expanded,i=e.expandable,a="".concat(n,"-row-expand-icon");return i?d.createElement("span",{className:S()(a,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),l),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!l),t)),onClick:function(e){o(r,e),e.stopPropagation()}}):d.createElement("span",{className:S()(a,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,d.useRef)(e),n=(0,d.useState)({}),r=(0,i.Z)(n,2)[1],o=(0,d.useRef)(null),l=(0,d.useRef)([]);return(0,d.useEffect)(function(){return function(){o.current=null}},[]),[t.current,function(e){l.current.push(e);var n=Promise.resolve();o.current=n,n.then(function(){if(o.current===n){var e=l.current,i=t.current;l.current=[],e.forEach(function(e){t.current=e(t.current)}),o.current=null,i!==t.current&&r({})}})}]}var eh=(0,D.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)},eb=n(64019),ev=n(27678),ex=d.forwardRef(function(e,t){var n,r,o=e.scrollBodyRef,l=e.onScroll,a=e.offsetScroll,c=e.container,s=f(x,"prefixCls"),u=(null===(n=o.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,m=u&&p*(p/u),h=d.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),b=(0,i.Z)(g,2),v=b[0],y=b[1],$=d.useRef({delta:0,x:0}),E=d.useState(!1),k=(0,i.Z)(E,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),l({scrollLeft:r/p*(u+2)}),$.current.x=e.pageX},I=function(){if(o.current){var e=(0,ev.os)(o.current).top,t=e+o.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,ev.os)(c).top+c.clientHeight;t-(0,_.Z)()<=n||e>=n-a?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},z=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/u*p||0})})};return(d.useImperativeHandle(t,function(){return{setScrollLeft:z}}),d.useEffect(function(){var e=(0,eb.Z)(document.body,"mouseup",O,!1),t=(0,eb.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),d.useEffect(function(){var e=(0,eb.Z)(c,"scroll",I,!1),t=(0,eb.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),d.useEffect(function(){v.isHiddenScrollBar||y(function(e){var t=o.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[v.isHiddenScrollBar]),u<=p||!m||v.isHiddenScrollBar)?null:d.createElement("div",{style:{height:(0,_.Z)(),width:p,bottom:a},className:"".concat(s,"-sticky-scroll")},d.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-v.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:S()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,o=n.className,c=n.rowClassName,u=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,b=n.direction,v=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,z=n.showHeader,T=n.components,D=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,G=n.transformColumns,U=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=d.useCallback(function(e,t){return(0,k.Z)(T,e)||t},[T]),er=d.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),el=(tM=d.useState(-1),tL=(tP=(0,i.Z)(tM,2))[0],tH=tP[1],tD=d.useState(-1),tA=(tB=(0,i.Z)(tD,2))[0],t_=tB[1],[tL,tA,d.useCallback(function(e,t){tH(e),t_(t)},[])]),ea=(0,i.Z)(el,3),ec=ea[0],es=ea[1],ed=ea[2],eu=(tW=n.expandable,tK=(0,j.Z)(n,q),!1===(tF="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tW):tK).showExpandColumn&&(tF.expandIconColumnIndex=-1),tV=tF.expandIcon,tX=tF.expandedRowKeys,tG=tF.defaultExpandedRowKeys,tU=tF.defaultExpandAllRows,tY=tF.expandedRowRender,tJ=tF.onExpand,tq=tF.onExpandedRowsChange,tQ=tF.childrenColumnName||"children",t0=d.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===l&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=d.useState(function(){if(tG)return tG;if(tU){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t4=(t2=(0,i.Z)(t1,2))[0],t3=t2[1],t8=d.useMemo(function(){return new Set(tX||t4||[])},[tX,t4]),t5=d.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t8.has(n);r?(t8.delete(n),t=(0,W.Z)(t8)):t=[].concat((0,W.Z)(t8),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t8,Q,tJ,tq]),[tF,t0,t8,tV||ep,tQ,t5]),eb=(0,i.Z)(eu,6),ev=eb[0],e$=eb[1],eS=eb[2],eE=eb[3],ek=eb[4],eZ=eb[5],eN=d.useState(0),eO=(0,i.Z)(eN,2),eR=eO[0],eI=eO[1],ez=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),ev),{},{expandable:!!ev.expandedRowRender,columnTitle:ev.columnTitle,expandedKeys:eS,getRowKey:er,onTriggerExpand:eZ,expandIcon:eE,expandIconColumnIndex:ev.expandIconColumnIndex,direction:b}),X===l?G:null),ej=(0,i.Z)(ez,2),eT=ej[0],eM=ej[1],eP=d.useMemo(function(){return{columns:eT,flattenColumns:eM}},[eT,eM]),eL=d.useRef(),eH=d.useRef(),eD=d.useRef(),eB=d.useRef(),eA=d.useRef(),e_=d.useState(!1),eF=(0,i.Z)(e_,2),eW=eF[0],eK=eF[1],eV=d.useState(!1),eX=(0,i.Z)(eV,2),eG=eX[0],eU=eX[1],eY=em(new Map),eJ=(0,i.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(eM).map(function(e){return eq.get(e)}),e1=d.useMemo(function(){return e0},[e0.join("_")]),e2=(t6=eM.length,(0,d.useMemo)(function(){for(var e=[],t=[],n=0,r=0,o=0;o0)):(eK(l>0),eU(l{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function eM(e,t){return"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 eP(e,t){return t?`${t}-${e}`:`${e}`}function eL(e,t){return"function"==typeof e?e(t):e}var eH={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"},eD=n(84089),eB=d.forwardRef(function(e,t){return d.createElement(eD.Z,(0,p.Z)({},e,{ref:t,icon:eH}))}),eA=n(57838),e_=n(71577),eF=n(84567),eW=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eG=n(78045),eU=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:l}=e;return r?d.createElement("div",{className:`${o}-filter-dropdown-search`},d.createElement(eJ.default,{prefix:d.createElement(eY.Z,null),placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,W.Z)(t),(0,W.Z)(e2(r))))}),t}function e4(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,o;let{tablePrefixCls:l,prefixCls:i,column:a,dropdownPrefixCls:c,columnKey:u,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:b,children:v,getPopupContainer:x}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:E,onFilterDropdownVisibleChange:k}=a,[Z,N]=d.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:E)&&void 0!==n?n:Z,z=null==h?void 0:h.filteredKeys,[j,T]=function(e){let t=d.useRef(e),n=(0,eA.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(z||[]),M=e=>{let{selectedKeys:t}=e;T(t)};d.useEffect(()=>{Z&&M({selectedKeys:z||[]})},[z]);let[P,L]=d.useState([]),[H,D]=d.useState(""),B=e=>{let{value:t}=e.target;D(t)};d.useEffect(()=>{Z||D("")},[Z]);let A=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:a,key:u,filteredKeys:t})},_=()=>{R(!1),A(j())},F=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&A([]),t&&R(!1),D(""),C?T(($||[]).map(e=>String(e))):T([])},W=S()({[`${c}-menu-without-submenu`]:!(a.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof a.filterDropdown)r=a.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>M({selectedKeys:e}),selectedKeys:j(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),A(j())},clearFilters:F,filters:a.filters,visible:I,close:()=>{R(!1)}});else if(a.filterDropdown)r=a.filterDropdown;else{let e=j()||[];r=d.createElement(d.Fragment,null,0===(a.filters||[]).length?d.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?d.createElement(d.Fragment,null,d.createElement(eq,{filterSearch:m,value:H,onChange:B,tablePrefixCls:l,locale:b}),d.createElement("div",{className:`${l}-filter-dropdown-tree`},f?d.createElement(eF.Z,{checked:e.length===e2(a.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==a?void 0:a.filters).map(e=>String(e));T(e)}else T([])}},b.filterCheckall):null,d.createElement(eU.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?M({selectedKeys:e}):M({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:H.trim()?e=>"function"==typeof m?m(H,V(e)):e4(H,e.title):void 0}))):d.createElement(d.Fragment,null,d.createElement(eq,{filterSearch:m,value:H,onChange:B,tablePrefixCls:l,locale:b}),d.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:W,onSelect:M,onDeselect:M,selectedKeys:e,getPopupContainer:x,openKeys:P,onOpenChange:e=>{L(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:a}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:a})};let s=l?eF.Z:eG.ZP,u={key:void 0!==t.value?c:n,label:d.createElement(d.Fragment,null,d.createElement(s,{checked:o.includes(c)}),d.createElement("span",null,t.text))};return i.trim()?"function"==typeof a?a(i,t)?u:null:e4(i,t.text)?u:null:u})}({filters:a.filters||[],filterSearch:m,prefixCls:i,filteredKeys:j(),filterMultiple:f,searchValue:H})})),d.createElement("div",{className:`${i}-dropdown-btns`},d.createElement(e_.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>F()},b.filterReset),d.createElement(e_.ZP,{type:"primary",size:"small",onClick:_},b.filterConfirm)))}a.filterDropdown&&(r=d.createElement(eX.J,{selectable:void 0},r)),o="function"==typeof a.filterIcon?a.filterIcon(O):a.filterIcon?a.filterIcon:d.createElement(eB,null);let{direction:X}=d.useContext(eZ.E_);return d.createElement("div",{className:`${i}-column`},d.createElement("span",{className:`${l}-column-title`},v),d.createElement(eW.Z,{dropdownRender:()=>d.createElement(e1,{className:`${i}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==z&&T(z||[]),R(e),e||a.filterDropdown||_()},getPopupContainer:x,placement:"rtl"===X?"bottomLeft":"bottomRight"},d.createElement("span",{role:"button",tabIndex:-1,className:S()(`${i}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},o)))};function e8(e,t,n){let r=[];return(e||[]).forEach((e,o)=>{var l;let i=eP(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(l=null==t?void 0:t.map(String))&&void 0!==l?l:t),r.push({column:e,key:eM(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:eM(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,W.Z)(r),(0,W.Z)(e8(e.children,t,i))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:o}=e,{filters:l,filterDropdown:i}=o;if(i)t[n]=r||null;else if(Array.isArray(r)){let e=e2(l);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e6(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:o}=t;return n&&o&&o.length?e.filter(e=>o.some(t=>{let o=e2(r),l=o.findIndex(e=>String(e)===String(t)),i=-1!==l?o[l]:t;return n(i,e)})):e},e)}let e7=e=>e.flatMap(e=>"children"in e?[e].concat((0,W.Z)(e7(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:l,locale:i}=e,a=d.useMemo(()=>e7(r||[]),[r]),[c,s]=d.useState(()=>e8(a,!0)),u=d.useMemo(()=>{let e=e8(a,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(a||[]).map((e,t)=>eM(e,eP(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=a[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[a,c]),f=d.useMemo(()=>e5(u),[u]),p=e=>{let t=u.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),o(e5(t),t)};return[e=>(function e(t,n,r,o,l,i,a,c){return r.map((r,s)=>{let u=eP(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=eM(h,u),c=o.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:o=>d.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:i,locale:l,getPopupContainer:a},eL(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,o,l,i,a,u)})),h})})(t,n,e,u,i,p,l),u,f]},te=n(38780),tt=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 o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:o=0}=r,l=tt(r,["total"]),[i,a]=(0,d.useState)(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:10})),c=(0,te.Z)(i,l,{total:o>0?o:e}),s=Math.ceil((o||e)/c.pageSize);c.current>s&&(c.current=s||1);let u=(e,t)=>{a({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),u(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),u]},tr=n(80882),to=n(10225),tl=n(17341),ti=n(1089),ta=n(21770);let tc={},ts="SELECT_ALL",td="SELECT_INVERT",tu="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,W.Z)(n),(0,W.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:l,onChange:i,onSelect:a,onSelectAll:c,onSelectInvert:s,onSelectNone:u,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:b,hideSelectAll:v,checkStrictly:x=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:E,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ta.Z)(r||o||tf,{value:r}),z=d.useRef(new Map),j=(0,d.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&z.current.has(e)&&(n=z.current.get(e)),t.set(e,n)}),z.current=t}},[$,n]);d.useEffect(()=>{j(R)},[R]);let{keyEntities:T}=(0,d.useMemo)(()=>{if(x)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>E(e,t))),n=Array.from(z.current).reduce((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)},[]);e=[].concat((0,W.Z)(e),(0,W.Z)(n))}return(0,ti.I8)(e,{externalGetKey:E,childrenPropName:Z})},[w,E,x,Z,n]),M=(0,d.useMemo)(()=>tp(Z,C),[Z,C]),P=(0,d.useMemo)(()=>{let e=new Map;return M.forEach((t,n)=>{let r=E(t,n),o=(l?l(t):null)||{};e.set(r,o)}),e},[M,E,l]),L=(0,d.useCallback)(e=>{var t;return!!(null===(t=P.get(E(e)))||void 0===t?void 0:t.disabled)},[P,E]),[H,D]=(0,d.useMemo)(()=>{if(x)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,tl.S)(R,!0,T,L);return[e||[],t]},[R,x,T,L]),B=(0,d.useMemo)(()=>{let e="radio"===m?H.slice(0,1):H;return new Set(e)},[H,m]),A=(0,d.useMemo)(()=>"radio"===m?new Set:new Set(D),[D,m]),[_,F]=(0,d.useState)(null);d.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,d.useCallback)((e,t)=>{let r,o;j(e),n?(r=e,o=e.map(e=>z.current.get(e))):(r=[],o=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),o.push(t))})),I(r),null==i||i(r,o,{type:t})},[I,$,i,n]),V=(0,d.useCallback)((e,t,n,r)=>{if(a){let o=n.map(e=>$(e));a($(e),t,o,r)}K(n,"single")},[a,$,K]),X=(0,d.useMemo)(()=>{if(!h||v)return null;let e=!0===h?[ts,td,tu]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>E(e,t)).filter(e=>{let t=P.get(e);return!(null==t?void 0:t.disabled)||B.has(e)}),"all")}}:e===td?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(B);C.forEach((t,n)=>{let r=E(t,n),o=P.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===tu?{key:"none",text:N.selectNone,onSelect(){null==u||u(),K(Array.from(B).filter(e=>{let t=P.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),o=0;o{var n;let r,o;if(!t)return e.filter(e=>e!==tc);let l=(0,W.Z)(e),i=new Set(B),a=M.map(E).filter(e=>!P.get(e).disabled),s=a.every(e=>i.has(e)),u=a.some(e=>i.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(a)},label:r}})};e=d.createElement("div",{className:`${y}-selection-extra`},d.createElement(eW.Z,{menu:t,getPopupContainer:O},d.createElement("span",null,d.createElement(tr.Z,null))))}let t=M.map((e,t)=>{let n=E(e,t),r=P.get(n)||{};return Object.assign({checked:i.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===M.length,o=n&&t.every(e=>{let{checked:t}=e;return t}),l=n&&t.some(e=>{let{checked:t}=e;return t});r=!v&&d.createElement("div",{className:`${y}-selection`},d.createElement(eF.Z,{checked:n?o:!!M.length&&s,indeterminate:n?!o&&l:!s&&u,onChange:()=>{let e=[];s?a.forEach(t=>{i.delete(t),e.push(t)}):a.forEach(t=>{i.has(t)||(i.add(t),e.push(t))});let t=Array.from(i);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),F(null)},disabled:0===M.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(o="radio"===m?(e,t,n)=>{let r=E(t,n),o=i.has(r);return{node:d.createElement(eG.ZP,Object.assign({},P.get(r),{checked:o,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:o}}:(e,t,n)=>{var r;let o;let l=E(t,n),c=i.has(l),s=A.has(l),u=P.get(l);return o="nest"===k?s:null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:d.createElement(eF.Z,Object.assign({},u,{indeterminate:o,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,o=-1;if(n&&x){let e=new Set([_,l]);a.some((t,n)=>{if(e.has(t)){if(-1!==r)return o=n,!0;r=n}return!1})}if(-1!==o&&r!==o&&x){let e=a.slice(r,o+1),t=[];c?e.forEach(e=>{i.has(e)&&(t.push(e),i.delete(e))}):e.forEach(e=>{i.has(e)||(t.push(e),i.add(e))});let n=Array.from(i);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(x){let e=c?(0,to._5)(H,l):(0,to.L0)(H,l);V(l,!c,e,t)}else{let e=(0,tl.S)([].concat((0,W.Z)(H),[l]),!0,T,L),{checkedKeys:n,halfCheckedKeys:r}=e,o=n;if(c){let e=new Set(n);e.delete(l),o=(0,tl.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},T,L).checkedKeys}V(l,!c,o,t)}c?F(null):F(l)}})),checked:c}},!l.includes(tc)){if(0===l.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=l;l=[e,tc].concat((0,W.Z)(t))}else l=[tc].concat((0,W.Z)(l))}let w=l.indexOf(tc);l=l.filter((e,t)=>e!==tc||t===w);let C=l[w-1],Z=l[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=S()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:l}=o(e,t,n);return b?b(l,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return l.map(e=>e===tc?I:e)},[E,M,t,H,B,A,p,X,k,_,P,f,V,L]);return[G,B]},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:"outlined"},tg=d.forwardRef(function(e,t){return d.createElement(eD.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tb={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"},tv=d.forwardRef(function(e,t){return d.createElement(eD.Z,(0,p.Z)({},e,{ref:t,icon:tb}))}),tx=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tS(e,t,n){let r=[];function o(e,t){r.push({column:e,key:eM(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,l)=>{let i=eP(l,n);e.children?("sortOrder"in e&&o(e,i),r=[].concat((0,W.Z)(r),(0,W.Z)(tS(e.children,t,i)))):e.sorter&&("sortOrder"in e?o(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:eM(e,i),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tE(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tE);return 0===t.length&&e.length?Object.assign(Object.assign({},tE(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),l=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return l.length?o.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):o}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tz=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,o)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${o+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` - > ${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:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tj=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{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"}})}}},tT=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}}}}};let tM=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tP=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:l,paddingXS:i,lineType:a,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:d,borderRadius:u,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:b,paddingXXS:v}=e,x=r/2-l,y=2*x+3*l,w=`${l}px ${a} ${c}`,C=v-l;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({},tM(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:u,transform:`scale(${r/y})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:x,insetInlineEnd:C,insetInlineStart:C,height:l},"&::after":{top:C,bottom:C,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:(f*m-3*l)/2-Math.ceil((1.4*p-3*l)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:b}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tL=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:a,colorText:c,lineWidth:s,lineType:d,tableBorderColor:u,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:b,colorPrimary:v,tableHeaderFilterActiveBg:x,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:S,boxShadowSecondary:E}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-m/2}px`,padding:`0 ${i}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:x},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:o,backgroundColor:w,borderRadius:h,boxShadow:E,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${a}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${Z}-search`]:{padding:a,borderBottom:O,"&-input":{input:{minWidth:l},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-s}px ${a}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tH=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:a}=e;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:l,background:i},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${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:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::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`]:{position:"relative","&::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}`}}}}},tD=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tB=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 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 ${n}px ${n}px`}}}}},tA=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"}}}}},t_=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:l,paddingXS:i,tableHeaderIconColor:a,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+o+l/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*i,[`&${t}-selection-col-with-dropdown`]:{width:s+o+l/4+2*i}},[` - table tr th${t}-selection-column, - table tr td${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:e.zIndexTableFixed+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:`${e.tablePaddingHorizontal/4}px`,[r]:{color:a,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}}}}},tF=e=>{let{componentCls:t}=e,n=(n,r,o,l)=>({[`${t}${t}-${n}`]:{fontSize:l,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${o}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${o/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${o}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${o/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tW=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&: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},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,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:l}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:a}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:a,display:"flex",alignItems:"center",background:i,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:l,lineType:i,tableBorderColor:a,tableFontSize:c,tableBg:s,tableRadius:d,tableHeaderTextColor:u,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:b,tableFooterTextColor:v,tableFooterBg:x,paddingContentVerticalLG:y}=e,w=`${l}px ${i} ${a}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${d}px ${d}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${d}px ${d}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${y}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:u,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} 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:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:u,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` - &${t}-row:hover > th, - &${t}-row:hover > td, - > th${t}-cell-row-hover, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:b}}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:v,background:x}})}};var tG=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:l,colorBorderSecondary:i,fontSize:a,padding:c,paddingXS:s,paddingSM:d,controlHeight:u,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:b,colorFillContent:v,colorFillSecondary:x,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(x).onBackground(g).toHexShortString(),S=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:a,tableBg:g,tableRadius:b,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:d,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:i,tableHeaderTextColor:o,tableHeaderBg:E,tableFooterTextColor:o,tableFooterBg:E,tableHeaderCellSplitColor:i,tableHeaderSortBg:$,tableHeaderSortHoverBg:S,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:v,tableFilterDropdownBg:g,tableRowHoverBg:E,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:u,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:l});return[tX(k),tD(k),tV(k),tW(k),tL(k),tz(k),tB(k),tP(k),tV(k),tT(k),t_(k),tH(k),tK(k),tj(k),tF(k),tA(k)]});let tU=[];var tY=d.forwardRef((e,t)=>{let n,r,o;let{prefixCls:i,className:a,rootClassName:c,style:s,size:u,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:b="key",rowClassName:v,columns:x,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:E,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:z,locale:j,showSorterTooltip:T=!0}=e,M=d.useMemo(()=>x||ed(y),[x,y]),P=d.useMemo(()=>M.some(e=>e.responsive),[M]),L=(0,eR.Z)(P),H=d.useMemo(()=>{let e=new Set(Object.keys(L).filter(e=>L[e]));return M.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[M,L]),D=(0,eE.Z)(e,["className","style","columns"]),{locale:B=eI.Z,direction:A,table:_,renderEmpty:F,getPrefixCls:K,getPopupContainer:V}=d.useContext(eZ.E_),X=(0,eO.Z)(u),G=Object.assign(Object.assign({},B.Table),j),U=m||tU,Y=K("table",i),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=d.useMemo(()=>U.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[U]),et={body:d.useRef()},en=d.useMemo(()=>"function"==typeof b?b:e=>null==e?void 0:e[b],[b]),[er]=function(e,t,n){let r=d.useRef({});return[function(o){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let o=new Map;!function e(r){r.forEach((r,l)=>{let i=n(r,l);o.set(i,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:n}}return r.current.kvMap.get(o)}]}(U,Q,en),eo={},el=function(e,t){var n,r,o;let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Object.assign(Object.assign({},eo),e);l&&(null===(n=eo.resetPagination)||void 0===n||n.call(eo),(null===(r=i.pagination)||void 0===r?void 0:r.current)&&(i.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(o=i.pagination)||void 0===o?void 0:o.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(i.pagination,i.filters,i.sorter,{currentDataSource:e6(tZ(U,i.sorterStates,Q),i.filterStates),action:t})},[ei,ea,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:l,showSorterTooltip:i}=e,[a,c]=d.useState(tS(n,!0)),s=d.useMemo(()=>{let e=!0,t=tS(n,!1);if(!t.length)return a;let r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let l=null;return t.forEach(t=>{null===l?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:l=!0)):(l&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,a]),u=d.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,W.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,o,l,i,a,c){return(n||[]).map((n,s)=>{let u=eP(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||l,s=void 0===f.showSorterTooltip?a:f.showSorterTooltip,p=eM(f,u),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&d.createElement(tv,{className:S()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&d.createElement(tg,{className:S()(`${t}-column-sorter-down`,{active:h===tw})});e=d.createElement("span",{className:S()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},d.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:b,triggerAsc:v,triggerDesc:x}=i||{},y=b;g===tw?y=x:g===ty&&(y=v);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:S()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let o=d.createElement("div",{className:`${t}-column-sorters`},d.createElement("span",{className:`${t}-column-title`},eL(n.title,r)),e);return s?d.createElement(tx.Z,Object.assign({},w),o):o},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},l=r.onClick,i=r.onKeyDown;r.onClick=e=>{o({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==l||l(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(o({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==i||i(e))};let a=function(e,t){let n=eL(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==a?void 0:a.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=S()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=a?a:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,o,l,i,a,u)})),f})})(t,e,s,f,o,l,i),s,u,()=>tk(s)]}({prefixCls:Y,mergedColumns:H,onSorterChange:(e,t)=>{el({sorter:e,sorterStates:t},"sort",!1)},sortDirections:z||["ascend","descend"],tableLocale:G,showSorterTooltip:T}),eu=d.useMemo(()=>tZ(U,ea,Q),[U,ea]);eo.sorter=es(),eo.sorterStates=ea;let[ef,ep,em]=e9({prefixCls:Y,locale:G,dropdownPrefixCls:J,mergedColumns:H,onFilterChange:(e,t)=>{el({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e6(eu,ep);eo.filters=em,eo.filterStates=ep;let eg=d.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[eb]=function(e){let t=d.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eL(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[ev,ex]=tn(eh.length,(e,t)=>{el({pagination:Object.assign(Object.assign({},eo.pagination),{current:e,pageSize:t})},"paginate")},h);eo.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(ev,h),eo.resetPagination=ex;let ey=d.useMemo(()=>{if(!1===h||!ev.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=ev;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,ev&&ev.current,ev&&ev.pageSize,ev&&ev.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:G,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:o,expandable:l}=e,i=`${t}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:S()(i,{[`${i}-spaced`]:!l,[`${i}-expanded`]:l&&o,[`${i}-collapsed`]:l&&!o}),"aria-label":o?G.collapse:G.expand,"aria-expanded":o})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=d.useCallback(e=>eb(ew(ef(ei(e)))),[ei,ef,ew]);if(!1!==h&&(null==ev?void 0:ev.total)){let e;e=ev.size?ev.size:"small"===X||"middle"===X?"small":void 0;let t=t=>d.createElement(ez.Z,Object.assign({},ev,{className:S()(`${Y}-pagination ${Y}-pagination-${t}`,ev.className),size:e})),o="rtl"===A?"left":"right",{position:l}=ev;if(null!==l&&Array.isArray(l)){let e=l.find(e=>e.includes("top")),i=l.find(e=>e.includes("bottom")),a=l.every(e=>"none"==`${e}`);e||i||a||(r=t(o)),e&&(n=t(e.toLowerCase().replace("top",""))),i&&(r=t(i.toLowerCase().replace("bottom","")))}else r=t(o)}"boolean"==typeof E?o={spinning:E}:"object"==typeof E&&(o=Object.assign({spinning:!0},E));let[eS,eH]=tG(Y),eD=S()(`${Y}-wrapper`,null==_?void 0:_.className,{[`${Y}-wrapper-rtl`]:"rtl"===A},a,c,eH),eB=Object.assign(Object.assign({},null==_?void 0:_.style),s),eA=j&&j.emptyText||(null==F?void 0:F("Table"))||d.createElement(eN.Z,{componentName:"Table"});return eS(d.createElement("div",{ref:t,className:eD,style:eB},d.createElement(ej.Z,Object.assign({spinning:!1},o),n,d.createElement(eT,Object.assign({},D,{columns:H,direction:A,expandable:q,prefixCls:Y,className:S()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===U.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof v?S()(v(e,t,n)):S()(v),S()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:eA,internalHooks:l,internalRefs:et,transformColumns:e$})),r)))});let tJ=d.forwardRef((e,t)=>{let n=d.useRef(0);return n.current+=1,d.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=o,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=td,tJ.SELECTION_NONE=tu,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=M;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(73935);function o(e,t,n,o){var l=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,l,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,l,o)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return o}})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/63-d9f1013be8e4599a.js b/pilot/server/static/_next/static/chunks/63-d9f1013be8e4599a.js new file mode 100644 index 000000000..235e01dd3 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/63-d9f1013be8e4599a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63],{6321:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27704:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31484:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:t}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:e}}]}},name:"delete",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31326:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31545:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27595:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27329:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={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-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",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}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},68346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},64082:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},88008:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},78346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:e}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"message",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},18754:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},28058:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},15746:function(e,t,n){var i=n(21584);t.Z=i.Z},96074:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(94184),o=n.n(i),r=n(67294),a=n(53124),l=n(14747),c=n(67968),s=n(45503);let d=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var p=(0,c.Z)("Divider",e=>{let t=(0,s.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[d(t)]},{sizePaddingEdgeHorizontal:0}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},g=e=>{let{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:d,className:g,rootClassName:h,children:u,dashed:$,plain:f,style:b}=e,v=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),S=t("divider",l),[w,x]=p(S),y=s.length>0?`-${s}`:s,C=!!u,I="left"===s&&null!=d,z="right"===s&&null!=d,k=o()(S,null==i?void 0:i.className,x,`${S}-${c}`,{[`${S}-with-text`]:C,[`${S}-with-text${y}`]:C,[`${S}-dashed`]:!!$,[`${S}-plain`]:!!f,[`${S}-rtl`]:"rtl"===n,[`${S}-no-default-orientation-margin-left`]:I,[`${S}-no-default-orientation-margin-right`]:z},g,h),M=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),E=Object.assign(Object.assign({},I&&{marginLeft:M}),z&&{marginRight:M});return w(r.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},null==i?void 0:i.style),b)},v,{role:"separator"}),u&&"vertical"!==c&&r.createElement("span",{className:`${S}-inner-text`,style:E},u)))}},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},74627:function(e,t,n){n.d(t,{Z:function(){return k}});var i=n(94184),o=n.n(i),r=n(67294);let a=e=>e?"function"==typeof e?e():e:null;var l=n(33603),c=n(53124),s=n(83062),d=n(92419),p=n(14747),m=n(50438),g=n(77786),h=n(8796),u=n(67968),$=n(45503);let f=e=>{let{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:o,popoverPadding:r,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:d,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:r},[`${t}-title`]:{minWidth:i,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,g.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},b=e=>{let{componentCls:t}=e;return{[t]:h.i.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},v=e=>{let{componentCls:t,lineWidth:n,lineType:i,colorSplit:o,paddingSM:r,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,d=a-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${i} ${o}`},[`${t}-inner-content`]:{padding:`${r}px ${s}px`}}}};var S=(0,u.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:i}=e,o=(0,$.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[f(o),b(o),i&&v(o),(0,m._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let x=(e,t,n)=>{if(t||n)return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},a(t)),r.createElement("div",{className:`${e}-inner-content`},a(n)))},y=e=>{let{hashId:t,prefixCls:n,className:i,style:a,placement:l="top",title:c,content:s,children:p}=e;return r.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,i),style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(d.G,Object.assign({},e,{className:t,prefixCls:n}),p||x(n,c,s)))};var C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let I=e=>{let{title:t,content:n,prefixCls:i}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-title`},a(t)),r.createElement("div",{className:`${i}-inner-content`},a(n)))},z=r.forwardRef((e,t)=>{let{prefixCls:n,title:i,content:a,overlayClassName:d,placement:p="top",trigger:m="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:h=.1,overlayStyle:u={}}=e,$=C(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=r.useContext(c.E_),b=f("popover",n),[v,w]=S(b),x=f(),y=o()(d,w);return v(r.createElement(s.Z,Object.assign({placement:p,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:h,overlayStyle:u},$,{prefixCls:b,overlayClassName:y,ref:t,overlay:i||a?r.createElement(I,{prefixCls:b,title:i,content:a}):null,transitionName:(0,l.m)(x,"zoom-big",$.transitionName),"data-popover-inject":!0})))});z._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t}=e,n=w(e,["prefixCls"]),{getPrefixCls:i}=r.useContext(c.E_),o=i("popover",t),[a,l]=S(o);return a(r.createElement(y,Object.assign({},n,{prefixCls:o,hashId:l})))};var k=z},71230:function(e,t,n){var i=n(92820);t.Z=i.Z},75081:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),c=n(53124),s=n(23183),d=n(14747),p=n(67968),m=n(45503);let g=new s.E4("antSpinMove",{to:{opacity:1}}),h=new s.E4("antRotate",{to:{transform:"rotate(405deg)"}}),u=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:g,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:h,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var $=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[u(t)]},{contentHeight:400}),f=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let b=null,v=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:s,rootClassName:d,size:p="default",tip:m,wrapperClassName:g,style:h,children:u,hashId:$}=e,v=f(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[S,w]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,d=void 0===s?void 0:s,p=!1,m=0;function g(){i&&clearTimeout(i)}function h(){for(var n=arguments.length,o=Array(n),r=0;re?c?(m=Date.now(),a||(i=setTimeout(d?u:h,e))):h():!0!==a&&(i=setTimeout(d?u:h,void 0===d?e-s:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly;g(),p=!(void 0!==t&&t)},h}(i,()=>{w(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}w(!1)},[i,n]);let x=a.useMemo(()=>void 0!==u,[u]),{direction:y,spin:C}=a.useContext(c.E_),I=o()(t,null==C?void 0:C.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:S,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===y},s,d,$),z=o()(`${t}-container`,{[`${t}-blur`]:S}),k=(0,r.Z)(v,["indicator","prefixCls"]),M=Object.assign(Object.assign({},null==C?void 0:C.style),h),E=a.createElement("div",Object.assign({},k,{style:M,className:I,"aria-live":"polite","aria-busy":S}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(b)?(0,l.Tm)(b,{className:o()(b.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&x?a.createElement("div",{className:`${t}-text`},m):null);return x?a.createElement("div",Object.assign({},k,{className:o()(`${t}-nested-loading`,g,$)}),S&&a.createElement("div",{key:"loading"},E),a.createElement("div",{className:z,key:"container"},u)):E},S=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(c.E_),i=n("spin",t),[o,r]=$(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(v,Object.assign({},l)))};S.setDefaultIndicator=e=>{b=e};var w=S},3363:function(e,t,n){n.d(t,{Z:function(){return V}});var i,o,r=n(63606),a=n(97937),l=n(94184),c=n.n(l),s=n(87462),d=n(1413),p=n(4942),m=n(45987),g=n(67294),h=n(15105),u=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function $(e){return"string"==typeof e}var f=function(e){var t,n,i,o,r,a=e.className,l=e.prefixCls,f=e.style,b=e.active,v=e.status,S=e.iconPrefix,w=e.icon,x=(e.wrapperStyle,e.stepNumber),y=e.disabled,C=e.description,I=e.title,z=e.subTitle,k=e.progressDot,M=e.stepIcon,E=e.tailContent,O=e.icons,H=e.stepIndex,Z=e.onStepClick,N=e.onClick,j=e.render,P=(0,m.Z)(e,u),T={};Z&&!y&&(T.role="button",T.tabIndex=0,T.onClick=function(e){null==N||N(e),Z(H)},T.onKeyDown=function(e){var t=e.which;(t===h.Z.ENTER||t===h.Z.SPACE)&&Z(H)});var D=v||"wait",X=c()("".concat(l,"-item"),"".concat(l,"-item-").concat(D),a,(r={},(0,p.Z)(r,"".concat(l,"-item-custom"),w),(0,p.Z)(r,"".concat(l,"-item-active"),b),(0,p.Z)(r,"".concat(l,"-item-disabled"),!0===y),r)),W=(0,d.Z)({},f),B=g.createElement("div",(0,s.Z)({},P,{className:X,style:W}),g.createElement("div",(0,s.Z)({onClick:N},T,{className:"".concat(l,"-item-container")}),g.createElement("div",{className:"".concat(l,"-item-tail")},E),g.createElement("div",{className:"".concat(l,"-item-icon")},(i=c()("".concat(l,"-icon"),"".concat(S,"icon"),(t={},(0,p.Z)(t,"".concat(S,"icon-").concat(w),w&&$(w)),(0,p.Z)(t,"".concat(S,"icon-check"),!w&&"finish"===v&&(O&&!O.finish||!O)),(0,p.Z)(t,"".concat(S,"icon-cross"),!w&&"error"===v&&(O&&!O.error||!O)),t)),o=g.createElement("span",{className:"".concat(l,"-icon-dot")}),n=k?"function"==typeof k?g.createElement("span",{className:"".concat(l,"-icon")},k(o,{index:x-1,status:v,title:I,description:C})):g.createElement("span",{className:"".concat(l,"-icon")},o):w&&!$(w)?g.createElement("span",{className:"".concat(l,"-icon")},w):O&&O.finish&&"finish"===v?g.createElement("span",{className:"".concat(l,"-icon")},O.finish):O&&O.error&&"error"===v?g.createElement("span",{className:"".concat(l,"-icon")},O.error):w||"finish"===v||"error"===v?g.createElement("span",{className:i}):g.createElement("span",{className:"".concat(l,"-icon")},x),M&&(n=M({index:x-1,status:v,title:I,description:C,node:n})),n)),g.createElement("div",{className:"".concat(l,"-item-content")},g.createElement("div",{className:"".concat(l,"-item-title")},I,z&&g.createElement("div",{title:"string"==typeof z?z:void 0,className:"".concat(l,"-item-subtitle")},z)),C&&g.createElement("div",{className:"".concat(l,"-item-description")},C))));return j&&(B=j(B)||null),B},b=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function v(e){var t,n=e.prefixCls,i=void 0===n?"rc-steps":n,o=e.style,r=void 0===o?{}:o,a=e.className,l=(e.children,e.direction),h=e.type,u=void 0===h?"default":h,$=e.labelPlacement,v=e.iconPrefix,S=void 0===v?"rc":v,w=e.status,x=void 0===w?"process":w,y=e.size,C=e.current,I=void 0===C?0:C,z=e.progressDot,k=e.stepIcon,M=e.initial,E=void 0===M?0:M,O=e.icons,H=e.onChange,Z=e.itemRender,N=e.items,j=(0,m.Z)(e,b),P="inline"===u,T=P||void 0!==z&&z,D=P?"horizontal":void 0===l?"horizontal":l,X=P?void 0:y,W=T?"vertical":void 0===$?"horizontal":$,B=c()(i,"".concat(i,"-").concat(D),a,(t={},(0,p.Z)(t,"".concat(i,"-").concat(X),X),(0,p.Z)(t,"".concat(i,"-label-").concat(W),"horizontal"===D),(0,p.Z)(t,"".concat(i,"-dot"),!!T),(0,p.Z)(t,"".concat(i,"-navigation"),"navigation"===u),(0,p.Z)(t,"".concat(i,"-inline"),P),t)),L=function(e){H&&I!==e&&H(e)};return g.createElement("div",(0,s.Z)({className:B,style:r},j),(void 0===N?[]:N).filter(function(e){return e}).map(function(e,t){var n=(0,d.Z)({},e),o=E+t;return"error"===x&&t===I-1&&(n.className="".concat(i,"-next-error")),n.status||(o===I?n.status=x:o{let{componentCls:t,customIconTop:n,customIconSize:i,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:i,height:i,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},E=e=>{let{componentCls:t,inlineDotSize:n,inlineTitleColor:i,inlineTailColor:o}=e,r=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:i}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:i,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:i}}}}}},O=e=>{let{componentCls:t,iconSize:n,lineHeight:i,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:i}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},H=e=>{let{componentCls:t,navContentMaxWidth:n,navArrowColor:i,stepsNavActiveColor:o,motionDurationSlow:r}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},I.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Z=e=>{let{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.iconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.iconSizeSM/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},N=e=>{let{componentCls:t,descriptionMaxWidth:n,lineHeight:i,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:i},"&-tail":{top:Math.floor((e.dotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(e.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(r-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(r-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},j=e=>{let{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},P=e=>{let{componentCls:t,iconSizeSM:n,fontSizeSM:i,fontSize:o,colorTextDescription:r}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:i,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},T=e=>{let{componentCls:t,iconSizeSM:n,iconSize:i}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${i}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${i+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}};(i=o||(o={})).wait="wait",i.process="process",i.finish="finish",i.error="error";let D=(e,t)=>{let n=`${t.componentCls}-item`,i=`${e}IconColor`,o=`${e}TitleColor`,r=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[i],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[r]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},X=e=>{let{componentCls:t,motionDurationSlow:n}=e,i=`${t}-item`,r=`${i}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[i]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${i}-container > ${i}-tail, > ${i}-container > ${i}-content > ${i}-title::after`]:{display:"none"}}},[`${i}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,I.oN)(e))}},[`${r}, ${i}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.iconSize}px`,textAlign:"center",borderRadius:e.iconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${i}-tail`]:{position:"absolute",top:e.iconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${i}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.titleLineHeight}px`,"&::after":{position:"absolute",top:e.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${i}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${i}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},D(o.wait,e)),D(o.process,e)),{[`${i}-process > ${i}-container > ${i}-title`]:{fontWeight:e.fontWeightStrong}}),D(o.finish,e)),D(o.error,e)),{[`${i}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${i}-disabled`]:{cursor:"not-allowed"}})},W=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},B=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,I.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),X(e)),W(e)),M(e)),P(e)),T(e)),O(e)),N(e)),H(e)),j(e)),Z(e)),E(e))}};var L=(0,z.Z)("Steps",e=>{let{wireframe:t,colorTextDisabled:n,controlHeightLG:i,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:l,colorTextDescription:c,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:p,colorError:m,colorBgContainer:g,colorBorderSecondary:h,colorSplit:u}=e,$=(0,k.TS)(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitIconColor:t?n:l,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:u,waitIconBgColor:t?g:d,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:c,finishTailColor:a,finishIconBgColor:t?g:p,finishIconBorderColor:t?a:p,finishDotColor:a,errorIconColor:o,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:u,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:a,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:h});return[B($)]},e=>{let{colorTextDisabled:t,fontSize:n,controlHeightSM:i,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=e;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:i,iconSize:o,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),R=n(50344),A=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let G=e=>{let{percent:t,size:n,className:i,rootClassName:o,direction:l,items:s,responsive:d=!0,current:p=0,children:m,style:h}=e,u=A(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:$}=(0,x.Z)(d),{getPrefixCls:f,direction:b,steps:I}=g.useContext(S.E_),z=g.useMemo(()=>d&&$?"vertical":l,[$,l]),k=(0,w.Z)(n),M=f("steps",e.prefixCls),[E,O]=L(M),H="inline"===e.type,Z=f("",e.iconPrefix),N=function(e,t){if(e)return e;let n=(0,R.Z)(t).map(e=>{if(g.isValidElement(e)){let{props:t}=e,n=Object.assign({},t);return n}return null});return n.filter(e=>e)}(s,m),j=H?void 0:t,P=Object.assign(Object.assign({},null==I?void 0:I.style),h),T=c()(null==I?void 0:I.className,{[`${M}-rtl`]:"rtl"===b,[`${M}-with-progress`]:void 0!==j},i,o,O),D={finish:g.createElement(r.Z,{className:`${M}-finish-icon`}),error:g.createElement(a.Z,{className:`${M}-error-icon`})};return E(g.createElement(v,Object.assign({icons:D},u,{style:P,current:p,size:k,items:N,itemRender:H?(e,t)=>e.description?g.createElement(C.Z,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;return"process"===n&&void 0!==j?g.createElement("div",{className:`${M}-progress-icon`},g.createElement(y.Z,{type:"circle",percent:j,size:"small"===k?32:40,strokeWidth:4,format:()=>null}),t):t},direction:z,prefixCls:M,iconPrefix:Z,className:T})))};G.Step=v.Step;var V=G},72269:function(e,t,n){n.d(t,{Z:function(){return H}});var i=n(50888),o=n(94184),r=n.n(o),a=n(87462),l=n(4942),c=n(97685),s=n(45987),d=n(67294),p=n(21770),m=n(15105),g=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],h=d.forwardRef(function(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-switch":i,h=e.className,u=e.checked,$=e.defaultChecked,f=e.disabled,b=e.loadingIcon,v=e.checkedChildren,S=e.unCheckedChildren,w=e.onClick,x=e.onChange,y=e.onKeyDown,C=(0,s.Z)(e,g),I=(0,p.Z)(!1,{value:u,defaultValue:$}),z=(0,c.Z)(I,2),k=z[0],M=z[1];function E(e,t){var n=k;return f||(M(n=e),null==x||x(n,t)),n}var O=r()(o,h,(n={},(0,l.Z)(n,"".concat(o,"-checked"),k),(0,l.Z)(n,"".concat(o,"-disabled"),f),n));return d.createElement("button",(0,a.Z)({},C,{type:"button",role:"switch","aria-checked":k,disabled:f,className:O,ref:t,onKeyDown:function(e){e.which===m.Z.LEFT?E(!1,e):e.which===m.Z.RIGHT&&E(!0,e),null==y||y(e)},onClick:function(e){var t=E(!k,e);null==w||w(t,e)}}),b,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},v),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},S)))});h.displayName="Switch";var u=n(45353),$=n(53124),f=n(98866),b=n(98675),v=n(10274),S=n(14747),w=n(67968),x=n(45503);let y=e=>{let{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+2*e.switchPadding}px + ${2*e.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+2*e.switchPadding}px - ${2*e.switchInnerMarginMaxSM}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},C=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},I=e=>{let{componentCls:t,motion:n}=e,i=`${t}-handle`;return{[t]:{[i]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${i}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:n?{[`${i}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${i}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}:{}}}},z=e=>{let{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+2*e.switchPadding}px + ${2*e.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+2*e.switchPadding}px - ${2*e.switchInnerMarginMax}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:2*e.switchPadding,marginInlineEnd:-(2*e.switchPadding)}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-(2*e.switchPadding),marginInlineEnd:2*e.switchPadding}}}}}},k=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,S.Qy)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}};var M=(0,w.Z)("Switch",e=>{let t=e.fontSize*e.lineHeight,n=e.controlHeight/2,i=t-4,o=n-4,r=(0,x.TS)(e,{switchMinWidth:2*i+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:i/2,switchInnerMarginMax:i+2+4,switchPadding:2,switchPinSize:i,switchBg:e.colorBgContainer,switchMinWidthSM:2*o+4,switchHeightSM:n,switchInnerMarginMinSM:o/2,switchInnerMarginMaxSM:o+2+4,switchPinSizeSM:o,switchHandleShadow:`0 2px 4px 0 ${new v.C("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*e.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[k(r),z(r),I(r),C(r),y(r)]}),E=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let O=d.forwardRef((e,t)=>{let{prefixCls:n,size:o,disabled:a,loading:l,className:c,rootClassName:s,style:p}=e,m=E(e,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:g,direction:v,switch:S}=d.useContext($.E_),w=d.useContext(f.Z),x=(null!=a?a:w)||l,y=g("switch",n),C=d.createElement("div",{className:`${y}-handle`},l&&d.createElement(i.Z,{className:`${y}-loading-icon`})),[I,z]=M(y),k=(0,b.Z)(o),O=r()(null==S?void 0:S.className,{[`${y}-small`]:"small"===k,[`${y}-loading`]:l,[`${y}-rtl`]:"rtl"===v},c,s,z),H=Object.assign(Object.assign({},null==S?void 0:S.style),p);return I(d.createElement(u.Z,{component:"Switch"},d.createElement(h,Object.assign({},m,{prefixCls:y,className:O,style:H,disabled:x,ref:t,loadingIcon:C}))))});O.__ANT_SWITCH=!0;var H=O},66309:function(e,t,n){n.d(t,{Z:function(){return z}});var i=n(67294),o=n(97937),r=n(94184),a=n.n(r),l=n(98787),c=n(69760),s=n(45353),d=n(53124),p=n(14747),m=n(45503),g=n(67968);let h=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:i,componentCls:o}=e,r=i-n;return{[o]:Object.assign(Object.assign({},(0,p.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:r,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:t-n,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:r}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},u=e=>{let{lineWidth:t,fontSizeIcon:n}=e,i=e.fontSizeSM,o=`${e.lineHeightSM*i}px`,r=(0,m.TS)(e,{tagFontSize:i,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return r},$=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var f=(0,g.Z)("Tag",e=>{let t=u(e);return h(t)},$),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},v=n(98719);let S=e=>(0,v.Z)(e,(t,n)=>{let{textColor:i,lightBorderColor:o,lightColor:r,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:i,background:r,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var w=(0,g.b)(["Tag","preset"],e=>{let t=u(e);return S(t)},$);let x=(e,t,n)=>{let i=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${i}Bg`],borderColor:e[`color${i}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var y=(0,g.b)(["Tag","status"],e=>{let t=u(e);return[x(t,"success","Success"),x(t,"processing","Info"),x(t,"error","Error"),x(t,"warning","Warning")]},$),C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let I=i.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:p,style:m,children:g,icon:h,color:u,onClose:$,closeIcon:b,closable:v,bordered:S=!0}=e,x=C(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:I,direction:z,tag:k}=i.useContext(d.E_),[M,E]=i.useState(!0);i.useEffect(()=>{"visible"in x&&E(x.visible)},[x.visible]);let O=(0,l.o2)(u),H=(0,l.yT)(u),Z=O||H,N=Object.assign(Object.assign({backgroundColor:u&&!Z?u:void 0},null==k?void 0:k.style),m),j=I("tag",n),[P,T]=f(j),D=a()(j,null==k?void 0:k.className,{[`${j}-${u}`]:Z,[`${j}-has-color`]:u&&!Z,[`${j}-hidden`]:!M,[`${j}-rtl`]:"rtl"===z,[`${j}-borderless`]:!S},r,p,T),X=e=>{e.stopPropagation(),null==$||$(e),e.defaultPrevented||E(!1)},[,W]=(0,c.Z)(v,b,e=>null===e?i.createElement(o.Z,{className:`${j}-close-icon`,onClick:X}):i.createElement("span",{className:`${j}-close-icon`,onClick:X},e),null,!1),B="function"==typeof x.onClick||g&&"a"===g.type,L=h||null,R=L?i.createElement(i.Fragment,null,L,g&&i.createElement("span",null,g)):g,A=i.createElement("span",Object.assign({},x,{ref:t,className:D,style:N}),R,W,O&&i.createElement(w,{key:"preset",prefixCls:j}),H&&i.createElement(y,{key:"status",prefixCls:j}));return P(B?i.createElement(s.Z,{component:"Tag"},A):A)});I.CheckableTag=e=>{let{prefixCls:t,className:n,checked:o,onChange:r,onClick:l}=e,c=b(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=i.useContext(d.E_),p=s("tag",t),[m,g]=f(p),h=a()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},n,g);return m(i.createElement("span",Object.assign({},c,{className:h,onClick:e=>{null==r||r(!o),null==l||l(e)}})))};var z=I}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/643-d2492f894de95084.js b/pilot/server/static/_next/static/chunks/643-d8f53f40dd3c5b40.js similarity index 100% rename from pilot/server/static/_next/static/chunks/643-d2492f894de95084.js rename to pilot/server/static/_next/static/chunks/643-d8f53f40dd3c5b40.js diff --git a/pilot/server/static/_next/static/chunks/719-5a18c3c696beda6f.js b/pilot/server/static/_next/static/chunks/719-5a18c3c696beda6f.js new file mode 100644 index 000000000..1618e8c2c --- /dev/null +++ b/pilot/server/static/_next/static/chunks/719-5a18c3c696beda6f.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[719],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let i=n[t];void 0!==i&&(e[t]=i)})}return e}},66367:function(e,t,n){function i(e){return null!=e&&e===e.window}function o(e,t){var n,o;if("undefined"==typeof window)return 0;let r=t?"scrollTop":"scrollLeft",a=0;return i(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[r]:e instanceof HTMLElement?a=e[r]:e&&(a=e[r]),e&&!i(e)&&"number"!=typeof a&&(a=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[r]),a}n.d(t,{F:function(){return i},Z:function(){return o}})},58375:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(75164),o=n(66367);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:r,duration:a=450}=t,l=n(),s=(0,o.Z)(l,!0),c=Date.now(),u=()=>{let t=Date.now(),n=t-c,p=function(e,t,n,i){let o=n-t;return(e/=i/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,s,e,a);(0,o.F)(l)?l.scrollTo(window.pageXOffset,p):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=p:l.scrollTop=p,n0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),o=n(67294),r={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"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))}),s={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"},c=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:s}))}),u=n(6171),p=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),S=n(73568),C=n(64217),$={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},x=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,o=Array(i),r=0;r=0||t.relatedTarget.className.indexOf("".concat(r,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===$.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(r,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&c){var S=f.map(function(t,n){return o.createElement(c.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});h=o.createElement(c,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},S)}return l&&(s&&(b="boolean"==typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),o.createElement("li",{className:"".concat(g)},h,v)}}]),n}(o.Component);x.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=function(e){var t,n=e.rootPrefixCls,i=e.page,r=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),r),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",o.createElement("a",{rel:"nofollow"},i));return h?o.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){s(i)},onKeyPress:function(e){c(e,s,i)},tabIndex:0},h):null};function k(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var z=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=o.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=o.createElement(e,(0,h.Z)({},i.props))),r},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===$.ARROW_UP||e.keyCode===$.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===$.ENTER?i.handleChange(t):e.keyCode===$.ARROW_UP?i.handleChange(t-1):e.keyCode===$.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=N(void 0,i.state,i.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==s&&i.setState({currentInputValue:u}),o(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,a=e.disabled,l=e.hideOnSinglePage,s=e.total,c=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,k=e.selectComponentClass,E=e.selectPrefixCls,z=e.pageSizeOptions,I=this.state,P=I.current,w=I.pageSize,O=I.currentInputValue;if(!0===l&&s<=w)return null;var D=N(void 0,this.state,this.props),T=[],j=null,M=null,B=null,Z=null,A=null,_=u&&u.goButton,H=p?1:2,R=P-1>0?P-1:0,L=P+1s?s:P*w]));if(v){_&&(A="boolean"==typeof _?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_),A=o.createElement("li",{title:m?"".concat(c.jump_to).concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},A));var W=this.renderPrev(R);return o.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:r,ref:this.paginationNode},X),V,W?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,o.createElement("li",{title:m?"".concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:O,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),D),o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(L)),A)}if(D<=3+2*H){var K={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};D||T.push(o.createElement(y,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var G=1;G<=D;G+=1){var J=P===G;T.push(o.createElement(y,(0,i.Z)({},K,{key:G,page:G,active:J})))}}else{var U=p?c.prev_3:c.prev_5,F=p?c.next_3:c.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page"));f&&(j=q?o.createElement("li",{title:m?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},q):null,M=Q?o.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},Q):null),Z=o.createElement(y,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:D,page:D,active:!1,showTitle:m,itemRender:b}),B=o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,P-H),ee=Math.min(P+H,D);P-1<=H&&(ee=1+2*H),D-P<=H&&(Y=D-2*H);for(var et=Y;et<=ee;et+=1){var en=P===et;T.push(o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}P-1>=2*H&&3!==P&&(T[0]=(0,o.cloneElement)(T[0],{className:"".concat(t,"-item-after-jump-prev")}),T.unshift(j)),D-P>=2*H&&P!==D-2&&(T[T.length-1]=(0,o.cloneElement)(T[T.length-1],{className:"".concat(t,"-item-before-jump-next")}),T.push(M)),1!==Y&&T.unshift(B),ee!==D&&T.push(Z)}var ei=!this.hasPrev()||!D,eo=!this.hasNext()||!D,er=this.renderPrev(R),ea=this.renderNext(L);return o.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:r,ref:this.paginationNode},X),V,er?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},er):null,T,ea?o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:eo?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),eo)),"aria-disabled":eo},ea):null,o.createElement(x,{disabled:a,locale:c,rootPrefixCls:t,selectComponentClass:k,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:w,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,o=N(e.pageSize,t,e);i=i>o?o:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(o.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:{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:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var I=n(62906),P=n(53124),w=n(98675),O=n(25378),D=n(10110),T=n(51009);let j=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"middle"}));j.Option=T.default.Option,M.Option=T.default.Option;var B=n(47673),Z=n(14747),A=n(67968),_=n(45503);let H=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","&: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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},R=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${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:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,B.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L=e=>{let{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${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:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},X=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,fontFamily:"Arial, Helvetica, sans-serif",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:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${e.lineWidth}px ${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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,B.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},V=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{"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:`${e.itemSize-2}px`,verticalAlign:"middle"}}),V(e)),X(e)),L(e)),R(e)),H(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"}}},K=e=>{let{componentCls:t}=e;return{[`${t}${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}: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:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},G=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Z.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Z.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Z.oN)(e))}}}};var J=(0,A.Z)("Pagination",e=>{let t=(0,_.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,B.e5)(e));return[W(t),G(t),e.wireframe&&K(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),U=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:r,style:a,size:s,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=U(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,O.Z)(h),{getPrefixCls:S,direction:C,pagination:$={}}=o.useContext(P.E_),x=S("pagination",t),[y,k]=J(x),E=null!=v?v:$.showSizeChanger,N=o.useMemo(()=>{let e=o.createElement("span",{className:`${x}-item-ellipsis`},"•••"),t=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(p.Z,null):o.createElement(u.Z,null)),n=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(u.Z,null):o.createElement(p.Z,null)),i=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(c,{className:`${x}-item-link-icon`}):o.createElement(l,{className:`${x}-item-link-icon`}),e)),r=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(l,{className:`${x}-item-link-icon`}):o.createElement(c,{className:`${x}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:r}},[C,x]),[T]=(0,D.Z)("Pagination",I.Z),B=Object.assign(Object.assign({},T),m),Z=(0,w.Z)(s),A="small"===Z||!!(f&&!Z&&h),_=S("select",n),H=d()({[`${x}-mini`]:A,[`${x}-rtl`]:"rtl"===C},null==$?void 0:$.className,i,r,k),R=Object.assign(Object.assign({},null==$?void 0:$.style),a);return y(o.createElement(z,Object.assign({},N,b,{style:R,prefixCls:x,selectPrefixCls:_,className:H,selectComponentClass:g||(A?j:M),locale:B,showSizeChanger:E})))}},75081:function(e,t,n){n.d(t,{Z:function(){return $}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),s=n(53124),c=n(23183),u=n(14747),p=n(67968),m=n(45503);let d=new c.E4("antSpinMove",{to:{opacity:1}}),g=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:d,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:g,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var v=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let f=null,S=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:c,rootClassName:u,size:p="default",tip:m,wrapperClassName:d,style:g,children:h,hashId:v}=e,S=b(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[C,$]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,p=!1,m=0;function d(){i&&clearTimeout(i)}function g(){for(var n=arguments.length,o=Array(n),r=0;re?s?(m=Date.now(),a||(i=setTimeout(u?h:g,e))):g():!0!==a&&(i=setTimeout(u?h:g,void 0===u?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly;d(),p=!(void 0!==t&&t)},g}(i,()=>{$(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}$(!1)},[i,n]);let x=a.useMemo(()=>void 0!==h,[h]),{direction:y,spin:k}=a.useContext(s.E_),E=o()(t,null==k?void 0:k.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:C,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===y},c,u,v),N=o()(`${t}-container`,{[`${t}-blur`]:C}),z=(0,r.Z)(S,["indicator","prefixCls"]),I=Object.assign(Object.assign({},null==k?void 0:k.style),g),P=a.createElement("div",Object.assign({},z,{style:I,className:E,"aria-live":"polite","aria-busy":C}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(f)?(0,l.Tm)(f,{className:o()(f.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&x?a.createElement("div",{className:`${t}-text`},m):null);return x?a.createElement("div",Object.assign({},z,{className:o()(`${t}-nested-loading`,d,v)}),C&&a.createElement("div",{key:"loading"},P),a.createElement("div",{className:N,key:"container"},h)):P},C=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(s.E_),i=n("spin",t),[o,r]=v(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(S,Object.assign({},l)))};C.setDefaultIndicator=e=>{f=e};var $=C}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/747-ec60adab93bb6758.js b/pilot/server/static/_next/static/chunks/747-ec60adab93bb6758.js deleted file mode 100644 index 9ecce8738..000000000 --- a/pilot/server/static/_next/static/chunks/747-ec60adab93bb6758.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[747],{78543:function(e,t,l){l.d(t,{Z:function(){return w}});var s=l(85893),a=l(67294),n=l(12069),i=l(3363),c=l(67421),r=l(50489),o=l(75081),d=l(39479),m=l(59566),u=l(71577);function h(e){let{t}=(0,c.$G)(),{handleAddKnowledge:l}=e,[n,i]=(0,a.useState)(!1),h=async e=>{let{knowledgeName:t,owner:s,description:a}=e;i(!0);let[n,c,o]=await (0,r.Vx)((0,r.U6)({name:t,vector_type:"Chroma",owner:s,desc:a}));i(!1),(null==o?void 0:o.success)&&l(t)};return(0,s.jsx)(o.Z,{spinning:n,children:(0,s.jsxs)(d.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{remember:!0},autoComplete:"off",onFinish:h,children:[(0,s.jsx)(d.Z.Item,{label:t("Knowledge_Space_Name"),name:"knowledgeName",rules:[{required:!0,message:t("Please_input_the_name")},()=>({validator:(e,l)=>/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(l)?Promise.reject(Error(t("the_name_can_only_contain"))):Promise.resolve()})],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:t("Please_input_the_name")})}),(0,s.jsx)(d.Z.Item,{label:t("Owner"),name:"owner",rules:[{required:!0,message:t("Please_input_the_owner")}],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:t("Please_input_the_owner")})}),(0,s.jsx)(d.Z.Item,{label:t("Description"),name:"description",rules:[{required:!0,message:t("Please_input_the_description")}],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:t("Please_input_the_description")})}),(0,s.jsx)(d.Z.Item,{children:(0,s.jsx)(u.ZP,{type:"primary",htmlType:"submit",children:t("Next")})})]})})}var x=l(31365),p=l(2453),_=l(85813),j=l(72269),f=l(92039),g=l(64082);let b={ChooseType:1,AddDataSourceForm:2},{Dragger:Z}=x.default,{TextArea:y}=m.default;function N(e){let{handleChooseType:t,documentType:l,step:n,handleBackBtn:i,knowledgeName:h,fetchDocuments:N,setIsAddShow:w}=e,{t:k}=(0,c.$G)(),[T]=d.Z.useForm(),[S,P]=(0,a.useState)(!1),v=async e=>{var t;let s;let{synchChecked:a,documentName:n,textSource:i,originFileObj:c,text:o,webPageUrl:d}=e;switch(P(!0),l){case"webPage":s=await (0,r.Vx)((0,r.H_)(h,{doc_name:n,content:d,doc_type:"URL"}));break;case"file":let m=new FormData;m.append("doc_name",n||c.file.name),m.append("doc_file",c.file),m.append("doc_type","DOCUMENT"),m.append("space_name",h),s=await (0,r.Vx)((0,r.iG)(h,m));break;default:s=await (0,r.Vx)((0,r.H_)(h,{doc_name:n,source:i,content:o,doc_type:"TEXT"}))}a&&(null==C||C(h,null==s?void 0:s[1])),P(!1),(null===(t=s[2])||void 0===t?void 0:t.success)&&(null==w||w(!1),null==N||N())},C=async(e,t)=>{await (0,r.Vx)((0,r.Hx)(e,{doc_ids:[t]}))},F=()=>{let e=T.getFieldsValue().originFileObj;return!!e&&(p.ZP.warning(k("Limit_Upload_File_Count_Tips")),x.default.LIST_IGNORE)},I=e=>{let{file:t,fileList:l}=e;T.getFieldsValue().documentName||T.setFieldValue("documentName",t.name),0===l.length&&T.setFieldValue("originFileObj",null)},D=[{type:"text",title:k("Text"),subTitle:k("Fill your raw text"),iconType:"TEXT"},{type:"webPage",title:k("URL"),subTitle:k("Fetch_the_content_of_a_URL"),iconType:"WEBPAGE"},{type:"file",title:k("Document"),subTitle:k("Upload_a_document"),iconType:"DOCUMENT"}],E=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z.Item,{label:"".concat(k("Text_Source"),":"),name:"textSource",rules:[{required:!0,message:k("Please_input_the_text_source")}],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:k("Please_input_the_text_source")})}),(0,s.jsx)(d.Z.Item,{label:"".concat(k("Text"),":"),name:"text",rules:[{required:!0,message:k("Please_input_the_description")}],children:(0,s.jsx)(y,{rows:4,maxLength:6})})]}),A=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(d.Z.Item,{label:"".concat(k("Web_Page_URL"),":"),name:"webPageUrl",rules:[{required:!0,message:k("Please_input_the_owner")}],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:k("Please_input_the_Web_Page_URL")})})}),V=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(d.Z.Item,{name:"originFileObj",rules:[{required:!0,message:k("Please_input_the_owner")}],children:(0,s.jsxs)(Z,{onChange:I,beforeUpload:F,multiple:!1,accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(g.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:k("Select_or_Drop_file")}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})})});return n===b.ChooseType?(0,s.jsx)(s.Fragment,{children:D.map((e,l)=>(0,s.jsxs)(_.Z,{className:"mt-4 mb-4 cursor-pointer",onClick:()=>{t(e)},children:[(0,s.jsxs)("div",{className:"font-semibold",children:[(0,f._)(e.iconType)," ",e.title]}),(0,s.jsx)("div",{children:e.subTitle})]},l))}):(0,s.jsx)(o.Z,{spinning:S,children:(0,s.jsxs)(d.Z,{form:T,size:"large",className:"mt-4",layout:"vertical",name:"basic",autoComplete:"off",onFinish:v,children:[(0,s.jsx)(d.Z.Item,{label:"".concat(k("Name"),":"),name:"documentName",rules:[{required:!0,message:k("Please_input_the_name")}],children:(0,s.jsx)(m.default,{className:"mb-5 h-12",placeholder:k("Please_input_the_name")})}),(()=>{switch(l){case"webPage":return A();case"file":return V();default:return E()}})(),(0,s.jsx)(d.Z.Item,{label:"".concat(k("Synch"),":"),name:"synchChecked",initialValue:!0,children:(0,s.jsx)(j.Z,{className:"bg-slate-400",defaultChecked:!0})}),(0,s.jsxs)(d.Z.Item,{children:[(0,s.jsx)(u.ZP,{onClick:i,className:"mr-4",children:"".concat(k("Back"))}),(0,s.jsx)(u.ZP,{type:"primary",htmlType:"submit",children:k("Finish")})]})]})})}function w(e){let{setIsAddShow:t,isAddShow:l,type:r,knowLedge:o,fetchDocuments:d,fetchKnowledge:m,syncDocuments:u}=e,{t:x}=(0,c.$G)(),p=[{title:x("Knowledge_Space_Config")},{title:x("Choose_a_Datasource_type")},{title:x("Setup_the_Datasource")}],_=[{title:x("Choose_a_Datasource_type")},{title:x("Setup_the_Datasource")}],[j,f]=(0,a.useState)(""),[g,b]=(0,a.useState)(0),[Z,y]=(0,a.useState)(),w=async e=>{b(1),null==m||m(),y(e)},k=e=>{f(e.type),b("knowledge"===r?2:1)},T=()=>{b("knowledge"===r?1:0)};return(0,s.jsxs)(n.default,{title:"knowledge"===r?"Add Knowledge":"Add Datasource",centered:!0,open:l,destroyOnClose:!0,onCancel:()=>{t(!1)},width:1e3,afterClose:()=>{b(0)},footer:null,children:[(0,s.jsx)(i.Z,{current:g,items:"knowledge"===r?p:_}),(()=>{let t="document"===r?g+1:g;return 0===t?(0,s.jsx)(h,{handleAddKnowledge:w}):(0,s.jsx)(N,{fetchDocuments:d,knowledgeName:(null==o?void 0:o.name)||Z,step:t,documentType:j,handleChooseType:k,handleBackBtn:T,setIsAddShow:e.setIsAddShow})})()]})}},92039:function(e,t,l){l.d(t,{Z:function(){return O},_:function(){return q}});var s=l(85893),a=l(67294),n=l(12069),i=l(83062),c=l(66309),r=l(85813),o=l(32983),d=l(71577),m=l(42075),u=l(96074),h=l(75081),x=l(27595),p=l(27329),_=l(68346),j=l(21640),f=l(31326),g=l(88008),b=l(27704),Z=l(24969),y=l(18754),N=l(50489),w=l(30381),k=l.n(w),T=l(78543),S=l(59566),P=l(71230),v=l(15746),C=l(39479),F=l(44442),I=l(67421),D=l(31545),E=l(6321);let{TextArea:A}=S.default;function V(e){let{knowledge:t,argumentsShow:l,setArgumentsShow:i}=e,{t:c}=(0,I.$G)(),[r,o]=(0,a.useState)(),[m,u]=(0,a.useState)(!1),x=async()=>{let[e,l]=await (0,N.Vx)((0,N.Tu)(t.name));o(l)};(0,a.useEffect)(()=>{x()},[]);let p=[{key:"Embedding",label:(0,s.jsxs)("div",{children:[(0,s.jsx)(D.Z,{}),c("Embedding")]}),children:(0,s.jsxs)(P.Z,{gutter:24,children:[(0,s.jsx)(v.Z,{span:12,offset:0,children:(0,s.jsx)(C.Z.Item,{tooltip:c("the_top_k_vectors"),rules:[{required:!0}],label:c("topk"),name:["embedding","topk"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(v.Z,{span:12,children:(0,s.jsx)(C.Z.Item,{tooltip:c("Set_a_threshold_score"),rules:[{required:!0}],label:c("recall_score"),name:["embedding","recall_score"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12",placeholder:c("Please_input_the_owner")})})}),(0,s.jsx)(v.Z,{span:12,children:(0,s.jsx)(C.Z.Item,{tooltip:c("Recall_Type"),rules:[{required:!0}],label:c("recall_type"),name:["embedding","recall_type"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(v.Z,{span:12,children:(0,s.jsx)(C.Z.Item,{tooltip:c("A_model_used"),rules:[{required:!0}],label:c("model"),name:["embedding","model"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(v.Z,{span:12,children:(0,s.jsx)(C.Z.Item,{tooltip:c("The_size_of_the_data_chunks"),rules:[{required:!0}],label:c("chunk_size"),name:["embedding","chunk_size"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12"})})}),(0,s.jsx)(v.Z,{span:12,children:(0,s.jsx)(C.Z.Item,{tooltip:c("The_amount_of_overlap"),rules:[{required:!0}],label:c("chunk_overlap"),name:["embedding","chunk_overlap"],children:(0,s.jsx)(S.default,{className:"mb-5 h-12",placeholder:c("Please_input_the_description")})})})]})},{key:"Prompt",label:(0,s.jsxs)("div",{children:[(0,s.jsx)(E.Z,{}),c("Embedding")]}),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.Z.Item,{tooltip:c("A_contextual_parameter"),label:c("scene"),name:["prompt","scene"],children:(0,s.jsx)(A,{rows:4,className:"mb-2"})}),(0,s.jsx)(C.Z.Item,{tooltip:c("structure_or_format"),label:c("template"),name:["prompt","template"],children:(0,s.jsx)(A,{rows:7,className:"mb-2"})}),(0,s.jsx)(C.Z.Item,{tooltip:c("The_maximum_number_of_tokens"),label:c("max_token"),name:["prompt","max_token"],children:(0,s.jsx)(S.default,{className:"mb-2"})})]})}],_=async e=>{u(!0);let[l,s,a]=await (0,N.Vx)((0,N.iH)(t.name,{argument:JSON.stringify(e)}));u(!1),(null==a?void 0:a.success)&&i(!1)};return(0,s.jsx)(n.default,{width:850,open:l,onCancel:()=>{i(!1)},footer:null,children:(0,s.jsx)(h.Z,{spinning:m,children:(0,s.jsxs)(C.Z,{size:"large",className:"mt-4",layout:"vertical",name:"basic",initialValues:{...r},autoComplete:"off",onFinish:_,children:[(0,s.jsx)(F.Z,{items:p}),(0,s.jsxs)("div",{className:"mt-3 mb-3",children:[(0,s.jsx)(d.ZP,{htmlType:"submit",type:"primary",className:"mr-6",children:c("Submit")}),(0,s.jsx)(d.ZP,{onClick:()=>{i(!1)},children:c("close")})]})]})})})}var z=l(11163);let{confirm:U}=n.default,q=e=>"TEXT"===e?(0,s.jsx)(x.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):"DOCUMENT"===e?(0,s.jsx)(p.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"}):(0,s.jsx)(_.Z,{className:"text-[#2AA3FF] mr-2 !text-lg"});function O(e){let{t}=(0,I.$G)(),l=(0,z.useRouter)(),{knowledge:n,setDocumentCount:x}=e,[p,_]=(0,a.useState)(!1),[w,S]=(0,a.useState)([]),[P,v]=(0,a.useState)(!1),[C,F]=(0,a.useState)(!1),D=e=>{U({title:t("Tips"),icon:(0,s.jsx)(j.Z,{}),content:"".concat(t("Del_Document_Tips"),"?"),okText:"Yes",okType:"danger",cancelText:"No",async onOk(){await O(e)}})};async function E(){_(!0);let[e,t]=await (0,N.Vx)((0,N._Q)(null==n?void 0:n.name,{page:1,page_size:20}));S(null==t?void 0:t.data),x(String(null==t?void 0:t.total)),_(!1)}let A=async(e,t)=>{await (0,N.Vx)((0,N.Hx)(e,{doc_ids:[t]}))},O=async e=>{await (0,N.Vx)((0,N.n3)(null==n?void 0:n.name,{doc_name:e.doc_name})),E()},L=()=>{v(!0)},G=(e,t)=>{let l;switch(e){case"TODO":l="gold";break;case"RUNNING":l="#2db7f5";break;case"FINISHED":l="#87d068";break;default:l="f50"}return(0,s.jsx)(i.Z,{title:t,children:(0,s.jsx)(c.Z,{color:l,children:e})})};return(0,a.useEffect)(()=>{E()},[n]),(0,s.jsxs)("div",{className:"collapse-container pt-2 px-4",children:[(0,s.jsxs)(m.Z,{children:[(0,s.jsx)(d.ZP,{size:"middle",type:"primary",className:"flex items-center",icon:(0,s.jsx)(Z.Z,{}),onClick:L,children:t("Add_Datasource")}),(0,s.jsx)(d.ZP,{size:"middle",className:"flex items-center mx-2",icon:(0,s.jsx)(y.Z,{}),onClick:()=>{F(!0)},children:"Arguments"})]}),(0,s.jsx)(u.Z,{}),(0,s.jsx)(h.Z,{spinning:p,children:w.length>0?(0,s.jsx)("div",{className:"max-h-96 mt-3 grid grid-cols-1 gap-x-6 gap-y-5 sm:grid-cols-2 lg:grid-cols-3 xl:gap-x-5 overflow-auto",children:w.map(e=>(0,s.jsxs)(r.Z,{className:" dark:bg-[#484848] relative shrink-0 grow-0 cursor-pointer rounded-[10px] border border-gray-200 border-solid w-full",title:(0,s.jsx)(i.Z,{title:e.doc_name,children:(0,s.jsxs)("div",{className:"truncate ",children:[q(e.doc_type),(0,s.jsx)("span",{children:e.doc_name})]})}),extra:(0,s.jsxs)("div",{className:"mx-3",children:[(0,s.jsx)(i.Z,{title:"detail",children:(0,s.jsx)(f.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{l.push("/knowledge/".concat(n.name,"/").concat(e.id))}})}),(0,s.jsx)(i.Z,{title:"Sync",children:(0,s.jsx)(g.Z,{className:"mr-2 !text-lg",style:{color:"#1b7eff",fontSize:"20px"},onClick:()=>{A(n.name,e.id)}})}),(0,s.jsx)(i.Z,{title:"Delete",children:(0,s.jsx)(b.Z,{className:"text-[#ff1b2e] !text-lg",onClick:()=>{D(e)}})})]}),children:[(0,s.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Size"),":"]}),(0,s.jsxs)("p",{children:[e.chunk_size," chunks"]}),(0,s.jsxs)("p",{className:"mt-2 font-semibold ",children:[t("Last_Synch"),":"]}),(0,s.jsx)("p",{children:k()(e.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("p",{className:"mt-2 mb-2",children:G(e.status,e.result)})]},e.id))}):(0,s.jsx)(o.Z,{image:o.Z.PRESENTED_IMAGE_DEFAULT,children:(0,s.jsx)(d.ZP,{type:"primary",className:"flex items-center mx-auto",icon:(0,s.jsx)(Z.Z,{}),onClick:L,children:"Create Now"})})}),(0,s.jsx)(T.Z,{syncDocuments:A,fetchDocuments:E,setIsAddShow:v,isAddShow:P,type:"document",setDocuments:S,knowLedge:n}),(0,s.jsx)(V,{knowledge:n,argumentsShow:C,setArgumentsShow:F})]})}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/75fc9c18-36ac6f5a83376cd3.js b/pilot/server/static/_next/static/chunks/75fc9c18-a784766a129ec5fb.js similarity index 100% rename from pilot/server/static/_next/static/chunks/75fc9c18-36ac6f5a83376cd3.js rename to pilot/server/static/_next/static/chunks/75fc9c18-a784766a129ec5fb.js diff --git a/pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js b/pilot/server/static/_next/static/chunks/830.959c3f306e690976.js similarity index 56% rename from pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js rename to pilot/server/static/_next/static/chunks/830.959c3f306e690976.js index 54fabbb53..19b2a1040 100644 --- a/pilot/server/static/_next/static/chunks/207.60c86d63a2e1860f.js +++ b/pilot/server/static/_next/static/chunks/830.959c3f306e690976.js @@ -1,9 +1,9 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},90494:function(e,t){"use strict";var i=function(){function e(){this._events={}}return e.prototype.on=function(e,t,i){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!i}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,i=[],n=1;n=0&&t._call.call(null,e),t=t._next;--u}()}finally{u=0,function(){for(var e,t,i=n,o=1/0;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:n=t);r=e,b(o)}(),p=0}}function T(){var e=m.now(),t=e-g;t>1e3&&(f-=t,g=e)}function b(e){!u&&(d&&(d=clearTimeout(d)),e-p>24?(e<1/0&&(d=setTimeout(y,e-m.now()-f)),c&&(c=clearInterval(c))):(c||(g=m.now(),c=setInterval(T,1e3)),u=1,v(y)))}function A(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function R(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function L(){}C.prototype=S.prototype={constructor:C,restart:function(e,t,i){if("function"!=typeof e)throw TypeError("callback is not a function");i=(null==i?E():+i)+(null==t?0:+t),this._next||r===this||(r?r._next=this:n=this,r=this),this._call=e,this._time=i,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};var N="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O=/^#([0-9a-f]{3,8})$/,x=RegExp(`^rgb\\(${N},${N},${N}\\)$`),D=RegExp(`^rgb\\(${w},${w},${w}\\)$`),M=RegExp(`^rgba\\(${N},${N},${N},${I}\\)$`),k=RegExp(`^rgba\\(${w},${w},${w},${I}\\)$`),P=RegExp(`^hsl\\(${I},${w},${w}\\)$`),F=RegExp(`^hsla\\(${I},${w},${w},${I}\\)$`),B={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function U(){return this.rgb().formatHex()}function H(){return this.rgb().formatRgb()}function V(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=O.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?W(t):3===i?new Y(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?G(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?G(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new Y(t[1],t[2],t[3],1):(t=D.exec(e))?new Y(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=M.exec(e))?G(t[1],t[2],t[3],t[4]):(t=k.exec(e))?G(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=P.exec(e))?Z(t[1],t[2]/100,t[3]/100,1):(t=F.exec(e))?Z(t[1],t[2]/100,t[3]/100,t[4]):B.hasOwnProperty(e)?W(B[e]):"transparent"===e?new Y(NaN,NaN,NaN,0):null}function W(e){return new Y(e>>16&255,e>>8&255,255&e,1)}function G(e,t,i,n){return n<=0&&(e=t=i=NaN),new Y(e,t,i,n)}function z(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof L||(r=V(r)),r)?(r=r.rgb(),new Y(r.r,r.g,r.b,r.opacity)):new Y:new Y(e,t,i,null==n?1:n)}function Y(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function K(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function $(){let e=X(this.opacity);return`${1===e?"rgb(":"rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${1===e?")":`, ${e})`}`}function X(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function j(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q(e){return((e=j(e))<16?"0":"")+e.toString(16)}function Z(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Q(e,t,i,n)}function J(e){if(e instanceof Q)return new Q(e.h,e.s,e.l,e.opacity);if(e instanceof L||(e=V(e)),!e)return new Q;if(e instanceof Q)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),o=Math.max(t,i,n),s=NaN,a=o-r,l=(o+r)/2;return a?(s=t===o?(i-n)/a+(i0&&l<1?0:s,new Q(s,a,l,e.opacity)}function Q(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function ee(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function ei(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}function en(e,t,i,n,r){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*i+(1+3*e+3*o-3*s)*n+s*r)/6}A(L,V,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return J(this).formatHsl()},formatRgb:H,toString:H}),A(Y,z,R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(j(this.r),j(this.g),j(this.b),X(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:K,formatHex:K,formatHex8:function(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),A(Q,function(e,t,i,n){return 1==arguments.length?J(e):new Q(e,t,i,null==n?1:n)},R(L,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new Y(ei(e>=240?e-240:e+120,r,n),ei(e,r,n),ei(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Q(ee(this.h),et(this.s),et(this.l),X(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=X(this.opacity);return`${1===e?"hsl(":"hsla("}${ee(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));var er=e=>()=>e;function eo(e,t){var i=t-e;return i?function(t){return e+t*i}:er(isNaN(e)?t:e)}var es=function e(t){var i,n=1==(i=+(i=t))?eo:function(e,t){var n,r,o;return t-e?(n=e,r=t,n=Math.pow(n,o=i),r=Math.pow(r,o)-n,o=1/o,function(e){return Math.pow(n+e*r,o)}):er(isNaN(e)?t:e)};function r(e,t){var i=n((e=z(e)).r,(t=z(t)).r),r=n(e.g,t.g),o=n(e.b,t.b),s=eo(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function ea(e){return function(t){var i,n,r=t.length,o=Array(r),s=Array(r),a=Array(r);for(i=0;i=1?(i=1,t-1):Math.floor(i*t),r=e[n],o=e[n+1],s=n>0?e[n-1]:2*r-o,a=na&&(s=t.slice(a,s),h[l]?h[l]+=s:h[++l]=s),(r=r[0])===(o=o[0])?h[l]?h[l]+=o:h[++l]=o:(h[++l]=null,u.push({i:l,x:ec(r,o)})),a=ef.lastIndex;return a0){for(var o=n.animators.length-1;o>=0;o--){if((e=n.animators[o]).destroyed){n.removeAnimator(o);continue}if(!e.isAnimatePaused()){t=e.get("animations");for(var s=t.length-1;s>=0;s--)(function(e,t,i){var n,r=t.startTime;if(id.length?(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.fillPathByDiff(d,u),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u):t.pathFormatted||(u=e_.parsePathString(s[a]),d=e_.parsePathString(o[a]),d=e_.formatPath(d,u),t.fromAttrs.path=d,t.toAttrs.path=u,t.pathFormatted=!0),r[a]=[];for(var c=0;c120||h*h+u*u>40?a&&a.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",i,e,o),this.mousedownShape=null,this.mousedownPoint=null):!a&&n.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",i,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)):(this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t))}else this._emitMouseoverEvents(i,e,r,t),this._emitEvent("mousemove",i,e,t)}},e.prototype._emitEvent=function(e,t,i,n,r,o){var s=this._getEventObj(e,t,i,n,r,o);if(n){s.shape=n,eb(n,e,s);for(var a=n.getParent();a;)a.emitDelegation(e,s),s.propagationStopped||function(e,t,i){if(i.bubbles){var n=void 0,r=!1;if("mouseenter"===t?(n=i.fromShape,r=!0):"mouseleave"===t&&(r=!0,n=i.toShape),!e.isCanvas()||!r){if(n&&(0,l.UY)(e,n)){i.bubbles=!1;return}i.name=t,i.currentTarget=e,i.delegateTarget=e,e.emit(t,i)}}}(a,e,s),s.propagationPath.push(a),a=a.getParent()}else eb(this.canvas,e,s)},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e}(),eR=(0,s.qY)(),eL=eR&&"firefox"===eR.name,eN=function(e){function t(t){var i=e.call(this,t)||this;return i.initContainer(),i.initDom(),i.initEvents(),i.initTimeline(),i}return(0,o.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.cursor="default",t.supportCSSTransform=!1,t},t.prototype.initContainer=function(){var e=this.get("container");(0,l.HD)(e)&&(e=document.getElementById(e),this.set("container",e))},t.prototype.initDom=function(){var e=this.createDom();this.set("el",e),this.get("container").appendChild(e),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var e=new eA({canvas:this});e.init(),this.set("eventController",e)},t.prototype.initTimeline=function(){var e=new eS(this);this.set("timeline",e)},t.prototype.setDOMSize=function(e,t){var i=this.get("el");l.jU&&(i.style.width=e+"px",i.style.height=t+"px")},t.prototype.changeSize=function(e,t){this.setDOMSize(e,t),this.set("width",e),this.set("height",t),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(e){this.set("cursor",e);var t=this.get("el");l.jU&&t&&(t.style.cursor=e)},t.prototype.getPointByEvent=function(e){if(this.get("supportCSSTransform")){if(eL&&!(0,l.kK)(e.layerX)&&e.layerX!==e.offsetX)return{x:e.layerX,y:e.layerY};if(!(0,l.kK)(e.offsetX))return{x:e.offsetX,y:e.offsetY}}var t=this.getClientByEvent(e),i=t.x,n=t.y;return this.getPointByClient(i,n)},t.prototype.getClientByEvent=function(e){var t=e;return e.touches&&(t="touchend"===e.type?e.changedTouches[0]:e.touches[0]),{x:t.clientX,y:t.clientY}},t.prototype.getPointByClient=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e-i.left,y:t-i.top}},t.prototype.getClientByPoint=function(e,t){var i=this.get("el").getBoundingClientRect();return{x:e+i.left,y:t+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var e=this.get("el");e.parentNode.removeChild(e)},t.prototype.clearEvents=function(){this.get("eventController").destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var t=this.get("timeline");this.get("destroyed")||(this.clear(),t&&t.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t}(a.Z)},37153:function(e,t,i){"use strict";var n=i(97582),r=i(29881),o=i(77341),s={},a="_INDEX",l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.ZT)(t,e),t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getCanvasBBox=function(){var e=1/0,t=-1/0,i=1/0,n=-1/0,r=this.getChildren().filter(function(e){return e.get("visible")&&(!e.isGroup()||e.isGroup()&&e.getChildren().length>0)});return r.length>0?(0,o.S6)(r,function(r){var o=r.getCanvasBBox(),s=o.minX,a=o.maxX,l=o.minY,h=o.maxY;st&&(t=a),ln&&(n=h)}):(e=0,t=0,i=0,n=0),{x:e,y:i,minX:e,minY:i,maxX:t,maxY:n,width:t-e,height:n-i}},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.children=[],t},t.prototype.onAttrChange=function(t,i,n){if(e.prototype.onAttrChange.call(this,t,i,n),"matrix"===t){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},t.prototype.applyMatrix=function(t){var i=this.getTotalMatrix();e.prototype.applyMatrix.call(this,t);var n=this.getTotalMatrix();n!==i&&this._applyChildrenMarix(n)},t.prototype._applyChildrenMarix=function(e){var t=this.getChildren();(0,o.S6)(t,function(t){t.applyMatrix(e)})},t.prototype.addShape=function(){for(var e=[],t=0;t=0;s--){var a=e[s];if((0,o.pP)(a)&&(a.isGroup()?r=a.getShape(t,i,n):a.isHit(t,i)&&(r=a)),r)break}return r},t.prototype.add=function(e){var t=this.getCanvas(),i=this.getChildren(),n=this.get("timeline"),r=e.getParent();r&&(e.set("parent",null),e.set("canvas",null),(0,o.As)(r.getChildren(),e)),e.set("parent",this),t&&function e(t,i){if(t.set("canvas",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,t),n&&function e(t,i){if(t.set("timeline",i),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){e(t,i)})}}(e,n),i.push(e),e.onCanvasChange("add"),this._applyElementMatrix(e)},t.prototype._applyElementMatrix=function(e){var t=this.getTotalMatrix();t&&e.applyMatrix(t)},t.prototype.getChildren=function(){return this.get("children")},t.prototype.sort=function(){var e=this.getChildren();(0,o.S6)(e,function(e,t){return e[a]=t,e}),e.sort(function(e,t){var i=e.get("zIndex")-t.get("zIndex");return 0===i?e[a]-t[a]:i}),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var e=this.getChildren(),t=e.length-1;t>=0;t--)e[t].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var e=this.getChildren();return this.getChildByIndex(e.length-1)},t.prototype.getChildByIndex=function(e){return this.getChildren()[e]},t.prototype.getCount=function(){return this.getChildren().length},t.prototype.contain=function(e){return this.getChildren().indexOf(e)>-1},t.prototype.removeChild=function(e,t){void 0===t&&(t=!0),this.contain(e)&&e.remove(t)},t.prototype.findAll=function(e){var t=[],i=this.getChildren();return(0,o.S6)(i,function(i){e(i)&&t.push(i),i.isGroup()&&(t=t.concat(i.findAll(e)))}),t},t.prototype.find=function(e){var t=null,i=this.getChildren();return(0,o.S6)(i,function(i){if(e(i)?t=i:i.isGroup()&&(t=i.find(e)),t)return!1}),t},t.prototype.findById=function(e){return this.find(function(t){return t.get("id")===e})},t.prototype.findByClassName=function(e){return this.find(function(t){return t.get("className")===e})},t.prototype.findAllByName=function(e){return this.findAll(function(t){return t.get("name")===e})},t}(r.Z);t.Z=l},29881:function(e,t,i){"use strict";var n=i(97582),r=i(21030),o=i(31506),s=i(77341),a=i(41482),l=i(2667),h=o.vs,u="matrix",d=["zIndex","capture","visible","type"],c=["repeat"],g=function(e){function t(t){var i=e.call(this,t)||this;i.attrs={};var n=i.getDefaultAttrs();return(0,r.CD)(n,t.attrs),i.attrs=n,i.initAttrs(n),i.initAnimate(),i}return(0,n.ZT)(t,e),t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(e){},t.prototype.initAttrs=function(e){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var e,t=[],i=0;i0?g=function(e,t){if(t.onFrame)return e;var i=t.startTime,n=t.delay,o=t.duration,s=Object.prototype.hasOwnProperty;return(0,r.S6)(e,function(e){i+ne.delay&&(0,r.S6)(t.toAttrs,function(t,i){s.call(e.toAttrs,i)&&(delete e.toAttrs[i],delete e.fromAttrs[i])})}),e}(g,T):d.addAnimator(this),g.push(T),this.set("animations",g),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(e){var t=this;void 0===e&&(e=!0);var i=this.get("animations");(0,r.S6)(i,function(i){e&&(i.onFrame?t.attr(i.onFrame(1)):t.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var e=this.get("timeline"),t=this.get("animations"),i=e.getTime();return(0,r.S6)(t,function(e){e._paused=!0,e._pauseTime=i,e.pauseCallback&&e.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:i}),this},t.prototype.resumeAnimate=function(){var e=this.get("timeline").getTime(),t=this.get("animations"),i=this.get("_pause").pauseTime;return(0,r.S6)(t,function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",t),this},t.prototype.emitDelegation=function(e,t){var i,n=this,o=t.propagationPath;this.getEvents(),"mouseenter"===e?i=t.fromShape:"mouseleave"===e&&(i=t.toShape);for(var a=this,l=0;l=e&&i.minY<=t&&i.maxY>=t},t.prototype.afterAttrsChange=function(t){e.prototype.afterAttrsChange.call(this,t),this.clearCacheBBox()},t.prototype.getBBox=function(){var e=this.cfg.bbox;return e||(e=this.calculateBBox(),this.set("bbox",e)),e},t.prototype.getCanvasBBox=function(){var e=this.cfg.canvasBBox;return e||(e=this.calculateCanvasBBox(),this.set("canvasBBox",e)),e},t.prototype.applyMatrix=function(t){e.prototype.applyMatrix.call(this,t),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var e=this.getBBox(),t=this.getTotalMatrix(),i=e.minX,n=e.minY,r=e.maxX,s=e.maxY;if(t){var a=(0,o.rG)(t,[e.minX,e.minY]),l=(0,o.rG)(t,[e.maxX,e.minY]),h=(0,o.rG)(t,[e.minX,e.maxY]),u=(0,o.rG)(t,[e.maxX,e.maxY]);i=Math.min(a[0],l[0],h[0],u[0]),r=Math.max(a[0],l[0],h[0],u[0]),n=Math.min(a[1],l[1],h[1],u[1]),s=Math.max(a[1],l[1],h[1],u[1])}var d=this.attrs;if(d.shadowColor){var c=d.shadowBlur,g=void 0===c?0:c,p=d.shadowOffsetX,f=void 0===p?0:p,m=d.shadowOffsetY,v=void 0===m?0:m,E=i-g+f,_=r+g+f,C=n-g+v,S=s+g+v;i=Math.min(i,E),r=Math.max(r,_),n=Math.min(n,C),s=Math.max(s,S)}return{x:i,y:n,minX:i,minY:n,maxX:r,maxY:s,width:r-i,height:s-n}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(e,t){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(e,t){var i=this.get("startArrowShape"),n=this.get("endArrowShape"),r=[e,t,1],o=(r=this.invertFromMatrix(r))[0],s=r[1],a=this._isInBBox(o,s);return this.isOnlyHitBox()?a:!!(a&&!this.isClipped(o,s)&&(this.isInShape(o,s)||i&&i.isHit(o,s)||n&&n.isHit(o,s)))},t}(r.Z);t.Z=s},93924:function(e,t,i){"use strict";i.d(t,{_:function(){return $},C:function(){return X}});var n={};function r(e){return+e}function o(e){return e*e}function s(e){return e*(2-e)}function a(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function l(e){return e*e*e}function h(e){return--e*e*e+1}function u(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}i.r(n),i.d(n,{easeBack:function(){return V},easeBackIn:function(){return U},easeBackInOut:function(){return V},easeBackOut:function(){return H},easeBounce:function(){return F},easeBounceIn:function(){return P},easeBounceInOut:function(){return B},easeBounceOut:function(){return F},easeCircle:function(){return A},easeCircleIn:function(){return T},easeCircleInOut:function(){return A},easeCircleOut:function(){return b},easeCubic:function(){return u},easeCubicIn:function(){return l},easeCubicInOut:function(){return u},easeCubicOut:function(){return h},easeElastic:function(){return z},easeElasticIn:function(){return G},easeElasticInOut:function(){return Y},easeElasticOut:function(){return z},easeExp:function(){return y},easeExpIn:function(){return C},easeExpInOut:function(){return y},easeExpOut:function(){return S},easeLinear:function(){return r},easePoly:function(){return g},easePolyIn:function(){return d},easePolyInOut:function(){return g},easePolyOut:function(){return c},easeQuad:function(){return a},easeQuadIn:function(){return o},easeQuadInOut:function(){return a},easeQuadOut:function(){return s},easeSin:function(){return E},easeSinIn:function(){return m},easeSinInOut:function(){return E},easeSinOut:function(){return v}});var d=function e(t){function i(e){return Math.pow(e,t)}return t=+t,i.exponent=e,i}(3),c=function e(t){function i(e){return 1-Math.pow(1-e,t)}return t=+t,i.exponent=e,i}(3),g=function e(t){function i(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,i.exponent=e,i}(3),p=Math.PI,f=p/2;function m(e){return 1==+e?1:1-Math.cos(e*f)}function v(e){return Math.sin(e*f)}function E(e){return(1-Math.cos(p*e))/2}function _(e){return(Math.pow(2,-10*e)-9765625e-10)*1.0009775171065494}function C(e){return _(1-+e)}function S(e){return 1-_(e)}function y(e){return((e*=2)<=1?_(1-e):2-_(e-1))/2}function T(e){return 1-Math.sqrt(1-e*e)}function b(e){return Math.sqrt(1- --e*e)}function A(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var R=4/11,L=6/11,N=8/11,I=3/4,w=9/11,O=10/11,x=15/16,D=21/22,M=63/64,k=1/(4/11)/(4/11);function P(e){return 1-F(1-e)}function F(e){return(e=+e)Math.PI/2?Math.PI-l:l))*(t/2*(1/Math.sin(a/2)))-t/2||0,yExtra:Math.cos((h=h>Math.PI/2?Math.PI-h:h)-a/2)*(t/2*(1/Math.sin(a/2)))-t/2||0}}r("rect",s),r("image",s),r("circle",a),r("marker",a),r("polyline",function(e){for(var t=e.attr().points,i=[],n=[],r=0;r["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return r[e]}).bind(0,s));i.d(t,o);var a=i(15294),o={};for(var s in a)0>["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(s)&&(o[s]=(function(e){return a[e]}).bind(0,s));i.d(t,o);var l=i(89473),h=i(2667),u=i(97050),d=i(31841),c=i(15032),g=i(46556),p=i(8723),f=i(77341),m=i(41482),v=i(67052),E=i(93924),_="0.5.11"},15294:function(){},52:function(){},41482:function(e,t,i){"use strict";function n(e,t){var i=[],n=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=t[0],g=t[1],p=t[2],f=t[3],m=t[4],v=t[5],E=t[6],_=t[7],C=t[8];return i[0]=c*n+g*s+p*h,i[1]=c*r+g*a+p*u,i[2]=c*o+g*l+p*d,i[3]=f*n+m*s+v*h,i[4]=f*r+m*a+v*u,i[5]=f*o+m*l+v*d,i[6]=E*n+_*s+C*h,i[7]=E*r+_*a+C*u,i[8]=E*o+_*l+C*d,i}function r(e,t){var i=[],n=t[0],r=t[1];return i[0]=e[0]*n+e[3]*r+e[6],i[1]=e[1]*n+e[4]*r+e[7],i}function o(e){var t=[],i=e[0],n=e[1],r=e[2],o=e[3],s=e[4],a=e[5],l=e[6],h=e[7],u=e[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,t[0]=d*p,t[1]=(-u*n+r*h)*p,t[2]=(a*n-r*s)*p,t[3]=c*p,t[4]=(u*i-r*l)*p,t[5]=(-a*i+r*o)*p,t[6]=g*p,t[7]=(-h*i+n*l)*p,t[8]=(s*i-n*o)*p,t):null}i.d(t,{U_:function(){return o},rG:function(){return r},xq:function(){return n}})},67052:function(e,t,i){"use strict";i.d(t,{L:function(){return r}});var n=null;function r(){if(!n){var e=document.createElement("canvas");e.width=1,e.height=1,n=e.getContext("2d")}return n}},47575:function(e,t,i){"use strict";i.r(t),i.d(t,{catmullRomToBezier:function(){return l},fillPath:function(){return w},fillPathByDiff:function(){return D},formatPath:function(){return P},intersection:function(){return N},parsePathArray:function(){return m},parsePathString:function(){return a},pathToAbsolute:function(){return u},pathToCurve:function(){return p},rectPath:function(){return y}});var n=i(21030),r=" \n\v\f\r \xa0 ᠎              \u2028\u2029",o=RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),s=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),a=function(e){if(!e)return null;if((0,n.kJ)(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(o,function(n,r,o){var a=[],l=r.toLowerCase();if(o.replace(s,function(e,t){t&&a.push(+t)}),"m"===l&&a.length>2&&(i.push([r].concat(a.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===a.length&&i.push([r,a[0]]),"r"===l)i.push([r].concat(a));else for(;a.length>=t[l]&&(i.push([r].concat(a.splice(0,t[l]))),t[l]););return e}),i},l=function(e,t){for(var i=[],n=0,r=e.length;r-2*!t>n;n+=2){var o=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?r-4===n?o[3]={x:+e[0],y:+e[1]}:r-2===n&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[r-2],y:+e[r-1]}:r-4===n?o[3]=o[2]:n||(o[0]={x:+e[n],y:+e[n+1]}),i.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return i},h=function(e,t,i,n,r){var o=[];if(null===r&&null===n&&(n=i),e=+e,t=+t,i=+i,n=+n,null!==r){var s=Math.PI/180,a=e+i*Math.cos(-n*s),l=e+i*Math.cos(-r*s),h=t+i*Math.sin(-n*s),u=t+i*Math.sin(-r*s);o=[["M",a,h],["A",i,i,0,+(r-n>180),0,l,u]]}else o=[["M",e,t],["m",0,-n],["a",i,n,0,1,1,0,2*n],["a",i,n,0,1,1,0,-2*n],["z"]];return o},u=function(e){if(!(e=a(e))||!e.length)return[["M",0,0]];var t,i,n=[],r=0,o=0,s=0,u=0,d=0;"M"===e[0][0]&&(r=+e[0][1],o=+e[0][2],s=r,u=o,d++,n[0]=["M",r,o]);for(var c=3===e.length&&"M"===e[0][0]&&"R"===e[1][0].toUpperCase()&&"Z"===e[2][0].toUpperCase(),g=void 0,p=void 0,f=d,m=e.length;f1&&(i*=y=Math.sqrt(y),n*=y);var T=i*i,b=n*n,A=(o===s?-1:1)*Math.sqrt(Math.abs((T*b-T*S*S-b*C*C)/(T*S*S+b*C*C)));p=A*i*S/n+(e+a)/2,f=-(A*n)*C/i+(t+l)/2,d=Math.asin(((t-f)/n).toFixed(9)),c=Math.asin(((l-f)/n).toFixed(9)),d=ec&&(d-=2*Math.PI),!s&&c>d&&(c-=2*Math.PI)}var R=c-d;if(Math.abs(R)>m){var L=c,N=a,I=l;E=g(a=p+i*Math.cos(c=d+m*(s&&c>d?1:-1)),l=f+n*Math.sin(c),i,n,r,0,s,N,I,[c,L,p,f])}R=c-d;var w=Math.cos(d),O=Math.cos(c),x=Math.tan(R/4),D=4/3*i*x,M=4/3*n*x,k=[e,t],P=[e+D*Math.sin(d),t-M*w],F=[a+D*Math.sin(c),l-M*O],B=[a,l];if(P[0]=2*k[0]-P[0],P[1]=2*k[1]-P[1],h)return[P,F,B].concat(E);E=[P,F,B].concat(E).join().split(",");for(var U=[],H=0,V=E.length;H7){e[t].shift();for(var o=e[t];o.length;)a[t]="A",r&&(l[t]="A"),e.splice(t++,0,["C"].concat(o.splice(0,6)));e.splice(t,1),i=Math.max(n.length,r&&r.length||0)}},v=function(e,t,o,s,a){e&&t&&"M"===e[a][0]&&"M"!==t[a][0]&&(t.splice(a,0,["M",s.x,s.y]),o.bx=0,o.by=0,o.x=e[a][1],o.y=e[a][2],i=Math.max(n.length,r&&r.length||0))};i=Math.max(n.length,r&&r.length||0);for(var E=0;E1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0,g=0;g<12;g++){var p=h*u[g]+h,f=v(p,e,i,r,s),m=v(p,t,n,o,a),E=f*f+m*m;c+=d[g]*Math.sqrt(E)}return h*c},_=function(e,t,i,n,r,o,s,a){for(var l,h,u,d,c,g=[],p=[[],[]],f=0;f<2;++f){if(0===f?(h=6*e-12*i+6*r,l=-3*e+9*i-9*r+3*s,u=3*i-3*e):(h=6*t-12*n+6*o,l=-3*t+9*n-9*o+3*a,u=3*n-3*t),1e-12>Math.abs(l)){if(1e-12>Math.abs(h))continue;(d=-u/h)>0&&d<1&&g.push(d);continue}var m=h*h-4*u*l,v=Math.sqrt(m);if(!(m<0)){var E=(-h+v)/(2*l);E>0&&E<1&&g.push(E);var _=(-h-v)/(2*l);_>0&&_<1&&g.push(_)}}for(var C=g.length,S=C;C--;)c=1-(d=g[C]),p[0][C]=c*c*c*e+3*c*c*d*i+3*c*d*d*r+d*d*d*s,p[1][C]=c*c*c*t+3*c*c*d*n+3*c*d*d*o+d*d*d*a;return p[0][S]=e,p[1][S]=t,p[0][S+1]=s,p[1][S+1]=a,p[0].length=p[1].length=S+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},C=function(e,t,i,n,r,o,s,a){if(!(Math.max(e,i)Math.max(r,s)||Math.max(t,n)Math.max(o,a))){var l=(e-i)*(o-a)-(t-n)*(r-s);if(l){var h=((e*n-t*i)*(r-s)-(e-i)*(r*a-o*s))/l,u=((e*n-t*i)*(o-a)-(t-n)*(r*a-o*s))/l,d=+h.toFixed(2),c=+u.toFixed(2);if(!(d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(r,s).toFixed(2)||d>+Math.max(r,s).toFixed(2)||c<+Math.min(t,n).toFixed(2)||c>+Math.max(t,n).toFixed(2)||c<+Math.min(o,a).toFixed(2)||c>+Math.max(o,a).toFixed(2)))return{x:h,y:u}}}},S=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},y=function(e,t,i,n,r){if(r)return[["M",+e+ +r,t],["l",i-2*r,0],["a",r,r,0,0,1,r,r],["l",0,n-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-i,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-n],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",e,t],["l",i,0],["l",0,n],["l",-i,0],["z"]];return o.parsePathArray=m,o},T=function(e,t,i,n){return null===e&&(e=t=i=n=0),null===t&&(t=e.y,i=e.width,n=e.height,e=e.x),{x:e,y:t,width:i,w:i,height:n,h:n,x2:e+i,y2:t+n,cx:e+i/2,cy:t+n/2,r1:Math.min(i,n)/2,r2:Math.max(i,n)/2,r0:Math.sqrt(i*i+n*n)/2,path:y(e,t,i,n),vb:[e,t,i,n].join(" ")}},b=function(e,t,i,r,o,s,a,l){(0,n.kJ)(e)||(e=[e,t,i,r,o,s,a,l]);var h=_.apply(null,e);return T(h.min.x,h.min.y,h.max.x-h.min.x,h.max.y-h.min.y)},A=function(e,t,i,n,r,o,s,a,l){var h=1-l,u=Math.pow(h,3),d=Math.pow(h,2),c=l*l,g=c*l,p=e+2*l*(i-e)+c*(r-2*i+e),f=t+2*l*(n-t)+c*(o-2*n+t),m=i+2*l*(r-i)+c*(s-2*r+i),v=n+2*l*(o-n)+c*(a-2*o+n),E=90-180*Math.atan2(p-m,f-v)/Math.PI;return{x:u*e+3*d*l*i+3*h*l*l*r+g*s,y:u*t+3*d*l*n+3*h*l*l*o+g*a,m:{x:p,y:f},n:{x:m,y:v},start:{x:h*e+l*i,y:h*t+l*n},end:{x:h*r+l*s,y:h*o+l*a},alpha:E}},R=function(e,t,i){var n,r,o=b(e),s=b(t);if(n=o,r=s,n=T(n),!(S(r=T(r),n.x,n.y)||S(r,n.x2,n.y)||S(r,n.x,n.y2)||S(r,n.x2,n.y2)||S(n,r.x,r.y)||S(n,r.x2,r.y)||S(n,r.x,r.y2)||S(n,r.x2,r.y2))&&((!(n.xr.x))&&(!(r.xn.x))||(!(n.yr.y))&&(!(r.yn.y))))return i?0:[];for(var a=E.apply(0,e),l=E.apply(0,t),h=~~(a/8),u=~~(l/8),d=[],c=[],g={},p=i?0:[],f=0;fMath.abs(y.x-_.x)?"y":"x",I=.001>Math.abs(L.x-R.x)?"y":"x",w=C(_.x,_.y,y.x,y.y,R.x,R.y,L.x,L.y);if(w){if(g[w.x.toFixed(4)]===w.y.toFixed(4))continue;g[w.x.toFixed(4)]=w.y.toFixed(4);var O=_.t+Math.abs((w[N]-_[N])/(y[N]-_[N]))*(y.t-_.t),x=R.t+Math.abs((w[I]-R[I])/(L[I]-R[I]))*(L.t-R.t);O>=0&&O<=1&&x>=0&&x<=1&&(i?p+=1:p.push({x:w.x,y:w.y,t1:O,t2:x}))}}return p},L=function(e,t,i){e=p(e),t=p(t);for(var n,r,o,s,a,l,h,u,d,c,g=i?0:[],f=0,m=e.length;f=3&&(3===e.length&&t.push("Q"),t=t.concat(e[1])),2===e.length&&t.push("L"),t=t.concat(e[e.length-1])})}(e,t,i));else{var r=[].concat(e);"M"===r[0]&&(r[0]="L");for(var o=0;o<=i-1;o++)n.push(r)}return n},w=function(e,t){if(1===e.length)return e;var i=e.length-1,n=t.length-1,r=i/n,o=[];if(1===e.length&&"M"===e[0][0]){for(var s=0;s=0;l--)s=o[l].index,"add"===o[l].type?e.splice(s,0,[].concat(e[s])):e.splice(s,1)}var d=r-(n=e.length);if(n0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["Q"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"T":e[n]=["T"].concat(i[0]);break;case"C":if(i.length<3){if(n>0)i=M(i,e[n-1],2);else{e[n]=t[n];break}}e[n]=["C"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;case"S":if(i.length<2){if(n>0)i=M(i,e[n-1],1);else{e[n]=t[n];break}}e[n]=["S"].concat(i.reduce(function(e,t){return e.concat(t)},[]));break;default:e[n]=t[n]}return e}},8723:function(e,t,i){"use strict";i.d(t,{$O:function(){return a},FE:function(){return o},mY:function(){return s}});var n=i(77341),r=i(67052);function o(e,t,i){var r=1;if((0,n.HD)(e)&&(r=e.split("\n").length),r>1)return t*r+(i?i-t:.14*t)*(r-1);return t}function s(e,t){var i=(0,r.L)(),o=0;if((0,n.kK)(e)||""===e)return o;if(i.save(),i.font=t,(0,n.HD)(e)&&e.includes("\n")){var s=e.split("\n");(0,n.S6)(s,function(e){var t=i.measureText(e).width;oMath.abs(e-t)}function a(e,t){var i=(0,r.VV)(e),n=(0,r.VV)(t);return{x:i,y:n,width:(0,r.Fp)(e)-i,height:(0,r.Fp)(t)-n}}function l(e,t,i,n){return{minX:(0,r.VV)([e,i]),maxX:(0,r.Fp)([e,i]),minY:(0,r.VV)([t,n]),maxY:(0,r.Fp)([t,n])}}function h(e){return(e+2*Math.PI)%(2*Math.PI)}var u=i(31437),d={box:function(e,t,i,n){return a([e,i],[t,n])},length:function(e,t,i,n){return o(e,t,i,n)},pointAt:function(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}},pointDistance:function(e,t,i,n,r,s){var a=(i-e)*(r-e)+(n-t)*(s-t);return a<0?o(e,t,r,s):a>(i-e)*(i-e)+(n-t)*(n-t)?o(i,n,r,s):this.pointToLine(e,t,i,n,r,s)},pointToLine:function(e,t,i,n,r,o){var s=[i-e,n-t];if(u.I6(s,[0,0]))return Math.sqrt((r-e)*(r-e)+(o-t)*(o-t));var a=[-s[1],s[0]];return u.Fv(a,a),Math.abs(u.AK([r-e,o-t],a))},tangentAngle:function(e,t,i,n){return Math.atan2(n-t,i-e)}};function c(e,t,i,n,r,s){var a,l=1/0,h=[i,n],u=20;s&&s>200&&(u=s/10);for(var d=1/u,c=d/10,g=0;g<=u;g++){var p=g*d,f=[r.apply(null,e.concat([p])),r.apply(null,t.concat([p]))],m=o(h[0],h[1],f[0],f[1]);m=0&&m=0?[r]:[]}function f(e,t,i,n){return 2*(1-n)*(t-e)+2*n*(i-t)}function m(e,t,i,n,r,o,s){var a=g(e,i,r,s),l=g(t,n,o,s),h=d.pointAt(e,t,i,n,s),u=d.pointAt(i,n,r,o,s);return[[e,t,h.x,h.y,a,l],[a,l,u.x,u.y,r,o]]}var v={box:function(e,t,i,n,r,o){var s=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==s&&h.push(g(e,i,r,s)),void 0!==l&&u.push(g(t,n,o,l)),a(h,u)},length:function(e,t,i,n,r,s){return function e(t,i,n,r,s,a,l){if(0===l)return(o(t,i,n,r)+o(n,r,s,a)+o(t,i,s,a))/2;var h=m(t,i,n,r,s,a,.5),u=h[0],d=h[1];return u.push(l-1),d.push(l-1),e.apply(null,u)+e.apply(null,d)}(e,t,i,n,r,s,3)},nearestPoint:function(e,t,i,n,r,o,s,a){return c([e,i,r],[t,n,o],s,a,g)},pointDistance:function(e,t,i,n,r,s,a,l){var h=this.nearestPoint(e,t,i,n,r,s,a,l);return o(h.x,h.y,a,l)},interpolationAt:g,pointAt:function(e,t,i,n,r,o,s){return{x:g(e,i,r,s),y:g(t,n,o,s)}},divide:function(e,t,i,n,r,o,s){return m(e,t,i,n,r,o,s)},tangentAngle:function(e,t,i,n,r,o,s){var a=f(e,i,r,s);return h(Math.atan2(f(t,n,o,s),a))}};function E(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function _(e,t,i,n,r){var o=1-r;return 3*(o*o*(t-e)+2*o*r*(i-t)+r*r*(n-i))}function C(e,t,i,n){var r,o,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if(s(l,0))!s(h,0)&&(r=-u/h)>=0&&r<=1&&d.push(r);else{var c=h*h-4*l*u;s(c,0)?d.push(-h/(2*l)):c>0&&(r=(-h+(a=Math.sqrt(c)))/(2*l),o=(-h-a)/(2*l),r>=0&&r<=1&&d.push(r),o>=0&&o<=1&&d.push(o))}return d}function S(e,t,i,n,r,o,s,a,l){var h=E(e,i,r,s,l),u=E(t,n,o,a,l),c=d.pointAt(e,t,i,n,l),g=d.pointAt(i,n,r,o,l),p=d.pointAt(r,o,s,a,l),f=d.pointAt(c.x,c.y,g.x,g.y,l),m=d.pointAt(g.x,g.y,p.x,p.y,l);return[[e,t,c.x,c.y,f.x,f.y,h,u],[h,u,m.x,m.y,p.x,p.y,s,a]]}var y={extrema:C,box:function(e,t,i,n,r,o,s,l){for(var h=[e,s],u=[t,l],d=C(e,i,r,s),c=C(t,n,o,l),g=0;g0?i:-1*i}var b={box:function(e,t,i,n){return{x:e-i,y:t-n,width:2*i,height:2*n}},length:function(e,t,i,n){return Math.PI*(3*(i+n)-Math.sqrt((3*i+n)*(i+3*n)))},nearestPoint:function(e,t,i,n,r,o){if(0===i||0===n)return{x:e,y:t};for(var s,a,l=r-e,h=o-t,u=Math.abs(l),d=Math.abs(h),c=i*i,g=n*n,p=Math.PI/4,f=0;f<4;f++){s=i*Math.cos(p),a=n*Math.sin(p);var m=(c-g)*Math.pow(Math.cos(p),3)/i,v=(g-c)*Math.pow(Math.sin(p),3)/n,E=s-m,_=a-v,C=u-m,S=d-v,y=Math.hypot(_,E),b=Math.hypot(S,C);p+=y*Math.asin((E*S-_*C)/(y*b))/Math.sqrt(c+g-s*s-a*a),p=Math.min(Math.PI/2,Math.max(0,p))}return{x:e+T(s,l),y:t+T(a,h)}},pointDistance:function(e,t,i,n,r,s){var a=this.nearestPoint(e,t,i,n,r,s);return o(a.x,a.y,r,s)},pointAt:function(e,t,i,n,r){var o=2*Math.PI*r;return{x:e+i*Math.cos(o),y:t+n*Math.sin(o)}},tangentAngle:function(e,t,i,n,r){var o=2*Math.PI*r;return h(Math.atan2(n*Math.cos(o),-i*Math.sin(o)))}};function A(e,t,i,n,r,o){return i*Math.cos(r)*Math.cos(o)-n*Math.sin(r)*Math.sin(o)+e}function R(e,t,i,n,r,o){return i*Math.sin(r)*Math.cos(o)+n*Math.cos(r)*Math.sin(o)+t}function L(e,t,i){return{x:e*Math.cos(i),y:t*Math.sin(i)}}function N(e,t,i){var n=Math.cos(i),r=Math.sin(i);return[e*n-t*r,e*r+t*n]}var I={box:function(e,t,i,n,r,o,s){for(var a=Math.atan(-n/i*Math.tan(r)),l=1/0,h=-1/0,u=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var c=a+d;oh&&(h=g)}for(var p=Math.atan(n/(i*Math.tan(r))),f=1/0,m=-1/0,v=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var E=p+d;om&&(m=_)}return{x:l,y:f,width:h-l,height:m-f}},length:function(e,t,i,n,r,o,s){},nearestPoint:function(e,t,i,n,r,o,s,a,l){var h,u=N(a-e,l-t,-r),d=u[0],c=u[1],g=b.nearestPoint(0,0,i,n,d,c),p=(h=g.x,(Math.atan2(g.y*i,h*n)+2*Math.PI)%(2*Math.PI));ps&&(g=L(i,n,s));var f=N(g.x,g.y,r);return{x:f[0]+e,y:f[1]+t}},pointDistance:function(e,t,i,n,r,s,a,l,h){var u=this.nearestPoint(e,t,i,n,l,h);return o(u.x,u.y,l,h)},pointAt:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o;return{x:A(e,t,i,n,r,l),y:R(e,t,i,n,r,l)}},tangentAngle:function(e,t,i,n,r,o,s,a){var l=(s-o)*a+o,u=-1*i*Math.cos(r)*Math.sin(l)-n*Math.sin(r)*Math.cos(l);return h(Math.atan2(-1*i*Math.sin(r)*Math.sin(l)+n*Math.cos(r)*Math.cos(l),u))}};function w(e){for(var t=0,i=[],n=0;n1||t<0||e.length<2)return null;var i=w(e),n=i.segments,r=i.totalLength;if(0===r)return{x:e[0][0],y:e[0][1]};for(var o=0,s=null,a=0;a=o&&t<=o+c){var g=(t-o)/c;s=d.pointAt(h[0],h[1],u[0],u[1],g);break}o+=c}return s}(e,t)},pointDistance:function(e,t,i){return function(e,t,i){for(var n=1/0,r=0;r1||t<0||e.length<2)return 0;for(var i=w(e),n=i.segments,r=i.totalLength,o=0,s=0,a=0;a=o&&t<=o+d){s=Math.atan2(u[1]-h[1],u[0]-h[0]);break}o+=d}return s}(e,t)}}},75227:function(e,t,i){"use strict";i.d(t,{sg:function(){return d0},x1:function(){return c1}});var n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C,S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei={};i.r(ei),i.d(ei,{assign:function(){return to},default:function(){return tA},defaultI18n:function(){return th},format:function(){return tT},parse:function(){return tb},setGlobalDateI18n:function(){return td},setGlobalDateMasks:function(){return ty}});var en={};i.r(en),i.d(en,{Arc:function(){return iU},DataMarker:function(){return iW},DataRegion:function(){return iG},Html:function(){return iX},Image:function(){return iV},Line:function(){return iF},Region:function(){return iH},RegionFilter:function(){return iz},Shape:function(){return iY},Text:function(){return iB}});var er={};i.r(er),i.d(er,{ellipsisHead:function(){return iQ},ellipsisMiddle:function(){return i1},ellipsisTail:function(){return i0},getDefault:function(){return iJ}});var eo={};i.r(eo),i.d(eo,{equidistance:function(){return ne},equidistanceWithReverseBoth:function(){return nt},getDefault:function(){return i3},reserveBoth:function(){return i8},reserveFirst:function(){return i9},reserveLast:function(){return i7}});var es={};i.r(es),i.d(es,{fixedAngle:function(){return nr},getDefault:function(){return nn},unfixedAngle:function(){return no}});var ea={};i.r(ea),i.d(ea,{autoEllipsis:function(){return er},autoHide:function(){return eo},autoRotate:function(){return es}});var el={};i.r(el),i.d(el,{Base:function(){return nl},Circle:function(){return nu},Html:function(){return nf},Line:function(){return nh}});var eh={};i.r(eh),i.d(eh,{CONTAINER_CLASS:function(){return nL},CROSSHAIR_X:function(){return nM},CROSSHAIR_Y:function(){return nk},LIST_CLASS:function(){return nI},LIST_ITEM_CLASS:function(){return nw},MARKER_CLASS:function(){return nO},NAME_CLASS:function(){return nD},TITLE_CLASS:function(){return nN},VALUE_CLASS:function(){return nx}});var eu={};i.r(eu),i.d(eu,{Base:function(){return sF},Circle:function(){return sB},Ellipse:function(){return sU},Image:function(){return sV},Line:function(){return sz},Marker:function(){return sK},Path:function(){return s0},Polygon:function(){return s2},Polyline:function(){return s4},Rect:function(){return s5},Text:function(){return s6}});var ed={};i.r(ed),i.d(ed,{Canvas:function(){return s7},Group:function(){return sP},Shape:function(){return eu},getArcParams:function(){return sC},version:function(){return s8}});var ec={};i.r(ec),i.d(ec,{Base:function(){return au},Circle:function(){return ad},Dom:function(){return ac},Ellipse:function(){return ag},Image:function(){return ap},Line:function(){return af},Marker:function(){return aE},Path:function(){return a_},Polygon:function(){return aC},Polyline:function(){return aS},Rect:function(){return ay},Text:function(){return aL}});var eg={};i.r(eg),i.d(eg,{Canvas:function(){return aV},Group:function(){return ah},Shape:function(){return ec},version:function(){return aW}});var ep={};i.r(ep),i.d(ep,{cluster:function(){return vy},hierarchy:function(){return fC},pack:function(){return ff},packEnclose:function(){return p8},packSiblings:function(){return fu},partition:function(){return vm},stratify:function(){return vL},tree:function(){return vx},treemap:function(){return vF},treemapBinary:function(){return vB},treemapDice:function(){return vf},treemapResquarify:function(){return vH},treemapSlice:function(){return vD},treemapSliceDice:function(){return vU},treemapSquarify:function(){return vP}});var ef=i(97582),em=i(21030);(n=O||(O={})).FORE="fore",n.MID="mid",n.BG="bg",(r=x||(x={})).TOP="top",r.TOP_LEFT="top-left",r.TOP_RIGHT="top-right",r.RIGHT="right",r.RIGHT_TOP="right-top",r.RIGHT_BOTTOM="right-bottom",r.LEFT="left",r.LEFT_TOP="left-top",r.LEFT_BOTTOM="left-bottom",r.BOTTOM="bottom",r.BOTTOM_LEFT="bottom-left",r.BOTTOM_RIGHT="bottom-right",r.RADIUS="radius",r.CIRCLE="circle",r.NONE="none",(o=D||(D={})).AXIS="axis",o.GRID="grid",o.LEGEND="legend",o.TOOLTIP="tooltip",o.ANNOTATION="annotation",o.SLIDER="slider",o.SCROLLBAR="scrollbar",o.OTHER="other";var ev={FORE:3,MID:2,BG:1};(s=M||(M={})).BEFORE_RENDER="beforerender",s.AFTER_RENDER="afterrender",s.BEFORE_PAINT="beforepaint",s.AFTER_PAINT="afterpaint",s.BEFORE_CHANGE_DATA="beforechangedata",s.AFTER_CHANGE_DATA="afterchangedata",s.BEFORE_CLEAR="beforeclear",s.AFTER_CLEAR="afterclear",s.BEFORE_DESTROY="beforedestroy",s.BEFORE_CHANGE_SIZE="beforechangesize",s.AFTER_CHANGE_SIZE="afterchangesize",(a=k||(k={})).BEFORE_DRAW_ANIMATE="beforeanimate",a.AFTER_DRAW_ANIMATE="afteranimate",(l=P||(P={})).MOUSE_ENTER="plot:mouseenter",l.MOUSE_DOWN="plot:mousedown",l.MOUSE_MOVE="plot:mousemove",l.MOUSE_UP="plot:mouseup",l.MOUSE_LEAVE="plot:mouseleave",l.TOUCH_START="plot:touchstart",l.TOUCH_MOVE="plot:touchmove",l.TOUCH_END="plot:touchend",l.TOUCH_CANCEL="plot:touchcancel",l.CLICK="plot:click",l.DBLCLICK="plot:dblclick",l.CONTEXTMENU="plot:contextmenu",l.LEAVE="plot:leave",l.ENTER="plot:enter",(h=F||(F={})).ACTIVE="active",h.INACTIVE="inactive",h.SELECTED="selected",h.DEFAULT="default";var eE=["color","shape","size"],e_="_origin",eC={};function eS(e){B||(B=document.createElement("table"),U=document.createElement("tr"),H=/^\s*<(\w+|!)[^>]*>/,V={tr:document.createElement("tbody"),tbody:B,thead:B,tfoot:B,td:U,th:U,"*":document.createElement("div")});var t=H.test(e)&&RegExp.$1;t&&t in V||(t="*");var i=V[t];e="string"==typeof e?e.replace(/(^\s*)|(\s*$)/g,""):e,i.innerHTML=""+e;var n=i.childNodes[0];return n&&i.contains(n)&&i.removeChild(n),n}function ey(e,t){if(e)for(var i in t)t.hasOwnProperty(i)&&(e.style[i]=t[i]);return e}function eT(e){return"number"==typeof e&&!isNaN(e)}function eb(e,t,i,n){var r=i,o=n;if(t){var s,a=(s=getComputedStyle(e),{width:(e.clientWidth||parseInt(s.width,10))-parseInt(s.paddingLeft,10)-parseInt(s.paddingRight,10),height:(e.clientHeight||parseInt(s.height,10))-parseInt(s.paddingTop,10)-parseInt(s.paddingBottom,10)});r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(eT(r)?r:1,1),height:Math.max(eT(o)?o:1,1)}}var eA=i(90494),eR=function(e){function t(t){var i=e.call(this)||this;i.destroyed=!1;var n=t.visible;return i.visible=void 0===n||n,i}return(0,ef.ZT)(t,e),t.prototype.show=function(){this.visible||this.changeVisible(!0)},t.prototype.hide=function(){this.visible&&this.changeVisible(!1)},t.prototype.destroy=function(){this.off(),this.destroyed=!0},t.prototype.changeVisible=function(e){this.visible!==e&&(this.visible=e)},t}(eA.Z),eL=i(98190),eN=function(){function e(e){var t=e.xField,i=e.yField,n=e.adjustNames,r=e.dimValuesMap;this.adjustNames=void 0===n?["x","y"]:n,this.xField=t,this.yField=i,this.dimValuesMap=r}return e.prototype.isAdjust=function(e){return this.adjustNames.indexOf(e)>=0},e.prototype.getAdjustRange=function(e,t,i){var n,r,o=this.yField,s=i.indexOf(t),a=i.length;return!o&&this.isAdjust("y")?(n=0,r=1):a>1?(n=i[0===s?0:s-1],r=i[s===a-1?a-1:s+1],0!==s?n+=(t-n)/2:n-=(r-t)/2,s!==a-1?r-=(r-t)/2:r+=(t-i[a-2])/2):(n=0===t?0:t-.5,r=0===t?1:t+.5),{pre:n,next:r}},e.prototype.adjustData=function(e,t){var i=this,n=this.getDimValues(t);em.S6(e,function(e,t){em.S6(n,function(n,r){i.adjustDim(r,n,e,t)})})},e.prototype.groupData=function(e,t){return em.S6(e,function(e){void 0===e[t]&&(e[t]=0)}),em.vM(e,t)},e.prototype.adjustDim=function(e,t,i,n){},e.prototype.getDimValues=function(e){var t=this.xField,i=this.yField,n=em.f0({},this.dimValuesMap),r=[];return t&&this.isAdjust("x")&&r.push(t),i&&this.isAdjust("y")&&r.push(i),r.forEach(function(t){n&&n[t]||(n[t]=em.I(e,t).sort(function(e,t){return e-t}))}),!i&&this.isAdjust("y")&&(n.y=[0,1]),n},e}(),eI={},ew=function(e){return eI[e.toLowerCase()]},eO=function(e,t){if(ew(e))throw Error("Adjust type '"+e+"' existed.");eI[e.toLowerCase()]=t},ex=function(e,t){return(ex=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function eD(e,t){function i(){this.constructor=e}ex(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var eM=function(){return(eM=Object.assign||function(e){for(var t,i=1,n=arguments.length;i=0){var d=this.getIntervalOnlyOffset(i,t);n=l+d}else if(!em.UM(a)&&em.UM(s)&&a>=0){var d=this.getDodgeOnlyOffset(i,t);n=l+d}else if(!em.UM(s)&&!em.UM(a)&&s>=0&&a>=0){var d=this.getIntervalAndDodgeOffset(i,t);n=l+d}else{var c=u*r/i,g=o*c,d=.5*(u-i*c-(i-1)*g)+((t+1)*c+t*g)-.5*c-.5*u;n=(l+h)/2+d}return n},t.prototype.getIntervalOnlyOffset=function(e,t){var i=this.defaultSize,n=this.intervalPadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.dodgeRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=(1-(o-1)*u)/o*s/(e-1),c=((1-u*(o-1))/o-d*(e-1))/e;return c=em.UM(h)?c:1/o/e*h,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=((1-(o-1)*u)/o-e*(c=i?i/r:c))/(e-1),((.5+t)*c+t*d+.5*u)*o-u/2},t.prototype.getDodgeOnlyOffset=function(e,t){var i=this.defaultSize,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=this.marginRatio,a=this.maxColumnWidth,l=this.minColumnWidth,h=this.columnWidthRatio,u=n/r,d=1*s/(o-1),c=((1-d*(o-1))/o-u*(e-1))/e;return c=h?1/o/e*h:c,em.UM(a)||(c=Math.min(c,a/r)),em.UM(l)||(c=Math.max(c,l/r)),d=(1-((c=i?i/r:c)*e+u*(e-1))*o)/(o-1),((.5+t)*c+t*u+.5*d)*o-d/2},t.prototype.getIntervalAndDodgeOffset=function(e,t){var i=this.intervalPadding,n=this.dodgePadding,r=this.xDimensionLegenth,o=this.groupNum,s=i/r,a=n/r;return((.5+t)*(((1-s*(o-1))/o-a*(e-1))/e)+t*a+.5*s)*o-s/2},t.prototype.getDistribution=function(e){var t=this.adjustDataArray,i=this.cacheMap,n=i[e];return n||(n={},em.S6(t,function(t,i){var r=em.I(t,e);r.length||r.push(0),em.S6(r,function(e){n[e]||(n[e]=[]),n[e].push(i)})}),i[e]=n),n},t}(eN),eP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.d9(e),i=em.xH(t);return this.adjustData(t,i),t},t.prototype.adjustDim=function(e,t,i){var n=this,r=this.groupData(i,e);return em.S6(r,function(i,r){return n.adjustGroup(i,e,parseFloat(r),t)})},t.prototype.getAdjustOffset=function(e){var t,i=e.pre,n=e.next,r=(n-i)*.05;return t=i+r,(n-r-t)*Math.random()+t},t.prototype.adjustGroup=function(e,t,i,n){var r=this,o=this.getAdjustRange(t,i,n);return em.S6(e,function(e){e[t]=r.getAdjustOffset(o)}),e},t}(eN),eF=em.Ct,eB=function(e){function t(t){var i=e.call(this,t)||this,n=t.adjustNames,r=t.height,o=void 0===r?NaN:r,s=t.size,a=t.reverseOrder;return i.adjustNames=void 0===n?["y"]:n,i.height=o,i.size=void 0===s?10:s,i.reverseOrder=void 0!==a&&a,i}return eD(t,e),t.prototype.process=function(e){var t=this.yField,i=this.reverseOrder,n=t?this.processStack(e):this.processOneDimStack(e);return i?this.reverse(n):n},t.prototype.reverse=function(e){return e.slice(0).reverse()},t.prototype.processStack=function(e){var t=this.xField,i=this.yField,n=this.reverseOrder?this.reverse(e):e,r=new eF,o=new eF;return n.map(function(e){return e.map(function(e){var n,s=em.U2(e,t,0),a=em.U2(e,[i]),l=s.toString();if(a=em.kJ(a)?a[1]:a,!em.UM(a)){var h=a>=0?r:o;h.has(l)||h.set(l,0);var u=h.get(l),d=a+u;return h.set(l,d),eM(eM({},e),((n={})[i]=[u,d],n))}return e})})},t.prototype.processOneDimStack=function(e){var t=this,i=this.xField,n=this.height,r=this.reverseOrder?this.reverse(e):e,o=new eF;return r.map(function(e){return e.map(function(e){var r,s=t.size,a=e[i],l=2*s/n;o.has(a)||o.set(a,l/2);var h=o.get(a);return o.set(a,h+l),eM(eM({},e),((r={}).y=h,r))})})},t}(eN),eU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eD(t,e),t.prototype.process=function(e){var t=em.xH(e),i=this.xField,n=this.yField,r=this.getXValuesMaxMap(t),o=Math.max.apply(Math,Object.keys(r).map(function(e){return r[e]}));return em.UI(e,function(e){return em.UI(e,function(e){var t,s,a=e[n],l=e[i];if(em.kJ(a)){var h=(o-r[l])/2;return eM(eM({},e),((t={})[n]=em.UI(a,function(e){return h+e}),t))}var u=(o-a)/2;return eM(eM({},e),((s={})[n]=[u,a+u],s))})})},t.prototype.getXValuesMaxMap=function(e){var t=this,i=this.xField,n=this.yField,r=em.vM(e,function(e){return e[i]});return em.Q8(r,function(e){return t.getDimMaxValue(e,n)})},t.prototype.getDimMaxValue=function(e,t){var i=em.UI(e,function(e){return em.U2(e,t,[])}),n=em.xH(i);return Math.max.apply(Math,n)},t}(eN);eO("Dodge",ek),eO("Jitter",eP),eO("Stack",eB),eO("Symmetric",eU);var eH=function(e,t){return(0,em.HD)(t)?t:e.invert(e.scale(t))},eV=function(){function e(e){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(e)}return e.prototype.mapping=function(){for(var e=this,t=[],i=0;i1?1:Number(t),n=e.length-1,r=Math.floor(n*i),o=n*i-r,s=e[r],a=r===n?s:e[r+1];return eX([e$(s,a,o,0),e$(s,a,o,1),e$(s,a,o,2)])},eJ=function(e){if("#"===e[0]&&7===e.length)return e;W||(W=eK()),W.style.color=e;var t=document.defaultView.getComputedStyle(W,"").getPropertyValue("color");return eX(eW.exec(t)[1].split(/\s*,\s*/).map(function(e){return Number(e)}))},eQ={rgb2arr:ej,gradient:function(e){var t=(0,em.HD)(e)?e.split("-"):e,i=(0,em.UI)(t,function(e){return ej(-1===e.indexOf("#")?eJ(e):e)});return function(e){return eZ(i,e)}},toRGB:(0,em.HP)(eJ),toCSSGradient:function(e){if(/^[r,R,L,l]{1}[\s]*\(/.test(e)){var t,i=void 0;if("l"===e[0]){var n=eG.exec(e),r=+n[1]+90;i=n[2],t="linear-gradient("+r+"deg, "}else if("r"===e[0]){t="radial-gradient(";var n=ez.exec(e);i=n[4]}var o=i.match(eY);return(0,em.S6)(o,function(e,i){var n=e.split(":");t+=n[1]+" "+100*n[0]+"%",i!==o.length-1&&(t+=", ")}),t+=")"}return e}},e0=function(e){function t(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,em.HD)(i.values)&&(i.linear=!0),i.gradient=eQ.gradient(i.values),i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){return this.gradient(e)},t}(eV),e1=function(e){function t(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return(0,ef.ZT)(t,e),t}(eV),e2=function(e){function t(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return(0,ef.ZT)(t,e),t.prototype.mapping=function(e,t){var i=this.scales,n=i[0],r=i[1];return(0,em.UM)(e)||(0,em.UM)(t)?[]:[(0,em.kJ)(e)?e.map(function(e){return n.scale(e)}):n.scale(e),(0,em.kJ)(t)?t.map(function(e){return r.scale(e)}):r.scale(t)]},t}(eV),e4=function(e){function t(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return(0,ef.ZT)(t,e),t.prototype.getLinearValue=function(e){var t=Math.round((this.values.length-1)*e);return this.values[t]},t}(eV),e5=function(e){function t(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return(0,ef.ZT)(t,e),t}(eV),e6={},e3=function(){function e(e){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=e,this.initCfg(),this.init()}return e.prototype.translate=function(e){return e},e.prototype.change=function(e){(0,em.f0)(this.__cfg__,e),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var e=this;return(0,em.UI)(this.ticks,function(t,i){return(0,em.Kn)(t)?t:{text:e.getText(t,i),tickValue:t,value:e.scale(t)}})},e.prototype.getText=function(e,t){var i=this.formatter,n=i?i(e,t):e;return(0,em.UM)(n)||!(0,em.mf)(n.toString)?"":n.toString()},e.prototype.getConfig=function(e){return this.__cfg__[e]},e.prototype.init=function(){(0,em.f0)(this,this.__cfg__),this.setDomain(),(0,em.xb)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var e=this.tickMethod,t=[];if((0,em.HD)(e)){var i=e6[e];if(!i)throw Error("There is no method to to calculate ticks!");t=i(this)}else(0,em.mf)(e)&&(t=e(this));return t},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(e,t,i){return(0,em.hj)(e)?(e-t)/(i-t):NaN},e.prototype.calcValue=function(e,t,i){return t+e*(i-t)},e}(),e9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cat",t.isCategory=!0,t}return(0,ef.ZT)(t,e),t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var e=0;ethis.max?NaN:this.values[t]},t.prototype.getText=function(t){for(var i=[],n=1;n1?e-1:e}this.translateIndexMap&&(this.translateIndexMap=void 0)},t}(e3),e7=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,e8="\\d\\d?",te="\\d\\d",tt="[^\\s]+",ti=/\[([^]*?)\]/gm;function tn(e,t){for(var i=[],n=0,r=e.length;n-1?n:null}};function to(e){for(var t=[],i=1;i3?0:(e-e%10!=10?1:0)*e%10]}},tu=to({},th),td=function(e){return tu=to(tu,e)},tc=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},tg=function(e,t){for(void 0===t&&(t=2),e=String(e);e.lengthe.getHours()?t.amPm[0]:t.amPm[1]},A:function(e,t){return 12>e.getHours()?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+tg(Math.floor(Math.abs(t)/60),2)+":"+tg(Math.abs(t)%60,2)}},tf=function(e){return+e-1},tm=[null,e8],tv=[null,tt],tE=["isPm",tt,function(e,t){var i=e.toLowerCase();return i===t.amPm[0]?0:i===t.amPm[1]?1:null}],t_=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var i=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?i:-i}return 0}],tC={D:["day",e8],DD:["day",te],Do:["day",e8+tt,function(e){return parseInt(e,10)}],M:["month",e8,tf],MM:["month",te,tf],YY:["year",te,function(e){var t=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour",e8,void 0,"isPm"],hh:["hour",te,void 0,"isPm"],H:["hour",e8],HH:["hour",te],m:["minute",e8],mm:["minute",te],s:["second",e8],ss:["second",te],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond",te,function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:tm,dd:tm,ddd:tv,dddd:tv,MMM:["month",tt,tr("monthNamesShort")],MMMM:["month",tt,tr("monthNames")],a:tE,A:tE,ZZ:t_,Z:t_},tS={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ty=function(e){return to(tS,e)},tT=function(e,t,i){if(void 0===t&&(t=tS.default),void 0===i&&(i={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw Error("Invalid Date pass to format");t=tS[t]||t;var n=[];t=t.replace(ti,function(e,t){return n.push(t),"@@@"});var r=to(to({},tu),i);return(t=t.replace(e7,function(t){return tp[t](e,r)})).replace(/@@@/g,function(){return n.shift()})};function tb(e,t,i){if(void 0===i&&(i={}),"string"!=typeof t)throw Error("Invalid format in fecha parse");if(t=tS[t]||t,e.length>1e3)return null;var n,r={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],a=t.replace(ti,function(e,t){return s.push(tc(t)),"@@@"}),l={},h={};a=tc(a).replace(e7,function(e){var t=tC[e],i=t[0],n=t[1],r=t[3];if(l[i])throw Error("Invalid format. "+i+" specified twice in format");return l[i]=!0,r&&(h[r]=!0),o.push(t),"("+n+")"}),Object.keys(h).forEach(function(e){if(!l[e])throw Error("Invalid format. "+e+" is required in specified format")}),a=a.replace(/@@@/g,function(){return s.shift()});var u=e.match(RegExp(a,"i"));if(!u)return null;for(var d=to(to({},tu),i),c=1;c11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return n}var tA={format:tT,parse:tb,defaultI18n:th,setGlobalDateI18n:td,setGlobalDateMasks:ty},tR="format";function tL(e,t){return(ei[tR]||tA[tR])(e,t)}function tN(e){return(0,em.HD)(e)&&(e=e.indexOf("T")>0?new Date(e).getTime():new Date(e.replace(/-/gi,"/")).getTime()),(0,em.J_)(e)&&(e=e.getTime()),e}var tI=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",36e5],["HH",216e5],["HH",432e5],["YYYY-MM-DD",864e5],["YYYY-MM-DD",3456e5],["YYYY-WW",6048e5],["YYYY-MM",26784e5],["YYYY-MM",107136e5],["YYYY-MM",160704e5],["YYYY",32832e6]],tw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="timeCat",t}return(0,ef.ZT)(t,e),t.prototype.translate=function(e){e=tN(e);var t=this.values.indexOf(e);return -1===t&&(t=(0,em.hj)(e)&&e-1){var n=this.values[i],r=this.formatter;return r?r(n,t):tL(n,this.mask)}return e},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var t=this.values;(0,em.S6)(t,function(e,i){t[i]=tN(e)}),t.sort(function(e,t){return e-t}),e.prototype.setDomain.call(this)},t}(e9),tO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isContinuous=!0,t}return(0,ef.ZT)(t,e),t.prototype.scale=function(e){if((0,em.UM)(e))return NaN;var t=this.rangeMin(),i=this.rangeMax();return this.max===this.min?t:t+this.getScalePercent(e)*(i-t)},t.prototype.init=function(){e.prototype.init.call(this);var t=this.ticks,i=(0,em.YM)(t),n=(0,em.Z$)(t);ithis.max&&(this.max=n),(0,em.UM)(this.minLimit)||(this.min=i),(0,em.UM)(this.maxLimit)||(this.max=n)},t.prototype.setDomain=function(){var e=(0,em.rx)(this.values),t=e.min,i=e.max;(0,em.UM)(this.min)&&(this.min=t),(0,em.UM)(this.max)&&(this.max=i),this.min>this.max&&(this.min=t,this.max=i)},t.prototype.calculateTicks=function(){var t=this,i=e.prototype.calculateTicks.call(this);return this.nice||(i=(0,em.hX)(i,function(e){return e>=t.min&&e<=t.max})),i},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;return(e-i)/(t-i)},t.prototype.getInvertPercent=function(e){return(e-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t}(e3),tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.getInvertPercent(e);return this.min+t*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t}(tO);function tD(e,t){var i=Math.E;return t>=0?Math.pow(i,Math.log(t)/e):-1*Math.pow(i,Math.log(-t)/e)}function tM(e,t){return 1===e?1:Math.log(t)/Math.log(e)}function tk(e,t,i){(0,em.UM)(i)&&(i=Math.max.apply(null,e));var n=i;return(0,em.S6)(e,function(e){e>0&&e1&&(n=1),n}var tP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t,i=this.base,n=tM(i,this.max),r=this.rangeMin(),o=this.rangeMax()-r,s=this.positiveMin;if(s){if(0===e)return 0;var a=1/(n-(t=tM(i,s/i)))*o;if(e=0?1:-1)},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(e){var t=this.max,i=this.min;if(t===i)return 0;var n=this.exponent;return(tD(n,e)-tD(n,i))/(tD(n,t)-tD(n,i))},t}(tO),tB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="time",t}return(0,ef.ZT)(t,e),t.prototype.getText=function(e,t){var i=this.translate(e),n=this.formatter;return n?n(i,t):tL(i,this.mask)},t.prototype.scale=function(t){var i=t;return((0,em.HD)(i)||(0,em.J_)(i))&&(i=this.translate(i)),e.prototype.scale.call(this,i)},t.prototype.translate=function(e){return tN(e)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var e=this.values,t=this.getConfig("min"),i=this.getConfig("max");if((0,em.UM)(t)&&(0,em.hj)(t)||(this.min=this.translate(this.min)),(0,em.UM)(i)&&(0,em.hj)(i)||(this.max=this.translate(this.max)),e&&e.length){var n=[],r=1/0,o=1/0,s=0;(0,em.S6)(e,function(e){var t=tN(e);if(isNaN(t))throw TypeError("Invalid Time: "+e+" in time scale!");r>t?(o=r,r=t):o>t&&(o=t),s1&&(this.minTickInterval=o-r),(0,em.UM)(t)&&(this.min=r),(0,em.UM)(i)&&(this.max=s)}},t}(tx),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantize",t}return(0,ef.ZT)(t,e),t.prototype.invert=function(e){var t=this.ticks,i=t.length,n=this.getInvertPercent(e),r=Math.floor(n*(i-1));if(r>=i-1)return(0,em.Z$)(t);if(r<0)return(0,em.YM)(t);var o=t[r],s=t[r+1],a=r/(i-1);return o+(n-a)/((r+1)/(i-1)-a)*(s-o)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var t=e.prototype.calculateTicks.call(this);return this.nice||((0,em.Z$)(t)!==this.max&&t.push(this.max),(0,em.YM)(t)!==this.min&&t.unshift(this.min)),t},t.prototype.getScalePercent=function(e){var t=this.ticks;if(e<(0,em.YM)(t))return 0;if(e>(0,em.Z$)(t))return 1;var i=0;return(0,em.S6)(t,function(t,n){if(!(e>=t))return!1;i=n}),i/(t.length-1)},t}(tO),tH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="quantile",t}return(0,ef.ZT)(t,e),t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t}(tU),tV={};function tW(e,t){if(tV[e])throw Error("type '"+e+"' existed.");tV[e]=t}var tG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return(0,ef.ZT)(t,e),t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(e){return this.values[0]!==e&&(0,em.hj)(e)?e:this.range[0]},t.prototype.invert=function(e){var t=this.range;return et[1]?NaN:this.values[0]},t}(e3);function tz(e){var t=e.values,i=e.tickInterval,n=e.tickCount,r=e.showLast;if((0,em.hj)(i)){var o=(0,em.hX)(t,function(e,t){return t%i==0}),s=(0,em.Z$)(t);return r&&(0,em.Z$)(o)!==s&&o.push(s),o}var a=t.length,l=e.min,h=e.max;if((0,em.UM)(l)&&(l=0),(0,em.UM)(h)&&(h=t.length-1),!(0,em.hj)(n)||n>=a)return t.slice(l,h+1);if(n<=0||h<=0)return[];for(var u=1===n?a:Math.floor(a/(n-1)),d=[],c=l,g=0;g=h);g++)c=Math.min(l+g*u,h),g===n-1&&r?d.push(t[h]):d.push(t[c]);return d}var tY=Math.sqrt(50),tK=Math.sqrt(10),t$=Math.sqrt(2),tX=function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(e){return e?(this._domain=Array.from(e,Number),this):this._domain.slice()},e.prototype.nice=function(e){void 0===e&&(e=5);var t,i,n,r=this._domain.slice(),o=0,s=this._domain.length-1,a=this._domain[o],l=this._domain[s];return l0?n=tj(a=Math.floor(a/n)*n,l=Math.ceil(l/n)*n,e):n<0&&(n=tj(a=Math.ceil(a*n)/n,l=Math.floor(l*n)/n,e)),n>0?(r[o]=Math.floor(a/n)*n,r[s]=Math.ceil(l/n)*n,this.domain(r)):n<0&&(r[o]=Math.ceil(a*n)/n,r[s]=Math.floor(l*n)/n,this.domain(r)),this},e.prototype.ticks=function(e){return void 0===e&&(e=5),function(e,t,i){var n,r,o,s,a=-1;if(i=+i,(e=+e)==(t=+t)&&i>0)return[e];if((n=t0)for(e=Math.ceil(e/s),o=Array(r=Math.ceil((t=Math.floor(t/s))-e+1));++a=0?(o>=tY?10:o>=tK?5:o>=t$?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=tY?10:o>=tK?5:o>=t$?2:1)}function tq(e,t,i){return("ceil"===i?Math.ceil(e/t):"floor"===i?Math.floor(e/t):Math.round(e/t))*t}function tZ(e,t,i){var n=tq(e,i,"floor"),r=tq(t,i,"ceil");n=(0,em.ri)(n,i),r=(0,em.ri)(r,i);for(var o=[],s=Math.max((r-n)/4095,i),a=n;a<=r;a+=s){var l=(0,em.ri)(a,s);o.push(l)}return{min:n,max:r,ticks:o}}function tJ(e,t,i){var n,r=e.minLimit,o=e.maxLimit,s=e.min,a=e.max,l=e.tickCount,h=void 0===l?5:l,u=(0,em.UM)(r)?(0,em.UM)(t)?s:t:r,d=(0,em.UM)(o)?(0,em.UM)(i)?a:i:o;if(u>d&&(d=(n=[u,d])[0],u=n[1]),h<=2)return[u,d];for(var c=(d-u)/(h-1),g=[],p=0;pMath.abs(e)?e:parseFloat(e.toFixed(15))}var t0=[1,5,2,2.5,4,3],t1=100*Number.EPSILON;function t2(e,t,i){if(void 0===i&&(i=5),e===t)return{max:t,min:e,ticks:[e]};var n=i<0?0:Math.round(i);if(0===n)return{max:t,min:e,ticks:[]};var r=(t-e)/n,o=Math.pow(10,Math.floor(Math.log10(r))),s=o;2*o-r<1.5*(r-s)&&(s=2*o,5*o-r<2.75*(r-s)&&(s=5*o,10*o-r<1.5*(r-s)&&(s=10*o)));for(var a=Math.ceil(t/s),l=Math.floor(e/s),h=Math.max(a*s,t),u=Math.min(l*s,e),d=Math.floor((h-u)/s)+1,c=Array(d),g=0;g1e148){var a=i||5,l=(t-e)/a;return{min:e,max:t,ticks:Array(a).fill(null).map(function(t,i){return tQ(e+l*i)})}}for(var h={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var d=0;d=s?2-(y-1)/(s-1):1;if(o[0]*g+o[1]+o[2]*f+o[3]n?1-Math.pow((i-n)/2,2)/Math.pow(.1*n,2):1}(e,t,v*(p-1));if(o[0]*g+o[1]*E+o[2]*f+o[3]=0&&(l=1),1-a/(s-1)-i+l}(c,r,u,T,b,v),R=1-.5*(Math.pow(t-b,2)+Math.pow(e-T,2))/Math.pow(.1*(t-e),2),L=function(e,t,i,n,r,o){var s=(e-1)/(o-r),a=(t-1)/(Math.max(o,n)-Math.min(i,r));return 2-Math.max(s/a,a/s)}(p,s,e,t,T,b),N=o[0]*A+o[1]*R+o[2]*L+1*o[3];N>h.score&&(!n||T<=e&&b>=t)&&(h.lmin=T,h.lmax=b,h.lstep=v,h.score=N)}m+=1}p+=1}}u+=1}var I=tQ(h.lmax),w=tQ(h.lmin),O=tQ(h.lstep),x=Math.floor(Math.round(1e12*((I-w)/O))/1e12)+1,D=Array(x);D[0]=tQ(w);for(var d=1;d>>1;e[s][1]>t?o=s:r=s+1}return r}(tI,(i-t)/(s=o))-1,l=tI[a],a<0?l=tI[0]:a>=tI.length&&(l=(0,em.Z$)(tI)),l)[1];var s,a,l,h=(i-t)/r/o;h>1&&(r*=Math.ceil(h)),n&&r31536e6)for(var l,h=t4(i),u=Math.ceil(o/31536e6),d=a;d<=h+u;d+=u)s.push((l=d,new Date(l,0,1).getTime()));else if(o>26784e5)for(var c,g,p,f,m=Math.ceil(o/26784e5),v=t5(t),E=(c=t4(t),g=t4(i),p=t5(t),(g-c)*12+(t5(i)-p)%12),d=0;d<=E+m;d+=m)s.push((f=d+v,new Date(a,f,1).getTime()));else if(o>864e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),y=_.getDate(),T=Math.ceil(o/864e5),b=Math.ceil((i-t)/864e5),d=0;d36e5)for(var _=new Date(t),C=_.getFullYear(),S=_.getMonth(),T=_.getDate(),A=_.getHours(),R=Math.ceil(o/36e5),L=Math.ceil((i-t)/36e5),d=0;d<=L+R;d+=R)s.push(new Date(C,S,T,A+d).getTime());else if(o>6e4)for(var N=Math.ceil((i-t)/6e4),I=Math.ceil(o/6e4),d=0;d<=N+I;d+=I)s.push(t+6e4*d);else{var w=o;w<1e3&&(w=1e3);for(var O=1e3*Math.floor(t/1e3),x=Math.ceil((i-t)/1e3),D=Math.ceil(w/1e3),d=0;d=512&&console.warn("Notice: current ticks length("+s.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),s},e6.log=function(e){var t,i=e.base,n=e.tickCount,r=e.min,o=e.max,s=e.values,a=tM(i,o);if(r>0)t=Math.floor(tM(i,r));else{var l=tk(s,i,o);t=Math.floor(tM(i,l))}for(var h=Math.ceil((a-t)/n),u=[],d=t;d=0?1:-1)})},e6.quantile=function(e){var t=e.tickCount,i=e.values;if(!i||!i.length)return[];for(var n=i.slice().sort(function(e,t){return e-t}),r=[],o=0;o=0&&this.radius<=1&&(i*=this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+.99*this.d}},t.prototype.convertPoint=function(e){var t,i=e.x,n=e.y;this.isTransposed&&(i=(t=[n,i])[0],n=t[1]);var r=this.convertDim(i,"x"),o=this.a*r,s=this.convertDim(n,"y");return{x:this.center.x+Math.cos(r)*(o+s),y:this.center.y+Math.sin(r)*(o+s)}},t.prototype.invertPoint=function(e){var t,i=this.d+this.y.start,n=io.$X([0,0],[e.x,e.y],[this.center.x,this.center.y]),r=it.Dg(n,[1,0],!0),o=r*this.a;io.kE(n)this.width/n?(t=this.width/n,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-s)*t*r}):(t=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*t*n,y:this.center.y-(.5-s)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=t*this.radius:(this.radius<=0||this.radius>t)&&(this.polarRadius=t):this.polarRadius=t,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(e){var t,i=this.getCenter(),n=e.x,r=e.y;return this.isTransposed&&(n=(t=[r,n])[0],r=t[1]),n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:i.x+Math.cos(n)*r,y:i.y+Math.sin(n)*r}},t.prototype.invertPoint=function(e){var t,i=this.getCenter(),n=[e.x-i.x,e.y-i.y],r=this.startAngle,o=this.endAngle;this.isReflect("x")&&(r=(t=[o,r])[0],o=t[1]);var s=[1,0,0,0,1,0,0,0,1];it.zu(s,s,r);var a=[1,0,0];t8(a,a,s);var l=[a[0],a[1]],h=it.Dg(l,n,o0?d:-d;var c=this.invertDim(u,"y"),g={x:0,y:0};return g.x=this.isTransposed?c:d,g.y=this.isTransposed?d:c,g},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var e=this.startAngle,t=this.endAngle;if(Math.abs(t-e)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var i=[0,Math.cos(e),Math.cos(t)],n=[0,Math.sin(e),Math.sin(t)],r=Math.min(e,t);r=0;n--)e.removeChild(t[n])}function iC(e){var t=e.start,i=e.end,n=Math.min(t.x,i.x),r=Math.min(t.y,i.y),o=Math.max(t.x,i.x),s=Math.max(t.y,i.y);return{x:n,y:r,minX:n,minY:r,maxX:o,maxY:s,width:o-n,height:s-r}}function iS(e,t,i,n){var r=e+i,o=t+n;return{x:e,y:t,width:i,height:n,minX:e,minY:t,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function iy(e,t,i){return{x:e.x+Math.cos(i)*t,y:e.y+Math.sin(i)*t}}var iT=function(e,t,i){return void 0===i&&(i=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)0?(0,em.S6)(c,function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var i=e(t),n=t.applyToMatrix([i.minX,i.minY,1]),r=t.applyToMatrix([i.minX,i.maxY,1]),o=t.applyToMatrix([i.maxX,i.minY,1]),s=t.applyToMatrix([i.maxX,i.maxY,1]),a=Math.min(n[0],r[0],o[0],s[0]),c=Math.max(n[0],r[0],o[0],s[0]),g=Math.min(n[1],r[1],o[1],s[1]),p=Math.max(n[1],r[1],o[1],s[1]);ah&&(h=c),gd&&(d=p)}}):(l=0,h=0,u=0,d=0),o=iS(l,u,h-l,d-u)}else o=t.getBBox();return a?iS(n=Math.max((i=o).minX,a.minX),r=Math.max(i.minY,a.minY),Math.min(i.maxX,a.maxX)-n,Math.min(i.maxY,a.maxY)-r):o}(e)),e},t.prototype.addGroup=function(e,t){this.appendDelegateObject(e,t);var i=e.addGroup(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addShape=function(e,t){this.appendDelegateObject(e,t);var i=e.addShape(t);return this.get("isRegister")&&this.registerElement(i),i},t.prototype.addComponent=function(e,t){var i=t.id,n=t.component,r=(0,ef._T)(t,["id","component"]),o=new n((0,ef.pi)((0,ef.pi)({},r),{id:i,container:e,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){this.get("group").off()},t.prototype.getElementId=function(e){return this.get("id")+"-"+this.get("name")+"-"+e},t.prototype.registerElement=function(e){var t=e.get("id");this.get("shapesMap")[t]=e},t.prototype.unregisterElement=function(e){var t=e.get("id");delete this.get("shapesMap")[t]},t.prototype.moveElementTo=function(e,t){var i=ig(t);e.attr("matrix",i)},t.prototype.addAnimation=function(e,t,i){var n=t.attr("opacity");(0,em.UM)(n)&&(n=1),t.attr("opacity",0),t.animate({opacity:n},i)},t.prototype.removeAnimation=function(e,t,i){t.animate({opacity:0},i)},t.prototype.updateAnimation=function(e,t,i,n){t.animate(i,n)},t.prototype.updateElements=function(e,t){var i,n=this,r=this.get("animate"),o=this.get("animateOption"),s=e.getChildren().slice(0);(0,em.S6)(s,function(e){var s=e.get("id"),a=n.getElementById(s),l=e.get("name");if(a){if(e.get("isComponent")){var h=e.get("component"),u=a.get("component"),d=(0,em.ei)(h.cfg,(0,em.e5)((0,em.XP)(h.cfg),iw));u.update(d),a.set(iN,"update")}else{var c=n.getReplaceAttrs(a,e);r&&o.update?n.updateAnimation(l,a,c,o.update):a.attr(c),e.isGroup()&&n.updateElements(e,a),(0,em.S6)(iI,function(t){a.set(t,e.get(t))}),function(e,t){if(e.getClip()||t.getClip()){var i=t.getClip();if(!i){e.setClip(null);return}var n={type:i.get("type"),attrs:i.attr()};e.setClip(n)}}(a,e),i=a,a.set(iN,"update")}}else{t.add(e);var g=t.getChildren();if(g.splice(g.length-1,1),i){var p=g.indexOf(i);g.splice(p+1,0,e)}else g.unshift(e);if(n.registerElement(e),e.set(iN,"add"),e.get("isComponent")){var h=e.get("component");h.set("container",t)}else e.isGroup()&&n.registerNewGroup(e);if(i=e,r){var f=n.get("isInit")?o.appear:o.enter;f&&n.addAnimation(l,e,f)}}})},t.prototype.clearUpdateStatus=function(e){var t=e.getChildren();(0,em.S6)(t,function(e){e.set(iN,null)})},t.prototype.clearOffScreenCache=function(){var e=this.get("offScreenGroup");e&&e.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var e,t=this.get("name");return(e={})[t]=this,e.component=this,e},t.prototype.appendDelegateObject=function(e,t){var i=e.get("delegateObject");t.delegateObject||(t.delegateObject={}),(0,em.CD)(t.delegateObject,i)},t.prototype.getReplaceAttrs=function(e,t){var i=e.attr(),n=t.attr();return(0,em.S6)(i,function(e,t){void 0===n[t]&&(n[t]=void 0)}),n},t.prototype.registerNewGroup=function(e){var t=this,i=e.getChildren();(0,em.S6)(i,function(e){t.registerElement(e),e.set(iN,"add"),e.isGroup()&&t.registerNewGroup(e)})},t.prototype.deleteElements=function(){var e=this,t=this.get("shapesMap"),i=[];(0,em.S6)(t,function(e,t){!e.get(iN)||e.destroyed?i.push([t,e]):e.set(iN,null)});var n=this.get("animate"),r=this.get("animateOption");(0,em.S6)(i,function(i){var o=i[0],s=i[1];if(!s.destroyed){var a=s.get("name");if(n&&r.leave){var l=(0,em.CD)({callback:function(){e.removeElement(s)}},r.leave);e.removeAnimation(a,s,l)}else e.removeElement(s)}delete t[o]})},t.prototype.removeElement=function(e){if(e.get("isGroup")){var t=e.get("component");t&&t.destroy()}e.remove()},t}(iL);function ix(e,t){return e.charCodeAt(t)>0&&128>e.charCodeAt(t)?1:2}function iD(e){if(e.length>400)return function(e){for(var t=e.map(function(e){var t=e.attr("text");return(0,em.UM)(t)?"":""+t}),i=0,n=0,r=0;r=19968&&a<=40869?o+=2:o+=1}o>i&&(i=o,n=r)}return e[n].getBBox().width}(e);var t=0;return(0,em.S6)(e,function(e){var i=e.getBBox().width;t=0?function(e,t,i){void 0===i&&(i="tail");var n=e.length,r="";if("tail"===i){for(var o=0,s=0;o1||n<0)&&(n=1),{x:(r=e.x,o=t.x,(1-(s=n))*r+o*s),y:(a=e.y,l=t.y,(1-(h=n))*a+l*h)}},t.prototype.renderLabel=function(e){var t=this.get("text"),i=this.get("start"),n=this.get("end"),r=t.position,o=t.content,s=t.style,a=t.offsetX,l=t.offsetY,h=t.autoRotate,u=t.maxLength,d=t.autoEllipsis,c=t.ellipsisPosition,g=t.background,p=t.isVertical,f=this.getLabelPoint(i,n,r),m=f.x+a,v=f.y+l,E={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:v,content:o,style:s,maxLength:u,autoEllipsis:d,ellipsisPosition:c,background:g,isVertical:void 0!==p&&p};if(h){var _=[n.x-i.x,n.y-i.y];E.rotate=Math.atan2(_[1],_[0])}ik(e,E)},t}(iO),iB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:iP.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}}})},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.renderInner=function(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("content"),o=this.get("style");ik(e,{id:this.getElementId("text"),name:this.get("name")+"-text",x:i,y:n,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},t.prototype.resetLocation=function(){var e=this.getElementByLocalId("text-group");if(e){var t=this.getLocation(),i=t.x,n=t.y,r=this.get("rotate");iv(e,i,n),im(e,r,i,n)}},t}(iO),iU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(e){this.renderArc(e)},t.prototype.getArcPath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=iy(t,i,n),s=iy(t,i,r),a=r-n>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-n==2*Math.PI){var h=iy(t,i,n+Math.PI);l.push(["A",i,i,0,a,1,h.x,h.y]),l.push(["A",i,i,0,a,1,s.x,s.y])}else l.push(["A",i,i,0,a,1,s.x,s.y]);return l},t.prototype.renderArc=function(e){var t=this.getArcPath(),i=this.get("style");this.addShape(e,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,ef.pi)({path:t},i)})},t}(iO),iH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}}})},t.prototype.renderInner=function(e){this.renderRegion(e)},t.prototype.renderRegion=function(e){var t=this.get("start"),i=this.get("end"),n=this.get("style"),r=iC({start:t,end:i});this.addShape(e,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({x:r.x,y:r.y,width:r.width,height:r.height},n)})},t}(iO),iV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(e){this.renderImage(e)},t.prototype.getImageAttrs=function(){var e=this.get("start"),t=this.get("end"),i=this.get("style"),n=iC({start:e,end:t}),r=this.get("src");return(0,ef.pi)({x:n.x,y:n.y,img:r,width:n.width,height:n.height},i)},t.prototype.renderImage=function(e){this.addShape(e,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t}(iO),iW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:iP.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:iP.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){(0,em.U2)(this.get("line"),"display")&&this.renderLine(e),(0,em.U2)(this.get("text"),"display")&&this.renderText(e),(0,em.U2)(this.get("point"),"display")&&this.renderPoint(e),this.get("autoAdjust")&&this.autoAdjust(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(e){var t=this.getShapeAttrs().point;this.addShape(e,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:t})},t.prototype.renderLine=function(e){var t=this.getShapeAttrs().line;this.addShape(e,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:t})},t.prototype.renderText=function(e){var t=this.getShapeAttrs().text,i=t.x,n=t.y,r=t.text,o=(0,ef._T)(t,["x","y","text"]),s=this.get("text"),a=s.background,l=s.maxLength,h=s.autoEllipsis,u=s.isVertival,d=s.ellipsisPosition;ik(e,{x:i,y:n,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:a,maxLength:l,autoEllipsis:h,isVertival:u,ellipsisPosition:d})},t.prototype.autoAdjust=function(e){var t=this.get("direction"),i=this.get("x"),n=this.get("y"),r=(0,em.U2)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=e.getBBox(),a=s.minX,l=s.maxX,h=s.minY,u=s.maxY,d=e.findById(this.getElementId("text-group")),c=e.findById(this.getElementId("text")),g=e.findById(this.getElementId("line"));if(o&&d){var p=d.attr("x"),f=d.attr("y"),m=c.getCanvasBBox(),v=m.width,E=m.height,_=0,C=0;if(i+a<=o.minX){if("leftward"===t)_=1;else{var S=o.minX-(i+a);p=d.attr("x")+S}}else if(i+l>=o.maxX){if("rightward"===t)_=-1;else{var S=i+l-o.maxX;p=d.attr("x")-S}}if(_&&(g&&g.attr("path",[["M",0,0],["L",r*_,0]]),p=(r+2+v)*_),n+h<=o.minY){if("upward"===t)C=1;else{var S=o.minY-(n+h);f=d.attr("y")+S}}else if(n+u>=o.maxY){if("downward"===t)C=-1;else{var S=n+u-o.maxY;f=d.attr("y")-S}}C&&(g&&g.attr("path",[["M",0,0],["L",0,r*C]]),f=(r+2+E)*C),(p!==d.attr("x")||f!==d.attr("y"))&&iv(d,p,f)}},t.prototype.getShapeAttrs=function(){var e=(0,em.U2)(this.get("line"),"display"),t=(0,em.U2)(this.get("point"),"style",{}),i=(0,em.U2)(this.get("line"),"style",{}),n=(0,em.U2)(this.get("text"),"style",{}),r=this.get("direction"),o=e?(0,em.U2)(this.get("line"),"length",0):0,s=0,a=0,l="top",h="start";switch(r){case"upward":a=-1,l="bottom";break;case"downward":a=1,l="top";break;case"leftward":s=-1,h="end";break;case"rightward":s=1,h="start"}return{point:(0,ef.pi)({x:0,y:0},t),line:(0,ef.pi)({path:[["M",0,0],["L",o*s,o*a]]},i),text:(0,ef.pi)({x:(o+2)*s,y:(o+2)*a,text:(0,em.U2)(this.get("text"),"content",""),textBaseline:l,textAlign:h},n)}},t}(iO),iG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:iP.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily}}}})},t.prototype.renderInner=function(e){var t,i,n,r,o,s,a=(0,em.U2)(this.get("region"),"style",{});(0,em.U2)(this.get("text"),"style",{});var l=this.get("lineLength")||0,h=this.get("points");if(h.length){var u=(t=h.map(function(e){return e.x}),i=h.map(function(e){return e.y}),n=Math.min.apply(Math,t),r=Math.min.apply(Math,i),{x:n,y:r,minX:n,minY:r,maxX:o=Math.max.apply(Math,t),maxY:s=Math.max.apply(Math,i),width:o-n,height:s-r}),d=[];d.push(["M",h[0].x,u.minY-l]),h.forEach(function(e){d.push(["L",e.x,e.y])}),d.push(["L",h[h.length-1].x,h[h.length-1].y-l]),this.addShape(e,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,ef.pi)({path:d},a)}),ik(e,(0,ef.pi)({id:this.getElementId("text"),name:"annotation-text",x:(u.minX+u.maxX)/2,y:u.minY-l},this.get("text")))}},t}(iO),iz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(e){var t=this,i=this.get("start"),n=this.get("end"),r=this.addGroup(e,{id:this.getElementId("region-filter"),capture:!1});(0,em.S6)(this.get("shapes"),function(e,i){var n=e.get("type"),o=(0,em.d9)(e.attr());t.adjustShapeAttrs(o),t.addShape(r,{id:t.getElementId("shape-"+n+"-"+i),capture:!1,type:n,attrs:o})});var o=iC({start:i,end:n});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},t.prototype.adjustShapeAttrs=function(e){var t=this.get("color");e.fill&&(e.fill=e.fillStyle=t),e.stroke=e.strokeStyle=t},t}(iO),iY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"shape",draw:em.ZT})},t.prototype.renderInner=function(e){var t=this.get("render");(0,em.mf)(t)&&t(e)},t}(iO);function iK(e,t,i){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch(e){}finally{n=void 0===n?i:n}return n}var i$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},t.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(e){var t=this.getContainer(),i=e?"auto":"none";t.style.pointerEvents=i,this.set("capture",e)},t.prototype.getBBox=function(){var e=this.getContainer();return iS(parseFloat(e.style.left)||0,parseFloat(e.style.top)||0,e.clientWidth,e.clientHeight)},t.prototype.clear=function(){i_(this.get("container"))},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var e=this.get("container");if((0,em.UM)(e)){e=this.createDom();var t=this.get("parent");(0,em.HD)(t)&&(t=document.getElementById(t),this.set("parent",t)),t.appendChild(e),this.get("containerId")&&e.setAttribute("id",this.get("containerId")),this.set("container",e)}else(0,em.HD)(e)&&(e=document.getElementById(e),this.set("container",e));this.get("parent")||this.set("parent",e.parentNode)},t.prototype.resetStyles=function(){var e=this.get("domStyles"),t=this.get("defaultStyles");e=e?(0,em.b$)({},t,e):t,this.set("domStyles",e)},t.prototype.applyStyles=function(){var e=this.get("domStyles");if(e){var t=this.getContainer();this.applyChildrenStyles(t,e);var i=this.get("containerClassName");i&&t.className.match(RegExp("(\\s|^)"+i+"(\\s|$)"))&&ey(t,e[i])}},t.prototype.applyChildrenStyles=function(e,t){(0,em.S6)(t,function(t,i){var n=e.getElementsByClassName(i);(0,em.S6)(n,function(e){ey(e,t)})})},t.prototype.applyStyle=function(e,t){ey(t,this.get("domStyles")[e])},t.prototype.createDom=function(){return eS(this.get("containerTpl"))},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var e=this.get("container");e&&e.parentNode&&e.parentNode.removeChild(e)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(e){(0,em.wH)(e,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t}(iL),iX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var e=this.getContainer(),t=this.get("html");i_(e);var i=(0,em.mf)(t)?t(e):t;if((0,em.kK)(i))e.appendChild(i);else if((0,em.HD)(i)||(0,em.hj)(i)){var n=eS(""+i);n&&e.appendChild(n)}this.resetPosition()},t.prototype.resetPosition=function(){var e,t,i,n,r,o,s,a,l,h,u,d,c=this.getContainer(),g=this.getLocation(),p=g.x,f=g.y,m=this.get("alignX"),v=this.get("alignY"),E=this.get("offsetX"),_=this.get("offsetY"),C=("auto"===(e=iK(c,"width",void 0))&&(e=c.offsetWidth),t=parseFloat(e),i=parseFloat(iK(c,"borderLeftWidth"))||0,n=parseFloat(iK(c,"paddingLeft"))||0,r=parseFloat(iK(c,"paddingRight"))||0,o=parseFloat(iK(c,"borderRightWidth"))||0,s=parseFloat(iK(c,"marginRight"))||0,t+i+o+n+r+(parseFloat(iK(c,"marginLeft"))||0)+s),S=("auto"===(a=iK(c,"height",void 0))&&(a=c.offsetHeight),l=parseFloat(a),h=parseFloat(iK(c,"borderTopWidth"))||0,u=parseFloat(iK(c,"paddingTop"))||0,d=parseFloat(iK(c,"paddingBottom"))||0,l+h+(parseFloat(iK(c,"borderBottomWidth"))||0)+u+d+(parseFloat(iK(c,"marginTop"))||0)+(parseFloat(iK(c,"marginBottom"))||0)),y={x:p,y:f};"middle"===m?y.x-=Math.round(C/2):"right"===m&&(y.x-=Math.round(C)),"middle"===v?y.y-=Math.round(S/2):"bottom"===v&&(y.y-=Math.round(S)),E&&(y.x+=E),_&&(y.y+=_),ey(c,{position:"absolute",left:y.x+"px",top:y.y+"px",zIndex:this.get("zIndex")})},t}(i$);function ij(e,t,i){var n=t+"Style",r=null;return(0,em.S6)(i,function(t,i){e[i]&&t[n]&&(r||(r={}),(0,em.CD)(r,t[n]))}),r}var iq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},tickLine:{style:{lineWidth:1,stroke:iP.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:iP.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:iP.textColor,fontFamily:iP.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily,textAlign:"center"},iconStyle:{fill:iP.descriptionIconFill,stroke:iP.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:iP.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(e){this.get("line")&&this.drawLine(e),this.drawTicks(e),this.get("title")&&this.drawTitle(e)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(e){this.update({ticks:e})},t.prototype.updateItem=function(e,t){(0,em.CD)(e,t),this.clear(),this.render()},t.prototype.clearItems=function(){var e=this.getElementByLocalId("label-group");e&&e.clear()},t.prototype.setItemState=function(e,t,i){e[t]=i,this.updateTickStates(e)},t.prototype.hasState=function(e,t){return!!e[t]},t.prototype.getItemStates=function(e){var t=this.get("tickStates"),i=[];return(0,em.S6)(t,function(t,n){e[n]&&i.push(n)}),i},t.prototype.clearItemsState=function(e){var t=this,i=this.getItemsByState(e);(0,em.S6)(i,function(i){t.setItemState(i,e,!1)})},t.prototype.getItemsByState=function(e){var t=this,i=this.getItems();return(0,em.hX)(i,function(i){return t.hasState(i,e)})},t.prototype.getSidePoint=function(e,t){var i=this.getSideVector(t,e);return{x:e.x+i[0],y:e.y+i[1]}},t.prototype.getTextAnchor=function(e){var t;return(0,em.vQ)(e[0],0)?t="center":e[0]>0?t="start":e[0]<0&&(t="end"),t},t.prototype.getTextBaseline=function(e){var t;return(0,em.vQ)(e[1],0)?t="middle":e[1]>0?t="top":e[1]<0&&(t="bottom"),t},t.prototype.processOverlap=function(e){},t.prototype.drawLine=function(e){var t=this.getLinePath(),i=this.get("line");this.addShape(e,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,em.CD)({path:t},i.style)})},t.prototype.getTickLineItems=function(e){var t=this,i=[],n=this.get("tickLine"),r=n.alignTick,o=n.length,s=1;return e.length>=2&&(s=e[1].value-e[0].value),(0,em.S6)(e,function(e){var n=e.point;r||(n=t.getTickPoint(e.value-s/2));var a=t.getSidePoint(n,o);i.push({startPoint:n,tickValue:e.value,endPoint:a,tickId:e.id,id:"tickline-"+e.id})}),i},t.prototype.getSubTickLineItems=function(e){var t=[],i=this.get("subTickLine"),n=i.count,r=e.length;if(r>=2)for(var o=0;o0){var i=(0,em.dp)(t);if(i>e.threshold){var n=Math.ceil(i/e.threshold),r=t.filter(function(e,t){return t%n==0});this.set("ticks",r),this.set("originalTicks",t)}}},t.prototype.getLabelAttrs=function(e,t,i){var n=this.get("label"),r=n.offset,o=n.offsetX,s=n.offsetY,a=n.rotate,l=n.formatter,h=this.getSidePoint(e.point,r),u=this.getSideVector(r,h),d=l?l(e.name,e,t):e.name,c=n.style;c=(0,em.mf)(c)?(0,em.U2)(this.get("theme"),["label","style"],{}):c;var g=(0,em.CD)({x:h.x+o,y:h.y+s,text:d,textAlign:this.getTextAnchor(u),textBaseline:this.getTextBaseline(u)},c);return a&&(g.matrix=ic(h,a)),g},t.prototype.drawLabels=function(e){var t=this,i=this.get("ticks"),n=this.addGroup(e,{name:"axis-label-group",id:this.getElementId("label-group")});(0,em.S6)(i,function(e,r){t.addShape(n,{type:"text",name:"axis-label",id:t.getElementId("label-"+e.id),attrs:t.getLabelAttrs(e,r,i),delegateObject:{tick:e,item:e,index:r}})}),this.processOverlap(n);var r=n.getChildren(),o=(0,em.U2)(this.get("theme"),["label","style"],{}),s=this.get("label"),a=s.style,l=s.formatter;if((0,em.mf)(a)){var h=r.map(function(e){return(0,em.U2)(e.get("delegateObject"),"tick")});(0,em.S6)(r,function(e,t){var i=e.get("delegateObject").tick,n=l?l(i.name,i,t):i.name,r=(0,em.CD)({},o,a(n,t,h));e.attr(r)})}},t.prototype.getTitleAttrs=function(){var e=this.get("title"),t=e.style,i=e.position,n=e.offset,r=e.spacing,o=void 0===r?0:r,s=e.autoRotate,a=t.fontSize,l=.5;"start"===i?l=0:"end"===i&&(l=1);var h=this.getTickPoint(l),u=this.getSidePoint(h,n||o+a/2),d=(0,em.CD)({x:u.x,y:u.y,text:e.text},t),c=e.rotate,g=c;if((0,em.UM)(c)&&s){var p=this.getAxisVector(h);g=it.Dg(p,[1,0],!0)}if(g){var f=ic(u,g);d.matrix=f}return d},t.prototype.drawTitle=function(e){var t,i=this.getTitleAttrs(),n=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:i});(null===(t=this.get("title"))||void 0===t?void 0:t.description)&&this.drawDescriptionIcon(e,n,i.matrix)},t.prototype.drawDescriptionIcon=function(e,t,i){var n=this.addGroup(e,{name:"axis-description",id:this.getElementById("description")}),r=t.getBBox(),o=r.maxX,s=r.maxY,a=r.height,l=this.get("title").iconStyle,h=a/2,u=h/6,d=o+4,c=s-a/2,g=[d+h,c-h],p=g[0],f=g[1],m=[p+h,f+h],v=m[0],E=m[1],_=[p,E+h],C=_[0],S=_[1],y=[d,f+h],T=y[0],b=y[1],A=[d+h,c-a/4],R=A[0],L=A[1],N=[R,L+u],I=N[0],w=N[1],O=[I,w+u],x=O[0],D=O[1],M=[x,D+3*h/4],k=M[0],P=M[1];this.addShape(n,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,ef.pi)({path:[["M",p,f],["A",h,h,0,0,1,v,E],["A",h,h,0,0,1,C,S],["A",h,h,0,0,1,T,b],["A",h,h,0,0,1,p,f],["M",R,L],["L",I,w],["M",x,D],["L",k,P]],lineWidth:u,matrix:i},l)}),this.addShape(n,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:c-a/2,width:a,height:a,stroke:"#000",fill:"#000",opacity:0,matrix:i,cursor:"pointer"}})},t.prototype.applyTickStates=function(e,t){if(this.getItemStates(e).length){var i=this.get("tickStates"),n=this.getElementId("label-"+e.id),r=t.findById(n);if(r){var o=ij(e,"label",i);o&&r.attr(o)}var s=this.getElementId("tickline-"+e.id),a=t.findById(s);if(a){var l=ij(e,"tickLine",i);l&&a.attr(l)}}},t.prototype.updateTickStates=function(e){var t=this.getItemStates(e),i=this.get("tickStates"),n=this.get("label"),r=this.getElementByLocalId("label-"+e.id),o=this.get("tickLine"),s=this.getElementByLocalId("tickline-"+e.id);if(t.length){if(r){var a=ij(e,"label",i);a&&r.attr(a)}if(s){var l=ij(e,"tickLine",i);l&&s.attr(l)}}else r&&r.attr(n.style),s&&s.attr(o.style)},t}(iO);function iZ(e,t,i,n){var r=t.getChildren(),o=!1;return(0,em.S6)(r,function(t){var r=iM(e,t,i,n);o=o||r}),o}function iJ(){return i0}function iQ(e,t,i){return iZ(e,t,i,"head")}function i0(e,t,i){return iZ(e,t,i,"tail")}function i1(e,t,i){return iZ(e,t,i,"middle")}function i2(e){var t,i;return((t=e.attr("matrix"))&&1!==t[0]?(t8(i=[0,0,0],[1,0,0],e.attr("matrix")),Math.atan2(i[1],i[0])):0)%360}function i4(e,t,i,n){var r=!1,o=i2(t),s=e?Math.abs(i.attr("y")-t.attr("y")):Math.abs(i.attr("x")-t.attr("x")),a=(e?i.attr("y")>t.attr("y"):i.attr("x")>t.attr("x"))?t.getBBox():i.getBBox();if(e){var l=Math.abs(Math.cos(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}else{var l=Math.abs(Math.sin(o));r=iT(l,0,Math.PI/180)?a.width+n>s:a.height/l+n>s}return r}function i5(e,t,i,n){var r=(null==n?void 0:n.minGap)||0,o=t.getChildren().slice().filter(function(e){return e.get("visible")});if(!o.length)return!1;var s=!1;i&&o.reverse();for(var a=o.length,l=o[0],h=1;h1){c=Math.ceil(c);for(var f=0;f2){var s=r[0],a=r[r.length-1];!s.get("visible")&&(s.show(),i5(e,t,!1,n)&&(o=!0)),!a.get("visible")&&(a.show(),i5(e,t,!0,n)&&(o=!0))}return o}function ni(e,t,i,n){var r=t.getChildren();if(!r.length||!e&&r.length<2)return!1;var o=iD(r),s=!1;if(s=e?!!i&&o>i:o>Math.abs(r[1].attr("x")-r[0].attr("x"))){var a=n(i,o);(0,em.S6)(r,function(e){var t=ic({x:e.attr("x"),y:e.attr("y")},a);e.attr("matrix",t)})}return s}function nn(){return nr}function nr(e,t,i,n){return ni(e,t,i,function(){return(0,em.hj)(n)?n:e?iP.verticalAxisRotate:iP.horizontalAxisRotate})}function no(e,t,i){return ni(e,t,i,function(t,i){if(!t)return e?iP.verticalAxisRotate:iP.horizontalAxisRotate;if(e)return-Math.acos(t/i);var n=0;return t>i?n=Math.PI/4:(n=Math.asin(t/i))>Math.PI/4&&(n=Math.PI/4),n})}var ns=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var e=this.get("start"),t=this.get("end"),i=[];return i.push(["M",e.x,e.y]),i.push(["L",t.x,t.y]),i},t.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),r=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),a=Math.max(t.y,i.y,n.maxY);return{x:r,y:o,minX:r,minY:o,maxX:s,maxY:a,width:s-r,height:a-o}},t.prototype.isVertical=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.x,t.x)},t.prototype.isHorizontal=function(){var e=this.get("start"),t=this.get("end");return(0,em.vQ)(e.y,t.y)},t.prototype.getTickPoint=function(e){var t=this.get("start"),i=this.get("end"),n=i.x-t.x,r=i.y-t.y;return{x:t.x+n*e,y:t.y+r*e}},t.prototype.getSideVector=function(e){var t=this.getAxisVector(),i=io.Fv([0,0],t),n=this.get("verticalFactor"),r=[i[1],-1*i[0]];return io.bA([0,0],r,e*n)},t.prototype.getAxisVector=function(){var e=this.get("start"),t=this.get("end");return[t.x-e.x,t.y-e.y]},t.prototype.processOverlap=function(e){var t=this,i=this.isVertical(),n=this.isHorizontal();if(i||n){var r=this.get("label"),o=this.get("title"),s=this.get("verticalLimitLength"),a=r.offset,l=s,h=0,u=0;o&&(h=o.style.fontSize,u=o.spacing),l&&(l=l-a-u-h);var d=this.get("overlapOrder");if((0,em.S6)(d,function(i){r[i]&&t.canProcessOverlap(i)&&t.autoProcessOverlap(i,r[i],e,l)}),o&&(0,em.UM)(o.offset)){var c=e.getCanvasBBox(),g=i?c.width:c.height;o.offset=a+g+u+h/2}}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=this.isVertical(),s=!1,a=ea[e];if(!0===t?(this.get("label"),s=a.getDefault()(o,i,n)):(0,em.mf)(t)?s=t(o,i,n):(0,em.Kn)(t)?a[t.type]&&(s=a[t.type](o,i,n,t.cfg)):a[t]&&(s=a[t](o,i,n)),"autoRotate"===e){if(s){var l=i.getChildren(),h=this.get("verticalFactor");(0,em.S6)(l,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",h>0?"end":"start")})}}else if("autoHide"===e){var u=i.getChildren().slice(0);(0,em.S6)(u,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getLinePath=function(){var e=this.get("center"),t=e.x,i=e.y,n=this.get("radius"),r=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-r)===2*Math.PI)s=[["M",t,i-n],["A",n,n,0,1,1,t,i+n],["A",n,n,0,1,1,t,i-n],["Z"]];else{var a=this.getCirclePoint(r),l=this.getCirclePoint(o),h=Math.abs(o-r)>Math.PI?1:0,u=r>o?0:1;s=[["M",t,i],["L",a.x,a.y],["A",n,n,0,h,u,l.x,l.y],["L",t,i]]}return s},t.prototype.getTickPoint=function(e){var t=this.get("startAngle"),i=this.get("endAngle");return this.getCirclePoint(t+(i-t)*e)},t.prototype.getSideVector=function(e,t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y],r=this.get("verticalFactor"),o=io.kE(n);return io.bA(n,n,r*e/o),n},t.prototype.getAxisVector=function(e){var t=this.get("center"),i=[e.x-t.x,e.y-t.y];return[i[1],-1*i[0]]},t.prototype.getCirclePoint=function(e,t){var i=this.get("center");return t=t||this.get("radius"),{x:i.x+Math.cos(e)*t,y:i.y+Math.sin(e)*t}},t.prototype.canProcessOverlap=function(e){var t=this.get("label");return"autoRotate"!==e||(0,em.UM)(t.rotate)},t.prototype.processOverlap=function(e){var t=this,i=this.get("label"),n=this.get("title"),r=this.get("verticalLimitLength"),o=i.offset,s=r,a=0,l=0;n&&(a=n.style.fontSize,l=n.spacing),s&&(s=s-o-l-a);var h=this.get("overlapOrder");if((0,em.S6)(h,function(n){i[n]&&t.canProcessOverlap(n)&&t.autoProcessOverlap(n,i[n],e,s)}),n&&(0,em.UM)(n.offset)){var u=e.getCanvasBBox().height;n.offset=o+u+l+a/2}},t.prototype.autoProcessOverlap=function(e,t,i,n){var r=this,o=!1,s=ea[e];if(n>0&&(!0===t?o=s.getDefault()(!1,i,n):(0,em.mf)(t)?o=t(!1,i,n):(0,em.Kn)(t)?s[t.type]&&(o=s[t.type](!1,i,n,t.cfg)):s[t]&&(o=s[t](!1,i,n))),"autoRotate"===e){if(o){var a=i.getChildren(),l=this.get("verticalFactor");(0,em.S6)(a,function(e){"center"===e.attr("textAlign")&&e.attr("textAlign",l>0?"end":"start")})}}else if("autoHide"===e){var h=i.getChildren().slice(0);(0,em.S6)(h,function(e){e.get("visible")||(r.get("isRegister")&&r.unregisterElement(e),e.remove())})}},t}(iq),nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:iP.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:iP.textColor,textAlign:"center",textBaseline:"middle",fontFamily:iP.fontFamily}},textBackground:{padding:5,style:{stroke:iP.lineColor}}}})},t.prototype.renderInner=function(e){this.get("line")&&this.renderLine(e),this.get("text")&&(this.renderText(e),this.renderBackground(e))},t.prototype.renderText=function(e){var t=this.get("text"),i=t.style,n=t.autoRotate,r=t.content;if(!(0,em.UM)(r)){var o=this.getTextPoint(),s=null;n&&(s=ic(o,this.getRotateAngle())),this.addShape(e,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},o),{text:r,matrix:s}),i)})}},t.prototype.renderLine=function(e){var t=this.getLinePath(),i=this.get("line").style;this.addShape(e,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,ef.pi)({path:t},i)})},t.prototype.renderBackground=function(e){var t=this.getElementId("text"),i=e.findById(t),n=this.get("textBackground");if(n&&i){var r=i.getBBox(),o=iE(n.padding),s=n.style;this.addShape(e,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,ef.pi)({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:i.attr("matrix")},s)}).toBack()}},t}(iO),nh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text").position,r=Math.atan2(i.y-t.y,i.x-t.x);return"start"===n?r-Math.PI/2:r+Math.PI/2},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.start,i=e.end;return[["M",t.x,t.y],["L",i.x,i.y]]},t}(nl),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},t.prototype.getRotateAngle=function(){var e=this.getLocation(),t=e.startAngle,i=e.endAngle;return"start"===this.get("text").position?t+Math.PI/2:i-Math.PI/2},t.prototype.getTextPoint=function(){var e=this.get("text"),t=e.position,i=e.offset,n=this.getLocation(),r=n.center,o=n.radius,s=n.startAngle,a=n.endAngle,l=this.getRotateAngle()-Math.PI,h=iy(r,o,"start"===t?s:a),u=Math.cos(l)*i,d=Math.sin(l)*i;return{x:h.x+u,y:h.y+d}},t.prototype.getLinePath=function(){var e=this.getLocation(),t=e.center,i=e.radius,n=e.startAngle,r=e.endAngle,o=null;if(r-n==2*Math.PI){var s=t.x,a=t.y;o=[["M",s,a-i],["A",i,i,0,1,1,s,a+i],["A",i,i,0,1,1,s,a-i],["Z"]]}else{var l=iy(t,i,n),h=iy(t,i,r),u=Math.abs(r-n)>Math.PI?1:0,d=n>r?0:1;o=[["M",l.x,l.y],["A",i,i,0,u,d,h.x,h.y]]}return o},t}(nl),nd="g2-crosshair",nc=nd+"-line",ng=nd+"-text",np=((G={})[""+nd]={position:"relative"},G[""+nc]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},G[""+ng]={position:"absolute",color:iP.textColor,fontFamily:iP.fontFamily},G),nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:nd,defaultStyles:np,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var e=this.getContainer(),t=eS(this.get("crosshairTpl"));e.appendChild(t),this.applyStyle(nc,t),this.set("crosshairEl",t)},t.prototype.getTextPoint=function(){var e=this.getLocation(),t=e.start,i=e.end,n=this.get("text");return iA(t,i,n.position,n.offset)},t.prototype.resetText=function(){var e=this.get("text"),t=this.get("textEl");if(e){var i=e.content;if(!t){var n=this.getContainer();t=eS((0,em.ng)(this.get("textTpl"),e)),n.appendChild(t),this.applyStyle(ng,t),this.set("textEl",t)}t.innerHTML=i}else t&&t.remove()},t.prototype.isVertical=function(e,t){return e.x===t.x},t.prototype.resetPosition=function(){var e=this.get("crosshairEl");e||(this.initCrossHair(),e=this.get("crosshairEl"));var t=this.get("start"),i=this.get("end"),n=Math.min(t.x,i.x),r=Math.min(t.y,i.y);this.isVertical(t,i)?ey(e,{width:"1px",height:ib(Math.abs(i.y-t.y))}):ey(e,{height:"1px",width:ib(Math.abs(i.x-t.x))}),ey(e,{top:ib(r),left:ib(n)}),this.alignText()},t.prototype.alignText=function(){var e=this.get("textEl");if(e){var t=this.get("text").align,i=e.clientWidth,n=this.getTextPoint();switch(t){case"center":n.x=n.x-i/2;break;case"right":n.x=n.x-i}ey(e,{top:ib(n.y),left:ib(n.x)})}},t.prototype.updateInner=function(t){(0,em.wH)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},t}(i$),nm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:iP.lineColor}}}})},t.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},t.prototype.renderInner=function(e){this.drawGrid(e)},t.prototype.getAlternatePath=function(e,t){var i=this.getGridPath(e),n=t.slice(0).reverse(),r=this.getGridPath(n,!0);return this.get("closed")?i=i.concat(r):(r[0][0]="L",(i=i.concat(r)).push(["Z"])),i},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(e){var t=this,i=this.get("line"),n=this.get("items"),r=this.get("alternateColor"),o=null;(0,em.S6)(n,function(s,a){var l=s.id||a;if(i){var h=t.getPathStyle();h=(0,em.mf)(h)?h(s,a,n):h;var u=t.getElementId("line-"+l),d=t.getGridPath(s.points);t.addShape(e,{type:"path",name:"grid-line",id:u,attrs:(0,em.CD)({path:d},h)})}if(r&&a>0){var c=t.getElementId("region-"+l),g=a%2==0;if((0,em.HD)(r))g&&t.drawAlternateRegion(c,e,o.points,s.points,r);else{var p=g?r[1]:r[0];t.drawAlternateRegion(c,e,o.points,s.points,p)}}o=s})},t.prototype.drawAlternateRegion=function(e,t,i,n,r){var o=this.getAlternatePath(i,n);this.addShape(t,{type:"path",id:e,name:"grid-region",attrs:{path:o,fill:r}})},t}(iO),nv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(e,t){var i=this.getLineType(),n=this.get("closed"),r=[];if(e.length){if("circle"===i){var o,s,a,l,h,u,d=this.get("center"),c=e[0],g=(o=d.x,s=d.y,a=c.x,l=c.y,Math.sqrt((h=a-o)*h+(u=l-s)*u)),p=t?0:1;n?(r.push(["M",d.x,d.y-g]),r.push(["A",g,g,0,0,p,d.x,d.y+g]),r.push(["A",g,g,0,0,p,d.x,d.y-g]),r.push(["Z"])):(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["A",g,g,0,0,p,e.x,e.y])})}else(0,em.S6)(e,function(e,t){0===t?r.push(["M",e.x,e.y]):r.push(["L",e.x,e.y])}),n&&r.push(["Z"])}return r},t}(nm),nE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"line"})},t.prototype.getGridPath=function(e){var t=[];return(0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t},t}(nm),n_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),r=t.width,o=t.height;return i&&(r=Math.min(r,i)),n&&(o=Math.min(o,n)),iS(t.minX,t.minY,r,o)},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetLocation()},t.prototype.resetLocation=function(){var e=this.get("x"),t=this.get("y"),i=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:e+i,y:t+n})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(e){return this.set("currentPoint",e)},t.prototype.renderInner=function(e){this.resetDraw(),this.get("title")&&this.drawTitle(e),this.drawLegendContent(e),this.get("background")&&this.drawBackground(e)},t.prototype.drawBackground=function(e){var t=this.get("background"),i=e.getBBox(),n=iE(t.padding),r=(0,ef.pi)({x:0,y:0,width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},t.style);this.addShape(e,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r}).toBack()},t.prototype.drawTitle=function(e){var t=this.get("currentPoint"),i=this.get("title"),n=i.spacing,r=i.style,o=i.text,s=this.addShape(e,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,ef.pi)({text:o,x:t.x,y:t.y},r)}).getBBox();this.set("currentPoint",{x:t.x,y:s.maxY+n})},t.prototype.resetDraw=function(){var e=this.get("background"),t={x:0,y:0};if(e){var i=iE(e.padding);t.x=i[3],t.y=i[0]}this.set("currentPoint",t)},t}(iO),nC={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},nS={fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:iP.fontFamily,fontWeight:"normal",lineHeight:12},ny="navigation-arrow-right",nT="navigation-arrow-left",nb={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},nA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var i=t.getCurrentNavigationMatrix();t.get("animate")?e.animate({matrix:i},100):e.attr({matrix:i})}},t.onNavigationAfter=function(){var e=t.getElementByLocalId("item-group");if(t.currentPageIndexp&&(p=E),"horizontal"===d?(f&&fa))&&(1===m&&(v=f.x+u,i.moveElementTo(g,{x:T,y:f.y+d/2-p.height/2-p.minY})),m+=1,f.x=n,f.y+=y),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:s+u,height:d}}),f.x+=s+u})}else{(0,em.S6)(s,function(e){var t=e.getBBox();t.width>E&&(E=t.width)}),_=E,E+=u,a&&(E=Math.min(a,E),_=Math.min(a,_)),this.pageWidth=E,this.pageHeight=l-Math.max(p.height,d+C);var b=Math.floor(this.pageHeight/(d+C));(0,em.S6)(s,function(e,t){0!==t&&t%b==0&&(m+=1,f.x+=E,f.y=r),i.moveElementTo(e,f),e.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:E,height:d}}),f.y+=d+C}),this.totalPagesCnt=m,this.moveElementTo(g,{x:n+_/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&t.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),t.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(e,t,i,n){var r={x:0,y:0},o=this.addGroup(e,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=(0,em.U2)(n.marker,"style",{}),a=s.size,l=void 0===a?12:a,h=(0,ef._T)(s,["size"]),u=this.drawArrow(o,r,nT,"horizontal"===t?"up":"left",l,h);u.on("click",this.onNavigationBack);var d=u.getBBox();r.x+=d.width+2;var c=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,ef.pi)({x:r.x,y:r.y+l/2,text:i,textBaseline:"middle"},(0,em.U2)(n.text,"style"))}).getBBox();return r.x+=c.width+2,this.drawArrow(o,r,ny,"horizontal"===t?"down":"right",l,h).on("click",this.onNavigationAfter),o},t.prototype.updateNavigation=function(e){var t=(0,em.b$)({},nC,this.get("pageNavigator")).marker.style,i=t.fill,n=t.opacity,r=t.inactiveFill,o=t.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,a=e?e.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=e?e.findById(this.getElementId(nT)):this.getElementByLocalId(nT),h=e?e.findById(this.getElementId(ny)):this.getElementByLocalId(ny);a.attr("text",s),l.attr("opacity",1===this.currentPageIndex?o:n),l.attr("fill",1===this.currentPageIndex?r:i),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:n),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?r:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var u=l.getBBox().maxX+2;a.attr("x",u),u+=a.getBBox().width+2,this.updateArrowPath(h,{x:u,y:0})},t.prototype.drawArrow=function(e,t,i,n,r,o){var s=t.x,a=t.y,l=this.addShape(e,{type:"path",id:this.getElementId(i),name:i,attrs:(0,ef.pi)({size:r,direction:n,path:[["M",s+r/2,a],["L",s,a+r],["L",s+r,a+r],["Z"]],cursor:"pointer"},o)});return l.attr("matrix",ic({x:s+r/2,y:a+r/2},nb[n])),l},t.prototype.updateArrowPath=function(e,t){var i=t.x,n=t.y,r=e.attr(),o=r.size,s=ic({x:i+o/2,y:n+o/2},nb[r.direction]);e.attr("path",[["M",i+o/2,n],["L",i,n+o],["L",i+o,n+o],["Z"]]),e.attr("matrix",s)},t.prototype.getCurrentNavigationMatrix=function(){var e=this.currentPageIndex,t=this.pageWidth,i=this.pageHeight;return ig("horizontal"===this.get("layout")?{x:0,y:i*(1-e)}:{x:t*(1-e),y:0})},t.prototype.applyItemStates=function(e,t){if(this.getItemStates(e).length>0){var i=t.getChildren(),n=this.get("itemStates");(0,em.S6)(i,function(t){var i=t.get("name").split("-")[2],r=ij(e,i,n);r&&(t.attr(r),"marker"===i&&!(t.get("isStroke")&&t.get("isFill"))&&(t.get("isStroke")&&t.attr("fill",null),t.get("isFill")&&t.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var e=this.get("itemWidth"),t=this.get("maxItemWidth");return t?e&&(t=e<=t?e:t):e&&(t=e),t},t}(n_),nR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:iP.textColor,textBaseline:"middle",fontFamily:iP.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:iP.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(e,t){this.update({min:e,max:t})},t.prototype.setValue=function(e){var t=this.getValue();this.set("value",e);var i=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(i),this.delegateEmit("valuechanged",{originValue:t,value:e})},t.prototype.initEvent=function(){var e=this.get("group");this.bindSliderEvent(e),this.bindRailEvent(e),this.bindTrackEvent(e)},t.prototype.drawLegendContent=function(e){this.drawRail(e),this.drawLabels(e),this.fixedElements(e),this.resetTrack(e),this.resetTrackClip(e),this.get("slidable")&&this.resetHandlers(e)},t.prototype.bindSliderEvent=function(e){this.bindHandlersEvent(e)},t.prototype.bindHandlersEvent=function(e){var t=this;e.on("legend-handler-min:drag",function(e){var i=t.getValueByCanvasPoint(e.x,e.y),n=t.getCurrentValue()[1];ni&&(n=i),t.setValue([n,i])})},t.prototype.bindRailEvent=function(e){},t.prototype.bindTrackEvent=function(e){var t=this,i=null;e.on("legend-track:dragstart",function(e){i={x:e.x,y:e.y}}),e.on("legend-track:drag",function(e){if(i){var n=t.getValueByCanvasPoint(i.x,i.y),r=t.getValueByCanvasPoint(e.x,e.y),o=t.getCurrentValue(),s=o[1]-o[0],a=t.getRange(),l=r-n;l<0?o[0]+l>a.min?t.setValue([o[0]+l,o[1]+l]):t.setValue([a.min,a.min+s]):l>0&&(l>0&&o[1]+lo&&(h=o),h0&&this.changeRailLength(n,r,i[r]-h)}},t.prototype.changeRailLength=function(e,t,i){var n,r=e.getBBox();n="height"===t?this.getRailPath(r.x,r.y,r.width,i):this.getRailPath(r.x,r.y,i,r.height),e.attr("path",n)},t.prototype.changeRailPosition=function(e,t,i){var n=e.getBBox(),r=this.getRailPath(t,i,n.width,n.height);e.attr("path",r)},t.prototype.fixedHorizontal=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox(),u=a.height;this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o?(e.attr({x:n.x,y:n.y+u/2}),this.changeRailPosition(i,n.x+l.width+s,n.y),t.attr({x:n.x+l.width+a.width+2*s,y:n.y+u/2})):"top"===o?(e.attr({x:n.x,y:n.y}),t.attr({x:n.x+a.width,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s)):(this.changeRailPosition(i,n.x,n.y),e.attr({x:n.x,y:n.y+a.height+s}),t.attr({x:n.x+a.width,y:n.y+a.height+s}))},t.prototype.fixedVertail=function(e,t,i,n){var r=this.get("label"),o=r.align,s=r.spacing,a=i.getBBox(),l=e.getBBox(),h=t.getBBox();if(this.fitRailLength(l,h,a,i),a=i.getBBox(),"rail"===o)e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x,n.y+l.height+s),t.attr({x:n.x,y:n.y+l.height+a.height+2*s});else if("right"===o)e.attr({x:n.x+a.width+s,y:n.y}),this.changeRailPosition(i,n.x,n.y),t.attr({x:n.x+a.width+s,y:n.y+a.height});else{var u=Math.max(l.width,h.width);e.attr({x:n.x,y:n.y}),this.changeRailPosition(i,n.x+u+s,n.y),t.attr({x:n.x,y:n.y+a.height})}},t}(n_),nL="g2-tooltip",nN="g2-tooltip-title",nI="g2-tooltip-list",nw="g2-tooltip-list-item",nO="g2-tooltip-marker",nx="g2-tooltip-value",nD="g2-tooltip-name",nM="g2-tooltip-crosshair-x",nk="g2-tooltip-crosshair-y",nP=((z={})[""+nL]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:iP.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},z[""+nN]={marginBottom:"4px"},z[""+nI]={margin:"0px",listStyleType:"none",padding:"0px"},z[""+nw]={listStyleType:"none",marginBottom:"4px"},z[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},z[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},z[""+nM]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z[""+nk]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},z),nF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:nL,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:nP})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!0),ey(e,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var e=this.getContainer();e&&!this.destroyed&&(this.set("visible",!1),ey(e,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(e){this.set("x",e.x),this.set("y",e.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(e){var t=e?"":"none",i=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");i&&ey(i,{display:t}),n&&ey(n,{display:t})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(t){if(this.get("customContent"))this.renderCustomContent();else{var i;i=!1,(0,em.S6)(["title","showTitle"],function(e){if((0,em.wH)(t,e))return i=!0,!1}),i&&this.resetTitle(),(0,em.wH)(t,"items")&&this.renderItems()}e.prototype.updateInner.call(this,t)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var e,t=this.get("x"),i=this.get("y"),n=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,a=this.get("position"),l=this.get("region"),h=this.getContainer(),u=this.getBBox(),d=u.width,c=u.height;l&&(e=iC(l));var g=function(e,t,i,n,r,o,s){var a=function(e,t,i,n,r,o){var s=e,a=t;switch(o){case"left":s=e-n-i,a=t-r/2;break;case"right":s=e+i,a=t-r/2;break;case"top":s=e-n/2,a=t-r-i;break;case"bottom":s=e-n/2,a=t+i;break;default:s=e+i,a=t-r-i}return{x:s,y:a}}(e,t,i,n,r,o);if(s){var l,h,u=(l=a.x,h=a.y,{left:ls.x+s.width,top:hs.y+s.height});"auto"===o?(u.right&&(a.x=Math.max(0,e-n-i)),u.top&&(a.y=Math.max(0,t-r-i))):"top"===o||"bottom"===o?(u.left&&(a.x=s.x),u.right&&(a.x=s.x+s.width-n),"top"===o&&u.top&&(a.y=t+i),"bottom"===o&&u.bottom&&(a.y=t-r-i)):(u.top&&(a.y=s.y),u.bottom&&(a.y=s.y+s.height-r),"left"===o&&u.left&&(a.x=e+i),"right"===o&&u.right&&(a.x=e-n-i))}return a}(t,i,n,d,c,a,e);ey(h,{left:ib(g.x+o),top:ib(g.y+s)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var e=this.getHtmlContentNode(),t=this.get("parent"),i=this.get("container");i&&i.parentNode===t?t.replaceChild(e,i):t.appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var e,t=this.get("customContent");if(t){var i=t(this.get("title"),this.get("items"));e=(0,em.kK)(i)?i:eS(i)}return e},t.prototype.cacheDoms=function(){var e=this.getContainer(),t=e.getElementsByClassName(nN)[0],i=e.getElementsByClassName(nI)[0];this.set("titleDom",t),this.set("listDom",i)},t.prototype.resetTitle=function(){var e=this.get("title");this.get("showTitle")&&e?this.setTitle(e):this.setTitle("")},t.prototype.setTitle=function(e){var t=this.get("titleDom");t&&(t.innerText=e)},t.prototype.resetCrosshairs=function(){var e=this.get("crosshairsRegion"),t=this.get("crosshairs");if(e&&t){var i=iC(e),n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===t?(this.resetCrosshair("x",i),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===t?(this.resetCrosshair("y",i),n&&(n.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",i),this.resetCrosshair("y",i)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},t.prototype.resetCrosshair=function(e,t){var i=this.checkCrosshair(e),n=this.get(e);"x"===e?ey(i,{left:ib(n),top:ib(t.y),height:ib(t.height)}):ey(i,{top:ib(n),left:ib(t.x),width:ib(t.width)})},t.prototype.checkCrosshair=function(e){var t=e+"CrosshairDom",i=eh["CROSSHAIR_"+e.toUpperCase()],n=this.get(t),r=this.get("parent");return n||(n=eS(this.get(e+"CrosshairTpl")),this.applyStyle(i,n),r.appendChild(n),this.set(t,n)),n},t.prototype.renderItems=function(){this.clearItemDoms();var e=this.get("items"),t=this.get("itemTpl"),i=this.get("listDom");i&&((0,em.S6)(e,function(e){var n=eQ.toCSSGradient(e.color),r=(0,ef.pi)((0,ef.pi)({},e),{color:n}),o=eS((0,em.ng)(t,r));i.appendChild(o)}),this.applyChildrenStyles(i,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&i_(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var e=this.get("xCrosshairDom"),t=this.get("yCrosshairDom");e&&e.remove(),t&&t.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t}(i$),nB={opacity:0},nU={stroke:"#C5C5C5",strokeOpacity:.85},nH={fill:"#CACED4",opacity:.85},nV=i(39499);function nW(e){return(0,em.UI)(e,function(e,t){return[0===t?"M":"L",e[0],e[1]]})}var nG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:nB,lineStyle:nU,areaStyle:nH})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.data,o=t.smooth,s=t.isArea,a=t.backgroundStyle,l=t.lineStyle,h=t.areaStyle;this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},a)});var u=(void 0===(d=o)&&(d=!0),c=new tx({values:r}),g=new e9({values:(0,em.UI)(r,function(e,t){return t})}),p=(0,em.UI)(r,function(e,t){return[g.scale(t)*i,n-c.scale(e)*n]}),d?function(e){if(e.length<=2)return nW(e);var t=[];(0,em.S6)(e,function(e){(0,em.Xy)(e,t.slice(t.length-2))||t.push(e[0],e[1])});var i=(0,nV.e9)(t,!1),n=(0,em.YM)(e),r=n[0],o=n[1];return i.unshift(["M",r,o]),i}(p):nW(p));if(this.addShape(e,{id:this.getElementId("line"),type:"path",attrs:(0,ef.pi)({path:u},l)}),s){var d,c,g,p,f,m,v,E,_=(f=(0,ef.pr)(u),v=(m=new tx({values:r})).max<0?m.max:Math.max(0,m.min),E=n-m.scale(v)*n,f.push(["L",i,E]),f.push(["L",0,E]),f.push(["Z"]),f);this.addShape(e,{id:this.getElementId("area"),type:"path",attrs:(0,ef.pi)({path:_},h)})}},t.prototype.applyOffset=function(){var e=this.cfg,t=e.x,i=e.y;this.moveElementTo(this.get("group"),{x:t,y:i})},t}(iO),nz={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},nY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:nz})},t.prototype.renderInner=function(e){var t=this.cfg,i=t.width,n=t.height,r=t.style,o=r.fill,s=r.stroke,a=r.radius,l=r.opacity,h=r.cursor;this.addShape(e,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:i,height:n,fill:o,stroke:s,radius:a,opacity:l,cursor:h}});var u=1/3*i,d=2/3*i,c=1/4*n,g=3/4*n;this.addShape(e,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:c,x2:u,y2:g,stroke:s,cursor:h}}),this.addShape(e,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:c,x2:d,y2:g,stroke:s,cursor:h}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var e=this;this.get("group").on("mouseenter",function(){var t=e.get("style").highLightFill;e.getElementByLocalId("background").attr("fill",t),e.draw()}),this.get("group").on("mouseleave",function(){var t=e.get("style").fill;e.getElementByLocalId("background").attr("fill",t),e.draw()})},t.prototype.draw=function(){var e=this.get("container").get("canvas");e&&e.draw()},t}(iO),nK={fill:"#416180",opacity:.05},n$={fill:"#5B8FF9",opacity:.15,cursor:"move"},nX={width:10,height:24},nj={textBaseline:"middle",fill:"#000",opacity:.45},nq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return function(i){t.currentTarget=e;var n=i.originalEvent;n.stopPropagation(),n.preventDefault(),t.prevX=(0,em.U2)(n,"touches.0.pageX",n.pageX),t.prevY=(0,em.U2)(n,"touches.0.pageY",n.pageY);var r=t.getContainerDOM();r.addEventListener("mousemove",t.onMouseMove),r.addEventListener("mouseup",t.onMouseUp),r.addEventListener("mouseleave",t.onMouseUp),r.addEventListener("touchmove",t.onMouseMove),r.addEventListener("touchend",t.onMouseUp),r.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(e){var i=t.cfg.width,n=[t.get("start"),t.get("end")];e.stopPropagation(),e.preventDefault();var r=(0,em.U2)(e,"touches.0.pageX",e.pageX),o=(0,em.U2)(e,"touches.0.pageY",e.pageY),s=r-t.prevX,a=t.adjustOffsetRange(s/i);t.updateStartEnd(a),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=r,t.prevY=o,t.draw(),t.emit("sliderchange",[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:n,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var e=t.getContainerDOM();e&&(e.removeEventListener("mousemove",t.onMouseMove),e.removeEventListener("mouseup",t.onMouseUp),e.removeEventListener("mouseleave",t.onMouseUp),e.removeEventListener("touchmove",t.onMouseMove),e.removeEventListener("touchend",t.onMouseUp),e.removeEventListener("touchcancel",t.onMouseUp))},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.get("start"),n=this.get("end"),r=(0,em.uZ)(i,e,t),o=(0,em.uZ)(n,e,t);this.get("isInit")||i===r&&n===o||this.setValue([r,o])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange();if((0,em.kJ)(e)&&2===e.length){var i=[this.get("start"),this.get("end")];this.update({start:(0,em.uZ)(e[0],t.min,t.max),end:(0,em.uZ)(e[1],t.min,t.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:i,value:e})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:nK,foregroundStyle:n$,handlerStyle:nX,textStyle:nj}})},t.prototype.update=function(t){var i=t.start,n=t.end,r=(0,ef.pi)({},t);(0,em.UM)(i)||(r.start=(0,em.uZ)(i,0,1)),(0,em.UM)(n)||(r.end=(0,em.uZ)(n,0,1)),e.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",(0,em.uZ)(this.get("start"),0,1)),this.set("end",(0,em.uZ)(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(e){var t=this.cfg,i=(t.start,t.end,t.width),n=t.height,r=t.trendCfg,o=void 0===r?{}:r,s=t.minText,a=t.maxText,l=t.backgroundStyle,h=void 0===l?{}:l,u=t.foregroundStyle,d=void 0===u?{}:u,c=t.textStyle,g=void 0===c?{}:c,p=(0,em.b$)({},nz,this.cfg.handlerStyle);(0,em.dp)((0,em.U2)(o,"data"))&&(this.trend=this.addComponent(e,(0,ef.pi)({component:nG,id:this.getElementId("trend"),x:0,y:0,width:i,height:n},o))),this.addShape(e,{id:this.getElementId("background"),type:"rect",attrs:(0,ef.pi)({x:0,y:0,width:i,height:n},h)}),this.addShape(e,{id:this.getElementId("minText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"right",text:s,silent:!1},g)}),this.addShape(e,{id:this.getElementId("maxText"),type:"text",attrs:(0,ef.pi)({y:n/2,textAlign:"left",text:a,silent:!1},g)}),this.addShape(e,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,ef.pi)({y:0,height:n},d)});var f=(0,em.U2)(p,"width",10),m=(0,em.U2)(p,"height",24);this.minHandler=this.addComponent(e,{component:nY,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(e,{component:nY,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(n-m)/2,width:f,height:m,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(e,t,i){var n=this.cfg,r=n.start,o=n.end,s=n.width,a=n.minText,l=n.maxText,h=n.handlerStyle,u=n.height,d=r*s,c=o*s;this.trend&&(this.trend.update({width:s,height:u}),this.get("updateAutoRender")||this.trend.render()),e.attr("x",d),e.attr("width",c-d);var g=(0,em.U2)(h,"width",10);t.attr("text",a),i.attr("text",l);var p=this._dodgeText([d,c],t,i),f=p[0],m=p[1];this.minHandler&&(this.minHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,em.S6)(f,function(e,i){return t.attr(i,e)}),this.maxHandler&&(this.maxHandler.update({x:c-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,em.S6)(m,function(e,t){return i.attr(t,e)})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("handler-min:mousedown",this.onMouseDown("minHandler")),e.on("handler-min:touchstart",this.onMouseDown("minHandler")),e.on("handler-max:mousedown",this.onMouseDown("maxHandler")),e.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var t=e.findById(this.getElementId("foreground"));t.on("mousedown",this.onMouseDown("foreground")),t.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":var r=0-i,o=1-i;return Math.min(o,Math.max(r,e));case"maxHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,e));case"foreground":var r=0-i,o=1-n;return Math.min(o,Math.max(r,e))}},t.prototype.updateStartEnd=function(e){var t=this.cfg,i=t.start,n=t.end;switch(this.currentTarget){case"minHandler":i+=e;break;case"maxHandler":n+=e;break;case"foreground":i+=e,n+=e}this.set("start",i),this.set("end",n)},t.prototype._dodgeText=function(e,t,i){var n,r,o=this.cfg,s=o.handlerStyle,a=o.width,l=(0,em.U2)(s,"width",10),h=e[0],u=e[1],d=!1;h>u&&(h=(n=[u,h])[0],u=n[1],t=(r=[i,t])[0],i=r[1],d=!0);var c=t.getBBox(),g=i.getBBox(),p=c.width>h-2?{x:h+l/2+2,textAlign:"left"}:{x:h-l/2-2,textAlign:"right"},f=g.width>a-u-2?{x:u-l/2-2,textAlign:"right"}:{x:u+l/2+2,textAlign:"left"};return d?[f,p]:[p,f]},t.prototype.draw=function(){var e=this.get("container"),t=e&&e.get("canvas");t&&t.draw()},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t}(iO);function nZ(e,t,i){if(e){if("function"==typeof e.addEventListener)return e.addEventListener(t,i,!1),{remove:function(){e.removeEventListener(t,i,!1)}};if("function"==typeof e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}}}}var nJ={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},nQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clearEvents=em.ZT,t.onStartEvent=function(e){return function(i){t.isMobile=e,i.originalEvent.preventDefault();var n=e?(0,em.U2)(i.originalEvent,"touches.0.clientX"):i.clientX,r=e?(0,em.U2)(i.originalEvent,"touches.0.clientY"):i.clientY;t.startPos=t.cfg.isHorizontal?n:r,t.bindLaterEvent()}},t.bindLaterEvent=function(){var e=t.getContainerDOM(),i=[];i=t.isMobile?[nZ(e,"touchmove",t.onMouseMove),nZ(e,"touchend",t.onMouseUp),nZ(e,"touchcancel",t.onMouseUp)]:[nZ(e,"mousemove",t.onMouseMove),nZ(e,"mouseup",t.onMouseUp),nZ(e,"mouseleave",t.onMouseUp)],t.clearEvents=function(){i.forEach(function(e){e.remove()})}},t.onMouseMove=function(e){var i=t.cfg,n=i.isHorizontal,r=i.thumbOffset;e.preventDefault();var o=t.isMobile?(0,em.U2)(e,"touches.0.clientX"):e.clientX,s=t.isMobile?(0,em.U2)(e,"touches.0.clientY"):e.clientY,a=n?o:s,l=a-t.startPos;t.startPos=a,t.updateThumbOffset(r+l)},t.onMouseUp=function(e){e.preventDefault(),t.clearEvents()},t.onTrackClick=function(e){var i=t.cfg,n=i.isHorizontal,r=i.x,o=i.y,s=i.thumbLen,a=t.getContainerDOM().getBoundingClientRect(),l=e.clientX,h=e.clientY,u=n?l-a.left-r-s/2:h-a.top-o-s/2,d=t.validateRange(u);t.updateThumbOffset(d)},t.onThumbMouseOver=function(){var e=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t.onThumbMouseOut=function(){var e=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",e),t.draw()},t}return(0,ef.ZT)(t,e),t.prototype.setRange=function(e,t){this.set("minLimit",e),this.set("maxLimit",t);var i=this.getValue(),n=(0,em.uZ)(i,e,t);i===n||this.get("isInit")||this.setValue(n)},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(e){var t=this.getRange(),i=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,em.uZ)(e,t.min,t.max)}),this.delegateEmit("valuechange",{originalValue:i,value:this.getValue()})},t.prototype.getValue=function(){return(0,em.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,ef.pi)((0,ef.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:nJ})},t.prototype.renderInner=function(e){this.renderTrackShape(e),this.renderThumbShape(e)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(e){var t=this.cfg,i=t.trackLen,n=t.theme,r=(0,em.b$)({},nJ,void 0===n?{default:{}}:n).default,o=r.lineCap,s=r.trackColor,a=r.size,l=(0,em.U2)(this.cfg,"size",a),h=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:i-l/2,y2:l/2,lineWidth:l,stroke:s,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:i-l/2,lineWidth:l,stroke:s,lineCap:o};return this.addShape(e,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},t.prototype.renderThumbShape=function(e){var t=this.cfg,i=t.thumbOffset,n=t.thumbLen,r=t.theme,o=(0,em.b$)({},nJ,r).default,s=o.size,a=o.lineCap,l=o.thumbColor,h=(0,em.U2)(this.cfg,"size",s),u=this.get("isHorizontal")?{x1:i+h/2,y1:h/2,x2:i+n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"}:{x1:h/2,y1:i+h/2,x2:h/2,y2:i+n-h/2,lineWidth:h,stroke:l,lineCap:a,cursor:"default"};return this.addShape(e,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},t.prototype.bindEvents=function(){var e=this.get("group");e.on("mousedown",this.onStartEvent(!1)),e.on("mouseup",this.onMouseUp),e.on("touchstart",this.onStartEvent(!0)),e.on("touchend",this.onMouseUp),e.findById(this.getElementId("track")).on("click",this.onTrackClick);var t=e.findById(this.getElementId("thumb"));t.on("mouseover",this.onThumbMouseOver),t.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var e=this.get("container"),t=e&&e.get("canvas");return t&&t.get("container")},t.prototype.validateRange=function(e){var t=this.cfg,i=t.thumbLen,n=t.trackLen,r=e;return e+i>n?r=n-i:e+ie.x?e.x:t,i=ie.y?e.y:n,r=r=n&&e<=r}function n7(e,t){return"object"==typeof e&&t.forEach(function(t){delete e[t]}),e}function n8(e,t,i){void 0===t&&(t=[]),void 0===i&&(i=new Map);for(var n=0;n=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var e=[],t=0;te.minX&&this.minYe.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY},e}();function rt(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var t=e.convert({x:0,y:0}),i=e.convert({x:1,y:0});return Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2))}function ri(e,t){var i=e.getCenter();return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function rn(e,t){var i=!1;if(e){if("theta"===e.type){var n=e.start,r=e.end;i=n9(t.x,n.x,r.x)&&n9(t.y,n.y,r.y)}else{var o=e.invert(t);i=n9(o.x,0,1)&&n9(o.y,0,1)}}return i}function rr(e,t){var i=e.getCenter();return Math.atan2(t.y-i.y,t.x-i.x)}function ro(e,t){void 0===t&&(t=0);var i,n=e.start,r=e.end,o=e.getWidth(),s=e.getHeight();if(e.isPolar){var a=e.startAngle,l=e.endAngle,h=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:n4(h.x,h.y,u+t,a,a)},endState:function(e){var i=(l-a)*e+a;return{path:n4(h.x,h.y,u+t,a,i)}},attrs:{path:n4(h.x,h.y,u+t,a,l)}}}return i=e.isTransposed?{height:s+2*t}:{width:o+2*t},{type:"rect",startState:{x:n.x-t,y:r.y-t,width:e.isTransposed?o+2*t:0,height:e.isTransposed?0:s+2*t},endState:i,attrs:{x:n.x-t,y:r.y-t,width:o+2*t,height:s+2*t}}}var rs=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function ra(e){return e.alias||e.field}function rl(e,t,i){var n,r=e.values.length;if(1===r)n=[.5,1];else{var o=0;n=!function(e){if(e.isPolar){var t=e.startAngle;return e.endAngle-t==2*Math.PI}return!1}(t)?[o=1/r/2,1-o]:t.isTransposed?[(o=1/r*(0,em.U2)(i,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]}return n}function rh(e,t){var i,n,r={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?r=function(e){var t,i;switch(e){case x.TOP:t={x:0,y:1},i={x:1,y:1};break;case x.RIGHT:t={x:1,y:0},i={x:1,y:1};break;case x.BOTTOM:t={x:0,y:0},i={x:1,y:0};break;case x.LEFT:t={x:0,y:0},i={x:0,y:1};break;default:t=i={x:0,y:0}}return{start:t,end:i}}(t):e.isPolar&&(e.isTransposed?(i={x:0,y:0},n={x:1,y:0}):(i={x:0,y:0},n={x:0,y:1}),r={start:i,end:n});var o=r.start,s=r.end;return{start:e.convert(o),end:e.convert(s)}}function ru(e){var t=e.start,i=e.end;return t.x===i.x}function rd(e,t){var i=e.start,n=e.end;return ru(e)?(i.y-n.y)*(t.x-i.x)>0?1:-1:(n.x-i.x)*(i.y-t.y)>0?-1:1}function rc(e,t){var i=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}function rg(e,t,i){var n=(0,em.U2)(e,["components","axis"],{});return(0,em.b$)({},(0,em.U2)(n,["common","title"],{}),(0,em.b$)({},(0,em.U2)(n,[t,"title"],{})),i)}function rp(e){var t=e.x,i=e.y,n=e.circleCenter,r=i.start>i.end,o=e.isTransposed?e.convert({x:r?0:1,y:0}):e.convert({x:0,y:r?0:1}),s=[o.x-n.x,o.y-n.y],a=[1,0],l=o.y>n.y?io.EU(s,a):-1*io.EU(s,a),h=l+(t.end-t.start),u=Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2));return{center:n,radius:u,startAngle:l,endAngle:h}}function rf(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t])}function rm(e,t){return(0,em.U2)(e,"position",t)}function rv(e,t){return(0,em.U2)(t,["title","text"],ra(e))}var rE=function(){function e(e,t){this.destroyed=!1,this.facets=[],this.view=e,this.cfg=(0,em.b$)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var e=this.view.getData();this.facets=this.generateFacets(e)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(e){var t=e.region,i=e.data,n=e.padding,r=void 0===n?this.cfg.padding:n,o=this.view.createView({region:t,padding:r});o.data(i||[]),e.view=o,this.beforeEachView(o,e);var s=this.cfg.eachView;return s&&s(o,e),this.afterEachView(o,e),o},e.prototype.createContainer=function(){return this.view.getLayer(O.FORE).addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var e=this;return this.facets.map(function(t){return e.facetToView(t)})},e.prototype.clearFacetViews=function(){var e=this;(0,em.S6)(this.facets,function(t){t.view&&(e.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var e=this.view.viewBBox,t=e.width,i=e.height;return this.cfg.spacing.map(function(e,n){return(0,em.hj)(e)?e/(0===n?t:i):parseFloat(e)/100})},e.prototype.getFieldValues=function(e,t){var i=[],n={};return(0,em.S6)(e,function(e){var r=e[t];(0,em.UM)(r)||n[r]||(i.push(r),n[r]=!0)}),i},e.prototype.getRegion=function(e,t,i,n){var r=this.parseSpacing(),o=r[0],s=r[1],a=(1+o)/(0===t?1:t)-o,l=(1+s)/(0===e?1:e)-s,h={x:(a+o)*i,y:(l+s)*n},u={x:h.x+a,y:h.y+l};return{start:h,end:u}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},e.prototype.processAxis=function(e,t){var i=e.getOptions(),n=i.coordinate,r=e.geometries;if("rect"===(0,em.U2)(n,"type","rect")&&r.length){(0,em.UM)(i.axes)&&(i.axes={});var o=i.axes,s=r[0].getXYFields(),a=s[0],l=s[1],h=rf(o,a),u=rf(o,l);!1!==h&&(i.axes[a]=this.getXAxisOption(a,o,h,t)),!1!==u&&(i.axes[l]=this.getYAxisOption(l,o,u,t))}},e.prototype.getFacetDataFilter=function(e){return function(t){return(0,em.yW)(e,function(e){var i=e.field,n=e.value;return!!(0,em.UM)(n)||!i||t[i]===n})}},e}(),r_={},rC=function(e,t){r_[(0,em.vl)(e)]=t},rS=function(){function e(e,t){this.context=e,this.cfg=t,e.addAction(this)}return e.prototype.applyCfg=function(e){(0,em.f0)(this,e)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ry=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.execute=function(){this.callback&&this.callback(this.context)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},t}(rS),rT={};function rb(e){var t=rT[e];return(0,em.U2)(t,"ActionClass")}function rA(e,t,i){rT[e]={ActionClass:t,cfg:i}}function rR(e,t){for(var i=[e[0]],n=1,r=e.length;n=t||i.height>=t?i:null}function rD(e){var t,i=e.event.target;return i&&(t=i.get("element")),t}function rM(e){var t,i=e.event.target;return i&&(t=i.get("delegateObject")),t}function rk(e){var t=e.event.gEvent;return!t||!t.fromShape||!t.toShape||t.fromShape.get("element")!==t.toShape.get("element")}function rP(e){return e&&e.component&&e.component.isList()}function rF(e){return e&&e.component&&e.component.isSlider()}function rB(e){var t=e.event.target;return t&&"mask"===t.get("name")}function rU(e,t){if("path"===e.event.target.get("type")){var i,n,r,o,s=(o=(r=e.event.target).getCanvasBBox()).width>=t||o.height>=t?r.attr("path"):null;if(!s)return;return i=rV(e.view),n=rY(s),i.filter(function(e){var t,i,r=e.shape;return i="path"===r.get("type")?rY(r.attr("path")):[[(t=r.getCanvasBBox()).minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]],(0,nV.Wq)(n,i)})}var a=rx(e,t);return a?rz(e.view,a):null}function rH(e,t,i){var n=rx(e,i);if(!n)return null;var r=e.view,o=rq(r,t,{x:n.x,y:n.y}),s=rq(r,t,{x:n.maxX,y:n.maxY}),a={minX:o.x,minY:o.y,maxX:s.x,maxY:s.y};return rz(t,a)}function rV(e){var t=e.geometries,i=[];return(0,em.S6)(t,function(e){var t=e.elements;i=i.concat(t)}),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){i=i.concat(rV(e))}),i}function rW(e,t){var i=e.geometries,n=[];return(0,em.S6)(i,function(e){var i=e.getElementsBy(function(e){return e.hasState(t)});n=n.concat(i)}),n}function rG(e,t){var i=e.getModel().data;return(0,em.kJ)(i)?i[0][t]:i[t]}function rz(e,t){var i=rV(e),n=[];return(0,em.S6)(i,function(e){var i=e.shape.getCanvasBBox();i.minX>t.maxX||i.maxXt.maxY||i.maxY=t.x&&e.y<=t.y&&e.maxY>t.y}function rj(e){var t=e.parent,i=null;return t&&(i=t.views.filter(function(t){return t!==e})),i}function rq(e,t,i){var n=e.getCoordinate().invert(i);return t.getCoordinate().convert(n)}function rZ(e,t,i,n){var r=!1;return(0,em.S6)(e,function(e){if(e[i]===t[i]&&e[n]===t[n])return r=!0,!1}),r}function rJ(e,t){var i=e.getScaleByField(t);return!i&&e.views&&(0,em.S6)(e.views,function(e){if(i=rJ(e,t))return!1}),i}var rQ=function(){function e(e){this.actions=[],this.event=null,this.cacheMap={},this.view=e}return e.prototype.cache=function(){for(var e=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var e=this.event;return e?e.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(e.clientX,e.clientY):{x:e.x,y:e.y}:null},e.prototype.getCurrentShape=function(){return(0,em.U2)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var e=this.getCurrentPoint();return!!e&&this.view.isPointInPlot(e)},e.prototype.isInShape=function(e){var t=this.getCurrentShape();return!!t&&t.get("name")===e},e.prototype.isInComponent=function(e){var t=rK(this.view),i=this.getCurrentPoint();return!!i&&!!t.find(function(t){var n=t.getBBox();return e?t.get("name")===e&&rX(n,i):rX(n,i)})},e.prototype.destroy=function(){(0,em.S6)(this.actions.slice(),function(e){e.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),r0=function(){function e(e,t){this.view=e,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}();function r1(e,t,i){var n=e.split(":"),r=n[0],o=t.getAction(r)||function(e,t){var i=rT[e],n=null;if(i){var r=i.ActionClass,o=i.cfg;(n=new r(t,o)).name=e,n.init()}return n}(r,t);if(!o)throw Error("There is no action named "+r);return{action:o,methodName:n[1],arg:i}}function r2(e){var t=e.action,i=e.methodName,n=e.arg;if(t[i])t[i](n);else throw Error("Action("+t.name+") doesn't have a method called "+i)}var r4={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},r5=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},t.prototype.initEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.bindEvent(t.trigger,n)})})},t.prototype.clearEvents=function(){var e=this;(0,em.S6)(this.steps,function(t,i){(0,em.S6)(t,function(t){var n=e.getActionCallback(i,t);n&&e.offEvent(t.trigger,n)})})},t.prototype.initContext=function(){var e=this.view,t=new rQ(e);this.context=t;var i=this.steps;(0,em.S6)(i,function(e){(0,em.S6)(e,function(e){if((0,em.mf)(e.action)){var i,n;e.actionObject={action:(i=e.action,(n=new ry(t)).callback=i,n.name="callback",n),methodName:"execute"}}else if((0,em.HD)(e.action))e.actionObject=r1(e.action,t,e.arg);else if((0,em.kJ)(e.action)){var r=e.action,o=(0,em.kJ)(e.arg)?e.arg:[e.arg];e.actionObject=[],(0,em.S6)(r,function(i,n){e.actionObject.push(r1(i,t,o[n]))})}})})},t.prototype.isAllowStep=function(e){var t=this.currentStepName,i=this.steps;if(t===e||e===r4.SHOW_ENABLE)return!0;if(e===r4.PROCESSING)return t===r4.START;if(e===r4.START)return t!==r4.PROCESSING;if(e===r4.END)return t===r4.PROCESSING||t===r4.START;if(e===r4.ROLLBACK){if(i[r4.END])return t===r4.END;if(t===r4.START)return!0}return!1},t.prototype.isAllowExecute=function(e,t){if(this.isAllowStep(e)){var i=this.getKey(e,t);return(!t.once||!this.emitCaches[i])&&(!t.isEnable||t.isEnable(this.context))}return!1},t.prototype.enterStep=function(e){this.currentStepName=e,this.emitCaches={}},t.prototype.afterExecute=function(e,t){e!==r4.SHOW_ENABLE&&this.currentStepName!==e&&this.enterStep(e);var i=this.getKey(e,t);this.emitCaches[i]=!0},t.prototype.getKey=function(e,t){return e+t.trigger+t.action},t.prototype.getActionCallback=function(e,t){var i=this,n=this.context,r=this.callbackCaches,o=t.actionObject;if(t.action&&o){var s=this.getKey(e,t);if(!r[s]){var a=function(r){n.event=r,i.isAllowExecute(e,t)?((0,em.kJ)(o)?(0,em.S6)(o,function(e){n.event=r,r2(e)}):(n.event=r,r2(o)),i.afterExecute(e,t),t.callback&&(n.event=r,t.callback(n))):n.event=null};t.debounce?r[s]=(0,em.Ds)(a,t.debounce.wait,t.debounce.immediate):t.throttle?r[s]=(0,em.P2)(a,t.throttle.wait,{leading:t.throttle.leading,trailing:t.throttle.trailing}):r[s]=a}return r[s]}return null},t.prototype.bindEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.addEventListener(i[1],t):"document"===i[0]?document.addEventListener(i[1],t):this.view.on(e,t)},t.prototype.offEvent=function(e,t){var i=e.split(":");"window"===i[0]?window.removeEventListener(i[1],t):"document"===i[0]?document.removeEventListener(i[1],t):this.view.off(e,t)},t}(r0),r6={};function r3(e,t){r6[(0,em.vl)(e)]=t}function r9(e){var t,i={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},n={title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0},r={title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding};return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:function(e){var t=e.geometry.coordinate;if(t.isPolar&&t.isTransposed){var n=n6(e.getModel(),t),r=(n.startAngle+n.endAngle)/2,o=7.5*Math.cos(r),s=7.5*Math.sin(r);return{matrix:it.vs(null,[["t",o,s]])}}return i.interval.selected}}},"hollow-rect":{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},line:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},tick:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},funnel:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}},pyramid:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},line:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},dot:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,ef.pi)((0,ef.pi)({},i.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,ef.pi)((0,ef.pi)({},i.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,ef.pi)((0,ef.pi)({},i.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,ef.pi)((0,ef.pi)({},i.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hvh:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},polygon:{polygon:{default:{style:i.interval.default},active:{style:i.interval.active},inactive:{style:i.interval.inactive},selected:{style:i.interval.selected}}},point:{circle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},square:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},bowtie:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},diamond:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},hexagon:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},triangle:{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"triangle-down":{default:{style:i.point.default},active:{style:i.point.active},inactive:{style:i.point.inactive},selected:{style:i.point.selected}},"hollow-circle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-square":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-bowtie":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-diamond":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-hexagon":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},"hollow-triangle-down":{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},cross:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},tick:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},plus:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},hyphen:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}},line:{default:{style:i.hollowPoint.default},active:{style:i.hollowPoint.active},inactive:{style:i.hollowPoint.inactive},selected:{style:i.hollowPoint.selected}}},area:{area:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},smooth:{default:{style:i.area.default},active:{style:i.area.active},inactive:{style:i.area.inactive},selected:{style:i.area.selected}},line:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"smooth-line":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}},schema:{candle:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}},box:{default:{style:i.hollowInterval.default},active:{style:i.hollowInterval.active},inactive:{style:i.hollowInterval.inactive},selected:{style:i.hollowInterval.selected}}},edge:{line:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},vhv:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},arc:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}}},violin:{violin:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},smooth:{default:{style:i.line.default},active:{style:i.line.active},inactive:{style:i.line.inactive},selected:{style:i.line.selected}},hollow:{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}},"hollow-smooth":{default:{style:i.hollowArea.default},active:{style:i.hollowArea.active},inactive:{style:i.hollowArea.inactive},selected:{style:i.hollowArea.selected}}}},components:{axis:{common:n,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,em.b$)({},n.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:((t={})[""+nL]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:e.tooltipContainerBorderRadius+"px",color:e.tooltipTextFillColor,fontSize:e.tooltipTextFontSize+"px",fontFamily:e.fontFamily,lineHeight:e.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},t[""+nN]={marginBottom:"12px",marginTop:"12px"},t[""+nI]={margin:0,listStyleType:"none",padding:0},t[""+nw]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},t[""+nO]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},t[""+nx]={display:"inline-block",float:"right",marginLeft:"30px"},t)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var r7={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},r8={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},oe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ot=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],oi=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],on=function(e){void 0===e&&(e={});var t=e.backgroundColor,i=e.subColor,n=e.paletteQualitative10,r=void 0===n?oe:n,o=e.paletteQualitative20,s=e.paletteSemanticRed,a=e.paletteSemanticGreen,l=e.paletteSemanticYellow,h=e.paletteSequence,u=e.fontFamily,d=e.brandColor,c=void 0===d?r[0]:d;return{backgroundColor:void 0===t?"transparent":t,brandColor:c,subColor:void 0===i?"rgba(0,0,0,0.05)":i,paletteQualitative10:r,paletteQualitative20:void 0===o?ot:o,paletteSemanticRed:void 0===s?"#F4664A":s,paletteSemanticGreen:void 0===a?"#30BF78":a,paletteSemanticYellow:void 0===l?"#FAAD14":l,paletteSequence:void 0===h?oi:h,fontFamily:void 0===u?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':u,axisLineBorderColor:r7[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:r7[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:r7[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:r7[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:r7[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:r7[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:r7[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:c,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r7[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r7[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r7[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:r7[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:r7[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:r7[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:r7[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:r7[25],annotationArcBorderColor:r7[15],annotationArcBorder:1,annotationLineBorderColor:r7[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:r7[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r7[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:r7[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:r7[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r7[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r8[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:r7[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r8[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:r7[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:c,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r8[100],pointBorderOpacity:1,pointActiveBorderColor:r7[100],pointSelectedBorder:2,pointSelectedBorderColor:r7[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:c,hollowPointBorderOpacity:.95,hollowPointFillColor:r8[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:r7[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r7[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:c,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:c,areaFillOpacity:.25,areaActiveFillColor:c,areaActiveFillOpacity:.5,areaSelectedFillColor:c,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:c,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r7[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r7[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:c,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r7[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r7[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:c,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r8[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r7[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r7[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};function or(e){var t=e.styleSheet,i=(0,ef._T)(e,["styleSheet"]),n=on(void 0===t?{}:t);return(0,em.b$)({},r9(n),i)}on();var oo={default:or({})};function os(e){return(0,em.U2)(oo,(0,em.vl)(e),oo.default)}function oa(e,t,i){var n=i.translate(e),r=i.translate(t);return(0,em.vQ)(n,r)}function ol(e,t,i){var n=i.coordinate,r=i.getYScale(),o=r.field,s=n.invert(t),a=r.invert(s.y);return(0,em.sE)(e,function(e){var t=e[e_];return t[o][0]<=a&&t[o][1]>=a})||e[e.length-1]}var oh=(0,em.HP)(function(e){if(e.isCategory)return 1;for(var t=e.values,i=t.length,n=e.translate(t[0]),r=n,o=0;or&&(r=a)}return(r-n)/(i-1)});function ou(e){for(var t,i,n=(t=(0,em.VO)(e.attributes),(0,em.hX)(t,function(e){return(0,em.FX)(eE,e.type)})),r=0;r(1+s)/2&&(l=a),r.translate(r.invert(l))),R=T[e_][c],L=T[e_][g],N=b[e_][c],I=d.isLinear&&(0,em.kJ)(L);if((0,em.kJ)(R)){for(var _=0;_=A){if(I)(0,em.kJ)(p)||(p=[]),p.push(w);else{p=w;break}}}(0,em.kJ)(p)&&(p=ol(p,e,i))}else{var O=void 0;if(u.isLinear||"timeCat"===u.type){if((A>u.translate(N)||Au.max||AMath.abs(u.translate(O[e_][c])-A)&&(b=O)}var P=oh(i.getXScale());return!p&&Math.abs(u.translate(b[e_][c])-A)<=P/2&&(p=b),p}function oc(e,t,i,n){void 0===i&&(i=""),void 0===n&&(n=!1);var r,o,s,a,l,h,u,d,c,g=e[e_],p=(r=i,o=t.getAttribute("position").getFields(),l=(a=t.scales[s=(0,em.mf)(r)||!r?o[0]:r])?a.getText(g[s]):g[s]||s,(0,em.mf)(r)?r(l,g):l),f=t.tooltipOption,m=t.theme.defaultColor,v=[];function E(t,i){if(n||!(0,em.UM)(i)&&""!==i){var r={title:p,data:g,mappingData:e,name:t,value:i,color:e.color||m,marker:!0};v.push(r)}}if((0,em.Kn)(f)){var _=f.fields,C=f.callback;if(C){var S=_.map(function(t){return e[e_][t]}),y=C.apply(void 0,S),T=(0,ef.pi)({data:e[e_],mappingData:e,title:p,color:e.color||m,marker:!0},y);v.push(T)}else for(var b=t.scales,A=0;A<_.length;A++){var R=_[A];if(!(0,em.UM)(g[R])){var L=b[R];E(ra(L),c=L.getText(g[R]))}}}else u=g[(h=ou(t)).field],c=(0,em.kJ)(u)?u.map(function(e){return h.getText(e)}).join("-"):h.getText(u),E(function(e,t){var i,n=t.getGroupScales();if(n.length&&(i=n[0]),i){var r=i.field;return i.getText(e[r])}return ra(ou(t))}(g,t),c);return v}function og(e,t,i,n){var r=n.showNil,o=[],s=e.dataArray;if(!(0,em.xb)(s)){e.sort(s);for(var a=0;a');T.appendChild(b);var A=eb(T,a,r,o),R=new(function(e){var t=eC[e];if(!t)throw Error("G engine '"+e+"' is not exist, please register it at first.");return t}(d)).Canvas((0,ef.pi)({container:b,pixelRatio:c,localRefresh:p,supportCSSTransform:void 0!==m&&m},A));return(i=e.call(this,{parent:null,canvas:R,backgroundGroup:R.addGroup({zIndex:ev.BG}),middleGroup:R.addGroup({zIndex:ev.MID}),foregroundGroup:R.addGroup({zIndex:ev.FORE}),padding:l,appendPadding:h,visible:void 0===f||f,options:_,limitInPlot:C,theme:S,syncViewPadding:y})||this).onResize=(0,em.Ds)(function(){i.forceFit()},300),i.ele=T,i.canvas=R,i.width=A.width,i.height=A.height,i.autoFit=a,i.localRefresh=p,i.renderer=d,i.wrapperElement=b,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(E),i}return(0,ef.ZT)(t,e),t.prototype.initDefaultInteractions=function(e){var t=this;(0,em.S6)(e,function(e){t.interaction(e)})},t.prototype.aria=function(e){var t="aria-label";!1===e?this.ele.removeAttribute(t):this.ele.setAttribute(t,e.label)},t.prototype.changeSize=function(e,t){return this.width===e&&this.height===t||(this.emit(M.BEFORE_CHANGE_SIZE),this.width=e,this.height=t,this.canvas.changeSize(e,t),this.render(!0),this.emit(M.AFTER_CHANGE_SIZE)),this},t.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},t.prototype.destroy=function(){var t,i;e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(i=(t=this.wrapperElement).parentNode)&&i.removeChild(t),this.wrapperElement=null},t.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},t.prototype.forceFit=function(){if(!this.destroyed){var e=eb(this.ele,!0,this.width,this.height),t=e.width,i=e.height;this.changeSize(t,i)}},t.prototype.updateCanvasStyle=function(){ey(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},t.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},t.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},t}(ob),oL=function(){function e(e){this.visible=!0,this.components=[],this.view=e}return e.prototype.clear=function(e){(0,em.S6)(this.components,function(e){e.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(e){this.visible!==e&&(this.components.forEach(function(t){e?t.component.show():t.component.hide()}),this.visible=e)},e}(),oN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLocked=!1,t}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},t.prototype.render=function(){},t.prototype.showTooltip=function(e){if(this.point=e,this.isVisible()){var t=this.view,i=this.getTooltipItems(e);if(!i.length){this.hideTooltip();return}var n=this.getTitle(i),r={x:i[0].x,y:i[0].y};t.emit("tooltip:show",o_.fromData(t,"tooltip:show",(0,ef.pi)({items:i,title:n},e)));var o=this.getTooltipCfg(),s=o.follow,a=o.showMarkers,l=o.showCrosshairs,h=o.showContent,u=o.marker,d=this.items,c=this.title;if((0,em.Xy)(c,n)&&(0,em.Xy)(d,i)?(this.tooltip&&s&&(this.tooltip.update(e),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(t.emit("tooltip:change",o_.fromData(t,"tooltip:change",(0,ef.pi)({items:i,title:n},e))),((0,em.mf)(h)?h(i):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,em.CD)({},o,{items:this.getItemsAfterProcess(i),title:n},s?e:{})),this.tooltip.show()),a&&this.renderTooltipMarkers(i,u)),this.items=i,this.title=n,l){var g=(0,em.U2)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?e:r,o)}}},t.prototype.hideTooltip=function(){if(!this.getTooltipCfg().follow){this.point=null;return}var e=this.tooltipMarkersGroup;e&&e.hide();var t=this.xCrosshair,i=this.yCrosshair;t&&t.hide(),i&&i.hide();var n=this.tooltip;n&&n.hide(),this.view.emit("tooltip:hide",o_.fromData(this.view,"tooltip:hide",{})),this.point=null},t.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},t.prototype.unlockTooltip=function(){this.isLocked=!1;var e=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(e.capture)},t.prototype.isTooltipLocked=function(){return this.isLocked},t.prototype.clear=function(){var e=this.tooltip,t=this.xCrosshair,i=this.yCrosshair,n=this.tooltipMarkersGroup;e&&(e.hide(),e.clear()),t&&t.clear(),i&&i.clear(),n&&n.clear(),(null==e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},t.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},t.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},t.prototype.changeVisible=function(e){if(this.visible!==e){var t=this.tooltip,i=this.tooltipMarkersGroup,n=this.xCrosshair,r=this.yCrosshair;e?(t&&t.show(),i&&i.show(),n&&n.show(),r&&r.show()):(t&&t.hide(),i&&i.hide(),n&&n.hide(),r&&r.hide()),this.visible=e}},t.prototype.getTooltipItems=function(e){var t=this.findItemsFromView(this.view,e);if(t.length){t=(0,em.xH)(t);for(var i=0,n=t;i1){for(var u=t[0],d=Math.abs(e.y-u[0].y),c=0,g=t;c'+n+"":n}})},t.prototype.getTitle=function(e){var t=e[0].title||e[0].name;return this.title=t,t},t.prototype.renderTooltip=function(){var e=this.view.getCanvas(),t={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=this.getTooltipCfg(),n=new nF((0,ef.pi)((0,ef.pi)({parent:e.get("el").parentNode,region:t},i),{visible:!1,crosshairs:null}));n.init(),this.tooltip=n},t.prototype.renderTooltipMarkers=function(e,t){for(var i=this.getTooltipMarkersGroup(),n=0;n-1)return;i.push(e),("active"===e||"selected"===e)&&(null==o||o.toFront())}else{if(-1===a)return;i.splice(a,1),("active"===e||"selected"===e)&&(this.geometry.zIndexReversed?o.setZIndex(this.geometry.elements.length-this.elementIndex):o.setZIndex(this.elementIndex))}var l=n.drawShape(s,r,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,l,i,null):this.syncShapeStyle(o,l,["reset"],null),l.remove(!0);var h={state:e,stateStatus:t,element:this,target:this.container};this.container.emit("statechange",h),iu(this.shape,"statechange",h)},t.prototype.clearStates=function(){var e=this,t=this.states;(0,em.S6)(t,function(t){e.setState(t,!1)}),this.states=[]},t.prototype.hasState=function(e){return this.states.includes(e)},t.prototype.getStates=function(){return this.states},t.prototype.getData=function(){return this.data},t.prototype.getModel=function(){return this.model},t.prototype.getBBox=function(){var e=this.shape,t=this.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),t&&t.forEach(function(e){var t=e.getCanvasBBox();i.x=Math.min(t.x,i.x),i.y=Math.min(t.y,i.y),i.minX=Math.min(t.minX,i.minX),i.minY=Math.min(t.minY,i.minY),i.maxX=Math.max(t.maxX,i.maxX),i.maxY=Math.max(t.maxY,i.maxY)}),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},t.prototype.getStatesStyle=function(){if(!this.statesStyle){var e=this.shapeType,t=this.geometry,i=this.shapeFactory,n=t.stateOption,r=i.defaultShapeType,o=i.theme[e]||i.theme[r];this.statesStyle=(0,em.b$)({},o,n)}return this.statesStyle},t.prototype.getStateStyle=function(e,t){var i=this.getStatesStyle(),n=(0,em.U2)(i,[e,"style"],{}),r=n[t]||n;return(0,em.mf)(r)?r(this):r},t.prototype.getAnimateCfg=function(e){var t=this,i=this.animate;if(i){var n=i[e];return n?(0,ef.pi)((0,ef.pi)({},n),{callback:function(){var e;(0,em.mf)(n.callback)&&n.callback(),null===(e=t.geometry)||void 0===e||e.emit(k.AFTER_DRAW_ANIMATE)}}):n}return null},t.prototype.drawShape=function(e,t){void 0===t&&(t=!1);var i,n=this.shapeFactory,r=this.container,o=this.shapeType;if(this.shape=n.drawShape(o,e,r),this.shape){this.setShapeInfo(this.shape,e);var s=this.shape.cfg.name;s?(0,em.HD)(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var a=t?"enter":"appear",l=this.getAnimateCfg(a);l&&(null===(i=this.geometry)||void 0===i||i.emit(k.BEFORE_DRAW_ANIMATE),oP(this.shape,l,{coordinate:n.coordinate,toAttrs:(0,ef.pi)({},this.shape.attr())}))}},t.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var e=this.container.getGroupBase();this.offscreenGroup=new e({})}return this.offscreenGroup},t.prototype.setShapeInfo=function(e,t){var i=this;e.cfg.origin=t,e.cfg.element=this,e.isGroup()&&e.get("children").forEach(function(e){i.setShapeInfo(e,t)})},t.prototype.syncShapeStyle=function(e,t,i,n,r){var o,s=this;if(void 0===i&&(i=[]),void 0===r&&(r=0),e&&t){var a=e.get("clipShape"),l=t.get("clipShape");if(this.syncShapeStyle(a,l,i,n),e.isGroup())for(var h=e.get("children"),u=t.get("children"),d=0;d=s[h]?1:0,c=u>Math.PI?1:0,g=i.convert(a),p=ri(i,g);if(p>=.5){if(u===2*Math.PI){var f={x:(a.x+s.x)/2,y:(a.y+s.y)/2},m=i.convert(f);l.push(["A",p,p,0,c,d,m.x,m.y]),l.push(["A",p,p,0,c,d,g.x,g.y])}else l.push(["A",p,p,0,c,d,g.x,g.y])}return l}(i,e,a)):n.push(rR(e,a));break;case"a":n.push(rL(e,a));break;default:n.push(e)}}),r=n,(0,em.S6)(r,function(e,t){if("a"===e[0].toLowerCase()){var i=r[t-1],n=r[t+1];n&&"a"===n[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&n&&"l"===n[0].toLowerCase()&&(n[0]="M")}}),l=n):(o=l,s=[],(0,em.S6)(o,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":s.push(rR(e,a));break;case"a":s.push(rL(e,a));break;default:s.push(e)}}),l=s),l},parsePoint:function(e){return this.coordinate.convert(e)},parsePoints:function(e){var t=this.coordinate;return e.map(function(e){return t.convert(e)})},draw:function(e,t){}},oY={};function oK(e,t){var i=(0,em.jC)(e),n=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},oG),t),{geometryType:e});return oY[i]=n,n}function o$(e,t,i){var n=oY[(0,em.jC)(e)],r=(0,ef.pi)((0,ef.pi)({},oz),i);return n[t]=r,r}function oX(e){return oY[(0,em.jC)(e)]}function oj(e,t){return(0,em.G)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(i){return!(0,em.Xy)(e[i],t[i])})}function oq(e){return(0,em.kJ)(e)?e:e.split("*")}function oZ(e,t){for(var i=[],n=[],r=[],o=new Map,s=0;s=0?t:i<=0?i:0},t.prototype.createAttrOption=function(e,t,i){if((0,em.UM)(t)||(0,em.Kn)(t))(0,em.Kn)(t)&&(0,em.Xy)(Object.keys(t),["values"])?(0,em.t8)(this.attributeOption,e,{fields:t.values}):(0,em.t8)(this.attributeOption,e,t);else{var n={};(0,em.hj)(t)?n.values=[t]:n.fields=oq(t),i&&((0,em.mf)(i)?n.callback=i:n.values=i),(0,em.t8)(this.attributeOption,e,n)}},t.prototype.initAttributes=function(){var e=this,t=this.attributes,i=this.attributeOption,n=this.theme,r=this.shapeType;this.groupScales=[];var o={},s=function(s){if(i.hasOwnProperty(s)){var a=i[s];if(!a)return{value:void 0};var l=(0,ef.pi)({},a),h=l.callback,u=l.values,d=l.fields,c=(void 0===d?[]:d).map(function(t){var i=e.scales[t];return i.isCategory&&!o[t]&&eE.includes(s)&&(e.groupScales.push(i),o[t]=!0),i});l.scales=c,"position"!==s&&1===c.length&&"identity"===c[0].type?l.values=c[0].values:h||u||("size"===s?l.values=n.sizes:"shape"===s?l.values=n.shapes[r]||[]:"color"===s&&(c.length?l.values=c[0].values.length<=10?n.colors10:n.colors20:l.values=n.colors10));var g=t3(s);t[s]=new g(l)}};for(var a in i){var l=s(a);if("object"==typeof l)return l.value}},t.prototype.processData=function(e){this.hasSorted=!1;for(var t=this.getAttribute("position").scales.filter(function(e){return e.isCategory}),i=this.groupData(e),n=[],r=0,o=i.length;ro&&(o=h)}var u=this.scaleDefs,d={};re.max&&!(0,em.U2)(u,[n,"max"])&&(d.max=o),e.change(d)},t.prototype.beforeMapping=function(e){if(this.sortable&&this.sort(e),this.generatePoints)for(var t=0,i=e.length;t1)for(var u=0;u=t.getCount()&&!e.destroyed&&t.add(e)})})(d,h[t],{data:o,origin:s,animateCfg:u,coordinate:a}),n.shapesMap[t]=d}else{r.add(e);var c=(0,em.U2)(e.get("animateCfg"),i?"enter":"appear");c&&oP(e,c,{toAttrs:(0,ef.pi)({},e.attr()),coordinate:e.get("coordinate")})}delete l[t]}}),(0,em.S6)(l,function(e){var t=(0,em.U2)(e.get("animateCfg"),"leave");t?oP(e,t,{toAttrs:null,coordinate:e.get("coordinate")}):e.remove(!0)}),this.lastShapesMap=h,o.destroy()},e.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},e.prototype.renderLabel=function(e,t){var i,n=e.id,r=e.elementId,o=e.data,s=e.mappingData,a=e.coordinate,l=e.animate,h=e.content,u={id:n,elementId:r,data:o,origin:(0,ef.pi)((0,ef.pi)({},s),{data:s[e_]}),coordinate:a},d=t.addGroup((0,ef.pi)({name:"label",animateCfg:!1!==this.animate&&null!==l&&!1!==l&&(0,em.b$)({},this.animate,l)},u));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var c=h.getCanvasBBox(),g=c.width,p=c.height,f=(0,em.U2)(e,"textAlign","left"),m=e.x,v=e.y-p/2;"center"===f?m-=g/2:("right"===f||"end"===f)&&(m-=g),o0(h,m,v),i=h,d.add(h)}else{var E=(0,em.U2)(e,["style","fill"]);i=d.addShape("text",(0,ef.pi)({attrs:(0,ef.pi)((0,ef.pi)({x:e.x,y:e.y,textAlign:e.textAlign,textBaseline:(0,em.U2)(e,"textBaseline","middle"),text:e.content},e.style),{fill:(0,em.Ft)(E)?e.color:E})},u))}e.rotate&&o1(i,e.rotate),this.shapesMap[n]=d},e.prototype.doLayout=function(e,t){var i=this;if(this.layout){var n=(0,em.kJ)(this.layout)?this.layout:[this.layout];(0,em.S6)(n,function(n){var r=oH[(0,em.U2)(n,"type","").toLowerCase()];if(r){var o=[],s=[];(0,em.S6)(i.shapesMap,function(e,i){o.push(e),s.push(t[e.get("elementId")])}),r(e,o,s,i.region,n.cfg)}})}},e.prototype.renderLabelLine=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate");if(e&&i){var n=i.getCenter(),r=i.getRadius();if(e.labelLine){var o=(0,em.U2)(e,"labelLine",{}),s=e.id,a=o.path;if(!a){var l=n2(n.x,n.y,r,e.angle);a=[["M",l.x,l.y],["L",e.x,e.y]]}var h=t.shapesMap[s];h.destroyed||h.addShape("path",{capture:!1,attrs:(0,ef.pi)({path:a,stroke:e.color?e.color:(0,em.U2)(e,["style","fill"],"#000"),fill:null},o.style),id:s,origin:e.mappingData,data:e.data,coordinate:e.coordinate})}}})},e.prototype.renderLabelBackground=function(e){var t=this;(0,em.S6)(e,function(e){var i=(0,em.U2)(e,"coordinate"),n=(0,em.U2)(e,"background");if(n&&i){var r=e.id,o=t.shapesMap[r];if(!o.destroyed){var s=o.getChildren()[0];if(s){var a=o4(o,e,n.padding),l=a.rotation,h=(0,ef._T)(a,["rotation"]),u=o.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)({},h),n.style||{}),id:r,origin:e.mappingData,data:e.data,coordinate:e.coordinate});if(u.setZIndex(-1),l){var d=s.getMatrix();u.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},e.prototype.adjustLabel=function(e){var t=this;(0,em.S6)(e,function(e){if(e){var i=e.id,n=t.shapesMap[i];if(!n.destroyed){var r=n.findAll(function(e){return"path"!==e.get("type")});(0,em.S6)(r,function(t){t&&(e.offsetX&&t.attr("x",t.attr("x")+e.offsetX),e.offsetY&&t.attr("y",t.attr("y")+e.offsetY))})}}})},e}();function o6(e){var t=0;return(0,em.S6)(e,function(e){t+=e}),t/e.length}var o3=function(){function e(e){this.geometry=e}return e.prototype.getLabelItems=function(e){var t=this,i=[],n=this.getLabelCfgs(e);return(0,em.S6)(e,function(e,r){var o=n[r];if(!o||(0,em.UM)(e.x)||(0,em.UM)(e.y)){i.push(null);return}var s=(0,em.kJ)(o.content)?o.content:[o.content];o.content=s;var a=s.length;(0,em.S6)(s,function(n,r){if((0,em.UM)(n)||""===n){i.push(null);return}var s=(0,ef.pi)((0,ef.pi)({},o),t.getLabelPoint(o,e,r));s.textAlign||(s.textAlign=t.getLabelAlign(s,r,a)),s.offset<=0&&(s.labelLine=null),i.push(s)})}),i},e.prototype.render=function(e,t){void 0===t&&(t=!1);var i=this.getLabelItems(e),n=this.getLabelsRenderer(),r=this.getGeometryShapes();n.render(i,r,t)},e.prototype.clear=function(){var e=this.labelsRenderer;e&&e.clear()},e.prototype.destroy=function(){var e=this.labelsRenderer;e&&e.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(e,t){var i=this.geometry,n=i.type,r=i.theme;return"polygon"===n||"interval"===n&&"middle"===t||e<0&&!["line","point","path"].includes(n)?(0,em.U2)(r,"innerLabels",{}):(0,em.U2)(r,"labels",{})},e.prototype.getThemedLabelCfg=function(e){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,r=t.theme;return"polygon"===n||e.offset<0&&!["line","point","path"].includes(n)?(0,em.b$)({},i,r.innerLabels,e):(0,em.b$)({},i,r.labels,e)},e.prototype.setLabelPosition=function(e,t,i,n){},e.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=this.getOffsetVector(e);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(e,t,i){var n=e.offset,r=this.getCoordinate().isTransposed,o=r?"x":"y",s=r?1:-1,a={x:0,y:0};return t>0||1===i?a[o]=n*s:a[o]=-(n*s*1),a},e.prototype.getLabelPoint=function(e,t,i){var n=this.getCoordinate(),r=e.content.length;function o(t,i,n){void 0===n&&(n=!1);var r=t;return(0,em.kJ)(r)&&(r=1===e.content.length?n?o6(r):r.length<=2?r[t.length-1]:o6(r):r[i]),r}var s={content:e.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},a=(0,em.kJ)(t.shape)?t.shape[0]:t.shape,l="funnel"===a||"pyramid"===a;if("polygon"===this.geometry.type){var h=function(e,t){if((0,em.hj)(e)&&(0,em.hj)(t))return[e,t];if(n0(e)||n0(t))return[n1(e),n1(t)];for(var i,n,r=-1,o=0,s=0,a=e.length-1,l=0;++r1&&0===t&&("right"===n?n="left":"left"===n&&(n="right"))}return n},e.prototype.getLabelId=function(e){var t=this.geometry,i=t.type,n=t.getXScale(),r=t.getYScale(),o=e[e_],s=t.getElementId(e);return"line"===i||"area"===i?s+=" "+o[n.field]:"path"===i&&(s+=" "+o[n.field]+"-"+o[r.field]),s},e.prototype.getLabelsRenderer=function(){var e=this.geometry,t=e.labelsContainer,i=e.labelOption,n=e.canvasRegion,r=e.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new o5({container:t,layout:(0,em.U2)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=!!r&&ok("label",o),s},e.prototype.getLabelCfgs=function(e){var t=this,i=this.geometry,n=i.labelOption,r=i.scales,o=i.coordinate,s=n.fields,a=n.callback,l=n.cfg,h=s.map(function(e){return r[e]}),u=[];return(0,em.S6)(e,function(e,i){var n,r=e[e_],d=t.getLabelText(r,h);if(a){var c=s.map(function(e){return r[e]});if(n=a.apply(void 0,c),(0,em.UM)(n)){u.push(null);return}}var g=(0,ef.pi)((0,ef.pi)({id:t.getLabelId(e),elementId:t.geometry.getElementId(e),data:r,mappingData:e,coordinate:o},l),n);(0,em.mf)(g.position)&&(g.position=g.position(r,e,i));var p=t.getLabelOffset(g.offset||0),f=t.getDefaultLabelCfg(p,g.position);(g=(0,em.b$)({},f,g)).offset=t.getLabelOffset(g.offset||0);var m=g.content;(0,em.mf)(m)?g.content=m(r,e,i):(0,em.o8)(m)&&(g.content=d[0]),u.push(g)}),u},e.prototype.getLabelText=function(e,t){var i=[];return(0,em.S6)(t,function(t){var n=e[t.field];n=(0,em.kJ)(n)?n.map(function(e){return t.getText(e)}):t.getText(n),(0,em.UM)(n)||""===n?i.push(null):i.push(n)}),i},e.prototype.getOffsetVector=function(e){void 0===e&&(e=0);var t=this.getCoordinate(),i=0;return(0,em.hj)(e)&&(i=e),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var e=this.geometry,t={};return(0,em.S6)(e.elementsMap,function(e,i){t[i]=e.shape}),(0,em.S6)(e.getOffscreenGroup().getChildren(),function(i){t[e.getElementId(i.get("origin").mappingData)]=i}),t},e}();function o9(e,t,i){if(!e)return i;if(e.callback&&e.callback.length>1){var n,r=Array(e.callback.length-1).fill("");n=e.mapping.apply(e,(0,ef.ev)([t],r,!1)).join("")}else n=e.mapping(t).join("");return n||i}var o7={hexagon:function(e,t,i){var n=i/2*Math.sqrt(3);return[["M",e,t-i],["L",e+n,t-i/2],["L",e+n,t+i/2],["L",e,t+i],["L",e-n,t+i/2],["L",e-n,t-i/2],["Z"]]},bowtie:function(e,t,i){var n=i-1.5;return[["M",e-i,t-n],["L",e+i,t+n],["L",e+i,t-n],["L",e-i,t+n],["Z"]]},cross:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t+i],["M",e+i,t-i],["L",e-i,t+i]]},tick:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},plus:function(e,t,i){return[["M",e-i,t],["L",e+i,t],["M",e,t-i],["L",e,t+i]]},hyphen:function(e,t,i){return[["M",e-i,t],["L",e+i,t]]},line:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]}},o8=["line","cross","tick","plus","hyphen"];function se(e){var t=e.symbol;(0,em.HD)(t)&&o7[t]&&(e.symbol=o7[t])}function st(e){return e.startsWith(x.LEFT)||e.startsWith(x.RIGHT)?"vertical":"horizontal"}function si(e,t,i,n,r){var o=i.getScale(i.type);if(o.isCategory){var s=o.field,a=t.getAttribute("color"),l=t.getAttribute("shape"),h=e.getTheme().defaultColor,u=t.coordinate.isPolar;return o.getTicks().map(function(i,d){var c,g,p,f=i.text,m=i.value,v=o.invert(m),E=0===e.filterFieldData(s,[((p={})[s]=v,p)]).length;(0,em.S6)(e.views,function(e){var t;e.filterFieldData(s,[((t={})[s]=v,t)]).length||(E=!0)});var _=o9(a,v,h),C=o9(l,v,"point"),S=t.getShapeMarker(C,{color:_,isInPolar:u}),y=r;return(0,em.mf)(y)&&(y=y(f,d,(0,ef.pi)({name:f,value:v},(0,em.b$)({},n,S)))),!function(e,t){var i=e.symbol;if((0,em.HD)(i)&&-1!==o8.indexOf(i)){var n=(0,em.U2)(e,"style",{}),r=(0,em.U2)(n,"lineWidth",1),o=n.stroke||n.fill||t;e.style=(0,em.b$)({},e.style,{lineWidth:r,stroke:o,fill:null})}}(S=(0,em.b$)({},n,S,n7((0,ef.pi)({},y),["style"])),_),y&&y.style&&(S.style=(c=S.style,g=y.style,(0,em.mf)(g)?g(c):(0,em.b$)({},c,g))),se(S),{id:v,name:f,value:v,marker:S,unchecked:E}})}return[]}function sn(e,t){var i=(0,em.U2)(e,["components","legend"],{});return(0,em.b$)({},(0,em.U2)(i,["common"],{}),(0,em.b$)({},(0,em.U2)(i,[t],{})))}var sr={getLegendItems:si,translate:o0,rotate:o1,zoom:function(e,t){var i=e.getBBox(),n=(i.minX+i.maxX)/2,r=(i.minY+i.maxY)/2;e.applyToMatrix([n,r,1]);var o=oQ(e.getMatrix(),[["t",-n,-r],["s",t,t],["t",n,r]]);e.setMatrix(o)},transform:oQ,getAngle:n6,getSectorPath:n4,polarToCartesian:n2,getDelegationObject:rM,getTooltipItems:oc,getMappingValue:o9},so={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},ss={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},sa=(void 0===d&&(d={}),c=d.backgroundColor,g=d.subColor,f=void 0===(p=d.paletteQualitative10)?["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"]:p,m=d.paletteQualitative20,v=d.paletteSemanticRed,E=d.paletteSemanticGreen,_=d.paletteSemanticYellow,C=d.paletteSequence,S=d.fontFamily,{backgroundColor:void 0===c?"#141414":c,brandColor:void 0===(y=d.brandColor)?f[0]:y,subColor:void 0===g?"rgba(255,255,255,0.05)":g,paletteQualitative10:f,paletteQualitative20:void 0===m?["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"]:m,paletteSemanticRed:void 0===v?"#F4664A":v,paletteSemanticGreen:void 0===E?"#30BF78":E,paletteSemanticYellow:void 0===_?"#FAAD14":_,paletteSequence:void 0===C?["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"]:C,fontFamily:void 0===S?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':S,axisLineBorderColor:ss[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ss[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:ss[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ss[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ss[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ss[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ss[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:"#5B8FF9",legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ss[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ss[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ss[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ss[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ss[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ss[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:so[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:so[25],annotationArcBorderColor:ss[15],annotationArcBorder:1,annotationLineBorderColor:ss[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ss[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ss[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ss[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:ss[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ss[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:so[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ss[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:so[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ss[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:"#5B8FF9",pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:so[100],pointBorderOpacity:1,pointActiveBorderColor:ss[100],pointSelectedBorder:2,pointSelectedBorderColor:ss[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:"#5B8FF9",hollowPointBorderOpacity:.95,hollowPointFillColor:so[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ss[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ss[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:"#5B8FF9",lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:"#5B8FF9",areaFillOpacity:.25,areaActiveFillColor:"#5B8FF9",areaActiveFillOpacity:.5,areaSelectedFillColor:"#5B8FF9",areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:"#5B8FF9",hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ss[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ss[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:"#5B8FF9",intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ss[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ss[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:"#5B8FF9",hollowIntervalBorderOpacity:1,hollowIntervalFillColor:so[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ss[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ss[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3});function sl(e,t,i,n){var r=e-i,o=t-n;return Math.sqrt(r*r+o*o)}function sh(e,t,i,n,r,o){return r>=e&&r<=e+i&&o>=t&&o<=t+n}function su(e,t){return!(t.minX>e.maxX||t.maxXe.maxY||t.maxY1&&(i*=Math.sqrt(g),n*=Math.sqrt(g));var p=i*i*(c*c)+n*n*(d*d),f=p?Math.sqrt((i*i*(n*n)-p)/p):1;o===s&&(f*=-1),isNaN(f)&&(f=0);var m=n?f*i*c/n:0,v=i?-(f*n)*d/i:0,E=(a+h)/2+Math.cos(r)*m-Math.sin(r)*v,_=(l+u)/2+Math.sin(r)*m+Math.cos(r)*v,C=[(d-m)/i,(c-v)/n],S=[(-1*d-m)/i,(-1*c-v)/n],y=s_([1,0],C),T=s_(C,S);return -1>=sE(C,S)&&(T=Math.PI),sE(C,S)>=1&&(T=0),0===s&&T>0&&(T-=2*Math.PI),1===s&&T<0&&(T+=2*Math.PI),{cx:E,cy:_,rx:sd(e,[h,u])?0:i,ry:sd(e,[h,u])?0:n,startAngle:y,endAngle:y+T,xRotation:r,arcFlag:o,sweepFlag:s}}var sS=Math.sin,sy=Math.cos,sT=Math.atan2,sb=Math.PI;function sA(e,t,i,n,r,o,s){var a=t.stroke,l=t.lineWidth,h=sT(n-o,i-r),u=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*sy(sb/6)+","+10*sS(sb/6)+" L0,0 L"+10*sy(sb/6)+",-"+10*sS(sb/6),stroke:a,lineWidth:l}});u.translate(r,o),u.rotateAtPoint(r,o,h),e.set(s?"startArrowShape":"endArrowShape",u)}function sR(e,t,i,n,r,o,s){var a=t.startArrow,l=t.endArrow,h=t.stroke,u=t.lineWidth,d=s?a:l,c=d.d,g=d.fill,p=d.stroke,f=d.lineWidth,m=(0,ef._T)(d,["d","fill","stroke","lineWidth"]),v=sT(n-o,i-r);c&&(r-=sy(v)*c,o-=sS(v)*c);var E=new s0({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:(0,ef.pi)((0,ef.pi)({},m),{stroke:p||h,lineWidth:f||u,fill:g})});E.translate(r,o),E.rotateAtPoint(r,o,v),e.set(s?"startArrowShape":"endArrowShape",E)}function sL(e,t,i,n,r){var o=sT(n-t,i-e);return{dx:sy(o)*r,dy:sS(o)*r}}function sN(e,t,i,n,r,o){"object"==typeof t.startArrow?sR(e,t,i,n,r,o,!0):t.startArrow?sA(e,t,i,n,r,o,!0):e.set("startArrowShape",null)}function sI(e,t,i,n,r,o){"object"==typeof t.endArrow?sR(e,t,i,n,r,o,!1):t.endArrow?sA(e,t,i,n,r,o,!1):e.set("startArrowShape",null)}var sw={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function sO(e,t){var i=t.attr();for(var n in i){var r=i[n],o=sw[n]?sw[n]:n;"matrix"===o&&r?e.transform(r[0],r[1],r[3],r[4],r[6],r[7]):"lineDash"===o&&e.setLineDash?(0,em.kJ)(r)&&e.setLineDash(r):("strokeStyle"===o||"fillStyle"===o?r=function(e,t,i){var n,r,o,s,a,l,h,u,d,c,g,p=t.getBBox();if(isNaN(p.x)||isNaN(p.y)||isNaN(p.width)||isNaN(p.height))return i;if((0,em.HD)(i)){if("("===i[1]||"("===i[2]){if("l"===i[0])return s=parseFloat((o=sc.exec(i))[1])%360*(Math.PI/180),a=o[2],l=t.getBBox(),s>=0&&s<.5*Math.PI?(n={x:l.minX,y:l.minY},r={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&sC?_:C,R=_>C?1:_/C,L=_>C?C/_:1;t.translate(v,E),t.rotate(T),t.scale(R,L),t.arc(0,0,A,S,y,1-b),t.scale(1/R,1/L),t.rotate(-T),t.translate(-v,-E)}break;case"Z":t.closePath()}if("Z"===c)a=l;else{var N=d.length;a=[d[N-2],d[N-1]]}}}}function sk(e,t){var i=e.get("canvas");i&&("remove"===t&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),!(e.cfg.parent&&e.cfg.parent.get("hasChanged"))&&(i.refreshElement(e,t,i),i.get("autoDraw")&&i.draw())))}var sP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.cacheCanvasBBox=function(){var e=this.cfg.children,t=[],i=[];(0,em.S6)(e,function(e){var n=e.cfg.cacheCanvasBBox;n&&e.cfg.isInView&&(t.push(n.minX,n.maxX),i.push(n.minY,n.maxY))});var n=null;if(t.length){var r=(0,em.VV)(t),o=(0,em.Fp)(t),s=(0,em.VV)(i),a=(0,em.Fp)(i);n={minX:r,minY:s,x:r,y:s,maxX:o,maxY:a,width:o-r,height:a-s};var l=this.cfg.canvas;if(l){var h=l.getViewRange();this.set("isInView",su(n,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",n)},t.prototype.draw=function(e,t){var i=this.cfg.children,n=!t||this.cfg.refresh;i.length&&n&&(e.save(),sO(e,this),this._applyClip(e,this.getClip()),sx(e,i,t),e.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t}(eL.AbstractGroup),sF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.onCanvasChange=function(e){sk(this,e)},t.prototype.calculateBBox=function(){var e=this.get("type"),t=this.getHitLineWidth(),i=(0,eL.getBBoxMethod)(e)(this),n=t/2,r=i.x-n,o=i.y-n,s=i.x+i.width+n,a=i.y+i.height+n;return{x:r,minX:r,y:o,minY:o,width:i.width+t,height:i.height+t,maxX:s,maxY:a}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(e,t){t&&(e.save(),sO(e,t),t.createPath(e),e.restore(),e.clip(),t._afterDraw())},t.prototype.draw=function(e,t){var i=this.cfg.clipShape;if(t){if(!1===this.cfg.refresh){this.set("hasChanged",!1);return}if(!su(t,this.getCanvasBBox())){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}e.save(),sO(e,this),this._applyClip(e,i),this.drawPath(e),e.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var e=this.cfg.canvas;return e?e.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var e=this.getCanvasViewBox();if(e){var t=this.getCanvasBBox(),i=su(t,e);this.set("isInView",i),i?this.set("cacheCanvasBBox",t):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(e){this.createPath(e),this.strokeAndFill(e),this.afterDrawPath(e)},t.prototype.fill=function(e){e.fill()},t.prototype.stroke=function(e){e.stroke()},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=r),this.stroke(e)),this.afterDrawPath(e)},t.prototype.createPath=function(e){},t.prototype.afterDrawPath=function(e){},t.prototype.isInShape=function(e,t){var i=this.isStroke(),n=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var e=this.attrs;return e.lineWidth+e.lineAppendWidth},t}(eL.AbstractShape),sB=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o=this.attr(),s=o.x,a=o.y,l=o.r,h=r/2,u=sl(s,a,e,t);return n&&i?u<=l+h:n?u<=l:!!i&&u>=l-h&&u<=l+h},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.r;e.beginPath(),e.arc(i,n,r,0,2*Math.PI,!1),e.closePath()},t}(sF),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s,a,l,h,u,d=this.attr(),c=r/2,g=d.x,p=d.y,f=d.rx,m=d.ry,v=(e-g)*(e-g),E=(t-p)*(t-p);return n&&i?1>=v/((o=f+c)*o)+E/((s=m+c)*s):n?1>=v/(f*f)+E/(m*m):!!i&&v/((a=f-c)*a)+E/((l=m-c)*l)>=1&&1>=v/((h=f+c)*h)+E/((u=m+c)*u)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.rx,o=t.ry;if(e.beginPath(),e.ellipse)e.ellipse(i,n,r,o,0,0,2*Math.PI,!1);else{var s=r>o?r:o,a=r>o?1:r/o,l=r>o?o/r:1;e.save(),e.translate(i,n),e.scale(a,l),e.arc(0,0,s,0,2*Math.PI),e.restore(),e.closePath()}},t}(sF);function sH(e){return e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()}var sV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(e){this._setImage(e.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var e=this.get("canvas");e?e.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(e){var t=this,i=this.attrs;if((0,em.HD)(e)){var n=new Image;n.onload=function(){if(t.destroyed)return!1;t.attr("img",n),t.set("loading",!1),t._afterLoading();var e=t.get("callback");e&&e.call(t)},n.crossOrigin="Anonymous",n.src=e,this.set("loading",!0)}else e instanceof Image?(i.width||(i.width=e.width),i.height||(i.height=e.height)):sH(e)&&(i.width||(i.width=Number(e.getAttribute("width"))),i.height||(i.height,e.getAttribute("height")))},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),"img"===t&&this._setImage(i)},t.prototype.createPath=function(e){if(this.get("loading")){this.set("toDraw",!0),this.set("context",e);return}var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.sx,a=t.sy,l=t.swidth,h=t.sheight,u=t.img;(u instanceof Image||sH(u))&&((0,em.UM)(s)||(0,em.UM)(a)||(0,em.UM)(l)||(0,em.UM)(h)?e.drawImage(u,i,n,r,o):e.drawImage(u,s,a,l,h,i,n,r,o))},t}(sF),sW=i(32793);function sG(e,t,i,n,r,o,s){var a=Math.min(e,i),l=Math.max(e,i),h=Math.min(t,n),u=Math.max(t,n),d=r/2;return o>=a-d&&o<=l+d&&s>=h-d&&s<=u+d&&sW.x1.pointToLine(e,t,i,n,o,s)<=r/2}var sz=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(e){this.setArrow()},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),this.setArrow()},t.prototype.setArrow=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2,o=e.startArrow,s=e.endArrow;o&&sN(this,e,n,r,t,i),s&&sI(this,e,t,i,n,r)},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){if(!i||!r)return!1;var o=this.attr();return sG(o.x1,o.y1,o.x2,o.y2,r,e,t)},t.prototype.createPath=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2,s=t.startArrow,a=t.endArrow,l={dx:0,dy:0},h={dx:0,dy:0};s&&s.d&&(l=sL(i,n,r,o,t.startArrow.d)),a&&a.d&&(h=sL(i,n,r,o,t.endArrow.d)),e.beginPath(),e.moveTo(i+l.dx,n+l.dy),e.lineTo(r-h.dx,o-h.dy)},t.prototype.afterDrawPath=function(e){var t=this.get("startArrowShape"),i=this.get("endArrowShape");t&&t.draw(e),i&&i.draw(e)},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(sF),sY={circle:function(e,t,i){return[["M",e-i,t],["A",i,i,0,1,0,e+i,t],["A",i,i,0,1,0,e-i,t]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["Z"]]},"triangle-down":function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.initAttrs=function(e){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["symbol","x","y","r","radius"].indexOf(t)&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(e){return(0,em.UM)(e.r)?e.radius:e.r},t.prototype._getPath=function(){var e,i,n=this.attr(),r=n.x,o=n.y,s=n.symbol||"circle",a=this._getR(n);if((0,em.mf)(s))i=(e=s)(r,o,a),i=(0,nV.wb)(i);else{if(!(e=t.Symbols[s]))return console.warn(s+" marker is not supported."),null;i=e(r,o,a)}return i},t.prototype.createPath=function(e){sM(this,e,{path:this._getPath()},this.get("paramsCache"))},t.Symbols=sY,t}(sF);function s$(e,t,i){var n=(0,eL.getOffScreenContext)();return e.createPath(n),n.isPointInPath(t,i)}function sX(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function sj(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=sX(l[1]-i)>0&&0>sX(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}function sq(e,t,i,n,r,o,s,a){var l=(Math.atan2(a-t,s-e)+2*Math.PI)%(2*Math.PI);if(lr)return!1;var h={x:e+i*Math.cos(l),y:t+i*Math.sin(l)};return sl(h.x,h.y,s,a)<=o/2}var sZ=it.vs,sJ=(0,ef.pi)({hasArc:function(e){for(var t=!1,i=e.length,n=0;n0&&n.push(r),{polygons:i,polylines:n}},isPointInStroke:function(e,t,i,n,r){for(var o=!1,s=t/2,a=0;av?m:v;t8(S,S,sZ(null,[["t",-p,-f],["r",-C],["s",1/(m>v?1:m/v),1/(m>v?v/m:1)]])),o=sq(0,0,y,E,_,t,S[0],S[1])}if(o)break}}return o}},eL.PathUtil);function sQ(e,t,i){for(var n=!1,r=0;r=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)});var o=r[i];if((0,em.UM)(o)||(0,em.UM)(i))return null;var s=o.length,a=r[i+1];return sW.Ll.pointAt(o[s-2],o[s-1],a[1],a[2],a[3],a[4],a[5],a[6],t)},t.prototype._calculateCurve=function(){var e=this.attr().path;this.set("curve",sJ.pathToCurve(e))},t.prototype._setTcache=function(){var e,t,i,n=0,r=0,o=[],s=this.get("curve");if(s){if((0,em.S6)(s,function(e,r){t=s[r+1],i=e.length,t&&(n+=sW.Ll.length(e[i-2],e[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0)}),this.set("totalLength",n),0===n){this.set("tCache",[]);return}(0,em.S6)(s,function(a,l){t=s[l+1],i=a.length,t&&((e=[])[0]=r/n,r+=sW.Ll.length(a[i-2],a[i-1],t[1],t[2],t[3],t[4],t[5],t[6])||0,e[1]=r/n,o.push(e))}),this.set("tCache",o)}},t.prototype.getStartTangent=function(){var e,t=this.getSegments();if(t.length>1){var i=t[0].currentPoint,n=t[1].currentPoint,r=t[1].startTangent;e=[],r?(e.push([i[0]-r[0],i[1]-r[1]]),e.push([i[0],i[1]])):(e.push([n[0],n[1]]),e.push([i[0],i[1]]))}return e},t.prototype.getEndTangent=function(){var e,t=this.getSegments(),i=t.length;if(i>1){var n=t[i-2].currentPoint,r=t[i-1].currentPoint,o=t[i-1].endTangent;e=[],o?(e.push([r[0]-o[0],r[1]-o[1]]),e.push([r[0],r[1]])):(e.push([n[0],n[1]]),e.push([r[0],r[1]]))}return e},t}(sF);function s1(e,t,i,n,r){var o=e.length;if(o<2)return!1;for(var s=0;s=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(sF),s5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(e,t,i,n,r){var o,s=this.attr(),a=s.x,l=s.y,h=s.width,u=s.height,d=s.radius;if(d){var c=!1;return i&&(c=sG(a+d,l,a+h-d,l,r,e,t)||sG(a+h,l+d,a+h,l+u-d,r,e,t)||sG(a+h-d,l+u,a+d,l+u,r,e,t)||sG(a,l+u-d,a,l+d,r,e,t)||sq(a+h-d,l+d,d,1.5*Math.PI,2*Math.PI,r,e,t)||sq(a+h-d,l+u-d,d,0,.5*Math.PI,r,e,t)||sq(a+d,l+u-d,d,.5*Math.PI,Math.PI,r,e,t)||sq(a+d,l+d,d,Math.PI,1.5*Math.PI,r,e,t)),!c&&n&&(c=s$(this,e,t)),c}var g=r/2;return n&&i?sh(a-g,l-g,h+g,u+g,e,t):n?sh(a,l,h,u,e,t):i?sh(a-(o=r/2),l-o,h,r,e,t)||sh(a+h-o,l-o,r,u,e,t)||sh(a+o,l+u-o,h,r,e,t)||sh(a-o,l+o,r,u,e,t):void 0},t.prototype.createPath=function(e){var t=this.attr(),i=t.x,n=t.y,r=t.width,o=t.height,s=t.radius;if(e.beginPath(),0===s)e.rect(i,n,r,o);else{var a,l,h,u,d=(a=0,l=0,h=0,u=0,(0,em.kJ)(s)?1===s.length?a=l=h=u=s[0]:2===s.length?(a=h=s[0],l=u=s[1]):3===s.length?(a=s[0],l=u=s[1],h=s[2]):(a=s[0],l=s[1],h=s[2],u=s[3]):a=l=h=u=s,[a,l,h,u]),c=d[0],g=d[1],p=d[2],f=d[3];e.moveTo(i+c,n),e.lineTo(i+r-g,n),0!==g&&e.arc(i+r-g,n+g,g,-Math.PI/2,0),e.lineTo(i+r,n+o-p),0!==p&&e.arc(i+r-p,n+o-p,p,0,Math.PI/2),e.lineTo(i+f,n+o),0!==f&&e.arc(i+f,n+o-f,f,Math.PI/2,Math.PI),e.lineTo(i,n+c),0!==c&&e.arc(i+c,n+c,c,Math.PI,1.5*Math.PI),e.closePath()}},t}(sF),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(e){this._assembleFont(),e.text&&this._setText(e.text)},t.prototype._assembleFont=function(){var e=this.attrs;e.font=(0,eL.assembleFont)(e)},t.prototype._setText=function(e){var t=null;(0,em.HD)(e)&&-1!==e.indexOf("\n")&&(t=e.split("\n")),this.set("textArr",t)},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),t.startsWith("font")&&this._assembleFont(),"text"===t&&this._setText(i)},t.prototype._getSpaceingY=function(){var e=this.attrs,t=e.lineHeight,i=1*e.fontSize;return t?t-i:.14*i},t.prototype._drawTextArr=function(e,t,i){var n,r=this.attrs,o=r.textBaseline,s=r.x,a=r.y,l=1*r.fontSize,h=this._getSpaceingY(),u=(0,eL.getTextHeight)(r.text,r.fontSize,r.lineHeight);(0,em.S6)(t,function(t,r){n=a+r*(h+l)-u+l,"middle"===o&&(n+=u-l-(u-l)/2),"top"===o&&(n+=u-l),(0,em.UM)(t)||(i?e.fillText(t,s,n):e.strokeText(t,s,n))})},t.prototype._drawText=function(e,t){var i=this.attr(),n=i.x,r=i.y,o=this.get("textArr");if(o)this._drawTextArr(e,o,t);else{var s=i.text;(0,em.UM)(s)||(t?e.fillText(s,n,r):e.strokeText(s,n,r))}},t.prototype.strokeAndFill=function(e){var t=this.attrs,i=t.lineWidth,n=t.opacity,r=t.strokeOpacity,o=t.fillOpacity;this.isStroke()&&i>0&&((0,em.UM)(r)||1===r||(e.globalAlpha=n),this.stroke(e)),this.isFill()&&((0,em.UM)(o)||1===o?this.fill(e):(e.globalAlpha=o,this.fill(e),e.globalAlpha=n)),this.afterDrawPath(e)},t.prototype.fill=function(e){this._drawText(e,!0)},t.prototype.stroke=function(e){this._drawText(e,!1)},t}(sF);function s3(e,t,i){var n=e.getTotalMatrix();if(n){var r=function(e,t){if(t){var i=(0,eL.invert)(t);return(0,eL.multiplyVec2)(i,e)}return e}([t,i,1],n);return[r[0],r[1]]}return[t,i]}function s9(e,t,i){if(e.isCanvas&&e.isCanvas())return!0;if(!(0,eL.isAllowCapture)(e)||!1===e.cfg.isInView)return!1;if(e.cfg.clipShape){var n=s3(e,t,i),r=n[0],o=n[1];if(e.isClipped(r,o))return!1}var s=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=s.minX&&t<=s.maxX&&i>=s.minY&&i<=s.maxY}var s7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},t.prototype.onCanvasChange=function(e){("attr"===e||"sort"===e||"changeSize"===e)&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return eu},t.prototype.getGroupBase=function(){return sP},t.prototype.getPixelRatio=function(){var e=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return e>=1?Math.ceil(e):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return this.set("context",t),e},t.prototype.setDOMSize=function(t,i){e.prototype.setDOMSize.call(this,t,i);var n=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*t,r.height=o*i,o>1&&n.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),i=this.get("el");t.clearRect(0,0,i.width,i.height)},t.prototype.getShape=function(t,i){return this.get("quickHit")?function e(t,i,n){if(!s9(t,i,n))return null;for(var r=null,o=t.getChildren(),s=o.length,a=s-1;a>=0;a--){var l=o[a];if(l.isGroup())r=e(l,i,n);else if(s9(l,i,n)){var h=s3(l,i,n),u=h[0],d=h[1];l.isInShape(u,d)&&(r=l)}if(r)break}return r}(this,t,i):e.prototype.getShape.call(this,t,i,null)},t.prototype._getRefreshRegion=function(){var e,t,i=this.get("refreshElements"),n=this.getViewRange();return i.length&&i[0]===this?t=n:(t=function(e){if(!e.length)return null;var t=[],i=[],n=[],r=[];return(0,em.S6)(e,function(e){var o=function(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var i=e.get("cacheCanvasBBox"),n=i&&!!(i.width&&i.height),r=e.getCanvasBBox(),o=r&&!!(r.width&&r.height);n&&o?t=i&&r?{minX:Math.min(i.minX,r.minX),minY:Math.min(i.minY,r.minY),maxX:Math.max(i.maxX,r.maxX),maxY:Math.max(i.maxY,r.maxY)}:i||r:n?t=i:o&&(t=r)}return t}(e);o&&(t.push(o.minX),i.push(o.minY),n.push(o.maxX),r.push(o.maxY))}),{minX:(0,em.VV)(t),minY:(0,em.VV)(i),maxX:(0,em.Fp)(n),maxY:(0,em.Fp)(r)}}(i))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView"))&&(t=(e=t)&&n&&su(e,n)?{minX:Math.max(e.minX,n.minX),minY:Math.max(e.minY,n.minY),maxX:Math.min(e.maxX,n.maxX),maxY:Math.min(e.maxY,n.maxY)}:null),t},t.prototype.refreshElement=function(e){this.get("refreshElements").push(e)},t.prototype._clearFrame=function(){var e=this.get("drawFrame");e&&((0,em.VS)(e),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var e=this.get("drawFrame");this.get("autoDraw")&&e||this._startDraw()},t.prototype._drawAll=function(){var e=this.get("context"),t=this.get("el"),i=this.getChildren();e.clearRect(0,0,t.width,t.height),sO(e,this),sx(e,i),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var e,t,i=this.get("context"),n=this.get("refreshElements"),r=this.getChildren(),o=this._getRefreshRegion();o?(i.clearRect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.save(),i.beginPath(),i.rect(o.minX,o.minY,o.maxX-o.minX,o.maxY-o.minY),i.clip(),sO(i,this),e=this,t=e.get("refreshElements"),(0,em.S6)(t,function(t){if(t!==e)for(var i=t.cfg.parent;i&&i!==e&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent}),t[0]===e?sD(r,o):function e(t,i){for(var n=0;nt)i.insertBefore(e,r);else if(o0&&(t?"stroke"in i?this._setColor(e,"stroke",o):"strokeStyle"in i&&this._setColor(e,"stroke",s):this._setColor(e,"stroke",o||s),l&&u.setAttribute(at.strokeOpacity,l),h&&u.setAttribute(at.lineWidth,h))},t.prototype._setColor=function(e,t,i){var n=this.get("el");if(!i){n.setAttribute(at[t],"none");return}if(i=i.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(i)){var r=e.find("gradient",i);r||(r=e.addGradient(i)),n.setAttribute(at[t],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(i)){var r=e.find("pattern",i);r||(r=e.addPattern(i)),n.setAttribute(at[t],"url(#"+r+")")}else n.setAttribute(at[t],i)},t.prototype.shadow=function(e,t){var i=this.attr(),n=t||i,r=n.shadowOffsetX,o=n.shadowOffsetY,s=n.shadowBlur,a=n.shadowColor;(r||o||s||a)&&function(e,t){var i=e.cfg.el,n=e.attr(),r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=t.find("filter",r);o||(o=t.addShadow(r)),i.setAttribute("filter","url(#"+o+")")}else i.removeAttribute("filter")}(this,e)},t.prototype.transform=function(e){var t=this.attr();(e||t).matrix&&ao(this)},t.prototype.isInShape=function(e,t){return this.isPointInPath(e,t)},t.prototype.isPointInPath=function(e,t){var i=this.get("el"),n=this.get("canvas").get("el").getBoundingClientRect(),r=e+n.left,o=t+n.top,s=document.elementFromPoint(r,o);return!!(s&&s.isEqualNode(i))},t.prototype.getHitLineWidth=function(){var e=this.attrs,t=e.lineWidth,i=e.lineAppendWidth;return this.isStroke()?t+i:0},t}(eL.AbstractShape),ad=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,r:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");if((0,em.S6)(t||i,function(e,t){at[t]&&n.setAttribute(at[t],e)}),"function"==typeof i.html){var r=i.html.call(this,i);if(r instanceof Element||r instanceof HTMLDocument){for(var o=n.childNodes,s=o.length-1;s>=0;s--)n.removeChild(o[s]);n.appendChild(r)}else n.innerHTML=r}else n.innerHTML=i.html},t}(au),ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,rx:0,ry:0})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"x"===t||"y"===t?n.setAttribute("c"+t,e):at[t]&&n.setAttribute(at[t],e)})},t}(au),ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(e,t){"img"===t?i._setImage(n.img):at[t]&&r.setAttribute(at[t],e)})},t.prototype.setAttr=function(e,t){this.attrs[e]=t,"img"===e&&this._setImage(t)},t.prototype._setImage=function(e){var t=this.attr(),i=this.get("el");if((0,em.HD)(e))i.setAttribute("href",e);else if(e instanceof window.Image)t.width||(i.setAttribute("width",e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",e.height),this.attr("height",e.height)),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&(0,em.HD)(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var n=document.createElement("canvas");n.setAttribute("width",""+e.width),n.setAttribute("height",""+e.height),n.getContext("2d").putImageData(e,0,0),t.width||(i.setAttribute("width",""+e.width),this.attr("width",e.width)),t.height||(i.setAttribute("height",""+e.height),this.attr("height",e.height)),i.setAttribute("href",n.toDataURL())}},t}(au),af=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(t,r){if("startArrow"===r||"endArrow"===r){if(t){var o=(0,em.Kn)(t)?e.addArrow(i,at[r]):e.getDefaultArrow(i,at[r]);n.setAttribute(at[r],"url(#"+o+")")}else n.removeAttribute(at[r])}else at[r]&&n.setAttribute(at[r],t)})},t.prototype.getTotalLength=function(){var e=this.attr(),t=e.x1,i=e.y1,n=e.x2,r=e.y2;return sW.x1.length(t,i,n,r)},t.prototype.getPoint=function(e){var t=this.attr(),i=t.x1,n=t.y1,r=t.x2,o=t.y2;return sW.x1.pointAt(i,n,r,o,e)},t}(au),am={circle:function(e,t,i){return[["M",e,t],["m",-i,0],["a",i,i,0,1,0,2*i,0],["a",i,i,0,1,0,-(2*i),0]]},square:function(e,t,i){return[["M",e-i,t-i],["L",e+i,t-i],["L",e+i,t+i],["L",e-i,t+i],["Z"]]},diamond:function(e,t,i){return[["M",e-i,t],["L",e,t-i],["L",e+i,t],["L",e,t+i],["Z"]]},triangle:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t+n],["L",e,t-n],["L",e+i,t+n],["z"]]},triangleDown:function(e,t,i){var n=i*Math.sin(1/3*Math.PI);return[["M",e-i,t-n],["L",e+i,t-n],["L",e,t+n],["Z"]]}},av={get:function(e){return am[e]},register:function(e,t){am[e]=t},remove:function(e){delete am[e]},getAll:function(){return am}},aE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e){this.get("el").setAttribute("d",this._assembleMarker())},t.prototype._assembleMarker=function(){var e=this._getPath();return(0,em.kJ)(e)?e.map(function(e){return e.join(" ")}).join(""):e},t.prototype._getPath=function(){var e,t=this.attr(),i=t.x,n=t.y,r=t.r||t.radius,o=t.symbol||"circle";return(e=(0,em.mf)(o)?o:av.get(o))?e(i,n,r):(console.warn(e+" symbol is not exist."),null)},t.symbolsFactory=av,t}(au),a_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");(0,em.S6)(t||n,function(t,o){if("path"===o&&(0,em.kJ)(t))r.setAttribute("d",i._formatPath(t));else if("startArrow"===o||"endArrow"===o){if(t){var s=(0,em.Kn)(t)?e.addArrow(n,at[o]):e.getDefaultArrow(n,at[o]);r.setAttribute(at[o],"url(#"+s+")")}else r.removeAttribute(at[o])}else at[o]&&r.setAttribute(at[o],t)})},t.prototype._formatPath=function(e){var t=e.map(function(e){return e.join(" ")}).join("");return~t.indexOf("NaN")?"":t},t.prototype.getTotalLength=function(){var e=this.get("el");return e?e.getTotalLength():null},t.prototype.getPoint=function(e){var t=this.get("el"),i=this.getTotalLength();if(0===i)return null;var n=t?t.getPointAtLength(e*i):null;return n?{x:n.x,y:n.y}:null},t}(au),aC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t}(au),aS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{startArrow:!1,endArrow:!1})},t.prototype.onAttrChange=function(t,i,n){e.prototype.onAttrChange.call(this,t,i,n),-1!==["points"].indexOf(t)&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.createPath=function(e,t){var i=this.attr(),n=this.get("el");(0,em.S6)(t||i,function(e,t){"points"===t&&(0,em.kJ)(e)&&e.length>=2?n.setAttribute("points",e.map(function(e){return e[0]+","+e[1]}).join(" ")):at[t]&&n.setAttribute(at[t],e)})},t.prototype.getTotalLength=function(){var e=this.attr().points,t=this.get("totalLength");return(0,em.UM)(t)?(this.set("totalLength",sW.aH.length(e)),this.get("totalLength")):t},t.prototype.getPoint=function(e){var t,i,n=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),(0,em.S6)(r,function(n,r){e>=n[0]&&e<=n[1]&&(t=(e-n[0])/(n[1]-n[0]),i=r)}),sW.x1.pointAt(n[i][0],n[i][1],n[i+1][0],n[i+1][1],t)},t.prototype._setTcache=function(){var e,t=this.attr().points;if(t&&0!==t.length){var i=this.getTotalLength();if(!(i<=0)){var n=0,r=[];(0,em.S6)(t,function(o,s){t[s+1]&&((e=[])[0]=n/i,n+=sW.x1.length(o[0],o[1],t[s+1][0],t[s+1][1]),e[1]=n/i,r.push(e))}),this.set("tCache",r)}}},t.prototype.getStartTangent=function(){var e=this.attr().points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t},t.prototype.getEndTangent=function(){var e=this.attr().points,t=e.length-1,i=[];return i.push([e[t-1][0],e[t-1][1]]),i.push([e[t][0],e[t][1]]),i},t}(au),ay=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el"),o=!1,s=["x","y","width","height","radius"];(0,em.S6)(t||n,function(e,t){-1===s.indexOf(t)||o?-1===s.indexOf(t)&&at[t]&&r.setAttribute(at[t],e):(r.setAttribute("d",i._assembleRect(n)),o=!0)})},t.prototype._assembleRect=function(e){var t,i,n,r,o=e.x,s=e.y,a=e.width,l=e.height,h=e.radius;if(!h)return"M "+o+","+s+" l "+a+",0 l 0,"+l+" l"+-a+" 0 z";var u=(t=0,i=0,n=0,r=0,(0,em.kJ)(h)?1===h.length?t=i=n=r=h[0]:2===h.length?(t=n=h[0],i=r=h[1]):3===h.length?(t=h[0],i=r=h[1],n=h[2]):(t=h[0],i=h[1],n=h[2],r=h[3]):t=i=n=r=h,{r1:t,r2:i,r3:n,r4:r});return(0,em.kJ)(h)?1===h.length?u.r1=u.r2=u.r3=u.r4=h[0]:2===h.length?(u.r1=u.r3=h[0],u.r2=u.r4=h[1]):3===h.length?(u.r1=h[0],u.r2=u.r4=h[1],u.r3=h[2]):(u.r1=h[0],u.r2=h[1],u.r3=h[2],u.r4=h[3]):u.r1=u.r2=u.r3=u.r4=h,[["M "+(o+u.r1)+","+s],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(l-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-l)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},t}(au),aT=i(43631),ab={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},aA={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},aR={left:"left",start:"left",center:"middle",right:"end",end:"end"},aL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return(0,ef.ZT)(t,e),t.prototype.getDefaultAttrs=function(){var t=e.prototype.getDefaultAttrs.call(this);return(0,ef.pi)((0,ef.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.createPath=function(e,t){var i=this,n=this.attr(),r=this.get("el");this._setFont(),(0,em.S6)(t||n,function(e,t){"text"===t?i._setText(""+e):"matrix"===t&&e?ao(i):at[t]&&r.setAttribute(at[t],e)}),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},t.prototype._setFont=function(){var e=this.get("el"),t=this.attr(),i=t.textBaseline,n=t.textAlign,r=(0,aT.qY)();r&&"firefox"===r.name?e.setAttribute("dominant-baseline",aA[i]||"alphabetic"):e.setAttribute("alignment-baseline",ab[i]||"baseline"),e.setAttribute("text-anchor",aR[n]||"left")},t.prototype._setText=function(e){var t=this.get("el"),i=this.attr(),n=i.x,r=i.textBaseline,o=void 0===r?"bottom":r;if(e){if(~e.indexOf("\n")){var s=e.split("\n"),a=s.length-1,l="";(0,em.S6)(s,function(e,t){0===t?"alphabetic"===o?l+=''+e+"":"top"===o?l+=''+e+"":"middle"===o?l+=''+e+"":"bottom"===o?l+=''+e+"":"hanging"===o&&(l+=''+e+""):l+=''+e+""}),t.innerHTML=l}else t.innerHTML=e}else t.innerHTML=""},t}(au),aN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,aI=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,aw=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function aO(e){var t=e.match(aw);if(!t)return"";var i="";return t.sort(function(e,t){return e=e.split(":"),t=t.split(":"),Number(e[0])-Number(t[0])}),(0,em.S6)(t,function(e){i+=''}),i}var ax=function(){function e(e){this.cfg={};var t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v=null,E=(0,em.EL)("gradient_");return"l"===e.toLowerCase()[0]?(t=v=ai("linearGradient"),r=aN.exec(e),o=(0,em.wQ)((0,em.c$)(parseFloat(r[1])),2*Math.PI),s=r[2],o>=0&&o<.5*Math.PI?(i={x:0,y:0},n={x:1,y:1}):.5*Math.PI<=o&&o';t.innerHTML=i},e}(),aP=function(){function e(e,t){this.cfg={};var i=ai("marker"),n=(0,em.EL)("marker_");i.setAttribute("id",n);var r=ai("path");r.setAttribute("stroke",e.stroke||"none"),r.setAttribute("fill",e.fill||"none"),i.appendChild(r),i.setAttribute("overflow","visible"),i.setAttribute("orient","auto-start-reverse"),this.el=i,this.child=r,this.id=n;var o=e["marker-start"===t?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",!0===o?this._setDefaultPath(t,r):(this.cfg=o,this._setMarker(e.lineWidth,r)),this}return e.prototype.match=function(){return!1},e.prototype._setDefaultPath=function(e,t){var i=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),i.setAttribute("refX",""+10*Math.cos(Math.PI/6)),i.setAttribute("refY","5")},e.prototype._setMarker=function(e,t){var i=this.el,n=this.cfg.path,r=this.cfg.d;(0,em.kJ)(n)&&(n=n.map(function(e){return e.join(" ")}).join("")),t.setAttribute("d",n),i.appendChild(t),r&&i.setAttribute("refX",""+r/e)},e.prototype.update=function(e){var t=this.child;t.attr?t.attr("fill",e):t.setAttribute("fill",e)},e}(),aF=function(){function e(e){this.type="clip",this.cfg={};var t=ai("clipPath");this.el=t,this.id=(0,em.EL)("clip_"),t.id=this.id;var i=e.cfg.el;return t.appendChild(i),this.cfg=e,this}return e.prototype.match=function(){return!1},e.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},e}(),aB=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,aU=function(){function e(e){this.cfg={};var t=ai("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var i=ai("image");t.appendChild(i);var n=(0,em.EL)("pattern_");t.id=n,this.el=t,this.id=n,this.cfg=e;var r=aB.exec(e)[2];i.setAttribute("href",r);var o=new Image;function s(){t.setAttribute("width",""+o.width),t.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?s():(o.onload=s,o.src=o.src),this}return e.prototype.match=function(e,t){return this.cfg===t},e}(),aH=function(){function e(e){var t=ai("defs"),i=(0,em.EL)("defs_");t.id=i,e.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=e}return e.prototype.find=function(e,t){for(var i=this.children,n=null,r=0;r0&&(h[0][0]="L")),o=o.concat(h)}),o.push(["Z"])}return o}(c,a,i,n,r))}return o.path=h,o}function a2(e){var t=e.start,i=e.end;return[[t.x,i.y],[i.x,t.y]]}oK("area",{defaultShapeType:"area",getDefaultPoints:function(e){var t=e.x,i=e.y0;return((0,em.kJ)(e.y)?e.y:[i,e.y]).map(function(e){return{x:t,y:e}})}}),o$("area","area",{draw:function(e,t){var i=a1(e,!1,!1,this);return t.addShape({type:"path",attrs:i,name:"area"})},getMarker:function(e){return{symbol:function(e,t,i){return void 0===i&&(i=5.5),[["M",e-i,t-4],["L",e+i,t-4],["L",e+i,t+4],["L",e-i,t+4],["Z"]]},style:{r:5,fill:e.color}}}});var a4=function(e){function t(t){var i=e.call(this,t)||this;i.type="area",i.shapeType="area",i.generatePoints=!0,i.startOnZero=!0;var n=t.startOnZero,r=t.sortable,o=t.showSinglePoint;return i.startOnZero=void 0===n||n,i.sortable=void 0!==r&&r,i.showSinglePoint=void 0!==o&&o,i}return(0,ef.ZT)(t,e),t.prototype.getPointsAndData=function(e){for(var t=[],i=[],n=0,r=e.length;nn&&(n=r),r=t[0]}));for(var d=this.scales[h],c=0,g=e;ct&&(i=i?t/(1+n/i):0,n=t-i),r+o>t&&(r=r?t/(1+o/r):0,o=t-r),[i||0,n||0,r||0,o||0]}function a8(e,t,i){var n=[];if(i.isRect){var r=i.isTransposed?{x:i.start.x,y:t[0].y}:{x:t[0].x,y:i.start.y},o=i.isTransposed?{x:i.end.x,y:t[2].y}:{x:t[3].x,y:i.end.y},s=(0,em.U2)(e,["background","style","radius"]);if(s){var a=a7(s,Math.min(i.isTransposed?Math.abs(t[0].y-t[2].y):t[2].x-t[1].x,i.isTransposed?i.getWidth():i.getHeight())),l=a[0],h=a[1],u=a[2],d=a[3];n.push(["M",r.x,o.y+l]),0!==l&&n.push(["A",l,l,0,0,1,r.x+l,o.y]),n.push(["L",o.x-h,o.y]),0!==h&&n.push(["A",h,h,0,0,1,o.x,o.y+h]),n.push(["L",o.x,r.y-u]),0!==u&&n.push(["A",u,u,0,0,1,o.x-u,r.y]),n.push(["L",r.x+d,r.y]),0!==d&&n.push(["A",d,d,0,0,1,r.x,r.y-d])}else n.push(["M",r.x,r.y]),n.push(["L",o.x,r.y]),n.push(["L",o.x,o.y]),n.push(["L",r.x,o.y]),n.push(["L",r.x,r.y]);n.push(["z"])}if(i.isPolar){var c=i.getCenter(),g=n6(e,i),p=g.startAngle,f=g.endAngle;if("theta"===i.type||i.isTransposed){var m=function(e){return Math.pow(e,2)},l=Math.sqrt(m(c.x-t[0].x)+m(c.y-t[0].y)),h=Math.sqrt(m(c.x-t[2].x)+m(c.y-t[2].y));n=n4(c.x,c.y,l,i.startAngle,i.endAngle,h)}else n=n4(c.x,c.y,i.getRadius(),p,f)}return n}function le(e,t,i){var n=[];return(0,em.UM)(t)?i?n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):n.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",t[1].x,t[1].y],["L",t[0].x,t[0].y],["Z"]),n}function lt(e){var t=e.theme,i=e.coordinate,n=e.getXScale(),r=n.values,o=e.beforeMappingData,s=r.length,a=rt(e.coordinate),l=e.intervalPadding,h=e.dodgePadding,u=e.maxColumnWidth||t.maxColumnWidth,d=e.minColumnWidth||t.minColumnWidth,c=e.columnWidthRatio||t.columnWidthRatio,g=e.multiplePieWidthRatio||t.multiplePieWidthRatio,p=e.roseWidthRatio||t.roseWidthRatio;if(n.isLinear&&r.length>1){r.sort();var f=function(e,t){var i=e.length,n=e;(0,em.HD)(n[0])&&(n=e.map(function(e){return t.translate(e)}));for(var r=n[1]-n[0],o=2;os&&(r=s)}return r}(r,n);s=(n.max-n.min)/f,r.length>s&&(s=r.length)}var m=n.range,v=1/s,E=1;if(i.isPolar?E=i.isTransposed&&s>1?g:p:(n.isLinear&&(v*=m[1]-m[0]),E=c),!(0,em.UM)(l)&&l>=0?v=(1-(s-1)*(l/a))/s:v*=E,e.getAdjust("dodge")){var _=function(e,t){if(t){var i=(0,em.xH)(e);return(0,em.I)(i,t).length}return e.length}(o,e.getAdjust("dodge").dodgeBy);!(0,em.UM)(h)&&h>=0?v=(v-h/a*(_-1))/_:(!(0,em.UM)(l)&&l>=0&&(v*=E),v/=_),v=v>=0?v:0}if(!(0,em.UM)(u)&&u>=0){var C=u/a;v>C&&(v=C)}if(!(0,em.UM)(d)&&d>=0){var S=d/a;vi[1].x?(c=i[0],h=i[1],u=i[2],d=i[3],g=(a=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],m=a[1],f=a[2],p=a[3]):(p=(l=a7(r,Math.min(c.x-h.x,h.y-u.y)))[0],f=l[1],m=l[2],g=l[3])),(v=[]).push(["M",u.x,u.y+g]),0!==g&&v.push(["A",g,g,0,0,1,u.x+g,u.y]),v.push(["L",d.x-p,d.y]),0!==p&&v.push(["A",p,p,0,0,1,d.x,d.y+p]),v.push(["L",c.x,c.y-f]),0!==f&&v.push(["A",f,f,0,0,1,c.x-f,c.y]),v.push(["L",h.x+m,h.y]),0!==m&&v.push(["A",m,m,0,0,1,h.x,h.y-m]),v.push(["L",u.x,u.y+g]),v.push(["z"]),L=v):L=this.parsePath((E=e.points,_=N.lineCap,S=(C=this.coordinate).getWidth(),y=C.getHeight(),T="rect"===C.type,b=[],A=(E[2].x-E[1].x)/2,R=C.isTransposed?A*y/S:A*S/y,"round"===_?(T?(b.push(["M",E[0].x,E[0].y+R]),b.push(["L",E[1].x,E[1].y-R]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y-R]),b.push(["L",E[3].x,E[3].y+R]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y+R])):(b.push(["M",E[0].x,E[0].y]),b.push(["L",E[1].x,E[1].y]),b.push(["A",A,A,0,0,1,E[2].x,E[2].y]),b.push(["L",E[3].x,E[3].y]),b.push(["A",A,A,0,0,1,E[0].x,E[0].y])),b.push(["z"])):b=a9(E),b));var D=I.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},N),{path:L}),name:"interval"});return w?I:D},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,fill:t}}:{symbol:"square",style:{r:4,fill:t}}}});var li=function(e){function t(t){var i=e.call(this,t)||this;i.type="interval",i.shapeType="interval",i.generatePoints=!0;var n=t.background;return i.background=n,i}return(0,ef.ZT)(t,e),t.prototype.createShapePointsCfg=function(t){var i,n=e.prototype.createShapePointsCfg.call(this,t),r=this.getAttribute("size");return r?i=this.getAttributeValues(r,t)[0]/rt(this.coordinate):(this.defaultSize||(this.defaultSize=lt(this)),i=this.defaultSize),n.size=i,n},t.prototype.adjustScale=function(){e.prototype.adjustScale.call(this);var t,i=this.getYScale();if("theta"===this.coordinate.type)i.change({nice:!1,min:0,max:(t=i.values.filter(function(e){return!(0,em.UM)(e)&&!isNaN(e)}),Math.max.apply(Math,(0,ef.ev)((0,ef.ev)([],t,!1),[(0,em.UM)(i.max)?-1/0:i.max],!1)))});else{var n=this.scaleDefs,r=i.field,o=i.min,s=i.max;"time"!==i.type&&(o>0&&!(0,em.U2)(n,[r,"min"])&&i.change({min:0}),s<=0&&!(0,em.U2)(n,[r,"max"])&&i.change({max:0}))}},t.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},t}(oJ),ln=function(e){function t(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable;return i.sortable=void 0!==n&&n,i}return(0,ef.ZT)(t,e),t}(a0),lr=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function lo(e,t,i,n,r){var o=aX(t,r,!r,"r"),s=e.parsePoints(t.points),a=s[0];if(t.isStack)a=s[1];else if(s.length>1){for(var l=i.addGroup(),h=0;h2?"weight":"normal";if(e.isInCircle){var s,a,l,h,u,d,c,g={x:0,y:1};return"normal"===o?(s=r[0],a=ld(r[1],g),(l=[["M",s.x,s.y]]).push(a),i=l):(n.fill=n.stroke,u=ld((h=r)[1],g),d=ld(h[3],g),(c=[["M",h[0].x,h[0].y]]).push(d),c.push(["L",h[3].x,h[3].y]),c.push(["L",h[2].x,h[2].y]),c.push(u),c.push(["L",h[1].x,h[1].y]),c.push(["L",h[0].x,h[0].y]),c.push(["Z"]),i=c),i=this.parsePath(i),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})}if("normal"===o)return i=n5(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})});var p=lu(r[1],r[3]),f=lu(r[2],r[0]);return i=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],p,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],f,["Z"]],i=this.parsePath(i),n.fill=n.stroke,t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("edge","smooth",{draw:function(e,t){var i,n,r,o=aX(e,!0,!1,"lineWidth"),s=e.points,a=this.parsePath((n=lu(i=s[0],s[1]),(r=[["M",i.x,i.y]]).push(n),r));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:a})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var lc=1/3;o$("edge","vhv",{draw:function(e,t){var i,n,r,o,s=aX(e,!0,!1,"lineWidth"),a=e.points,l=this.parsePath((i=a[0],n=a[1],(r=[]).push({x:i.x,y:i.y*(1-lc)+n.y*lc}),r.push({x:n.x,y:i.y*(1-lc)+n.y*lc}),r.push(n),o=[["M",i.x,i.y]],(0,em.S6)(r,function(e){o.push(["L",e.x,e.y])}),o));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},s),{path:l})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),o$("interval","funnel",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","hollow-rect",{draw:function(e,t){var i=aX(e,!0,!1),n=t,r=null==e?void 0:e.background;if(r){n=t.addGroup();var o=aj(e),s=a8(e,this.parsePoints(e.points),this.coordinate);n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},o),{path:s}),zIndex:-1,name:oF})}var a=this.parsePath(a9(e.points)),l=n.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:a}),name:"interval"});return r?n:l},getMarker:function(e){var t=e.color;return e.isInPolar?{symbol:"circle",style:{r:4.5,stroke:t,fill:null}}:{symbol:"square",style:{r:4,stroke:t,fill:null}}}}),o$("interval","line",{getPoints:function(e){var t,i,n;return t=e.x,i=e.y,n=e.y0,(0,em.kJ)(i)?i.map(function(e,i){return{x:(0,em.kJ)(t)?t[i]:t,y:e}}):[{x:t,y:n},{x:t,y:i}]},draw:function(e,t){var i=aX(e,!0,!1,"lineWidth"),n=n7((0,ef.pi)({},i),["fill"]),r=this.parsePath(a9(e.points,!1));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e,t-i],["L",e,t+i]]},style:{r:5,stroke:e.color}}}}),o$("interval","pyramid",{getPoints:function(e){return e.size=2*e.size,a3(e)},draw:function(e,t){var i=aX(e,!1,!0),n=this.parsePath(le(e.points,e.nextPoints,!0));return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},i),{path:n}),name:"interval"})},getMarker:function(e){return{symbol:"square",style:{r:4,fill:e.color}}}}),o$("interval","tick",{getPoints:function(e){var t,i,n,r,o,s,a,l;return n=e.x,r=e.y,o=e.y0,s=e.size,(0,em.kJ)(r)?(t=r[0],i=r[1]):(t=o,i=r),a=n+s/2,l=n-s/2,[{x:n,y:t},{x:n,y:i},{x:l,y:t},{x:a,y:t},{x:l,y:i},{x:a,y:i}]},draw:function(e,t){var i,n=aX(e,!0,!1),r=this.parsePath([["M",(i=e.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y]]);return t.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:r}),name:"interval"})},getMarker:function(e){return{symbol:function(e,t,i){return[["M",e-i/2,t-i],["L",e+i/2,t-i],["M",e,t-i],["L",e,t+i],["M",e-i/2,t+i],["L",e+i/2,t+i]]},style:{r:5,stroke:e.color}}}});var lg=function(e,t,i){var n,r=e.x,o=e.y,s=t.x,a=t.y;switch(i){case"hv":n=[{x:s,y:o}];break;case"vh":n=[{x:r,y:a}];break;case"hvh":var l=(s+r)/2;n=[{x:l,y:o},{x:l,y:a}];break;case"vhv":var h=(o+a)/2;n=[{x:r,y:h},{x:s,y:h}]}return n};function lp(e){var t=(0,em.kJ)(e)?e:[e],i=t[0],n=t[t.length-1],r=t.length>1?t[1]:i,o=t.length>3?t[3]:n,s=t.length>2?t[2]:r;return{min:i,max:n,min1:r,max1:o,median:s}}function lf(e,t,i){var n,r=i/2;if((0,em.kJ)(t)){var o=lp(t),s=o.min,a=o.max,l=o.median,h=o.min1,u=o.max1,d=e-r,c=e+r;n=[[d,a],[c,a],[e,a],[e,u],[d,h],[d,u],[c,u],[c,h],[e,h],[e,s],[d,s],[c,s],[d,l],[c,l]]}else{t=(0,em.UM)(t)?.5:t;var g=lp(e),s=g.min,a=g.max,l=g.median,h=g.min1,u=g.max1,p=t-r,f=t+r;n=[[s,p],[s,f],[s,t],[h,t],[h,p],[h,f],[u,f],[u,p],[u,t],[a,t],[a,p],[a,f],[l,p],[l,f]]}return n.map(function(e){return{x:e[0],y:e[1]}})}function lm(e,t,i){var n,r=function(e,t,i){if((0,em.HD)(e))return e.padEnd(t,i);if((0,em.kJ)(e)){var n=e.length;if(n1){for(var o=t.addGroup(),s=0;s0?"left":"right");break;case"left":e.x=a,e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign",g>0?"left":"right");break;case"bottom":h&&(e.x=(o+a)/2),e.y=s,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top");break;case"middle":h&&(e.x=(o+a)/2),e.y=(r+s)/2,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline","middle");break;case"top":h&&(e.x=(o+a)/2),e.y=r,e.textAlign=(0,em.U2)(e,"textAlign","center"),e.textBaseline=(0,em.U2)(e,"textBaseline",g>0?"bottom":"top")}},t}(o3),lE=Math.PI/2,l_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelOffset=function(e){var t=this.getCoordinate(),i=0;if((0,em.hj)(e))i=e;else if((0,em.HD)(e)&&-1!==e.indexOf("%")){var n=t.getRadius();t.innerRadius>0&&(n*=1-t.innerRadius),i=.01*parseFloat(e)*n}return i},t.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,em.UI)(i,function(e){if(e&&n){var t=n.scale((0,em.U2)(e.data,n.field));return(0,ef.pi)((0,ef.pi)({},e),{percent:t})}return e})},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate();if(e.labelEmit)t=e.angle<=Math.PI/2&&e.angle>=-Math.PI/2?"left":"right";else if(i.isTransposed){var n=i.getCenter(),r=e.offset;t=1>Math.abs(e.x-n.x)?"center":e.angle>Math.PI||e.angle<=0?r>0?"left":"right":r>0?"right":"left"}else t="center";return t},t.prototype.getLabelPoint=function(e,t,i){var n,r=1,o=e.content[i];this.isToMiddle(t)?n=this.getMiddlePoint(t.points):(1===e.content.length&&0===i?i=1:0===i&&(r=-1),n=this.getArcPoint(t,i));var s=e.offset*r,a=this.getPointAngle(n),l=e.labelEmit,h=this.getCirclePoint(a,s,n,l);return 0===h.r?h.content="":(h.content=o,h.angle=a,h.color=t.color),h.rotate=e.autoRotate?this.getLabelRotate(a,s,l):e.rotate,h.start={x:n.x,y:n.y},h},t.prototype.getArcPoint=function(e,t){return(void 0===t&&(t=0),(0,em.kJ)(e.x)||(0,em.kJ)(e.y))?{x:(0,em.kJ)(e.x)?e.x[t]:e.x,y:(0,em.kJ)(e.y)?e.y[t]:e.y}:{x:e.x,y:e.y}},t.prototype.getPointAngle=function(e){return rr(this.getCoordinate(),e)},t.prototype.getCirclePoint=function(e,t,i,n){var r=this.getCoordinate(),o=r.getCenter(),s=ri(r,i);if(0===s)return(0,ef.pi)((0,ef.pi)({},o),{r:s});var a=e;return r.isTransposed&&s>t&&!n?a=e+2*Math.asin(t/(2*s)):s+=t,{x:o.x+s*Math.cos(a),y:o.y+s*Math.sin(a),r:s}},t.prototype.getLabelRotate=function(e,t,i){var n=e+lE;return i&&(n-=lE),n&&(n>lE?n-=Math.PI:n<-lE&&(n+=Math.PI)),n},t.prototype.getMiddlePoint=function(e){var t=this.getCoordinate(),i=e.length,n={x:0,y:0};return(0,em.S6)(e,function(e){n.x+=e.x,n.y+=e.y}),n.x/=i,n.y/=i,n=t.convert(n)},t.prototype.isToMiddle=function(e){return e.x.length>2},t}(o3),lC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return(0,ef.ZT)(t,e),t.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,em.b$)({},n,(0,em.U2)(this.geometry.theme,"pieLabels",{}))},t.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},t.prototype.getLabelRotate=function(e,t,i){var n;return t<0&&((n=e)>Math.PI/2&&(n-=Math.PI),n<-Math.PI/2&&(n+=Math.PI)),n},t.prototype.getLabelAlign=function(e){var t,i=this.getCoordinate().getCenter();return t=e.angle<=Math.PI/2&&e.x>=i.x?"left":"right",e.offset<=0&&(t="right"===t?"left":"right"),t},t.prototype.getArcPoint=function(e){return e},t.prototype.getPointAngle=function(e){var t,i=this.getCoordinate(),n={x:(0,em.kJ)(e.x)?e.x[0]:e.x,y:e.y[0]},r={x:(0,em.kJ)(e.x)?e.x[1]:e.x,y:e.y[1]},o=rr(i,n);if(e.points&&e.points[0].y===e.points[1].y)t=o;else{var s=rr(i,r);o>=s&&(s+=2*Math.PI),t=o+(s-o)/2}return t},t.prototype.getCirclePoint=function(e,t){var i=this.getCoordinate(),n=i.getCenter(),r=i.getRadius()+t;return(0,ef.pi)((0,ef.pi)({},n2(n.x,n.y,r,e)),{angle:e,r:r})},t}(l_);function lS(e,t,i){var n,r=e.filter(function(e){return!e.invisible});r.sort(function(e,t){return e.y-t.y});var o=!0,s=i.minY,a=Math.abs(s-i.maxY),l=0,h=Number.MIN_VALUE,u=r.map(function(e){return e.y>l&&(l=e.y),e.ya&&(a=l-s);o;)for(u.forEach(function(e){var t=(Math.min.apply(h,e.targets)+Math.max.apply(h,e.targets))/2;e.pos=Math.min(Math.max(h,t-e.size/2),a-e.size),e.pos=Math.max(0,e.pos)}),o=!1,n=u.length;n--;)if(n>0){var d=u[n-1],c=u[n];d.pos+d.size>c.pos&&(d.size+=c.size,d.targets=d.targets.concat(c.targets),d.pos+d.size>a&&(d.pos=a-d.size),u.splice(n,1),o=!0)}n=0,u.forEach(function(e){var i=s+t/2;e.targets.forEach(function(){r[n].y=e.pos+i,i+=t,n++})})}var ly=function(){function e(e){void 0===e&&(e={}),this.bitmap={};var t=e.xGap,i=e.yGap;this.xGap=void 0===t?1:t,this.yGap=void 0===i?8:i}return e.prototype.hasGap=function(e){for(var t=!0,i=this.bitmap,n=Math.round(e.minX),r=Math.round(e.maxX),o=Math.round(e.minY),s=Math.round(e.maxY),a=n;a<=r;a+=1){if(!i[a]){i[a]={};continue}if(a===n||a===r){for(var l=o;l<=s;l++)if(i[a][l]){t=!1;break}}else if(i[a][o]||i[a][s]){t=!1;break}}return t},e.prototype.fillGap=function(e){for(var t=this.bitmap,i=Math.round(e.minX),n=Math.round(e.maxX),r=Math.round(e.minY),o=Math.round(e.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var a=r;a<=o;a+=this.yGap)t[s][a]=!0;t[s][o]=!0}if(1!==this.yGap)for(var s=r;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(1!==this.xGap)for(var s=i;s<=n;s+=1)t[s][r]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}(),lT=io.AK;function lb(e){if(e.length>4)return[];var t=function(e,t){return[t.x-e.x,t.y-e.y]};return[t(e[0],e[1]),t(e[1],e[2])]}function lA(e,t,i){void 0===t&&(t=0),void 0===i&&(i={x:0,y:0});var n=e.x,r=e.y;return{x:(n-i.x)*Math.cos(-t)+(r-i.y)*Math.sin(-t)+i.x,y:(i.x-n)*Math.sin(-t)+(r-i.y)*Math.cos(-t)+i.y}}function lR(e){var t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],i=e.rotation;return i?[lA(t[0],i,t[0]),lA(t[1],i,t[0]),lA(t[2],i,t[0]),lA(t[3],i,t[0])]:t}function lL(e,t){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach(function(e){i.push(lT([e.x,e.y],t))}),{min:Math.min.apply(Math,i),max:Math.max.apply(Math,i)}}function lN(e){return(0,em.hj)(e)&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0}function lI(e){return Object.values(e).every(lN)}var lw={"#5B8FF9":!0},lO=function(e){var t=eQ.toRGB(e).toUpperCase();if(lw[t])return lw[t];var i=eQ.rgb2arr(t);return(299*i[0]+587*i[1]+114*i[2])/1e3<128};function lx(e,t,i){return e.some(function(e){return i(e,t)})}function lD(e,t){return lx(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}function lM(e,t,i){return e.some(function(e){return i(e,t)})}function lk(e,t){return lM(e,t,function(e,t){var i,n,r=o2(e),o=o2(t);return i=r.getCanvasBBox(),n=o.getCanvasBBox(),Math.max(0,Math.min(i.x+i.width+2,n.x+n.width+2)-Math.max(i.x-2,n.x-2))*Math.max(0,Math.min(i.y+i.height+2,n.y+n.height+2)-Math.max(i.y-2,n.y-2))>0})}var lP=(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(Y||(Y=document.createElement("canvas").getContext("2d")),Y);return a.font=[o,s,r,i+"px",n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")}),lF=function(e,t,i){var n,r,o,s=lP("...",i);n=(0,em.HD)(e)?e:(0,em.BB)(e);var a=t,l=[];if(lP(e,i)<=t)return e;for(;!((o=lP(r=n.substr(0,16),i))+s>a)||!(o>a);)if(l.push(r),a-=o,!(n=n.substr(16)))return l.join("");for(;!((o=lP(r=n.substr(0,1),i))+s>a);)if(l.push(r),a-=o,!(n=n.substr(1)))return l.join("");return l.join("")+"..."};function lB(e,t,i,n,r){var o,s,a,l,h,u,d=i.start,c=i.end,g=i.getWidth(),p=i.getHeight();"y"===r?(h=d.x+g/2,u=n.yd.x?n.x:d.x,u=d.y+p/2):"xy"===r&&(i.isPolar?(h=i.getCenter().x,u=i.getCenter().y):(h=(d.x+c.x)/2,u=(d.y+c.y)/2));var f=(a=(o=[h,u])[0],l=o[1],e.applyToMatrix([a,l,1]),"x"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,1],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,1],["t",a,l]])):"y"===r?(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",1,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",1,100],["t",a,l]])):"xy"===r&&(e.setMatrix(it.vs(e.getMatrix(),[["t",-a,-l],["s",.01,.01],["t",a,l]])),s=it.vs(e.getMatrix(),[["t",-a,-l],["s",100,100],["t",a,l]])),s);e.animate({matrix:f},t)}function lU(e,t){var i,n=sC(e,t),r=n.startAngle,o=n.endAngle;return!(0,em.vQ)(r,-(.5*Math.PI))&&r<-(.5*Math.PI)&&(r+=2*Math.PI),!(0,em.vQ)(o,-(.5*Math.PI))&&o<-(.5*Math.PI)&&(o+=2*Math.PI),0===t[5]&&(r=(i=[o,r])[0],o=i[1]),(0,em.vQ)(r,1.5*Math.PI)&&(r=-.5*Math.PI),(0,em.vQ)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function lH(e){var t;return"M"===e[0]||"L"===e[0]?t=[e[1],e[2]]:("a"===e[0]||"A"===e[0]||"C"===e[0])&&(t=[e[e.length-2],e[e.length-1]]),t}function lV(e){var t,i,n,r=e.filter(function(e){return"A"===e[0]||"a"===e[0]});if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],s=r.length>1?r[1]:r[0],a=e.indexOf(o),l=e.indexOf(s),h=lH(e[a-1]),u=lH(e[l-1]),d=lU(h,o),c=d.startAngle,g=d.endAngle,p=lU(u,s),f=p.startAngle,m=p.endAngle;(0,em.vQ)(c,f)&&(0,em.vQ)(g,m)?(i=c,n=g):(i=Math.min(c,f),n=Math.max(g,m));var v=o[1],E=r[r.length-1][1];return v=0;o--)for(var s=this.getFacetsByLevel(e,o),a=0;a=i){var r=n.parsePosition([e[s],e[o.field]]);r&&u.push(r)}if(e[s]===h)return!1}),u},t.prototype.parsePercentPosition=function(e){var t=parseFloat(e[0])/100,i=parseFloat(e[1])/100,n=this.view.getCoordinate(),r=n.start,o=n.end,s={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)};return{x:n.getWidth()*t+s.x,y:n.getHeight()*i+s.y}},t.prototype.getCoordinateBBox=function(){var e=this.view.getCoordinate(),t=e.start,i=e.end,n=e.getWidth(),r=e.getHeight(),o={x:Math.min(t.x,i.x),y:Math.min(t.y,i.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+n,maxY:o.y+r,width:n,height:r}},t.prototype.getAnnotationCfg=function(e,t,i){var n=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),s={};if((0,em.UM)(t))return null;if("arc"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]),u=this.parsePosition(a),d=this.parsePosition(l),c=rr(r,u),g=rr(r,d);c>g&&(g=2*Math.PI+g),s=(0,ef.pi)((0,ef.pi)({},h),{center:r.getCenter(),radius:ri(r,u),startAngle:c,endAngle:g})}else if("image"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),src:t.src})}else if("line"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l),text:(0,em.U2)(t,"text",null)})}else if("region"===e){var a=t.start,l=t.end,h=(0,ef._T)(t,["start","end"]);s=(0,ef.pi)((0,ef.pi)({},h),{start:this.parsePosition(a),end:this.parsePosition(l)})}else if("text"===e){var p=this.view.getData(),f=t.position,m=t.content,h=(0,ef._T)(t,["position","content"]),v=m;(0,em.mf)(m)&&(v=m(p)),s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},this.parsePosition(f)),h),{content:v})}else if("dataMarker"===e){var f=t.position,E=t.point,_=t.line,C=t.text,S=t.autoAdjust,y=t.direction,h=(0,ef._T)(t,["position","point","line","text","autoAdjust","direction"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},h),this.parsePosition(f)),{coordinateBBox:this.getCoordinateBBox(),point:E,line:_,text:C,autoAdjust:S,direction:y})}else if("dataRegion"===e){var a=t.start,l=t.end,T=t.region,C=t.text,b=t.lineLength,h=(0,ef._T)(t,["start","end","region","text","lineLength"]);s=(0,ef.pi)((0,ef.pi)({},h),{points:this.getRegionPoints(a,l),region:T,text:C,lineLength:b})}else if("regionFilter"===e){var a=t.start,l=t.end,A=t.apply,R=t.color,h=(0,ef._T)(t,["start","end","apply","color"]),L=this.view.geometries,N=[],I=function(e){e&&(e.isGroup()?e.getChildren().forEach(function(e){return I(e)}):N.push(e))};(0,em.S6)(L,function(e){A?(0,em.FX)(A,e.type)&&(0,em.S6)(e.elements,function(e){I(e.shape)}):(0,em.S6)(e.elements,function(e){I(e.shape)})}),s=(0,ef.pi)((0,ef.pi)({},h),{color:R,shapes:N,start:this.parsePosition(a),end:this.parsePosition(l)})}else if("shape"===e){var w=t.render,O=(0,ef._T)(t,["render"]);s=(0,ef.pi)((0,ef.pi)({},O),{render:function(e){if((0,em.mf)(t.render))return w(e,n.view,{parsePosition:n.parsePosition.bind(n)})}})}else if("html"===e){var x=t.html,f=t.position,O=(0,ef._T)(t,["html","position"]);s=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},O),this.parsePosition(f)),{parent:o.get("el").parentNode,html:function(e){return(0,em.mf)(x)?x(e,n.view):x}})}var D=(0,em.b$)({},i,(0,ef.pi)((0,ef.pi)({},s),{top:t.top,style:t.style,offsetX:t.offsetX,offsetY:t.offsetY}));return"html"!==e&&(D.container=this.getComponentContainer(D)),D.animate=this.view.getOptions().animate&&D.animate&&(0,em.U2)(t,"animate",D.animate),D.animateOption=(0,em.b$)({},ox,D.animateOption,t.animateOption),D},t.prototype.isTop=function(e){return(0,em.U2)(e,"top",!0)},t.prototype.getComponentContainer=function(e){return this.isTop(e)?this.foregroundContainer:this.backgroundContainer},t.prototype.getAnnotationTheme=function(e){return(0,em.U2)(this.view.getTheme(),["components","annotation",e],{})},t.prototype.updateOrCreate=function(e){var t=this.cache.get(this.getCacheKey(e));if(t){var i=e.type,n=this.getAnnotationTheme(i),r=this.getAnnotationCfg(i,e,n);n7(r,["container"]),t.component.update(r),(0,em.q9)(lQ,e.type)&&t.component.render()}else(t=this.createAnnotation(e))&&(t.component.init(),(0,em.q9)(lQ,e.type)&&t.component.render());return t},t.prototype.syncCache=function(e){var t=this,i=new Map(this.cache);return e.forEach(function(e,t){i.set(t,e)}),i.forEach(function(e,n){(0,em.sE)(t.option,function(e){return n===t.getCacheKey(e)})||(e.component.destroy(),i.delete(n))}),i},t.prototype.getCacheKey=function(e){return e},t}(oL);function l1(e,t){var i=(0,em.b$)({},(0,em.U2)(e,["components","axis","common"]),(0,em.U2)(e,["components","axis",t]));return(0,em.U2)(i,["grid"],{})}function l2(e,t,i,n){var r=[],o=t.getTicks();return e.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce(function(t,o,s){var a=o.value;if(n)r.push({points:[e.convert("y"===i?{x:0,y:a}:{x:a,y:0}),e.convert("y"===i?{x:1,y:a}:{x:a,y:1})]});else if(s){var l=(t.value+a)/2;r.push({points:[e.convert("y"===i?{x:0,y:l}:{x:l,y:0}),e.convert("y"===i?{x:1,y:l}:{x:l,y:1})]})}return o},o[0]),r}function l4(e,t,i,n,r){var o=t.values.length,s=[],a=i.getTicks();return a.reduce(function(t,i){var a=t?t.value:i.value,l=i.value,h=(a+l)/2;return"x"===r?s.push({points:[e.convert({x:n?l:h,y:0}),e.convert({x:n?l:h,y:1})]}):s.push({points:(0,em.UI)(Array(o+1),function(t,i){return e.convert({x:i/o,y:n?l:h})})}),i},a[0]),s}function l5(e,t){var i=(0,em.U2)(t,"grid");if(null===i)return!1;var n=(0,em.U2)(e,"grid");return!(void 0===i&&null===n)}var l6=["container"],l3=(0,ef.pi)((0,ef.pi)({},ox),{appear:null}),l9=function(e){function t(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(O.BG).addGroup(),i.gridForeContainer=i.view.getLayer(O.FORE).addGroup(),i.axisContainer=i.view.getLayer(O.BG).addGroup(),i.axisForeContainer=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this,t=this.view.getCoordinate();(0,em.S6)(this.getComponents(),function(i){var n,r=i.component,o=i.direction,s=i.type,a=i.extra,l=a.dim,h=a.scale,u=a.alignTick;s===D.AXIS?t.isPolar?"x"===l?n=t.isTransposed?rh(t,o):rp(t):"y"===l&&(n=t.isTransposed?rp(t):rh(t,o)):n=rh(t,o):s===D.GRID&&(n=t.isPolar?{items:t.isTransposed?"x"===l?l4(t,e.view.getYScales()[0],h,u,l):l2(t,h,l,u):"x"===l?l2(t,h,l,u):l4(t,e.view.getXScale(),h,u,l),center:e.view.getCoordinate().getCenter()}:{items:l2(t,h,l,u)}),r.update(n)})},t.prototype.update=function(){this.option=this.view.getOptions().axes;var e=new Map;this.updateXAxes(e),this.updateYAxes(e);var t=new Map;this.cache.forEach(function(i,n){e.has(n)?t.set(n,i):i.component.destroy()}),this.cache=t},t.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},t.prototype.getComponents=function(){var e=[];return this.cache.forEach(function(t){e.push(t)}),e},t.prototype.updateXAxes=function(e){var t=this.view.getXScale();if(t&&!t.isIdentity){var i=rf(this.option,t.field);if(!1!==i){var n=rm(i,x.BOTTOM),r=O.BG,o=this.view.getCoordinate(),s=this.getId("axis",t.field),a=this.getId("grid",t.field);if(o.isRect){var l=this.cache.get(s);if(l){var h=this.getLineAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else l=this.createLineAxis(t,i,r,n,"x"),this.cache.set(s,l),e.set(s,l);var u=this.cache.get(a);if(u){var h=this.getLineGridCfg(t,i,n,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else(u=this.createLineGrid(t,i,r,n,"x"))&&(this.cache.set(a,u),e.set(a,u))}else if(o.isPolar){var l=this.cache.get(s);if(l){var h=o.isTransposed?this.getLineAxisCfg(t,i,x.RADIUS):this.getCircleAxisCfg(t,i,n);n7(h,l6),l.component.update(h),e.set(s,l)}else{if(o.isTransposed){if((0,em.o8)(i))return;l=this.createLineAxis(t,i,r,x.RADIUS,"x")}else l=this.createCircleAxis(t,i,r,n,"x");this.cache.set(s,l),e.set(s,l)}var u=this.cache.get(a);if(u){var h=o.isTransposed?this.getCircleGridCfg(t,i,x.RADIUS,"x"):this.getLineGridCfg(t,i,x.CIRCLE,"x");n7(h,l6),u.component.update(h),e.set(a,u)}else{if(o.isTransposed){if((0,em.o8)(i))return;u=this.createCircleGrid(t,i,r,x.RADIUS,"x")}else u=this.createLineGrid(t,i,r,x.CIRCLE,"x");u&&(this.cache.set(a,u),e.set(a,u))}}}}},t.prototype.updateYAxes=function(e){var t=this,i=this.view.getYScales();(0,em.S6)(i,function(i,n){if(i&&!i.isIdentity){var r=i.field,o=rf(t.option,r);if(!1!==o){var s=O.BG,a=t.getId("axis",r),l=t.getId("grid",r),h=t.view.getCoordinate();if(h.isRect){var u=rm(o,0===n?x.LEFT:x.RIGHT),d=t.cache.get(a);if(d){var c=t.getLineAxisCfg(i,o,u);n7(c,l6),d.component.update(c),e.set(a,d)}else d=t.createLineAxis(i,o,s,u,"y"),t.cache.set(a,d),e.set(a,d);var g=t.cache.get(l);if(g){var c=t.getLineGridCfg(i,o,u,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else(g=t.createLineGrid(i,o,s,u,"y"))&&(t.cache.set(l,g),e.set(l,g))}else if(h.isPolar){var d=t.cache.get(a);if(d){var c=h.isTransposed?t.getCircleAxisCfg(i,o,x.CIRCLE):t.getLineAxisCfg(i,o,x.RADIUS);n7(c,l6),d.component.update(c),e.set(a,d)}else{if(h.isTransposed){if((0,em.o8)(o))return;d=t.createCircleAxis(i,o,s,x.CIRCLE,"y")}else d=t.createLineAxis(i,o,s,x.RADIUS,"y");t.cache.set(a,d),e.set(a,d)}var g=t.cache.get(l);if(g){var c=h.isTransposed?t.getLineGridCfg(i,o,x.CIRCLE,"y"):t.getCircleGridCfg(i,o,x.RADIUS,"y");n7(c,l6),g.component.update(c),e.set(l,g)}else{if(h.isTransposed){if((0,em.o8)(o))return;g=t.createLineGrid(i,o,s,x.CIRCLE,"y")}else g=t.createCircleGrid(i,o,s,x.RADIUS,"y");g&&(t.cache.set(l,g),e.set(l,g))}}}}})},t.prototype.createLineAxis=function(e,t,i,n,r){var o={component:new ns(this.getLineAxisCfg(e,t,n)),layer:i,direction:n===x.RADIUS?x.NONE:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createLineGrid=function(e,t,i,n,r){var o=this.getLineGridCfg(e,t,n,r);if(o){var s={component:new nE(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.createCircleAxis=function(e,t,i,n,r){var o={component:new na(this.getCircleAxisCfg(e,t,n)),layer:i,direction:n,type:D.AXIS,extra:{dim:r,scale:e}};return o.component.set("field",e.field),o.component.init(),o},t.prototype.createCircleGrid=function(e,t,i,n,r){var o=this.getCircleGridCfg(e,t,n,r);if(o){var s={component:new nv(o),layer:i,direction:x.NONE,type:D.GRID,extra:{dim:r,scale:e,alignTick:(0,em.U2)(o,"alignTick",!0)}};return s.component.init(),s}},t.prototype.getLineAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=rh(r,i),s=rv(e,t),a=rc(this.view.getTheme(),i),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},o),{ticks:e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}}),verticalFactor:r.isPolar?-1*rd(o,r.getCenter()):rd(o,r.getCenter()),theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;h.animateOption=c,h.animate=d;var g=ru(o),p=(0,em.U2)(h,"verticalLimitLength",g?1/3:.5);if(p<=1){var f=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=p*(g?f:m)}return h},t.prototype.getLineGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),i),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t));return o.items=l2(this.view.getCoordinate(),e,n,(0,em.U2)(o,"alignTick",!0)),o}},t.prototype.getCircleAxisCfg=function(e,t,i){var n=(0,em.U2)(t,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),o=e.getTicks().map(function(e){return{id:""+e.tickValue,name:e.text,value:e.value}});e.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var s=rv(e,t),a=rc(this.view.getTheme(),x.CIRCLE),l=(0,em.U2)(t,["title"])?(0,em.b$)({title:{style:{text:s}}},{title:rg(this.view.getTheme(),i,t.title)},t):t,h=(0,em.b$)((0,ef.pi)((0,ef.pi)({container:n},rp(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:a}),a,l),u=this.getAnimateCfg(h),d=u.animate,c=u.animateOption;return h.animate=d,h.animateOption=c,h},t.prototype.getCircleGridCfg=function(e,t,i,n){if(l5(rc(this.view.getTheme(),i),t)){var r=l1(this.view.getTheme(),x.RADIUS),o=(0,em.b$)({container:(0,em.U2)(t,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,(0,em.U2)(t,"grid"),this.getAnimateCfg(t)),s=(0,em.U2)(o,"alignTick",!0),a="x"===n?this.view.getYScales()[0]:this.view.getXScale();return o.items=l4(this.view.getCoordinate(),a,e,s,n),o}},t.prototype.getId=function(e,t){return e+"-"+t+"-"+this.view.getCoordinate().type},t.prototype.getAnimateCfg=function(e){return{animate:this.view.getOptions().animate&&(0,em.U2)(e,"animate"),animateOption:e&&e.animateOption?(0,em.b$)({},l3,e.animateOption):l3}},t}(oL);function l7(e,t,i){return i===x.TOP?[e.minX+e.width/2-t.width/2,e.minY]:i===x.BOTTOM?[e.minX+e.width/2-t.width/2,e.maxY-t.height]:i===x.LEFT?[e.minX,e.minY+e.height/2-t.height/2]:i===x.RIGHT?[e.maxX-t.width,e.minY+e.height/2-t.height/2]:i===x.TOP_LEFT||i===x.LEFT_TOP?[e.tl.x,e.tl.y]:i===x.TOP_RIGHT||i===x.RIGHT_TOP?[e.tr.x-t.width,e.tr.y]:i===x.BOTTOM_LEFT||i===x.LEFT_BOTTOM?[e.bl.x,e.bl.y-t.height]:i===x.BOTTOM_RIGHT||i===x.RIGHT_BOTTOM?[e.br.x-t.width,e.br.y-t.height]:[0,0]}function l8(e,t){return(0,em.jn)(e)?!1!==e&&{}:(0,em.U2)(e,[t],e)}function he(e){return(0,em.U2)(e,"position",x.BOTTOM)}var ht=function(e){function t(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(O.FORE).addGroup(),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.render=function(){this.update()},t.prototype.layout=function(){var e=this;this.layoutBBox=this.view.viewBBox,(0,em.S6)(this.components,function(t){var i=t.component,n=t.direction,r=st(n),o=i.get("maxWidthRatio"),s=i.get("maxHeightRatio"),a=e.getCategoryLegendSizeCfg(r,o,s),l=i.get("maxWidth"),h=i.get("maxHeight");i.update({maxWidth:Math.min(a.maxWidth,l||0),maxHeight:Math.min(a.maxHeight,h||0)});var u=i.get("padding"),d=i.getLayoutBBox(),c=new re(d.x,d.y,d.width,d.height).expand(u),g=l7(e.view.viewBBox,c,n),p=g[0],f=g[1],m=l7(e.layoutBBox,c,n),v=m[0],E=m[1],_=0,C=0;n.startsWith("top")||n.startsWith("bottom")?(_=p,C=E):(_=v,C=f),i.setLocation({x:_+u[3],y:C+u[0]}),e.layoutBBox=e.layoutBBox.cut(c,n)})},t.prototype.update=function(){var e=this;this.option=this.view.getOptions().legends;var t={};if((0,em.U2)(this.option,"custom")){var i="global-custom",n=this.getComponentById(i);if(n){var r=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);n7(r,["container"]),n.component.update(r),t[i]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var s=O.FORE,a=he(this.option);this.components.push({id:i,component:o,layer:s,direction:a,type:D.LEGEND,extra:void 0}),t[i]=!0}}}else this.loopLegends(function(i,n,r){var o=e.getId(r.field),s=e.getComponentById(o);if(s){var a=void 0,l=l8(e.option,r.field);!1!==l&&((0,em.U2)(l,"custom")?a=e.getCategoryCfg(i,n,r,l,!0):r.isLinear?a=e.getContinuousCfg(i,n,r,l):r.isCategory&&(a=e.getCategoryCfg(i,n,r,l))),a&&(n7(a,["container"]),s.direction=he(l),s.component.update(a),t[o]=!0)}else{var h=e.createFieldLegend(i,n,r);h&&(h.component.init(),e.components.push(h),t[o]=!0)}});var l=[];(0,em.S6)(this.getComponents(),function(e){t[e.id]?l.push(e):e.component.destroy()}),this.components=l},t.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},t.prototype.getGeometries=function(e){var t=this,i=e.geometries;return(0,em.S6)(e.views,function(e){i=i.concat(t.getGeometries(e))}),i},t.prototype.loopLegends=function(e){if(this.view.getRootView()===this.view){var t=this.getGeometries(this.view),i={};(0,em.S6)(t,function(t){var n=t.getGroupAttributes();(0,em.S6)(n,function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(e(t,n,r),i[r.field]=!0)})})}},t.prototype.createFieldLegend=function(e,t,i){var n,r=l8(this.option,i.field),o=O.FORE,s=he(r);if(!1!==r&&((0,em.U2)(r,"custom")?n=this.createCustomLegend(e,t,i,r):i.isLinear?n=this.createContinuousLegend(e,t,i,r):i.isCategory&&(n=this.createCategoryLegend(e,t,i,r))),n)return n.set("field",i.field),{id:this.getId(i.field),component:n,layer:o,direction:s,type:D.LEGEND,extra:{scale:i}}},t.prototype.createCustomLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n,!0);return new nA(r)},t.prototype.createContinuousLegend=function(e,t,i,n){var r=this.getContinuousCfg(e,t,i,n7(n,["value"]));return new nR(r)},t.prototype.createCategoryLegend=function(e,t,i,n){var r=this.getCategoryCfg(e,t,i,n);return new nA(r)},t.prototype.getContinuousCfg=function(e,t,i,n){var r=i.getTicks(),o=(0,em.sE)(r,function(e){return 0===e.value}),s=(0,em.sE)(r,function(e){return 1===e.value}),a=r.map(function(e){var n=e.value,r=e.tickValue,o=t.mapping(i.invert(n)).join("");return{value:r,attrValue:o,color:o,scaleValue:n}});o||a.push({value:i.min,attrValue:t.mapping(i.invert(0)).join(""),color:t.mapping(i.invert(0)).join(""),scaleValue:0}),s||a.push({value:i.max,attrValue:t.mapping(i.invert(1)).join(""),color:t.mapping(i.invert(1)).join(""),scaleValue:1}),a.sort(function(e,t){return e.value-t.value});var l={min:(0,em.YM)(a).value,max:(0,em.Z$)(a).value,colors:[],rail:{type:t.type},track:{}};"size"===t.type&&(l.track={style:{fill:"size"===t.type?this.view.getTheme().defaultColor:void 0}}),"color"===t.type&&(l.colors=a.map(function(e){return e.attrValue}));var h=this.container,u=st(he(n)),d=(0,em.U2)(n,"title");return d&&(d=(0,em.b$)({text:ra(i)},d)),l.container=h,l.layout=u,l.title=d,l.animateOption=ox,this.mergeLegendCfg(l,n,"continuous")},t.prototype.getCategoryCfg=function(e,t,i,n,r){var o=this.container,s=(0,em.U2)(n,"position",x.BOTTOM),a=sn(this.view.getTheme(),s),l=(0,em.U2)(a,["marker"]),h=(0,em.U2)(n,"marker"),u=st(s),d=(0,em.U2)(a,["pageNavigator"]),c=(0,em.U2)(n,"pageNavigator"),g=r?n.items.map(function(e,t){var i=h;(0,em.mf)(i)&&(i=i(e.name,t,(0,em.b$)({},l,e)));var n=(0,em.mf)(e.marker)?e.marker(e.name,t,(0,em.b$)({},l,e)):e.marker,r=(0,em.b$)({},l,i,n);return se(r),e.marker=r,e}):si(this.view,e,t,l,h),p=(0,em.U2)(n,"title");p&&(p=(0,em.b$)({text:i?ra(i):""},p));var f=(0,em.U2)(n,"maxWidthRatio"),m=(0,em.U2)(n,"maxHeightRatio"),v=this.getCategoryLegendSizeCfg(u,f,m);v.container=o,v.layout=u,v.items=g,v.title=p,v.animateOption=ox,v.pageNavigator=(0,em.b$)({},d,c);var E=this.mergeLegendCfg(v,n,s);E.reversed&&E.items.reverse();var _=(0,em.U2)(E,"maxItemWidth");return _&&_<=1&&(E.maxItemWidth=this.view.viewBBox.width*_),E},t.prototype.mergeLegendCfg=function(e,t,i){var n=i.split("-")[0],r=sn(this.view.getTheme(),n);return(0,em.b$)({},r,e,t)},t.prototype.getId=function(e){return this.name+"-"+e},t.prototype.getComponentById=function(e){return(0,em.sE)(this.components,function(t){return t.id===e})},t.prototype.getCategoryLegendSizeCfg=function(e,t,i){void 0===t&&(t=.25),void 0===i&&(i=.25);var n=this.view.viewBBox,r=n.width,o=n.height;return"vertical"===e?{maxWidth:r*t,maxHeight:o}:{maxWidth:r,maxHeight:o*i}},t}(oL),hi=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e[0],n=e[1];i.start=t,i.end=n,i.changeViewData(t,n)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().slider;var e=this.getSliderCfg(),t=e.start,i=e.end;(0,em.UM)(this.start)&&(this.start=t,this.end=i);var n=this.view.getOptions().data;this.option&&!(0,em.xb)(n)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.start,e.end)},0)),this.slider){var t=this.view.coordinateBBox.width,i=this.slider.component.get("padding"),n=i[0],r=(i[1],i[2],i[3]),o=this.slider.component.getLayoutBBox(),s=new re(o.x,o.y,Math.min(o.width,t),o.height).expand(i),a=this.getMinMaxText(this.start,this.end),l=a.minText,h=a.maxText,u=l7(this.view.viewBBox,s,x.BOTTOM),d=(u[0],u[1]),c=l7(this.view.coordinateBBox,s,x.BOTTOM),g=c[0];c[1],this.slider.component.update((0,ef.pi)((0,ef.pi)({},this.getSliderCfg()),{x:g+r,y:d+n,width:this.width,start:this.start,end:this.end,minText:l,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,x.BOTTOM)}},t.prototype.update=function(){this.render()},t.prototype.createSlider=function(){var e=this.getSliderCfg(),t=new nq((0,ef.pi)({container:this.container},e));return t.init(),{component:t,layer:O.FORE,direction:x.BOTTOM,type:D.SLIDER}},t.prototype.updateSlider=function(){var e=this.getSliderCfg();if(this.width){var t=this.getMinMaxText(this.start,this.end),i=t.minText,n=t.maxText;e=(0,ef.pi)((0,ef.pi)({},e),{width:this.width,start:this.start,end:this.end,minText:i,maxText:n})}return this.slider.component.update(e),this.slider},t.prototype.measureSlider=function(){var e=this.getSliderCfg().width;this.width=e},t.prototype.getSliderCfg=function(){var e={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,em.Kn)(this.option)){var t=(0,ef.pi)({data:this.getData()},(0,em.U2)(this.option,"trendCfg",{}));e=(0,em.b$)({},e,this.getThemeOptions(),this.option),e=(0,ef.pi)((0,ef.pi)({},e),{trendCfg:t})}return e.start=(0,em.uZ)(Math.min((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e.end=(0,em.uZ)(Math.max((0,em.UM)(e.start)?0:e.start,(0,em.UM)(e.end)?1:e.end),0,1),e},t.prototype.getData=function(){var e=this.view.getOptions().data,t=this.view.getYScales()[0],i=this.view.getGroupScales();if(i.length){var n=i[0],r=n.field,o=n.ticks;return e.reduce(function(e,i){return i[r]===o[0]&&e.push(i[t.field]),e},[])}return e.map(function(e){return e[t.field]||0})},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","slider","common"],{})},t.prototype.getMinMaxText=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.I)(i,n.field),o=(0,em.dp)(i);if(!n||!o)return{};var s=(0,em.dp)(r),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1)),h=(0,em.U2)(r,[a]),u=(0,em.U2)(r,[l]),d=this.getSliderCfg().formatter;return d&&(h=d(h,i[a],a),u=d(u,i[l],l)),{minText:h,maxText:u}},t.prototype.changeViewData=function(e,t){var i=this.view.getOptions().data,n=this.view.getXScale(),r=(0,em.dp)(i);if(n&&r){var o=(0,em.I)(i,n.field),s=(0,em.dp)(o),a=Math.floor(e*(s-1)),l=Math.floor(t*(s-1));this.view.filter(n.field,function(e,t){var i=o.indexOf(e);return!(i>-1)||n9(i,a,l)}),this.view.render(!0)}},t.prototype.getComponents=function(){return this.slider?[this.slider]:[]},t.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},t}(oL),hn=function(e){function t(t){var i=e.call(this,t)||this;return i.onChangeFn=em.ZT,i.resetMeasure=function(){i.clear()},i.onValueChange=function(e){var t=e.ratio,n=i.getValidScrollbarCfg().animate;i.ratio=(0,em.uZ)(t,0,1);var r=i.view.getOptions().animate;n||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(r)},i.container=i.view.getLayer(O.FORE).addGroup(),i.onChangeFn=(0,em.P2)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(M.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(M.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return(0,ef.ZT)(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(M.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(M.BEFORE_CHANGE_SIZE,this.resetMeasure)},t.prototype.init=function(){},t.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},t.prototype.layout=function(){var e=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){e.view.destroyed||e.changeViewData(e.getScrollRange(),!0)})),this.scrollbar){var t=this.view.coordinateBBox.width,i=this.scrollbar.component.get("padding"),n=this.scrollbar.component.getLayoutBBox(),r=new re(n.x,n.y,Math.min(n.width,t),n.height).expand(i),o=this.getScrollbarComponentCfg(),s=void 0,a=void 0;if(o.isHorizontal){var l=l7(this.view.viewBBox,r,x.BOTTOM),h=l[0],u=l[1],d=l7(this.view.coordinateBBox,r,x.BOTTOM),c=d[0],g=d[1];s=c,a=u}else{var p=l7(this.view.viewBBox,r,x.RIGHT),h=p[0],u=p[1],f=l7(this.view.viewBBox,r,x.RIGHT),c=f[0],g=f[1];s=c,a=u}s+=i[3],a+=i[0],this.trackLen?this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,ef.pi)((0,ef.pi)({},o),{x:s,y:a})),this.view.viewBBox=this.view.viewBBox.cut(r,o.isHorizontal?x.BOTTOM:x.RIGHT)}},t.prototype.update=function(){this.render()},t.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},t.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},t.prototype.setValue=function(e){this.onValueChange({ratio:e})},t.prototype.getValue=function(){return this.ratio},t.prototype.getThemeOptions=function(){var e=this.view.getTheme();return(0,em.U2)(e,["components","scrollbar","common"],{})},t.prototype.getScrollbarTheme=function(e){var t=(0,em.U2)(this.view.getTheme(),["components","scrollbar"]),i=e||{},n=i.thumbHighlightColor,r=(0,ef._T)(i,["thumbHighlightColor"]);return{default:(0,em.b$)({},(0,em.U2)(t,["default","style"],{}),r),hover:(0,em.b$)({},(0,em.U2)(t,["hover","style"],{}),{thumbColor:n})}},t.prototype.measureScrollbar=function(){var e=this.view.getXScale(),t=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var i=this.getScrollbarComponentCfg(),n=i.trackLen,r=i.thumbLen;this.trackLen=n,this.thumbLen=r,this.xScaleCfg={field:e.field,values:e.values||[]},this.yScalesCfg=t},t.prototype.getScrollRange=function(){var e=Math.floor((this.cnt-this.step)*(0,em.uZ)(this.ratio,0,1)),t=Math.min(e+this.step-1,this.cnt-1);return[e,t]},t.prototype.changeViewData=function(e,t){var i=this,n=e[0],r=e[1],o=this.getValidScrollbarCfg().type,s=(0,em.I)(this.data,this.xScaleCfg.field),a="vertical"!==o?s:s.reverse();this.yScalesCfg.forEach(function(e){i.view.scale(e.field,{formatter:e.formatter,type:e.type,min:e.min,max:e.max})}),this.view.filter(this.xScaleCfg.field,function(e){var t=a.indexOf(e);return!(t>-1)||n9(t,n,r)}),this.view.render(!0)},t.prototype.createScrollbar=function(){var e=this.getValidScrollbarCfg().type,t=new nQ((0,ef.pi)((0,ef.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return t.init(),{component:t,layer:O.FORE,direction:"vertical"!==e?x.BOTTOM:x.RIGHT,type:D.SCROLLBAR}},t.prototype.updateScrollbar=function(){var e=this.getScrollbarComponentCfg(),t=this.trackLen?(0,ef.pi)((0,ef.pi)({},e),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,ef.pi)({},e);return this.scrollbar.component.update(t),this.scrollbar},t.prototype.getStep=function(){if(this.step)return this.step;var e=this.view.coordinateBBox,t=this.getValidScrollbarCfg(),i=t.type,n=t.categorySize;return Math.floor(("vertical"!==i?e.width:e.height)/n)},t.prototype.getCnt=function(){if(this.cnt)return this.cnt;var e=this.view.getXScale(),t=this.getScrollbarData(),i=(0,em.I)(t,e.field);return(0,em.dp)(i)},t.prototype.getScrollbarComponentCfg=function(){var e=this.view,t=e.coordinateBBox,i=e.viewBBox,n=this.getValidScrollbarCfg(),r=n.type,o=n.padding,s=n.width,a=n.height,l=n.style,h="vertical"!==r,u=o[0],d=o[1],c=o[2],g=o[3],p=h?{x:t.minX+g,y:i.maxY-a-c}:{x:i.maxX-s-d,y:t.minY+u},f=this.getStep(),m=this.getCnt(),v=h?t.width-g-d:t.height-u-c,E=Math.max(v*(0,em.uZ)(f/m,0,1),20);return(0,ef.pi)((0,ef.pi)({},this.getThemeOptions()),{x:p.x,y:p.y,size:h?a:s,isHorizontal:h,trackLen:v,thumbLen:E,thumbOffset:0,theme:this.getScrollbarTheme(l)})},t.prototype.getValidScrollbarCfg=function(){var e={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,em.Kn)(this.option)&&(e=(0,ef.pi)((0,ef.pi)({},e),this.option)),(0,em.Kn)(this.option)&&this.option.padding||(e.padding=(e.type,[0,0,0,0])),e},t.prototype.getScrollbarData=function(){var e=this.view.getCoordinate(),t=this.getValidScrollbarCfg(),i=this.view.getOptions().data||[];return e.isReflect("y")&&"vertical"===t.type&&(i=(0,ef.ev)([],i,!0).reverse()),i},t}(oL),hr={fill:"#CCD6EC",opacity:.3},ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.show=function(e){var t=this.context.view,i=this.context.event,n=t.getController("tooltip").getTooltipCfg(),r=function(e,t,i){var n=function(e,t,i){for(var n=of(e,t,i),r=0,o=e.views;r1){for(var c=n[0],g=Math.abs(t.y-c[0].y),p=0,f=n;pd.maxY&&(d=t)):(t.minXd.maxX&&(d=t)),c.x=Math.min(t.minX,c.minX),c.y=Math.min(t.minY,c.minY),c.width=Math.max(t.maxX,c.maxX)-c.x,c.height=Math.max(t.maxY,c.maxY)-c.y});var g=t.backgroundGroup,p=t.coordinateBBox,f=void 0;if(h.isRect){var m=t.getXScale(),v=e||{},E=v.appendRatio,_=v.appendWidth;(0,em.UM)(_)&&(E=(0,em.UM)(E)?m.isLinear?0:.25:E,_=h.isTransposed?E*d.height:E*u.width);var C=void 0,S=void 0,y=void 0,T=void 0;h.isTransposed?(C=p.minX,S=Math.min(d.minY,u.minY)-_,y=p.width,T=c.height+2*_):(C=Math.min(u.minX,d.minX)-_,S=p.minY,y=c.width+2*_,T=p.height),f=[["M",C,S],["L",C+y,S],["L",C+y,S+T],["L",C,S+T],["Z"]]}else{var b=(0,em.YM)(a),A=(0,em.Z$)(a),R=n6(b.getModel(),h).startAngle,L=n6(A.getModel(),h).endAngle,N=h.getCenter(),I=h.getRadius(),w=h.innerRadius*I;f=n4(N.x,N.y,I,R,L,w)}if(this.regionPath)this.regionPath.attr("path",f),this.regionPath.show();else{var O=(0,em.U2)(e,"style",hr);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,ef.pi)((0,ef.pi)({},O),{path:f})})}}}},t.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},t.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},t}(rS),hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.show=function(){var e=this.context,t=e.event,i=e.view;if(!i.isTooltipLocked()){var n=this.timeStamp,r=+new Date;if(r-n>(0,em.U2)(e.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:t.x,y:t.y};o&&(0,em.Xy)(o,s)||this.showTooltip(i,s),this.timeStamp=r,this.location=s}}},t.prototype.hide=function(){var e=this.context.view,t=e.getController("tooltip"),i=this.context.event,n=i.clientX,r=i.clientY;t.isCursorEntered({x:n,y:r})||e.isTooltipLocked()||(this.hideTooltip(e),this.location=null)},t.prototype.showTooltip=function(e,t){e.showTooltip(t)},t.prototype.hideTooltip=function(e){e.hideTooltip()},t}(rS),ha=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.showTooltip=function(e,t){var i=rj(e);(0,em.S6)(i,function(i){var n=rq(e,i,t);i.showTooltip(n)})},t.prototype.hideTooltip=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.hideTooltip()})},t}(hs),hl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return(0,ef.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},t.prototype.show=function(){var e=this.context.event,t=this.timeStamp,i=+new Date;if(i-t>16){var n=this.location,r={x:e.x,y:e.y};n&&(0,em.Xy)(n,r)||this.showTooltip(r),this.timeStamp=i,this.location=r}},t.prototype.hide=function(){this.hideTooltip(),this.location=null},t.prototype.showTooltip=function(e){var t=this.context.event.target;if(t&&t.get("tip")){this.tooltip||this.renderTooltip();var i=t.get("tip");this.tooltip.update((0,ef.pi)({title:i},e)),this.tooltip.show()}},t.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},t.prototype.renderTooltip=function(){var e,t=this.context.view,i=t.canvas,n={start:{x:0,y:0},end:{x:i.get("width"),y:i.get("height")}},r=t.getTheme(),o=(0,em.U2)(r,["components","tooltip","domStyles"],{}),s=new nF({parent:i.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:(0,ef.pi)({},(0,em.b$)({},o,((e={})[nL]={"max-width":"50%"},e[nN]={"word-break":"break-all"},e)))});s.init(),s.setCapture(!1),this.tooltip=s},t}(rS),hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t}return(0,ef.ZT)(t,e),t.prototype.hasState=function(e){return e.hasState(this.stateName)},t.prototype.setElementState=function(e,t){e.setState(this.stateName,t)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.clear=function(){var e=this.context.view;this.clearViewState(e)},t.prototype.clearViewState=function(e){var t=this,i=rW(e,this.stateName);(0,em.S6)(i,function(e){t.setElementState(e,!1)})},t}(rS);function hu(e){return(0,em.U2)(e.get("delegateObject"),"item")}var hd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.isItemIgnore=function(e,t){return!!this.ignoreListItemStates.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByComponent=function(e,t,i){var n=this.context.view,r=e.get("field"),o=rV(n);this.setElementsStateByItem(o,r,t,i)},t.prototype.setStateByElement=function(e,t){this.setElementState(e,t)},t.prototype.isMathItem=function(e,t,i){var n=rJ(this.context.view,t),r=rG(e,t);return!(0,em.UM)(r)&&i.name===n.getText(r)},t.prototype.setElementsStateByItem=function(e,t,i,n){var r=this;(0,em.S6)(e,function(e){r.isMathItem(e,t,i)&&e.setState(r.stateName,n)})},t.prototype.setStateEnable=function(e){var t=rD(this.context);if(t)rk(this.context)&&this.setStateByElement(t,e);else{var i=rM(this.context);if(rP(i)){var n=i.item,r=i.component;if(n&&r&&!this.isItemIgnore(n,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&hu(o.fromShape)===hu(o.toShape))return;this.setStateByComponent(r,n,e)}}}},t.prototype.toggle=function(){var e=rD(this.context);if(e){var t=e.hasState(this.stateName);this.setElementState(e,!t)}},t.prototype.reset=function(){this.setStateEnable(!1)},t}(hh),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hd),hg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={},t}return(0,ef.ZT)(t,e),t.prototype.getColorScale=function(e,t){var i=t.geometry.getAttribute("color");return i?e.getScaleByField(i.getFields()[0]):null},t.prototype.getLinkPath=function(e,t){var i=this.context.view.getCoordinate().isTransposed,n=e.shape.getCanvasBBox(),r=t.shape.getCanvasBBox();return i?[["M",n.minX,n.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",n.maxX,n.minY],["Z"]]:[["M",n.maxX,n.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",n.maxX,n.maxY],["Z"]]},t.prototype.addLinkShape=function(e,t,i,n){var r={opacity:.4,fill:t.shape.attr("fill")};e.addShape({type:"path",attrs:(0,ef.pi)((0,ef.pi)({},(0,em.b$)({},r,(0,em.mf)(n)?n(r,t):n)),{path:this.getLinkPath(t,i)})})},t.prototype.linkByElement=function(e,t){var i=this,n=this.context.view,r=this.getColorScale(n,e);if(r){var o=rG(e,r.field);if(!this.cache[o]){var s,a=(s=r.field,rV(n).filter(function(e){return rG(e,s)===o})),l=this.linkGroup.addGroup();this.cache[o]=l;var h=a.length;(0,em.S6)(a,function(e,n){if(n=0},t)},t}(hp),hN=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.highlight=function(){this.setState()},t.prototype.setElementState=function(e,t){hS(rV(this.context.view),function(t){return e===t},t)},t.prototype.clear=function(){hC(this.context.view)},t}(hm),hI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hp),hw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hd),hO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hm),hx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return(0,ef.ZT)(t,e),t.prototype.getTriggerListInfo=function(){var e=rM(this.context),t=null;return rP(e)&&(t={item:e.item,list:e.component}),t},t.prototype.getAllowComponents=function(){var e=this,t=rK(this.context.view),i=[];return(0,em.S6)(t,function(t){t.isList()&&e.allowSetStateByElement(t)&&i.push(t)}),i},t.prototype.hasState=function(e,t){return e.hasState(t,this.stateName)},t.prototype.clearAllComponentsState=function(){var e=this,t=this.getAllowComponents();(0,em.S6)(t,function(t){t.clearItemsState(e.stateName)})},t.prototype.allowSetStateByElement=function(e){var t=e.get("field");if(!t)return!1;if(this.cfg&&this.cfg.componentNames){var i=e.get("name");if(-1===this.cfg.componentNames.indexOf(i))return!1}var n=rJ(this.context.view,t);return n&&n.isCategory},t.prototype.allowSetStateByItem=function(e,t){var i=this.ignoreItemStates;return!i.length||0===i.filter(function(i){return t.hasState(e,i)}).length},t.prototype.setStateByElement=function(e,t,i){var n=e.get("field"),r=rJ(this.context.view,n),o=rG(t,n),s=r.getText(o);this.setItemsState(e,s,i)},t.prototype.setStateEnable=function(e){var t=this,i=rD(this.context);if(i){var n=this.getAllowComponents();(0,em.S6)(n,function(n){t.setStateByElement(n,i,e)})}else{var r=rM(this.context);if(rP(r)){var o=r.item,s=r.component;this.allowSetStateByElement(s)&&this.allowSetStateByItem(o,s)&&this.setItemState(s,o,e)}}},t.prototype.setItemsState=function(e,t,i){var n=this,r=e.getItems();(0,em.S6)(r,function(r){r.name===t&&n.setItemState(e,r,i)})},t.prototype.setItemState=function(e,t,i){e.setItemState(t,this.stateName,i)},t.prototype.setState=function(){this.setStateEnable(!0)},t.prototype.reset=function(){this.setStateEnable(!1)},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item,n=this.hasState(t,i);this.setItemState(t,i,!n)}},t.prototype.clear=function(){var e=this.getTriggerListInfo();e?e.list.clearItemsState(this.stateName):this.clearAllComponentsState()},t}(rS),hD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="active",t}return(0,ef.ZT)(t,e),t.prototype.active=function(){this.setState()},t}(hx),hM="inactive",hk="active",hP="inactive",hF="active",hB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hF,t.ignoreItemStates=["unchecked"],t}return(0,ef.ZT)(t,e),t.prototype.setItemsState=function(e,t,i){this.setHighlightBy(e,function(e){return e.name===t},i)},t.prototype.setItemState=function(e,t,i){e.getItems(),this.setHighlightBy(e,function(e){return e===t},i)},t.prototype.setHighlightBy=function(e,t,i){var n=e.getItems();if(i)(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hP)&&e.setItemState(i,hP,!1),e.setItemState(i,hF,!0)):e.hasState(i,hF)||e.setItemState(i,hP,!0)});else{var r=e.getItemsByState(hF),o=!0;(0,em.S6)(r,function(e){if(!t(e))return o=!1,!1}),o?this.clear():(0,em.S6)(n,function(i){t(i)&&(e.hasState(i,hF)&&e.setItemState(i,hF,!1),e.setItemState(i,hP,!0))})}},t.prototype.highlight=function(){this.setState()},t.prototype.clear=function(){var e,t,i=this.getTriggerListInfo();if(i)t=(e=i.list).getItems(),(0,em.S6)(t,function(t){e.hasState(t,hk)&&e.setItemState(t,hk,!1),e.hasState(t,hM)&&e.setItemState(t,hM,!1)});else{var n=this.getAllowComponents();(0,em.S6)(n,function(e){e.clearItemsState(hF),e.clearItemsState(hP)})}},t}(hx),hU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="selected",t}return(0,ef.ZT)(t,e),t.prototype.selected=function(){this.setState()},t}(hx),hH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return(0,ef.ZT)(t,e),t.prototype.unchecked=function(){this.setState()},t}(hx),hV="unchecked",hW="checked",hG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stateName=hW,t}return(0,ef.ZT)(t,e),t.prototype.setItemState=function(e,t,i){this.setCheckedBy(e,function(e){return e===t},i)},t.prototype.setCheckedBy=function(e,t,i){var n=e.getItems();i&&(0,em.S6)(n,function(i){t(i)?(e.hasState(i,hV)&&e.setItemState(i,hV,!1),e.setItemState(i,hW,!0)):e.hasState(i,hW)||e.setItemState(i,hV,!0)})},t.prototype.toggle=function(){var e=this.getTriggerListInfo();if(e&&e.item){var t=e.list,i=e.item;!(0,em.G)(t.getItems(),function(e){return t.hasState(e,hV)})||t.hasState(i,hV)?this.setItemState(t,i,!0):this.reset()}},t.prototype.checked=function(){this.setState()},t.prototype.reset=function(){var e=this.getAllowComponents();(0,em.S6)(e,function(e){e.clearItemsState(hW),e.clearItemsState(hV)})},t}(hx),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return(0,ef.ZT)(t,e),t.prototype.getCurrentPoint=function(){var e=this.context.event;return{x:e.x,y:e.y}},t.prototype.emitEvent=function(e){var t=this.context.view,i=this.context.event;t.emit("mask:"+e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},t.prototype.createMask=function(){var e=this.context.view,t=this.getMaskAttrs();return e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,ef.pi)({fill:"#C5D4EB",opacity:.3},t)})},t.prototype.getMaskPath=function(){return[]},t.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},t.prototype.start=function(e){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==e?void 0:e.maskStyle),this.emitEvent("start")},t.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},t.prototype.move=function(){if(this.moving&&this.maskShape){var e=this.getCurrentPoint(),t=this.preMovePoint,i=e.x-t.x,n=e.y-t.y,r=this.points;(0,em.S6)(r,function(e){e.x+=i,e.y+=n}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=e}},t.prototype.updateMask=function(e){var t=(0,em.b$)({},this.getMaskAttrs(),e);this.maskShape.attr(t)},t.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},t.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},t.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},t.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},t.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},t}(rS),hY=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return(0,ef.ZT)(t,e),t.prototype.getMaskAttrs=function(){var e=this.points,t=(0,em.Z$)(this.points),i=0,n=0,r=0;if(e.length){var o=e[0];i=r$(o,t)/2,n=(t.x+o.x)/2,r=(t.y+o.y)/2}return{x:n,y:r,r:i}},t}(hz),hK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=this.points;return{start:(0,em.YM)(e),end:(0,em.Z$)(e)}},t.prototype.getMaskAttrs=function(){var e=this.getRegion(),t=e.start,i=e.end;return{x:Math.min(t.x,i.x),y:Math.min(t.y,i.y),width:Math.abs(i.x-t.x),height:Math.abs(i.y-t.y)}},t}(hz);function h$(e){e.x=(0,em.uZ)(e.x,0,1),e.y=(0,em.uZ)(e.y,0,1)}var hX=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return(0,ef.ZT)(t,e),t.prototype.getRegion=function(){var e=null,t=null,i=this.points,n=this.dim,r=this.context.view.getCoordinate(),o=r.invert((0,em.YM)(i)),s=r.invert((0,em.Z$)(i));return this.inPlot&&(h$(o),h$(s)),"x"===n?(e=r.convert({x:o.x,y:0}),t=r.convert({x:s.x,y:1})):(e=r.convert({x:0,y:o.y}),t=r.convert({x:1,y:s.y})),{start:e,end:t}},t}(hK),hj=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){var e=this.points,t=[];return e.length&&((0,em.S6)(e,function(e,i){0===i?t.push(["M",e.x,e.y]):t.push(["L",e.x,e.y])}),t.push(["L",e[0].x,e[0].y])),t},t.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},t.prototype.addPoint=function(){this.resize()},t}(hz),hq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getMaskPath=function(){return function(e,t){if(e.length<=2)return rw(e,!1);var i=e[0],n=[];(0,em.S6)(e,function(e){n.push(e.x),n.push(e.y)});var r=rI(n,t,null);return r.unshift(["M",i.x,i.y]),r}(this.points,!0)},t}(hj),hZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.setCursor=function(e){this.context.view.getCanvas().setCursor(e)},t.prototype.default=function(){this.setCursor("default")},t.prototype.pointer=function(){this.setCursor("pointer")},t.prototype.move=function(){this.setCursor("move")},t.prototype.crosshair=function(){this.setCursor("crosshair")},t.prototype.wait=function(){this.setCursor("wait")},t.prototype.help=function(){this.setCursor("help")},t.prototype.text=function(){this.setCursor("text")},t.prototype.eResize=function(){this.setCursor("e-resize")},t.prototype.wResize=function(){this.setCursor("w-resize")},t.prototype.nResize=function(){this.setCursor("n-resize")},t.prototype.sResize=function(){this.setCursor("s-resize")},t.prototype.neResize=function(){this.setCursor("ne-resize")},t.prototype.nwResize=function(){this.setCursor("nw-resize")},t.prototype.seResize=function(){this.setCursor("se-resize")},t.prototype.swResize=function(){this.setCursor("sw-resize")},t.prototype.nsResize=function(){this.setCursor("ns-resize")},t.prototype.ewResize=function(){this.setCursor("ew-resize")},t}(rS),hJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=this;e.getScaleByField(t)&&e.filter(t,i),e.views&&e.views.length&&(0,em.S6)(e.views,function(e){n.filterView(e,t,i)})},t.prototype.filter=function(){var e=rM(this.context);if(e){var t=this.context.view,i=e.component,n=i.get("field");if(rP(e)){if(n){var r=i.getItemsByState("unchecked"),o=rJ(t,n),s=r.map(function(e){return e.name});s.length?this.filterView(t,n,function(e){var t=o.getText(e);return!s.includes(t)}):this.filterView(t,n,null),t.render(!0)}}else if(rF(e)){var a=i.getValue(),l=a[0],h=a[1];this.filterView(t,n,function(e){return e>=l&&e<=h}),t.render(!0)}}},t}(rS);function hQ(e,t,i,n){var r=Math.min(i[t],n[t]),o=Math.max(i[t],n[t]),s=e.range,a=s[0],l=s[1];if(rl&&(o=l),r===l&&o===l)return null;var h=e.invert(r),u=e.invert(o);if(!e.isCategory)return function(e){return e>=h&&e<=u};var d=e.values.indexOf(h),c=e.values.indexOf(u),g=e.values.slice(d,c+1);return function(e){return g.includes(e)}}(b=$||($={})).FILTER="brush-filter-processing",b.RESET="brush-filter-reset",b.BEFORE_FILTER="brush-filter:beforefilter",b.AFTER_FILTER="brush-filter:afterfilter",b.BEFORE_RESET="brush-filter:beforereset",b.AFTER_RESET="brush-filter:afterreset";var h0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.start=function(){var e=this.context;this.isStarted=!0,this.startPoint=e.getCurrentPoint()},t.prototype.filter=function(){if(rB(this.context)){var e,t,i=this.context.event.target.getCanvasBBox();e={x:i.x,y:i.y},t={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;e=this.startPoint,t=this.context.getCurrentPoint()}if(!(5>Math.abs(e.x-t.x)||5>Math.abs(e.x-t.y))){var n=this.context,r=n.view,o={view:r,event:n.event,dims:this.dims};r.emit($.BEFORE_FILTER,o_.fromData(r,$.BEFORE_FILTER,o));var s=r.getCoordinate(),a=s.invert(t),l=s.invert(e);if(this.hasDim("x")){var h=r.getXScale(),u=hQ(h,"x",a,l);this.filterView(r,h.field,u)}if(this.hasDim("y")){var d=r.getYScales()[0],u=hQ(d,"y",a,l);this.filterView(r,d.field,u)}this.reRender(r,{source:$.FILTER}),r.emit($.AFTER_FILTER,o_.fromData(r,$.AFTER_FILTER,o))}},t.prototype.end=function(){this.isStarted=!1},t.prototype.reset=function(){var e=this.context.view;if(e.emit($.BEFORE_RESET,o_.fromData(e,$.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var t=e.getXScale();this.filterView(e,t.field,null)}if(this.hasDim("y")){var i=e.getYScales()[0];this.filterView(e,i.field,null)}this.reRender(e,{source:$.RESET}),e.emit($.AFTER_RESET,o_.fromData(e,$.AFTER_RESET,{}))},t.prototype.filterView=function(e,t,i){e.filter(t,i)},t.prototype.reRender=function(e,t){e.render(!0,t)},t}(rS),h1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filterView=function(e,t,i){var n=rj(e);(0,em.S6)(n,function(e){e.filter(t,i)})},t.prototype.reRender=function(e){var t=rj(e);(0,em.S6)(t,function(e){e.render(!0)})},t}(h0),h2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.filter=function(){var e=rM(this.context),t=this.context.view,i=rV(t);if(rB(this.context)){var n=rU(this.context,10);n&&(0,em.S6)(i,function(e){n.includes(e)?e.show():e.hide()})}else if(e){var r=e.component,o=r.get("field");if(rP(e)){if(o){var s=r.getItemsByState("unchecked"),a=rJ(t,o),l=s.map(function(e){return e.name});(0,em.S6)(i,function(e){var t=rG(e,o),i=a.getText(t);l.indexOf(i)>=0?e.hide():e.show()})}}else if(rF(e)){var h=r.getValue(),u=h[0],d=h[1];(0,em.S6)(i,function(e){var t=rG(e,o);t>=u&&t<=d?e.show():e.hide()})}}},t.prototype.clear=function(){var e=rV(this.context.view);(0,em.S6)(e,function(e){e.show()})},t.prototype.reset=function(){this.clear()},t}(rS),h4=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return(0,ef.ZT)(t,e),t.prototype.filter=function(){rB(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},t.prototype.filterByRecord=function(){var e=this.context.view,t=rU(this.context,10);if(t){var i=e.getXScale().field,n=e.getYScales()[0].field,r=t.map(function(e){return e.getModel().data}),o=rj(e);(0,em.S6)(o,function(e){var t=rV(e);(0,em.S6)(t,function(e){rZ(r,e.getModel().data,i,n)?e.show():e.hide()})})}},t.prototype.filterByBBox=function(){var e=this,t=rj(this.context.view);(0,em.S6)(t,function(t){var i=rH(e.context,t,10),n=rV(t);i&&(0,em.S6)(n,function(e){i.includes(e)?e.show():e.hide()})})},t.prototype.reset=function(){var e=rj(this.context.view);(0,em.S6)(e,function(e){var t=rV(e);(0,em.S6)(t,function(e){e.show()})})},t}(rS),h5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return(0,ef.ZT)(t,e),t.prototype.getButtonCfg=function(){return(0,em.b$)(this.buttonCfg,this.cfg)},t.prototype.drawButton=function(){var e=this.getButtonCfg(),t=this.context.view.foregroundGroup.addGroup({name:e.name}),i=t.addShape({type:"text",name:"button-text",attrs:(0,ef.pi)({text:e.text},e.textStyle)}).getBBox(),n=om(e.padding),r=t.addShape({type:"rect",name:"button-rect",attrs:(0,ef.pi)({x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},e.style)});r.toBack(),t.on("mouseenter",function(){r.attr(e.activeStyle)}),t.on("mouseleave",function(){r.attr(e.style)}),this.buttonGroup=t},t.prototype.resetPosition=function(){var e=this.context.view.getCoordinate().convert({x:1,y:1}),t=this.buttonGroup,i=t.getBBox(),n=it.vs(null,[["t",e.x-i.width-10,e.y+i.height+5]]);t.setMatrix(n)},t.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},t.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},t.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},t}(rS),h6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},t.prototype.drag=function(){if(this.startPoint){var e=this.context.getCurrentPoint(),t=this.context.view,i=this.context.event;this.dragStart?t.emit("drag",{target:i.target,x:i.x,y:i.y}):r$(e,this.startPoint)>4&&(t.emit("dragstart",{target:i.target,x:i.x,y:i.y}),this.dragStart=!0)}},t.prototype.end=function(){if(this.dragStart){var e=this.context.view,t=this.context.event;e.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},t}(rS),h3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return(0,ef.ZT)(t,e),t.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},t.prototype.move=function(){if(this.starting){var e=this.startPoint,t=this.context.getCurrentPoint();if(r$(e,t)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,n=it.vs(this.startMatrix,[["t",t.x-e.x,t.y-e.y]]);i.backgroundGroup.setMatrix(n),i.foregroundGroup.setMatrix(n),i.middleGroup.setMatrix(n)}}},t.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},t.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var e=this.context.view;e.backgroundGroup.resetMatrix(),e.foregroundGroup.resetMatrix(),e.middleGroup.resetMatrix(),this.isMoving=!1},t}(rS),h9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return(0,ef.ZT)(t,e),t.prototype.hasDim=function(e){return this.dims.includes(e)},t.prototype.getScale=function(e){var t=this.context.view;return"x"===e?t.getXScale():t.getYScales()[0]},t.prototype.resetDim=function(e){var t=this.context.view;if(this.hasDim(e)&&this.cacheScaleDefs[e]){var i=this.getScale(e);t.scale(i.field,this.cacheScaleDefs[e]),this.cacheScaleDefs[e]=null}},t.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},t}(rS),h7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return(0,ef.ZT)(t,e),t.prototype.start=function(){var e=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var t=this.dims;(0,em.S6)(t,function(t){var i=e.getScale(t),n=i.min,r=i.max,o=i.values;e.startCache[t]={min:n,max:r,values:o}})},t.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},t.prototype.translate=function(){var e=this;if(this.starting){var t=this.startPoint,i=this.context.view.getCoordinate(),n=this.context.getCurrentPoint(),r=i.invert(t),o=i.invert(n),s=o.x-r.x,a=o.y-r.y,l=this.context.view,h=this.dims;(0,em.S6)(h,function(t){e.translateDim(t,{x:-1*s,y:-1*a})}),l.render(!0)}},t.prototype.translateDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.translateLinear(e,i,t)}},t.prototype.translateLinear=function(e,t,i){var n=this.context.view,r=this.startCache[e],o=r.min,s=r.max,a=i[e]*(s-o);this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:o,max:s}),n.scale(t.field,{nice:!1,min:o+a,max:s+a})},t.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},t}(h9),h8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return(0,ef.ZT)(t,e),t.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},t.prototype.zoom=function(e){var t=this,i=this.dims;(0,em.S6)(i,function(i){t.zoomDim(i,e)}),this.context.view.render(!0)},t.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},t.prototype.zoomDim=function(e,t){if(this.hasDim(e)){var i=this.getScale(e);i.isLinear&&this.zoomLinear(e,i,t)}},t.prototype.zoomLinear=function(e,t,i){var n=this.context.view;this.cacheScaleDefs[e]||(this.cacheScaleDefs[e]={nice:t.nice,min:t.min,max:t.max});var r=this.cacheScaleDefs[e],o=r.max-r.min,s=t.min,a=t.max,l=i*o,h=s-l,u=a+l,d=(u-h)/o;u>h&&d<100&&d>.01&&n.scale(t.field,{nice:!1,min:s-l,max:a+l})},t}(h9),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.scroll=function(e){var t=this.context,i=t.view,n=t.event;if(i.getOptions().scrollbar){var r=(null==e?void 0:e.wheelDelta)||1,o=i.getController("scrollbar"),s=i.getXScale(),a=i.getOptions().data,l=(0,em.dp)((0,em.I)(a,s.field)),h=(0,em.dp)(s.values),u=Math.floor((l-h)*o.getValue())+(n.gEvent.originalEvent.deltaY>0?r:-r),d=r/(l-h)/1e4,c=(0,em.uZ)(u/(l-h)+d,0,1);o.setValue(c)}},t}(rS);function ut(e){return e.isInPlot()}function ui(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}A=r9(sa),oo[(0,em.vl)("dark")]=or(A),eC.canvas=ed,eC.svg=eg,oA("Polygon",la),oA("Interval",li),oA("Schema",ll),oA("Path",a0),oA("Point",ls),oA("Line",ln),oA("Area",a4),oA("Edge",a5),oA("Heatmap",a6),oA("Violin",lh),oV("base",o3),oV("interval",lv),oV("pie",lC),oV("polar",l_),oW("overlap",function(e,t,i,n){var r=new ly;(0,em.S6)(t,function(e){for(var t=e.find(function(e){return"text"===e.get("type")}),i=t.attr(),n=i.x,o=i.y,s=!1,a=0;a<=8;a++){var l=function(e,t,i,n){var r=e.getCanvasBBox(),o=r.width,s=r.height,a={x:t,y:i,textAlign:"center"};switch(n){case 0:a.y-=s+1,a.x+=1,a.textAlign="left";break;case 1:a.y-=s+1,a.x-=1,a.textAlign="right";break;case 2:a.y+=s+1,a.x-=1,a.textAlign="right";break;case 3:a.y+=s+1,a.x+=1,a.textAlign="left";break;case 5:a.y-=2*s+2;break;case 6:a.y+=2*s+2;break;case 7:a.x+=o+1,a.textAlign="left";break;case 8:a.x-=o+1,a.textAlign="right"}return e.attr(a),e.getCanvasBBox()}(t,n,o,a);if(r.hasGap(l)){r.fillGap(l),s=!0;break}}s||e.remove(!0)}),r.destroy()}),oW("distribute",function(e,t,i,n){if(e.length&&t.length){var r=e[0]?e[0].offset:0,o=t[0].get("coordinate"),s=o.getRadius(),a=o.getCenter();if(r>0){var l=2*(s+r)+28,h={start:o.start,end:o.end},u=[[],[]];e.forEach(function(e){e&&("right"===e.textAlign?u[0].push(e):u[1].push(e))}),u.forEach(function(e,i){var n=l/14;e.length>n&&(e.sort(function(e,t){return t["..percent"]-e["..percent"]}),e.splice(n,e.length-n)),e.sort(function(e,t){return e.y-t.y}),function(e,t,i,n,r,o){var s,a=!0,l=n.start,h=n.end,u=Math.min(l.y,h.y),d=Math.abs(l.y-h.y),c=0,g=Number.MIN_VALUE,p=t.map(function(e){return e.y>c&&(c=e.y),e.yd&&(d=c-u);a;)for(p.forEach(function(e){var t=(Math.min.apply(g,e.targets)+Math.max.apply(g,e.targets))/2;e.pos=Math.min(Math.max(g,t-e.size/2),d-e.size)}),a=!1,s=p.length;s--;)if(s>0){var f=p[s-1],m=p[s];f.pos+f.size>m.pos&&(f.size+=m.size,f.targets=f.targets.concat(m.targets),f.pos+f.size>d&&(f.pos=d-f.size),p.splice(s,1),a=!0)}s=0,p.forEach(function(e){var n=u+i/2;e.targets.forEach(function(){t[s].y=e.pos+n,n+=i,s++})});for(var v={},E=0;Ee.x+e.width+i||t.x+t.widthe.y+e.height+i||t.y+t.heighth.min)||!(l.minr.maxX||n.maxY>r.maxY)&&e.remove(!0)})}),oW("limit-in-canvas",function(e,t,i,n){(0,em.S6)(t,function(e){var t=n.minX,i=n.minY,r=n.maxX,o=n.maxY,s=e.getCanvasBBox(),a=s.minX,l=s.minY,h=s.maxX,u=s.maxY,d=s.x,c=s.y,g=s.width,p=s.height,f=d,m=c;(ar?f=r-g:h>r&&(f-=h-r),l>o?m=o-p:u>o&&(m-=u-o),(f!==d||m!==c)&&o0(e,f-d,m-c)})}),oW("limit-in-plot",function(e,t,i,n,r){if(!(t.length<=0)){var o,s,a,l,h,u,d,c=(null==r?void 0:r.direction)||["top","right","bottom","left"],g=(null==r?void 0:r.action)||"translate",p=(null==r?void 0:r.margin)||0,f=t[0].get("coordinate");if(f){var m=(void 0===(o=p)&&(o=0),s=f.start,a=f.end,l=f.getWidth(),h=f.getHeight(),u=Math.min(s.x,a.x),d=Math.min(s.y,a.y),re.fromRange(u-o,d-o,u+l+o,d+h+o)),v=m.minX,E=m.minY,_=m.maxX,C=m.maxY;(0,em.S6)(t,function(e){var t=e.getCanvasBBox(),i=t.minX,n=t.minY,r=t.maxX,o=t.maxY,s=t.x,a=t.y,l=t.width,h=t.height,u=s,d=a;if(c.indexOf("left")>=0&&(i=0&&(n=0&&(i>_?u=_-l:r>_&&(u-=r-_)),c.indexOf("bottom")>=0&&(n>C?d=C-h:o>C&&(d-=o-C)),u!==s||d!==a){var p=u-s;"translate"===g?o0(e,p,d-a):"ellipsis"===g?e.findAll(function(e){return"text"===e.get("type")}).forEach(function(e){var t=(0,em.ei)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),i=e.getCanvasBBox(),n=lF(e.attr("text"),i.width-Math.abs(p),t);e.attr("text",n)}):e.hide()}})}}}),oW("pie-outer",function(e,t,i,n){var r=(0,em.hX)(e,function(e){return!(0,em.UM)(e)}),o=t[0]&&t[0].get("coordinate");if(o){for(var s=o.getCenter(),a=o.getRadius(),l={},h=0;hi&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t+1>i&&(l[e.id].set("visible",!1),e.invisible=!0)})),lS(e,d,_)}),(0,em.S6)(p,function(e,t){(0,em.S6)(e,function(e){var i=t===g,n=l[e.id].getChildByIndex(0);if(n){var r=a+c,h=e.y-s.y,u=Math.pow(r,2),d=Math.pow(h,2),p=Math.sqrt(u-d>0?u-d:0),f=Math.abs(Math.cos(e.angle)*r);i?e.x=s.x+Math.max(p,f):e.x=s.x-Math.max(p,f)}n&&(n.attr("y",e.y),n.attr("x",e.x)),function(e,t){var i=t.getCenter(),n=t.getRadius();if(e&&e.labelLine){var r=e.angle,o=e.offset,s=n2(i.x,i.y,n,r),a=e.x+(0,em.U2)(e,"offsetX",0)*(Math.cos(r)>0?1:-1),l=e.y+(0,em.U2)(e,"offsetY",0)*(Math.sin(r)>0?1:-1),h={x:a-4*Math.cos(r),y:l-4*Math.sin(r)},u=e.labelLine.smooth,d=[],c=h.x-i.x,g=Math.atan((h.y-i.y)/c);if(c<0&&(g+=Math.PI),!1===u){(0,em.Kn)(e.labelLine)||(e.labelLine={});var p=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&h.y>s.y&&(p=1),r>=0&&rs.y&&(p=1),r>=Math.PI/2&&rh.y&&(p=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&s.y>h.y&&(p=1);var f=o/2>4?4:Math.max(o/2-1,0),m=n2(i.x,i.y,n+f,r),v=n2(i.x,i.y,n+o/2,g);d.push("M "+s.x+" "+s.y),d.push("L "+m.x+" "+m.y),d.push("A "+i.x+" "+i.y+" 0 0 "+p+" "+v.x+" "+v.y),d.push("L "+h.x+" "+h.y)}else{var m=n2(i.x,i.y,n+(o/2>4?4:Math.max(o/2-1,0)),r),E=s.x11253517471925921e-23&&d.push.apply(d,["C",h.x+4*E,h.y,2*m.x-s.x,2*m.y-s.y,s.x,s.y]),d.push("L "+s.x+" "+s.y)}e.labelLine.path=d.join(" ")}}(e,o)})})}}}),oW("adjust-color",function(e,t,i){if(0!==i.length){var n=i[0].get("element").geometry.theme,r=n.labels||{},o=r.fillColorLight,s=r.fillColorDark;i.forEach(function(e,i){var r=t[i].find(function(e){return"text"===e.get("type")}),a=re.fromObject(e.getBBox()),l=re.fromObject(r.getCanvasBBox()),h=!a.contains(l),u=lO(e.attr("fill"));h?r.attr(n.overflowLabels.style):u?o&&r.attr("fill",o):s&&r.attr("fill",s)})}}),oW("interval-adjust-position",function(e,t,i){if(0!==i.length){var n,r=null===(n=i[0])||void 0===n?void 0:n.get("element"),o=null==r?void 0:r.geometry;o&&"interval"===o.type&&(o.getAdjust("stack")||t.every(function(e,t){var n,r,s,a,l=i[t];return n=o.coordinate,r=o2(e),s=re.fromObject(r.getCanvasBBox()),a=re.fromObject(l.getBBox()),n.isTransposed?a.height>=s.height:a.width>=s.width}))&&i.forEach(function(e,i){var n,r,s,a=t[i];n=o.coordinate,r=re.fromObject(e.getBBox()),s=o2(a),n.isTransposed?s.attr({x:r.minX+r.width/2,textAlign:"center"}):s.attr({y:r.minY+r.height/2,textBaseline:"middle"})})}}),oW("interval-hide-overlap",function(e,t,i){if(0!==i.length){var n,r,o,s=null===(o=i[0])||void 0===o?void 0:o.get("element"),a=null==s?void 0:s.geometry;if(a&&"interval"===a.type){var l=(n=[],r=Math.max(Math.floor(t.length/500),1),(0,em.S6)(t,function(e,t){t%r==0?n.push(e):e.set("visible",!1)}),n),h=a.getXYFields()[0],u=[],d=[],c=(0,em.vM)(l,function(e){return e.get("data")[h]}),g=(0,em.jj)((0,em.UI)(l,function(e){return e.get("data")[h]}));l.forEach(function(e){e.set("visible",!0)});var p=function(e){e&&(e.length&&d.push(e.pop()),d.push.apply(d,e))};for((0,em.dp)(g)>0&&p(c[g.shift()]),(0,em.dp)(g)>0&&p(c[g.pop()]),(0,em.S6)(g.reverse(),function(e){p(c[e])});d.length>0;){var f=d.shift();f.get("visible")&&(function(e,t){var i=e.getBBox();return(0,em.G)(t,function(e){var t=e.getBBox();return Math.max(0,Math.min(i.x+i.width+2,t.x+t.width+2)-Math.max(i.x-2,t.x-2))*Math.max(0,Math.min(i.y+i.height+2,t.y+t.height+2)-Math.max(i.y-2,t.y-2))>0})}(f,u)?f.set("visible",!1):u.push(f))}}}}),oW("point-adjust-position",function(e,t,i,n,r){if(0!==i.length){var o,s,a=null===(o=i[0])||void 0===o?void 0:o.get("element"),l=null==a?void 0:a.geometry;if(l&&"point"===l.type){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lx(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lD(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lD(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oW("pie-spider",function(e,t,i,n){var r=t[0]&&t[0].get("coordinate");if(r){for(var o=r.getCenter(),s=r.getRadius(),a={},l=0;lo.x||e.x===o.x&&e.y>o.y,i=(0,em.UM)(e.offsetX)?4:e.offsetX,n=n2(o.x,o.y,s+4,e.angle);e.x=o.x+(t?1:-1)*(s+(d+i)),e.y=n.y}});var c=r.start,g=r.end,p="right",f=(0,em.vM)(e,function(e){return e.xm&&(m=Math.min(t,Math.abs(c.y-g.y)))});var v={minX:c.x,maxX:g.x,minY:o.y-m/2,maxY:o.y+m/2};(0,em.S6)(f,function(e,t){var i=m/u;e.length>i&&(e.sort(function(e,t){return t.percent-e.percent}),(0,em.S6)(e,function(e,t){t>i&&(a[e.id].set("visible",!1),e.invisible=!0)})),lS(e,u,v)});var E=v.minY,_=v.maxY;(0,em.S6)(f,function(e,t){var i=t===p;(0,em.S6)(e,function(e){var t=(0,em.U2)(a,e&&[e.id]);if(t){if(e.y_){t.set("visible",!1);return}var n=t.getChildByIndex(0),o=n.getCanvasBBox(),s={x:i?o.x:o.maxX,y:o.y+o.height/2};o0(n,e.x-s.x,e.y-s.y),e.labelLine&&function(e,t,i){var n=t.getCenter(),r=t.getRadius(),o={x:e.x-(i?4:-4),y:e.y},s=n2(n.x,n.y,r+4,e.angle),a={x:o.x,y:o.y},l={x:s.x,y:s.y},h=n2(n.x,n.y,r,e.angle),u="";if(o.y!==s.y){var d=i?4:-4;a.y=o.y,e.angle<0&&e.angle>=-Math.PI/2&&(a.x=Math.max(s.x,o.x-d),o.y0&&e.angles.y?l.y=a.y:(l.y=s.y,l.x=Math.max(l.x,a.x-d))),e.angle>Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y>s.y?l.y=a.y:(l.y=s.y,l.x=Math.min(l.x,a.x-d))),e.angle<-Math.PI/2&&(a.x=Math.min(s.x,o.x-d),o.y["path","line","area"].indexOf(l.type))){var h=l.getXYFields(),u=h[0],d=h[1],c=(0,em.vM)(t,function(e){return e.get("data")[u]}),g=[],p=r&&r.offset||(null===(s=e[0])||void 0===s?void 0:s.offset)||12;(0,em.UI)((0,em.XP)(c).reverse(),function(e){for(var t,i,n,r,o=(t=c[e],i=l.getXYFields()[1],n=[],(r=t.sort(function(e,t){return e.get("data")[i]-e.get("data")[i]})).length>0&&n.push(r.shift()),r.length>0&&n.push(r.pop()),n.push.apply(n,r),n);o.length;){var s=o.shift(),a=o2(s);if(lM(g,s,function(e,t){return e.get("data")[u]===t.get("data")[u]&&e.get("data")[d]===t.get("data")[d]})){a.set("visible",!1);continue}var h=lk(g,s),f=!1;if(h&&(a.attr("y",a.attr("y")+2*p),f=lk(g,s)),f){a.set("visible",!1);continue}g.push(s)}})}}}),oO("fade-in",function(e,t,i){var n={fillOpacity:(0,em.UM)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,em.UM)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,em.UM)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(n,t)}),oO("fade-out",function(e,t,i){var n=t.easing,r=t.duration,o=t.delay;e.animate({fillOpacity:0,strokeOpacity:0,opacity:0},r,n,function(){e.remove(!0)},o)}),oO("grow-in-x",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"x")}),oO("grow-in-xy",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"xy")}),oO("grow-in-y",function(e,t,i){lB(e,t,i.coordinate,i.minYPoint,"y")}),oO("scale-in-x",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData.points,o=r[0].y-r[1].y>0?n.maxX:n.minX,s=(n.minY+n.maxY)/2;e.applyToMatrix([o,s,1]);var a=it.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(a),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},t)}),oO("scale-in-y",function(e,t,i){var n=e.getBBox(),r=e.get("origin").mappingData,o=(n.minX+n.maxX)/2,s=r.points,a=s[0].y-s[1].y<=0?n.maxY:n.minY;e.applyToMatrix([o,a,1]);var l=it.vs(e.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]]);e.setMatrix(l),e.animate({matrix:it.vs(e.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])},t)}),oO("wave-in",function(e,t,i){var n=ro(i.coordinate,20),r=n.type,o=n.startState,s=n.endState,a=e.setClip({type:r,attrs:o});a.animate(s,(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),a.remove(!0)}}))}),oO("zoom-in",function(e,t,i){lW(e,t,"zoomIn")}),oO("zoom-out",function(e,t,i){lW(e,t,"zoomOut")}),oO("position-update",function(e,t,i){var n=i.toAttrs,r=n.x,o=n.y;delete n.x,delete n.y,e.attr(n),e.animate({x:r,y:o},t)}),oO("sector-path-update",function(e,t,i){var n=i.toAttrs,r=i.coordinate,o=n.path||[],s=o.map(function(e){return e[0]});if(!(o.length<1)){var a=lV(o),l=a.startAngle,h=a.endAngle,u=a.radius,d=a.innerRadius,c=lV(e.attr("path")),g=c.startAngle,p=c.endAngle,f=r.getCenter(),m=l-g,v=h-p;if(0===m&&0===v){e.attr("path",o);return}e.animate(function(e){var t=g+e*m,i=p+e*v;return(0,ef.pi)((0,ef.pi)({},n),{path:(0,em.Xy)(s,["M","A","A","Z"])?n5(f.x,f.y,u,t,i):n4(f.x,f.y,u,t,i,d)})},(0,ef.pi)((0,ef.pi)({},t),{callback:function(){e.attr("path",o)}}))}}),oO("path-in",function(e,t,i){var n=e.getTotalLength();e.attr("lineDash",[n]),e.animate(function(e){return{lineDashOffset:(1-e)*n}},t)}),rC("rect",lj),rC("mirror",lX),rC("list",lK),rC("matrix",l$),rC("circle",lY),rC("tree",lq),ov.axis=l9,ov.legend=ht,ov.tooltip=oN,ov.annotation=l0,ov.slider=hi,ov.scrollbar=hn,rA("tooltip",hs),rA("sibling-tooltip",ha),rA("ellipsis-text",hl),rA("element-active",hc),rA("element-single-active",hv),rA("element-range-active",hf),rA("element-highlight",hb),rA("element-highlight-by-x",hR),rA("element-highlight-by-color",hA),rA("element-single-highlight",hN),rA("element-range-highlight",hL),rA("element-sibling-highlight",hL,{effectSiblings:!0,effectByRecord:!0}),rA("element-selected",hw),rA("element-single-selected",hO),rA("element-range-selected",hI),rA("element-link-by-color",hg),rA("active-region",ho),rA("list-active",hD),rA("list-selected",hU),rA("list-highlight",hB),rA("list-unchecked",hH),rA("list-checked",hG),rA("legend-item-highlight",hB,{componentNames:["legend"]}),rA("axis-label-highlight",hB,{componentNames:["axis"]}),rA("rect-mask",hK),rA("x-rect-mask",hX,{dim:"x"}),rA("y-rect-mask",hX,{dim:"y"}),rA("circle-mask",hY),rA("path-mask",hj),rA("smooth-path-mask",hq),rA("cursor",hZ),rA("data-filter",hJ),rA("brush",h0),rA("brush-x",h0,{dims:["x"]}),rA("brush-y",h0,{dims:["y"]}),rA("sibling-filter",h1),rA("sibling-x-filter",h1),rA("sibling-y-filter",h1),rA("element-filter",h2),rA("element-sibling-filter",h4),rA("element-sibling-filter-record",h4,{byRecord:!0}),rA("view-drag",h6),rA("view-move",h3),rA("scale-translate",h7),rA("scale-zoom",h8),rA("reset-button",h5,{name:"reset-button",text:"reset"}),rA("mousewheel-scroll",ue),r3("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),r3("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),r3("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),r3("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),r3("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),r3("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),r3("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),r3("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),r3("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),r3("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),r3("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),r3("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),r3("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),r3("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),r3("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ut,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ut,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),r3("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ut,action:"path-mask:start"},{trigger:"mousedown",isEnable:ut,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),r3("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),r3("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),r3("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),r3("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),r3("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),r3("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),r3("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return ui(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!ui(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),r3("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),r3("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var un=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];function ur(e){for(var t=[],i=1;i=0}),r=i.every(function(e){return 0>=(0,em.U2)(e,[t])});return n?{min:0}:r?{max:0}:{}}function ul(e,t,i,n,r){if(void 0===r&&(r=[]),!Array.isArray(e))return{nodes:[],links:[]};var o=[],s={},a=-1;return e.forEach(function(e){var l=e[t],h=e[i],u=e[n],d=us(e,r);s[l]||(s[l]=(0,ef.pi)({id:++a,name:l},d)),s[h]||(s[h]=(0,ef.pi)({id:++a,name:h},d)),o.push((0,ef.pi)({source:s[l].id,target:s[h].id,value:u},d))}),{nodes:Object.values(s).sort(function(e,t){return e.id-t.id}),links:o}}function uh(e,t){var i=(0,em.hX)(e,function(e){var i=e[t];return null===i||"number"==typeof i&&!isNaN(i)});return uo(X.WARN,i.length===e.length,"illegal data existed in chart data."),i}(R=X||(X={})).ERROR="error",R.WARN="warn",R.INFO="log";var uu={}.toString,ud=function(e,t){return uu.call(e)==="[object "+t+"]"},uc=function(e){if(!("object"==typeof e&&null!==e)||!ud(e,"Object"))return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},ug=function(e,t,i,n){for(var r in i=i||0,n=n||5,t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r];o?uc(o)?(uc(e[r])||(e[r]={}),i=(0,em.U2)(e,["views","length"],0)?uE(e):(0,em.u4)(e.views,function(e,t){return e.concat(u_(t))},uE(e))}function uC(e){if(!(0,em.P9)(e,"Object"))return e;var t=(0,ef.pi)({},e);return t.formatter&&!t.content&&(t.content=t.formatter),t}function uS(e){return"number"==typeof e&&!isNaN(e)}function uy(e){if((0,em.hj)(e))return[e,e,e,e];if((0,em.kJ)(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}function uT(e,t,i){void 0===t&&(t="bottom"),void 0===i&&(i=25);var n=uy(e),r=[t.startsWith("top")?i:0,t.startsWith("right")?i:0,t.startsWith("bottom")?i:0,t.startsWith("left")?i:0];return[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3]]}function ub(e){var t=e.map(function(e){return uy(e)}),i=[0,0,0,0];return t.length>0&&(i=i.map(function(e,i){return t.forEach(function(n,r){e+=t[r][i]}),e})),i}(0,em.HP)(function(e,t){void 0===t&&(t={});var i=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,s=t.fontVariant,a=(j||(j=document.createElement("canvas").getContext("2d")),j);return a.font=[o,r,s,"".concat(i,"px"),void 0===n?"sans-serif":n].join(" "),a.measureText((0,em.HD)(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,ef.ev)([e],(0,em.VO)(t),!0).join("")});var uA=function(e,t,i,n){var r,o,s,a,l=[],h=!!n;if(h){s=[1/0,1/0],a=[-1/0,-1/0];for(var u=0,d=e.length;u"},key:"".concat(0===n?"top":"bottom","-statistic")},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})},uw=function(e,t,i){var n=t.statistic;[n.title,n.content].forEach(function(t){if(t){var n=(0,em.mf)(t.style)?t.style(i):t.style;e.annotation().html((0,ef.pi)({position:["50%","100%"],html:function(e,r){var o=r.getCoordinate(),s=r.views[0].getCoordinate(),a=s.getCenter(),l=s.getRadius(),h=Math.max(Math.sin(s.startAngle),Math.sin(s.endAngle))*l,u=a.y+h-o.y.start-parseFloat((0,em.U2)(n,"fontSize",0)),d=o.getRadius()*o.innerRadius*2;uN(e,(0,ef.pi)({width:"".concat(d,"px"),transform:"translate(-50%, ".concat(u,"px)")},uL(n)));var c=r.getData();if(t.customHtml)return t.customHtml(e,r,i,c);var g=t.content;return t.formatter&&(g=t.formatter(i,c)),g?(0,em.HD)(g)?g:"".concat(g):"
    "}},us(t,["offsetX","offsetY","rotate","style","formatter"])))}})};function uO(e,t){return t?(0,em.u4)(t,function(e,t,i){return e.replace(RegExp("{\\s*".concat(i,"\\s*}"),"g"),t)},e):e}function ux(e,t){return e.views.find(function(e){return e.id===t})}function uD(e){var t=e.parent;return t?t.views:[]}function uM(e){return uD(e).filter(function(t){return t!==e})}function uk(e,t,i){void 0===i&&(i=e.geometries),"boolean"==typeof t?e.animate(t):e.animate(!0),(0,em.S6)(i,function(e){var i;i=(0,em.mf)(t)?t(e.type||e.shapeType,e)||!0:t,e.animate(i)})}function uP(){return"object"==typeof window?null==window?void 0:window.devicePixelRatio:2}function uF(e,t){void 0===t&&(t=e);var i=document.createElement("canvas"),n=uP();return i.width=e*n,i.height=t*n,i.style.width="".concat(e,"px"),i.style.height="".concat(t,"px"),i.getContext("2d").scale(n,n),i}function uB(e,t,i,n){void 0===n&&(n=i);var r=t.backgroundColor,o=t.opacity;e.globalAlpha=o,e.fillStyle=r,e.beginPath(),e.fillRect(0,0,i,n),e.closePath()}function uU(e,t,i){var n=e+t;return i?2*n:n}function uH(e,t){return t?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[.5*e,.5*e]]}function uV(e,t){var i=t*Math.PI/180;return{a:Math.cos(i)*(1/e),b:Math.sin(i)*(1/e),c:-Math.sin(i)*(1/e),d:Math.cos(i)*(1/e),e:0,f:0}}var uW={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0},uG={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2},uz={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function uY(e){var t=this;return function(i){var n,r=i.options,o=i.chart,s=r.pattern;return s?up({},i,{options:((n={})[e]=function(i){for(var n,a,l,h=[],u=1;u0){var i;(function(e,t,i){var n,r=e.view,o=e.geometry,s=e.group,a=e.options,l=e.horizontal,h=a.offset,u=a.size,d=a.arrow,c=r.getCoordinate(),g=dP(c,t)[3],p=dP(c,i)[0],f=p.y-g.y,m=p.x-g.x;if("boolean"!=typeof d){var v=d.headSize,E=a.spacing;l?(m-v)/2_){var S=Math.max(1,Math.ceil(_/(C/f.length))-1),y="".concat(f.slice(0,S),"...");E.attr("text",y)}}}}(l,i,e)}})}})),e}),(o=!s.isStack,function(e){var t=e.chart,i=e.options.connectedArea,n=function(){t.removeInteraction(dD.hover),t.removeInteraction(dD.click)};if(!o&&i){var r=i.trigger||"hover";n(),t.interaction(dD[r],{start:dM(r,i.style)})}else n();return e}),u2)(e)}function dY(e){var t=e.options,i=t.xField,n=t.yField,r=t.xAxis,o=t.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},a=!1!==o&&(0,ef.pi)({position:s[(null==o?void 0:o.position)||"left"]},o),l=!1!==r&&(0,ef.pi)({position:s[(null==r?void 0:r.position)||"bottom"]},r);return(0,ef.pi)((0,ef.pi)({},e),{options:(0,ef.pi)((0,ef.pi)({},t),{xField:n,yField:i,xAxis:a,yAxis:l})})}function dK(e){var t=e.options.label;return!t||t.position||(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),up({},e,{options:{label:t}})}function d$(e){var t=e.options,i=t.seriesField,n=t.isStack,r=t.legend;return i?!1!==r&&(r=(0,ef.pi)({position:n?"top-left":"right-top"},r||{})):r=!1,up({},e,{options:{legend:r}})}function dX(e){var t=[{type:"transpose"},{type:"reflectY"}].concat(e.options.coordinate||[]);return up({},e,{options:{coordinate:t}})}function dj(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.barWidthRatio,o=i.minBarWidth,s=i.maxBarWidth,a=i.barBackground;return dz({chart:t,options:(0,ef.pi)((0,ef.pi)({},i),{columnStyle:n,columnWidthRatio:r,minColumnWidth:o,maxColumnWidth:s,columnBackground:a})},!0)}function dq(e){return um(dY,dK,d$,u$,dX,dj)(e)}r3(dD.hover,{start:dM(dD.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r3(dD.click,{start:dM(dD.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var dZ=up({},dc.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),dJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bar",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t,i,n,r,o,s=this.chart,a=this.options,l=a.isPercent,h=a.xField,u=a.yField,d=a.xAxis,c=a.yAxis;h=(r=[u,h])[0],u=r[1],d=(o=[c,d])[0],c=o[1],dU({chart:s,options:(0,ef.pi)((0,ef.pi)({},a),{xField:h,yField:u,yAxis:c,xAxis:d})}),s.changeData((t=h,i=u,n=h,l?dg(e,t,i,n):e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dq},t}(dc),dQ=up({},dc.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),d0=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return dQ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.yField,n=t.xField,r=t.isPercent;dU({chart:this.chart,options:this.options}),this.chart.changeData(r?dg(e,i,n,i):e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dz},t}(dc),d1="$$percentage$$",d2="$$mappingValue$$",d4="$$conversion$$",d5="$$totalPercentage$$",d6="$$x$$",d3="$$y$$",d9={appendPadding:[0,80],minSize:0,maxSize:1,meta:((q={})[d2]={min:0,max:1,nice:!1},q),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},d7="CONVERSION_TAG_NAME";function d8(e,t,i){var n=i.yField,r=i.maxSize,o=i.minSize,s=(0,em.U2)((0,em.UT)(t,n),[n]),a=(0,em.hj)(r)?r:1,l=(0,em.hj)(o)?o:0;return(0,em.UI)(e,function(t,i){var r=(t[n]||0)/s;return t[d1]=r,t[d2]=(a-l)*r+l,t[d4]=[(0,em.U2)(e,[i-1,n]),t[n]],t})}function ce(e){return function(t){var i=t.chart,n=t.options,r=n.conversionTag,o=n.filteredData||i.getOptions().data;if(r){var s=r.formatter;o.forEach(function(t,n){if(!(n<=0||Number.isNaN(t[d2]))){var a=e(t,n,o,{top:!0,name:d7,text:{content:(0,em.mf)(s)?s(t,o):s,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:(0,ef.pi)({textAlign:"start",textBaseline:"middle"},r.style)}});i.annotation().line(a)}})}return t}}function ct(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=d8(r,r,{yField:i.yField,maxSize:i.maxSize,minSize:i.minSize});return t.data(o),e}function ci(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.shape,h=i.funnelStyle,u=i.state,d=u9(s,[n,r]),c=d.fields,g=d.formatter;return de({chart:t,options:{type:"interval",xField:n,yField:d2,colorField:n,tooltipFields:(0,em.kJ)(c)&&c.concat([d1,d4]),mapping:{shape:void 0===l?"funnel":l,tooltip:g,color:o,style:h},label:a,state:u}}),uv(e.chart,"interval").adjust("symmetric"),e}function cn(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function cr(e){var t=e.options,i=e.chart,n=t.maxSize,r=(0,em.U2)(i,["geometries","0","dataArray"],[]),o=(0,em.U2)(i,["options","data","length"]),s=(0,em.UI)(r,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*o-.5});return ce(function(e,t,i,r){var o=n-(n-e[d2])/2;return(0,ef.pi)((0,ef.pi)({},r),{start:[s[t-1]||t-.5,o],end:[s[t-1]||t-.5,o+.05]})})(e),e}function co(e){return um(ct,ci,cn,cr)(e)}function cs(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function ca(e){var t=e.chart,i=e.options,n=i.data,r=i.xField,o=i.yField,s=i.color,a=i.compareField,l=i.isTransposed,h=i.tooltip,u=i.maxSize,d=i.minSize,c=i.label,g=i.funnelStyle,p=i.state,f=i.showFacetTitle;return t.facet("mirror",{fields:[a],transpose:!l,padding:l?0:[32,0,0,0],showTitle:f,eachView:function(e,t){var i=l?t.rowIndex:t.columnIndex;l||e.coordinate({type:"rect",actions:[["transpose"],["scale",0===i?-1:1,-1]]});var f=d8(t.data,n,{yField:o,maxSize:u,minSize:d});e.data(f);var m=u9(h,[r,o,a]),v=m.fields,E=m.formatter;de({chart:e,options:{type:"interval",xField:r,yField:d2,colorField:r,tooltipFields:(0,em.kJ)(v)&&v.concat([d1,d4]),mapping:{shape:"funnel",tooltip:E,color:s,style:g},label:!1!==c&&up({},l?{offset:0===i?10:-23,position:0===i?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===i?"end":"start"}},c),state:p}})}}),e}function cl(e){var t=e.chart,i=e.index,n=e.options,r=n.conversionTag,o=n.isTransposed;((0,em.hj)(i)?[t]:t.views).forEach(function(e,t){var s=(0,em.U2)(e,["geometries","0","dataArray"],[]),a=(0,em.U2)(e,["options","data","length"]),l=(0,em.UI)(s,function(e){return(0,em.U2)(e,["0","nextPoints","0","x"])*a-.5});ce(function(e,n,s,a){var h=0===(i||t)?-1:1;return up({},a,{start:[l[n-1]||n-.5,e[d2]],end:[l[n-1]||n-.5,e[d2]+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==r?h*r.offsetX:0,style:{textAlign:0===(i||t)?"end":"start"}}})})(up({},{chart:e,options:n}))})}function ch(e){return e.chart.once("beforepaint",function(){return cl(e)}),e}function cu(e){var t=e.chart,i=e.options,n=i.data,r=void 0===n?[]:n,o=i.yField,s=(0,em.u4)(r,function(e,t){return e+(t[o]||0)},0),a=(0,em.UT)(r,o)[o],l=(0,em.UI)(r,function(e,t){var i=[],n=[];if(e[d5]=(e[o]||0)/s,t){var l=r[t-1][d6],h=r[t-1][d3];i[0]=l[3],n[0]=h[3],i[1]=l[2],n[1]=h[2]}else i[0]=-.5,n[0]=1,i[1]=.5,n[1]=1;return n[2]=n[1]-e[d5],i[2]=(n[2]+1)/4,n[3]=n[2],i[3]=-i[2],e[d6]=i,e[d3]=n,e[d1]=(e[o]||0)/a,e[d4]=[(0,em.U2)(r,[t-1,o]),e[o]],e});return t.data(l),e}function cd(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.color,s=i.tooltip,a=i.label,l=i.funnelStyle,h=i.state,u=u9(s,[n,r]),d=u.fields,c=u.formatter;return de({chart:t,options:{type:"polygon",xField:d6,yField:d3,colorField:n,tooltipFields:(0,em.kJ)(d)&&d.concat([d1,d4]),label:a,state:h,mapping:{tooltip:c,color:o,style:l}}}),e}function cc(e){var t=e.chart,i=e.options.isTransposed;return t.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function cg(e){return ce(function(e,t,i,n){return(0,ef.pi)((0,ef.pi)({},n),{start:[e[d6][1],e[d3][1]],end:[e[d6][1]+.05,e[d3][1]]})})(e),e}function cp(e){var t,i=e.chart,n=e.options,r=n.data,o=void 0===r?[]:r,s=n.yField;return i.data(o),i.scale(((t={})[s]={sync:!0},t)),e}function cf(e){var t=e.chart,i=e.options,n=i.seriesField,r=i.isTransposed,o=i.showFacetTitle;return t.facet("rect",{fields:[n],padding:[r?0:32,10,0,10],showTitle:o,eachView:function(t,i){co(up({},e,{chart:t,options:{data:i.data}}))}}),e}var cm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendering=!1,t}return(0,ef.ZT)(t,e),t.prototype.change=function(e){var t=this;if(!this.rendering){var i=e.seriesField,n=e.compareField,r=n?cl:cr,o=this.context.view,s=i||n?o.views:[o];(0,em.UI)(s,function(i,n){var o=i.getController("annotation"),s=(0,em.hX)((0,em.U2)(o,["option"],[]),function(e){return e.name!==d7});o.clear(!0),(0,em.S6)(s,function(e){"object"==typeof e&&i.annotation()[e.type](e)});var a=(0,em.U2)(i,["filteredData"],i.getOptions().data);r({chart:i,index:n,options:(0,ef.pi)((0,ef.pi)({},e),{filteredData:d8(a,a,e)})}),i.filterData(a),t.rendering=!0,i.render(!0)})}this.rendering=!1},t}(rS),cv="funnel-conversion-tag",cE="funnel-afterrender",c_={trigger:"afterrender",action:"".concat(cv,":change")};function cC(e){var t,i=e.options,n=i.compareField,r=i.xField,o=i.yField,s=i.locale,a=i.funnelStyle,l=i.data,h=u3(s);return(n||a)&&(t=function(e){return up({},n&&{lineWidth:1,stroke:"#fff"},(0,em.mf)(a)?a(e):a)}),up({options:{label:n?{fields:[r,o,n,d1,d4],formatter:function(e){return"".concat(e[o])}}:{fields:[r,o,d1,d4],offset:0,position:"middle",formatter:function(e){return"".concat(e[r]," ").concat(e[o])}},tooltip:{title:r,formatter:function(e){return{name:e[r],value:e[o]}}},conversionTag:{formatter:function(e){return"".concat(h.get(["conversionTag","label"]),": ").concat(dk.apply(void 0,e[d4]))}}}},e,{options:{funnelStyle:t,data:(0,em.d9)(l)}})}function cS(e){var t=e.options,i=t.compareField,n=t.dynamicHeight;return t.seriesField?um(cp,cf)(e):i?um(cs,ca,ch)(e):n?um(cu,cd,cc,cg)(e):co(e)}function cy(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function cT(e){return e.chart.axis(!1),e}function cb(e){var t=e.chart,i=e.options.legend;return!1===i?t.legend(!1):t.legend(i),e}function cA(e){var t=e.chart,i=e.options,n=i.interactions,r=i.dynamicHeight;return(0,em.S6)(n,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg||{})}),r?t.removeInteraction(cE):t.interaction(cE,{start:[(0,ef.pi)((0,ef.pi)({},c_),{arg:i})]}),e}function cR(e){return um(cC,cS,cy,cT,u$,cA,cb,uj,uq,u1())(e)}rA(cv,cm),r3(cE,{start:[c_]});var cL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="funnel",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return d9},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cR},t.prototype.setState=function(e,t,i){void 0===i&&(i=!0);var n=u_(this.chart);(0,em.S6)(n,function(n){t(n.getData())&&n.setState(e,i)})},t.prototype.getStates=function(){var e=u_(this.chart),t=[];return(0,em.S6)(e,function(e){var i=e.getData(),n=e.getStates();(0,em.S6)(n,function(n){t.push({data:i,state:n,geometry:e.geometry,element:e})})}),t},t.CONVERSATION_FIELD=d4,t.PERCENT_FIELD=d1,t.TOTAL_PERCENT_FIELD=d5,t}(dc),cN="range",cI="type",cw="percent",cO="indicator-view",cx="range-view",cD={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:((Z={})[cN]={sync:"v"},Z[cw]={sync:"v",tickCount:5,tickInterval:.2},Z),animation:!1};function cM(e){var t;return[((t={})[cw]=(0,em.uZ)(e,0,1),t)]}function ck(e,t){var i=(0,em.U2)(t,["ticks"],[]),n=(0,em.dp)(i)?(0,em.jj)(i):[0,(0,em.uZ)(e,0,1),1];return n[0]||n.shift(),n.map(function(t,i){var r;return(r={})[cN]=t-(n[i-1]||0),r[cI]="".concat(i),r[cw]=e,r})}function cP(e){var t=e.chart,i=e.options,n=i.percent,r=i.range,o=i.radius,s=i.innerRadius,a=i.startAngle,l=i.endAngle,h=i.axis,u=i.indicator,d=i.gaugeStyle,c=i.type,g=i.meter,p=r.color,f=r.width;if(u){var m=cM(n),v=t.createView({id:cO});v.data(m),v.point().position("".concat(cw,"*1")).shape(u.shape||"gauge-indicator").customInfo({defaultColor:t.getTheme().defaultColor,indicator:u}),v.coordinate("polar",{startAngle:a,endAngle:l,radius:s*o}),v.axis(cw,h),v.scale(cw,us(h,un))}var E=ck(n,i.range),_=t.createView({id:cx});return _.data(E),dn({chart:_,options:{xField:"1",yField:cN,seriesField:cI,rawFields:[cw],isStack:!0,interval:{color:(0,em.HD)(p)?[p,"#f0f0f0"]:p,style:d,shape:"meter"===c?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:f,maxColumnWidth:f}}).ext.geometry.customInfo({meter:g}),_.coordinate("polar",{innerRadius:s,radius:o,startAngle:a,endAngle:l}).transpose(),e}function cF(e){var t;return um(u0(((t={range:{min:0,max:1,maxLimit:1,minLimit:0}})[cw]={},t)))(e)}function cB(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent;if(i.getController("annotation").clear(!0),r){var s=r.content,a=void 0;s&&(a=up({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),uw(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:a})},{percent:o})}return t&&i.render(!0),e}function cU(e){var t=e.chart,i=e.options.tooltip;return i?t.tooltip(up({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(e,t){var i=(0,em.U2)(t,[0,"data",cw],0);return"".concat((100*i).toFixed(2),"%")}},i)):t.tooltip(!1),e}function cH(e){return e.chart.legend(!1),e}function cV(e){return um(uq,uj,cP,cF,cU,cB,uX,u1(),cH)(e)}o$("point","gauge-indicator",{draw:function(e,t){var i=e.customInfo,n=i.indicator,r=i.defaultColor,o=n.pointer,s=n.pin,a=t.addGroup(),l=this.parsePoint({x:0,y:0});return o&&a.addShape("line",{name:"pointer",attrs:(0,ef.pi)({x1:l.x,y1:l.y,x2:e.x,y2:e.y,stroke:r},o.style)}),s&&a.addShape("circle",{name:"pin",attrs:(0,ef.pi)({x:l.x,y:l.y,stroke:r},s.style)}),a}}),o$("interval","meter-gauge",{draw:function(e,t){var i=e.customInfo.meter,n=void 0===i?{}:i,r=n.steps,o=void 0===r?50:r,s=n.stepRatio,a=void 0===s?.5:s;o=o<1?1:o,a=(0,em.uZ)(a,0,1);var l=this.coordinate,h=l.startAngle,u=l.endAngle,d=0;a>0&&a<1&&(d=(u-h)/o/(a/(1-a)+1-1/o));for(var c=d/(1-a)*a,g=t.addGroup(),p=this.coordinate.getCenter(),f=this.coordinate.getRadius(),m=sr.getAngle(e,this.coordinate),v=m.startAngle,E=m.endAngle,_=v;_1?l/(n-1):a.max),i||n||(h=l/(Math.ceil(Math.log(s.length)/Math.LN2)+1));var u={},d=(0,em.vM)(o,r);(0,em.xb)(d)?(0,em.S6)(o,function(e){var i=cG(e[t],h,n),r="".concat(i[0],"-").concat(i[1]);(0,em.wH)(u,r)||(u[r]={range:i,count:0}),u[r].count+=1}):Object.keys(d).forEach(function(e){(0,em.S6)(d[e],function(i){var o=cG(i[t],h,n),s="".concat(o[0],"-").concat(o[1]),a="".concat(s,"-").concat(e);(0,em.wH)(u,a)||(u[a]={range:o,count:0},u[a][r]=e),u[a].count+=1})});var c=[];return(0,em.S6)(u,function(e){c.push(e)}),c}var cY="range",cK="count",c$=up({},dc.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function cX(e){var t=e.chart,i=e.options,n=i.data,r=i.binField,o=i.binNumber,s=i.binWidth,a=i.color,l=i.stackField,h=i.legend,u=i.columnStyle,d=cz(n,r,s,o,l);return t.data(d),dn(up({},e,{options:{xField:cY,yField:cK,seriesField:l,isStack:!0,interval:{color:a,style:u}}})),h&&l?t.legend(l,h):t.legend(!1),e}function cj(e){var t,i=e.options,n=i.xAxis,r=i.yAxis;return um(u0(((t={})[cY]=n,t[cK]=r,t)))(e)}function cq(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis;return!1===n?t.axis(cY,!1):t.axis(cY,n),!1===r?t.axis(cK,!1):t.axis(cK,r),e}function cZ(e){var t=e.chart,i=e.options.label,n=uv(t,"interval");if(i){var r=i.callback,o=(0,ef._T)(i,["callback"]);n.label({fields:[cK],callback:r,cfg:uC(o)})}else n.label(!1);return e}function cJ(e){return um(uq,uY("columnStyle"),cX,cj,cq,uZ,cZ,u$,uX,uj)(e)}var cQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="histogram",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c$},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options,i=t.binField,n=t.binNumber,r=t.binWidth,o=t.stackField;this.chart.changeData(cz(e,i,r,n,o))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return cJ},t}(dc),c0=up({},dc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1});rA("marker-active",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.active=function(){var e=this.getView(),t=this.context.event;if(t.data){var i=t.data.items,n=e.geometries.filter(function(e){return"point"===e.type});(0,em.S6)(n,function(e){(0,em.S6)(e.elements,function(e){var t=-1!==(0,em.cx)(i,function(t){return t.data===e.data});e.setState("active",t)})})}},t.prototype.reset=function(){var e=this.getView().geometries.filter(function(e){return"point"===e.type});(0,em.S6)(e,function(e){(0,em.S6)(e.elements,function(e){e.setState("active",!1)})})},t.prototype.getView=function(){return this.context.view},t}(rS)),r3("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var c1=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c0},t.prototype.changeData=function(e){this.updateOption({data:e}),df({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return dS},t}(dc),c2=up({},dc.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),c4=[1,0,0,0,1,0,0,0,1];function c5(e,t){var i=t?(0,ef.ev)([],t,!0):(0,ef.ev)([],c4,!0);return sr.transform(i,e)}var c6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getActiveElements=function(){var e=sr.getDelegationObject(this.context);if(e){var t=this.context.view,i=e.component,n=e.item,r=i.get("field");if(r)return t.geometries[0].elements.filter(function(e){return e.getModel().data[r]===n.value})}return[]},t.prototype.getActiveElementLabels=function(){var e=this.context.view,t=this.getActiveElements();return e.geometries[0].labelsContainer.getChildren().filter(function(e){return t.find(function(t){return(0,em.Xy)(t.getData(),e.get("data"))})})},t.prototype.transfrom=function(e){void 0===e&&(e=7.5);var t=this.getActiveElements(),i=this.getActiveElementLabels();t.forEach(function(t,n){var r=i[n],o=t.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=sr.getAngle(t.getModel(),o),a=(s.startAngle+s.endAngle)/2,l=e,h=l*Math.cos(a),u=l*Math.sin(a);t.shape.setMatrix(c5([["t",h,u]])),r.setMatrix(c5([["t",h,u]]))}})},t.prototype.active=function(){this.transfrom()},t.prototype.reset=function(){this.transfrom(0)},t}(rS),c3=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAnnotations=function(e){return(e||this.context.view).getController("annotation").option},t.prototype.getInitialAnnotation=function(){return this.initialAnnotation},t.prototype.init=function(){var e=this,t=this.context.view;t.removeInteraction("tooltip"),t.on("afterchangesize",function(){var i=e.getAnnotations(t);e.initialAnnotation=i})},t.prototype.change=function(e){var t,i,n=this.context,r=n.view,o=n.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var s=(0,em.U2)(o,["data","data"]);if(o.type.match("legend-item")){var a=sr.getDelegationObject(this.context),l=r.getGroupedFields()[0];if(a&&l){var h=a.item;s=r.getData().find(function(e){return e[l]===h.value})}}if(s){var u=(0,em.U2)(e,"annotations",[]),d=(0,em.U2)(e,"statistic",{});r.getController("annotation").clear(!0),(0,em.S6)(u,function(e){"object"==typeof e&&r.annotation()[e.type](e)}),uI(r,{statistic:d,plotType:"pie"},s),r.render(!0)}var c=((i=this.context.event.target)&&(t=i.get("element")),t);c&&c.shape.toFront()},t.prototype.reset=function(){var e=this.context.view;e.getController("annotation").clear(!0);var t=this.getInitialAnnotation();(0,em.S6)(t,function(t){e.annotation()[t.type](t)}),e.render(!0)},t}(rS),c9="pie-statistic";function c7(e,t){return(0,em.yW)(uh(e,t),function(e){return 0===e[t]})}function c8(e){var t=e.chart,i=e.options,n=i.data,r=i.angleField,o=i.colorField,s=i.color,a=i.pieStyle,l=i.shape,h=uh(n,r);if(c7(h,r)){var u="$$percentage$$";h=h.map(function(e){var t;return(0,ef.pi)((0,ef.pi)({},e),((t={})[u]=1/h.length,t))}),t.data(h);var d=up({},e,{options:{xField:"1",yField:u,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}else{t.data(h);var d=up({},e,{options:{xField:"1",yField:r,seriesField:o,isStack:!0,interval:{color:s,shape:l,style:a},args:{zIndexReversed:!0,sortZIndex:!0}}});dn(d)}return e}function ge(e){var t,i=e.chart,n=e.options,r=n.meta,o=n.colorField,s=up({},r);return i.scale(s,((t={})[o]={type:"cat"},t)),e}function gt(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"theta",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function gi(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=i.angleField,s=t.geometries[0];if(n){var a=n.callback,l=uC((0,ef._T)(n,["callback"]));if(l.content){var h=l.content;l.content=function(e,i,n){var s=e[r],a=e[o],l=t.getScaleByField(o),u=null==l?void 0:l.scale(a);return(0,em.mf)(h)?h((0,ef.pi)((0,ef.pi)({},e),{percent:u}),i,n):(0,em.HD)(h)?uO(h,{value:a,name:s,percentage:(0,em.hj)(u)&&!(0,em.UM)(a)?"".concat((100*u).toFixed(2),"%"):null}):h}}var u=l.type?({inner:"",outer:"pie-outer",spider:"pie-spider"})[l.type]:"pie-outer",d=l.layout?(0,em.kJ)(l.layout)?l.layout:[l.layout]:[];l.layout=(u?[{type:u}]:[]).concat(d),s.label({fields:r?[o,r]:[o],callback:a,cfg:(0,ef.pi)((0,ef.pi)({},l),{offset:function(e,t){var i;switch(e){case"inner":if(i="-30%",(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)>0?i:t;return t<0?t:i;case"outer":if(i=12,(0,em.HD)(t)&&t.endsWith("%"))return .01*parseFloat(t)<0?i:t;return t>0?t:i;default:return t}}(l.type,l.offset),type:"pie"})})}else s.label(!1);return e}function gn(e){var t=e.innerRadius,i=e.statistic,n=e.angleField,r=e.colorField,o=e.meta,s=u3(e.locale);if(t&&i){var a=up({},c2.statistic,i),l=a.title,h=a.content;return!1!==l&&(l=up({},{formatter:function(e){var t=e?e[r]:(0,em.UM)(l.content)?s.get(["statistic","total"]):l.content;return((0,em.U2)(o,[r,"formatter"])||function(e){return e})(t)}},l)),!1!==h&&(h=up({},{formatter:function(e,t){var i,r=e?e[n]:(i=null,(0,em.S6)(t,function(e){"number"==typeof e[n]&&(i+=e[n])}),i),s=(0,em.U2)(o,[n,"formatter"])||function(e){return e};return e?s(r):(0,em.UM)(h.content)?s(r):h.content}},h)),up({},{statistic:{title:l,content:h}},e)}return e}function gr(e){var t=e.chart,i=gn(e.options),n=i.innerRadius,r=i.statistic;return t.getController("annotation").clear(!0),um(u1())(e),n&&r&&uI(t,{statistic:r,plotType:"pie"}),e}function go(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.colorField,o=i.angleField,s=i.data;if(!1===n)t.tooltip(n);else if(t.tooltip(up({},n,{shared:!1})),c7(s,o)){var a=(0,em.U2)(n,"fields"),l=(0,em.U2)(n,"formatter");(0,em.xb)((0,em.U2)(n,"fields"))&&(a=[r,o],l=l||function(e){return{name:e[r],value:(0,em.BB)(e[o])}}),t.geometries[0].tooltip(a.join("*"),u8(a,l))}return e}function gs(e){var t=e.chart,i=gn(e.options),n=i.interactions,r=i.statistic,o=i.annotations;return(0,em.S6)(n,function(e){var i,n;if(!1===e.enable)t.removeInteraction(e.type);else if("pie-statistic-active"===e.type){var s=[];(null===(i=e.cfg)||void 0===i?void 0:i.start)||(s=[{trigger:"element:mouseenter",action:"".concat(c9,":change"),arg:{statistic:r,annotations:o}}]),(0,em.S6)(null===(n=e.cfg)||void 0===n?void 0:n.start,function(e){s.push((0,ef.pi)((0,ef.pi)({},e),{arg:{statistic:r,annotations:o}}))}),t.interaction(e.type,up({},e.cfg,{start:s}))}else t.interaction(e.type,e.cfg||{})}),e}function ga(e){return um(uY("pieStyle"),c8,ge,uq,gt,uK,go,gi,uZ,gr,gs,uj)(e)}rA(c9,c3),r3("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),rA("pie-legend",c6),r3("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="pie",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return c2},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null));var t=this.options,i=this.options.angleField,n=uh(t.data,i),r=uh(e,i);c7(n,i)||c7(r,i)?this.update({data:e}):(this.updateOption({data:e}),this.chart.data(r),gr({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return ga},t}(dc),gh={percent:.2,color:["#FAAD14","#E8EDF3"],animation:{}};function gu(e){var t=(0,em.uZ)(uS(e)?e:0,0,1);return[{current:"".concat(t),type:"current",percent:t},{current:"".concat(t),type:"target",percent:1}]}function gd(e){var t=e.chart,i=e.options,n=i.percent,r=i.progressStyle,o=i.color,s=i.barWidthRatio;return t.data(gu(n)),dn(up({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:s,interval:{style:r,color:(0,em.HD)(o)?[o,"#E8EDF3"]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),t.tooltip(!1),t.axis(!1),t.legend(!1),e}function gc(e){return e.chart.coordinate("rect").transpose(),e}function gg(e){return um(gd,u0({}),gc,uj,uq,u1())(e)}var gp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gh},t.prototype.changeData=function(e){this.updateOption({percent:e}),this.chart.changeData(gu(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gg},t}(dc);function gf(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius;return t.coordinate("theta",{innerRadius:n,radius:r}),e}function gm(e,t){var i=e.chart,n=e.options,r=n.innerRadius,o=n.statistic,s=n.percent,a=n.meta;if(i.getController("annotation").clear(!0),r&&o){var l=(0,em.U2)(a,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},h=o.content;h&&(h=up({},h,{content:(0,em.UM)(h.content)?l(s):h.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},o),{content:h}),plotType:"ring-progress"},{percent:s})}return t&&i.render(!0),e}function gv(e){return um(gd,u0({}),gf,gm,uj,uq,u1())(e)}var gE={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},g_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ring-process",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gE},t.prototype.changeData=function(e){this.chart.emit(M.BEFORE_CHANGE_DATA,o_.fromData(this.chart,M.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:e}),this.chart.data(gu(e)),gm({chart:this.chart,options:this.options},!0),this.chart.emit(M.AFTER_CHANGE_DATA,o_.fromData(this.chart,M.AFTER_CHANGE_DATA,null))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return gv},t}(dc),gC=i(56645),gS={exp:gC.regressionExp,linear:gC.regressionLinear,loess:gC.regressionLoess,log:gC.regressionLog,poly:gC.regressionPoly,pow:gC.regressionPow,quad:gC.regressionQuad},gy=function(e,t){var i=t.view,n=t.options,r=n.xField,o=n.yField,s=i.getScaleByField(r),a=i.getScaleByField(o);return function(e,t,i){var n=[],r=e[0],o=null;if(e.length<=2)return function(e,t){var i=[];if(e.length){i.push(["M",e[0].x,e[0].y]);for(var n=1,r=e.length;n
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},gZ={appendPadding:2,tooltip:(0,ef.pi)({},gq),animation:{}};function gJ(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.areaStyle,s=i.point,a=i.line,l=null==s?void 0:s.state,h=gj(n);t.data(h);var u=up({},e,{options:{xField:"x",yField:"y",area:{color:r,style:o},line:a,point:s}}),d=up({},u,{options:{tooltip:!1}}),c=up({},u,{options:{tooltip:!1,state:l}});return dt(u),dr(d),ds(c),t.axis(!1),t.legend(!1),e}function gQ(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=gj(n.data);return um(u0(((t={}).x=r,t.y=o,t),((i={}).x={type:"cat"},i.y=ua(s,"y"),i)))(e)}function g0(e){return um(uY("areaStyle"),gJ,gQ,u$,uq,uj,u1())(e)}var g1={appendPadding:2,tooltip:(0,ef.pi)({},gq),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},g2=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g1},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g0},t}(dc);function g4(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.columnStyle,s=i.columnWidthRatio,a=gj(n);return t.data(a),dn(up({},e,{options:{xField:"x",yField:"y",widthRatio:s,interval:{style:o,color:r}}})),t.axis(!1),t.legend(!1),t.interaction("element-active"),e}function g5(e){return um(uq,uY("columnStyle"),g4,gQ,u$,uj,u1())(e)}var g6={appendPadding:2,tooltip:(0,ef.pi)({},{showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,t){return"".concat((0,em.U2)(t,[0,"data","y"],0))},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}}),animation:{}},g3=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return g6},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g5},t}(dc);function g9(e){var t=e.chart,i=e.options,n=i.data,r=i.color,o=i.lineStyle,s=i.point,a=null==s?void 0:s.state,l=gj(n);t.data(l);var h=up({},e,{options:{xField:"x",yField:"y",line:{color:r,style:o},point:s}}),u=up({},h,{options:{tooltip:!1,state:a}});return dr(h),ds(u),t.axis(!1),t.legend(!1),e}function g7(e){return um(g9,gQ,uq,u$,uj,u1())(e)}var g8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return gZ},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.chart;gQ({chart:t,options:this.options}),t.changeData(gj(e))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return g7},t}(dc),pe={line:dS,pie:ga,column:dz,bar:dq,area:dA,gauge:cV,"tiny-line":g7,"tiny-column":g5,"tiny-area":g0,"ring-progress":gv,progress:gg,scatter:gM,histogram:cJ,funnel:cR,stock:g$},pt={line:c1,pie:gl,column:d0,bar:dJ,area:dL,gauge:cW,"tiny-line":g8,"tiny-column":g3,"tiny-area":g2,"ring-progress":g_,progress:gp,scatter:gP,histogram:cQ,funnel:cL,stock:gX},pi={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function pn(e,t,i){var n=pt[e];if(!n){console.error("could not find ".concat(e," plot"));return}(0,pe[e])({chart:t,options:up({},n.getDefaultOptions(),(0,em.U2)(pi,e,{}),i)})}function pr(e){var t=e.chart,i=e.options,n=i.views,r=i.legend;return(0,em.S6)(n,function(e){var i=e.region,n=e.data,r=e.meta,o=e.axes,s=e.coordinate,a=e.interactions,l=e.annotations,h=e.tooltip,u=e.geometries,d=t.createView({region:i});d.data(n);var c={};o&&(0,em.S6)(o,function(e,t){c[t]=us(e,un)}),c=up({},r,c),d.scale(c),o?(0,em.S6)(o,function(e,t){d.axis(t,e)}):d.axis(!1),d.coordinate(s),(0,em.S6)(u,function(e){var t=de({chart:d,options:e}).ext,i=e.adjust;i&&t.geometry.adjust(i)}),(0,em.S6)(a,function(e){!1===e.enable?d.removeInteraction(e.type):d.interaction(e.type,e.cfg)}),(0,em.S6)(l,function(e){d.annotation()[e.type]((0,ef.pi)({},e))}),"boolean"==typeof e.animation?d.animate(!1):(d.animate(!0),(0,em.S6)(d.geometries,function(t){t.animate(e.animation)})),h&&(d.interaction("tooltip"),d.tooltip(h))}),r?(0,em.S6)(r,function(e,i){t.legend(i,e)}):t.legend(!1),t.tooltip(i.tooltip),e}function po(e){var t=e.chart,i=e.options,n=i.plots,r=i.data,o=void 0===r?[]:r;return(0,em.S6)(n,function(e){var i=e.type,n=e.region,r=e.options,s=void 0===r?{}:r,a=e.top,l=s.tooltip;if(a){pn(i,t,(0,ef.pi)((0,ef.pi)({},s),{data:o}));return}var h=t.createView((0,ef.pi)({region:n},us(s,dd)));l&&h.interaction("tooltip"),pn(i,h,(0,ef.pi)({data:o},s))}),e}function ps(e){var t=e.chart,i=e.options;return t.option("slider",i.slider),e}function pa(e){return um(uj,pr,po,uX,uj,uq,u$,ps,u1())(e)}rA("association",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getAssociationItems=function(e,t){var i,n=this.context.event,r=t||{},o=r.linkField,s=r.dim,a=[];if(null===(i=n.data)||void 0===i?void 0:i.data){var l=n.data.data;(0,em.S6)(e,function(e){var t,i,n=o;if("x"===s?n=e.getXScale().field:"y"===s?n=null===(t=e.getYScales().find(function(e){return e.field===n}))||void 0===t?void 0:t.field:n||(n=null===(i=e.getGroupScales()[0])||void 0===i?void 0:i.field),n){var r=(0,em.UI)(uE(e),function(t){var i,r,o=!1,s=!1,a=(0,em.kJ)(l)?(0,em.U2)(l[0],n):(0,em.U2)(l,n);return(i=n,r=t.getModel().data,((0,em.kJ)(r)?r[0][i]:r[i])===a)?o=!0:s=!0,{element:t,view:e,active:o,inactive:s}});a.push.apply(a,r)}})}return a},t.prototype.showTooltip=function(e){var t=uM(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){if(e.active){var t=e.element.shape.getCanvasBBox();e.view.showTooltip({x:t.minX+t.width/2,y:t.minY+t.height/2})}})},t.prototype.hideTooltip=function(){var e=uM(this.context.view);(0,em.S6)(e,function(e){e.hideTooltip()})},t.prototype.active=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("active",!0)})},t.prototype.selected=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.active,i=e.element;t&&i.setState("selected",!0)})},t.prototype.highlight=function(e){var t=uD(this.context.view),i=this.getAssociationItems(t,e);(0,em.S6)(i,function(e){var t=e.inactive,i=e.element;t&&i.setState("inactive",!0)})},t.prototype.reset=function(){var e=uD(this.context.view);(0,em.S6)(e,function(e){var t;t=uE(e),(0,em.S6)(t,function(e){e.hasState("active")&&e.setState("active",!1),e.hasState("selected")&&e.setState("selected",!1),e.hasState("inactive")&&e.setState("inactive",!1)})})},t}(rS)),r3("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),r3("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="mix",t}return(0,ef.ZT)(t,e),t.prototype.getSchemaAdaptor=function(){return pa},t}(dc);(L=J||(J={})).DEV="DEV",L.BETA="BETA",L.STABLE="STABLE",Object.defineProperty(function(){},"MultiView",{get:function(){var e,t;return e=J.STABLE,t="MultiView",console.warn(e===J.DEV?"Plot '".concat(t,"' is in DEV stage, just give us issues."):e===J.BETA?"Plot '".concat(t,"' is in BETA stage, DO NOT use it in production env."):e===J.STABLE?"Plot '".concat(t,"' is in STABLE stage, import it by \"import { ").concat(t," } from '@antv/g2plot'\"."):"invalid Stage type."),pl},enumerable:!1,configurable:!0});var ph="first-axes-view",pu="second-axes-view",pd="series-field-key";function pc(e,t,i,n,r){var o=[];t.forEach(function(t){n.forEach(function(n){var r,s=((r={})[e]=n[e],r[i]=t,r[t]=n[t],r);o.push(s)})});var s=Object.values((0,em.vM)(o,i)),a=s[0],l=void 0===a?[]:a,h=s[1],u=void 0===h?[]:h;return r?[l.reverse(),u.reverse()]:[l,u]}function pg(e){return"vertical"!==e}function pp(e,t,i){var n=t[0],r=t[1],o=n.autoPadding,s=r.autoPadding,a=e.__axisPosition,l=a.layout,h=a.position;if(pg(l)&&"top"===h&&(n.autoPadding=i.instance(o.top,0,o.bottom,o.left),r.autoPadding=i.instance(s.top,o.left,s.bottom,0)),pg(l)&&"bottom"===h&&(n.autoPadding=i.instance(o.top,o.right/2+5,o.bottom,o.left),r.autoPadding=i.instance(s.top,s.right,s.bottom,o.right/2+5)),!pg(l)&&"bottom"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=i.instance(o.bottom/2+5,s.right,s.bottom,u)}if(!pg(l)&&"top"===h){var u=o.left>=s.left?o.left:s.left;n.autoPadding=i.instance(o.top,o.right,0,u),r.autoPadding=i.instance(0,s.right,o.top,u)}}function pf(e){var t,i,n=e.chart,r=e.options,o=r.data,s=r.xField,a=r.yField,l=r.color,h=r.barStyle,u=r.widthRatio,d=r.legend,c=r.layout,g=pc(s,a,pd,o,pg(c));d?n.legend(pd,d):!1===d&&n.legend(!1);var p=g[0],f=g[1];return pg(c)?((t=n.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:ph})).coordinate().transpose().reflect("x"),(i=n.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:pu})).coordinate().transpose(),t.data(p),i.data(f)):(t=n.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:ph}),(i=n.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:pu})).coordinate().reflect("y"),t.data(p),i.data(f)),dn(up({},e,{chart:t,options:{widthRatio:u,xField:s,yField:a[0],seriesField:pd,interval:{color:l,style:h}}})),dn(up({},e,{chart:i,options:{xField:s,yField:a[1],seriesField:pd,widthRatio:u,interval:{color:l,style:h}}})),e}function pm(e){var t,i,n,r=e.options,o=e.chart,s=r.xAxis,a=r.yAxis,l=r.xField,h=r.yField,u=ux(o,ph),d=ux(o,pu),c={};return(0,em.XP)((null==r?void 0:r.meta)||{}).map(function(e){(0,em.U2)(null==r?void 0:r.meta,[e,"alias"])&&(c[e]=r.meta[e].alias)}),o.scale(((t={})[pd]={sync:!0,formatter:function(e){return(0,em.U2)(c,e,e)}},t)),u0(((i={})[l]=s,i[h[0]]=a[h[0]],i))(up({},e,{chart:u})),u0(((n={})[l]=s,n[h[1]]=a[h[1]],n))(up({},e,{chart:d})),e}function pv(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField,a=i.layout,l=ux(t,ph),h=ux(t,pu);return(null==n?void 0:n.position)==="bottom"?h.axis(o,(0,ef.pi)((0,ef.pi)({},n),{label:{formatter:function(){return""}}})):h.axis(o,!1),!1===n?l.axis(o,!1):l.axis(o,(0,ef.pi)({position:pg(a)?"top":"bottom"},n)),!1===r?(l.axis(s[0],!1),h.axis(s[1],!1)):(l.axis(s[0],r[s[0]]),h.axis(s[1],r[s[1]])),t.__axisPosition={position:l.getOptions().axes[o].position,layout:a},e}function pE(e){var t=e.chart;return uX(up({},e,{chart:ux(t,ph)})),uX(up({},e,{chart:ux(t,pu)})),e}function p_(e){var t=e.chart,i=e.options,n=i.yField,r=i.yAxis;return u2(up({},e,{chart:ux(t,ph),options:{yAxis:r[n[0]]}})),u2(up({},e,{chart:ux(t,pu),options:{yAxis:r[n[1]]}})),e}function pC(e){var t=e.chart;return uq(up({},e,{chart:ux(t,ph)})),uq(up({},e,{chart:ux(t,pu)})),uq(e),e}function pS(e){var t=e.chart;return uj(up({},e,{chart:ux(t,ph)})),uj(up({},e,{chart:ux(t,pu)})),e}function py(e){var t,i,n=this,r=e.chart,o=e.options,s=o.label,a=o.yField,l=o.layout,h=ux(r,ph),u=ux(r,pu),d=uv(h,"interval"),c=uv(u,"interval");if(s){var g=s.callback,p=(0,ef._T)(s,["callback"]);p.position||(p.position="middle"),void 0===p.offset&&(p.offset=2);var f=(0,ef.pi)({},p);if(pg(l)){var m=(null===(t=f.style)||void 0===t?void 0:t.textAlign)||("middle"===p.position?"center":"left");p.style=up({},p.style,{textAlign:m}),f.style=up({},f.style,{textAlign:{left:"right",right:"left",center:"center"}[m]})}else{var v={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof p.position?p.position=v[p.position]:"function"==typeof p.position&&(p.position=function(){for(var e=[],t=0;t1?"".concat(t,"_").concat(i):"".concat(t)}function pk(e){var t=e.data,i=e.xField,n=e.measureField,r=e.rangeField,o=e.targetField,s=e.layout,a=[],l=[];t.forEach(function(e,t){var s=[e[r]].flat();s.sort(function(e,t){return e-t}),s.forEach(function(n,o){var l,h=0===o?n:s[o]-s[o-1];a.push(((l={rKey:"".concat(r,"_").concat(o)})[i]=i?e[i]:String(t),l[r]=h,l))});var h=[e[n]].flat();h.forEach(function(r,o){var s;a.push(((s={mKey:pM(h,n,o)})[i]=i?e[i]:String(t),s[n]=r,s))});var u=[e[o]].flat();u.forEach(function(n,r){var s;a.push(((s={tKey:pM(u,o,r)})[i]=i?e[i]:String(t),s[o]=n,s))}),l.push(e[r],e[n],e[o])});var h=Math.min.apply(Math,l.flat(1/0)),u=Math.max.apply(Math,l.flat(1/0));return h=h>0?0:h,"vertical"===s&&a.reverse(),{min:h,max:u,ds:a}}function pP(e){var t=e.chart,i=e.options,n=i.bulletStyle,r=i.targetField,o=i.rangeField,s=i.measureField,a=i.xField,l=i.color,h=i.layout,u=i.size,d=i.label,c=pk(i),g=c.min,p=c.max,f=c.ds;return t.data(f),dn(up({},e,{options:{xField:a,yField:o,seriesField:"rKey",isStack:!0,label:(0,em.U2)(d,"range"),interval:{color:(0,em.U2)(l,"range"),style:(0,em.U2)(n,"range"),size:(0,em.U2)(u,"range")}}})),t.geometries[0].tooltip(!1),dn(up({},e,{options:{xField:a,yField:s,seriesField:"mKey",isStack:!0,label:(0,em.U2)(d,"measure"),interval:{color:(0,em.U2)(l,"measure"),style:(0,em.U2)(n,"measure"),size:(0,em.U2)(u,"measure")}}})),ds(up({},e,{options:{xField:a,yField:r,seriesField:"tKey",label:(0,em.U2)(d,"target"),point:{color:(0,em.U2)(l,"target"),style:(0,em.U2)(n,"target"),size:(0,em.mf)((0,em.U2)(u,"target"))?function(e){return(0,em.U2)(u,"target")(e)/2}:(0,em.U2)(u,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&t.coordinate().transpose(),(0,ef.pi)((0,ef.pi)({},e),{ext:{data:{min:g,max:p}}})}function pF(e){var t,i,n=e.options,r=e.ext,o=n.xAxis,s=n.yAxis,a=n.targetField,l=n.rangeField,h=n.measureField,u=n.xField,d=r.data;return um(u0(((t={})[u]=o,t[h]=s,t),((i={})[h]={min:null==d?void 0:d.min,max:null==d?void 0:d.max,sync:!0},i[a]={sync:"".concat(h)},i[l]={sync:"".concat(h)},i)))(e)}function pB(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.measureField,a=i.rangeField,l=i.targetField;return t.axis("".concat(a),!1),t.axis("".concat(l),!1),!1===n?t.axis("".concat(o),!1):t.axis("".concat(o),n),!1===r?t.axis("".concat(s),!1):t.axis("".concat(s),r),e}function pU(e){var t=e.chart,i=e.options.legend;return t.removeInteraction("legend-filter"),t.legend(i),t.legend("rKey",!1),t.legend("mKey",!1),t.legend("tKey",!1),e}function pH(e){var t=e.chart,i=e.options,n=i.label,r=i.measureField,o=i.targetField,s=i.rangeField,a=t.geometries,l=a[0],h=a[1],u=a[2];return(0,em.U2)(n,"range")?l.label("".concat(s),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.range))):l.label(!1),(0,em.U2)(n,"measure")?h.label("".concat(r),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.measure))):h.label(!1),(0,em.U2)(n,"target")?u.label("".concat(o),(0,ef.pi)({layout:[{type:"limit-in-plot"}]},uC(n.target))):u.label(!1),e}function pV(e){um(pP,pF,pB,pU,uq,pH,u$,uX,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="box",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pR},t.prototype.changeData=function(e){this.updateOption({data:e});var t=this.options.yField,i=this.chart.views.find(function(e){return e.id===pA});i&&i.data(e),this.chart.changeData(pL(e,t))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return pD}}(dc);var pW=up({},dc.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bullet",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pW},t.prototype.changeData=function(e){this.updateOption({data:e});var t=pk(this.options),i=t.min,n=t.max,r=t.ds;pF({options:this.options,ext:{data:{min:i,max:n}},chart:this.chart}),this.chart.changeData(r)},t.prototype.getSchemaAdaptor=function(){return pV},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var pG={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null},pz="name",pY="source",pK={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,t){return{offsetX:(e[0]+e[1])/2>.5?-4:4,content:t}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,em.U2)(e,[0,"data","isNode"])},formatter:function(e){var t=e.source,i=e.target,n=e.value;return{name:"".concat(t," -> ").concat(i),value:n}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function p$(e){var t,i,n,r,o,s,a=e.options,l=a.data,h=a.sourceField,u=a.targetField,d=a.weightField,c=a.nodePaddingRatio,g=a.nodeWidthRatio,p=a.rawFields,f=void 0===p?[]:p,m=ul(l,h,u,d),v=(t=(0,em.f0)({},pG,{weight:!0,nodePaddingRatio:c,nodeWidthRatio:g}),i={},n=m.nodes,r=m.links,n.forEach(function(e){i[t.id(e)]=e}),(0,em.U5)(i,function(e,i){e.inEdges=r.filter(function(e){return"".concat(t.target(e))==="".concat(i)}),e.outEdges=r.filter(function(e){return"".concat(t.source(e))==="".concat(i)}),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach(function(i){e.value+=t.targetWeight(i)}),e.outEdges.forEach(function(i){e.value+=t.sourceWeight(i)})}),!(s=({weight:function(e,t){return t.value-e.value},frequency:function(e,t){return t.frequency-e.frequency},id:function(e,t){return"".concat(o.id(e)).localeCompare("".concat(o.id(t)))}})[(o=t).sortBy])&&(0,em.mf)(o.sortBy)&&(s=o.sortBy),s&&n.sort(s),{nodes:function(e,t){var i=e.length;if(!i)throw TypeError("Invalid nodes: it's empty!");if(t.weight){var n=t.nodePaddingRatio;if(n<0||n>=1)throw TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=n/(2*i),o=t.nodeWidthRatio;if(o<=0||o>=1)throw TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var s=0;e.forEach(function(e){s+=e.value}),e.forEach(function(e){e.weight=e.value/s,e.width=e.weight*(1-n),e.height=o}),e.forEach(function(i,n){for(var s=0,a=n-1;a>=0;a--)s+=e[a].width+2*r;var l=i.minX=r+s,h=i.maxX=i.minX+i.width,u=i.minY=t.y-o/2,d=i.maxY=u+o;i.x=[l,h,h,l],i.y=[u,u,d,d]})}else{var a=1/i;e.forEach(function(e,i){e.x=(i+.5)*a,e.y=t.y})}return e}(n,t),links:function(e,t,i){if(i.weight){var n={};(0,em.U5)(e,function(e,t){n[t]=e.value}),t.forEach(function(t){var r=i.source(t),o=i.target(t),s=e[r],a=e[o];if(s&&a){var l=n[r],h=i.sourceWeight(t),u=s.minX+(s.value-l)/s.value*s.width,d=u+h/s.value*s.width;n[r]-=h;var c=n[o],g=i.targetWeight(t),p=a.minX+(a.value-c)/a.value*a.width,f=p+g/a.value*a.width;n[o]-=g;var m=i.y;t.x=[u,d,p,f],t.y=[m,m,m,m],t.source=s,t.target=a}})}else t.forEach(function(t){var n=e[i.source(t)],r=e[i.target(t)];n&&r&&(t.x=[n.x,r.x],t.y=[n.y,r.y],t.source=n,t.target=r)});return t}(i,r,t)}),E=v.nodes,_=v.links,C=E.map(function(e){return(0,ef.pi)((0,ef.pi)({},us(e,(0,ef.ev)(["id","x","y","name"],f,!0))),{isNode:!0})}),S=_.map(function(e){return(0,ef.pi)((0,ef.pi)({source:e.source.name,target:e.target.name,name:e.source.name||e.target.name},us(e,(0,ef.ev)(["x","y","value"],f,!0))),{isNode:!1})});return(0,ef.pi)((0,ef.pi)({},e),{ext:(0,ef.pi)((0,ef.pi)({},e.ext),{chordData:{nodesData:C,edgesData:S}})})}function pX(e){var t;return e.chart.scale(((t={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[pz]={sync:"color"},t[pY]={sync:"color"},t)),e}function pj(e){return e.chart.axis(!1),e}function pq(e){return e.chart.legend(!1),e}function pZ(e){var t=e.chart,i=e.options.tooltip;return t.tooltip(i),e}function pJ(e){return e.chart.coordinate("polar").reflect("y"),e}function pQ(e){var t=e.chart,i=e.options,n=e.ext.chordData.nodesData,r=i.nodeStyle,o=i.label,s=i.tooltip,a=t.createView();return a.data(n),da({chart:a,options:{xField:"x",yField:"y",seriesField:pz,polygon:{style:r},label:o,tooltip:s}}),e}function p0(e){var t=e.chart,i=e.options,n=e.ext.chordData.edgesData,r=i.edgeStyle,o=i.tooltip,s=t.createView();return s.data(n),di({chart:s,options:{xField:"x",yField:"y",seriesField:pY,edge:{style:r,shape:"arc"},tooltip:o}}),e}function p1(e){var t=e.chart;return uk(t,e.options.animation,0>=(0,em.U2)(t,["views","length"],0)?t.geometries:(0,em.u4)(t.views,function(e,t){return e.concat(t.geometries)},t.geometries)),e}function p2(e){return um(uq,p$,pJ,pX,pj,pq,pZ,p0,pQ,uX,uZ,p1)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="chord",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return pK},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return p2}}(dc);var p4=["x","y","r","name","value","path","depth"],p5={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},p6="drilldown-bread-crumb",p3={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},p9="hierarchy-data-transform-params",p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=p3,t}return(0,ef.ZT)(t,e),t.prototype.click=function(){var e=(0,em.U2)(this.context,["event","data","data"]);if(!e)return!1;this.drill(e),this.drawBreadCrumb()},t.prototype.resetPosition=function(){if(this.breadCrumbGroup){var e=this.context.view.getCoordinate(),t=this.breadCrumbGroup,i=t.getBBox(),n=this.getButtonCfg().position,r={x:e.start.x,y:e.end.y-(i.height+10)};e.isPolar&&(r={x:0,y:0}),"bottom-left"===n&&(r={x:e.start.x,y:e.start.y});var o=sr.transform(null,[["t",r.x+0,r.y+i.height+5]]);t.setMatrix(o)}},t.prototype.back=function(){(0,em.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},t.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},t.prototype.drill=function(e){var t=this.context.view,i=(0,em.U2)(t,["interactions","drill-down","cfg","transformData"],function(e){return e}),n=i((0,ef.pi)({data:e.data},e[p9]));t.changeData(n);for(var r=[],o=e;o;){var s=o.data;r.unshift({id:"".concat(s.name,"_").concat(o.height,"_").concat(o.depth),name:s.name,children:i((0,ef.pi)({data:s},e[p9]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(r)},t.prototype.backTo=function(e){if(e&&!(e.length<=0)){var t=this.context.view,i=(0,em.Z$)(e).children;t.changeData(i),e.length>1?(this.historyCache=e,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},t.prototype.getButtonCfg=function(){var e=this.context.view,t=(0,em.U2)(e,["interactions","drill-down","cfg","drillDownConfig"]);return up(this.breadCrumbCfg,null==t?void 0:t.breadCrumb,this.cfg)},t.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},t.prototype.drawBreadCrumbGroup=function(){var e=this,t=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:p6});var n=0;i.forEach(function(r,o){var s=e.breadCrumbGroup.addShape({type:"text",id:r.id,name:"".concat(p6,"_").concat(r.name,"_text"),attrs:(0,ef.pi)((0,ef.pi)({text:0!==o||(0,em.UM)(t.rootText)?r.name:t.rootText},t.textStyle),{x:n,y:0})}),a=s.getBBox();if(n+=a.width+4,s.on("click",function(t){var n,r=t.target.get("id");if(r!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)){var o=i.slice(0,i.findIndex(function(e){return e.id===r})+1);e.backTo(o)}}),s.on("mouseenter",function(e){var n;e.target.get("id")!==(null===(n=(0,em.Z$)(i))||void 0===n?void 0:n.id)?s.attr(t.activeTextStyle):s.attr({cursor:"default"})}),s.on("mouseleave",function(){s.attr(t.textStyle)}),o0&&i*i>n*n+r*r}function fi(e,t){for(var i=0;i(s*=s)?(n=(h+s-r)/(2*h),o=Math.sqrt(Math.max(0,s/h-n*n)),i.x=e.x-n*a-o*l,i.y=e.y-n*l+o*a):(n=(h+r-s)/(2*h),o=Math.sqrt(Math.max(0,r/h-n*n)),i.x=t.x+n*a-o*l,i.y=t.y+n*l+o*a)):(i.x=t.x+i.r,i.y=t.y)}function fs(e,t){var i=e.r+t.r-1e-6,n=t.x-e.x,r=t.y-e.y;return i>0&&i*i>n*n+r*r}function fa(e){var t=e._,i=e.next._,n=t.r+i.r,r=(t.x*i.r+i.x*t.r)/n,o=(t.y*i.r+i.y*t.r)/n;return r*r+o*o}function fl(e){this._=e,this.next=null,this.previous=null}function fh(e){var t,i,n,r,o,s,a,l,h,u,d,c;if(!(r=(e="object"==typeof(c=e)&&"length"in c?c:Array.from(c)).length))return 0;if((t=e[0]).x=0,t.y=0,!(r>1))return t.r;if(i=e[1],t.x=-i.r,i.x=t.r,i.y=0,!(r>2))return t.r+i.r;fo(i,t,n=e[2]),t=new fl(t),i=new fl(i),n=new fl(n),t.next=n.previous=i,i.next=t.previous=n,n.next=i.previous=t;e:for(a=3;a=0;)t+=i[n].value;else t=1;e.value=t}function fC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=fy)):void 0===t&&(t=fS);for(var i,n,r,o,s,a=new fA(e),l=[a];i=l.pop();)if((r=t(i.data))&&(s=(r=Array.from(r)).length))for(i.children=r,o=s-1;o>=0;--o)l.push(n=r[o]=new fA(r[o])),n.parent=i,n.depth=i.depth+1;return a.eachBefore(fb)}function fS(e){return e.children}function fy(e){return Array.isArray(e)?e[1]:null}function fT(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function fb(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function fA(e){this.data=e,this.depth=this.height=0,this.parent=null}fA.prototype=fC.prototype={constructor:fA,count:function(){return this.eachAfter(f_)},each:function(e,t){let i=-1;for(let n of this)e.call(t,n,++i,this);return this},eachAfter:function(e,t){for(var i,n,r,o=this,s=[o],a=[],l=-1;o=s.pop();)if(a.push(o),i=o.children)for(n=0,r=i.length;n=0;--n)o.push(i[n]);return this},find:function(e,t){let i=-1;for(let n of this)if(e.call(t,n,++i,this))return n},sum:function(e){return this.eachAfter(function(t){for(var i=+e(t.data)||0,n=t.children,r=n&&n.length;--r>=0;)i+=n[r].value;t.value=i})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,i=function(e,t){if(e===t)return e;var i=e.ancestors(),n=t.ancestors(),r=null;for(e=i.pop(),t=n.pop();e===t;)r=e,e=i.pop(),t=n.pop();return r}(t,e),n=[t];t!==i;)n.push(t=t.parent);for(var r=n.length;e!==i;)n.splice(r,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(i){i!==e&&t.push({source:i.parent,target:i})}),t},copy:function(){return fC(this).eachBefore(fT)},[Symbol.iterator]:function*(){var e,t,i,n,r=this,o=[r];do for(e=o.reverse(),o=[];r=e.pop();)if(yield r,t=r.children)for(i=0,n=t.length;i0&&i1;)n="".concat(null===(t=s.parent.data)||void 0===t?void 0:t.name," / ").concat(n),s=s.parent;if(o&&e.depth>2)return null;var l=up({},e.data,(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,r)),{path:n}),e));l.ext=i,l[p9]={hierarchyConfig:i,rawFields:r,enableDrillDown:o},a.push(l)}),a}function fM(e,t,i){var n=ub([e,t]),r=n[0],o=n[1],s=n[2],a=n[3],l=i.width,h=i.height,u=l-(a+o),d=h-(r+s),c=Math.min(u,d),g=(u-c)/2,p=(d-c)/2;return{finalPadding:[r+p,o+g,s+p,a+g],finalSize:c<0?0:c}}function fk(e){var t=e.chart,i=Math.min(t.viewBBox.width,t.viewBBox.height);return up({options:{size:function(e){return e.r*i}}},e)}function fP(e){var t=e.options,i=e.chart,n=i.viewBBox,r=t.padding,o=t.appendPadding,s=t.drilldown,a=o;(null==s?void 0:s.enabled)&&(a=ub([uT(i.appendPadding,(0,em.U2)(s,["breadCrumb","position"])),o]));var l=fM(r,a,n).finalPadding;return i.padding=l,i.appendPadding=0,e}function fF(e){var t=e.chart,i=e.options,n=t.padding,r=t.appendPadding,o=i.color,s=i.colorField,a=i.pointStyle,l=i.hierarchyConfig,h=i.sizeField,u=i.rawFields,d=void 0===u?[]:u,c=i.drilldown,g=fD({data:i.data,hierarchyConfig:l,enableDrillDown:null==c?void 0:c.enabled,rawFields:d});t.data(g);var p=fM(n,r,t.viewBBox).finalSize,f=function(e){return e.r*p};return h&&(f=function(e){return e[h]*p}),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:s,sizeField:h,rawFields:(0,ef.ev)((0,ef.ev)([],p4,!0),d,!0),point:{color:o,style:a,shape:"circle",size:f}}})),e}function fB(e){return um(u0({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function fU(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,["name","formatter"],function(e){return e}),r=(0,em.U2)(i,["value","formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data.name),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function fH(e){return e.chart.axis(!1),e}function fV(e){var t,i,n;return uX({chart:e.chart,options:(i=(t=e.options).drilldown,n=t.interactions,(null==i?void 0:i.enabled)?up({},t,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===n?[]:n,!0),[{type:"drill-down",cfg:{drillDownConfig:i,transformData:fD,enableDrillDown:!0}}],!1)}):t)}),e}function fW(e){return um(uY("pointStyle"),fk,fP,uq,fB,fF,fH,uK,fU,fV,uj,u1())(e)}function fG(e){var t=(0,em.U2)(e,["event","data","data"],{});return(0,em.kJ)(t.children)&&t.children.length>0}function fz(e){var t=e.view.getCoordinate(),i=t.innerRadius;if(i){var n=e.event,r=n.x,o=n.y,s=t.center;return Math.sqrt(Math.pow(s.x-r,2)+Math.pow(s.y-o,2))-1)||(t=Math.min(h,u),i=Math.max(h,u),n>=t&&n<=i)}),e.getRootView().render(!0)}};function f4(e){var t,i=e.options,n=i.geometryOptions,r=void 0===n?[]:n,o=i.xField,s=i.yField,a=(0,em.yW)(r,function(e){var t=e.geometry;return t===et.Line||void 0===t});return up({},{options:{geometryOptions:[],meta:((t={})[o]={type:"cat",sync:!0,range:a?[0,1]:void 0},t),tooltip:{showMarkers:a,showCrosshairs:a,shared:!0,crosshairs:{type:"x"}},interactions:a?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:fQ(s,i.yAxis),geometryOptions:[fJ(o,s[0],r[0]),fJ(o,s[1],r[1])],annotations:fQ(s,i.annotations)}})}function f5(e){var t,i,n=e.chart,r=e.options.geometryOptions,o={line:0,column:1};return[{type:null===(t=r[0])||void 0===t?void 0:t.geometry,id:fY},{type:null===(i=r[1])||void 0===i?void 0:i.geometry,id:fK}].sort(function(e,t){return-o[e.type]+o[t.type]}).forEach(function(e){return n.createView({id:e.id})}),e}function f6(e){var t=e.chart,i=e.options,n=i.xField,r=i.yField,o=i.geometryOptions,s=i.data,a=i.tooltip;return[(0,ef.pi)((0,ef.pi)({},o[0]),{id:fY,data:s[0],yField:r[0]}),(0,ef.pi)((0,ef.pi)({},o[1]),{id:fK,data:s[1],yField:r[1]})].forEach(function(e){var i=e.id,r=e.data,o=e.yField,s=fZ(e)&&e.isPercent,l=s?dg(r,o,n,o):r,h=ux(t,i).data(l),u=s?(0,ef.pi)({formatter:function(t){return{name:t[e.seriesField]||o,value:(100*Number(t[o])).toFixed(2)+"%"}}},a):a;!function(e){var t=e.options,i=e.chart,n=t.geometryOption,r=n.isStack,o=n.color,s=n.seriesField,a=n.groupField,l=n.isGroup,h=["xField","yField"];if(fq(n)){dr(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{line:{color:n.color,style:n.lineStyle}})})),ds(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{point:n.point&&(0,ef.pi)({color:o,shape:"circle"},n.point)})}));var u=[];l&&u.push({type:"dodge",dodgeBy:a||s,customOffset:0}),r&&u.push({type:"stack"}),u.length&&(0,em.S6)(i.geometries,function(e){e.adjust(u)})}fZ(n)&&dz(up({},e,{options:(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(t,h)),n),{widthRatio:n.columnWidthRatio,interval:(0,ef.pi)((0,ef.pi)({},us(n,["color"])),{style:n.columnStyle})})}))}({chart:h,options:{xField:n,yField:o,tooltip:u,geometryOption:e}})}),e}function f3(e){var t,i=e.chart,n=e.options.geometryOptions,r=(null===(t=i.getTheme())||void 0===t?void 0:t.colors10)||[],o=0;return i.once("beforepaint",function(){(0,em.S6)(n,function(e,t){var n=ux(i,0===t?fY:fK);if(!e.color){var s=n.getGroupScales(),a=(0,em.U2)(s,[0,"values","length"],1),l=r.slice(o,o+a).concat(0===t?[]:r);n.geometries.forEach(function(t){e.seriesField?t.color(e.seriesField,l):t.color(l[0])}),o+=a}}),i.render(!0)}),e}function f9(e){var t,i,n=e.chart,r=e.options,o=r.xAxis,s=r.yAxis,a=r.xField,l=r.yField;return u0(((t={})[a]=o,t[l[0]]=s[0],t))(up({},e,{chart:ux(n,fY)})),u0(((i={})[a]=o,i[l[1]]=s[1],i))(up({},e,{chart:ux(n,fK)})),e}function f7(e){var t=e.chart,i=e.options,n=ux(t,fY),r=ux(t,fK),o=i.xField,s=i.yField,a=i.xAxis,l=i.yAxis;return t.axis(o,!1),t.axis(s[0],!1),t.axis(s[1],!1),n.axis(o,a),n.axis(s[0],f0(l[0],ee.Left)),r.axis(o,!1),r.axis(s[1],f0(l[1],ee.Right)),e}function f8(e){var t=e.chart,i=e.options.tooltip,n=ux(t,fY),r=ux(t,fK);return t.tooltip(i),n.tooltip({shared:!0}),r.tooltip({shared:!0}),e}function me(e){var t=e.chart;return uX(up({},e,{chart:ux(t,fY)})),uX(up({},e,{chart:ux(t,fK)})),e}function mt(e){var t=e.chart,i=e.options.annotations,n=(0,em.U2)(i,[0]),r=(0,em.U2)(i,[1]);return u1(n)(up({},e,{chart:ux(t,fY),options:{annotations:n}})),u1(r)(up({},e,{chart:ux(t,fK),options:{annotations:r}})),e}function mi(e){var t=e.chart;return uq(up({},e,{chart:ux(t,fY)})),uq(up({},e,{chart:ux(t,fK)})),uq(e),e}function mn(e){var t=e.chart;return uj(up({},e,{chart:ux(t,fY)})),uj(up({},e,{chart:ux(t,fK)})),e}function mr(e){var t=e.chart,i=e.options.yAxis;return u2(up({},e,{chart:ux(t,fY),options:{yAxis:i[0]}})),u2(up({},e,{chart:ux(t,fK),options:{yAxis:i[1]}})),e}function mo(e){var t=e.chart,i=e.options,n=i.legend,r=i.geometryOptions,o=i.yField,s=i.data,a=ux(t,fY),l=ux(t,fK);if(!1===n)t.legend(!1);else if((0,em.Kn)(n)&&!0===n.custom)t.legend(n);else{var h=(0,em.U2)(r,[0,"legend"],n),u=(0,em.U2)(r,[1,"legend"],n);t.once("beforepaint",function(){var e=s[0].length?f1({view:a,geometryOption:r[0],yField:o[0],legend:h}):[],i=s[1].length?f1({view:l,geometryOption:r[1],yField:o[1],legend:u}):[];t.legend(up({},n,{custom:!0,items:e.concat(i)}))}),r[0].seriesField&&a.legend(r[0].seriesField,h),r[1].seriesField&&l.legend(r[1].seriesField,u),t.on("legend-item:click",function(e){var i=(0,em.U2)(e,"gEvent.delegateObject",{});if(i&&i.item){var n=i.item,r=n.value,s=n.isGeometry,a=n.viewId;if(s){if((0,em.cx)(o,function(e){return e===r})>-1){var l=(0,em.U2)(ux(t,a),"geometries");(0,em.S6)(l,function(e){e.changeVisible(!i.item.unchecked)})}}else{var h=(0,em.U2)(t.getController("legend"),"option.items",[]);(0,em.S6)(t.views,function(e){var i=e.getGroupScales();(0,em.S6)(i,function(t){t.values&&t.values.indexOf(r)>-1&&e.filter(t.field,function(e){return!(0,em.sE)(h,function(t){return t.value===e}).unchecked})}),t.render(!0)})}}})}return e}function ms(e){var t=e.chart,i=e.options.slider,n=ux(t,fY),r=ux(t,fK);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(e){var t=e.event,i=t.value,n=t.originValue;(0,em.Xy)(i,n)||f2(r,i)}),t.once("afterpaint",function(){if(!(0,em.jn)(i)){var e=i.start,t=i.end;(e||t)&&f2(r,[e,t])}})),e}function ma(e){return um(f4,f5,mi,f6,f9,f7,mr,f8,me,mt,mn,f3,mo,ms)(e)}function ml(e){var t=e.chart,i=e.options,n=i.type,r=i.data,o=i.fields,s=i.eachView,a=(0,em.CE)(i,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return t.data(r),t.facet(n,(0,ef.pi)((0,ef.pi)({},a),{fields:o,eachView:function(e,t){var i,n,r,o,a,l,h,u,d,c,g=s(e,t);if(g.geometries)i=g.data,n=g.coordinate,r=g.interactions,o=g.annotations,a=g.animation,l=g.tooltip,h=g.axes,u=g.meta,d=g.geometries,i&&e.data(i),c={},h&&(0,em.S6)(h,function(e,t){c[t]=us(e,un)}),c=up({},u,c),e.scale(c),n&&e.coordinate(n),!1===h?e.axis(!1):(0,em.S6)(h,function(t,i){e.axis(i,t)}),(0,em.S6)(d,function(t){var i=de({chart:e,options:t}).ext,n=t.adjust;n&&i.geometry.adjust(n)}),(0,em.S6)(r,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)}),(0,em.S6)(o,function(t){e.annotation()[t.type]((0,ef.pi)({},t))}),uk(e,a),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip");else{var p=g.options;p.tooltip&&e.interaction("tooltip"),pn(g.type,e,p)}}})),e}function mh(e){var t=e.chart,i=e.options,n=i.axes,r=i.meta,o=i.tooltip,s=i.coordinate,a=i.theme,l=i.legend,h=i.interactions,u=i.annotations,d={};return n&&(0,em.S6)(n,function(e,t){d[t]=us(e,un)}),d=up({},r,d),t.scale(d),t.coordinate(s),n?(0,em.S6)(n,function(e,i){t.axis(i,e)}):t.axis(!1),o?(t.interaction("tooltip"),t.tooltip(o)):!1===o&&t.removeInteraction("tooltip"),t.legend(l),a&&t.theme(a),(0,em.S6)(h,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)}),(0,em.S6)(u,function(e){t.annotation()[e.type]((0,ef.pi)({},e))}),e}function mu(e){return um(uq,ml,mh)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dual-axes",t}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},t.prototype.getSchemaAdaptor=function(){return ma}}(dc);var md={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};function mc(e){var t=e.chart,i=e.options,n=i.data,r=i.type,o=i.xField,s=i.yField,a=i.colorField,l=i.sizeField,h=i.sizeRatio,u=i.shape,d=i.color,c=i.tooltip,g=i.heatmapStyle,p=i.meta;t.data(n);var f="polygon";"density"===r&&(f="heatmap");var m=u9(c,[o,s,a]),v=m.fields,E=m.formatter,_=1;return(h||0===h)&&(u||l?h<0||h>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):_=h:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),de(up({},e,{options:{type:f,colorField:a,tooltipFields:v,shapeField:l||"",label:void 0,mapping:{tooltip:E,shape:u&&(l?function(e){var t=n.map(function(e){return e[l]}),i=(null==p?void 0:p[l])||{},r=i.min,o=i.max;return r=(0,em.hj)(r)?r:Math.min.apply(Math,t),o=(0,em.hj)(o)?o:Math.max.apply(Math,t),[u,((0,em.U2)(e,l)-r)/(o-r),_]}:function(){return[u,1,_]}),color:d||a&&t.getTheme().sequenceColors.join("-"),style:g}}})),e}function mg(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mp(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?t.axis(s,!1):t.axis(s,r),e}function mf(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField,o=i.sizeField,s=i.sizeLegend,a=!1!==n;return r&&t.legend(r,!!a&&n),o&&t.legend(o,void 0===s?n:s),a||s||t.legend(!1),e}function mm(e){var t=e.chart,i=e.options,n=i.label,r=i.colorField,o=uv(t,"density"===i.type?"heatmap":"polygon");if(n){if(r){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}}else o.label(!1);return e}function mv(e){var t,i,n=e.chart,r=e.options,o=r.coordinate,s=r.reflect,a=up({actions:[]},null!=o?o:{type:"rect"});return s&&(null===(i=null===(t=a.actions)||void 0===t?void 0:t.push)||void 0===i||i.call(t,["reflect",s])),n.coordinate(a),e}function mE(e){return um(uq,uY("heatmapStyle"),mg,mv,mc,mp,mf,u$,mm,u1(),uX,uj,uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="area",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return md},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mu}}(dc);var m_=up({},dc.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});function mC(e){return[{percent:e,type:"liquid"}]}function mS(e){var t=e.chart,i=e.options,n=i.percent,r=i.liquidStyle,o=i.radius,s=i.outline,a=i.wave,l=i.shape,h=i.shapeStyle,u=i.animation;t.scale({percent:{min:0,max:1}}),t.data(mC(n));var d=dn(up({},e,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:i.color||t.getTheme().defaultColor,style:r,shape:"liquid-fill-gauge"}}})).ext.geometry,c=t.getTheme().background;return d.customInfo({percent:n,radius:o,outline:s,wave:a,shape:l,shapeStyle:h,background:c,animation:u}),t.legend(!1),t.axis(!1),t.tooltip(!1),e}function my(e,t){var i=e.chart,n=e.options,r=n.statistic,o=n.percent,s=n.meta;i.getController("annotation").clear(!0);var a=(0,em.U2)(s,["percent","formatter"])||function(e){return"".concat((100*e).toFixed(2),"%")},l=r.content;return l&&(l=up({},l,{content:(0,em.UM)(l.content)?a(o):l.content})),uI(i,{statistic:(0,ef.pi)((0,ef.pi)({},r),{content:l}),plotType:"liquid"},{percent:o}),t&&i.render(!0),e}function mT(e){return um(uq,uY("liquidStyle"),mS,my,u0({}),uj,uX)(e)}o$("polygon","circle",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y))/2,l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("circle",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r,y:o,r:h},e.defaultStyle),e.style),{fill:u})})}}),o$("polygon","square",{draw:function(e,t){var i,n,r=e.x,o=e.y,s=this.parsePoints(e.points),a=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y)),l=Number(e.shape[1]),h=a*Math.sqrt(Number(e.shape[2]))*Math.sqrt(l),u=(null===(i=e.style)||void 0===i?void 0:i.fill)||e.color||(null===(n=e.defaultStyle)||void 0===n?void 0:n.fill);return t.addShape("rect",{attrs:(0,ef.pi)((0,ef.pi)((0,ef.pi)({x:r-h/2,y:o-h/2,width:h,height:h},e.defaultStyle),e.style),{fill:u})})}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="heatmap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return m_},t.prototype.getSchemaAdaptor=function(){return mE},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var mb={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},mA={pin:function(e,t,i,n){var r=2*i/3,o=Math.max(r,n),s=r/2,a=s+t-o/2,l=Math.asin(s/((o-s)*.85)),h=Math.sin(l)*s,u=Math.cos(l)*s,d=e-u,c=a+h,g=a+s/Math.sin(l);return"\n M ".concat(d," ").concat(c,"\n A ").concat(s," ").concat(s," 0 1 1 ").concat(d+2*u," ").concat(c,"\n Q ").concat(e," ").concat(g," ").concat(e," ").concat(t+o/2,"\n Q ").concat(e," ").concat(g," ").concat(d," ").concat(c,"\n Z \n ")},circle:function(e,t,i,n){var r=i/2,o=n/2;return"\n M ".concat(e," ").concat(t-o," \n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(r," ").concat(o," 0 1 0 0 ").concat(-(2*o),"\n Z\n ")},diamond:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t,"\n L ").concat(e," ").concat(t+r,"\n L ").concat(e-o," ").concat(t,"\n Z\n ")},triangle:function(e,t,i,n){var r=n/2,o=i/2;return"\n M ".concat(e," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")},rect:function(e,t,i,n){var r=n/2,o=i/2*.618;return"\n M ".concat(e-o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t-r,"\n L ").concat(e+o," ").concat(t+r,"\n L ").concat(e-o," ").concat(t+r,"\n Z\n ")}};function mR(e){var t=e.chart,i=e.options,n=i.data,r=i.lineStyle,o=i.color,s=i.point,a=i.area;t.data(n);var l=up({},e,{options:{line:{style:r,color:o},point:s?(0,ef.pi)({color:o},s):s,area:a?(0,ef.pi)({color:o},a):a,label:void 0}}),h=up({},l,{options:{tooltip:!1}}),u=up({},l,{options:{tooltip:!1,state:(null==s?void 0:s.state)||i.state}});return dr(l),ds(u),dt(h),e}function mL(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mN(e){var t=e.chart,i=e.options,n=i.radius,r=i.startAngle,o=i.endAngle;return t.coordinate("polar",{radius:n,startAngle:r,endAngle:o}),e}function mI(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis,o=i.yField,s=i.yAxis;return t.axis(n,r),t.axis(o,s),e}function mw(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"line");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:uC(a)})}else o.label(!1);return e}function mO(e){return um(mR,mL,uq,mN,mI,uK,u$,mw,uX,uj,u1())(e)}function mx(e){var t=e.chart,i=e.options,n=i.barStyle,r=i.color,o=i.tooltip,s=i.colorField,a=i.type,l=i.xField,h=i.yField,u=i.data,d=i.shape,c=uh(u,h);return t.data(c),dn(up({},e,{options:{tooltip:o,seriesField:s,interval:{style:n,color:r,shape:d||("line"===a?"line":"intervel")},minColumnWidth:i.minBarWidth,maxColumnWidth:i.maxBarWidth,columnBackground:i.barBackground}})),"line"===a&&ds({chart:t,options:{xField:l,yField:h,seriesField:s,point:{shape:"circle",color:r}}}),e}function mD(e){var t,i,n,r,o,s=e.options,a=s.yField,l=s.xField,h=s.data,u=s.isStack,d=s.isGroup,c=s.colorField,g=s.maxAngle,p=uh(u&&!d&&c?(t=[],h.forEach(function(e){var i=t.find(function(t){return t[l]===e[l]});i?i[a]+=e[a]||null:t.push((0,ef.pi)({},e))}),t):h,a);return um(u0(((o={})[a]={min:0,max:(n=(i=p.map(function(e){return e[a]}).filter(function(e){return void 0!==e})).length>0?Math.max.apply(Math,i):0,(r=Math.abs(g)%360)?360*n/r:n)},o)))(e)}function mM(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}).transpose(),e}function mk(e){var t=e.chart,i=e.options,n=i.xField,r=i.xAxis;return t.axis(n,r),e}function mP(e){var t=e.chart,i=e.options,n=i.label,r=i.yField,o=uv(t,"interval");if(n){var s=n.callback,a=(0,ef._T)(n,["callback"]);o.label({fields:[r],callback:s,cfg:(0,ef.pi)((0,ef.pi)({},uC(a)),{type:"polar"})})}else o.label(!1);return e}function mF(e){return um(uY("barStyle"),mx,mD,mk,mM,uX,uj,uq,u$,uK,u1(),mP)(e)}o$("interval","liquid-fill-gauge",{draw:function(e,t){var i,n,r,o=e.customInfo,s=o.percent,a=o.radius,l=o.shape,h=o.shapeStyle,u=o.background,d=o.animation,c=o.outline,g=o.wave,p=c.border,f=c.distance,m=g.count,v=g.length,E=(0,em.u4)(e.points,function(e,t){return Math.min(e,t.x)},1/0),_=this.parsePoint({x:.5,y:.5}),C=this.parsePoint({x:E,y:.5}),S=Math.min(_.x-C.x,C.y*a),y=(i=(0,ef.pi)({opacity:1},e.style),e.color&&!i.fill&&(i.fill=e.color),i),T=(n=(0,em.CD)({},e,c),r=(0,em.CD)({},{fill:"#fff",fillOpacity:0,lineWidth:4},n.style),n.color&&!r.stroke&&(r.stroke=n.color),(0,em.hj)(n.opacity)&&(r.opacity=r.strokeOpacity=n.opacity),r),b=S-p/2,A=("function"==typeof l?l:mA[l]||mA.circle)(_.x,_.y,2*b,2*b);if(h&&t.addShape("path",{name:"shape",attrs:(0,ef.pi)({path:A},h)}),s>0){var R=t.addGroup({name:"waves"}),L=R.setClip({type:"path",attrs:{path:A}});!function(e,t,i,n,r,o,s,a,l,h){for(var u=r.fill,d=r.opacity,c=s.getBBox(),g=c.maxX-c.minX,p=c.maxY-c.minY,f=0;f0;)h-=2*Math.PI;var u=o-e+(h=h/Math.PI/2*i)-2*e;l.push(["M",u,t]);for(var d=0,c=0;c0){var s=this.view.geometries[0],a=s.dataArray,l=o[0].name,h=[];return a.forEach(function(e){e.forEach(function(e){var t=sr.getTooltipItems(e,s)[0];if(!n&&t&&t.name===l){var i=(0,em.UM)(r)?l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}else if(n&&t){var i=(0,em.UM)(r)?t.name||l:r;h.push((0,ef.pi)((0,ef.pi)({},t),{name:t.title,title:i}))}})}),h}return[]},t}(oN),ov["radar-tooltip"]=w,rA("radar-tooltip",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.init=function(){this.context.view.removeInteraction("tooltip")},t.prototype.show=function(){var e=this.context.event;this.getTooltipController().showTooltip({x:e.x,y:e.y})},t.prototype.hide=function(){this.getTooltipController().hideTooltip()},t.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},t}(rS)),r3("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radar",t}(0,ef.ZT)(t,e),t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return up({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},t.prototype.getSchemaAdaptor=function(){return mO}}(dc);var mB=up({},dc.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});function mU(e){var t=e.chart,i=e.options,n=i.data,r=i.sectorStyle,o=i.shape,s=i.color;return t.data(n),um(dn)(up({},e,{options:{marginRatio:1,interval:{style:r,color:s,shape:o}}})),e}function mH(e){var t=e.chart,i=e.options,n=i.label,r=i.xField,o=uv(t,"interval");if(!1===n)o.label(!1);else if((0,em.Kn)(n)){var s=n.callback,a=n.fields,l=(0,ef._T)(n,["callback","fields"]),h=l.offset,u=l.layout;(void 0===h||h>=0)&&(u=u?(0,em.kJ)(u)?u:[u]:[],l.layout=(0,em.hX)(u,function(e){return"limit-in-shape"!==e.type}),l.layout.length||delete l.layout),o.label({fields:a||[r],callback:s,cfg:uC(l)})}else uo(X.WARN,null===n,"the label option must be an Object."),o.label({fields:[r]});return e}function mV(e){var t=e.chart,i=e.options,n=i.legend,r=i.seriesField;return!1===n?t.legend(!1):r&&t.legend(r,n),e}function mW(e){var t=e.chart,i=e.options,n=i.radius,r=i.innerRadius,o=i.startAngle,s=i.endAngle;return t.coordinate({type:"polar",cfg:{radius:n,innerRadius:r,startAngle:o,endAngle:s}}),e}function mG(e){var t,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return um(u0(((t={})[o]=n,t[s]=r,t)))(e)}function mz(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return n?t.axis(o,n):t.axis(o,!1),r?t.axis(s,r):t.axis(s,!1),e}function mY(e){um(uY("sectorStyle"),mU,mG,mH,mW,mz,mV,u$,uX,uj,uq,u1(),uZ)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="radial-bar",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mB},t.prototype.changeData=function(e){this.updateOption({data:e}),mD({chart:this.chart,options:this.options}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mF}}(dc);var mK=up({},dc.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rose",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return mK},t.prototype.changeData=function(e){this.updateOption({data:e}),this.chart.changeData(e)},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return mY}}(dc);var m$="name",mX="nodes",mj="edges";function mq(e){return e.target.depth}function mZ(e,t){return e.sourceLinks.length?e.depth:t-1}function mJ(e){return function(){return e}}function mQ(e,t){for(var i=0,n=0;no.findIndex(function(n){return n==="".concat(e[t],"_").concat(e[i])})})}(p,f,m),f,m,v,R);var L=(n={nodeAlign:E,nodePadding:uS(C)?C/i:S,nodeWidth:uS(y)?y/t:T,nodeSort:_,nodeDepth:b},o=(r=(0,em.f0)({},vt,n)).nodeId,s=r.nodeSort,a=r.nodeAlign,l=r.nodeWidth,h=r.nodePadding,u=r.nodeDepth,{nodes:(d=(function(){var e,t,i,n,r=0,o=0,s=1,a=1,l=24,h=8,u=m6,d=mZ,c=m3,g=m9,p=6;function f(f){var v={nodes:c(f),links:g(f)};return function(e){var t=e.nodes,n=e.links;t.forEach(function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]});var r=new Map(t.map(function(e){return[u(e),e]}));if(n.forEach(function(e,t){e.index=t;var i=e.source,n=e.target;"object"!=typeof i&&(i=e.source=m7(r,i)),"object"!=typeof n&&(n=e.target=m7(r,n)),i.sourceLinks.push(e),n.targetLinks.push(e)}),null!=i)for(var o=0;on)throw Error("circular link");r=o,o=new Set}if(e)for(var a=Math.max(m0(i,function(e){return e.depth})+1,0),l=void 0,h=0;hi)throw Error("circular link");n=r,r=new Set}}(v),function(e){var u=function(e){for(var i=e.nodes,n=Math.max(m0(i,function(e){return e.depth})+1,0),o=(s-r-l)/(n-1),a=Array(n).fill(0).map(function(){return[]}),h=0;h=0;--s){for(var a=e[s],l=0;l0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}})(u,g,f),function(e,i,r){for(var o=1,s=e.length;o0){var E=(u/d-h.y0)*i;h.y0+=E,h.y1+=E,_(h)}}void 0===t&&a.sort(m4),a.length&&m(a,r)}}(u,g,f)}}(v),m8(v),v}function m(e,t){var i=e.length>>1,r=e[i];E(e,r.y0-n,i-1,t),v(e,r.y1+n,i+1,t),E(e,a,e.length-1,t),v(e,o,0,t)}function v(e,t,i,r){for(;i1e-6&&(o.y0+=s,o.y1+=s),t=o.y1+n}}function E(e,t,i,r){for(;i>=0;--i){var o=e[i],s=(o.y1-t)*r;s>1e-6&&(o.y0-=s,o.y1-=s),t=o.y0-n}}function _(e){var t=e.sourceLinks,n=e.targetLinks;if(void 0===i){for(var r=0;r "+e.target,value:e.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},t.prototype.changeData=function(e){this.updateOption({data:e});var t=vi(this.options,this.chart.width,this.chart.height),i=t.nodes,n=t.edges,r=ux(this.chart,mX),o=ux(this.chart,mj);r.changeData(i),o.changeData(n)},t.prototype.getSchemaAdaptor=function(){return vl},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()}}(dc);var vh="ancestor-node",vu="value",vd="path",vc=[vd,fR,fN,fL,"name","depth","height"],vg=up({},dc.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function vp(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function vf(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(n-t)/e.value;++a0)throw Error("cycle");return o}return i.id=function(t){return arguments.length?(e=fd(t),i):e},i.parentId=function(e){return arguments.length?(t=fd(e),i):t},i}function vN(e,t){return e.parent===t.parent?1:2}function vI(e){var t=e.children;return t?t[0]:e.t}function vw(e){var t=e.children;return t?t[t.length-1]:e.t}function vO(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function vx(){var e=vN,t=1,i=1,n=null;function r(r){var l=function(e){for(var t,i,n,r,o,s=new vO(e,0),a=[s];t=a.pop();)if(n=t._.children)for(t.children=Array(o=n.length),r=o-1;r>=0;--r)a.push(i=t.children[r]=new vO(n[r],r)),i.parent=t;return(s.parent=new vO(null,0)).children=[s],s}(r);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(s),n)r.eachBefore(a);else{var h=r,u=r,d=r;r.eachBefore(function(e){e.xu.x&&(u=e),e.depth>d.depth&&(d=e)});var c=h===u?1:e(h,u)/2,g=c-h.x,p=t/(u.x+c+g),f=i/(d.depth||1);r.eachBefore(function(e){e.x=(e.x+g)*p,e.y=e.depth*f})}return r}function o(t){var i=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(i){!function(e){for(var t,i=0,n=0,r=e.children,o=r.length;--o>=0;)t=r[o],t.z+=i,t.m+=i,i+=t.s+(n+=t.c)}(t);var o=(i[0].z+i[i.length-1].z)/2;r?(t.z=r.z+e(t._,r._),t.m=t.z-o):t.z=o}else r&&(t.z=r.z+e(t._,r._));t.parent.A=function(t,i,n){if(i){for(var r,o,s,a=t,l=t,h=i,u=a.parent.children[0],d=a.m,c=l.m,g=h.m,p=u.m;h=vw(h),a=vI(a),h&&a;)u=vI(u),(l=vw(l)).a=t,(s=h.z+g-a.z-d+e(h._,a._))>0&&(function(e,t,i){var n=i/(t.i-e.i);t.c-=n,t.s+=i,e.c+=n,t.z+=i,t.m+=i}((r=h,o=n,r.a.parent===t.parent?r.a:o),t,s),d+=s,c+=s),g+=h.m,d+=a.m,p+=u.m,c+=l.m;h&&!vw(l)&&(l.t=h,l.m+=g-c),a&&!vI(u)&&(u.t=a,u.m+=d-p,n=t)}return n}(t,r,t.parent.A||n[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*i}return r.separation=function(t){return arguments.length?(e=t,r):e},r.size=function(e){return arguments.length?(n=!1,t=+e[0],i=+e[1],r):n?null:[t,i]},r.nodeSize=function(e){return arguments.length?(n=!0,t=+e[0],i=+e[1],r):n?[t,i]:null},r}function vD(e,t,i,n,r){for(var o,s=e.children,a=-1,l=s.length,h=e.value&&(r-i)/e.value;++ac&&(c=a),(g=Math.max(c/(m=u*u*f),m/d))>p){u-=a;break}p=g}v.push(s={value:u,dice:l1?t:1)},i}(vM);function vF(){var e=vP,t=!1,i=1,n=1,r=[0],o=fc,s=fc,a=fc,l=fc,h=fc;function u(e){return e.x0=e.y0=0,e.x1=i,e.y1=n,e.eachBefore(d),r=[0],t&&e.eachBefore(vp),e}function d(t){var i=r[t.depth],n=t.x0+i,u=t.y0+i,d=t.x1-i,c=t.y1-i;d=i-1){var u=a[t];u.x0=r,u.y0=o,u.x1=s,u.y1=l;return}for(var d=h[t],c=n/2+d,g=t+1,p=i-1;g>>1;h[f]l-o){var E=n?(r*v+s*m)/n:s;e(t,g,m,r,o,E,l),e(g,i,v,E,o,s,l)}else{var _=n?(o*v+l*m)/n:l;e(t,g,m,r,o,s,_),e(g,i,v,r,_,s,l)}}(0,l,e.value,t,i,n,r)}function vU(e,t,i,n,r){(1&e.depth?vD:vf)(e,t,i,n,r)}var vH=function e(t){function i(e,i,n,r,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,h,u,d=-1,c=s.length,g=e.value;++d1?t:1)},i}(vM),vV={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function vW(e,t){var i,n,r,o=(t=(0,em.f0)({},vV,t)).as;if(!(0,em.kJ)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=fw(t)}catch(e){console.warn(e)}var s=(i=t.tile,n=t.ratio,"treemapSquarify"===i?ep[i].ratio(n):ep[i]),a=vF().tile(s).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(fC(e).sum(function(e){return t.ignoreParentValue&&e.children?0:e[r]}).sort(t.sort)),l=o[0],h=o[1];return a.each(function(e){e[l]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===o.indexOf(t)&&delete e[t]})}),fO(a)}function vG(e){var t=e.data,i=e.colorField,n=e.rawFields,r=e.hierarchyConfig,o=void 0===r?{}:r,s=o.activeDepth,a=e.seriesField,l=e.type||"partition",h=({partition:vE,treemap:vW})[l](t,(0,ef.pi)((0,ef.pi)({field:a||"value"},(0,em.CE)(o,["activeDepth"])),{type:"hierarchy.".concat(l),as:["x","y"]})),u=[];return h.forEach(function(e){if(0===e.depth||s>0&&e.depth>s)return null;for(var t,r,l,h,d,c,g=e.data.name,p=(0,ef.pi)({},e);p.depth>1;)g="".concat(null===(r=p.parent.data)||void 0===r?void 0:r.name," / ").concat(g),p=p.parent;var f=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,(0,ef.ev)((0,ef.ev)([],n||[],!0),[o.field],!1))),((t={})[vd]=g,t[vh]=p.data.name,t)),e);a&&(f[a]=e.data[a]||(null===(h=null===(l=e.parent)||void 0===l?void 0:l.data)||void 0===h?void 0:h[a])),i&&(f[i]=e.data[i]||(null===(c=null===(d=e.parent)||void 0===d?void 0:d.data)||void 0===c?void 0:c[i])),f.ext=o,f[p9]={hierarchyConfig:o,colorField:i,rawFields:n},u.push(f)}),u}function vz(e){var t,i=e.chart,n=e.options,r=n.color,o=n.colorField,s=void 0===o?vh:o,a=n.sunburstStyle,l=n.rawFields,h=void 0===l?[]:l,u=n.shape,d=vG(n);return i.data(d),a&&(t=function(e){return up({},{fillOpacity:Math.pow(.85,e.depth)},(0,em.mf)(a)?a(e):a)}),da(up({},e,{options:{xField:"x",yField:"y",seriesField:s,rawFields:(0,em.jj)((0,ef.ev)((0,ef.ev)([],vc,!0),h,!0)),polygon:{color:r,style:t,shape:u}}})),e}function vY(e){return e.chart.axis(!1),e}function vK(e){var t=e.chart,i=e.options.label,n=uv(t,"polygon");if(i){var r=i.fields,o=i.callback,s=(0,ef._T)(i,["fields","callback"]);n.label({fields:void 0===r?["name"]:r,callback:o,cfg:uC(s)})}else n.label(!1);return e}function v$(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius,o=i.reflect,s=t.coordinate({type:"polar",cfg:{innerRadius:n,radius:r}});return o&&s.reflect(o),e}function vX(e){var t,i=e.options,n=i.hierarchyConfig,r=i.meta;return um(u0({},((t={})[vu]=(0,em.U2)(r,(0,em.U2)(n,["field"],"value")),t)))(e)}function vj(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,[vd,"formatter"],function(e){return e}),r=(0,em.U2)(i,[vu,"formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data[vd]),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function vq(e){var t,i,n=e.chart,r=e.options,o=r.drilldown;return uX({chart:n,options:(t=r.drilldown,i=r.interactions,(null==t?void 0:t.enabled)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:vG}}],!1)}):r)}),(null==o?void 0:o.enabled)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(o,["breadCrumb","position"]))),e}function vZ(e){return um(uq,uY("sunburstStyle"),vz,vY,vX,uK,v$,vj,vK,vq,uj,u1())(e)}function vJ(e,t){if((0,em.kJ)(e))return e.find(function(e){return e.type===t})}function vQ(e,t){var i=vJ(e,t);return i&&!1!==i.enable}function v0(e){var t=e.interactions,i=e.drilldown;return(0,em.U2)(i,"enabled")||vQ(t,"treemap-drill-down")}function v1(e){var t=e.data,i=e.colorField,n=e.enableDrillDown,r=e.hierarchyConfig,o=vW(t,(0,ef.pi)((0,ef.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return o.forEach(function(e){if(0===e.depth||n&&1!==e.depth||!n&&e.children)return null;var o=e.ancestors().map(function(e){return{data:e.data,height:e.height,value:e.value}}),a=n&&(0,em.kJ)(t.path)?o.concat(t.path.slice(1)):o,l=Object.assign({},e.data,(0,ef.pi)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:a},e));if(!e.data[i]&&e.parent){var h=e.ancestors().find(function(e){return e.data[i]});l[i]=null==h?void 0:h.data[i]}else l[i]=e.data[i];l[p9]={hierarchyConfig:r,colorField:i,enableDrillDown:n},s.push(l)}),s}function v2(e){return up({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function v4(e){var t=e.chart,i=e.options,n=i.color,r=i.colorField,o=i.rectStyle,s=i.hierarchyConfig,a=i.rawFields,l=v1({data:i.data,colorField:i.colorField,enableDrillDown:v0(i),hierarchyConfig:s});return t.data(l),da(up({},e,{options:{xField:"x",yField:"y",seriesField:r,rawFields:a,polygon:{color:n,style:o}}})),t.coordinate().reflect("y"),e}function v5(e){return e.chart.axis(!1),e}function v6(e){var t,i,n=e.chart,r=e.options,o=r.interactions,s=r.drilldown;uX({chart:n,options:(t=r.drilldown,i=r.interactions,v0(r)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:v1}}],!1)}):r)});var a=vJ(o,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(e){e.preventDefault()}):n.getCanvas().off("mousewheel")),v0(r)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(s,["breadCrumb","position"]))),e}function v3(e){return um(v2,uq,uY("rectStyle"),v4,v5,uK,u$,v6,uj,u1())(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return vg},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vZ},t.SUNBURST_ANCESTOR_FIELD=vh,t.SUNBURST_PATH_FIELD=vd,t.NODE_ANCESTORS_FIELD=fN}(dc);var v9={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v9},t.prototype.changeData=function(e){var t,i=this.options,n=i.colorField,r=i.interactions,o=i.hierarchyConfig;this.updateOption({data:e});var s=v1({data:e,colorField:n,enableDrillDown:vQ(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),(t=this.chart.interactions["drill-down"])&&t.context.actions.find(function(e){return"drill-down-action"===e.name}).reset()},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return v3}}(dc);var v7="path",v8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ee(e){e&&e.geometries[0].elements.forEach(function(e){e.shape.toFront()})}var Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-active")),Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-highlight")),En=rb("element-selected"),Er=rb("element-single-selected"),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(En),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(Er);rA("venn-element-active",Et),rA("venn-element-highlight",Ei),rA("venn-element-selected",Eo),rA("venn-element-single-selected",Es),r3("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),r3("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),r3("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),r3("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),r3("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),r3("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),oV("venn",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelPoint=function(e,t,i){var n=e.data,r=n.x,o=n.y,s=e.customLabelInfo,a=s.offsetX,l=s.offsetY;return{content:e.content[i],x:r+a,y:o+l}},t}(o3));var Ea=Array.isArray,El=" \n\v\f\r \xa0 ᠎              \u2028\u2029",Eh=RegExp("([a-z])["+El+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+El+"]*,?["+El+"]*)+)","ig"),Eu=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+El+"]*,?["+El+"]*","ig");o$("schema","venn",{draw:function(e,t){var i=function(e){if(!e)return null;if(Ea(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(Eh,function(e,n,r){var o=[],s=n.toLowerCase();if(r.replace(Eu,function(e,t){t&&o.push(+t)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}(e.data[v7]),n=up({},e.defaultStyle,{fill:e.color},e.style),r=t.addGroup({name:"venn-shape"});r.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i}),name:"venn-path"});var o=e.customInfo,s=o.offsetX,a=o.offsetY,l=sr.transform(null,[["t",s,a]]);return r.setMatrix(l),r},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var Ed={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e?255:(e=255*(t/255)/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},Ec=function(e){if(!Ed[e])throw Error("unknown blend mode "+e);return Ed[e]};function Eg(e){var t,i=e.replace("/s+/g","");return"string"!=typeof i||i.startsWith("rgba")||i.startsWith("#")?(i.startsWith("rgba")&&(t=i.replace("rgba(","").replace(")","").split(",")),i.startsWith("#")&&(t=eQ.rgb2arr(i).concat([1])),t.map(function(e,t){return 3===t?Number(e):0|e})):eQ.rgb2arr(eQ.toRGB(i)).concat([1])}var Ep=i(69916);function Ef(e,t){var i,n=function(e){for(var t=[],i=0;it[i].radius+1e-10)return!1;return!0}(t,e)}),o=0,s=0,a=[];if(r.length>1){var l=EC(r);for(i=0;i-1){var f=e[d.parentIndex[p]],m=Math.atan2(d.x-f.x,d.y-f.y),v=Math.atan2(u.x-f.x,u.y-f.y),E=v-m;E<0&&(E+=2*Math.PI);var _=v-E/2,C=Ev(c,{x:f.x+f.radius*Math.sin(_),y:f.y+f.radius*Math.cos(_)});C>2*f.radius&&(C=2*f.radius),(null===g||g.width>C)&&(g={circle:f,width:C,p1:d,p2:u})}null!==g&&(a.push(g),o+=Em(g.circle.radius,g.width),u=d)}}else{var S=e[0];for(i=1;iMath.abs(S.radius-e[i].radius)){y=!0;break}y?o=s=0:(o=S.radius*S.radius*Math.PI,a.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return s/=2,t&&(t.area=o+s,t.arcArea=o,t.polygonArea=s,t.arcs=a,t.innerPoints=r,t.intersectionPoints=n),o+s}function Em(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function Ev(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function EE(e,t,i){if(i>=e+t)return 0;if(i<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var n=e-(i*i-t*t+e*e)/(2*i),r=t-(i*i-e*e+t*t)/(2*i);return Em(e,n)+Em(t,r)}function E_(e,t){var i=Ev(e,t),n=e.radius,r=t.radius;if(i>=n+r||i<=Math.abs(n-r))return[];var o=(n*n-r*r+i*i)/(2*i),s=Math.sqrt(n*n-o*o),a=e.x+o*(t.x-e.x)/i,l=e.y+o*(t.y-e.y)/i,h=-(t.y-e.y)*(s/i),u=-(t.x-e.x)*(s/i);return[{x:a+h,y:l-u},{x:a-h,y:l+u}]}function EC(e){for(var t={x:0,y:0},i=0;i=Math.min(r[u].size,r[d].size)&&(h=0),o[u].push({set:d,size:l.size,weight:h}),o[d].push({set:u,size:l.size,weight:h})}var c=[];for(i in o)if(o.hasOwnProperty(i)){for(var g=0,s=0;s=8){var r=function(e,t){var i,n,r,o,s,a=(t=t||{}).restarts||10,l=[],h={};for(r=0;r=Math.min(l[t].size,l[r].size)?s=1:e.size<=1e-10&&(s=-1),n[t][r]=n[r][t]=s}),{distances:i,constraints:n}),c=d.distances,g=d.constraints,p=(0,Ep.norm2)(c.map(Ep.norm2))/c.length;c=c.map(function(e){return e.map(function(e){return e/p})});var f=function(e,t){return function(e,t,i,n){var r,o=0;for(r=0;r0&&p<=d||c<0&&p>=d||(o+=2*f*f,t[2*r]+=4*f*(s-h),t[2*r+1]+=4*f*(a-u),t[2*l]+=4*f*(h-s),t[2*l+1]+=4*f*(u-a))}return o}(e,t,c,g)};for(r=0;rt?1:-1}),t=0;t=a&&(s=r[n],a=l)}var h=(0,Ep.nelderMead)(function(e){return -1*ES({x:e[0],y:e[1]},t,i)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:h[0],y:h[1]},d=!0;for(n=0;nt[n].radius){d=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return i}(l,a);return a.forEach(function(e){var t=e.sets,i=t.join(",");e.id=i;var n=function(e){var t={};Ef(e,t);var i=t.arcs;if(0===i.length)return"M 0 0";if(1==i.length){var n,r,o,s,a,l=i[0].circle;return n=l.x,r=l.y,o=l.radius,s=[],a=n-o,s.push("M",a,r),s.push("A",o,o,0,1,0,a+2*o,r),s.push("A",o,o,0,1,0,a,r),s.join(" ")}for(var h=["\nM",i[0].p2.x,i[0].p2.y],u=0;uc;h.push("\nA",c,c,0,g?1:0,1,d.p1.x,d.p1.y)}return h.join(" ")}(t.map(function(e){return l[e]}));/[zZ]$/.test(n)||(n+=" Z"),e[v7]=n;var r=h[i]||{x:0,y:0};(0,em.f0)(e,r)}),a}(i,Math.max(d.width-(l+u),0),Math.max(d.height-(a+h),0),0);t.data(c);var g=dl(up({},e,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[r,o],schema:{shape:"venn",style:n}}})).ext.geometry;g.customInfo({offsetX:u,offsetY:a});var p=function(e,t){var i=e.options.color;if("function"!=typeof i){var n=ER(e,t,"string"==typeof i?[i]:i);return function(e){return n(e.id)}}return i}(e,c);return"function"==typeof p&&g.color("id",function(t){return p(c.find(function(e){return e.id===t}),ER(e,c)(t))}),e}function Ew(e){var t=e.chart,i=e.options.label,n=uy(t.appendPadding),r=n[0],o=n[3],s=uv(t,"schema");if(i){var a=i.callback,l=(0,ef._T)(i,["callback"]);s.label({fields:["id"],callback:a,cfg:(0,em.b$)({},uC(l),{type:"venn",customLabelInfo:{offsetX:o,offsetY:r}})})}else s.label(!1);return e}function EO(e){var t=e.chart,i=e.options,n=i.legend,r=i.sizeField;return t.legend("id",n),t.legend(r,!1),e}function Ex(e){return e.chart.axis(!1),e}function ED(e){var t=e.options,i=e.chart,n=t.interactions;if(n){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};uX(up({},e,{options:{interactions:n.map(function(e){return(0,ef.pi)((0,ef.pi)({},e),{type:r[e.type]||e.type})})}}))}return i.removeInteraction("legend-active"),i.removeInteraction("legend-highlight"),e}function EM(e){return um(EL,uq,EN,EI,Ew,u0({}),EO,Ex,u$,ED,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v8},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EM},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(dc);var Ek="violinY",EP="minMax",EF="quantile",EB="median",EU="violin_view",EH=up({},dc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),EV=i(53843),EW=i.n(EV);function EG(e,t){var i=e.length*t;if(0===e.length)throw Error("quantile requires at least one data point.");if(t<0||t>1)throw Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:i%1!=0?e[Math.ceil(i)-1]:e.length%2==0?(e[i-1]+e[i])/2:e[i]}function Ez(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function EY(e,t,i,n){for(i=i||0,n=n||e.length-1;n>i;){if(n-i>600){var r=n-i+1,o=t-i+1,s=Math.log(r),a=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*a*(r-a)/r);o-r/2<0&&(l*=-1);var h=Math.max(i,Math.floor(t-o*a/r+l)),u=Math.min(n,Math.floor(t+(r-o)*a/r+l));EY(e,t,h,u)}var d=e[t],c=i,g=n;for(Ez(e,i,t),e[n]>d&&Ez(e,i,n);cd;)g--}e[i]===d?Ez(e,i,g):Ez(e,++g,n),g<=t&&(i=g+1),t<=g&&(n=g-1)}}function EK(e,t){var i=e.slice();if(Array.isArray(t)){!function(e,t){for(var i=[0],n=0;n0?u:d};return dn(up({},e,{options:{xField:r,yField:_e,seriesField:r,rawFields:[o,_t,_n,_e],widthRatio:l,interval:{style:h,shape:g||"waterfall",color:f}}})).ext.geometry.customInfo((0,ef.pi)((0,ef.pi)({},p),{leaderLine:a})),e}function _l(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=n.xField,a=n.yField,l=n.meta,h=up({},{alias:a},(0,em.U2)(l,a));return um(u0(((t={})[s]=r,t[a]=o,t[_e]=o,t),up({},l,((i={})[_e]=h,i[_t]=h,i[_i]=h,i))))(e)}function _h(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?(t.axis(s,!1),t.axis(_e,!1)):(t.axis(s,r),t.axis(_e,r)),e}function _u(e){var t=e.chart,i=e.options,n=i.legend,r=i.total,o=i.risingFill,s=i.fallingFill,a=u3(i.locale);if(!1===n)t.legend(!1);else{var l=[{name:a.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:a.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:up({},{r:5},(0,em.U2)(r,"style"))}}),t.legend(up({},{custom:!0,position:"top",items:l},n)),t.removeInteraction("legend-filter")}return e}function _d(e){var t=e.chart,i=e.options,n=i.label,r=i.labelMode,o=i.xField,s=uv(t,"interval");if(n){var a=n.callback,l=(0,ef._T)(n,["callback"]);s.label({fields:"absolute"===r?[_i,o]:[_t,o],callback:a,cfg:uC(l)})}else s.label(!1);return e}function _c(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.xField,o=i.yField;if(!1!==n){t.tooltip((0,ef.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},n));var s=t.geometries[0];(null==n?void 0:n.formatter)?s.tooltip("".concat(r,"*").concat(o),n.formatter):s.tooltip(o)}else t.tooltip(!1);return e}function _g(e){return um(_s,uq,_a,_l,_h,_u,_c,_d,uZ,uX,uj,u1())(e)}o$("interval","waterfall",{draw:function(e,t){var i=e.customInfo,n=e.points,r=e.nextPoints,o=t.addGroup(),s=this.parsePath(function(e){for(var t=[],i=0;i>2),e.width=2048/t,e.height=2048/t,(g=e.getContext("2d",{willReadFrequently:!0})).fillStyle=g.strokeStyle="red",g.textAlign="center",{context:g,ratio:t}),v=c.board?c.board:_A((i[0]>>5)*i[1]),E=u.length,_=[],C=u.map(function(e,t,i){return e.text=_E.call(this,e,t,i),e.font=n.call(this,e,t,i),e.style=_C.call(this,e,t,i),e.weight=o.call(this,e,t,i),e.rotate=s.call(this,e,t,i),e.size=~~r.call(this,e,t,i),e.padding=a.call(this,e,t,i),e}).sort(function(e,t){return t.size-e.size}),S=-1,y=c.board?[{x:0,y:0},{x:p,y:f}]:null;return function(){for(var e=Date.now();Date.now()-e>1,t.y=f*(h()+.5)>>1,function(e,t,i,n){if(!t.sprite){var r=e.context,o=e.ratio;r.clearRect(0,0,2048/o,2048/o);var s=0,a=0,l=0,h=i.length;for(--n;++n>5<<5,d=~~Math.max(Math.abs(f+m),Math.abs(f-m))}else u=u+31>>5<<5;if(d>l&&(l=d),s+u>=2048&&(s=0,a+=l,l=0),a+d>=2048)break;r.translate((s+(u>>1))/o,(a+(d>>1))/o),t.rotate&&r.rotate(t.rotate*_v),r.fillText(t.text,0,0),t.padding&&(r.lineWidth=2*t.padding,r.strokeText(t.text,0,0)),r.restore(),t.width=u,t.height=d,t.xoff=s,t.yoff=a,t.x1=u>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=u}for(var E=r.getImageData(0,0,2048/o,2048/o).data,_=[];--n>=0;)if((t=i[n]).hasText){for(var u=t.width,C=u>>5,d=t.y1-t.y0,S=0;S>5),R=E[(a+b)*2048+(s+S)<<2]?1<<31-S%32:0;_[A]|=R,y|=R}y?T=b:(t.y0++,d--,b--,a++)}t.y1=t.y0+T,t.sprite=_.slice(0,(t.y1-t.y0)*C)}}}(m,t,C,S),t.hasText&&function(e,t,n){for(var r,o,s,a=t.x,u=t.y,d=Math.sqrt(i[0]*i[0]+i[1]*i[1]),c=l(i),g=.5>h()?1:-1,p=-g;(r=c(p+=g))&&!(Math.min(Math.abs(o=~~r[0]),Math.abs(s=~~r[1]))>=d);)if(t.x=a+o,t.y=u+s,!(t.x+t.x0<0)&&!(t.y+t.y0<0)&&!(t.x+t.x1>i[0])&&!(t.y+t.y1>i[1])&&(!n||!function(e,t,i){i>>=5;for(var n,r=e.sprite,o=e.width>>5,s=e.x-(o<<4),a=127&s,l=32-a,h=e.y1-e.y0,u=(e.y+e.y0)*i+(s>>5),d=0;d>>a:0))&t[u+c])return!0;u+=i}return!1}(t,e,i[0]))&&(!n||t.x+t.x1>n[0].x&&t.x+t.x0n[0].y&&t.y+t.y0>5,v=i[0]>>5,E=t.x-(m<<4),_=127&E,C=32-_,S=t.y1-t.y0,y=void 0,T=(t.y+t.y0)*v+(E>>5),b=0;b>>_:0);T+=v}return delete t.sprite,!0}return!1}(v,t,y)&&(_.push(t),y?c.hasImage||function(e,t){var i=e[0],n=e[1];t.x+t.x0n.x&&(n.x=t.x+t.x1),t.y+t.y1>n.y&&(n.y=t.y+t.y1)}(y,t):y=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=i[0]>>1,t.y-=i[1]>>1)}c._tags=_,c._bounds=y}(),c},c.createMask=function(e){var t=document.createElement("canvas"),n=i[0],r=i[1];if(n&&r){var o=n>>5,s=_A((n>>5)*r);t.width=n,t.height=r;var a=t.getContext("2d");a.drawImage(e,0,0,e.width,e.height,0,0,n,r);for(var l=a.getImageData(0,0,n,r).data,h=0;h>5),g=h*n+u<<2,p=l[g]>=250&&l[g+1]>=250&&l[g+2]>=250?1<<31-u%32:0;s[d]|=p}c.board=s,c.hasImage=!0}},c.timeInterval=function(e){d=null==e?1/0:e},c.words=function(e){u=e},c.size=function(e){i=[+e[0],+e[1]]},c.font=function(e){n=_R(e)},c.fontWeight=function(e){o=_R(e)},c.rotate=function(e){s=_R(e)},c.spiral=function(e){l=_L[e]||e},c.fontSize=function(e){r=_R(e)},c.padding=function(e){a=_R(e)},c.random=function(e){h=_R(e)},["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(e){(0,em.UM)(t[e])||c[e](t[e])}),c.words(W),t.imageMask&&c.createMask(t.imageMask),(g=c.start()._tags).forEach(function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}),f=(p=t.size)[0],m=p[1],g.push({text:"",value:0,x:0,y:0,opacity:0}),g.push({text:"",value:0,x:f,y:m,opacity:0}),g}function _I(e){var t=e.chart,i=e.options,n=i.colorField,r=i.color,o=_N(e);return t.data(o),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:n&&_p,rawFields:(0,em.mf)(r)&&(0,ef.ev)((0,ef.ev)([],(0,em.U2)(i,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}})).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function _w(e){return um(u0({x:{nice:!1},y:{nice:!1}}))(e)}function _O(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField;return!1===n?t.legend(!1):r&&t.legend(_p,n),e}function _x(e){um(_I,_w,u$,_O,uX,uj,uq,uZ)(e)}o$("point","word-cloud",{draw:function(e,t){var i=e.x,n=e.y,r=t.addShape("text",{attrs:(0,ef.pi)((0,ef.pi)({},{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}),{x:i,y:n})}),o=e.data.rotate;return"number"==typeof o&&sr.rotate(r,o*Math.PI/180),r}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return _f},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(_N({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var r=function(n){t.options=(0,ef.pi)((0,ef.pi)({},t.options),{imageMask:n||null}),e.prototype.render.call(t),i()};new Promise(function(e,t){if(n instanceof HTMLImageElement){e(n);return}if((0,em.HD)(n)){var i=new Image;i.crossOrigin="anonymous",i.src=n,i.onload=function(){e(i)},i.onerror=function(){uo(X.ERROR,!1,"image %s load failed !!!",n),t()};return}uo(X.WARN,void 0===n,"The type of imageMask option must be String or HTMLImageElement."),t()}).then(r).catch(r)})},t.prototype.getSchemaAdaptor=function(){return _x},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))}}(dc),function(e){function t(t,i,n,r){var o=e.call(this,t,up({},r,i))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=n,o}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor}}(dc),u6["en-US"]={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},u6["zh-CN"]={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},31506:function(e,t,i){"use strict";i.d(t,{Dg:function(){return h},lh:function(){return a},m$:function(){return o},vs:function(){return l},zu:function(){return s}});var n=i(35600),r=i(31437);function o(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.vc(r,i),n.Jp(e,r,t)}function s(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.Us(r,i),n.Jp(e,r,t)}function a(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.xJ(r,i),n.Jp(e,r,t)}function l(e,t){for(var i=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,l=t.length;r=0;return i?o?2*Math.PI-n:n:o?n:2*Math.PI-n}},39499:function(e,t,i){"use strict";i.d(t,{e9:function(){return l},Wq:function(){return L},tr:function(){return c},wb:function(){return f},zx:function(){return S}});var n=i(21030),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,o=/[^\s\,]+/ig,s=function(e){var t=e||[];return(0,n.kJ)(t)?t:(0,n.HD)(t)?(t=t.match(r),(0,n.S6)(t,function(e,i){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}(0,n.S6)(e,function(t,i){isNaN(t)||(e[i]=+t)}),t[i]=e}),t):void 0},a=i(31437),l=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[[0,0],[1,1]]);for(var n,r,o,s=!!t,l=[],h=0,u=e.length;h2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}var g=/[a-z]/;function p(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function f(e){var t=c(e);if(!t||!t.length)return[["M",0,0]];for(var i=!1,n=0;n=0){i=!0;break}}if(!i)return t;var o=[],s=0,a=0,l=0,h=0,u=0,d=t[0];("M"===d[0]||"m"===d[0])&&(s=+d[1],a=+d[2],l=s,h=a,u++,o[0]=["M",s,a]);for(var n=u,f=t.length;n1&&(i*=Math.sqrt(p),r*=Math.sqrt(p));var f=i*i*(g*g)+r*r*(c*c),m=f?Math.sqrt((i*i*(r*r)-f)/f):1;s===a&&(m*=-1),isNaN(m)&&(m=0);var C=r?m*i*g/r:0,S=i?-(m*r)*c/i:0,y=(l+u)/2+Math.cos(o)*C-Math.sin(o)*S,T=(h+d)/2+Math.sin(o)*C+Math.cos(o)*S,b=[(c-C)/i,(g-S)/r],A=[(-1*c-C)/i,(-1*g-S)/r],R=E([1,0],b),L=E(b,A);return -1>=v(b,A)&&(L=Math.PI),v(b,A)>=1&&(L=0),0===a&&L>0&&(L-=2*Math.PI),1===a&&L<0&&(L+=2*Math.PI),{cx:y,cy:T,rx:_(e,[u,d])?0:i,ry:_(e,[u,d])?0:r,startAngle:R,endAngle:R+L,xRotation:o,arcFlag:s,sweepFlag:a}}(i,u);c.arcParams=g}if("Z"===d)i=o,r=e[a+1];else{var p=u.length;i=[u[p-2],u[p-1]]}r&&"Z"===r[0]&&(r=e[a],t[a]&&(t[a].prePoint=i)),c.currentPoint=i,t[a]&&_(i,t[a].currentPoint)&&(t[a].prePoint=c.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var m=c.prePoint;if(["L","H","V"].includes(d))c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]];else if("Q"===d){var S=[u[1],u[2]];c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]}else if("T"===d){var y=t[h-1],S=C(y.currentPoint,m);"Q"===y.command?(c.command="Q",c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]):(c.command="TL",c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]])}else if("C"===d){var T=[u[1],u[2]],b=[u[3],u[4]];c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[T[0]-b[0],T[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-T[0],b[1]-T[1]])}else if("S"===d){var y=t[h-1],T=C(y.currentPoint,m),b=[u[1],u[2]];"C"===y.command?(c.command="C",c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]]):(c.command="SQ",c.startTangent=[m[0]-b[0],m[1]-b[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]])}else if("A"===d){var A=.001,R=c.arcParams||{},L=R.cx,N=void 0===L?0:L,I=R.cy,w=void 0===I?0:I,O=R.rx,x=void 0===O?0:O,D=R.ry,M=void 0===D?0:D,k=R.sweepFlag,P=void 0===k?0:k,F=R.startAngle,B=void 0===F?0:F,U=R.endAngle,H=void 0===U?0:U;0===P&&(A*=-1);var V=x*Math.cos(B-A)+N,W=M*Math.sin(B-A)+w;c.startTangent=[V-o[0],W-o[1]];var G=x*Math.cos(B+H+A)+N,z=M*Math.sin(B+H-A)+w;c.endTangent=[m[0]-G,m[1]-z]}t.push(c)}return t}function y(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function T(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=y(l[1]-i)>0&&0>y(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}var b=function(e,t,i){return e>=t&&e<=i};function A(e){for(var t=[],i=e.length,n=0;n1){var s=e[0],a=e[i-1];t.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return t}function R(e){var t=e.map(function(e){return e[0]}),i=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,i),maxY:Math.max.apply(null,i)}}function L(e,t){if(e.length<2||t.length<2)return!1;var i=R(e),r=R(t);if(r.minX>i.maxX||r.maxXi.maxY||r.maxY.001*l*h){var d=(r.x*s.y-r.y*s.x)/a,c=(r.x*o.y-r.y*o.x)/a;b(d,0,1)&&b(c,0,1)&&(u={x:e.x+d*o.x,y:e.y+d*o.y})}return u}(i.from,i.to,e.from,e.to))return t=!0,!1}),t)return l=!0,!1}),l}},21030:function(e,t,i){"use strict";i.d(t,{Ct:function(){return eY},f0:function(){return ew},uZ:function(){return z},VS:function(){return ef},d9:function(){return ev},FX:function(){return o},Ds:function(){return eE},b$:function(){return eC},e5:function(){return a},S6:function(){return p},yW:function(){return B},hX:function(){return s},sE:function(){return _},cx:function(){return C},Wx:function(){return S},ri:function(){return Y},xH:function(){return y},U5:function(){return Q},U2:function(){return eO},Lo:function(){return ez},rx:function(){return R},ru:function(){return G},vM:function(){return V},Ms:function(){return W},wH:function(){return ee},YM:function(){return P},q9:function(){return o},cq:function(){return eS},kJ:function(){return c},jn:function(){return ea},J_:function(){return el},kK:function(){return eg},xb:function(){return eT},Xy:function(){return eA},mf:function(){return u},BD:function(){return m},UM:function(){return d},Ft:function(){return eh},hj:function(){return K},vQ:function(){return $},Kn:function(){return g},PO:function(){return E},HD:function(){return x},P9:function(){return h},o8:function(){return ec},XP:function(){return f},Z$:function(){return F},vl:function(){return en},UI:function(){return eR},Q8:function(){return eN},Fp:function(){return b},UT:function(){return X},HP:function(){return e_},VV:function(){return A},F:function(){return j},CD:function(){return ew},wQ:function(){return q},ZT:function(){return eH},CE:function(){return ek},ei:function(){return eM},u4:function(){return w},Od:function(){return O},U7:function(){return ep},t8:function(){return ex},dp:function(){return eV},G:function(){return U},MR:function(){return D},ng:function(){return er},P2:function(){return eP},qo:function(){return eF},c$:function(){return J},BB:function(){return ei},jj:function(){return M},EL:function(){return eU},jC:function(){return eo},VO:function(){return et},I:function(){return k}});var n,r=function(e){return null!==e&&"function"!=typeof e&&isFinite(e.length)},o=function(e,t){return!!r(e)&&e.indexOf(t)>-1},s=function(e,t){if(!r(e))return e;for(var i=[],n=0;nt[r])return 1;if(e[r]i?i:e},Y=function(e,t){var i=t.toString(),n=i.indexOf(".");if(-1===n)return Math.round(e);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(e.toFixed(r))},K=function(e){return h(e,"Number")};function $(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)n&&(i=o,n=s)}return i}},j=function(e,t){if(c(e)){for(var i,n=1/0,r=0;rt?(n&&(clearTimeout(n),n=null),a=h,s=e.apply(r,o),n||(r=o=null)):n||!1===i.trailing||(n=setTimeout(l,u)),s};return h.cancel=function(){clearTimeout(n),a=0,n=r=o=null},h},eF=function(e){return r(e)?Array.prototype.slice.call(e):[]},eB={},eU=function(e){return eB[e=e||"g"]?eB[e]+=1:eB[e]=1,e+eB[e]},eH=function(){};function eV(e){return d(e)?0:r(e)?e.length:Object.keys(e).length}var eW=i(97582),eG=e_(function(e,t){void 0===t&&(t={});var i=t.fontSize,r=t.fontFamily,o=t.fontWeight,s=t.fontStyle,a=t.fontVariant;return n||(n=document.createElement("canvas").getContext("2d")),n.font=[s,a,o,i+"px",r].join(" "),n.measureText(x(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,eW.pr)([e],et(t)).join("")}),ez=function(e,t,i,n){void 0===n&&(n="...");var r,o,s=eG(n,i),a=x(e)?e:ei(e),l=t,h=[];if(eG(e,i)<=t)return e;for(;!((o=eG(r=a.substr(0,16),i))+s>l)||!(o>l);)if(h.push(r),l-=o,!(a=a.substr(16)))return h.join("");for(;!((o=eG(r=a.substr(0,1),i))+s>l);)if(h.push(r),l-=o,!(a=a.substr(1)))return h.join("");return""+h.join("")+n},eY=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var i=this.map[e];return void 0===i?t:i},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return eO}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),g=i(82690);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,_=Math.min,C=Math.round;function S(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(S())}function T(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!y()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function b(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function A(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return T(R(e)).left+b(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function I(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function w(e){var t=T(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function O(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||R(e)}function x(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:m(t)&&I(t)?t:e(O(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],I(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(x(O(s)))}function D(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function M(e){for(var t=p(e),i=D(e);i&&["table","td","th"].indexOf(A(i))>=0&&"static"===N(i).position;)i=D(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(S());if(/Trident/i.test(S())&&m(e)&&"fixed"===N(e).position)return null;var i=O(e);for(v(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(A(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),z=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),Y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function J(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?j(r):null,s=r?q(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,E=e.isFixed,_=c.x,S=void 0===_?0:_,y=c.y,T=void 0===y?0:y,b="function"==typeof v?v({x:S,y:T}):{x:S,y:T};S=b.x,T=b.y;var A=c.hasOwnProperty("x"),L=c.hasOwnProperty("y"),I=F,w="top",O=window;if(m){var x=M(l),D="clientHeight",B="clientWidth";x===p(l)&&"static"!==N(x=R(l)).position&&"absolute"===g&&(D="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(w=k,T-=(E&&x===O&&O.visualViewport?O.visualViewport.height:x[D])-h.height,T*=f?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(I=P,S-=(E&&x===O&&O.visualViewport?O.visualViewport.width:x[B])-h.width,S*=f?1:-1)}var U=Object.assign({position:g},m&&Q),H=!0===v?(t={x:S,y:T},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:S,y:T};return(S=H.x,T=H.y,f)?Object.assign({},U,((a={})[w]=L?"0":"",a[I]=A?"0":"",a.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",a)):Object.assign({},U,((s={})[w]=L?T+"px":"",s[I]=A?S+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&v(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=p(e),n=R(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=y();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+L(e),y:l}}(e,i)):f(t)?((n=T(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=R(e),s=R(r),a=b(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+L(r),c=-a.scrollTop,"rtl"===N(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,g=void 0===c?e.strategy:c,p=h.boundary,v=h.rootBoundary,C=h.elementContext,S=void 0===C?W:C,y=h.altBoundary,b=h.padding,L=void 0===b?0:b,I=eh("number"!=typeof L?L:eu(L,U)),w=e.rects.popper,D=e.elements[void 0!==y&&y?S===W?"reference":W:S],F=(i=f(D)?D:D.contextElement||R(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=x(O(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==A(e)}):[]):[].concat(n),[void 0===v?V:v]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=E(n.top,e.top),e.right=_(n.right,e.right),e.bottom=_(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=T(e.elements.reference),H=J({reference:B,element:w,strategy:"absolute",placement:d}),G=es(Object.assign({},w,H)),z=S===W?G:B,Y={top:F.top-z.top+I.top,bottom:z.bottom-F.bottom+I.bottom,left:F.left-z.left+I.left,right:z.right-F.right+I.right},K=e.modifiersData.offset;if(S===W&&K){var $=K[d];Object.keys(Y).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";Y[e]+=$[i]*t})}return Y}function ec(e,t,i){return E(e,_(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,X)}),a&&l.addEventListener("resize",i.update,X),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,X)}),a&&l.removeEventListener("resize",i.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:j(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=z.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=j(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,v=j(m)===m,E=l||(v||!p?[ei(m)]:function(e){if(j(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),_=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,g,m,v,E,_;return e.concat(j(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(c=n.allowedAutoPlacements)?z:c,0===(E=(v=(m=q(r))?l?G:G.filter(function(e){return q(e)===m}):U).filter(function(e){return g.indexOf(e)>=0})).length&&(E=v),Object.keys(_=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[j(i)],e},{})).sort(function(e,t){return _[e]-_[t]})):i)},[]),C=t.rects.reference,S=t.rects.popper,y=new Map,T=!0,b=_[0],A=0;A<_.length;A++){var R=_[A],L=j(R),N=q(R)===H,I=["top",k].indexOf(L)>=0,w=I?"width":"height",O=ed(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),x=I?N?P:F:N?k:"top";C[w]>S[w]&&(x=ei(x));var D=ei(x),M=[];if(o&&M.push(O[L]<=0),a&&M.push(O[x]<=0,O[D]<=0),M.every(function(e){return e})){b=R,T=!1;break}y.set(R,M)}if(T)for(var V=p?3:1,W=function(e){var t=_.find(function(t){var i=y.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return b=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==b&&(t.modifiersData[n]._skip=!0,t.placement=b,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,g=void 0===c?0:c,p=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),f=j(t.placement),m=q(t.placement),v=!m,C=Z(f),S="x"===C?"y":"x",y=t.modifiersData.popperOffsets,T=t.rects.reference,b=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(y){if(void 0===r||r){var I,O="y"===C?"top":F,x="y"===C?k:P,D="y"===C?"height":"width",B=y[C],U=B+p[O],V=B-p[x],W=d?-b[D]/2:0,G=m===H?T[D]:b[D],z=m===H?-b[D]:-T[D],Y=t.elements.arrow,K=d&&Y?w(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),X=$[O],J=$[x],Q=ec(0,T[D],K[D]),ee=v?T[D]/2-W-Q-X-R.mainAxis:G-Q-X-R.mainAxis,et=v?-T[D]/2+W+Q+J+R.mainAxis:z+Q+J+R.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(I=null==L?void 0:L[C])?I:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?_(U,eo):U,B,d?E(V,es):V);y[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var eh,eu,eg="x"===C?"top":F,ep="x"===C?k:P,ef=y[S],em="y"===S?"height":"width",ev=ef+p[eg],eE=ef-p[ep],e_=-1!==["top",F].indexOf(f),eC=null!=(eu=null==L?void 0:L[S])?eu:0,eS=e_?ev:ef-T[em]-b[em]-eC+R.altAxis,ey=e_?ef+T[em]+b[em]-eC-R.altAxis:eE,eT=d&&e_?(eh=ec(eS,ef,ey))>ey?ey:eh:ec(d?eS:ev,ef,d?ey:eE);y[S]=eT,N[S]=eT-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=j(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=w(s),g="y"===h?"top":F,p="y"===h?k:P,f=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],v=M(s),E=v?"y"===h?v.clientHeight||0:v.clientWidth||0:0,_=d[g],C=E-c[u]-d[p],S=E/2-c[u]/2+(f/2-m/2),y=ec(_,S,C);n.modifiersData[r]=((i={})[h]=y,i.centerOffset=y-S,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=eg(s,n),h=eg(a,r,o),u=ep(l),d=ep(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),g.push(t)}(e)}),Y.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,g,f,v=r.elements,E=v.reference,_=v.popper;if($(E,_)){r.rects={reference:(t=M(_),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),d=R(t),c=T(E,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==A(t)||I(d))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),m(t)?(f=T(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=L(d))),{x:c.left+g.scrollLeft-f.x,y:c.top+g.scrollTop-f.y,width:c.width,height:c.height}),popper:w(_)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var S=0;S{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,e_.jsx)(u.Fragment,{children:i}):(0,e_.jsx)(u.Fragment,{children:o?ev.createPortal(i,o):o})});var eS=i(34867);function ey(e){return(0,eS.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var eT=i(7293);let eb=u.createContext({disableDefaultClasses:!1}),eA=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eL(e){return"function"==typeof e?e():e}let eN=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eb);return i=>t?"":e(i)}(ey)),eI={},ew=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:v={},slots:E={},TransitionProps:_}=e,C=(0,h.Z)(e,eA),S=u.useRef(null),y=(0,d.Z)(S,t),T=u.useRef(null),b=(0,d.Z)(T,m),A=u.useRef(b);(0,c.Z)(()=>{A.current=b},[b]),u.useImperativeHandle(m,()=>T.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[L,N]=u.useState(R),[I,w]=u.useState(eL(n));u.useEffect(()=>{T.current&&T.current.forceUpdate()}),u.useEffect(()=>{n&&w(eL(n))},[n]),(0,c.Z)(()=>{if(!I||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(I,S.current,(0,l.Z)({placement:R},f,{modifiers:t}));return A.current(i),()=>{i.destroy(),A.current(null)}},[I,s,a,g,f,R]);let O={placement:L};null!==_&&(O.TransitionProps=_);let x=eN(),D=null!=(i=E.root)?i:"div",M=(0,eT.y)({elementType:D,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:x.root});return(0,e_.jsx)(D,(0,l.Z)({},M,{children:"function"==typeof r?r(O):r}))}),eO=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:p,placement:f="bottom",popperOptions:m=eI,popperRef:v,style:E,transition:_=!1,slotProps:C={},slots:S={}}=e,y=(0,h.Z)(e,eR),[T,b]=u.useState(!0);if(!d&&!p&&(!_||T))return null;if(o)i=o;else if(n){let e=eL(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let A=!p&&d&&(!_||T)?"none":void 0;return(0,e_.jsx)(eC,{disablePortal:a,container:i,children:(0,e_.jsx)(ew,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:_?!T:p,placement:f,popperOptions:m,popperRef:v,slotProps:C,slots:S},y,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:A},E),TransitionProps:_?{in:p,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,g=r.useRef(),[p,f]=r.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:E,ref:_}=(0,o.Z)(),[C,S]=r.useState(!1);t&&!i&&C&&S(!1),r.useEffect(()=>{m.current=C},[C,m]);let[y,T]=r.useState(""),b=e=>t=>{var i;C&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},A=e=>t=>{var i;E(t),!1===m.current&&S(!1),null==(i=e.onBlur)||i.call(e,t)},R=e=>t=>{var i,n;g.current||(g.current=t.currentTarget),v(t),!0===m.current&&(S(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},L=()=>{let e=g.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},N=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},I=e=>i=>{var n;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},w=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||L()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||f(!0),i.target!==i.currentTarget||L()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},O=e=>i=>{var n,r;i.target===i.currentTarget&&f(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||L()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},x=r.useCallback(e=>{var t;T(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),D=(0,s.Z)(x,h,_,g),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===y?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==y&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:A(i),onClick:N(i),onFocus:R(i),onKeyDown:w(i),onKeyUp:O(i),onMouseDown:I(i),onMouseLeave:b(i),ref:D});return delete r.onFocusVisible,r},focusVisible:C,setFocusVisible:S,active:p,rootRef:D}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=c,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!p||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return _}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let g={},p=()=>{},f=(e,t)=>e===t,m=()=>!1,v=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function _(e){let{controlledProps:t=g,disabledItemsFocusable:i=!1,disableListWrap:_=!1,focusManagement:C="activeDescendant",getInitialState:S=E,getItemDomElement:y,getItemId:T,isItemDisabled:b=m,rootRef:A,onStateChange:R=p,items:L,itemComparer:N=f,getItemAsString:I=v,onChange:w,onHighlightChange:O,onItemsChange:x,orientation:D="vertical",pageSize:M=5,reducerActionContext:k=g,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(A,B),H=r.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===C&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==y||null==(n=y(t))||n.focus()}},[y,O,C]),V=r.useMemo(()=>({highlightedValue:N,selectedValues:(e,t)=>(0,d.H)(e,t,N)}),[N]),W=r.useCallback((e,t,i,n,r)=>{switch(null==R||R(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==w||w(e,i,n)}},[H,w,R]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:_,focusManagement:C,isItemDisabled:b,itemComparer:N,items:L,getItemAsString:I,onHighlightChange:H,orientation:D,pageSize:M,selectionMode:P,stateComparers:V}),[i,_,C,b,N,L,I,H,D,M,P,V]),z=S(),Y=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[$,X]=(0,u.r)({reducer:Y,actionContext:K,initialState:z,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:j,selectedValues:q}=$,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>X({type:s.F.textNavigation,event:t,searchString:e})),J=c(q),Q=c(j),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,L,N)||(X({type:s.F.itemsChange,event:null,items:L,previousItems:ee.current}),ee.current=L,null==x||x(L))},[L,N,X,x]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(q)},[q,et]),r.useEffect(()=>{ei(j)},[j,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===D?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===C&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),X({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||X({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=L.findIndex(t=>N(t,e)),n=(null!=(t=J.current)?t:[]).some(t=>null!=t&&N(e,t)),r=b(e,i),o=null!=Q.current&&N(e,Q.current),s="DOM"===C;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[L,b,N,J,Q,C]),el=r.useMemo(()=>({dispatch:X,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[X,ea,en,er]);return r.useDebugValue({state:$}),{contextValue:el,dispatch:X,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===C&&null!=j?T(j):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===C?-1:0,ref:U}),rootRef:U,state:$}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),g=r.useContext(l.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:v}=g,{highlighted:E,selected:_,focusable:C}=f(h),S=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&S():S()})),(0,s.Z)(()=>v(function(e){_?e.includes(h)||S():e.includes(h)&&S()}),[v,S,_,h]);let y=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemClick,item:h,event:t})},[p,h]),T=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemHover,item:h,event:t})},[p,h]);return C&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:y(e),onPointerOver:i?T(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:_}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),g=t(u),p=(0,r.Z)(null==g?void 0:g.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),f=(0,n.Z)({},null==g?void 0:g.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},g,i,c,d);return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:g.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:g}=e,p=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[f,m]=r.useReducer(p,h),v=r.useCallback(e=>{m((0,n.Z)({},e,{context:g}))},[g]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:f,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(f,u),v]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,g=(0,r.Z)(e,h),p=c?{}:(0,l.x)(u,d),{props:f,internalRef:m}=(0,a.L)((0,n.Z)({},g,{externalSlotProps:p})),v=(0,o.Z)(m,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},f,{ref:v}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var g=i(37078),p=i(1812),f=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:g="MuiBox-root",generateClassName:p}=e,f=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:v="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(f,(0,n.Z)({as:v,ref:o,className:(0,s.Z)(m,p?p(g):g),theme:t&&a[t]||a},E))});return m}({themeId:f.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var v=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),g=i(26821);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(58859),m=i(30220),v=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],_=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,f.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),S=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:g=!1,size:p="md",variant:f="outlined",children:S,orientation:y="vertical",slots:T={},slotProps:b={}}=i,A=(0,n.Z)(i,E),{getColor:R}=(0,c.VT)(f),L=R(e.color,l),N=(0,r.Z)({},i,{color:L,component:d,orientation:y,size:p,variant:f}),I=_(N),w=(0,r.Z)({},A,{component:d,slots:T,slotProps:b}),[O,x]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(I.root,a),elementType:C,externalForwardedProps:w,ownerState:N}),D=(0,v.jsx)(O,(0,r.Z)({},x,{children:o.Children.map(S,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===y?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===y&&(i["data-parent"]="Card-horizontal"),"vertical"===y&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(S)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,v.jsx)(c.do,{variant:f,children:D}):D});var y=S},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(30220),p=i(85893);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),v=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,f),_=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),C=(0,n.Z)({},i,{component:a,orientation:u}),S=m(),[y,T]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(S.root,o),elementType:v,externalForwardedProps:_,ownerState:C});return(0,p.jsx)(y,(0,n.Z)({},T,{children:h}))});var _=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),g=i(74312),p=i(20407),f=i(78653),m=i(55907),v=i(26821);function E(e){return(0,v.d6)("MuiOption",e)}let _=(0,v.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var C=i(40780),S=i(85893);let y=["component","children","disabled","value","label","variant","color","slots","slotProps"],T=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},b=(0,g.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${_.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),A=o.forwardRef(function(e,t){var i;let s=(0,p.Z)({props:e,name:"JoyOption"}),{component:c="li",children:g,disabled:v=!1,value:E,label:_,variant:A="plain",color:R="neutral",slots:L={},slotProps:N={}}=s,I=(0,r.Z)(s,y),w=o.useContext(C.Z),{variant:O=A,color:x=R}=(0,m.yP)(e.variant,e.color),D=o.useRef(null),M=(0,l.Z)(D,t),k=null!=_?_:"string"==typeof g?g:null==(i=D.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:g,highlighted:p,selected:f}=(0,h.J)({item:t}),m=(0,a.Z)(d),v=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:m}),[r,i,t,m]),{index:_}=(0,u.B)(t,E),C=(0,l.Z)(s,v,g);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:C,role:"option","aria-selected":f}),highlighted:p,index:_,selected:f,rootRef:C}}({disabled:v,label:k,value:E,rootRef:M}),{getColor:H}=(0,f.VT)(O),V=H(e.color,x),W=(0,n.Z)({},s,{disabled:v,selected:F,highlighted:B,index:U,component:c,variant:O,color:V,row:w}),G=T(W),z=(0,n.Z)({},I,{component:c,slots:L,slotProps:N}),[Y,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:b,externalForwardedProps:z,className:G.root,ownerState:W});return(0,S.jsx)(Y,(0,n.Z)({},K,{children:g}))});var R=A},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),g=i(70758);let p={buttonClick:"buttonClick"};var f=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var v=i(12247),E=i(7333),_=i(22644);function C(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case _.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case _.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case _.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var S=i(2900);let y={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},T=()=>{};function b(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function A(e){e.preventDefault()}var R=i(26558),L=i(85893);function N(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,L.jsx)(v.s.Provider,{value:c,children:(0,L.jsx)(R.Z.Provider,{value:d,children:i})})}var I=i(94780),w=i(50984),O=i(3419),x=i(43614),D=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,I.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,D.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:g=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:v={},slotProps:E={}}=i,_=(0,r.Z)(i,B),C=s.isValidElement(n)&&"svg"===n.type,S=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:f,hasSvgAsChild:C}),y=U(S),T=(0,o.Z)({},_,{component:u,slots:v,slotProps:E}),[b,A]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(y.root,l),elementType:V,externalForwardedProps:T,ownerState:S,additionalProps:(0,o.Z)({color:c,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!g&&{viewBox:f},C&&n.props)});return(0,L.jsxs)(b,(0,o.Z)({},A,{children:[C?n.props.children:n,p?(0,L.jsx)("title",{children:p}):null]}))});var G=function(e,t){function i(i,n){return(0,L.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,L.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),z=i(78653),Y=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let $=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var X=i(76043),j=i(55907);let q=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let J=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],Q=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,I.Z)(a,K,{})},ee=(0,D.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,Y.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${$.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${$.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${$.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,D.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,D.Z)(w.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},O.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,D.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,D.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,D.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${$.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${$.expanded}, .${$.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,_,R,I,w;let D=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:Y,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:eg="md",variant:ep="outlined",color:ef="neutral",startDecorator:em,endDecorator:ev,indicator:eE=n||(n=(0,L.jsx)(G,{})),"aria-describedby":e_,"aria-label":eC,"aria-labelledby":eS,id:ey,name:eT,slots:eb={},slotProps:eA={}}=D,eR=(0,r.Z)(D,q),eL=s.useContext(X.Z),eN=null!=(i=null!=(l=e.disabled)?l:null==eL?void 0:eL.disabled)?i:V,eI=null!=(E=null!=(_=e.size)?_:null==eL?void 0:eL.size)?E:eg,{getColor:ew}=(0,z.VT)(ep),eO=ew(e.color,null!=eL&&eL.error?"danger":null!=(R=null==eL?void 0:eL.color)?R:ef),ex=null!=eu?eu:Z,[eD,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ez,getListboxProps:eY,getHiddenInputProps:eK,getOptionMetadata:e$,open:eX,value:ej}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:_,listboxRef:R,multiple:L=!1,name:N,required:I,onChange:w,onHighlightChange:O,onOpenChange:x,open:D,options:M,getOptionAsString:k=m,getSerializedValue:P=b,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(_);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=L?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return L?F:null==F?[]:[F]},[F,L]),{subitems:G,contextValue:z}=(0,v.Y)(),Y=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(R,H),{getRootProps:$,active:X,focusVisible:j,rootRef:q}=(0,g.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(Y.keys()),[Y]),J=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return Y.get(t)}return Y.get(e)},[Y,r,Z]),Q=s.useCallback(e=>{var t;let i=J(e);return null!=(t=null==i?void 0:i.disabled)&&t},[J]),ee=s.useCallback(e=>{let t=J(e);return t?k(t):""},[J,k]),et=s.useMemo(()=>({selectedValues:W,open:D}),[W,D]),ei=s.useCallback(e=>{var t;return null==(t=Y.get(e))?void 0:t.id},[Y]),en=s.useCallback((e,t)=>{if(L)null==w||w(e,t);else{var i;null==w||w(e,null!=(i=t[0])?i:null)}},[L,w]),er=s.useCallback((e,t)=>{null==O||O(e,null!=t?t:null)},[O]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==x||x(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[x]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:Q,rootRef:q,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:L}),[L]),items:Z,getItemAsString:ee,selectionMode:L?"multiple":"single",stateReducer:C},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:eg}=(0,f.s)(es),ep=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=J(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,J]);let ef=s.useCallback(e=>J(e),[J]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:ep(e),ref:eg,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let ev=s.useMemo(()=>(0,o.Z)({},eh,z),[eh,z]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,L)n=i.map(e=>ef(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ef(i))?eE:null}return{buttonActive:X,buttonFocusVisible:j,buttonRef:q,contextValue:ev,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,S.f)($,el),i=(0,S.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:N,tabIndex:-1,"aria-hidden":!0,required:!!I||void 0,value:P(n),onChange:T,style:y},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":L?"true":void 0,ref:K,onMouseDown:A}),getOptionMetadata:ef,listboxRef:eg,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eN,getSerializedValue:W,listboxId:K,multiple:!1,name:eT,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eq=(0,o.Z)({},D,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:eX,renderValue:ex,value:ej,size:eI,variant:ep,color:eO}),eZ=Q(eq),eJ=(0,o.Z)({},eR,{slots:eb,slotProps:eA}),eQ=s.useMemo(()=>{var e;return null!=(e=e$(ej))?e:null},[e$,ej]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eJ,ownerState:eq}),[e2,e4]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=e_?e_:null==eL?void 0:eL["aria-describedby"],"aria-label":eC,"aria-labelledby":null!=eS?eS:null==eL?void 0:eL.labelId,"aria-required":ed?"true":void 0,id:null!=ey?ey:null==eL?void 0:eL.htmlFor,name:eT},className:eZ.button,elementType:et,externalForwardedProps:eJ,getSlotProps:ez,ownerState:eq}),[e5,e6]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:eD,open:eX,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eJ,getSlotProps:eY,ownerState:(0,o.Z)({},eq,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eI,variant:e.variant||ep,color:e.color||(e.disablePortal?eO:ef),disableColorInversion:!e.disablePortal})}),[e3,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eJ,ownerState:eq}),[e7,e8]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eJ,ownerState:eq}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eJ,ownerState:eq}),ti=s.useMemo(()=>[...J,...e6.modifiers||[]],[e6.modifiers]),tn=null;return eD&&(tn=(0,L.jsx)(e5,(0,o.Z)({},e6,{className:(0,a.Z)(e6.className,(null==(I=e6.ownerState)?void 0:I.color)==="context"&&$.colorContext),modifiers:ti},!(null!=(w=D.slots)&&w.listbox)&&{as:u.r,slots:{root:e6.as||"ul"}},{children:(0,L.jsx)(N,{value:eW,children:(0,L.jsx)(j.Yb,{variant:ep,color:ef,children:(0,L.jsx)(x.Z.Provider,{value:"select",children:(0,L.jsx)(O.Z,{nested:!0,children:B})})})})})),e6.disablePortal||(tn=(0,L.jsx)(z.ZP.Provider,{value:void 0,children:tn}))),(0,L.jsxs)(s.Fragment,{children:[(0,L.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,L.jsx)(e3,(0,o.Z)({},e9,{children:em})),(0,L.jsx)(e2,(0,o.Z)({},e4,{children:eQ?ex(eQ):Y})),ev&&(0,L.jsx)(e7,(0,o.Z)({},e8,{children:ev})),eE&&(0,L.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,L.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function g(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var p=i(40911),f=i(30220),m=i(85893);let v=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,g,{})},_={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[_.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[_.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[_.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[_.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[_.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${_.getColumnExceptFirst()}, ${_.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[_.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[_.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[_.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[_.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[_.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[_.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[_.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[_.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),S=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:g=!1,size:_="md",variant:S="plain",color:y="neutral",stripe:T,stickyHeader:b=!1,stickyFooter:A=!1,slots:R={},slotProps:L={}}=i,N=(0,n.Z)(i,v),{getColor:I}=(0,u.VT)(S),w=I(e.color,y),O=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:g,component:a,size:_,color:w,variant:S,stripe:T,stickyHeader:b,stickyFooter:A}),x=E(O),D=(0,r.Z)({},N,{component:a,slots:R,slotProps:L}),[M,k]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(x.root,o),elementType:C,externalForwardedProps:D,ownerState:O});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var y=S},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return C},ZP:function(){return L}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),g=i(30220),p=i(26821);function f(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let v=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],_=o.createContext(!1),C=o.createContext(!1),S=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,f,{})},y=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),b=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),A={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},R=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,v),p=o.useContext(_),f=o.useContext(C),R=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:L,gutterBottom:N=!1,noWrap:I=!1,level:w="body-md",levelMapping:O=A,children:x,endDecorator:D,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=R,B=(0,n.Z)(R,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=p||f?e.level||"inherit":w,W=(0,a.Z)(x,["Skeleton"]),G=L||(p?"span":O[V]||A[V]||"span"),z=(0,r.Z)({},R,{level:V,component:G,color:H,gutterBottom:N,noWrap:I,nesting:p,variant:k,unstable_hasSkeleton:W}),Y=S(z),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[$,X]=(0,g.Z)("root",{ref:t,className:Y.root,elementType:b,externalForwardedProps:K,ownerState:z}),[j,q]=(0,g.Z)("startDecorator",{className:Y.startDecorator,elementType:y,externalForwardedProps:K,ownerState:z}),[Z,J]=(0,g.Z)("endDecorator",{className:Y.endDecorator,elementType:T,externalForwardedProps:K,ownerState:z});return(0,m.jsx)(_.Provider,{value:!0,children:(0,m.jsxs)($,(0,r.Z)({},X,{children:[M&&(0,m.jsx)(j,(0,r.Z)({},q,{children:M})),W?o.cloneElement(x,{variant:x.props.variant||"inline"}):x,D&&(0,m.jsx)(Z,(0,r.Z)({},J,{children:D}))]}))})});R.muiName="Typography";var L=R},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],g=["disableColorInversion"];function p(e,t){let{className:i,elementType:p,ownerState:f,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:E}=t,_=(0,r.Z)(t,u),{component:C,slots:S={[e]:void 0},slotProps:y={[e]:void 0}}=m,T=(0,r.Z)(m,d),b=S[e]||p,A=(0,s.x)(y[e],f),R=(0,a.L)((0,n.Z)({className:i},_,{externalForwardedProps:"root"===e?T:void 0,externalSlotProps:A})),{props:{component:L},internalRef:N}=R,I=(0,r.Z)(R.props,c),w=(0,o.Z)(N,null==A?void 0:A.ref,t.ref),O=v?v(I):{},{disableColorInversion:x=!1}=O,D=(0,r.Z)(O,g),M=(0,n.Z)({},f,D),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=I.color)?P:f.color}else x||(M.color=k(I.color,M.color));let F="root"===e?L||C:L,B=(0,l.$)(b,(0,n.Z)({},"root"===e&&!C&&!S[e]&&E,"root"!==e&&!S[e]&&E,I,F&&{as:F},{ref:w}),M);return Object.keys(D).forEach(e=>{delete B[e]}),[b,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||i)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){i=!0}},t)}},56645:function(e,t){!function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t,i,n){e=e.filter(function(e,n){var r=t(e,n),o=i(e,n);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)}),n&&e.sort(function(e,i){return t(e)-t(i)});for(var r,o,s,a=e.length,l=new Float64Array(a),h=new Float64Array(a),u=0,d=0,c=0;cn&&(e.splice(a+1,0,c),r=!0)}return r}(r)&&s<1e4;);return r}function a(e,t,i,n){var r=n-e*e,o=1e-24>Math.abs(r)?0:(i-e*t)/r;return[t-o*e,o]}function l(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function s(s){var l=0,h=0,u=0,d=0,c=0,g=e?+e[0]:1/0,p=e?+e[1]:-1/0;n(s,i,o,function(t,i){++l,h+=(t-h)/l,u+=(i-u)/l,d+=(t*i-d)/l,c+=(t*t-c)/l,!e&&(tp&&(p=t))});var f=t(a(h,u,d,c),2),m=f[0],v=f[1],E=function(e){return v*e+m},_=[[g,E(g)],[p,E(p)]];return _.a=v,_.b=m,_.predict=E,_.rSquared=r(s,i,o,u,E),_}return s.domain=function(t){return arguments.length?(e=t,s):e},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(o=e,s):o},s}function h(){var e,o=function(e){return e[0]},a=function(e){return e[1]};function l(l){var h,u,d,c,g=t(i(l,o,a),4),p=g[0],f=g[1],m=g[2],v=g[3],E=p.length,_=0,C=0,S=0,y=0,T=0;for(h=0;hL&&(L=t))});var N=S-_*_,I=_*N-C*C,w=(T*_-y*C)/I,O=(y*N-T*C)/I,x=-w*_,D=function(e){return w*(e-=m)*e+O*e+x+v},M=s(R,L,D);return M.a=w,M.b=O-2*w*m,M.c=x-O*m+w*m*m+v,M.predict=D,M.rSquared=r(l,o,a,b,D),M}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(a=e,l):a},l}e.regressionExp=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(i),r=t*i;++h,u+=(i-u)/h,c+=(r-c)/h,p+=(t*r-p)/h,d+=(i*n-d)/h,g+=(r*n-g)/h,!e&&(tm&&(m=t))});var v=t(a(c/u,d/u,g/u,p/u),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.exp(_*e)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,u,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionLinear=l,e.regressionLoess=function(){var e=function(e){return e[0]},n=function(e){return e[1]},r=.3;function o(o){for(var s=t(i(o,e,n,!0),4),l=s[0],h=s[1],u=s[2],d=s[3],c=l.length,g=Math.max(2,~~(r*c)),p=new Float64Array(c),f=new Float64Array(c),m=new Float64Array(c).fill(1),v=-1;++v<=2;){for(var E=[0,g-1],_=0;_l[y]-C?S:y,b=0,A=0,R=0,L=0,N=0,I=1/Math.abs(l[T]-C||1),w=S;w<=y;++w){var O,x=l[w],D=h[w],M=(O=1-(O=Math.abs(C-x)*I)*O*O)*O*O*m[w],k=x*M;b+=M,A+=k,R+=D*M,L+=D*k,N+=x*k}var P=t(a(A/b,R/b,L/b,N/b),2),F=P[0],B=P[1];p[_]=F+B*C,f[_]=Math.abs(h[_]-p[_]),function(e,t,i){var n=e[t],r=i[0],o=i[1]+1;if(!(o>=e.length))for(;t>r&&e[o]-n<=n-e[r];)i[0]=++r,i[1]=o,++o}(l,_+1,E)}if(2===v)break;var U=function(e){e.sort(function(e,t){return e-t});var t=e.length/2;return t%1==0?(e[t-1]+e[t])/2:e[Math.floor(t)]}(f);if(1e-12>Math.abs(U))break;for(var H,V,W=0;W=1?1e-12:(V=1-H*H)*V}return function(e,t,i,n){for(var r,o=e.length,s=[],a=0,l=0,h=[];am&&(m=t))});var E=t(a(d,c,g,p),2),_=E[0],C=E[1],S=function(e){return C*Math.log(e)/v+_},y=s(f,m,S);return y.a=C,y.b=_,y.predict=S,y.rSquared=r(h,i,o,c,S),y}return h.domain=function(t){return arguments.length?(e=t,h):e},h.x=function(e){return arguments.length?(i=e,h):i},h.y=function(e){return arguments.length?(o=e,h):o},h.base=function(e){return arguments.length?(l=e,h):l},h},e.regressionPoly=function(){var e,o=function(e){return e[0]},a=function(e){return e[1]},u=3;function d(d){if(1===u){var c,g,p,f,m,v=l().x(o).y(a).domain(e)(d);return v.coefficients=[v.b,v.a],delete v.a,delete v.b,v}if(2===u){var E=h().x(o).y(a).domain(e)(d);return E.coefficients=[E.c,E.b,E.a],delete E.a,delete E.b,delete E.c,E}var _=t(i(d,o,a),4),C=_[0],S=_[1],y=_[2],T=_[3],b=C.length,A=[],R=[],L=u+1,N=0,I=0,w=e?+e[0]:1/0,O=e?+e[1]:-1/0;for(n(d,o,a,function(t,i){++I,N+=(i-N)/I,!e&&(tO&&(O=t))}),c=0;cMath.abs(e[t][r])&&(r=i);for(n=t;n=t;n--)e[n][i]-=e[n][t]*e[t][i]/e[t][t]}for(i=s-1;i>=0;--i){for(o=0,n=i+1;n=0;--r)for(s=t[r],a=1,l[r]+=s,o=1;o<=r;++o)a*=(r+1-o)/o,l[r-o]+=s*Math.pow(i,o)*a;return l[0]+=n,l}(L,x,-y,T),M.predict=D,M.rSquared=r(d,o,a,N,D),M}return d.domain=function(t){return arguments.length?(e=t,d):e},d.x=function(e){return arguments.length?(o=e,d):o},d.y=function(e){return arguments.length?(a=e,d):a},d.order=function(e){return arguments.length?(u=e,d):u},d},e.regressionPow=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(t),r=Math.log(i);++h,u+=(n-u)/h,d+=(r-d)/h,c+=(n*r-c)/h,g+=(n*n-g)/h,p+=(i-p)/h,!e&&(tm&&(m=t))});var v=t(a(u,d,c,g),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.pow(e,_)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,p,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionQuad=h,Object.defineProperty(e,"__esModule",{value:!0})}(t)},43631:function(e,t,i){"use strict";i.d(t,{qY:function(){return g}});var n=i(83454),r=function(e,t,i){if(i||2==arguments.length)for(var n,r=0,o=t.length;rh+a*s*u||d>=f)p=s;else{if(Math.abs(g)<=-l*u)return s;g*(p-c)>=0&&(p=c),c=s,f=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),g=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return f(p,s,c);if(Math.abs(g)<=-l*u)break;if(g>=0)return f(s,p,d);c=d,p=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=f[p-1].fx){var N=!1;if(S.fx>L.fx?(o(y,1+c,C,-c,L),y.fx=e(y),y.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:p}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,g=i.c2||.1,p=[];if(i.history){var f=e;e=function(e,t){return p.push(e.slice()),f(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{WT:function(){return n}});var n="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";function n(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=u*s-a*h,c=-u*o+a*l,g=h*o-s*l,p=i*d+n*c+r*g;return p?(p=1/p,e[0]=d*p,e[1]=(-u*n+r*h)*p,e[2]=(a*n-r*s)*p,e[3]=c*p,e[4]=(u*i-r*l)*p,e[5]=(-a*i+r*o)*p,e[6]=g*p,e[7]=(-h*i+n*l)*p,e[8]=(s*i-n*o)*p,e):null}function r(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=i[0],g=i[1],p=i[2],f=i[3],m=i[4],v=i[5],E=i[6],_=i[7],C=i[8];return e[0]=c*n+g*s+p*h,e[1]=c*r+g*a+p*u,e[2]=c*o+g*l+p*d,e[3]=f*n+m*s+v*h,e[4]=f*r+m*a+v*u,e[5]=f*o+m*l+v*d,e[6]=E*n+_*s+C*h,e[7]=E*r+_*a+C*u,e[8]=E*o+_*l+C*d,e}function o(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function s(e,t){var i=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=i,e[2]=0,e[3]=-i,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function a(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}i.d(t,{Jp:function(){return r},U_:function(){return n},Us:function(){return s},vc:function(){return o},xJ:function(){return a}})},31437:function(e,t,i){"use strict";i.d(t,{$X:function(){return s},AK:function(){return g},EU:function(){return f},Fp:function(){return l},Fv:function(){return c},I6:function(){return m},IH:function(){return o},TE:function(){return u},VV:function(){return a},bA:function(){return h},kE:function(){return d},kK:function(){return p},lu:function(){return v}});var n,r=i(49685);function o(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function s(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function a(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function l(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}function h(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function u(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function d(e){return Math.hypot(e[0],e[1])}function c(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function p(e,t,i){var n=t[0],r=t[1];return e[0]=i[0]*n+i[3]*r+i[6],e[1]=i[1]*n+i[4]*r+i[7],e}function f(e,t){var i=e[0],n=e[1],r=t[0],o=t[1],s=Math.sqrt(i*i+n*n)*Math.sqrt(r*r+o*o);return Math.acos(Math.min(Math.max(s&&(i*r+n*o)/s,-1),1))}function m(e,t){return e[0]===t[0]&&e[1]===t[1]}var v=s;n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function g(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function p(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function f(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function v(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function _(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function C(e,t){for(let i of t)e.push(i)}function S(e,t,i,n){let r=y(e,t),o=e.splice(r,i);return!function(e,t,i){let n=y(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function b(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function A(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return g},Gb:function(){return o},H9:function(){return R},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return A},W$:function(){return L},XY:function(){return d},Xh:function(){return f},Zv:function(){return v},al:function(){return _},dF:function(){return p},db:function(){return S},fS:function(){return a},jV:function(){return b},kX:function(){return u},ry:function(){return h},tT:function(){return T},vA:function(){return C},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class R{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class L{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new L(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new L(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}L.empty=new L(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return y},ED:function(){return E},G6:function(){return k},IJ:function(){return C},OS:function(){return I},dz:function(){return _},fn:function(){return N},gn:function(){return b},i7:function(){return D},li:function(){return f},n2:function(){return T},r:function(){return x},tY:function(){return S},tq:function(){return A},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,g=!1,p=!1,f="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==f.vscode&&void 0!==f.vscode.process?r=f.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),v=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||v){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,g=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,p=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,_=h,C=u,S=d,y=c,T=c&&"function"==typeof f.importScripts,b=g,A=p,R=n,L="function"==typeof f.postMessage&&!f.importScripts,N=(()=>{if(L){let e=[];f.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),f.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),I=h||g?2:l?1:3,w=!0,O=!1;function x(){if(!O){O=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);w=513===t[0]}return w}let D=!!(R&&R.indexOf("Chrome")>=0),M=!!(R&&R.indexOf("Firefox")>=0),k=!!(!D&&R&&R.indexOf("Safari")>=0),P=!!(R&&R.indexOf("Edg/")>=0);R&&R.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function f(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E,_,C;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k4},KeyMod:function(){return k5},MarkerSeverity:function(){return k8},MarkerTag:function(){return Pe},Position:function(){return k6},Range:function(){return k3},Selection:function(){return k9},SelectionDirection:function(){return k7},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var S,y,T,b,A,R,L,N,I,w,O,x,D,M,k,P,F,B,U,H,V,W,G,z,Y,K,$,X,j,q,Z,J,Q,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,eg,ep,ef,em,ev,eE,e_,eC,eS,ey,eT,eb,eA,eR,eL,eN,eI,ew,eO,ex,eD,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ez,eY,eK,e$,eX,ej,eq,eZ,eJ,eQ,e0,e1,e2,e4,e5,e6,e3,e9,e7,e8,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tg,tp,tf,tm,tv,tE,t_,tC,tS,ty,tT,tb,tA,tR,tL,tN,tI,tw,tO,tx,tD,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tz,tY,tK,t$,tX,tj,tq,tZ,tJ,tQ,t0,t1,t2,t4,t5,t6,t3,t9,t7,t8,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,iv,iE,i_,iC,iS,iy,iT,ib,iA,iR,iL,iN,iI,iw,iO,ix,iD,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,iz,iY,iK,i$,iX,ij,iq,iZ,iJ,iQ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i6(e)||i0.onUnexpectedError(e)}function i2(e){i6(e)||i0.onUnexpectedExternalError(e)}function i4(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i5="Canceled";function i6(e){return e instanceof i3||e instanceof Error&&e.name===i5&&e.message===i5}class i3 extends Error{constructor(){super(i5),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i7(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i8 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class ng{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class np{constructor(e){this.object=e}dispose(){}}class nf{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let nv=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=nv&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new nT({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new nT({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new nT({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new nT({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e7||(e7={}));class n_{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${n_._idPool++}`,n_.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}n_.all=new Set,n_._idPool=0;class nC{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nS{static create(){var e;return new nS(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class ny{constructor(e){this.value=e}}class nT{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nC(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new n_(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new ny(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nS.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof ny?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nA),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let nb=()=>new nA;class nA{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nR extends nT{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nL extends nR{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nN extends nT{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nI{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nw{constructor(){this.listening=!1,this.inputEvent=e7.None,this.inputEventListener=nc.None,this.emitter=new nT({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nO=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(y=e8||(e8={})).isCancellationToken=function(e){return e===y.None||e===y.Cancelled||e instanceof nx||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e7.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nO});class nx{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nO:(this._emitter||(this._emitter=new nT),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nD{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nx),this._token}cancel(){this._token?this._token instanceof nx&&this._token.cancel():this._token=e8.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nx&&this._token.dispose():this._token=e8.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nz=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nz[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nz[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nz[3]=46}(),(T=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},T.fromString=function(e){return nk.strToKeyCode(e)},T.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},T.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},T.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},T.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nY=i(1432),nK=i(83454);if(void 0!==nY.li.vscode&&void 0!==nY.li.vscode.process){let e=nY.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nY.ED?"win32":nY.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let n$=n.cwd,nX=n.env,nj=n.platform;class nq extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nq(t,"string",e)}let nJ="win32"===nj;function nQ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n4(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nq(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n5={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=n$():(void 0===(o=nX[`=${t}`]||n$())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nQ(u)&&(a=1,h=!0);else if(nQ(u)){if(h=!0,nQ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nQ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nQ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nQ(o)){if(r=!0,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nQ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nQ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nQ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nQ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nQ(i.charCodeAt(1))&&(++r,e>2&&(nQ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n5.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n5.resolve(e),n=n5.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let g="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(g+=0===g.length?"..":"\\..");return(a+=d,g.length>0)?`${g}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n5.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nQ(r)?e:".";if(nQ(r)){if(i=n=1,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nQ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nQ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n4.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nQ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nQ(r)){if(n=1,nQ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nQ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n6=(()=>{if(nJ){let e=/\\/g;return()=>{let t=n$().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n$()})(),n3={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n6();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n3.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n3.resolve(e))===(t=n3.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n4.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n3.win32=n5.win32=n5,n3.posix=n5.posix=n3;let n9=nJ?n5.normalize:n3.normalize,n7=nJ?n5.resolve:n3.resolve,n8=nJ?n5.relative:n3.relative,re=nJ?n5.dirname:n3.dirname,rt=nJ?n5.basename:n3.basename,ri=nJ?n5.extname:n3.extname,rn=nJ?n5.sep:n3.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rp(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",rv(i[4]||""),rv(i[5]||""),rv(i[7]||""),rv(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nY.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nY.ED&&"file"===e.scheme?rl.file(n5.join(rp(e,!0),...t)).path:n3.join(e.path,...t),e.with({path:i})}toString(e=!1){return rf(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nY.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rp(this,!1)),this._fsPath}toString(e=!1){return e?rf(this,!0):(this._formatted||(this._formatted=rf(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rg(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nY.ED&&(i=i.replace(/\//g,"\\")),i}function rf(e,t){let i=t?rg:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rv(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return r_.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r_.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return r_.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return r_.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return r_.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new r_(i,n,r,o)}intersectRanges(e){return r_.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new r_(i,n,r,o)}equalsRange(e){return r_.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r_.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return r_.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r_(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r_(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r_.collapseToStart(this)}static collapseToStart(e){return new r_(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return r_.collapseToEnd(this)}static collapseToEnd(e){return new r_(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new r_(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new r_(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r_(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rC extends r_{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rC.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rC(this.startLineNumber,this.startColumn,e,t):new rC(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rC(e,t,this.endLineNumber,this.endColumn):new rC(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rC(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rD=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new nT,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rR(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rA(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(N=tl||(tl={}))[N.Unknown=0]="Unknown",N[N.Disabled=1]="Disabled",N[N.Enabled=2]="Enabled",(I=th||(th={}))[I.Invoke=1]="Invoke",I[I.Auto=2]="Auto",(w=tu||(tu={}))[w.None=0]="None",w[w.KeepWhitespace=1]="KeepWhitespace",w[w.InsertAsSnippet=4]="InsertAsSnippet",(O=td||(td={}))[O.Method=0]="Method",O[O.Function=1]="Function",O[O.Constructor=2]="Constructor",O[O.Field=3]="Field",O[O.Variable=4]="Variable",O[O.Class=5]="Class",O[O.Struct=6]="Struct",O[O.Interface=7]="Interface",O[O.Module=8]="Module",O[O.Property=9]="Property",O[O.Event=10]="Event",O[O.Operator=11]="Operator",O[O.Unit=12]="Unit",O[O.Value=13]="Value",O[O.Constant=14]="Constant",O[O.Enum=15]="Enum",O[O.EnumMember=16]="EnumMember",O[O.Keyword=17]="Keyword",O[O.Text=18]="Text",O[O.Color=19]="Color",O[O.File=20]="File",O[O.Reference=21]="Reference",O[O.Customcolor=22]="Customcolor",O[O.Folder=23]="Folder",O[O.TypeParameter=24]="TypeParameter",O[O.User=25]="User",O[O.Issue=26]="Issue",O[O.Snippet=27]="Snippet",(x=tc||(tc={}))[x.Deprecated=1]="Deprecated",(D=tg||(tg={}))[D.Invoke=0]="Invoke",D[D.TriggerCharacter=1]="TriggerCharacter",D[D.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tp||(tp={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tf||(tf={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=tv||(tv={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=t_||(t_={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tC||(tC={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tS||(tS={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=ty||(ty={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=tT||(tT={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(z=tb||(tb={}))[z.Both=0]="Both",z[z.Right=1]="Right",z[z.Left=2]="Left",z[z.None=3]="None",(Y=tA||(tA={}))[Y.Type=1]="Type",Y[Y.Parameter=2]="Parameter",(K=tR||(tR={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",($=tL||(tL={}))[$.DependsOnKbLayout=-1]="DependsOnKbLayout",$[$.Unknown=0]="Unknown",$[$.Backspace=1]="Backspace",$[$.Tab=2]="Tab",$[$.Enter=3]="Enter",$[$.Shift=4]="Shift",$[$.Ctrl=5]="Ctrl",$[$.Alt=6]="Alt",$[$.PauseBreak=7]="PauseBreak",$[$.CapsLock=8]="CapsLock",$[$.Escape=9]="Escape",$[$.Space=10]="Space",$[$.PageUp=11]="PageUp",$[$.PageDown=12]="PageDown",$[$.End=13]="End",$[$.Home=14]="Home",$[$.LeftArrow=15]="LeftArrow",$[$.UpArrow=16]="UpArrow",$[$.RightArrow=17]="RightArrow",$[$.DownArrow=18]="DownArrow",$[$.Insert=19]="Insert",$[$.Delete=20]="Delete",$[$.Digit0=21]="Digit0",$[$.Digit1=22]="Digit1",$[$.Digit2=23]="Digit2",$[$.Digit3=24]="Digit3",$[$.Digit4=25]="Digit4",$[$.Digit5=26]="Digit5",$[$.Digit6=27]="Digit6",$[$.Digit7=28]="Digit7",$[$.Digit8=29]="Digit8",$[$.Digit9=30]="Digit9",$[$.KeyA=31]="KeyA",$[$.KeyB=32]="KeyB",$[$.KeyC=33]="KeyC",$[$.KeyD=34]="KeyD",$[$.KeyE=35]="KeyE",$[$.KeyF=36]="KeyF",$[$.KeyG=37]="KeyG",$[$.KeyH=38]="KeyH",$[$.KeyI=39]="KeyI",$[$.KeyJ=40]="KeyJ",$[$.KeyK=41]="KeyK",$[$.KeyL=42]="KeyL",$[$.KeyM=43]="KeyM",$[$.KeyN=44]="KeyN",$[$.KeyO=45]="KeyO",$[$.KeyP=46]="KeyP",$[$.KeyQ=47]="KeyQ",$[$.KeyR=48]="KeyR",$[$.KeyS=49]="KeyS",$[$.KeyT=50]="KeyT",$[$.KeyU=51]="KeyU",$[$.KeyV=52]="KeyV",$[$.KeyW=53]="KeyW",$[$.KeyX=54]="KeyX",$[$.KeyY=55]="KeyY",$[$.KeyZ=56]="KeyZ",$[$.Meta=57]="Meta",$[$.ContextMenu=58]="ContextMenu",$[$.F1=59]="F1",$[$.F2=60]="F2",$[$.F3=61]="F3",$[$.F4=62]="F4",$[$.F5=63]="F5",$[$.F6=64]="F6",$[$.F7=65]="F7",$[$.F8=66]="F8",$[$.F9=67]="F9",$[$.F10=68]="F10",$[$.F11=69]="F11",$[$.F12=70]="F12",$[$.F13=71]="F13",$[$.F14=72]="F14",$[$.F15=73]="F15",$[$.F16=74]="F16",$[$.F17=75]="F17",$[$.F18=76]="F18",$[$.F19=77]="F19",$[$.F20=78]="F20",$[$.F21=79]="F21",$[$.F22=80]="F22",$[$.F23=81]="F23",$[$.F24=82]="F24",$[$.NumLock=83]="NumLock",$[$.ScrollLock=84]="ScrollLock",$[$.Semicolon=85]="Semicolon",$[$.Equal=86]="Equal",$[$.Comma=87]="Comma",$[$.Minus=88]="Minus",$[$.Period=89]="Period",$[$.Slash=90]="Slash",$[$.Backquote=91]="Backquote",$[$.BracketLeft=92]="BracketLeft",$[$.Backslash=93]="Backslash",$[$.BracketRight=94]="BracketRight",$[$.Quote=95]="Quote",$[$.OEM_8=96]="OEM_8",$[$.IntlBackslash=97]="IntlBackslash",$[$.Numpad0=98]="Numpad0",$[$.Numpad1=99]="Numpad1",$[$.Numpad2=100]="Numpad2",$[$.Numpad3=101]="Numpad3",$[$.Numpad4=102]="Numpad4",$[$.Numpad5=103]="Numpad5",$[$.Numpad6=104]="Numpad6",$[$.Numpad7=105]="Numpad7",$[$.Numpad8=106]="Numpad8",$[$.Numpad9=107]="Numpad9",$[$.NumpadMultiply=108]="NumpadMultiply",$[$.NumpadAdd=109]="NumpadAdd",$[$.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",$[$.NumpadSubtract=111]="NumpadSubtract",$[$.NumpadDecimal=112]="NumpadDecimal",$[$.NumpadDivide=113]="NumpadDivide",$[$.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",$[$.ABNT_C1=115]="ABNT_C1",$[$.ABNT_C2=116]="ABNT_C2",$[$.AudioVolumeMute=117]="AudioVolumeMute",$[$.AudioVolumeUp=118]="AudioVolumeUp",$[$.AudioVolumeDown=119]="AudioVolumeDown",$[$.BrowserSearch=120]="BrowserSearch",$[$.BrowserHome=121]="BrowserHome",$[$.BrowserBack=122]="BrowserBack",$[$.BrowserForward=123]="BrowserForward",$[$.MediaTrackNext=124]="MediaTrackNext",$[$.MediaTrackPrevious=125]="MediaTrackPrevious",$[$.MediaStop=126]="MediaStop",$[$.MediaPlayPause=127]="MediaPlayPause",$[$.LaunchMediaPlayer=128]="LaunchMediaPlayer",$[$.LaunchMail=129]="LaunchMail",$[$.LaunchApp2=130]="LaunchApp2",$[$.Clear=131]="Clear",$[$.MAX_VALUE=132]="MAX_VALUE",(X=tN||(tN={}))[X.Hint=1]="Hint",X[X.Info=2]="Info",X[X.Warning=4]="Warning",X[X.Error=8]="Error",(j=tI||(tI={}))[j.Unnecessary=1]="Unnecessary",j[j.Deprecated=2]="Deprecated",(q=tw||(tw={}))[q.Inline=1]="Inline",q[q.Gutter=2]="Gutter",(Z=tO||(tO={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(J=tx||(tx={}))[J.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",J[J.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",J[J.TOP_CENTER=2]="TOP_CENTER",(Q=tD||(tD={}))[Q.Left=1]="Left",Q[Q.Center=2]="Center",Q[Q.Right=4]="Right",Q[Q.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tz||(tz={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tY||(tY={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nD,Emitter:nT,KeyCode:tL,KeyMod:rM,Position:rE,Range:r_,Selection:rC,SelectionDirection:tU,MarkerSeverity:tN,MarkerTag:tI,Uri:rl,Token:rN}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rz(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rY(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rj(e,t){return et?1:0}function rq(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rJ(e,t,0,e.length,0,t.length)}function rJ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rq(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rQ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rJ(e,t)}function r4(e,t){let i=t.length;return!(t.length>e.length)&&0===rJ(e,t,0,i)}function r5(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r3(n))return r7(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(og(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=op.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(og(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function og(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class op{static getInstance(){return op._INSTANCE||(op._INSTANCE=new op),op._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}op._INSTANCE=null;class of{static getInstance(e){return of.cache.get(Array.from(e))}static getLocales(){return of._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}of.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),of.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new of(s)}),of._locales=new rF(()=>Object.keys(of.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class ov{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ov.INSTANCE=new ov;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class o_ extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function oC(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let oS=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new o_),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oy=navigator.userAgent,oT=oy.indexOf("Firefox")>=0,ob=oy.indexOf("AppleWebKit")>=0,oA=oy.indexOf("Chrome")>=0,oR=!oA&&oy.indexOf("Safari")>=0,oL=!oA&&!oR&&ob;oy.indexOf("Electron/");let oN=oy.indexOf("Android")>=0,oI=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oI=e.matches,oC(e,({matches:e})=>{oI&&t.matches||(oI=e)})}class ow{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=oO(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=oO(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=oO(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=oO(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=oO(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=oO(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=oO(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=oO(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=oO(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=oO(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=oO(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function oO(e){return"number"==typeof e?`${e}px`:e}function ox(e){return new ow(e)}function oD(e,t){e instanceof ow?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");oD(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");oD(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");oD(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:oS.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),g=this._createRequest("7",0,t,i),p=this._createRequest("8",0,t,i),f=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),v=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),_=this._createRequest(String.fromCharCode(11825),0,t,null),C="|/-_ilm%";for(let e=0,n=C.length;e.001){y=!1;break}}let b=!0;return y&&v.width!==T&&(b=!1),v.width>m.width&&(b=!1),new oU({pixelRatio:oS.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:b,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:_.width,maxDigitWidth:S},!0)}};(eg=t$||(t$={})).serviceIds=new Map,eg.DI_TARGET="$di$target",eg.DI_DEPENDENCIES="$di$dependencies",eg.getServiceDependencies=function(e){return e[eg.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(t$.serviceIds.has(e))return t$.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[t$.DI_TARGET]===e?e[t$.DI_DEPENDENCIES].push({id:t,index:n}):(e[t$.DI_DEPENDENCIES]=[{id:t,index:n}],e[t$.DI_TARGET]=e)};return t.toString=()=>e,t$.serviceIds.set(e,t),t}let oz=oG("codeEditorService");function oY(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function o$(e){e()||(e(),i1(new nt("Assertion Failed")))}function oX(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i7(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o4._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o4._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o4._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o5=new Map;o5.set("false",!1),o5.set("true",!0),o5.set("isMac",nY.dz),o5.set("isLinux",nY.IJ),o5.set("isWindows",nY.ED),o5.set("isWeb",nY.$L),o5.set("isMacNative",nY.dz&&!nY.$L),o5.set("isEdge",nY.un),o5.set("isFirefox",nY.vU),o5.set("isChrome",nY.i7),o5.set("isSafari",nY.G6);let o6=Object.prototype.hasOwnProperty,o3={regexParsingWithErrorRecovery:!0},o9=(0,rL.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o7=(0,rL.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o8=(0,rL.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rL.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rL.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rL.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rL.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rL.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o3){this._config=e,this._scanner=new o4,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o7});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o4.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sf.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sS.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sS.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o8);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),s_.create(t,this._value());case 6:return this._advance(),sC.create(t,this._value());case 7:return this._advance(),sv.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[830],{96991:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z"}}]},name:"appstore",theme:"filled"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},29158:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},49591:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 00-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z"}}]},name:"select",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},88484:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},s=i(84089),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},17816:function(e,t){!function(e){"use strict";function t(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||0i=>e(t(i)),e)}function y(e,t){return t-e?i=>(i-e)/(t-e):e=>.5}x=new f(3),f!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0),x=new f(4),f!=Float32Array&&(x[0]=0,x[1]=0,x[2]=0,x[3]=0);let R=Math.sqrt(50),A=Math.sqrt(10),N=Math.sqrt(2);function O(e,t,i){return e=Math.floor(Math.log(t=(t-e)/Math.max(0,i))/Math.LN10),i=t/10**e,0<=e?(i>=R?10:i>=A?5:i>=N?2:1)*10**e:-(10**-e)/(i>=R?10:i>=A?5:i>=N?2:1)}let L=(e,t,i=5)=>{let n=0,r=(e=[e,t]).length-1,o=e[n],s=e[r],a;return s{i.prototype.rescale=function(){this.initRange(),this.nice();var[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},i.prototype.initRange=function(){var t=this.options.interpolator;this.options.range=e(t)},i.prototype.composeOutput=function(e,i){var{domain:n,interpolator:r,round:o}=this.getOptions(),n=t(n.map(e)),o=o?e=>a(e=r(e),"Number")?Math.round(e):e:r;this.output=T(o,n,i,e)},i.prototype.invert=void 0}}var D,x={exports:{}},M={exports:{}},k=Array.prototype.concat,P=Array.prototype.slice,F=M.exports=function(e){for(var t=[],i=0,n=e.length;ii=>e*(1-i)+t*i,q=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return $(e,t);if("string"!=typeof e||"string"!=typeof t)return()=>e;{let i=Y(e),n=Y(t);return null===i||null===n?i?()=>e:()=>t:e=>{var t=[,,,,];for(let s=0;s<4;s+=1){var r=i[s],o=n[s];t[s]=r*(1-e)+o*e}var[s,a,l,h]=t;return`rgba(${Math.round(s)}, ${Math.round(a)}, ${Math.round(l)}, ${h})`}}},X=(e,t)=>{let i=$(e,t);return e=>Math.round(i(e))};function Z({map:e,initKey:t},i){return t=t(i),e.has(t)?e.get(t):i}function J(e){return"object"==typeof e?e.valueOf():e}class Q extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=J,null!==e)for(var[t,i]of e)this.set(t,i)}get(e){return super.get(Z({map:this.map,initKey:this.initKey},e))}has(e){return super.has(Z({map:this.map,initKey:this.initKey},e))}set(e,t){var i,n;return super.set(([{map:e,initKey:i},n]=[{map:this.map,initKey:this.initKey},e],i=i(n),e.has(i)?e.get(i):(e.set(i,n),n)),t)}delete(e){var t,i;return super.delete(([{map:e,initKey:t},i]=[{map:this.map,initKey:this.initKey},e],t=t(i),e.has(t)&&(i=e.get(t),e.delete(t)),i))}}class ee{constructor(e){this.options=d({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=d({},this.options,e),this.rescale(e)}rescale(e){}}let et=Symbol("defaultUnknown");function ei(e,t,i){for(let n=0;n""+e:"object"==typeof e?e=>JSON.stringify(e):e=>e}class eo extends ee{getDefaultOptions(){return{domain:[],range:[],unknown:et}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&ei(this.domainIndexMap,this.getDomain(),this.domainKey),en({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&ei(this.rangeIndexMap,this.getRange(),this.rangeKey),en({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){var[t]=this.options.domain,[i]=this.options.range;this.domainKey=er(t),this.rangeKey=er(i),this.rangeIndexMap?(e&&!e.range||this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new eo(this.options)}getRange(){return this.options.range}getDomain(){var e,t;return this.sortedDomain||({domain:e,compare:t}=this.options,this.sortedDomain=t?[...e].sort(t):e),this.sortedDomain}}class es extends eo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:et,flex:[]}}constructor(e){super(e)}clone(){return new es(this.options)}getStep(e){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:e,paddingInner:t}=this.options;return 0e/t)}(h),f=d/g.reduce((e,t)=>e+t);var h=new Q(t.map((e,t)=>(t=g[t]*f,[e,s?Math.floor(t):t]))),p=new Q(t.map((e,t)=>(t=g[t]*f+c,[e,s?Math.floor(t):t]))),d=Array.from(p.values()).reduce((e,t)=>e+t),e=e+(u-(d-d/l*r))*a;let m=s?Math.round(e):e;var _=Array(l);for(let e=0;el+t*s),{valueStep:s,valueBandWidth:a,adjustedRange:e}}({align:e,range:i,round:n,flex:r,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=n,this.valueBandWidth=i,this.adjustedRange=e}}let ea=(e,t,i)=>{let n,r,o=e,s=t;if(o===s&&0{let n;var[e,r]=e,[t,o]=t;return T(e{let n=Math.min(e.length,t.length)-1,r=Array(n),o=Array(n);var s=e[0]>e[n],a=s?[...e].reverse():e,l=s?[...t].reverse():t;for(let e=0;e{var i=function(e,t,i,n,r){let o=1,s=n||e.length;for(var a=e=>e;ot?s=l:o=l+1}return o}(e,t,0,n)-1,s=r[i];return T(o[i],s)(t)}},eu=(e,t,i,n)=>(2Math.min(Math.max(n,e),r)}return c}composeOutput(e,t){var{domain:i,range:n,round:r,interpolate:o}=this.options,i=eu(i.map(e),n,o,r);this.output=T(i,t,e)}composeInput(e,t,i){var{domain:n,range:r}=this.options,r=eu(r,n.map(e),$);this.input=T(t,i,r)}}class ec extends ed{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:q,tickMethod:ea,tickCount:5}}chooseTransforms(){return[c,c]}clone(){return new ec(this.options)}}class eg extends es{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:et,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new eg(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}function ef(e,t){for(var i=[],n=0,r=e.length;n{var[e,t]=e;return T($(0,1),y(e,t))})],e_);let eE=o=class extends ec{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:c,tickMethod:ea,tickCount:5}}constructor(e){super(e)}clone(){return new o(this.options)}};function ev(e,t,n,r,o){var s=new ec({range:[t,t+r]}),a=new ec({range:[n,n+o]});return{transform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.map(t),a.map(e)]},untransform:function(e){var e=i(e,2),t=e[0],e=e[1];return[s.invert(t),a.invert(e)]}}}function eC(e,t,n,r,o){return(0,i(e,1)[0])(t,n,r,o)}function eb(e,t,n,r,o){return i(e,1)[0]}function eS(e,t,n,r,o){var s=(e=i(e,4))[0],a=e[1],l=e[2],e=e[3],h=new ec({range:[l,e]}),u=new ec({range:[s,a]}),d=1<(l=o/r)?1:l,c=1{let[t,i,n]=e,r=T($(0,.5),y(t,i)),o=T($(.5,1),y(i,n));return e=>(t>n?eh&&(h=f)}for(var p=Math.atan(n/(i*Math.tan(r))),m=1/0,_=-1/0,E=[o,s],d=-(2*Math.PI);d<=2*Math.PI;d+=Math.PI){var v=p+d;o_&&(_=b)}return{x:l,y:m,width:h-l,height:_-m}}function l(e,t,i,n){return o(e,t,i,n)}function h(e,t,i,n,r){return{x:(1-r)*e+r*i,y:(1-r)*t+r*n}}function u(e,t,i,n,r){var o=1-r;return o*o*o*e+3*t*r*o*o+3*i*r*r*o+n*r*r*r}function d(e,t,i,n){var o,s,a,l=-3*e+9*t-9*i+3*n,h=6*e-12*t+6*i,u=3*t-3*e,d=[];if((0,r.Z)(l,0))!(0,r.Z)(h,0)&&(o=-u/h)>=0&&o<=1&&d.push(o);else{var c=h*h-4*l*u;(0,r.Z)(c,0)?d.push(-h/(2*l)):c>0&&(o=(-h+(a=Math.sqrt(c)))/(2*l),s=(-h-a)/(2*l),o>=0&&o<=1&&d.push(o),s>=0&&s<=1&&d.push(s))}return d}function c(e,t,i,n,r,o,a,l){for(var h=[e,a],c=[t,l],g=d(e,i,r,a),f=d(t,n,o,l),p=0;p=0?[o]:[]}function m(e,t,i,n,r,o){var a=p(e,i,r)[0],l=p(t,n,o)[0],h=[e,r],u=[t,o];return void 0!==a&&h.push(f(e,i,r,a)),void 0!==l&&u.push(f(t,n,o,l)),s(h,u)}},53984:function(e,t){"use strict";t.Z=function(e,t,i){return ei?i:e}},47427:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return Array.isArray?Array.isArray(e):(0,n.Z)(e,"Array")}},63725:function(e,t,i){"use strict";var n=i(10410);t.Z=function(e){return(0,n.Z)(e,"Boolean")}},37377:function(e,t){"use strict";t.Z=function(e){return null==e}},76703:function(e,t,i){"use strict";function n(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)1&&(v*=O=Math.sqrt(O),C*=O);var L=v*v,I=C*C,w=(s===l?-1:1)*Math.sqrt(Math.abs((L*I-L*N*N-I*A*A)/(L*N*N+I*A*A)));p=w*v*N/C+(_+b)/2,m=-(w*C)*A/v+(E+S)/2,g=Math.asin(((E-m)/C*1e9>>0)/1e9),f=Math.asin(((S-m)/C*1e9>>0)/1e9),g=_f&&(g-=2*Math.PI),!l&&f>g&&(f-=2*Math.PI)}var D=f-g;if(Math.abs(D)>T){var x=f,M=b,k=S;R=e(b=p+v*Math.cos(f=g+T*(l&&f>g?1:-1)),S=m+C*Math.sin(f),v,C,o,0,l,M,k,[f,x,p,m])}D=f-g;var P=Math.cos(g),F=Math.cos(f),B=Math.tan(D/4),U=4/3*v*B,H=4/3*C*B,V=[_,E],W=[_+U*Math.sin(g),E-H*P],G=[b+U*Math.sin(f),S-H*F],j=[b,S];if(W[0]=2*V[0]-W[0],W[1]=2*V[1]-W[1],d)return W.concat(G,j,R);R=W.concat(G,j,R);for(var z=[],K=0,Y=R.length;K7){e[i].shift();for(var n=e[i],r=i;n.length;)t[i]="A",e.splice(r+=1,0,["C"].concat(n.splice(0,6)));e.splice(i,1)}}(d,g,_),p=d.length,"Z"===f&&m.push(_),l=(i=d[_]).length,c.x1=+i[l-2],c.y1=+i[l-1],c.x2=+i[l-4]||c.x1,c.y2=+i[l-3]||c.y1}return t?[d,m]:d}},63893:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0}},54109:function(e,t,i){"use strict";i.d(t,{z:function(){return n}});var n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null}},8699:function(e,t,i){"use strict";function n(e){return e.map(function(e){return Array.isArray(e)?[].concat(e):e})}i.d(t,{U:function(){return n}})},28024:function(e,t,i){"use strict";i.d(t,{A:function(){return g}});var n=i(97582),r=i(12884),o=i(54109),s=i(41793),a=i(66141),l=i(63893);function h(e){for(var t=e.pathValue[e.segmentStart],i=t.toLowerCase(),n=e.data;n.length>=l.R[i]&&("m"===i&&n.length>2?(e.segments.push([t].concat(n.splice(0,2))),i="l",t="m"===t?"l":"L"):e.segments.push([t].concat(n.splice(0,l.R[i]))),l.R[i]););}function u(e){return e>=48&&e<=57}function d(e){for(var t,i=e.pathValue,n=e.max;e.index=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t));)e.index+=1}var c=function(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function g(e){if((0,r.y)(e))return[].concat(e);for(var t=function(e){if((0,s.b)(e))return[].concat(e);var t=function(e){if((0,a.n)(e))return[].concat(e);var t=new c(e);for(d(t);t.index0;a-=1){if((32|r)==97&&(3===a||4===a)?function(e){var t=e.index,i=e.pathValue,n=i.charCodeAt(t);if(48===n){e.param=0,e.index+=1;return}if(49===n){e.param=1,e.index+=1;return}e.err='[path-util]: invalid Arc flag "'+i[t]+'", expecting 0 or 1 at index '+t}(e):function(e){var t,i=e.max,n=e.pathValue,r=e.index,o=r,s=!1,a=!1,l=!1,h=!1;if(o>=i){e.err="[path-util]: Invalid path value at index "+o+', "pathValue" is missing param';return}if((43===(t=n.charCodeAt(o))||45===t)&&(o+=1,t=n.charCodeAt(o)),!u(t)&&46!==t){e.err="[path-util]: Invalid path value at index "+o+', "'+n[o]+'" is not a number';return}if(46!==t){if(s=48===t,o+=1,t=n.charCodeAt(o),s&&o=e.max||!((s=i.charCodeAt(e.index))>=48&&s<=57||43===s||45===s||46===s))break}h(e)}(t);return t.err?t.err:t.segments}(e),i=0,n=0,r=0,o=0;return t.map(function(e){var t,s=e.slice(1).map(Number),a=e[0],l=a.toUpperCase();if("M"===a)return i=s[0],n=s[1],r=i,o=n,["M",i,n];if(a!==l)switch(l){case"A":t=[l,s[0],s[1],s[2],s[3],s[4],s[5]+i,s[6]+n];break;case"V":t=[l,s[0]+n];break;case"H":t=[l,s[0]+i];break;default:t=[l].concat(s.map(function(e,t){return e+(t%2?n:i)}))}else t=[l].concat(s);var h=t.length;switch(l){case"Z":i=r,n=o;break;case"H":i=t[1];break;case"V":n=t[1];break;default:i=t[h-2],n=t[h-1],"M"===l&&(r=i,o=n)}return t})}(e),i=(0,n.pi)({},o.z),g=0;g=f[t],p[t]-=m?1:0,m?e.ss:[e.s]}).flat()});return _[0].length===_[1].length?_:e(_[0],_[1],g)}}});var n=i(47852),r=i(31427);function o(e){return e.map(function(e,t,i){var o,s,a,l,h,u,d,c,g,f,p,m,_=t&&i[t-1].slice(-2).concat(e.slice(1)),E=t?(0,r.S)(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],{bbox:!1}).length:0;return m=t?E?(void 0===o&&(o=.5),s=_.slice(0,2),a=_.slice(2,4),l=_.slice(4,6),h=_.slice(6,8),u=(0,n.k)(s,a,o),d=(0,n.k)(a,l,o),c=(0,n.k)(l,h,o),g=(0,n.k)(u,d,o),f=(0,n.k)(d,c,o),p=(0,n.k)(g,f,o),[["C"].concat(u,g,p),["C"].concat(f,c,h)]):[e,e]:[e],{s:e,ss:m,l:E}})}},49958:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(75066);function r(e){var t,i,r;return t=0,i=0,r=0,(0,n.Y)(e).map(function(e){if("M"===e[0])return t=e[1],i=e[2],0;var n,o,s,a=e.slice(1),l=a[0],h=a[1],u=a[2],d=a[3],c=a[4],g=a[5];return o=t,r=3*((g-(s=i))*(l+u)-(c-o)*(h+d)+h*(o-u)-l*(s-d)+g*(u+o/3)-c*(d+s/3))/20,t=(n=e.slice(-2))[0],i=n[1],r}).reduce(function(e,t){return e+t},0)>=0}},80431:function(e,t,i){"use strict";i.d(t,{r:function(){return o}});var n=i(97582),r=i(12369);function o(e,t,i){return(0,r.s)(e,t,(0,n.pi)((0,n.pi)({},i),{bbox:!1,length:!0})).point}},88154:function(e,t,i){"use strict";i.d(t,{g:function(){return r}});var n=i(6393);function r(e,t){var i,r,o=e.length-1,s=[],a=0,l=(r=(i=e.length)-1,e.map(function(t,n){return e.map(function(t,o){var s=n+o;return 0===o||e[s]&&"M"===e[s][0]?["M"].concat(e[s].slice(-2)):(s>=i&&(s-=r),e[s])})}));return l.forEach(function(i,r){e.slice(1).forEach(function(i,s){a+=(0,n.y)(e[(r+s)%o].slice(-2),t[s%o].slice(-2))}),s[r]=a,a=0}),l[s.indexOf(Math.min.apply(null,s))]}},72888:function(e,t,i){"use strict";i.d(t,{D:function(){return o}});var n=i(97582),r=i(12369);function o(e,t){return(0,r.s)(e,void 0,(0,n.pi)((0,n.pi)({},t),{bbox:!1,length:!0})).length}},41793:function(e,t,i){"use strict";i.d(t,{b:function(){return r}});var n=i(66141);function r(e){return(0,n.n)(e)&&e.every(function(e){var t=e[0];return t===t.toUpperCase()})}},12884:function(e,t,i){"use strict";i.d(t,{y:function(){return r}});var n=i(41793);function r(e){return(0,n.b)(e)&&e.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}},66141:function(e,t,i){"use strict";i.d(t,{n:function(){return r}});var n=i(63893);function r(e){return Array.isArray(e)&&e.every(function(e){var t=e[0].toLowerCase();return n.R[t]===e.length-1&&"achlmqstvz".includes(t)})}},47852:function(e,t,i){"use strict";function n(e,t,i){var n=e[0],r=e[1];return[n+(t[0]-n)*i,r+(t[1]-r)*i]}i.d(t,{k:function(){return n}})},12369:function(e,t,i){"use strict";i.d(t,{s:function(){return h}});var n=i(28024),r=i(47852),o=i(6393);function s(e,t,i,n,s){var a=(0,o.y)([e,t],[i,n]),l={x:0,y:0};if("number"==typeof s){if(s<=0)l={x:e,y:t};else if(s>=a)l={x:i,y:n};else{var h=(0,r.k)([e,t],[i,n],s/a);l={x:h[0],y:h[1]}}}return{length:a,point:l,min:{x:Math.min(e,i),y:Math.min(t,n)},max:{x:Math.max(e,i),y:Math.max(t,n)}}}function a(e,t){var i=e.x,n=e.y,r=t.x,o=t.y,s=Math.sqrt((Math.pow(i,2)+Math.pow(n,2))*(Math.pow(r,2)+Math.pow(o,2)));return(i*o-n*r<0?-1:1)*Math.acos((i*r+n*o)/s)}var l=i(31427);function h(e,t,i){for(var r,h,u,d,c,g,f,p,m,_=(0,n.A)(e),E="number"==typeof t,v=[],C=0,b=0,S=0,T=0,y=[],R=[],A=0,N={x:0,y:0},O=N,L=N,I=N,w=0,D=0,x=_.length;D1&&(_*=p(T),E*=p(T));var y=(Math.pow(_,2)*Math.pow(E,2)-Math.pow(_,2)*Math.pow(S.y,2)-Math.pow(E,2)*Math.pow(S.x,2))/(Math.pow(_,2)*Math.pow(S.y,2)+Math.pow(E,2)*Math.pow(S.x,2)),R=(o!==l?1:-1)*p(y=y<0?0:y),A={x:R*(_*S.y/E),y:R*(-(E*S.x)/_)},N={x:f(v)*A.x-g(v)*A.y+(e+h)/2,y:g(v)*A.x+f(v)*A.y+(t+u)/2},O={x:(S.x-A.x)/_,y:(S.y-A.y)/E},L=a({x:1,y:0},O),I=a(O,{x:(-S.x-A.x)/_,y:(-S.y-A.y)/E});!l&&I>0?I-=2*m:l&&I<0&&(I+=2*m);var w=L+(I%=2*m)*d,D=_*f(w),x=E*g(w);return{x:f(v)*D-g(v)*x+N.x,y:g(v)*D+f(v)*x+N.y}}(e,t,i,n,r,l,h,u,d,L/C)).x,T=f.y,m&&O.push({x:S,y:T}),E&&(y+=(0,o.y)(A,[S,T])),A=[S,T],b&&y>=c&&c>R[2]){var I=(y-c)/(y-R[2]);N={x:A[0]*(1-I)+R[0]*I,y:A[1]*(1-I)+R[1]*I}}R=[S,T,y]}return b&&c>=y&&(N={x:u,y:d}),{length:y,point:N,min:{x:Math.min.apply(null,O.map(function(e){return e.x})),y:Math.min.apply(null,O.map(function(e){return e.y}))},max:{x:Math.max.apply(null,O.map(function(e){return e.x})),y:Math.max.apply(null,O.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],(t||0)-w,i||{})).length,N=h.min,O=h.max,L=h.point):"C"===p?(A=(u=(0,l.S)(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],(t||0)-w,i||{})).length,N=u.min,O=u.max,L=u.point):"Q"===p?(A=(d=function(e,t,i,n,r,s,a,l){var h,u=l.bbox,d=void 0===u||u,c=l.length,g=void 0===c||c,f=l.sampleSize,p=void 0===f?10:f,m="number"==typeof a,_=e,E=t,v=0,C=[_,E,0],b=[_,E],S={x:0,y:0},T=[{x:_,y:E}];m&&a<=0&&(S={x:_,y:E});for(var y=0;y<=p;y+=1){if(_=(h=function(e,t,i,n,r,o,s){var a=1-s;return{x:Math.pow(a,2)*e+2*a*s*i+Math.pow(s,2)*r,y:Math.pow(a,2)*t+2*a*s*n+Math.pow(s,2)*o}}(e,t,i,n,r,s,y/p)).x,E=h.y,d&&T.push({x:_,y:E}),g&&(v+=(0,o.y)(b,[_,E])),b=[_,E],m&&v>=a&&a>C[2]){var R=(v-a)/(v-C[2]);S={x:b[0]*(1-R)+C[0]*R,y:b[1]*(1-R)+C[1]*R}}C=[_,E,v]}return m&&a>=v&&(S={x:r,y:s}),{length:v,point:S,min:{x:Math.min.apply(null,T.map(function(e){return e.x})),y:Math.min.apply(null,T.map(function(e){return e.y}))},max:{x:Math.max.apply(null,T.map(function(e){return e.x})),y:Math.max.apply(null,T.map(function(e){return e.y}))}}}(v[0],v[1],v[2],v[3],v[4],v[5],(t||0)-w,i||{})).length,N=d.min,O=d.max,L=d.point):"Z"===p&&(A=(c=s((v=[C,b,S,T])[0],v[1],v[2],v[3],(t||0)-w)).length,N=c.min,O=c.max,L=c.point),E&&w=t&&(I=L),R.push(O),y.push(N),w+=A,C=(g="Z"!==p?m.slice(-2):[S,T])[0],b=g[1];return E&&t>=w&&(I={x:C,y:b}),{length:w,point:I,min:{x:Math.min.apply(null,y.map(function(e){return e.x})),y:Math.min.apply(null,y.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},31427:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});var n=i(6393);function r(e,t,i,r,o,s,a,l,h,u){var d,c=u.bbox,g=void 0===c||c,f=u.length,p=void 0===f||f,m=u.sampleSize,_=void 0===m?10:m,E="number"==typeof h,v=e,C=t,b=0,S=[v,C,0],T=[v,C],y={x:0,y:0},R=[{x:v,y:C}];E&&h<=0&&(y={x:v,y:C});for(var A=0;A<=_;A+=1){if(v=(d=function(e,t,i,n,r,o,s,a,l){var h=1-l;return{x:Math.pow(h,3)*e+3*Math.pow(h,2)*l*i+3*h*Math.pow(l,2)*r+Math.pow(l,3)*s,y:Math.pow(h,3)*t+3*Math.pow(h,2)*l*n+3*h*Math.pow(l,2)*o+Math.pow(l,3)*a}}(e,t,i,r,o,s,a,l,A/_)).x,C=d.y,g&&R.push({x:v,y:C}),p&&(b+=(0,n.y)(T,[v,C])),T=[v,C],E&&b>=h&&h>S[2]){var N=(b-h)/(b-S[2]);y={x:T[0]*(1-N)+S[0]*N,y:T[1]*(1-N)+S[1]*N}}S=[v,C,b]}return E&&h>=b&&(y={x:a,y:l}),{length:b,point:y,min:{x:Math.min.apply(null,R.map(function(e){return e.x})),y:Math.min.apply(null,R.map(function(e){return e.y}))},max:{x:Math.max.apply(null,R.map(function(e){return e.x})),y:Math.max.apply(null,R.map(function(e){return e.y}))}}}},33439:function(e,t,i){"use strict";function n(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function r(e,t){var i=Object.create(e.prototype);for(var n in t)i[n]=t[n];return i}function o(){}i.d(t,{ZP:function(){return v}});var s="\\s*([+-]?\\d+)\\s*",a="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,u=RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=RegExp("^rgb\\("+[l,l,l]+"\\)$"),c=RegExp("^rgba\\("+[s,s,s,a]+"\\)$"),g=RegExp("^rgba\\("+[l,l,l,a]+"\\)$"),f=RegExp("^hsl\\("+[a,l,l]+"\\)$"),p=RegExp("^hsla\\("+[a,l,l,a]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function v(e){var t,i;return e=(e+"").trim().toLowerCase(),(t=h.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?C(t):3===i?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?b(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?b(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=u.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?b(t[1],t[2],t[3],t[4]):(t=g.exec(e))?b(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?A(t[1],t[2]/100,t[3]/100,1):(t=p.exec(e))?A(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?C(m[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function C(e){return new S(e>>16&255,e>>8&255,255&e,1)}function b(e,t,i,n){return n<=0&&(e=t=i=NaN),new S(e,t,i,n)}function S(e,t,i,n){this.r=+e,this.g=+t,this.b=+i,this.opacity=+n}function T(){return"#"+R(this.r)+R(this.g)+R(this.b)}function y(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function R(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function A(e,t,i,n){return n<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new O(e,t,i,n)}function N(e){if(e instanceof O)return new O(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=v(e)),!e)return new O;if(e instanceof O)return e;var t=(e=e.rgb()).r/255,i=e.g/255,n=e.b/255,r=Math.min(t,i,n),s=Math.max(t,i,n),a=NaN,l=s-r,h=(s+r)/2;return l?(a=t===s?(i-n)/l+(i0&&h<1?0:a,new O(a,l,h,e.opacity)}function O(e,t,i,n){this.h=+e,this.s=+t,this.l=+i,this.opacity=+n}function L(e,t,i){return(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)*255}n(o,v,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_,formatHex:_,formatHsl:function(){return N(this).formatHsl()},formatRgb:E,toString:E}),n(S,function(e,t,i,n){var r;return 1==arguments.length?((r=e)instanceof o||(r=v(r)),r)?(r=r.rgb(),new S(r.r,r.g,r.b,r.opacity)):new S:new S(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatRgb:y,toString:y})),n(O,function(e,t,i,n){return 1==arguments.length?N(e):new O(e,t,i,null==n?1:n)},r(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new O(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new O(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,n=i+(i<.5?i:1-i)*t,r=2*i-n;return new S(L(e>=240?e-240:e+120,r,n),L(e,r,n),L(e<120?e+240:e-120,r,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return ew}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),g=i(82690);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _(e){if("undefined"==typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,v=Math.min,C=Math.round;function b(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function S(){return!/^((?!chrome|android).)*safari/i.test(b())}function T(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(p(e)?f(e):window).visualViewport,a=!S()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function y(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function R(e){return e?(e.nodeName||"").toLowerCase():null}function A(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return T(A(e)).left+y(e).scrollLeft}function O(e){return f(e).getComputedStyle(e)}function L(e){var t=O(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function I(e){var t=T(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function w(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||A(e)}function D(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(R(t))>=0?t.ownerDocument.body:m(t)&&L(t)?t:e(w(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=f(n),s=r?[o].concat(o.visualViewport||[],L(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(D(w(s)))}function x(e){return m(e)&&"fixed"!==O(e).position?e.offsetParent:null}function M(e){for(var t=f(e),i=x(e);i&&["table","td","th"].indexOf(R(i))>=0&&"static"===O(i).position;)i=x(i);return i&&("html"===R(i)||"body"===R(i)&&"static"===O(i).position)?t:i||function(e){var t=/firefox/i.test(b());if(/Trident/i.test(b())&&m(e)&&"fixed"===O(e).position)return null;var i=w(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(R(i));){var n=O(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),j=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function J(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?q(r):null,s=r?X(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,g=e.position,p=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,E=e.isFixed,v=c.x,b=void 0===v?0:v,S=c.y,T=void 0===S?0:S,y="function"==typeof _?_({x:b,y:T}):{x:b,y:T};b=y.x,T=y.y;var R=c.hasOwnProperty("x"),N=c.hasOwnProperty("y"),L=F,I="top",w=window;if(m){var D=M(l),x="clientHeight",B="clientWidth";D===f(l)&&"static"!==O(D=A(l)).position&&"absolute"===g&&(x="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(I=k,T-=(E&&D===w&&w.visualViewport?w.visualViewport.height:D[x])-h.height,T*=p?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(L=P,b-=(E&&D===w&&w.visualViewport?w.visualViewport.width:D[B])-h.width,b*=p?1:-1)}var U=Object.assign({position:g},m&&Q),H=!0===_?(t={x:b,y:T},i=f(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:b,y:T};return(b=H.x,T=H.y,p)?Object.assign({},U,((a={})[I]=N?"0":"",a[L]=R?"0":"",a.transform=1>=(w.devicePixelRatio||1)?"translate("+b+"px, "+T+"px)":"translate3d("+b+"px, "+T+"px, 0)",a)):Object.assign({},U,((s={})[I]=N?T+"px":"",s[L]=R?b+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&_(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=f(e),n=A(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=S();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+N(e),y:l}}(e,i)):p(t)?((n=T(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=A(e),s=A(r),a=y(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+N(r),c=-a.scrollTop,"rtl"===O(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,g=void 0===c?e.strategy:c,f=h.boundary,_=h.rootBoundary,C=h.elementContext,b=void 0===C?W:C,S=h.altBoundary,y=h.padding,N=void 0===y?0:y,L=eh("number"!=typeof N?N:eu(N,U)),I=e.rects.popper,x=e.elements[void 0!==S&&S?b===W?"reference":W:b],F=(i=p(x)?x:x.contextElement||A(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===f?"clippingParents":f)?(r=D(w(i)),p(o=["absolute","fixed"].indexOf(O(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return p(e)&&eo(e,o)&&"body"!==R(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=E(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=T(e.elements.reference),H=J({reference:B,element:I,strategy:"absolute",placement:d}),G=es(Object.assign({},I,H)),j=b===W?G:B,z={top:F.top-j.top+L.top,bottom:j.bottom-F.bottom+L.bottom,left:F.left-j.left+L.left,right:j.right-F.right+L.right},K=e.modifiersData.offset;if(b===W&&K){var Y=K[d];Object.keys(z).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";z[e]+=Y[i]*t})}return z}function ec(e,t,i){return E(e,v(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ef(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ep=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=f(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,$)}),a&&l.addEventListener("resize",i.update,$),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,$)}),a&&l.removeEventListener("resize",i.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:q(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&R(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&R(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=j.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=q(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,g=i.flipVariations,f=void 0===g||g,p=i.allowedAutoPlacements,m=t.options.placement,_=q(m)===m,E=l||(_||!f?[ei(m)]:function(e){if(q(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,g,m,_,E,v;return e.concat(q(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:p}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(c=n.allowedAutoPlacements)?j:c,0===(E=(_=(m=X(r))?l?G:G.filter(function(e){return X(e)===m}):U).filter(function(e){return g.indexOf(e)>=0})).length&&(E=_),Object.keys(v=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[q(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),C=t.rects.reference,b=t.rects.popper,S=new Map,T=!0,y=v[0],R=0;R=0,I=L?"width":"height",w=ed(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),D=L?O?P:F:O?k:"top";C[I]>b[I]&&(D=ei(D));var x=ei(D),M=[];if(o&&M.push(w[N]<=0),a&&M.push(w[D]<=0,w[x]<=0),M.every(function(e){return e})){y=A,T=!1;break}S.set(A,M)}if(T)for(var V=f?3:1,W=function(e){var t=v.find(function(t){var i=S.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return y=t,"break"},z=V;z>0&&"break"!==W(z);z--);t.placement!==y&&(t.modifiersData[n]._skip=!0,t.placement=y,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,g=void 0===c?0:c,f=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),p=q(t.placement),m=X(t.placement),_=!m,C=Z(p),b="x"===C?"y":"x",S=t.modifiersData.popperOffsets,T=t.rects.reference,y=t.rects.popper,R="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof R?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(void 0===r||r){var L,w="y"===C?"top":F,D="y"===C?k:P,x="y"===C?"height":"width",B=S[C],U=B+f[w],V=B-f[D],W=d?-y[x]/2:0,G=m===H?T[x]:y[x],j=m===H?-y[x]:-T[x],z=t.elements.arrow,K=d&&z?I(z):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),$=Y[w],J=Y[D],Q=ec(0,T[x],K[x]),ee=_?T[x]/2-W-Q-$-A.mainAxis:G-Q-$-A.mainAxis,et=_?-T[x]/2+W+Q+J+A.mainAxis:j+Q+J+A.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(L=null==N?void 0:N[C])?L:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?v(U,eo):U,B,d?E(V,es):V);S[C]=ea,O[C]=ea-B}if(void 0!==o&&o){var eh,eu,eg="x"===C?"top":F,ef="x"===C?k:P,ep=S[b],em="y"===b?"height":"width",e_=ep+f[eg],eE=ep-f[ef],ev=-1!==["top",F].indexOf(p),eC=null!=(eu=null==N?void 0:N[b])?eu:0,eb=ev?e_:ep-T[em]-y[em]-eC+A.altAxis,eS=ev?ep+T[em]+y[em]-eC-A.altAxis:eE,eT=d&&ev?(eh=ec(eb,ep,eS))>eS?eS:eh:ec(d?eb:e_,ep,d?eS:eE);S[b]=eT,O[b]=eT-ep}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=q(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=I(s),g="y"===h?"top":F,f="y"===h?k:P,p=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],_=M(s),E=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,v=d[g],C=E-c[u]-d[f],b=E/2-c[u]/2+(p/2-m/2),S=ec(v,b,C);n.modifiersData[r]=((i={})[h]=S,i.centerOffset=S-b,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=eg(s,n),h=eg(a,r,o),u=ef(l),d=ef(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,g,f="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,f),r.scrollParents={reference:p(e)?D(e):e.contextElement?D(e.contextElement):[],popper:D(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),g.push(t)}(e)}),z.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,g,p,_=r.elements,E=_.reference,v=_.popper;if(Y(E,v)){r.rects={reference:(t=M(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),d=A(t),c=T(E,u,i),g={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!i)&&(("body"!==R(t)||L(d))&&(g=(e=t)!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:y(e)),m(t)?(p=T(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=N(d))),{x:c.left+g.scrollLeft-p.x,y:c.top+g.scrollTop-p.y,width:c.width,height:c.height}),popper:I(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,ev.jsx)(u.Fragment,{children:i}):(0,ev.jsx)(u.Fragment,{children:o?e_.createPortal(i,o):o})});var eb=i(34867);function eS(e){return(0,eb.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var eT=i(7293);let ey=u.createContext({disableDefaultClasses:!1}),eR=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eA=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eN(e){return"function"==typeof e?e():e}let eO=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ey);return i=>t?"":e(i)}(eS)),eL={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:f,popperOptions:p,popperRef:m,slotProps:_={},slots:E={},TransitionProps:v}=e,C=(0,h.Z)(e,eR),b=u.useRef(null),S=(0,d.Z)(b,t),T=u.useRef(null),y=(0,d.Z)(T,m),R=u.useRef(y);(0,c.Z)(()=>{R.current=y},[y]),u.useImperativeHandle(m,()=>T.current,[]);let A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,o),[N,O]=u.useState(A),[L,I]=u.useState(eN(n));u.useEffect(()=>{T.current&&T.current.forceUpdate()}),u.useEffect(()=>{n&&I(eN(n))},[n]),(0,c.Z)(()=>{if(!L||!g)return;let e=e=>{O(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),p&&null!=p.modifiers&&(t=t.concat(p.modifiers));let i=ep(L,b.current,(0,l.Z)({placement:A},p,{modifiers:t}));return R.current(i),()=>{i.destroy(),R.current(null)}},[L,s,a,g,p,A]);let w={placement:N};null!==v&&(w.TransitionProps=v);let D=eO(),x=null!=(i=E.root)?i:"div",M=(0,eT.y)({elementType:x,externalSlotProps:_.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:D.root});return(0,ev.jsx)(x,(0,l.Z)({},M,{children:"function"==typeof r?r(w):r}))}),ew=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:f,placement:p="bottom",popperOptions:m=eL,popperRef:_,style:E,transition:v=!1,slotProps:C={},slots:b={}}=e,S=(0,h.Z)(e,eA),[T,y]=u.useState(!0);if(!d&&!f&&(!v||T))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let R=!f&&d&&(!v||T)?"none":void 0;return(0,ev.jsx)(eC,{disablePortal:a,container:i,children:(0,ev.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:v?!T:f,placement:p,popperOptions:m,popperRef:_,slotProps:C,slots:b},S,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:R},E),TransitionProps:v?{in:f,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,g=r.useRef(),[f,p]=r.useState(!1),{isFocusVisibleRef:m,onFocus:_,onBlur:E,ref:v}=(0,o.Z)(),[C,b]=r.useState(!1);t&&!i&&C&&b(!1),r.useEffect(()=>{m.current=C},[C,m]);let[S,T]=r.useState(""),y=e=>t=>{var i;C&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},R=e=>t=>{var i;E(t),!1===m.current&&b(!1),null==(i=e.onBlur)||i.call(e,t)},A=e=>t=>{var i,n;g.current||(g.current=t.currentTarget),_(t),!0===m.current&&(b(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},N=()=>{let e=g.current;return"BUTTON"===S||"INPUT"===S&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===S&&(null==e?void 0:e.href)},O=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},L=e=>i=>{var n;t||(p(!0),document.addEventListener("mouseup",()=>{p(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},I=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||N()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||p(!0),i.target!==i.currentTarget||N()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},w=e=>i=>{var n,r;i.target===i.currentTarget&&p(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||N()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},D=r.useCallback(e=>{var t;T(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),x=(0,s.Z)(D,h,v,g),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===S?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==S&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:R(i),onClick:O(i),onFocus:A(i),onKeyDown:I(i),onKeyUp:w(i),onMouseDown:L(i),onMouseLeave:y(i),ref:x});return delete r.onFocusVisible,r},focusVisible:C,setFocusVisible:b,active:f,rootRef:x}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),f=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",f=!1;break;case"start":r=0,o="next",f=!1;break;case"end":r=c,o="previous",f=!1;break;default:{let e=g+t;e<0?!f&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!f||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let p=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,f);return -1!==p||null===e||a(e,g)?null!=(n=s[p])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return v}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let g={},f=()=>{},p=(e,t)=>e===t,m=()=>!1,_=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function v(e){let{controlledProps:t=g,disabledItemsFocusable:i=!1,disableListWrap:v=!1,focusManagement:C="activeDescendant",getInitialState:b=E,getItemDomElement:S,getItemId:T,isItemDisabled:y=m,rootRef:R,onStateChange:A=f,items:N,itemComparer:O=p,getItemAsString:L=_,onChange:I,onHighlightChange:w,onItemsChange:D,orientation:x="vertical",pageSize:M=5,reducerActionContext:k=g,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(R,B),H=r.useCallback((e,t,i)=>{if(null==w||w(e,t,i),"DOM"===C&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==S||null==(n=S(t))||n.focus()}},[S,w,C]),V=r.useMemo(()=>({highlightedValue:O,selectedValues:(e,t)=>(0,d.H)(e,t,O)}),[O]),W=r.useCallback((e,t,i,n,r)=>{switch(null==A||A(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==I||I(e,i,n)}},[H,I,A]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:v,focusManagement:C,isItemDisabled:y,itemComparer:O,items:N,getItemAsString:L,onHighlightChange:H,orientation:x,pageSize:M,selectionMode:P,stateComparers:V}),[i,v,C,y,O,N,L,H,x,M,P,V]),j=b(),z=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[Y,$]=(0,u.r)({reducer:z,actionContext:K,initialState:j,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:q,selectedValues:X}=Y,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>$({type:s.F.textNavigation,event:t,searchString:e})),J=c(X),Q=c(q),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,N,O)||($({type:s.F.itemsChange,event:null,items:N,previousItems:ee.current}),ee.current=N,null==D||D(N))},[N,O,$,D]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(X)},[X,et]),r.useEffect(()=>{ei(q)},[q,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===x?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===C&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),$({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||$({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=N.findIndex(t=>O(t,e)),n=(null!=(t=J.current)?t:[]).some(t=>null!=t&&O(e,t)),r=y(e,i),o=null!=Q.current&&O(e,Q.current),s="DOM"===C;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[N,y,O,J,Q,C]),el=r.useMemo(()=>({dispatch:$,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[$,ea,en,er]);return r.useDebugValue({state:Y}),{contextValue:el,dispatch:$,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===C&&null!=q?T(q):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===C?-1:0,ref:U}),rootRef:U,state:Y}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),g=r.useContext(l.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:f,getItemState:p,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=g,{highlighted:E,selected:v,focusable:C}=p(h),b=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&b():b()})),(0,s.Z)(()=>_(function(e){v?e.includes(h)||b():e.includes(h)&&b()}),[_,b,v,h]);let S=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||f({type:a.F.itemClick,item:h,event:t})},[f,h]),T=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||f({type:a.F.itemHover,item:h,event:t})},[f,h]);return C&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:S(e),onPointerOver:i?T(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:v}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),g=t(u),f=(0,r.Z)(null==g?void 0:g.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),p=(0,n.Z)({},null==g?void 0:g.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},g,i,c,d);return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:g.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:g}=e,f=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[p,m]=r.useReducer(f,h),_=r.useCallback(e=>{m((0,n.Z)({},e,{context:g}))},[g]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:p,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(p,u),_]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,g=(0,r.Z)(e,h),f=c?{}:(0,l.x)(u,d),{props:p,internalRef:m}=(0,a.L)((0,n.Z)({},g,{externalSlotProps:f})),_=(0,o.Z)(m,null==f?void 0:f.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},p,{ref:_}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var g=i(37078),f=i(1812),p=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:g="MuiBox-root",generateClassName:f}=e,p=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:_="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(p,(0,n.Z)({as:_,ref:o,className:(0,s.Z)(m,f?f(g):g),theme:t&&a[t]||a},E))});return m}({themeId:p.Z,defaultTheme:f.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var _=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),g=i(26821);function f(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var p=i(58859),m=i(30220),_=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],v=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,f,{})},C=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,p.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),b=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:g=!1,size:f="md",variant:p="outlined",children:b,orientation:S="vertical",slots:T={},slotProps:y={}}=i,R=(0,n.Z)(i,E),{getColor:A}=(0,c.VT)(p),N=A(e.color,l),O=(0,r.Z)({},i,{color:N,component:d,orientation:S,size:f,variant:p}),L=v(O),I=(0,r.Z)({},R,{component:d,slots:T,slotProps:y}),[w,D]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(L.root,a),elementType:C,externalForwardedProps:I,ownerState:O}),x=(0,_.jsx)(w,(0,r.Z)({},D,{children:o.Children.map(b,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===S?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===S&&(i["data-parent"]="Card-horizontal"),"vertical"===S&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(b)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,_.jsx)(c.do,{variant:p,children:x}):x});var S=b},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(30220),f=i(85893);let p=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),_=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,p),v=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),C=(0,n.Z)({},i,{component:a,orientation:u}),b=m(),[S,T]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(b.root,o),elementType:_,externalForwardedProps:v,ownerState:C});return(0,f.jsx)(S,(0,n.Z)({},T,{children:h}))});var v=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return A}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),g=i(74312),f=i(20407),p=i(78653),m=i(55907),_=i(26821);function E(e){return(0,_.d6)("MuiOption",e)}let v=(0,_.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var C=i(40780),b=i(85893);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],T=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},y=(0,g.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${v.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),R=o.forwardRef(function(e,t){var i;let s=(0,f.Z)({props:e,name:"JoyOption"}),{component:c="li",children:g,disabled:_=!1,value:E,label:v,variant:R="plain",color:A="neutral",slots:N={},slotProps:O={}}=s,L=(0,r.Z)(s,S),I=o.useContext(C.Z),{variant:w=R,color:D=A}=(0,m.yP)(e.variant,e.color),x=o.useRef(null),M=(0,l.Z)(x,t),k=null!=v?v:"string"==typeof g?g:null==(i=x.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:g,highlighted:f,selected:p}=(0,h.J)({item:t}),m=(0,a.Z)(d),_=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:_,id:m}),[r,i,t,m]),{index:v}=(0,u.B)(t,E),C=(0,l.Z)(s,_,g);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:C,role:"option","aria-selected":p}),highlighted:f,index:v,selected:p,rootRef:C}}({disabled:_,label:k,value:E,rootRef:M}),{getColor:H}=(0,p.VT)(w),V=H(e.color,D),W=(0,n.Z)({},s,{disabled:_,selected:F,highlighted:B,index:U,component:c,variant:w,color:V,row:I}),G=T(W),j=(0,n.Z)({},L,{component:c,slots:N,slotProps:O}),[z,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:y,externalForwardedProps:j,className:G.root,ownerState:W});return(0,b.jsx)(z,(0,n.Z)({},K,{children:g}))});var A=R},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),g=i(70758);let f={buttonClick:"buttonClick"};var p=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var _=i(12247),E=i(7333),v=i(22644);function C(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===f.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case v.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case v.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case v.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var b=i(2900);let S={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},T=()=>{};function y(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function R(e){e.preventDefault()}var A=i(26558),N=i(85893);function O(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,N.jsx)(_.s.Provider,{value:c,children:(0,N.jsx)(A.Z.Provider,{value:d,children:i})})}var L=i(94780),I=i(50984),w=i(3419),D=i(43614),x=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,L.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,x.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:g=!1,titleAccess:f,viewBox:p="0 0 24 24",size:m="md",slots:_={},slotProps:E={}}=i,v=(0,r.Z)(i,B),C=s.isValidElement(n)&&"svg"===n.type,b=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:p,hasSvgAsChild:C}),S=U(b),T=(0,o.Z)({},v,{component:u,slots:_,slotProps:E}),[y,R]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(S.root,l),elementType:V,externalForwardedProps:T,ownerState:b,additionalProps:(0,o.Z)({color:c,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!g&&{viewBox:p},C&&n.props)});return(0,N.jsxs)(y,(0,o.Z)({},R,{children:[C?n.props.children:n,f?(0,N.jsx)("title",{children:f}):null]}))});var G=function(e,t){function i(i,n){return(0,N.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,N.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),j=i(78653),z=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let Y=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var $=i(76043),q=i(55907);let X=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let J=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],Q=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,L.Z)(a,K,{})},ee=(0,x.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,z.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${Y.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${Y.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${Y.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,x.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,x.Z)(I.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},w.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,x.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,x.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,x.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${Y.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${Y.expanded}, .${Y.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,v,A,L,I;let x=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:z,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:eg="md",variant:ef="outlined",color:ep="neutral",startDecorator:em,endDecorator:e_,indicator:eE=n||(n=(0,N.jsx)(G,{})),"aria-describedby":ev,"aria-label":eC,"aria-labelledby":eb,id:eS,name:eT,slots:ey={},slotProps:eR={}}=x,eA=(0,r.Z)(x,X),eN=s.useContext($.Z),eO=null!=(i=null!=(l=e.disabled)?l:null==eN?void 0:eN.disabled)?i:V,eL=null!=(E=null!=(v=e.size)?v:null==eN?void 0:eN.size)?E:eg,{getColor:eI}=(0,j.VT)(ef),ew=eI(e.color,null!=eN&&eN.error?"danger":null!=(A=null==eN?void 0:eN.color)?A:ep),eD=null!=eu?eu:Z,[ex,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ej,getListboxProps:ez,getHiddenInputProps:eK,getOptionMetadata:eY,open:e$,value:eq}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:v,listboxRef:A,multiple:N=!1,name:O,required:L,onChange:I,onHighlightChange:w,onOpenChange:D,open:x,options:M,getOptionAsString:k=m,getSerializedValue:P=y,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(v);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=N?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return N?F:null==F?[]:[F]},[F,N]),{subitems:G,contextValue:j}=(0,_.Y)(),z=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(A,H),{getRootProps:Y,active:$,focusVisible:q,rootRef:X}=(0,g.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(z.keys()),[z]),J=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return z.get(t)}return z.get(e)},[z,r,Z]),Q=s.useCallback(e=>{var t;let i=J(e);return null!=(t=null==i?void 0:i.disabled)&&t},[J]),ee=s.useCallback(e=>{let t=J(e);return t?k(t):""},[J,k]),et=s.useMemo(()=>({selectedValues:W,open:x}),[W,x]),ei=s.useCallback(e=>{var t;return null==(t=z.get(e))?void 0:t.id},[z]),en=s.useCallback((e,t)=>{if(N)null==I||I(e,t);else{var i;null==I||I(e,null!=(i=t[0])?i:null)}},[N,I]),er=s.useCallback((e,t)=>{null==w||w(e,null!=t?t:null)},[w]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==D||D(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[D]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:Q,rootRef:X,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:N}),[N]),items:Z,getItemAsString:ee,selectionMode:N?"multiple":"single",stateReducer:C},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:eg}=(0,p.s)(es),ef=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:f.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=J(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,J]);let ep=s.useCallback(e=>J(e),[J]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:ef(e),ref:eg,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let e_=s.useMemo(()=>(0,o.Z)({},eh,j),[eh,j]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,N)n=i.map(e=>ep(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ep(i))?eE:null}return{buttonActive:$,buttonFocusVisible:q,buttonRef:X,contextValue:e_,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,b.f)(Y,el),i=(0,b.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:O,tabIndex:-1,"aria-hidden":!0,required:!!L||void 0,value:P(n),onChange:T,style:S},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":N?"true":void 0,ref:K,onMouseDown:R}),getOptionMetadata:ep,listboxRef:eg,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eO,getSerializedValue:W,listboxId:K,multiple:!1,name:eT,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eX=(0,o.Z)({},x,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:e$,renderValue:eD,value:eq,size:eL,variant:ef,color:ew}),eZ=Q(eX),eJ=(0,o.Z)({},eA,{slots:ey,slotProps:eR}),eQ=s.useMemo(()=>{var e;return null!=(e=eY(eq))?e:null},[eY,eq]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eJ,ownerState:eX}),[e2,e5]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=ev?ev:null==eN?void 0:eN["aria-describedby"],"aria-label":eC,"aria-labelledby":null!=eb?eb:null==eN?void 0:eN.labelId,"aria-required":ed?"true":void 0,id:null!=eS?eS:null==eN?void 0:eN.htmlFor,name:eT},className:eZ.button,elementType:et,externalForwardedProps:eJ,getSlotProps:ej,ownerState:eX}),[e4,e3]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:ex,open:e$,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eJ,getSlotProps:ez,ownerState:(0,o.Z)({},eX,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eL,variant:e.variant||ef,color:e.color||(e.disablePortal?ew:ep),disableColorInversion:!e.disablePortal})}),[e6,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eJ,ownerState:eX}),[e7,e8]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eJ,ownerState:eX}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eJ,ownerState:eX}),ti=s.useMemo(()=>[...J,...e3.modifiers||[]],[e3.modifiers]),tn=null;return ex&&(tn=(0,N.jsx)(e4,(0,o.Z)({},e3,{className:(0,a.Z)(e3.className,(null==(L=e3.ownerState)?void 0:L.color)==="context"&&Y.colorContext),modifiers:ti},!(null!=(I=x.slots)&&I.listbox)&&{as:u.r,slots:{root:e3.as||"ul"}},{children:(0,N.jsx)(O,{value:eW,children:(0,N.jsx)(q.Yb,{variant:ef,color:ep,children:(0,N.jsx)(D.Z.Provider,{value:"select",children:(0,N.jsx)(w.Z,{nested:!0,children:B})})})})})),e3.disablePortal||(tn=(0,N.jsx)(j.ZP.Provider,{value:void 0,children:tn}))),(0,N.jsxs)(s.Fragment,{children:[(0,N.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,N.jsx)(e6,(0,o.Z)({},e9,{children:em})),(0,N.jsx)(e2,(0,o.Z)({},e5,{children:eQ?eD(eQ):z})),e_&&(0,N.jsx)(e7,(0,o.Z)({},e8,{children:e_})),eE&&(0,N.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,N.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function g(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var f=i(40911),p=i(30220),m=i(85893);let _=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,g,{})},v={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[v.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[v.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[v.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[v.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[v.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${v.getColumnExceptFirst()}, ${v.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[v.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[v.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[v.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[v.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[v.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[v.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[v.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[v.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[v.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),b=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:g=!1,size:v="md",variant:b="plain",color:S="neutral",stripe:T,stickyHeader:y=!1,stickyFooter:R=!1,slots:A={},slotProps:N={}}=i,O=(0,n.Z)(i,_),{getColor:L}=(0,u.VT)(b),I=L(e.color,S),w=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:g,component:a,size:v,color:I,variant:b,stripe:T,stickyHeader:y,stickyFooter:R}),D=E(w),x=(0,r.Z)({},O,{component:a,slots:A,slotProps:N}),[M,k]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,o),elementType:C,externalForwardedProps:x,ownerState:w});return(0,m.jsx)(f.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var S=b},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return C},ZP:function(){return N}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),g=i(30220),f=i(26821);function p(e){return(0,f.d6)("MuiTypography",e)}(0,f.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let _=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],v=o.createContext(!1),C=o.createContext(!1),b=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,p,{})},S=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),y=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),R={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},A=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,_),f=o.useContext(v),p=o.useContext(C),A=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:N,gutterBottom:O=!1,noWrap:L=!1,level:I="body-md",levelMapping:w=R,children:D,endDecorator:x,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=A,B=(0,n.Z)(A,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=f||p?e.level||"inherit":I,W=(0,a.Z)(D,["Skeleton"]),G=N||(f?"span":w[V]||R[V]||"span"),j=(0,r.Z)({},A,{level:V,component:G,color:H,gutterBottom:O,noWrap:L,nesting:f,variant:k,unstable_hasSkeleton:W}),z=b(j),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[Y,$]=(0,g.Z)("root",{ref:t,className:z.root,elementType:y,externalForwardedProps:K,ownerState:j}),[q,X]=(0,g.Z)("startDecorator",{className:z.startDecorator,elementType:S,externalForwardedProps:K,ownerState:j}),[Z,J]=(0,g.Z)("endDecorator",{className:z.endDecorator,elementType:T,externalForwardedProps:K,ownerState:j});return(0,m.jsx)(v.Provider,{value:!0,children:(0,m.jsxs)(Y,(0,r.Z)({},$,{children:[M&&(0,m.jsx)(q,(0,r.Z)({},X,{children:M})),W?o.cloneElement(D,{variant:D.props.variant||"inline"}):D,x&&(0,m.jsx)(Z,(0,r.Z)({},J,{children:x}))]}))})});A.muiName="Typography";var N=A},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],g=["disableColorInversion"];function f(e,t){let{className:i,elementType:f,ownerState:p,externalForwardedProps:m,getSlotOwnerState:_,internalForwardedProps:E}=t,v=(0,r.Z)(t,u),{component:C,slots:b={[e]:void 0},slotProps:S={[e]:void 0}}=m,T=(0,r.Z)(m,d),y=b[e]||f,R=(0,s.x)(S[e],p),A=(0,a.L)((0,n.Z)({className:i},v,{externalForwardedProps:"root"===e?T:void 0,externalSlotProps:R})),{props:{component:N},internalRef:O}=A,L=(0,r.Z)(A.props,c),I=(0,o.Z)(O,null==R?void 0:R.ref,t.ref),w=_?_(L):{},{disableColorInversion:D=!1}=w,x=(0,r.Z)(w,g),M=(0,n.Z)({},p,x),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=L.color)?P:p.color}else D||(M.color=k(L.color,M.color));let F="root"===e?N||C:N,B=(0,l.$)(y,(0,n.Z)({},"root"===e&&!C&&!b[e]&&E,"root"!==e&&!b[e]&&E,L,F&&{as:F},{ref:I}),M);return Object.keys(x).forEach(e=>{delete B[e]}),[y,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||i)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){i=!0}},t)}},8874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(e,t,i){var n=i(8874),r=i(86851),o=Object.hasOwnProperty,s=Object.create(null);for(var a in n)o.call(n,a)&&(s[n[a]]=a);var l=e.exports={to:{},get:{}};function h(e,t,i){return Math.min(Math.max(t,e),i)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,i;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),i="hsl";break;case"hwb":t=l.get.hwb(e),i="hwb";break;default:t=l.get.rgb(e),i="rgb"}return t?{model:i,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,i,r,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=0,r=t[2],t=t[1];i<3;i++){var a=2*i;s[i]=parseInt(t.slice(a,a+2),16)}r&&(s[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=0,r=(t=t[1])[3];i<3;i++)s[i]=parseInt(t[i]+t[i],16);r&&(s[3]=parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=parseInt(t[i+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)s[i]=Math.round(2.55*parseFloat(t[i+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:o.call(n,t[1])?((s=n[t[1]])[3]=1,s):null;for(i=0;i<3;i++)s[i]=h(s[i],0,255);return s[3]=h(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,h(parseFloat(t[2]),0,100),h(parseFloat(t[3]),0,100),h(isNaN(i)?1:i,0,1)]}return null},l.to.hex=function(){var e=r(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=r(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=r(arguments),t=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+i+"%, "+n+"%)":"rgba("+t+"%, "+i+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=r(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=r(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new r(n,o||e,s),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),a.prototype.eventNames=function(){var e,n,r=[];if(0===this._eventsCount)return r;for(n in e=this._events)t.call(e,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=Array(o);rh+a*s*u||d>=p)f=s;else{if(Math.abs(g)<=-l*u)return s;g*(f-c)>=0&&(f=c),c=s,p=d}return 0}s=s||1,a=a||1e-6,l=l||.1;for(var m=0;m<10;++m){if(o(r.x,1,n.x,s,t),d=r.fx=e(r.x,r.fxprime),g=i(r.fxprime,t),d>h+a*s*u||m&&d>=c)return p(f,s,c);if(Math.abs(g)<=-l*u)break;if(g>=0)return p(s,f,d);c=d,f=s,s*=2}return s}e.bisect=function(e,t,i,n){var r=(n=n||{}).maxIterations||100,o=n.tolerance||1e-10,s=e(t),a=e(i),l=i-t;if(s*a>0)throw"Initial bisect points must have opposite signs";if(0===s)return t;if(0===a)return i;for(var h=0;h=0&&(t=u),Math.abs(l)=p[f-1].fx){var O=!1;if(b.fx>N.fx?(o(S,1+c,C,-c,N),S.fx=e(S),S.fx=1)break;for(m=1;m=n(d.fxprime))break}return a.history&&a.history.push({x:d.x.slice(),fx:d.fx,fxprime:d.fxprime.slice(),alpha:f}),d},e.gradientDescent=function(e,t,i){for(var r=(i=i||{}).maxIterations||100*t.length,s=i.learnRate||.001,a={x:t.slice(),fx:0,fxprime:t.slice()},l=0;l=n(a.fxprime)));++l);return a},e.gradientDescentLineSearch=function(e,t,i){i=i||{};var o,a={x:t.slice(),fx:0,fxprime:t.slice()},l={x:t.slice(),fx:0,fxprime:t.slice()},h=i.maxIterations||100*t.length,u=i.learnRate||1,d=t.slice(),c=i.c1||.001,g=i.c2||.1,f=[];if(i.history){var p=e;e=function(e,t){return f.push(e.slice()),p(e,t)}}a.fx=e(a.x,a.fxprime);for(var m=0;mn(a.fxprime)));++m);return a},e.zeros=t,e.zerosM=function(e,i){return t(e).map(function(){return t(i)})},e.norm2=n,e.weightedSum=o,e.scale=r}(t)},49685:function(e,t,i){"use strict";i.d(t,{Ib:function(){return n},WT:function(){return r}});var n=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)})},35600:function(e,t,i){"use strict";i.d(t,{Ue:function(){return r},al:function(){return s},xO:function(){return o}});var n=i(49685);function r(){var e=new n.WT(9);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function s(e,t,i,r,o,s,a,l,h){var u=new n.WT(9);return u[0]=e,u[1]=t,u[2]=i,u[3]=r,u[4]=o,u[5]=s,u[6]=a,u[7]=l,u[8]=h,u}},85975:function(e,t,i){"use strict";i.r(t),i.d(t,{add:function(){return Y},adjoint:function(){return c},clone:function(){return o},copy:function(){return s},create:function(){return r},determinant:function(){return g},equals:function(){return J},exactEquals:function(){return Z},frob:function(){return K},fromQuat:function(){return M},fromQuat2:function(){return O},fromRotation:function(){return T},fromRotationTranslation:function(){return N},fromRotationTranslationScale:function(){return D},fromRotationTranslationScaleOrigin:function(){return x},fromScaling:function(){return S},fromTranslation:function(){return b},fromValues:function(){return a},fromXRotation:function(){return y},fromYRotation:function(){return R},fromZRotation:function(){return A},frustum:function(){return k},getRotation:function(){return w},getScaling:function(){return I},getTranslation:function(){return L},identity:function(){return h},invert:function(){return d},lookAt:function(){return G},mul:function(){return Q},multiply:function(){return f},multiplyScalar:function(){return q},multiplyScalarAndAdd:function(){return X},ortho:function(){return V},orthoNO:function(){return H},orthoZO:function(){return W},perspective:function(){return F},perspectiveFromFieldOfView:function(){return U},perspectiveNO:function(){return P},perspectiveZO:function(){return B},rotate:function(){return _},rotateX:function(){return E},rotateY:function(){return v},rotateZ:function(){return C},scale:function(){return m},set:function(){return l},str:function(){return z},sub:function(){return ee},subtract:function(){return $},targetTo:function(){return j},translate:function(){return p},transpose:function(){return u}});var n=i(49685);function r(){var e=new n.WT(16);return n.WT!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function o(e){var t=new n.WT(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(e,t,i,r,o,s,a,l,h,u,d,c,g,f,p,m){var _=new n.WT(16);return _[0]=e,_[1]=t,_[2]=i,_[3]=r,_[4]=o,_[5]=s,_[6]=a,_[7]=l,_[8]=h,_[9]=u,_[10]=d,_[11]=c,_[12]=g,_[13]=f,_[14]=p,_[15]=m,_}function l(e,t,i,n,r,o,s,a,l,h,u,d,c,g,f,p,m){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=o,e[5]=s,e[6]=a,e[7]=l,e[8]=h,e[9]=u,e[10]=d,e[11]=c,e[12]=g,e[13]=f,e[14]=p,e[15]=m,e}function h(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){if(e===t){var i=t[1],n=t[2],r=t[3],o=t[6],s=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=i,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=o,e[11]=t[14],e[12]=r,e[13]=s,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function d(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],g=t[11],f=t[12],p=t[13],m=t[14],_=t[15],E=i*a-n*s,v=i*l-r*s,C=i*h-o*s,b=n*l-r*a,S=n*h-o*a,T=r*h-o*l,y=u*p-d*f,R=u*m-c*f,A=u*_-g*f,N=d*m-c*p,O=d*_-g*p,L=c*_-g*m,I=E*L-v*O+C*N+b*A-S*R+T*y;return I?(I=1/I,e[0]=(a*L-l*O+h*N)*I,e[1]=(r*O-n*L-o*N)*I,e[2]=(p*T-m*S+_*b)*I,e[3]=(c*S-d*T-g*b)*I,e[4]=(l*A-s*L-h*R)*I,e[5]=(i*L-r*A+o*R)*I,e[6]=(m*C-f*T-_*v)*I,e[7]=(u*T-c*C+g*v)*I,e[8]=(s*O-a*A+h*y)*I,e[9]=(n*A-i*O-o*y)*I,e[10]=(f*S-p*C+_*E)*I,e[11]=(d*C-u*S-g*E)*I,e[12]=(a*R-s*N-l*y)*I,e[13]=(i*N-n*R+r*y)*I,e[14]=(p*v-f*b-m*E)*I,e[15]=(u*b-d*v+c*E)*I,e):null}function c(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=t[6],h=t[7],u=t[8],d=t[9],c=t[10],g=t[11],f=t[12],p=t[13],m=t[14],_=t[15];return e[0]=a*(c*_-g*m)-d*(l*_-h*m)+p*(l*g-h*c),e[1]=-(n*(c*_-g*m)-d*(r*_-o*m)+p*(r*g-o*c)),e[2]=n*(l*_-h*m)-a*(r*_-o*m)+p*(r*h-o*l),e[3]=-(n*(l*g-h*c)-a*(r*g-o*c)+d*(r*h-o*l)),e[4]=-(s*(c*_-g*m)-u*(l*_-h*m)+f*(l*g-h*c)),e[5]=i*(c*_-g*m)-u*(r*_-o*m)+f*(r*g-o*c),e[6]=-(i*(l*_-h*m)-s*(r*_-o*m)+f*(r*h-o*l)),e[7]=i*(l*g-h*c)-s*(r*g-o*c)+u*(r*h-o*l),e[8]=s*(d*_-g*p)-u*(a*_-h*p)+f*(a*g-h*d),e[9]=-(i*(d*_-g*p)-u*(n*_-o*p)+f*(n*g-o*d)),e[10]=i*(a*_-h*p)-s*(n*_-o*p)+f*(n*h-o*a),e[11]=-(i*(a*g-h*d)-s*(n*g-o*d)+u*(n*h-o*a)),e[12]=-(s*(d*m-c*p)-u*(a*m-l*p)+f*(a*c-l*d)),e[13]=i*(d*m-c*p)-u*(n*m-r*p)+f*(n*c-r*d),e[14]=-(i*(a*m-l*p)-s*(n*m-r*p)+f*(n*l-r*a)),e[15]=i*(a*c-l*d)-s*(n*c-r*d)+u*(n*l-r*a),e}function g(e){var t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],l=e[7],h=e[8],u=e[9],d=e[10],c=e[11],g=e[12],f=e[13],p=e[14],m=e[15];return(t*s-i*o)*(d*m-c*p)-(t*a-n*o)*(u*m-c*f)+(t*l-r*o)*(u*p-d*f)+(i*a-n*s)*(h*m-c*g)-(i*l-r*s)*(h*p-d*g)+(n*l-r*a)*(h*f-u*g)}function f(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],g=t[10],f=t[11],p=t[12],m=t[13],_=t[14],E=t[15],v=i[0],C=i[1],b=i[2],S=i[3];return e[0]=v*n+C*a+b*d+S*p,e[1]=v*r+C*l+b*c+S*m,e[2]=v*o+C*h+b*g+S*_,e[3]=v*s+C*u+b*f+S*E,v=i[4],C=i[5],b=i[6],S=i[7],e[4]=v*n+C*a+b*d+S*p,e[5]=v*r+C*l+b*c+S*m,e[6]=v*o+C*h+b*g+S*_,e[7]=v*s+C*u+b*f+S*E,v=i[8],C=i[9],b=i[10],S=i[11],e[8]=v*n+C*a+b*d+S*p,e[9]=v*r+C*l+b*c+S*m,e[10]=v*o+C*h+b*g+S*_,e[11]=v*s+C*u+b*f+S*E,v=i[12],C=i[13],b=i[14],S=i[15],e[12]=v*n+C*a+b*d+S*p,e[13]=v*r+C*l+b*c+S*m,e[14]=v*o+C*h+b*g+S*_,e[15]=v*s+C*u+b*f+S*E,e}function p(e,t,i){var n,r,o,s,a,l,h,u,d,c,g,f,p=i[0],m=i[1],_=i[2];return t===e?(e[12]=t[0]*p+t[4]*m+t[8]*_+t[12],e[13]=t[1]*p+t[5]*m+t[9]*_+t[13],e[14]=t[2]*p+t[6]*m+t[10]*_+t[14],e[15]=t[3]*p+t[7]*m+t[11]*_+t[15]):(n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],h=t[6],u=t[7],d=t[8],c=t[9],g=t[10],f=t[11],e[0]=n,e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=h,e[7]=u,e[8]=d,e[9]=c,e[10]=g,e[11]=f,e[12]=n*p+a*m+d*_+t[12],e[13]=r*p+l*m+c*_+t[13],e[14]=o*p+h*m+g*_+t[14],e[15]=s*p+u*m+f*_+t[15]),e}function m(e,t,i){var n=i[0],r=i[1],o=i[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function _(e,t,i,r){var o,s,a,l,h,u,d,c,g,f,p,m,_,E,v,C,b,S,T,y,R,A,N,O,L=r[0],I=r[1],w=r[2],D=Math.hypot(L,I,w);return D0?(i[0]=(l*a+d*r+h*s-u*o)*2/c,i[1]=(h*a+d*o+u*r-l*s)*2/c,i[2]=(u*a+d*s+l*o-h*r)*2/c):(i[0]=(l*a+d*r+h*s-u*o)*2,i[1]=(h*a+d*o+u*r-l*s)*2,i[2]=(u*a+d*s+l*o-h*r)*2),N(e,t,i),e}function L(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function I(e,t){var i=t[0],n=t[1],r=t[2],o=t[4],s=t[5],a=t[6],l=t[8],h=t[9],u=t[10];return e[0]=Math.hypot(i,n,r),e[1]=Math.hypot(o,s,a),e[2]=Math.hypot(l,h,u),e}function w(e,t){var i=new n.WT(3);I(i,t);var r=1/i[0],o=1/i[1],s=1/i[2],a=t[0]*r,l=t[1]*o,h=t[2]*s,u=t[4]*r,d=t[5]*o,c=t[6]*s,g=t[8]*r,f=t[9]*o,p=t[10]*s,m=a+d+p,_=0;return m>0?(_=2*Math.sqrt(m+1),e[3]=.25*_,e[0]=(c-f)/_,e[1]=(g-h)/_,e[2]=(l-u)/_):a>d&&a>p?(_=2*Math.sqrt(1+a-d-p),e[3]=(c-f)/_,e[0]=.25*_,e[1]=(l+u)/_,e[2]=(g+h)/_):d>p?(_=2*Math.sqrt(1+d-a-p),e[3]=(g-h)/_,e[0]=(l+u)/_,e[1]=.25*_,e[2]=(c+f)/_):(_=2*Math.sqrt(1+p-a-d),e[3]=(l-u)/_,e[0]=(g+h)/_,e[1]=(c+f)/_,e[2]=.25*_),e}function D(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3],l=r+r,h=o+o,u=s+s,d=r*l,c=r*h,g=r*u,f=o*h,p=o*u,m=s*u,_=a*l,E=a*h,v=a*u,C=n[0],b=n[1],S=n[2];return e[0]=(1-(f+m))*C,e[1]=(c+v)*C,e[2]=(g-E)*C,e[3]=0,e[4]=(c-v)*b,e[5]=(1-(d+m))*b,e[6]=(p+_)*b,e[7]=0,e[8]=(g+E)*S,e[9]=(p-_)*S,e[10]=(1-(d+f))*S,e[11]=0,e[12]=i[0],e[13]=i[1],e[14]=i[2],e[15]=1,e}function x(e,t,i,n,r){var o=t[0],s=t[1],a=t[2],l=t[3],h=o+o,u=s+s,d=a+a,c=o*h,g=o*u,f=o*d,p=s*u,m=s*d,_=a*d,E=l*h,v=l*u,C=l*d,b=n[0],S=n[1],T=n[2],y=r[0],R=r[1],A=r[2],N=(1-(p+_))*b,O=(g+C)*b,L=(f-v)*b,I=(g-C)*S,w=(1-(c+_))*S,D=(m+E)*S,x=(f+v)*T,M=(m-E)*T,k=(1-(c+p))*T;return e[0]=N,e[1]=O,e[2]=L,e[3]=0,e[4]=I,e[5]=w,e[6]=D,e[7]=0,e[8]=x,e[9]=M,e[10]=k,e[11]=0,e[12]=i[0]+y-(N*y+I*R+x*A),e[13]=i[1]+R-(O*y+w*R+M*A),e[14]=i[2]+A-(L*y+D*R+k*A),e[15]=1,e}function M(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i+i,a=n+n,l=r+r,h=i*s,u=n*s,d=n*a,c=r*s,g=r*a,f=r*l,p=o*s,m=o*a,_=o*l;return e[0]=1-d-f,e[1]=u+_,e[2]=c-m,e[3]=0,e[4]=u-_,e[5]=1-h-f,e[6]=g+p,e[7]=0,e[8]=c+m,e[9]=g-p,e[10]=1-h-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function k(e,t,i,n,r,o,s){var a=1/(i-t),l=1/(r-n),h=1/(o-s);return e[0]=2*o*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(i+t)*a,e[9]=(r+n)*l,e[10]=(s+o)*h,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*o*2*h,e[15]=0,e}function P(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=(r+n)*o,e[14]=2*r*n*o):(e[10]=-1,e[14]=-2*n),e}var F=P;function B(e,t,i,n,r){var o,s=1/Math.tan(t/2);return e[0]=s/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(o=1/(n-r),e[10]=r*o,e[14]=r*n*o):(e[10]=-1,e[14]=-n),e}function U(e,t,i,n){var r=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),a=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+a),h=2/(r+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=h,e[6]=0,e[7]=0,e[8]=-((s-a)*l*.5),e[9]=(r-o)*h*.5,e[10]=n/(i-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*i/(i-n),e[15]=0,e}function H(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=(s+o)*h,e[15]=1,e}var V=H;function W(e,t,i,n,r,o,s){var a=1/(t-i),l=1/(n-r),h=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=h,e[11]=0,e[12]=(t+i)*a,e[13]=(r+n)*l,e[14]=o*h,e[15]=1,e}function G(e,t,i,r){var o,s,a,l,u,d,c,g,f,p,m=t[0],_=t[1],E=t[2],v=r[0],C=r[1],b=r[2],S=i[0],T=i[1],y=i[2];return Math.abs(m-S)0&&(u*=g=1/Math.sqrt(g),d*=g,c*=g);var f=l*c-h*d,p=h*u-a*c,m=a*d-l*u;return(g=f*f+p*p+m*m)>0&&(f*=g=1/Math.sqrt(g),p*=g,m*=g),e[0]=f,e[1]=p,e[2]=m,e[3]=0,e[4]=d*m-c*p,e[5]=c*f-u*m,e[6]=u*p-d*f,e[7]=0,e[8]=u,e[9]=d,e[10]=c,e[11]=0,e[12]=r,e[13]=o,e[14]=s,e[15]=1,e}function z(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function K(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function Y(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e[4]=t[4]+i[4],e[5]=t[5]+i[5],e[6]=t[6]+i[6],e[7]=t[7]+i[7],e[8]=t[8]+i[8],e[9]=t[9]+i[9],e[10]=t[10]+i[10],e[11]=t[11]+i[11],e[12]=t[12]+i[12],e[13]=t[13]+i[13],e[14]=t[14]+i[14],e[15]=t[15]+i[15],e}function $(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e[4]=t[4]-i[4],e[5]=t[5]-i[5],e[6]=t[6]-i[6],e[7]=t[7]-i[7],e[8]=t[8]-i[8],e[9]=t[9]-i[9],e[10]=t[10]-i[10],e[11]=t[11]-i[11],e[12]=t[12]-i[12],e[13]=t[13]-i[13],e[14]=t[14]-i[14],e[15]=t[15]-i[15],e}function q(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12]*i,e[13]=t[13]*i,e[14]=t[14]*i,e[15]=t[15]*i,e}function X(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e[2]=t[2]+i[2]*n,e[3]=t[3]+i[3]*n,e[4]=t[4]+i[4]*n,e[5]=t[5]+i[5]*n,e[6]=t[6]+i[6]*n,e[7]=t[7]+i[7]*n,e[8]=t[8]+i[8]*n,e[9]=t[9]+i[9]*n,e[10]=t[10]+i[10]*n,e[11]=t[11]+i[11]*n,e[12]=t[12]+i[12]*n,e[13]=t[13]+i[13]*n,e[14]=t[14]+i[14]*n,e[15]=t[15]+i[15]*n,e}function Z(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function J(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=e[4],l=e[5],h=e[6],u=e[7],d=e[8],c=e[9],g=e[10],f=e[11],p=e[12],m=e[13],_=e[14],E=e[15],v=t[0],C=t[1],b=t[2],S=t[3],T=t[4],y=t[5],R=t[6],A=t[7],N=t[8],O=t[9],L=t[10],I=t[11],w=t[12],D=t[13],x=t[14],M=t[15];return Math.abs(i-v)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(r-C)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(C))&&Math.abs(o-b)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(s-S)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-T)<=n.Ib*Math.max(1,Math.abs(a),Math.abs(T))&&Math.abs(l-y)<=n.Ib*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(h-R)<=n.Ib*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-A)<=n.Ib*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(d-N)<=n.Ib*Math.max(1,Math.abs(d),Math.abs(N))&&Math.abs(c-O)<=n.Ib*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(g-L)<=n.Ib*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(f-I)<=n.Ib*Math.max(1,Math.abs(f),Math.abs(I))&&Math.abs(p-w)<=n.Ib*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(m-D)<=n.Ib*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(_-x)<=n.Ib*Math.max(1,Math.abs(_),Math.abs(x))&&Math.abs(E-M)<=n.Ib*Math.max(1,Math.abs(E),Math.abs(M))}var Q=f,ee=$},32945:function(e,t,i){"use strict";i.d(t,{Fv:function(){return p},JG:function(){return g},Jp:function(){return h},Su:function(){return d},U_:function(){return u},Ue:function(){return a},al:function(){return c},dC:function(){return f},yY:function(){return l}});var n=i(49685),r=i(35600),o=i(77160),s=i(98333);function a(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function l(e,t,i){var n=Math.sin(i*=.5);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(i),e}function h(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3],a=i[0],l=i[1],h=i[2],u=i[3];return e[0]=n*u+s*a+r*h-o*l,e[1]=r*u+s*l+o*a-n*h,e[2]=o*u+s*h+n*l-r*a,e[3]=s*u-n*a-r*l-o*h,e}function u(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o,a=s?1/s:0;return e[0]=-i*a,e[1]=-n*a,e[2]=-r*a,e[3]=o*a,e}function d(e,t,i,n){var r=.5*Math.PI/180,o=Math.sin(t*=r),s=Math.cos(t),a=Math.sin(i*=r),l=Math.cos(i),h=Math.sin(n*=r),u=Math.cos(n);return e[0]=o*l*u-s*a*h,e[1]=s*a*u+o*l*h,e[2]=s*l*h-o*a*u,e[3]=s*l*u+o*a*h,e}s.d9;var c=s.al,g=s.JG;s.t8,s.IH;var f=h;s.bA,s.AK,s.t7,s.kE,s.we;var p=s.Fv;s.I6,s.fS,o.Ue(),o.al(1,0,0),o.al(0,1,0),a(),a(),r.Ue()},31437:function(e,t,i){"use strict";i.d(t,{AK:function(){return l},Fv:function(){return a},I6:function(){return h},JG:function(){return s},al:function(){return o}});var n,r=i(49685);function o(e,t){var i=new r.WT(2);return i[0]=e,i[1]=t,i}function s(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e,t){var i=t[0],n=t[1],r=i*i+n*n;return r>0&&(r=1/Math.sqrt(r)),e[0]=t[0]*r,e[1]=t[1]*r,e}function l(e,t){return e[0]*t[0]+e[1]*t[1]}function h(e,t){return e[0]===t[0]&&e[1]===t[1]}n=new r.WT(2),r.WT!=Float32Array&&(n[0]=0,n[1]=0)},77160:function(e,t,i){"use strict";i.d(t,{$X:function(){return d},AK:function(){return p},Fv:function(){return f},IH:function(){return u},JG:function(){return l},Jp:function(){return c},TK:function(){return S},Ue:function(){return r},VC:function(){return C},Zh:function(){return T},al:function(){return a},bA:function(){return g},d9:function(){return o},fF:function(){return E},fS:function(){return b},kC:function(){return m},kE:function(){return s},kK:function(){return v},t7:function(){return _},t8:function(){return h}});var n=i(49685);function r(){var e=new n.WT(3);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function o(e){var t=new n.WT(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(e){return Math.hypot(e[0],e[1],e[2])}function a(e,t,i){var r=new n.WT(3);return r[0]=e,r[1]=t,r[2]=i,r}function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function h(e,t,i,n){return e[0]=t,e[1]=i,e[2]=n,e}function u(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function d(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function c(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function g(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function f(e,t){var i=t[0],n=t[1],r=t[2],o=i*i+n*n+r*r;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function p(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=r*l-o*a,e[1]=o*s-n*l,e[2]=n*a-r*s,e}function _(e,t,i,n){var r=t[0],o=t[1],s=t[2];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e}function E(e,t,i){var n=t[0],r=t[1],o=t[2],s=i[3]*n+i[7]*r+i[11]*o+i[15];return s=s||1,e[0]=(i[0]*n+i[4]*r+i[8]*o+i[12])/s,e[1]=(i[1]*n+i[5]*r+i[9]*o+i[13])/s,e[2]=(i[2]*n+i[6]*r+i[10]*o+i[14])/s,e}function v(e,t,i){var n=t[0],r=t[1],o=t[2];return e[0]=n*i[0]+r*i[3]+o*i[6],e[1]=n*i[1]+r*i[4]+o*i[7],e[2]=n*i[2]+r*i[5]+o*i[8],e}function C(e,t,i){var n=i[0],r=i[1],o=i[2],s=i[3],a=t[0],l=t[1],h=t[2],u=r*h-o*l,d=o*a-n*h,c=n*l-r*a,g=r*c-o*d,f=o*u-n*c,p=n*d-r*u,m=2*s;return u*=m,d*=m,c*=m,g*=2,f*=2,p*=2,e[0]=a+u+g,e[1]=l+d+f,e[2]=h+c+p,e}function b(e,t){var i=e[0],r=e[1],o=e[2],s=t[0],a=t[1],l=t[2];return Math.abs(i-s)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(r-a)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(l))}var S=function(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])},T=s;r()},98333:function(e,t,i){"use strict";i.d(t,{AK:function(){return f},Fv:function(){return g},I6:function(){return _},IH:function(){return h},JG:function(){return a},Ue:function(){return r},al:function(){return s},bA:function(){return u},d9:function(){return o},fF:function(){return m},fS:function(){return E},kE:function(){return d},t7:function(){return p},t8:function(){return l},we:function(){return c}});var n=i(49685);function r(){var e=new n.WT(4);return n.WT!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function o(e){var t=new n.WT(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function s(e,t,i,r){var o=new n.WT(4);return o[0]=e,o[1]=t,o[2]=i,o[3]=r,o}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=n,e[3]=r,e}function h(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e}function u(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function d(e){return Math.hypot(e[0],e[1],e[2],e[3])}function c(e){var t=e[0],i=e[1],n=e[2],r=e[3];return t*t+i*i+n*n+r*r}function g(e,t){var i=t[0],n=t[1],r=t[2],o=t[3],s=i*i+n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=n*s,e[2]=r*s,e[3]=o*s,e}function f(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function p(e,t,i,n){var r=t[0],o=t[1],s=t[2],a=t[3];return e[0]=r+n*(i[0]-r),e[1]=o+n*(i[1]-o),e[2]=s+n*(i[2]-s),e[3]=a+n*(i[3]-a),e}function m(e,t,i){var n=t[0],r=t[1],o=t[2],s=t[3];return e[0]=i[0]*n+i[4]*r+i[8]*o+i[12]*s,e[1]=i[1]*n+i[5]*r+i[9]*o+i[13]*s,e[2]=i[2]*n+i[6]*r+i[10]*o+i[14]*s,e[3]=i[3]*n+i[7]*r+i[11]*o+i[15]*s,e}function _(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function E(e,t){var i=e[0],r=e[1],o=e[2],s=e[3],a=t[0],l=t[1],h=t[2],u=t[3];return Math.abs(i-a)<=n.Ib*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-l)<=n.Ib*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-h)<=n.Ib*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-u)<=n.Ib*Math.max(1,Math.abs(s),Math.abs(u))}r()},9488:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}function u(e){return e.filter(e=>!!e)}function d(e){return!Array.isArray(e)||0===e.length}function c(e){return Array.isArray(e)&&e.length>0}function g(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function f(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--){let n=e[i];if(t(n))return i}return -1}(e,t);if(-1!==i)return e[i]}function p(e,t){return e.length>0?e[0]:t}function m(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function _(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function E(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function v(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function C(e,t){for(let i of t)e.push(i)}function b(e,t,i,n){let r=S(e,t),o=e.splice(r,i);return!function(e,t,i){let n=S(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;tt(e(i),e(n))}function y(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=r)}return i}function R(e,t){return function(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=r)}return i}(e,(e,i)=>-t(e,i))}i.d(t,{EB:function(){return g},Gb:function(){return o},H9:function(){return A},JH:function(){return s},LS:function(){return l},Of:function(){return c},VJ:function(){return R},W$:function(){return N},XY:function(){return d},Xh:function(){return p},Zv:function(){return _},al:function(){return v},dF:function(){return f},db:function(){return b},fS:function(){return a},jV:function(){return y},kX:function(){return u},ry:function(){return h},tT:function(){return T},vA:function(){return C},w6:function(){return m},zI:function(){return E}}),(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class N{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new N(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new N(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}N.empty=new N(e=>{})},53725:function(e,t,i){"use strict";var n;i.d(t,{$:function(){return n}}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(let i of e)if(t(i))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let n of e)yield t(n,i++)},e.concat=function*(...e){for(let t of e)for(let e of t)yield e},e.reduce=function(e,t,i){let n=i;for(let i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);tr}]}}(n||(n={}))},91741:function(e,t,i){"use strict";i.d(t,{S:function(){return r}});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class r{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){let t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){let e=this._last;this._last=i,i.prev=e,e.next=i}else{let e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},36248:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i(98401);function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"!=typeof r||Object.isFrozen(r)||(0,n.fU)(r)||t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},1432:function(e,t,i){"use strict";let n,r;i.d(t,{$L:function(){return S},ED:function(){return E},G6:function(){return k},IJ:function(){return C},OS:function(){return L},dz:function(){return v},fn:function(){return O},gn:function(){return y},i7:function(){return x},li:function(){return p},n2:function(){return T},r:function(){return D},tY:function(){return b},tq:function(){return R},un:function(){return P},vU:function(){return M}});var o,s=i(63580),a=i(83454);let l=!1,h=!1,u=!1,d=!1,c=!1,g=!1,f=!1,p="object"==typeof self?self:"object"==typeof i.g?i.g:{};void 0!==p.vscode&&void 0!==p.vscode.process?r=p.vscode.process:void 0!==a&&(r=a);let m="string"==typeof(null===(o=null==r?void 0:r.versions)||void 0===o?void 0:o.electron),_=m&&(null==r?void 0:r.type)==="renderer";if("object"!=typeof navigator||_){if("object"==typeof r){l="win32"===r.platform,h="darwin"===r.platform,(u="linux"===r.platform)&&r.env.SNAP&&r.env.SNAP_REVISION,r.env.CI||r.env.BUILD_ARTIFACTSTAGINGDIRECTORY;let e=r.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.availableLanguages["*"],t.locale,t.osLocale,t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.")}else l=(n=navigator.userAgent).indexOf("Windows")>=0,h=n.indexOf("Macintosh")>=0,g=(n.indexOf("Macintosh")>=0||n.indexOf("iPad")>=0||n.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=n.indexOf("Linux")>=0,f=(null==n?void 0:n.indexOf("Mobi"))>=0,c=!0,s.aj(s.NC({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")),navigator.language;let E=l,v=h,C=u,b=d,S=c,T=c&&"function"==typeof p.importScripts,y=g,R=f,A=n,N="function"==typeof p.postMessage&&!p.importScripts,O=(()=>{if(N){let e=[];p.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{let n=++t;e.push({id:n,callback:i}),p.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),L=h||g?2:l?1:3,I=!0,w=!1;function D(){if(!w){w=!0;let e=new Uint8Array(2);e[0]=1,e[1]=2;let t=new Uint16Array(e.buffer);I=513===t[0]}return I}let x=!!(A&&A.indexOf("Chrome")>=0),M=!!(A&&A.indexOf("Firefox")>=0),k=!!(!x&&A&&A.indexOf("Safari")>=0),P=!!(A&&A.indexOf("Edg/")>=0);A&&A.indexOf("Android")},98401:function(e,t,i){"use strict";function n(e){return"string"==typeof e}function r(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function o(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function h(e){return void 0===e}function u(e){return!d(e)}function d(e){return h(e)||null===e}function c(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(d(e))throw Error("Assertion Failed: argument is undefined or null");return e}function f(e){return"function"==typeof e}function p(e,t){let i=Math.min(e.length,t.length);for(let r=0;rs.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let a=Date.now(),h=t-1-o,u=-1,d=null;for(let e=1;!(Date.now()-a>=s.timeBudget);e++){let t=h-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,h,u);if(!n&&d||(d=n,t<=0))break;u=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(53725),r=i(91741);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o)e.indexOf(i)>=0||(t+="\\"+i);return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},77119:function(e,t,i){"use strict";let n,r,o,s,a,l,h,u,d,c,g,f,p,m,_,E,v,C;i.r(t),i.d(t,{CancellationTokenSource:function(){return k1},Emitter:function(){return k2},KeyCode:function(){return k5},KeyMod:function(){return k4},MarkerSeverity:function(){return k8},MarkerTag:function(){return Pe},Position:function(){return k3},Range:function(){return k6},Selection:function(){return k9},SelectionDirection:function(){return k7},Token:function(){return Pi},Uri:function(){return Pt},editor:function(){return Pn},languages:function(){return Pr}});var b,S,T,y,R,A,N,O,L,I,w,D,x,M,k,P,F,B,U,H,V,W,G,j,z,K,Y,$,q,X,Z,J,Q,ee,et,ei,en,er,eo,es,ea,el,eh,eu,ed,ec,eg,ef,ep,em,e_,eE,ev,eC,eb,eS,eT,ey,eR,eA,eN,eO,eL,eI,ew,eD,ex,eM,ek,eP,eF,eB,eU,eH,eV,eW,eG,ej,ez,eK,eY,e$,eq,eX,eZ,eJ,eQ,e0,e1,e2,e5,e4,e3,e6,e9,e7,e8,te,tt,ti,tn,tr,to,ts,ta,tl,th,tu,td,tc,tg,tf,tp,tm,t_,tE,tv,tC,tb,tS,tT,ty,tR,tA,tN,tO,tL,tI,tw,tD,tx,tM,tk,tP,tF,tB,tU,tH,tV,tW,tG,tj,tz,tK,tY,t$,tq,tX,tZ,tJ,tQ,t0,t1,t2,t5,t4,t3,t6,t9,t7,t8,ie,it,ii,ir,io,is,ia,il,ih,iu,id,ic,ig,ip,im,i_,iE,iv,iC,ib,iS,iT,iy,iR,iA,iN,iO,iL,iI,iw,iD,ix,iM,ik,iP,iF,iB,iU,iH,iV,iW,iG,ij,iz,iK,iY,i$,iq,iX,iZ,iJ,iQ=i(64141);let i0=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(ne.isErrorNoTelemetry(e))throw new ne(e.message+"\n\n"+e.stack);throw Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i1(e){i3(e)||i0.onUnexpectedError(e)}function i2(e){i3(e)||i0.onUnexpectedExternalError(e)}function i5(e){if(e instanceof Error){let{name:t,message:i}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:i,stack:n,noTelemetry:ne.isErrorNoTelemetry(e)}}return e}let i4="Canceled";function i3(e){return e instanceof i6||e instanceof Error&&e.name===i4&&e.message===i4}class i6 extends Error{constructor(){super(i4),this.name=this.message}}function i9(e){return e?Error(`Illegal argument: ${e}`):Error("Illegal argument")}function i7(e){return e?Error(`Illegal state: ${e}`):Error("Illegal state")}class i8 extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class ne extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof ne)return e;let t=new ne;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class nt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,nt.prototype)}}function ni(e){let t;let i=this,n=!1;return function(){return n?t:(n=!0,t=e.apply(i,arguments))}}var nn=i(53725);function nr(e){return e}function no(e){}function ns(e,t){}function na(e){return e}function nl(e){if(nn.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function nh(...e){let t=nu(()=>nl(e));return t}function nu(e){let t={dispose:ni(()=>{e()})};return t}class nd{constructor(){var e;this._toDispose=new Set,this._isDisposed=!1,e=this}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{nl(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return this._isDisposed?nd.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}nd.DISABLE_DISPOSED_WARNING=!1;class nc{constructor(){var e;this._store=new nd,e=this,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}nc.None=Object.freeze({dispose(){}});class ng{constructor(){var e;this._isDisposed=!1,e=this}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class nf{constructor(e){this.object=e}dispose(){}}class np{constructor(){var e;this._store=new Map,this._isDisposed=!1,e=this}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{nl(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var nm=i(91741);let n_=globalThis.performance&&"function"==typeof globalThis.performance.now;class nE{static create(e){return new nE(e)}constructor(e){this._now=n_&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}!function(e){function t(e){return(t,i=null,n)=>{let r,o=!1;return r=e(e=>o?void 0:(r?r.dispose():o=!0,t.call(i,e)),null,n),o&&r.dispose(),r}}function i(e,t,i){return s((i,n=null,r)=>e(e=>i.call(n,t(e)),null,r),i)}function n(e,t,i){return s((i,n=null,r)=>e(e=>{t(e),i.call(n,e)},null,r),i)}function r(e,t,i){return s((i,n=null,r)=>e(e=>t(e)&&i.call(n,e),null,r),i)}function o(e,t,n,r){let o=n;return i(e,e=>o=t(o,e),r)}function s(e,t){let i;let n=new nT({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function a(e,t,i=100,n=!1,r=!1,o,s){let a,l,h,u;let d=0,c=new nT({leakWarningThreshold:o,onWillAddFirstListener(){a=e(e=>{d++,h=t(h,e),n&&!u&&(c.fire(h),h=void 0),l=()=>{let e=h;h=void 0,u=void 0,(!n||d>1)&&c.fire(e),d=0},"number"==typeof i?(clearTimeout(u),u=setTimeout(l,i)):void 0===u&&(u=0,queueMicrotask(l))})},onWillRemoveListener(){r&&d>0&&(null==l||l())},onDidRemoveLastListener(){l=void 0,a.dispose()}});return null==s||s.add(c),c.event}function l(e,t=(e,t)=>e===t,i){let n,o=!0;return r(e,e=>{let i=o||!t(e,n);return o=!1,n=e,i},i)}e.None=()=>nc.None,e.defer=function(e,t){return a(e,()=>void 0,0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=n,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>nh(...e.map(e=>e(e=>t.call(i,e),null,n)))},e.reduce=o,e.debounce=a,e.accumulate=function(t,i=0,n){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,n)},e.latch=l,e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,e=>!i(e),n)]},e.buffer=function(e,t=!1,i=[]){let n=i.slice(),r=e(e=>{n?n.push(e):s.fire(e)}),o=()=>{null==n||n.forEach(e=>s.fire(e)),n=null},s=new nT({onWillAddFirstListener(){r||(r=e(e=>s.fire(e)))},onDidAddFirstListener(){n&&(t?setTimeout(o):o())},onDidRemoveLastListener(){r&&r.dispose(),r=null}});return s.event};class h{constructor(e){this.event=e,this.disposables=new nd}map(e){return new h(i(this.event,e,this.disposables))}forEach(e){return new h(n(this.event,e,this.disposables))}filter(e){return new h(r(this.event,e,this.disposables))}reduce(e,t){return new h(o(this.event,e,t,this.disposables))}latch(){return new h(l(this.event,void 0,this.disposables))}debounce(e,t=100,i=!1,n=!1,r){return new h(a(this.event,e,t,i,n,r,this.disposables))}on(e,t,i){return this.event(e,t,i)}once(e,i,n){return t(this.event)(e,i,n)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let n=(...e)=>r.fire(i(...e)),r=new nT({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return r.event},e.toPromise=function(e){return new Promise(i=>t(e)(i))},e.runAndSubscribe=function(e,t){return t(void 0),e(e=>t(e))},e.runAndSubscribeWithStore=function(e,t){let i=null;function n(e){null==i||i.dispose(),t(e,i=new nd)}n(void 0);let r=e(e=>n(e));return nu(()=>{r.dispose(),null==i||i.dispose()})};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;this.emitter=new nT({onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){let i=new u(e,t);return i.emitter.event},e.fromObservableLight=function(e){return t=>{let i=0,n=!1,r={beginUpdate(){i++},endUpdate(){0==--i&&(e.reportChanges(),n&&(n=!1,t()))},handlePossibleChange(){},handleChange(){n=!0}};return e.addObserver(r),e.reportChanges(),{dispose(){e.removeObserver(r)}}}}}(e7||(e7={}));class nv{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${nv._idPool++}`,nv.all.add(this)}start(e){this._stopWatch=new nE,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}nv.all=new Set,nv._idPool=0;class nC{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){let i=this.threshold;if(i<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class nb{static create(){var e;return new nb(null!==(e=Error().stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class nS{constructor(e){this.value=e}}class nT{constructor(e){var t,i,n,r,o;this._size=0,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new nC(null!==(n=null===(i=this._options)||void 0===i?void 0:i.leakWarningThreshold)&&void 0!==n?n:-1):void 0,this._perfMon=(null===(r=this._options)||void 0===r?void 0:r._profName)?new nv(this._options._profName):void 0,this._deliveryQueue=null===(o=this._options)||void 0===o?void 0:o.deliveryQueue}dispose(){var e,t,i,n;this._disposed||(this._disposed=!0,(null===(e=this._deliveryQueue)||void 0===e?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),null===(i=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===i||i.call(t),null===(n=this._leakageMon)||void 0===n||n.dispose())}get event(){var e;return null!==(e=this._event)&&void 0!==e||(this._event=(e,t,i)=>{var n,r,o,s,a;let l;if(this._leakageMon&&this._size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),nc.None;if(this._disposed)return nc.None;t&&(e=e.bind(t));let h=new nS(e);this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(h.stack=nb.create(),l=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof nS?(null!==(a=this._deliveryQueue)&&void 0!==a||(this._deliveryQueue=new nR),this._listeners=[this._listeners,h]):this._listeners.push(h):(null===(r=null===(n=this._options)||void 0===n?void 0:n.onWillAddFirstListener)||void 0===r||r.call(n,this),this._listeners=h,null===(s=null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)||void 0===s||s.call(o,this)),this._size++;let u=nu(()=>{null==l||l(),this._removeListener(h)});return i instanceof nd?i.add(u):Array.isArray(i)&&i.push(u),u}),this._event}_removeListener(e){var t,i,n,r;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size){this._listeners=void 0,null===(r=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===r||r.call(n,this),this._size=0;return}let o=this._listeners,s=o.indexOf(e);if(-1===s)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,o[s]=void 0;let a=this._deliveryQueue.current===this;if(2*this._size<=o.length){let e=0;for(let t=0;t0}}let ny=()=>new nR;class nR{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class nA extends nT{constructor(e){super(e),this._isPaused=0,this._eventQueue=new nm.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused){if(this._mergeFn){if(this._eventQueue.size>0){let e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class nN extends nA{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class nO extends nT{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class nL{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{let n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){let t=[];this.buffers.push(t);let i=e();return this.buffers.pop(),t.forEach(e=>e()),i}}class nI{constructor(){this.listening=!1,this.inputEvent=e7.None,this.inputEventListener=nc.None,this.emitter=new nT({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}let nw=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(S=e8||(e8={})).isCancellationToken=function(e){return e===S.None||e===S.Cancelled||e instanceof nD||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:e7.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:nw});class nD{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?nw:(this._emitter||(this._emitter=new nT),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class nx{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new nD),this._token}cancel(){this._token?this._token instanceof nD&&this._token.cancel():this._token=e8.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof nD&&this._token.dispose():this._token=e8.None}}class nM{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let nk=new nM,nP=new nM,nF=new nM,nB=Array(230),nU={},nH=[],nV=Object.create(null),nW=Object.create(null),nG=[],nj=[];for(let e=0;e<=193;e++)nG[e]=-1;for(let e=0;e<=132;e++)nj[e]=-1;!function(){let e=[],t=[];for(let i of[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[n,r,o,s,a,l,h,u,d]=i;if(!t[r]&&(t[r]=!0,nH[r]=o,nV[o]=r,nW[o.toLowerCase()]=r,n&&(nG[r]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(nj[s]=r))),!e[s]){if(e[s]=!0,!a)throw Error(`String representation missing for key code ${s} around scan code ${o}`);nk.define(s,a),nP.define(s,u||a),nF.define(s,d||u||a)}l&&(nB[l]=s),h&&(nU[h]=s)}nj[3]=46}(),(T=te||(te={})).toString=function(e){return nk.keyCodeToStr(e)},T.fromString=function(e){return nk.strToKeyCode(e)},T.toUserSettingsUS=function(e){return nP.keyCodeToStr(e)},T.toUserSettingsGeneral=function(e){return nF.keyCodeToStr(e)},T.fromUserSettings=function(e){return nP.strToKeyCode(e)||nF.strToKeyCode(e)},T.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return nk.keyCodeToStr(e)};var nz=i(1432),nK=i(83454);if(void 0!==nz.li.vscode&&void 0!==nz.li.vscode.process){let e=nz.li.vscode.process;n={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else n=void 0!==nK?{get platform(){return nK.platform},get arch(){return nK.arch},get env(){return nK.env},cwd:()=>nK.env.VSCODE_CWD||nK.cwd()}:{get platform(){return nz.ED?"win32":nz.dz?"darwin":"linux"},get arch(){return},get env(){return{}},cwd:()=>"/"};let nY=n.cwd,n$=n.env,nq=n.platform;class nX extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function nZ(e,t){if("string"!=typeof e)throw new nX(t,"string",e)}let nJ="win32"===nq;function nQ(e){return 47===e||92===e}function n0(e){return 47===e}function n1(e){return e>=65&&e<=90||e>=97&&e<=122}function n2(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function n5(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new nX(t,"Object",e)}(t,"pathObject");let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let n4={resolve(...e){let t="",i="",n=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(nZ(o=e[r],"path"),0===o.length)continue}else 0===t.length?o=nY():(void 0===(o=n$[`=${t}`]||nY())||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===o.charCodeAt(2))&&(o=`${t}\\`);let s=o.length,a=0,l="",h=!1,u=o.charCodeAt(0);if(1===s)nQ(u)&&(a=1,h=!0);else if(nQ(u)){if(h=!0,nQ(o.charCodeAt(1))){let e=2,t=2;for(;e2&&nQ(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0){if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l}if(n){if(t.length>0)break}else if(i=`${o.slice(a)}\\${i}`,n=h,h&&t.length>0)break}return i=n2(i,!n,"\\",nQ),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;nZ(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,o=e.charCodeAt(0);if(1===i)return n0(o)?"\\":e;if(nQ(o)){if(r=!0,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))&&(r=!0,n=3));let s=n0&&nQ(e.charCodeAt(i-1))&&(s+="\\"),void 0===t)?r?`\\${s}`:s:r?`${t}\\${s}`:`${t}${s}`},isAbsolute(e){nZ(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return nQ(i)||t>2&&n1(i)&&58===e.charCodeAt(1)&&nQ(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&nQ(i.charCodeAt(0))){++r;let e=i.length;e>1&&nQ(i.charCodeAt(1))&&(++r,e>2&&(nQ(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r=2&&(t=`\\${t.slice(r)}`)}return n4.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t)return"";let i=n4.resolve(e),n=n4.resolve(t);if(i===n||(e=i.toLowerCase())===(t=n.toLowerCase()))return"";let r=0;for(;rr&&92===e.charCodeAt(o-1);)o--;let s=o-r,a=0;for(;aa&&92===t.charCodeAt(l-1);)l--;let h=l-a,u=su){if(92===t.charCodeAt(a+c))return n.slice(a+c+1);if(2===c)return n.slice(a+c)}s>u&&(92===e.charCodeAt(r+c)?d=c:2===c&&(d=3)),-1===d&&(d=0)}let g="";for(c=r+d+1;c<=o;++c)(c===o||92===e.charCodeAt(c))&&(g+=0===g.length?"..":"\\..");return(a+=d,g.length>0)?`${g}${n.slice(a,l)}`:(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;let t=n4.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(n1(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){nZ(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return nQ(r)?e:".";if(nQ(r)){if(i=n=1,nQ(e.charCodeAt(1))){let r=2,o=2;for(;r2&&nQ(e.charCodeAt(2))?3:2);let o=-1,s=!0;for(let i=t-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!s){o=i;break}}else s=!1;if(-1===o){if(-1===i)return".";o=i}return e.slice(0,o)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(e.length>=2&&n1(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){let l=e.charCodeAt(i);if(nQ(l)){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(nQ(e.charCodeAt(i))){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&n1(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let t=e.charCodeAt(a);if(nQ(t)){if(!o){n=a+1;break}continue}-1===r&&(o=!1,r=a+1),46===t?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return -1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:n5.bind(null,"\\"),parse(e){nZ(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return nQ(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(nQ(r)){if(n=1,nQ(e.charCodeAt(1))){let t=2,r=2;for(;t0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,l=!0,h=e.length-1,u=0;for(;h>=n;--h){if(nQ(r=e.charCodeAt(h))){if(!l){s=h+1;break}continue}-1===a&&(l=!1,a=h+1),46===r?-1===o?o=h:1!==u&&(u=1):-1!==o&&(u=-1)}return -1!==a&&(-1===o||0===u||1===u&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},n3=(()=>{if(nJ){let e=/\\/g;return()=>{let t=nY().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>nY()})(),n6={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){let r=n>=0?e[n]:n3();nZ(r,"path"),0!==r.length&&(t=`${r}/${t}`,i=47===r.charCodeAt(0))}return(t=n2(t,!i,"/",n0),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0===(e=n2(e,!t,"/",n0)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(nZ(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":n6.normalize(t)},relative(e,t){if(nZ(e,"from"),nZ(t,"to"),e===t||(e=n6.resolve(e))===(t=n6.resolve(t)))return"";let i=e.length,n=i-1,r=t.length-1,o=no){if(47===t.charCodeAt(1+a))return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>o&&(47===e.charCodeAt(1+a)?s=a:0===a&&(s=0))}let l="";for(a=1+s+1;a<=i;++a)(a===i||47===e.charCodeAt(a))&&(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(nZ(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&nZ(t,"ext"),nZ(e,"path");let n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!o){n=i+1;break}}else -1===a&&(o=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){n=i+1;break}}else -1===r&&(o=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){nZ(e,"path");let t=-1,i=0,n=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(47===a){if(!r){i=s+1;break}continue}-1===n&&(r=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return -1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:n5.bind(null,"/"),parse(e){let t;nZ(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,o=0,s=-1,a=!0,l=e.length-1,h=0;for(;l>=t;--l){let t=e.charCodeAt(l);if(47===t){if(!a){o=l+1;break}continue}-1===s&&(a=!1,s=l+1),46===t?-1===r?r=l:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==s){let t=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?i.base=i.name=e.slice(t,s):(i.name=e.slice(t,r),i.base=e.slice(t,s),i.ext=e.slice(r,s))}return o>0?i.dir=e.slice(0,o-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};n6.win32=n4.win32=n4,n6.posix=n4.posix=n6;let n9=nJ?n4.normalize:n6.normalize,n7=nJ?n4.resolve:n6.resolve,n8=nJ?n4.relative:n6.relative,re=nJ?n4.dirname:n6.dirname,rt=nJ?n4.basename:n6.basename,ri=nJ?n4.extname:n6.extname,rn=nJ?n4.sep:n6.sep,rr=/^\w[\w\d+.-]*$/,ro=/^\//,rs=/^\/\//,ra=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class rl{static isUri(e){return e instanceof rl||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,r,o=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||o?e:"file",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=r||"",function(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!rr.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!ro.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(rs.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,o))}get fsPath(){return rf(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:r,fragment:o}=e;return(void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===r?r=this.query:null===r&&(r=""),void 0===o?o=this.fragment:null===o&&(o=""),t===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment)?this:new ru(t,i,n,r,o)}static parse(e,t=!1){let i=ra.exec(e);return i?new ru(i[2]||"",r_(i[4]||""),r_(i[5]||""),r_(i[7]||""),r_(i[9]||""),t):new ru("","","","","")}static file(e){let t="";if(nz.ED&&(e=e.replace(/\\/g,"/")),"/"===e[0]&&"/"===e[1]){let i=e.indexOf("/",2);-1===i?(t=e.substring(2),e="/"):(t=e.substring(2,i),e=e.substring(i)||"/")}return new ru("file",t,e,"","")}static from(e,t){let i=new ru(e.scheme,e.authority,e.path,e.query,e.fragment,t);return i}static joinPath(e,...t){let i;if(!e.path)throw Error("[UriError]: cannot call joinPath on URI without path");return i=nz.ED&&"file"===e.scheme?rl.file(n4.join(rf(e,!0),...t)).path:n6.join(e.path,...t),e.with({path:i})}toString(e=!1){return rp(this,e)}toJSON(){return this}static revive(e){var t,i;if(!e||e instanceof rl)return e;{let n=new ru(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===rh&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}}let rh=nz.ED?1:void 0;class ru extends rl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rf(this,!1)),this._fsPath}toString(e=!1){return e?rp(this,!0):(this._formatted||(this._formatted=rp(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=rh),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let rd={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rc(e,t,i){let n;let r=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||i&&91===s||i&&93===s||i&&58===s)-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));let t=rd[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,o)),r=-1),n+=t):-1===r&&(r=o)}}return -1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function rg(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&90>=e.path.charCodeAt(1)||e.path.charCodeAt(1)>=97&&122>=e.path.charCodeAt(1))&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,nz.ED&&(i=i.replace(/\//g,"\\")),i}function rp(e,t){let i=t?rg:rc,n="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(n+=r+":"),(o||"file"===r)&&(n+="//"),o){let e=o.indexOf("@");if(-1!==e){let t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=i(t,!1,!1):n+=i(t.substr(0,e),!1,!1)+":"+i(t.substr(e+1),!1,!0),n+="@"}-1===(e=(o=o.toLowerCase()).lastIndexOf(":"))?n+=i(o,!1,!0):n+=i(o.substr(0,e),!1,!0)+o.substr(e)}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=i(s,!0,!1)}return a&&(n+="?"+i(a,!1,!1)),l&&(n+="#"+(t?l:rc(l,!1,!1))),n}let rm=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function r_(e){return e.match(rm)?e.replace(rm,e=>(function e(t){try{return decodeURIComponent(t)}catch(i){if(t.length>3)return t.substr(0,3)+e(t.substr(3));return t}})(e)):e}class rE{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new rE(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return rE.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return rE.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return rv.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return rv.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.columne.endColumn))}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(t.lineNumber!==e.startLineNumber||!(t.column<=e.startColumn))&&(t.lineNumber!==e.endLineNumber||!(t.column>=e.endColumn))}containsRange(e){return rv.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumne.endColumn))}strictContainsRange(e){return rv.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber)&&!(t.endLineNumber>e.endLineNumber)&&(t.startLineNumber!==e.startLineNumber||!(t.startColumn<=e.startColumn))&&(t.endLineNumber!==e.endLineNumber||!(t.endColumn>=e.endColumn))}plusRange(e){return rv.plusRange(this,e)}static plusRange(e,t){let i,n,r,o;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new rv(i,n,r,o)}intersectRanges(e){return rv.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,h=t.endColumn;return(il?(r=l,o=h):r===l&&(o=Math.min(o,h)),i>r||i===r&&n>o)?null:new rv(i,n,r,o)}equalsRange(e){return rv.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return rv.getEndPosition(this)}static getEndPosition(e){return new rE(e.endLineNumber,e.endColumn)}getStartPosition(){return rv.getStartPosition(this)}static getStartPosition(e){return new rE(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new rv(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new rv(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return rv.collapseToStart(this)}static collapseToStart(e){return new rv(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return rv.collapseToEnd(this)}static collapseToEnd(e){return new rv(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new rv(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new rv(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new rv(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}class rC extends rv{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return rC.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new rC(this.startLineNumber,this.startColumn,e,t):new rC(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new rE(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new rE(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new rC(e,t,this.endLineNumber,this.endColumn):new rC(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new rC(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new rC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new rC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new rC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}let rx=new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new nT,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),nu(()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();let n=new rA(this,e,t);return this._factories.set(e,n),nu(()=>{let t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())})}getOrCreate(e){return rR(this,void 0,void 0,function*(){let t=this.get(e);if(t)return t;let i=this._factories.get(e);return!i||i.isResolved?null:(yield i.resolve(),this.get(e))})}isResolved(e){let t=this.get(e);if(t)return!0;let i=this._factories.get(e);return!i||!!i.isResolved}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};(O=tl||(tl={}))[O.Unknown=0]="Unknown",O[O.Disabled=1]="Disabled",O[O.Enabled=2]="Enabled",(L=th||(th={}))[L.Invoke=1]="Invoke",L[L.Auto=2]="Auto",(I=tu||(tu={}))[I.None=0]="None",I[I.KeepWhitespace=1]="KeepWhitespace",I[I.InsertAsSnippet=4]="InsertAsSnippet",(w=td||(td={}))[w.Method=0]="Method",w[w.Function=1]="Function",w[w.Constructor=2]="Constructor",w[w.Field=3]="Field",w[w.Variable=4]="Variable",w[w.Class=5]="Class",w[w.Struct=6]="Struct",w[w.Interface=7]="Interface",w[w.Module=8]="Module",w[w.Property=9]="Property",w[w.Event=10]="Event",w[w.Operator=11]="Operator",w[w.Unit=12]="Unit",w[w.Value=13]="Value",w[w.Constant=14]="Constant",w[w.Enum=15]="Enum",w[w.EnumMember=16]="EnumMember",w[w.Keyword=17]="Keyword",w[w.Text=18]="Text",w[w.Color=19]="Color",w[w.File=20]="File",w[w.Reference=21]="Reference",w[w.Customcolor=22]="Customcolor",w[w.Folder=23]="Folder",w[w.TypeParameter=24]="TypeParameter",w[w.User=25]="User",w[w.Issue=26]="Issue",w[w.Snippet=27]="Snippet",(D=tc||(tc={}))[D.Deprecated=1]="Deprecated",(x=tg||(tg={}))[x.Invoke=0]="Invoke",x[x.TriggerCharacter=1]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(M=tf||(tf={}))[M.EXACT=0]="EXACT",M[M.ABOVE=1]="ABOVE",M[M.BELOW=2]="BELOW",(k=tp||(tp={}))[k.NotSet=0]="NotSet",k[k.ContentFlush=1]="ContentFlush",k[k.RecoverFromMarkers=2]="RecoverFromMarkers",k[k.Explicit=3]="Explicit",k[k.Paste=4]="Paste",k[k.Undo=5]="Undo",k[k.Redo=6]="Redo",(P=tm||(tm={}))[P.LF=1]="LF",P[P.CRLF=2]="CRLF",(F=t_||(t_={}))[F.Text=0]="Text",F[F.Read=1]="Read",F[F.Write=2]="Write",(B=tE||(tE={}))[B.None=0]="None",B[B.Keep=1]="Keep",B[B.Brackets=2]="Brackets",B[B.Advanced=3]="Advanced",B[B.Full=4]="Full",(U=tv||(tv={}))[U.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",U[U.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",U[U.accessibilitySupport=2]="accessibilitySupport",U[U.accessibilityPageSize=3]="accessibilityPageSize",U[U.ariaLabel=4]="ariaLabel",U[U.ariaRequired=5]="ariaRequired",U[U.autoClosingBrackets=6]="autoClosingBrackets",U[U.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",U[U.autoClosingDelete=8]="autoClosingDelete",U[U.autoClosingOvertype=9]="autoClosingOvertype",U[U.autoClosingQuotes=10]="autoClosingQuotes",U[U.autoIndent=11]="autoIndent",U[U.automaticLayout=12]="automaticLayout",U[U.autoSurround=13]="autoSurround",U[U.bracketPairColorization=14]="bracketPairColorization",U[U.guides=15]="guides",U[U.codeLens=16]="codeLens",U[U.codeLensFontFamily=17]="codeLensFontFamily",U[U.codeLensFontSize=18]="codeLensFontSize",U[U.colorDecorators=19]="colorDecorators",U[U.colorDecoratorsLimit=20]="colorDecoratorsLimit",U[U.columnSelection=21]="columnSelection",U[U.comments=22]="comments",U[U.contextmenu=23]="contextmenu",U[U.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",U[U.cursorBlinking=25]="cursorBlinking",U[U.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",U[U.cursorStyle=27]="cursorStyle",U[U.cursorSurroundingLines=28]="cursorSurroundingLines",U[U.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",U[U.cursorWidth=30]="cursorWidth",U[U.disableLayerHinting=31]="disableLayerHinting",U[U.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",U[U.domReadOnly=33]="domReadOnly",U[U.dragAndDrop=34]="dragAndDrop",U[U.dropIntoEditor=35]="dropIntoEditor",U[U.emptySelectionClipboard=36]="emptySelectionClipboard",U[U.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",U[U.extraEditorClassName=38]="extraEditorClassName",U[U.fastScrollSensitivity=39]="fastScrollSensitivity",U[U.find=40]="find",U[U.fixedOverflowWidgets=41]="fixedOverflowWidgets",U[U.folding=42]="folding",U[U.foldingStrategy=43]="foldingStrategy",U[U.foldingHighlight=44]="foldingHighlight",U[U.foldingImportsByDefault=45]="foldingImportsByDefault",U[U.foldingMaximumRegions=46]="foldingMaximumRegions",U[U.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",U[U.fontFamily=48]="fontFamily",U[U.fontInfo=49]="fontInfo",U[U.fontLigatures=50]="fontLigatures",U[U.fontSize=51]="fontSize",U[U.fontWeight=52]="fontWeight",U[U.fontVariations=53]="fontVariations",U[U.formatOnPaste=54]="formatOnPaste",U[U.formatOnType=55]="formatOnType",U[U.glyphMargin=56]="glyphMargin",U[U.gotoLocation=57]="gotoLocation",U[U.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",U[U.hover=59]="hover",U[U.inDiffEditor=60]="inDiffEditor",U[U.inlineSuggest=61]="inlineSuggest",U[U.letterSpacing=62]="letterSpacing",U[U.lightbulb=63]="lightbulb",U[U.lineDecorationsWidth=64]="lineDecorationsWidth",U[U.lineHeight=65]="lineHeight",U[U.lineNumbers=66]="lineNumbers",U[U.lineNumbersMinChars=67]="lineNumbersMinChars",U[U.linkedEditing=68]="linkedEditing",U[U.links=69]="links",U[U.matchBrackets=70]="matchBrackets",U[U.minimap=71]="minimap",U[U.mouseStyle=72]="mouseStyle",U[U.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",U[U.mouseWheelZoom=74]="mouseWheelZoom",U[U.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",U[U.multiCursorModifier=76]="multiCursorModifier",U[U.multiCursorPaste=77]="multiCursorPaste",U[U.multiCursorLimit=78]="multiCursorLimit",U[U.occurrencesHighlight=79]="occurrencesHighlight",U[U.overviewRulerBorder=80]="overviewRulerBorder",U[U.overviewRulerLanes=81]="overviewRulerLanes",U[U.padding=82]="padding",U[U.pasteAs=83]="pasteAs",U[U.parameterHints=84]="parameterHints",U[U.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",U[U.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",U[U.quickSuggestions=87]="quickSuggestions",U[U.quickSuggestionsDelay=88]="quickSuggestionsDelay",U[U.readOnly=89]="readOnly",U[U.readOnlyMessage=90]="readOnlyMessage",U[U.renameOnType=91]="renameOnType",U[U.renderControlCharacters=92]="renderControlCharacters",U[U.renderFinalNewline=93]="renderFinalNewline",U[U.renderLineHighlight=94]="renderLineHighlight",U[U.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",U[U.renderValidationDecorations=96]="renderValidationDecorations",U[U.renderWhitespace=97]="renderWhitespace",U[U.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",U[U.roundedSelection=99]="roundedSelection",U[U.rulers=100]="rulers",U[U.scrollbar=101]="scrollbar",U[U.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",U[U.scrollBeyondLastLine=103]="scrollBeyondLastLine",U[U.scrollPredominantAxis=104]="scrollPredominantAxis",U[U.selectionClipboard=105]="selectionClipboard",U[U.selectionHighlight=106]="selectionHighlight",U[U.selectOnLineNumbers=107]="selectOnLineNumbers",U[U.showFoldingControls=108]="showFoldingControls",U[U.showUnused=109]="showUnused",U[U.snippetSuggestions=110]="snippetSuggestions",U[U.smartSelect=111]="smartSelect",U[U.smoothScrolling=112]="smoothScrolling",U[U.stickyScroll=113]="stickyScroll",U[U.stickyTabStops=114]="stickyTabStops",U[U.stopRenderingLineAfter=115]="stopRenderingLineAfter",U[U.suggest=116]="suggest",U[U.suggestFontSize=117]="suggestFontSize",U[U.suggestLineHeight=118]="suggestLineHeight",U[U.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",U[U.suggestSelection=120]="suggestSelection",U[U.tabCompletion=121]="tabCompletion",U[U.tabIndex=122]="tabIndex",U[U.unicodeHighlighting=123]="unicodeHighlighting",U[U.unusualLineTerminators=124]="unusualLineTerminators",U[U.useShadowDOM=125]="useShadowDOM",U[U.useTabStops=126]="useTabStops",U[U.wordBreak=127]="wordBreak",U[U.wordSeparators=128]="wordSeparators",U[U.wordWrap=129]="wordWrap",U[U.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",U[U.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",U[U.wordWrapColumn=132]="wordWrapColumn",U[U.wordWrapOverride1=133]="wordWrapOverride1",U[U.wordWrapOverride2=134]="wordWrapOverride2",U[U.wrappingIndent=135]="wrappingIndent",U[U.wrappingStrategy=136]="wrappingStrategy",U[U.showDeprecated=137]="showDeprecated",U[U.inlayHints=138]="inlayHints",U[U.editorClassName=139]="editorClassName",U[U.pixelRatio=140]="pixelRatio",U[U.tabFocusMode=141]="tabFocusMode",U[U.layoutInfo=142]="layoutInfo",U[U.wrappingInfo=143]="wrappingInfo",U[U.defaultColorDecorators=144]="defaultColorDecorators",U[U.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn",(H=tC||(tC={}))[H.TextDefined=0]="TextDefined",H[H.LF=1]="LF",H[H.CRLF=2]="CRLF",(V=tb||(tb={}))[V.LF=0]="LF",V[V.CRLF=1]="CRLF",(W=tS||(tS={}))[W.Left=1]="Left",W[W.Right=2]="Right",(G=tT||(tT={}))[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent",(j=ty||(ty={}))[j.Both=0]="Both",j[j.Right=1]="Right",j[j.Left=2]="Left",j[j.None=3]="None",(z=tR||(tR={}))[z.Type=1]="Type",z[z.Parameter=2]="Parameter",(K=tA||(tA={}))[K.Automatic=0]="Automatic",K[K.Explicit=1]="Explicit",(Y=tN||(tN={}))[Y.DependsOnKbLayout=-1]="DependsOnKbLayout",Y[Y.Unknown=0]="Unknown",Y[Y.Backspace=1]="Backspace",Y[Y.Tab=2]="Tab",Y[Y.Enter=3]="Enter",Y[Y.Shift=4]="Shift",Y[Y.Ctrl=5]="Ctrl",Y[Y.Alt=6]="Alt",Y[Y.PauseBreak=7]="PauseBreak",Y[Y.CapsLock=8]="CapsLock",Y[Y.Escape=9]="Escape",Y[Y.Space=10]="Space",Y[Y.PageUp=11]="PageUp",Y[Y.PageDown=12]="PageDown",Y[Y.End=13]="End",Y[Y.Home=14]="Home",Y[Y.LeftArrow=15]="LeftArrow",Y[Y.UpArrow=16]="UpArrow",Y[Y.RightArrow=17]="RightArrow",Y[Y.DownArrow=18]="DownArrow",Y[Y.Insert=19]="Insert",Y[Y.Delete=20]="Delete",Y[Y.Digit0=21]="Digit0",Y[Y.Digit1=22]="Digit1",Y[Y.Digit2=23]="Digit2",Y[Y.Digit3=24]="Digit3",Y[Y.Digit4=25]="Digit4",Y[Y.Digit5=26]="Digit5",Y[Y.Digit6=27]="Digit6",Y[Y.Digit7=28]="Digit7",Y[Y.Digit8=29]="Digit8",Y[Y.Digit9=30]="Digit9",Y[Y.KeyA=31]="KeyA",Y[Y.KeyB=32]="KeyB",Y[Y.KeyC=33]="KeyC",Y[Y.KeyD=34]="KeyD",Y[Y.KeyE=35]="KeyE",Y[Y.KeyF=36]="KeyF",Y[Y.KeyG=37]="KeyG",Y[Y.KeyH=38]="KeyH",Y[Y.KeyI=39]="KeyI",Y[Y.KeyJ=40]="KeyJ",Y[Y.KeyK=41]="KeyK",Y[Y.KeyL=42]="KeyL",Y[Y.KeyM=43]="KeyM",Y[Y.KeyN=44]="KeyN",Y[Y.KeyO=45]="KeyO",Y[Y.KeyP=46]="KeyP",Y[Y.KeyQ=47]="KeyQ",Y[Y.KeyR=48]="KeyR",Y[Y.KeyS=49]="KeyS",Y[Y.KeyT=50]="KeyT",Y[Y.KeyU=51]="KeyU",Y[Y.KeyV=52]="KeyV",Y[Y.KeyW=53]="KeyW",Y[Y.KeyX=54]="KeyX",Y[Y.KeyY=55]="KeyY",Y[Y.KeyZ=56]="KeyZ",Y[Y.Meta=57]="Meta",Y[Y.ContextMenu=58]="ContextMenu",Y[Y.F1=59]="F1",Y[Y.F2=60]="F2",Y[Y.F3=61]="F3",Y[Y.F4=62]="F4",Y[Y.F5=63]="F5",Y[Y.F6=64]="F6",Y[Y.F7=65]="F7",Y[Y.F8=66]="F8",Y[Y.F9=67]="F9",Y[Y.F10=68]="F10",Y[Y.F11=69]="F11",Y[Y.F12=70]="F12",Y[Y.F13=71]="F13",Y[Y.F14=72]="F14",Y[Y.F15=73]="F15",Y[Y.F16=74]="F16",Y[Y.F17=75]="F17",Y[Y.F18=76]="F18",Y[Y.F19=77]="F19",Y[Y.F20=78]="F20",Y[Y.F21=79]="F21",Y[Y.F22=80]="F22",Y[Y.F23=81]="F23",Y[Y.F24=82]="F24",Y[Y.NumLock=83]="NumLock",Y[Y.ScrollLock=84]="ScrollLock",Y[Y.Semicolon=85]="Semicolon",Y[Y.Equal=86]="Equal",Y[Y.Comma=87]="Comma",Y[Y.Minus=88]="Minus",Y[Y.Period=89]="Period",Y[Y.Slash=90]="Slash",Y[Y.Backquote=91]="Backquote",Y[Y.BracketLeft=92]="BracketLeft",Y[Y.Backslash=93]="Backslash",Y[Y.BracketRight=94]="BracketRight",Y[Y.Quote=95]="Quote",Y[Y.OEM_8=96]="OEM_8",Y[Y.IntlBackslash=97]="IntlBackslash",Y[Y.Numpad0=98]="Numpad0",Y[Y.Numpad1=99]="Numpad1",Y[Y.Numpad2=100]="Numpad2",Y[Y.Numpad3=101]="Numpad3",Y[Y.Numpad4=102]="Numpad4",Y[Y.Numpad5=103]="Numpad5",Y[Y.Numpad6=104]="Numpad6",Y[Y.Numpad7=105]="Numpad7",Y[Y.Numpad8=106]="Numpad8",Y[Y.Numpad9=107]="Numpad9",Y[Y.NumpadMultiply=108]="NumpadMultiply",Y[Y.NumpadAdd=109]="NumpadAdd",Y[Y.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",Y[Y.NumpadSubtract=111]="NumpadSubtract",Y[Y.NumpadDecimal=112]="NumpadDecimal",Y[Y.NumpadDivide=113]="NumpadDivide",Y[Y.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",Y[Y.ABNT_C1=115]="ABNT_C1",Y[Y.ABNT_C2=116]="ABNT_C2",Y[Y.AudioVolumeMute=117]="AudioVolumeMute",Y[Y.AudioVolumeUp=118]="AudioVolumeUp",Y[Y.AudioVolumeDown=119]="AudioVolumeDown",Y[Y.BrowserSearch=120]="BrowserSearch",Y[Y.BrowserHome=121]="BrowserHome",Y[Y.BrowserBack=122]="BrowserBack",Y[Y.BrowserForward=123]="BrowserForward",Y[Y.MediaTrackNext=124]="MediaTrackNext",Y[Y.MediaTrackPrevious=125]="MediaTrackPrevious",Y[Y.MediaStop=126]="MediaStop",Y[Y.MediaPlayPause=127]="MediaPlayPause",Y[Y.LaunchMediaPlayer=128]="LaunchMediaPlayer",Y[Y.LaunchMail=129]="LaunchMail",Y[Y.LaunchApp2=130]="LaunchApp2",Y[Y.Clear=131]="Clear",Y[Y.MAX_VALUE=132]="MAX_VALUE",($=tO||(tO={}))[$.Hint=1]="Hint",$[$.Info=2]="Info",$[$.Warning=4]="Warning",$[$.Error=8]="Error",(q=tL||(tL={}))[q.Unnecessary=1]="Unnecessary",q[q.Deprecated=2]="Deprecated",(X=tI||(tI={}))[X.Inline=1]="Inline",X[X.Gutter=2]="Gutter",(Z=tw||(tw={}))[Z.UNKNOWN=0]="UNKNOWN",Z[Z.TEXTAREA=1]="TEXTAREA",Z[Z.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",Z[Z.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",Z[Z.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",Z[Z.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",Z[Z.CONTENT_TEXT=6]="CONTENT_TEXT",Z[Z.CONTENT_EMPTY=7]="CONTENT_EMPTY",Z[Z.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",Z[Z.CONTENT_WIDGET=9]="CONTENT_WIDGET",Z[Z.OVERVIEW_RULER=10]="OVERVIEW_RULER",Z[Z.SCROLLBAR=11]="SCROLLBAR",Z[Z.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",Z[Z.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(J=tD||(tD={}))[J.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",J[J.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",J[J.TOP_CENTER=2]="TOP_CENTER",(Q=tx||(tx={}))[Q.Left=1]="Left",Q[Q.Center=2]="Center",Q[Q.Right=4]="Right",Q[Q.Full=7]="Full",(ee=tM||(tM={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",ee[ee.None=2]="None",ee[ee.LeftOfInjectedText=3]="LeftOfInjectedText",ee[ee.RightOfInjectedText=4]="RightOfInjectedText",(et=tk||(tk={}))[et.Off=0]="Off",et[et.On=1]="On",et[et.Relative=2]="Relative",et[et.Interval=3]="Interval",et[et.Custom=4]="Custom",(ei=tP||(tP={}))[ei.None=0]="None",ei[ei.Text=1]="Text",ei[ei.Blocks=2]="Blocks",(en=tF||(tF={}))[en.Smooth=0]="Smooth",en[en.Immediate=1]="Immediate",(er=tB||(tB={}))[er.Auto=1]="Auto",er[er.Hidden=2]="Hidden",er[er.Visible=3]="Visible",(eo=tU||(tU={}))[eo.LTR=0]="LTR",eo[eo.RTL=1]="RTL",(es=tH||(tH={}))[es.Invoke=1]="Invoke",es[es.TriggerCharacter=2]="TriggerCharacter",es[es.ContentChange=3]="ContentChange",(ea=tV||(tV={}))[ea.File=0]="File",ea[ea.Module=1]="Module",ea[ea.Namespace=2]="Namespace",ea[ea.Package=3]="Package",ea[ea.Class=4]="Class",ea[ea.Method=5]="Method",ea[ea.Property=6]="Property",ea[ea.Field=7]="Field",ea[ea.Constructor=8]="Constructor",ea[ea.Enum=9]="Enum",ea[ea.Interface=10]="Interface",ea[ea.Function=11]="Function",ea[ea.Variable=12]="Variable",ea[ea.Constant=13]="Constant",ea[ea.String=14]="String",ea[ea.Number=15]="Number",ea[ea.Boolean=16]="Boolean",ea[ea.Array=17]="Array",ea[ea.Object=18]="Object",ea[ea.Key=19]="Key",ea[ea.Null=20]="Null",ea[ea.EnumMember=21]="EnumMember",ea[ea.Struct=22]="Struct",ea[ea.Event=23]="Event",ea[ea.Operator=24]="Operator",ea[ea.TypeParameter=25]="TypeParameter",(el=tW||(tW={}))[el.Deprecated=1]="Deprecated",(eh=tG||(tG={}))[eh.Hidden=0]="Hidden",eh[eh.Blink=1]="Blink",eh[eh.Smooth=2]="Smooth",eh[eh.Phase=3]="Phase",eh[eh.Expand=4]="Expand",eh[eh.Solid=5]="Solid",(eu=tj||(tj={}))[eu.Line=1]="Line",eu[eu.Block=2]="Block",eu[eu.Underline=3]="Underline",eu[eu.LineThin=4]="LineThin",eu[eu.BlockOutline=5]="BlockOutline",eu[eu.UnderlineThin=6]="UnderlineThin",(ed=tz||(tz={}))[ed.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ed[ed.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ed[ed.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ed[ed.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ec=tK||(tK={}))[ec.None=0]="None",ec[ec.Same=1]="Same",ec[ec.Indent=2]="Indent",ec[ec.DeepIndent=3]="DeepIndent";class rM{static chord(e,t){return(e|(65535&t)<<16>>>0)>>>0}}function rk(){return{editor:void 0,languages:void 0,CancellationTokenSource:nx,Emitter:nT,KeyCode:tN,KeyMod:rM,Position:rE,Range:rv,Selection:rC,SelectionDirection:tU,MarkerSeverity:tO,MarkerTag:tL,Uri:rl,Token:rO}}rM.CtrlCmd=2048,rM.Shift=1024,rM.Alt=512,rM.WinCtrl=256,i(95656);class rP{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);let t=this.fn(e);return this._map.set(e,t),t}}class rF{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}let rB=/{(\d+)}/g;function rU(e,...t){return 0===t.length?e:e.replace(rB,function(e,i){let n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]})}function rH(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function rV(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function rW(e,t){if(!e||!t)return e;let i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function rG(e,t,i={}){if(!e)throw Error("Cannot create regex from empty string");t||(e=rV(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function rj(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function rz(e){return e.split(/\r\n|\r|\n/)}function rK(e){for(let t=0,i=e.length;t=0;i--){let t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return -1}function rq(e,t){return et?1:0}function rX(e,t,i=0,n=e.length,r=0,o=t.length){for(;io)return 1}let s=n-i,a=o-r;return sa?1:0}function rZ(e,t){return rJ(e,t,0,e.length,0,t.length)}function rJ(e,t,i=0,n=e.length,r=0,o=t.length){for(;i=128||a>=128)return rX(e.toLowerCase(),t.toLowerCase(),i,n,r,o);r0(s)&&(s-=32),r0(a)&&(a-=32);let l=s-a;if(0!==l)return l}let s=n-i,a=o-r;return sa?1:0}function rQ(e){return e>=48&&e<=57}function r0(e){return e>=97&&e<=122}function r1(e){return e>=65&&e<=90}function r2(e,t){return e.length===t.length&&0===rJ(e,t)}function r5(e,t){let i=t.length;return!(t.length>e.length)&&0===rJ(e,t,0,i)}function r4(e,t){let i;let n=Math.min(e.length,t.length);for(i=0;i1){let n=e.charCodeAt(t-2);if(r6(n))return r7(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){let e=r8(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class ot{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new oe(e,t)}nextGraphemeLength(){let e=of.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){let i=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(og(n,r)){t.setOffset(i);break}n=r}return t.offset-i}prevGraphemeLength(){let e=of.getInstance(),t=this._iterator,i=t.offset,n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){let i=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(og(r,n)){t.setOffset(i);break}n=r}return i-t.offset}eol(){return this._iterator.eol()}}function oi(e,t){let i=new ot(e,t);return i.nextGraphemeLength()}function on(e,t){let i=new ot(e,t);return i.prevGraphemeLength()}function or(e){return E||(E=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),E.test(e)}let oo=/^[\t\n\r\x20-\x7E]*$/;function os(e){return oo.test(e)}let oa=/[\u2028\u2029]/;function ol(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function oh(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}let ou=String.fromCharCode(65279);function od(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function oc(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function og(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class of{static getInstance(){return of._INSTANCE||(of._INSTANCE=new of),of._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;let t=this._data,i=t.length/3,n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}of._INSTANCE=null;class op{static getInstance(e){return op.cache.get(Array.from(e))}static getLocales(){return op._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}op.ambiguousCharacterData=new rF(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),op.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}(e=>{let t;function i(e){let t=new Map;for(let i=0;i!e.startsWith("_")&&e in n);for(let e of(0===r.length&&(r=["_default"]),r)){let r=i(n[e]);t=function(e,t){if(!e)return t;let i=new Map;for(let[n,r]of e)t.has(n)&&i.set(n,r);return i}(t,r)}let o=i(n._common),s=function(e,t){let i=new Map(e);for(let[e,n]of t)i.set(e,n);return i}(o,t);return new op(s)}),op._locales=new rF(()=>Object.keys(op.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class om{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(om.getRawData())),this._data}static isInvisibleCharacter(e){return om.getData().has(e)}static get codePoints(){return om.getData()}}om._data=void 0;class o_{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}o_.INSTANCE=new o_;class oE extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class ov extends nc{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();let e=this._register(new oE);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}function oC(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}let ob=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new ov),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}},oS=navigator.userAgent,oT=oS.indexOf("Firefox")>=0,oy=oS.indexOf("AppleWebKit")>=0,oR=oS.indexOf("Chrome")>=0,oA=!oR&&oS.indexOf("Safari")>=0,oN=!oR&&!oA&&oy;oS.indexOf("Electron/");let oO=oS.indexOf("Android")>=0,oL=!1;if(window.matchMedia){let e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");oL=e.matches,oC(e,({matches:e})=>{oL&&t.matches||(oL=e)})}class oI{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=ow(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=ow(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=ow(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=ow(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=ow(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=ow(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=ow(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){let t=ow(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=ow(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=ow(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=ow(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function ow(e){return"number"==typeof e?`${e}px`:e}function oD(e){return new oI(e)}function ox(e,t){e instanceof oI?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}class oM{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ok{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";let t=document.createElement("div");ox(t,this._bareFontInfo),e.appendChild(t);let i=document.createElement("div");ox(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);let n=document.createElement("div");ox(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);let r=[];for(let e of this._requests){let o;0===e.type&&(o=t),2===e.type&&(o=i),1===e.type&&(o=n),o.appendChild(document.createElement("br"));let s=document.createElement("span");ok._render(s,e),o.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t="\xa0";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;ethis._values[e])}}let oV=new class extends nc{constructor(){super(),this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._cache=new oH,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new oH,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=this._cache.getValues(),t=!1;for(let i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new oU({pixelRatio:ob.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,n){let r=new oM(e,t);return i.push(r),null==n||n.push(r),r}_actualReadFontInfo(e){let t=[],i=[],n=this._createRequest("n",0,t,i),r=this._createRequest("m",0,t,null),o=this._createRequest(" ",0,t,i),s=this._createRequest("0",0,t,i),a=this._createRequest("1",0,t,i),l=this._createRequest("2",0,t,i),h=this._createRequest("3",0,t,i),u=this._createRequest("4",0,t,i),d=this._createRequest("5",0,t,i),c=this._createRequest("6",0,t,i),g=this._createRequest("7",0,t,i),f=this._createRequest("8",0,t,i),p=this._createRequest("9",0,t,i),m=this._createRequest("→",0,t,i),_=this._createRequest("→",0,t,null),E=this._createRequest("\xb7",0,t,i),v=this._createRequest(String.fromCharCode(11825),0,t,null),C="|/-_ilm%";for(let e=0,n=C.length;e.001){S=!1;break}}let y=!0;return S&&_.width!==T&&(y=!1),_.width>m.width&&(y=!1),new oU({pixelRatio:ob.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:y,spaceWidth:o.width,middotWidth:E.width,wsmiddotWidth:v.width,maxDigitWidth:b},!0)}};(eg=tY||(tY={})).serviceIds=new Map,eg.DI_TARGET="$di$target",eg.DI_DEPENDENCIES="$di$dependencies",eg.getServiceDependencies=function(e){return e[eg.DI_DEPENDENCIES]||[]};let oW=oG("instantiationService");function oG(e){if(tY.serviceIds.has(e))return tY.serviceIds.get(e);let t=function(e,i,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[tY.DI_TARGET]===e?e[tY.DI_DEPENDENCIES].push({id:t,index:n}):(e[tY.DI_DEPENDENCIES]=[{id:t,index:n}],e[tY.DI_TARGET]=e)};return t.toString=()=>e,tY.serviceIds.set(e,t),t}let oj=oG("codeEditorService");function oz(e,t){if(!e)throw Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oK(e,t="Unreachable"){throw Error(t)}function oY(e){e()||(e(),i1(new nt("Assertion Failed")))}function o$(e,t){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw i7(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();){this._start=this._current;let e=this._advance();switch(e){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(o0("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(o0("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(o0("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;let e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;let t=this._input.substring(this._start,this._current),i=o5._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(o1);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(o2);return}let n=this._input.charCodeAt(e);if(t)t=!1;else if(47!==n||i)91===n?i=!0:92===n?t=!0:93===n&&(i=!1);else{e++;break}e++}for(;e=this._input.length}}o5._regexFlags=new Set(["i","g","s","m","y","u"].map(e=>e.charCodeAt(0))),o5._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);let o4=new Map;o4.set("false",!1),o4.set("true",!0),o4.set("isMac",nz.dz),o4.set("isLinux",nz.IJ),o4.set("isWindows",nz.ED),o4.set("isWeb",nz.$L),o4.set("isMacNative",nz.dz&&!nz.$L),o4.set("isEdge",nz.un),o4.set("isFirefox",nz.vU),o4.set("isChrome",nz.i7),o4.set("isSafari",nz.G6);let o3=Object.prototype.hasOwnProperty,o6={regexParsingWithErrorRecovery:!0},o9=(0,rN.NC)("contextkey.parser.error.emptyString","Empty context key expression"),o7=(0,rN.NC)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),o8=(0,rN.NC)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),se=(0,rN.NC)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),st=(0,rN.NC)("contextkey.parser.error.unexpectedToken","Unexpected token"),si=(0,rN.NC)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),sn=(0,rN.NC)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),sr=(0,rN.NC)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class so{constructor(e=o6){this._config=e,this._scanner=new o5,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""===e){this._parsingErrors.push({message:o9,offset:0,lexeme:"",additionalInfo:o7});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{let e=this._expr();if(!this._isAtEnd()){let e=this._peek(),t=17===e.type?si:void 0;throw this._parsingErrors.push({message:st,offset:e.offset,lexeme:o5.getLexeme(e),additionalInfo:t}),so._parseError}return e}catch(e){if(e!==so._parseError)throw e;return}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return 1===e.length?e[0]:ss.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return 1===e.length?e[0]:ss.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),sl.INSTANCE;case 12:return this._advance(),sh.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,se),null==e?void 0:e.negate()}case 17:return this._advance(),sp.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){let e=this._peek();switch(e.type){case 11:return this._advance(),ss.true();case 12:return this._advance(),ss.false();case 0:{this._advance();let e=this._expr();return this._consume(1,se),e}case 17:{let t=e.lexeme;if(this._advance(),this._matchOne(9)){let e=this._peek();if(!this._config.regexParsingWithErrorRecovery){let i;if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);let n=e.lexeme,r=n.lastIndexOf("/"),o=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1));try{i=new RegExp(n.substring(1,r),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return sb.create(t,i)}switch(e.type){case 10:case 19:{let i;let n=[e.lexeme];this._advance();let r=this._peek(),o=0;for(let t=0;t=0){let o=i.slice(t+1,r),s="i"===i[r+1]?"i":"";try{n=new RegExp(o,s)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return sb.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,o8);let e=this._value();return ss.notIn(t,e)}let i=this._peek().type;switch(i){case 3:{this._advance();let e=this._value();if(18===this._previous().type)return ss.equals(t,e);switch(e){case"true":return ss.has(t);case"false":return ss.not(t);default:return ss.equals(t,e)}}case 4:{this._advance();let e=this._value();if(18===this._previous().type)return ss.notEquals(t,e);switch(e){case"true":return ss.not(t);case"false":return ss.has(t);default:return ss.notEquals(t,e)}}case 5:return this._advance(),sv.create(t,this._value());case 6:return this._advance(),sC.create(t,this._value());case 7:return this._advance(),s_.create(t,this._value());case 8:return this._advance(),sE.create(t,this._value());case 13:return this._advance(),ss.in(t,this._value());default:return ss.has(t)}}case 20:throw this._parsingErrors.push({message:sn,offset:e.offset,lexeme:"",additionalInfo:sr}),so._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX - | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return!this._isAtEnd()&&this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){let n=(0,rL.NC)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,o4.getLexeme(t)),r=t.offset,o=o4.getLexeme(t);return this._parsingErrors.push({message:n,offset:r,lexeme:o,additionalInfo:i}),so._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}so._parseError=Error();class ss{static false(){return sl.INSTANCE}static true(){return sh.INSTANCE}static has(e){return su.create(e)}static equals(e,t){return sd.create(e,t)}static notEquals(e,t){return sp.create(e,t)}static regex(e,t){return sS.create(e,t)}static in(e,t){return sc.create(e,t)}static notIn(e,t){return sg.create(e,t)}static not(e){return sf.create(e)}static and(...e){return sb.create(e,null,!0)}static or(...e){return sA.create(e,null,!0)}static deserialize(e){if(null==e)return;let t=this._parser.parse(e);return t}}function sa(e,t){return e.cmp(t)}ss._parser=new so({regexParsingWithErrorRecovery:!1});class sl{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return sh.INSTANCE}}sl.INSTANCE=new sl;class sh{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return sl.INSTANCE}}sh.INSTANCE=new sh;class su{static create(e,t=null){let i=o5.get(e);return"boolean"==typeof i?i?sh.INSTANCE:sl.INSTANCE:new su(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?e?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=sf.create(this.key,this)),this.negated}}class sd{static create(e,t,i=null){if("boolean"==typeof t)return t?su.create(e,i):sf.create(e,i);let n=o5.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sh.INSTANCE:sl.INSTANCE:new sd(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sh.INSTANCE:sl.INSTANCE:this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sp.create(this.key,this.value,this)),this.negated}}class sc{static create(e,t){return new sc(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&o6.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=sg.create(this.key,this.valueKey)),this.negated}}class sg{static create(e,t){return new sg(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=sc.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class sp{static create(e,t,i=null){if("boolean"==typeof t)return t?sf.create(e,i):su.create(e,i);let n=o5.get(e);return"boolean"==typeof n?t===(n?"true":"false")?sl.INSTANCE:sh.INSTANCE:new sp(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?this.value===(e?"true":"false")?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sd.create(this.key,this.value,this)),this.negated}}class sf{static create(e,t=null){let i=o5.get(e);return"boolean"==typeof i?i?sl.INSTANCE:sh.INSTANCE:new sf(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){var t,i;return e.type!==this.type?this.type-e.type:(t=this.key,t<(i=e.key)?-1:t>i?1:0)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=o5.get(this.key);return"boolean"==typeof e?e?sl.INSTANCE:sh.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=su.create(this.key,this)),this.negated}}function sm(e,t){if("string"==typeof e){let t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):sl.INSTANCE}class sv{static create(e,t,i=null){return sm(t,t=>new sv(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sC.create(this.key,this.value,this)),this.negated}}class sE{static create(e,t,i=null){return sm(t,t=>new sE(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=s_.create(this.key,this.value,this)),this.negated}}class s_{static create(e,t,i=null){return sm(t,t=>new s_(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new sC(e,t,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:sN(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sv.create(this.key,this.value,this)),this.negated}}class sS{static create(e,t){return new sS(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=sy.create(this)),this.negated}}class sy{static create(e){return new sy(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function sT(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){let e=n[n.length-1];if(9!==e.type)break;n.pop();let t=n.pop(),r=0===n.length,o=sA.create(e.expr.map(e=>sb.create([e,t],null,i)),null,r);o&&(n.push(o),n.sort(sa))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize()).join(" && ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=sA.create(e,this,!0)}return this.negated}}class sA{static create(e,t,i){return sA._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){let t=e.shift(),i=e.shift(),n=[];for(let e of sw(t))for(let t of sw(i))n.push(sb.create([e,t],null,!1));e.unshift(sA.create(n,null,!1))}this.negated=sA.create(e,this,!0)}return this.negated}}class sR extends su{static all(){return sR._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?sR._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&sR._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return sd.create(this.key,e)}}sR._info=[];let sL=oG("contextKeyService");function sN(e,t,i,n){return ei?1:tn?1:0}function sI(e,t){let i=0,n=0;for(;ithis._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this._updateAccessibilityState(e.position.lineNumber),this.nextIdx=-1)})),this._init()}_init(){let e=this._editor.getLineChanges();if(!e)return}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new r_(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})}),this.ranges.sort((e,t)=>r_.compareRangesUsingStarts(e.range,t.range)),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,i=this._editor.getPosition();if(!i){this.nextIdx=0;return}for(let n=0,r=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t),this._updateAccessibilityState(e.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,t){var i;let n=null===(i=this._editor.getModel())||void 0===i?void 0:i.modified;if(!n)return;let r=n.getLineDecorations(e).find(e=>"line-insert"===e.options.className);if(r)this._audioCueService.playAudioCue(oQ.diffLineModified,!0);else{if(!t)return;this._audioCueService.playAudioCue(oQ.diffLineDeleted,!0)}let o=this._codeEditorService.getActiveCodeEditor();t&&o&&r&&this._accessibilityService.isScreenReaderOptimized()&&(o.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),o.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([sD(2,oq),sD(3,oz),sD(4,sO)],sk);let sP={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};(ep=tX||(tX={}))[ep.Left=1]="Left",ep[ep.Center=2]="Center",ep[ep.Right=4]="Right",ep[ep.Full=7]="Full",(ef=tj||(tj={}))[ef.Left=1]="Left",ef[ef.Right=2]="Right",(em=tq||(tq={}))[em.Inline=1]="Inline",em[em.Gutter=2]="Gutter",(ev=tZ||(tZ={}))[ev.Both=0]="Both",ev[ev.Right=1]="Right",ev[ev.Left=2]="Left",ev[ev.None=3]="None";class sF{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,oj.fS)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class sB{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class sU{constructor(e,t,i,n,r,o){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class sH{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class sV{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}var sW=i(270);(eE=tJ||(tJ={}))[eE.None=0]="None",eE[eE.Indent=1]="Indent",eE[eE.IndentOutdent=2]="IndentOutdent",eE[eE.Outdent=3]="Outdent";class sG{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t0&&e.getLanguageId(s-1)===r;)s--;return new s$(e,r,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}class s${constructor(e,t,i,n,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){let e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){let t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function sX(e){return(3&e)!=0}class sj{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new sG(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new sG({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){let t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new sG({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n ",sj.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n ";var sq=i(9488),sZ=i(21876).Buffer;let sJ=void 0!==sZ;new rF(()=>new Uint8Array(256));class sQ{static wrap(e){return sJ&&!sZ.isBuffer(e)&&(e=sZ.from(e.buffer,e.byteOffset,e.byteLength)),new sQ(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return sJ?this.buffer.toString():(r||(r=new TextDecoder),r.decode(this.buffer))}}function s0(e,t){return 16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]}function s1(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function s2(){return o||(o=new TextDecoder("UTF-16LE")),o}function s4(){return a||(a=nY.r()?s2():(s||(s=new TextDecoder("UTF-16BE")),s)),a}class s5{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";let e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return s4().decode(e)}_flushBuffer(){let e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){let t=this._capacity-this._bufferLength;t<=1&&(0===t||r3(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){let t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[e[0].toLowerCase(),e[1].toLowerCase()]);let i=[];for(let e=0;e{let[i,n]=e,[r,o]=t;return i===r||i===o||n===r||n===o},r=(e,n)=>{let r=Math.min(e,n),o=Math.max(e,n);for(let e=0;e0&&o.push({open:r,close:s})}return o}(t);for(let t of(this.brackets=i.map((t,n)=>new s6(e,n,t.open,t.close,function(e,t,i,n){let r=[];r=(r=r.concat(e)).concat(t);for(let e=0,t=r.length;e=0&&n.push(t);for(let t of o.close)t.indexOf(e)>=0&&n.push(t)}}function s7(e,t){return e.length-t.length}function s8(e){if(e.length<=1)return e;let t=[],i=new Set;for(let n of e)i.has(n)||(t.push(n),i.add(n));return t}function ae(e){let t=/^[\w ]+$/.test(e);return e=rV(e),t?`\\b${e}\\b`:e}function at(e){let t=`(${e.map(ae).join(")|(")})`;return rG(t,!0)}let ai=(_=null,C=null,function(e){return _!==e&&(C=function(e){let t=new Uint16Array(e.length),i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return s4().decode(t)}(_=e)),C});class an{static _findPrevBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=i.length-(r.index||0),s=r[0].length,a=n+o;return new r_(t,a-s+1,t,a+1)}static findPrevBracketInRange(e,t,i,n,r){let o=ai(i),s=o.substring(i.length-r,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){let r=i.match(e);if(!r)return null;let o=r.index||0,s=r[0].length;if(0===s)return null;let a=n+o;return new r_(t,a+1,t,a+1+s)}static findNextBracketInRange(e,t,i,n,r){let o=i.substring(n,r);return this.findNextBracketInText(e,t,o,n)}}class ar{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(let t of this._richEditBrackets.brackets)for(let i of t.close){let t=i.charAt(i.length-1);e.push(t)}return(0,sq.EB)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;let n=t.findTokenIndexAtOffset(i-1);if(sX(t.getStandardTokenType(n)))return null;let r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,i-1)+e,s=an.findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;let a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),l=this._richEditBrackets.textIsOpenBracket[a];if(l)return null;let h=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function ao(e){return e.global&&(e.lastIndex=0),!0}class as{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&ao(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&ao(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&ao(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&ao(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class aa{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{let t=aa._createOpenBracketRegExp(e[0]),i=aa._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,r=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)));if(o)return r.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};am.add(aE.JSONContribution,a_);let aC={Configuration:"base.contributions.configuration"},aS={properties:{},patternProperties:{}},ay={properties:{},patternProperties:{}},aT={properties:{},patternProperties:{}},ab={properties:{},patternProperties:{}},aA={properties:{},patternProperties:{}},aR={properties:{},patternProperties:{}},aL="vscode://schemas/settings/resourceLanguage",aN=am.as(aE.JSONContribution),aI="\\[([^\\]]+)\\]",aw=RegExp(aI,"g"),aO=`^(${aI})+$`,ax=new RegExp(aO);function aD(e){let t=[];if(ax.test(e)){let i=aw.exec(e);for(;null==i?void 0:i.length;){let n=i[1].trim();n&&t.push(n),i=aw.exec(e)}}return(0,sq.EB)(t)}let aM=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new nT,this._onDidUpdateConfiguration=new nT,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:rL.NC("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},aN.registerSchema(aL,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=new Set;this.doRegisterConfigurations(e,t,i),aN.registerSchema(aL,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){let t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;let n=[];for(let{overrides:r,source:o}of e)for(let e in r)if(t.add(e),ax.test(e)){let t=this.configurationDefaultsOverrides.get(e),s=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map;if(o)for(let t of Object.keys(r[e]))s.set(t,o);let a=Object.assign(Object.assign({},(null==t?void 0:t.value)||{}),r[e]);this.configurationDefaultsOverrides.set(e,{source:o,value:a,valuesSources:s});let l=e.replace(/[\[\]]/g,""),h={type:"object",default:a,description:rL.NC("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",l),$ref:aL,defaultDefaultValue:a,source:rS.HD(o)?void 0:o,defaultValueSource:o};n.push(...aD(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:r[e],source:o});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)})}validateAndRegisterProperties(e,t=!0,i,n,r=3,o){var s;r=rS.Jp(e.scope)?r:e.scope;let a=e.properties;if(a)for(let e in a){let l=a[e];if(t&&function(e,t){var i,n,r,o;return e.trim()?ax.test(e)?rL.NC("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==aM.getConfigurationProperties()[e]?rL.NC("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==aM.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?rL.NC("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(r=t.policy)||void 0===r?void 0:r.name,aM.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)):null:rL.NC("config.property.empty","Cannot register an empty property")}(e,l)){delete a[e];continue}if(l.source=i,l.defaultDefaultValue=a[e].default,this.updatePropertyDefaultValue(e,l),ax.test(e)?l.scope=void 0:(l.scope=rS.Jp(l.scope)?r:l.scope,l.restricted=rS.Jp(l.restricted)?!!(null==n?void 0:n.includes(e)):l.restricted),a[e].hasOwnProperty("included")&&!a[e].included){this.excludedConfigurationProperties[e]=a[e],delete a[e];continue}this.configurationProperties[e]=a[e],(null===(s=a[e].policy)||void 0===s?void 0:s.name)&&this.policyConfigurations.set(a[e].policy.name,e),!a[e].deprecationMessage&&a[e].markdownDeprecationMessage&&(a[e].deprecationMessage=a[e].markdownDeprecationMessage),o.add(e)}let l=e.allOf;if(l)for(let e of l)this.validateAndRegisterProperties(e,t,i,n,r,o)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(aS.properties[e]=t,t.scope){case 1:ay.properties[e]=t;break;case 2:aT.properties[e]=t;break;case 6:ab.properties[e]=t;break;case 3:aA.properties[e]=t;break;case 4:aR.properties[e]=t;break;case 5:aR.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:rL.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rL.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aL};this.updatePropertyDefaultValue(t,i),aS.properties[t]=i,ay.properties[t]=i,aT.properties[t]=i,ab.properties[t]=i,aA.properties[t]=i,aR.properties[t]=i}}registerOverridePropertyPatternKey(){let e={type:"object",description:rL.NC("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:rL.NC("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:aL};aS.patternProperties[aO]=e,ay.patternProperties[aO]=e,aT.patternProperties[aO]=e,ab.patternProperties[aO]=e,aA.patternProperties[aO]=e,aR.patternProperties[aO]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),n=null==i?void 0:i.value,r=null==i?void 0:i.source;rS.o8(n)&&(n=t.defaultDefaultValue,r=void 0),rS.o8(n)&&(n=function(e){let t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=r}};am.add(aC.Configuration,aM);let ak=new class{constructor(){this._onDidChangeLanguages=new nT,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{let t=new Set;return{info:new aH(this,e,t),closing:t}}),r=new rP(e=>{let t=new Set,i=new Set;return{info:new aV(this,e,t,i),opening:t,openingColorized:i}});for(let[e,t]of i){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.opening.add(i.info)}let o=t.colorizedBracketPairs?aB(t.colorizedBracketPairs):i.filter(e=>!("<"===e[0]&&">"===e[1]));for(let[e,t]of o){let i=n.get(e),o=r.get(t);i.closing.add(o.info),o.openingColorized.add(i.info),o.opening.add(i.info)}this._openingBrackets=new Map([...n.cachedValues].map(([e,t])=>[e,t.info])),this._closingBrackets=new Map([...r.cachedValues].map(([e,t])=>[e,t.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function aB(e){return e.filter(([e,t])=>""!==e&&""!==t)}class aU{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class aH extends aU{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class aV extends aU{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var aW=function(e,t){return function(i,n){t(i,n,e)}};class aG{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}let az=oG("languageConfigurationService"),aY=class extends nc{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new a0),this.onDidChangeEmitter=this._register(new nT),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;let i=new Set(Object.values(aK));this._register(this.configurationService.onDidChangeConfiguration(e=>{let t=e.change.keys.some(e=>i.has(e)),n=e.change.overrides.filter(([e,t])=>t.some(e=>i.has(e))).map(([e])=>e);if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new aG(void 0));else for(let e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new aG(e)))})),this._register(this._registry.onDidChange(e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new aG(e.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let r=t.getLanguageConfiguration(e);if(!r){if(!n.isRegisteredLanguageId(e))return new a1(e,{});r=new a1(e,{})}let o=function(e,t){let i=t.getValue(aK.brackets,{overrideIdentifier:e}),n=t.getValue(aK.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:a$(i),colorizedBracketPairs:a$(n)}}(r.languageId,i),s=aZ([r.underlyingConfig,o]),a=new a1(r.languageId,s);return a}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};aY=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([aW(0,al),aW(1,ac)],aY);let aK={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function a$(e){if(Array.isArray(e))return e.map(e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]}).filter(e=>!!e)}function aX(e,t,i){let n=e.getLineContent(t),r=r$(n);return r.length>i-1&&(r=r.substring(0,i-1)),r}function aj(e,t,i){e.tokenization.forceTokenization(t);let n=e.tokenization.getLineTokens(t),r=void 0===i?e.getLineMaxColumn(t)-1:i-1;return sK(n,r)}class aq{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){let i=new aJ(e,t,++this._order);return this._entries.push(i),this._resolved=null,nu(()=>{for(let e=0;ee.configuration)))}}function aZ(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(let i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class aJ{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class aQ{constructor(e){this.languageId=e}}class a0 extends nc{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new nT),this.onDidChange=this._onDidChange.event,this._register(this.register(aP,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new aq(e),this._entries.set(e,n));let r=n.register(t,i);return this._onDidChange.fire(new aQ(e)),nu(()=>{r.dispose(),this._onDidChange.fire(new aQ(e))})}getLanguageConfiguration(e){let t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class a1{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new aa(this.underlyingConfig):null,this.comments=a1._handleComments(this.underlyingConfig),this.characterPair=new sj(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||sW.Af,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new as(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new aF(e,this.underlyingConfig)}getWordDefinition(){return(0,sW.eq)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new s3(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new ar(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new sz(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){let t=e.comments;if(!t)return null;let i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){let[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}af(az,aY,1);let a2=new class{clone(){return this}equals(e){return this===e}};function a4(e,t){return new rI([new rN(0,"",e)],t)}function a5(e,t){let i=new Uint32Array(2);return i[0]=0,i[1]=(e<<0|33587200)>>>0,new rw(i,null===t?a2:t)}let a6=oG("modelService"),a3=Symbol("MicrotaskDelay");var a9=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},a7=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=e[i]&&function(t){return new Promise(function(n,r){!function(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)}(n,r,(t=e[i](t)).done,t.value)})}}};function a8(e){return!!e&&"function"==typeof e.then}function le(e){let t=new nD,i=e(t.token),n=new Promise((e,n)=>{let r=t.token.onCancellationRequested(()=>{r.dispose(),t.dispose(),n(new i3)});Promise.resolve(i).then(i=>{r.dispose(),t.dispose(),e(i)},e=>{r.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}class lt{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)throw Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{if(this.queuedPromise=null,this.isDisposed)return;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}dispose(){this.isDisposed=!0}}let li=(e,t)=>{let i=!0,n=setTimeout(()=>{i=!1,t()},e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},ln=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}};class lr{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){let e=this.task;return this.task=null,e()}}));let i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===a3?ln(i):li(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new i3),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class lo{constructor(e){this.delayer=new lr(e),this.throttler=new lt}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function ls(e,t){return t?new Promise((i,n)=>{let r=setTimeout(()=>{o.dispose(),i()},e),o=t.onCancellationRequested(()=>{clearTimeout(r),o.dispose(),n(new i3)})}):le(t=>ls(e,t))}function la(e,t=0){let i=setTimeout(e,t);return nu(()=>clearTimeout(i))}class ll{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class lh{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class lu{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return -1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}l="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{(0,nY.fn)(()=>{if(t)return;let i=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining:()=>Math.max(0,i-Date.now())}))});let t=!1;return{dispose(){t||(t=!0)}}}:(e,t)=>{let i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class ld{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=l(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class lc{get isRejected(){var e;return(null===(e=this.outcome)||void 0===e?void 0:e.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new i3)}}(e_=tQ||(tQ={})).settled=function(e){return a9(this,void 0,void 0,function*(){let t;let i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if(void 0!==t)throw t;return i})},e_.withAsyncBody=function(e){return new Promise((t,i)=>a9(this,void 0,void 0,function*(){try{yield e(t,i)}catch(e){i(e)}}))};class lg{static fromArray(e){return new lg(t=>{t.emitMany(e)})}static fromPromise(e){return new lg(t=>a9(this,void 0,void 0,function*(){t.emitMany((yield e))}))}static fromPromises(e){return new lg(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>a9(this,void 0,void 0,function*(){return t.emitOne((yield e))})))}))}static merge(e){return new lg(t=>a9(this,void 0,void 0,function*(){yield Promise.all(e.map(e=>{var i,n,r;return a9(this,void 0,void 0,function*(){var o,s,a,l;try{for(i=!0,n=a7(e);!(o=(r=yield n.next()).done);i=!0)l=r.value,i=!1,t.emitOne(l)}catch(e){s={error:e}}finally{try{!i&&!o&&(a=n.return)&&(yield a.call(n))}finally{if(s)throw s.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new nT,queueMicrotask(()=>a9(this,void 0,void 0,function*(){let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{yield Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>a9(this,void 0,void 0,function*(){for(;;){if(2===this._state)throw this._error;if(ea9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a7(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,i.emitOne(t(s))}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}map(e){return lg.map(this,e)}static filter(e,t){return new lg(i=>a9(this,void 0,void 0,function*(){var n,r,o,s;try{for(var a,l=!0,h=a7(e);!(n=(a=yield h.next()).done);l=!0)s=a.value,l=!1,t(s)&&i.emitOne(s)}catch(e){r={error:e}}finally{try{!l&&!n&&(o=h.return)&&(yield o.call(h))}finally{if(r)throw r.error}}}))}filter(e){return lg.filter(this,e)}static coalesce(e){return lg.filter(e,e=>!!e)}coalesce(){return lg.coalesce(this)}static toPromise(e){var t,i,n,r,o,s,a;return a9(this,void 0,void 0,function*(){let l=[];try{for(t=!0,i=a7(e);!(r=(n=yield i.next()).done);t=!0)a=n.value,t=!1,l.push(a)}catch(e){o={error:e}}finally{try{!t&&!r&&(s=i.return)&&(yield s.call(i))}finally{if(o)throw o.error}}return l})}toPromise(){return lg.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}lg.EMPTY=lg.fromArray([]);let lp=!1;function lf(e){nY.$L&&(lp||(lp=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class lm{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class lv{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class lE{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class l_{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class lC{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class lS{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){let i=String(++this._lastSentReq);return new Promise((n,r)=>{this._pendingReplies[i]={resolve:n,reject:r},this._send(new lm(this._workerId,i,e,t))})}listen(e,t){let i=null,n=new nT({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new lE(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new lC(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId)&&this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&((i=Error()).name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req,i=this._handler.handleMessage(e.method,e.args);i.then(e=>{this._send(new lv(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=i4(e.detail)),this._send(new lv(this._workerId,t,void 0,i4(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(e=>{this._send(new l_(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)},e=>{null==n||n(e)})),this._protocol=new lS({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(lb(e)){let n=i[e].call(i,t);if("function"!=typeof n)throw Error(`Missing dynamic event ${e} on main thread host.`);return n}if(lT(e)){let t=i[e];if("function"!=typeof t)throw Error(`Missing event ${e} on main thread host.`);return t}throw Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let r=null,o=globalThis.require;void 0!==o&&"function"==typeof o.getConfig?r=o.getConfig():void 0!==globalThis.requirejs&&(r=globalThis.requirejs.s.contexts._.config);let s=(0,oj.$E)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,s]);let a=(e,t)=>this._request(e,t),l=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise((e,i)=>{n=i,this._onModuleLoaded.then(t=>{e(function(e,t,i){let n=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r=e=>function(t){return i(e,t)},o={};for(let t of e){if(lb(t)){o[t]=r(t);continue}if(lT(t)){o[t]=i(t,void 0);continue}o[t]=n(t)}return o}(t,a,l))},e=>{i(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function lT(e){return"o"===e[0]&&"n"===e[1]&&r1(e.charCodeAt(2))}function lb(e){return/^onDynamic/.test(e)&&r1(e.charCodeAt(9))}function lA(e,t){var i;let n=globalThis.MonacoEnvironment;if(null==n?void 0:n.createTrustedTypesPolicy)try{return n.createTrustedTypesPolicy(e,t)}catch(e){i1(e);return}try{return null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(e){i1(e);return}}let lR=lA("defaultWorkerFactory",{createScriptURL:e=>e});class lL{constructor(e,t,i,n,r){this.id=t;let o=function(e){let t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){let i=t.getWorkerUrl("workerMain.js",e);return new Worker(lR?lR.createScriptURL(i):i,{name:e})}}throw Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);("function"==typeof o.then?0:1)?this.worker=Promise.resolve(o):this.worker=o,this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=r,"function"==typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then(i=>i.postMessage(e,t))}dispose(){var e;null===(e=this.worker)||void 0===e||e.then(e=>e.terminate()),this.worker=null}}class lN{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){let n=++lN.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new lL(e,n,this._label||"anonymous"+n,t,e=>{lf(e),this._webWorkerFailedBeforeError=e,i(e)})}}lN.LAST_WORKER_ID=0;class lI{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function lw(e,t){return(t<<5)-t+e|0}function lO(e,t){t=lw(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function lD(e,t=0,i=e.byteLength,n=0){for(let r=0;re.toString(16).padStart(2,"0")).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class lk{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t,i;let n=e.length;if(0===n)return;let r=this._buff,o=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(t=s,i=-1,s=0):(t=e.charCodeAt(0),i=0);;){let a=t;if(r3(t)){if(i+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),lM(this._h0)+lM(this._h1)+lM(this._h2)+lM(this._h3)+lM(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,lD(this._buff,this._buffLen),this._buffLen>56&&(this._step(),lD(this._buff));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let e,t,i;let n=lk._bigBlock32,r=this._buffDV;for(let e=0;e<64;e+=4)n.setUint32(e,r.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)n.setUint32(e,lx(n.getUint32(e-12,!1)^n.getUint32(e-32,!1)^n.getUint32(e-56,!1)^n.getUint32(e-64,!1),1),!1);let o=this._h0,s=this._h1,a=this._h2,l=this._h3,h=this._h4;for(let r=0;r<80;r++)r<20?(e=s&a|~s&l,t=1518500249):r<40?(e=s^a^l,t=1859775393):r<60?(e=s&a|s&l|a&l,t=2400959708):(e=s^a^l,t=3395469782),i=lx(o,5)+e+h+t+n.getUint32(4*r,!1)&4294967295,h=l,l=a,a=lx(s,30),s=o,o=i;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+h&4294967295}}lk._bigBlock32=new DataView(new ArrayBuffer(320));class lP{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new lI(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class lH{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;let[n,r,o]=lH._getElements(e),[s,a,l]=lH._getElements(t);this._hasStrings=o&&l,this._originalStringElements=n,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){let t=e.getElements();if(lH._isStringArray(t)){let e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let r;return i<=n?(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new lI(e,0,i,n-i+1)]):e<=t?(lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[new lI(e,t-e+1,i,0)]):(lF.Assert(e===t+1,"originalStart should only be one more than originalEnd"),lF.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}let o=[0],s=[0],a=this.ComputeRecursionPoint(e,t,i,n,o,s,r),l=o[0],h=s[0];if(null!==a)return a;if(!r[0]){let o=this.ComputeDiffRecursive(e,l,i,h,r),s=[];return s=r[0]?[new lI(l+1,t-(l+1)+1,h+1,n-(h+1)+1)]:this.ComputeDiffRecursive(l+1,t,h+1,n,r),this.ConcatenateChanges(o,s)}return[new lI(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v){let E=null,_=null,C=new lU,S=t,y=i,T=c[0]-f[0]-n,b=-1073741824,A=this.m_forwardHistory.length-1;do{let t=T+e;t===S||t=0&&(e=(l=this.m_forwardHistory[A])[0],S=1,y=l.length-1)}while(--A>=-1);if(E=C.getReverseChanges(),v[0]){let e=c[0]+1,t=f[0]+1;if(null!==E&&E.length>0){let i=E[E.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}_=[new lI(e,d-e+1,t,p-t+1)]}else{C=new lU,S=o,y=s,T=c[0]-f[0]-a,b=1073741824,A=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=T+r;e===S||e=h[e+1]?(g=(u=h[e+1]-1)-T-a,u>b&&C.MarkNextChange(),b=u+1,C.AddOriginalElement(u+1,g+1),T=e+1-r):(g=(u=h[e-1])-T-a,u>b&&C.MarkNextChange(),b=u,C.AddModifiedElement(u+1,g+1),T=e-1-r),A>=0&&(r=(h=this.m_reverseHistory[A])[0],S=1,y=h.length-1)}while(--A>=-1);_=C.getChanges()}return this.ConcatenateChanges(E,_)}ComputeRecursionPoint(e,t,i,n,r,o,s){let a=0,l=0,h=0,u=0,d=0,c=0;e--,i--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let g=t-e+(n-i),p=g+1,f=new Int32Array(p),m=new Int32Array(p),v=n-i,E=t-e,_=e-i,C=t-n,S=E-v,y=S%2==0;f[v]=e,m[E]=t,s[0]=!1;for(let S=1;S<=g/2+1;S++){let g=0,T=0;h=this.ClipDiagonalBound(v-S,S,v,p),u=this.ClipDiagonalBound(v+S,S,v,p);for(let e=h;e<=u;e+=2){l=(a=e===h||eg+T&&(g=a,T=l),!y&&Math.abs(e-E)<=S-1&&a>=m[e]){if(r[0]=a,o[0]=l,i<=m[e]&&S<=1448)return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s);return null}}let b=(g-e+(T-i)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,b)){if(s[0]=!0,r[0]=g,o[0]=T,!(b>0)||!(S<=1448))return e++,i++,[new lI(e,t-e+1,i,n-i+1)];break}d=this.ClipDiagonalBound(E-S,S,E,p),c=this.ClipDiagonalBound(E+S,S,E,p);for(let g=d;g<=c;g+=2){l=(a=g===d||g=m[g+1]?m[g+1]-1:m[g-1])-(g-E)-C;let p=a;for(;a>e&&l>i&&this.ElementsAreEqual(a,l);)a--,l--;if(m[g]=a,y&&Math.abs(g-v)<=S&&a<=f[g]){if(r[0]=a,o[0]=l,p>=f[g]&&S<=1448)return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s);return null}}if(S<=1447){let e=new Int32Array(u-h+2);e[0]=v-h+1,lB.Copy2(f,h,e,1,u-h+1),this.m_forwardHistory.push(e),(e=new Int32Array(c-d+2))[0]=E-d+1,lB.Copy2(m,d,e,1,c-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,h,u,_,E,d,c,C,f,m,a,t,r,l,n,o,y,s)}PrettifyChanges(e){for(let t=0;t0,s=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){let i=e[t],n=0,r=0;if(t>0){let i=e[t-1];n=i.originalStart+i.originalLength,r=i.modifiedStart+i.modifiedLength}let o=i.originalLength>0,s=i.modifiedLength>0,a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){let t=i.originalStart-e,h=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;let h=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],h)){e[t-1]=h[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){let r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(i,n)?1:0;return r+o}ConcatenateChanges(e,t){let i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){let n=Array(e.length+t.length-1);return lB.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],lB.Copy(t,1,n,e.length,t.length-1),n}{let i=Array(e.length+t.length);return lB.Copy(e,0,i,0,e.length),lB.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(lF.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),lF.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),!(e.originalStart+e.originalLength>=t.originalStart)&&!(e.modifiedStart+e.modifiedLength>=t.modifiedStart))return i[0]=null,!1;{let n=e.originalStart,r=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new lI(n,r,o,s),!0}}ClipDiagonalBound(e,t,i,n){if(e>=0&&e255?255:0|e}function lW(e){return e<0?0:e>4294967295?4294967295:0|e}class lG{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=lW(e);let i=this.values,n=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=lW(e),t=lW(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;let r=i.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=lW(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,r=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,e<(o=(r=this.prefixSum[n])-this.values[n]))i=n-1;else if(e>=r)t=n+1;else break;return new lY(n,e-o)}}class lz{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return(this._ensureValid(),0===e)?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();let t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new lY(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,sq.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class lX{constructor(e,t,i){let n=new Uint8Array(e*t);for(let r=0,o=e*t;rt&&(t=o),r>i&&(i=r),s>i&&(i=s)}t++,i++;let n=new lX(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let lq=null;function lZ(){return null===lq&&(lq=new lj([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),lq}let lJ=null;class lQ{static _createLink(e,t,i,n,r){let o=r-1;do{let i=t.charCodeAt(o),n=e.get(i);if(2!==n)break;o--}while(o>n);if(n>0){let e=t.charCodeAt(n-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}}static computeLinks(e,t=lZ()){let i=function(){if(null===lJ){lJ=new l$(0);let e=" <>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null}}l0.INSTANCE=new l0;class l1 extends l${constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(i)||(t[i]=e(i)),t[i])}(e=>new l1(e));class l4{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){let e;if(""===this.searchString)return null;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;let n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=rG(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new sH(t,this.wordSeparators?l2(this.wordSeparators):null,i?this.searchString:null)}}function l5(e,t,i){if(!i)return new sB(e,null);let n=[];for(let e=0,i=t.length;e>0);t[r]>=e?n=r-1:t[r+1]>=e?(i=r,n=r):i=r+1}return i+1}}class l3{static findMatches(e,t,i,n,r){let o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new l7(o.wordSeparators,o.regex),n,r):this._doFindMatchesLineByLine(e,i,o,n,r):[]}static _getMultilineMatchRange(e,t,i,n,r,o){let s,a;let l=0;if(n?(l=n.findLineFeedCountBeforeOffset(r),s=t+r+l):s=t+r,n){let e=n.findLineFeedCountBeforeOffset(r+o.length),t=e-l;a=s+o.length+t}else a=s+o.length;let h=e.getPositionAt(s),u=e.getPositionAt(a);return new r_(h.lineNumber,h.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,i,n,r){let o;let s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new l6(a):null,h=[],u=0;for(i.reset(0);(o=i.next(a))&&(h[u++]=l5(this._getMultilineMatchRange(e,s,a,l,o.index,o[0]),o,n),!(u>=r)););return h}static _doFindMatchesLineByLine(e,t,i,n,r){let o=[],s=0;if(t.startLineNumber===t.endLineNumber){let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r),o}let a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r);for(let a=t.startLineNumber+1;a=a))););return r}let u=new l7(e.wordSeparators,e.regex);u.reset(0);do if((l=u.next(t))&&(o[r++]=l5(new r_(i,l.index+1+n,i,l.index+1+l[0].length+n),l,s),r>=a))break;while(l);return r}static findNextMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l7(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)}static _doFindNextMatchMultiline(e,t,i,n){let r=new rE(t.lineNumber,1),o=e.getOffsetAt(r),s=e.getLineCount(),a=e.getValueInRange(new r_(r.lineNumber,r.column,s,e.getLineMaxColumn(s)),1),l="\r\n"===e.getEOL()?new l6(a):null;i.reset(t.column-1);let h=i.next(a);return h?l5(this._getMultilineMatchRange(e,o,a,l,h.index,h[0]),h,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new rE(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(i,s,o,t.column,n);if(a)return a;for(let t=1;t<=r;t++){let s=(o+t-1)%r,a=e.getLineContent(s+1),l=this._findFirstMatchInLine(i,a,s+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,r){e.reset(n-1);let o=e.next(t);return o?l5(new r_(i,o.index+1,i,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,i,n){let r=t.parseSearchRequest();if(!r)return null;let o=new l7(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)}static _doFindPreviousMatchMultiline(e,t,i,n){let r=this._doFindMatchesMultiline(e,new r_(1,1,t.lineNumber,t.column),i,n,9990);if(r.length>0)return r[r.length-1];let o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new rE(o,e.getLineMaxColumn(o)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){let r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,o,n);if(a)return a;for(let t=1;t<=r;t++){let s=(r+o-t-1)%r,a=e.getLineContent(s+1),l=this._findLastMatchInLine(i,a,s+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let r,o=null;for(e.reset(0);r=e.next(t);)o=l5(new r_(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function l9(e,t,i,n,r){return function(e,t,i,n,r){if(0===n)return!0;let o=t.charCodeAt(n-1);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,r)&&function(e,t,i,n,r){if(n+r===i)return!0;let o=t.charCodeAt(n+r);if(0!==e.get(o)||13===o||10===o)return!0;if(r>0){let i=t.charCodeAt(n+r-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,r)}class l7{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t;let i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||!(t=this._searchRegex.exec(e)))break;let n=t.index,r=t[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){r8(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}break}if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||l9(this._wordSeparators,e,i,n,r))return t}while(t);return null}}class l8{static computeUnicodeHighlights(e,t,i){let n,r;let o=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new he(t),l=a.getCandidateCodePoints();n="allNonBasicAscii"===l?RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):RegExp(`${function(e,t){let i=`[${rV(e.map(e=>String.fromCodePoint(e)).join(""))}]`;return i}(Array.from(l))}`,"g");let h=new l7(null,n),u=[],d=!1,c=0,g=0,p=0;t:for(let t=o;t<=s;t++){let i=e.getLineContent(t),n=i.length;h.reset(0);do if(r=h.next(i)){let e=r.index,o=r.index+r[0].length;if(e>0){let t=i.charCodeAt(e-1);r3(t)&&e--}if(o+1=1e3){d=!0;break t}u.push(new r_(t,e+1,t,o+1))}}while(r)}return{ranges:u,hasMore:d,ambiguousCharacterCount:c,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,t){let i=new he(t),n=i.shouldHighlightNonBasicASCII(e,null);switch(n){case 0:return null;case 2:return{kind:1};case 3:{let n=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(n),o=of.getLocales().filter(e=>!of.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class he{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=of.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let e=new Set;if(this.options.invisibleCharacters)for(let t of om.codePoints)ht(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,r=!1;if(t)for(let e of t){let t=e.codePointAt(0),i=os(e);n=n||i,i||this.ambiguousCharacters.isAmbiguous(t)||om.isInvisibleCharacter(t)||(r=!0)}return!n&&r?0:this.options.invisibleCharacters&&!ht(e)&&om.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function ht(e){return" "===e||"\n"===e||" "===e}class hi{static fromRange(e){return new hi(e.startLineNumber,e.endLineNumber)}static subtract(e,t){return t?e.startLineNumber=s.startLineNumber?o=new hi(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(i.push(o),o=s)}return null!==o&&i.push(o),i}static ofLength(e,t){return new hi(e,e+t)}static deserialize(e){return new hi(e[0],e[1])}constructor(e,t){if(e>t)throw new nt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var e;return new hr(this.modifiedRange,this.originalRange,null===(e=this.innerChanges)||void 0===e?void 0:e.map(e=>e.flip()))}}class ho{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ho(this.modifiedRange,this.originalRange)}}class hs{constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new hs(this.modified,this.original)}}class ha{constructor(e,t){this.lineRangeMapping=e,this.changes=t}flip(){return new ha(this.lineRangeMapping.flip(),this.changes.map(e=>e.flip()))}}class hl{computeDiff(e,t,i){var n;let r=new hp(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}),o=r.computeDiff(),s=[],a=null;for(let e of o.changes){let t,i;t=0===e.originalEndLineNumber?new hi(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new hi(e.originalStartLineNumber,e.originalEndLineNumber+1),i=0===e.modifiedEndLineNumber?new hi(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new hi(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new hr(t,i,null===(n=e.charChanges)||void 0===n?void 0:n.map(e=>new ho(new r_(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new r_(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modifiedRange.endLineNumberExclusive===r.modifiedRange.startLineNumber||a.originalRange.endLineNumberExclusive===r.originalRange.startLineNumber)&&(r=new hr(a.originalRange.join(r.originalRange),a.modifiedRange.join(r.modifiedRange),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),s.pop()),s.push(r),a=r}return o$(()=>oX(s,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class hc{constructor(e,t,i,n,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let n=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),h=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new hc(n,r,o,s,a,l,h,u)}}class hg{constructor(e,t,i,n,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=r}static createFromDiffResult(e,t,i,n,r,o,s){let a,l,h,u,d;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=n.getStartLineNumber(t.modifiedStart)-1,u=0):(h=n.getStartLineNumber(t.modifiedStart),u=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){let o=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(o.getElements().length>0&&a.getElements().length>0){let e=hh(o,a,r,!0).changes;s&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let n=1,r=e.length;n1&&s>1;){let n=e.charCodeAt(i-2),r=t.charCodeAt(s-2);if(n!==r)break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(n,r+1,1,i,o+1,1,s)}{let i=hm(e,1),s=hm(t,1),a=e.length+1,l=t.length+1;for(;i!0;let t=Date.now();return()=>Date.now()-tt))return new hE(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new nt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new hE(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e ${this.seq2Range}`}join(e){return new hC(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new hC(this.seq1Range.delta(e),this.seq2Range.delta(e))}}class hS{isValid(){return!0}}hS.instance=new hS;class hy{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new nt("timeout must be positive")}isValid(){let e=Date.now()-this.startTime0&&l>0&&3===o.get(a-1,l-1)&&(h+=s.get(a-1,l-1)),h+=n?n(a,l):1):h=-1;let c=Math.max(u,d,h);if(c===h){let e=a>0&&l>0?s.get(a-1,l-1):0;s.set(a,l,e+1),o.set(a,l,3)}else c===u?(s.set(a,l,0),o.set(a,l,1)):c===d&&(s.set(a,l,0),o.set(a,l,2));r.set(a,l,c)}let a=[],l=e.length,h=t.length;function u(e,t){(e+1!==l||t+1!==h)&&a.push(new hC(new hE(e+1,l),new hE(t+1,h))),l=e,h=t}let d=e.length-1,c=t.length-1;for(;d>=0&&c>=0;)3===o.get(d,c)?(u(d,c),d--,c--):1===o.get(d,c)?d--:c--;return u(-1,-1),a.reverse(),new h_(a,!1)}}function hA(e,t,i){let n=i;return n=function(e,t,i){if(0===i.length)return i;let n=[];n.push(i[0]);for(let r=1;r0&&(s=s.delta(r))}r.push(s)}return n.length>0&&r.push(n[n.length-1]),r}(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,o=i[n],s=n+1=n.start&&e.seq2Range.start-o>=r.start&&i.getElement(e.seq2Range.start-o)===i.getElement(e.seq2Range.endExclusive-o)&&o<100;)o++;o--;let s=0;for(;e.seq1Range.start+sl&&(l=h,a=n)}return e.delta(a)}class hL{compute(e,t,i=hS.instance){if(0===e.length||0===t.length)return h_.trivial(e,t);function n(i,n){for(;ie.length||d>t.length)continue;let c=n(u,d);o.set(a,c);let g=u===i?s.get(a+1):s.get(a-1);if(s.set(a,c!==u?new hN(g,u,d,c-u):g),o.get(a)===e.length&&o.get(a)-a===t.length)break i}}let l=s.get(a),h=[],u=e.length,d=t.length;for(;;){let e=l?l.x+l.length:0,t=l?l.y+l.length:0;if((e!==u||t!==d)&&h.push(new hC(new hE(e,u),new hE(t,d))),!l)break;u=l.x,d=l.y,l=l.prev}return h.reverse(),new h_(h,!1)}}class hN{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class hI{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class hw{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class hO{constructor(){this.dynamicProgrammingDiffing=new hb,this.myersDiffingAlgorithm=new hL}computeDiff(e,t,i){if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return{changes:[new hr(new hi(1,e.length+1),new hi(1,t.length+1),[new ho(new r_(1,1,e.length,e[0].length+1),new r_(1,1,t.length,t[0].length+1))])],hitTimeout:!1,moves:[]};let n=0===i.maxComputationTimeMs?hS.instance:new hy(i.maxComputationTimeMs),r=!i.ignoreTrimWhitespace,o=new Map;function s(e){let t=o.get(e);return void 0===t&&(t=o.size,o.set(e,t)),t}let a=e.map(e=>s(e.trim())),l=t.map(e=>s(e.trim())),h=new hD(a,e),u=new hD(l,t),d=h.length+u.length<1500?this.dynamicProgrammingDiffing.compute(h,u,n,(i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99):this.myersDiffingAlgorithm.compute(h,u),c=d.diffs,g=d.hitTimeout;c=hA(h,u,c);let p=[],f=i=>{if(r)for(let o=0;oi.seq1Range.start-m==i.seq2Range.start-v);let o=i.seq1Range.start-m;f(o),m=i.seq1Range.endExclusive,v=i.seq2Range.endExclusive;let s=this.refineDiff(e,t,i,n,r);for(let e of(s.hitTimeout&&(g=!0),s.mappings))p.push(e)}f(e.length-m);let E=hx(p,e,t),_=[];if(i.computeMoves){let i=E.filter(e=>e.modifiedRange.isEmpty&&e.originalRange.length>=3).map(t=>new hV(t.originalRange,e)),o=new Set(E.filter(e=>e.originalRange.isEmpty&&e.modifiedRange.length>=3).map(e=>new hV(e.modifiedRange,t)));for(let s of i){let i,a=-1;for(let e of o){let t=s.computeSimilarity(e);t>a&&(a=t,i=e)}if(a>.9&&i){let a=this.refineDiff(e,t,new hC(new hE(s.range.startLineNumber-1,s.range.endLineNumberExclusive-1),new hE(i.range.startLineNumber-1,i.range.endLineNumberExclusive-1)),n,r),l=hx(a.mappings,e,t,!0);o.delete(i),_.push(new ha(new hs(s.range,i.range),l))}}}return o$(()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let i=t[e.lineNumber-1];return!(e.column<1)&&!(e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1)&&!(e.startLineNumber>t.length+1)&&!(e.endLineNumberExclusive<1)&&!(e.endLineNumberExclusive>t.length+1)}for(let r of E){if(!r.innerChanges)return!1;for(let n of r.innerChanges){let r=i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e);if(!r)return!1}if(!n(r.modifiedRange,t)||!n(r.originalRange,e))return!1}return!0}),new hn(E,_,g)}refineDiff(e,t,i,n,r){let o=new hk(e,i.seq1Range,r),s=new hk(t,i.seq2Range,r),a=o.length+s.length<500?this.dynamicProgrammingDiffing.compute(o,s,n):this.myersDiffingAlgorithm.compute(o,s,n),l=a.diffs;l=hA(o,s,l),l=function(e,t,i){let n=[];for(let e of i){let t=n[n.length-1];if(!t){n.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?n[n.length-1]=new hC(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):n.push(e)}return n}(0,0,l=function(e,t,i){let n;let r=[];function o(){if(!n)return;let e=n.s1Range.length-n.deleted;n.s2Range.length,n.added,Math.max(n.deleted,n.added)+(n.count-1)>e&&r.push(new hC(n.s1Range,n.s2Range)),n=void 0}for(let r of i){function s(e,t){var i,s,a,l;if(!n||!n.s1Range.containsRange(e)||!n.s2Range.containsRange(t)){if(n&&!(n.s1Range.endExclusive0||t.length>0;){let n;let r=e[0],o=t[0];n=r&&(!o||r.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=n.seq1Range.start?i[i.length-1]=i[i.length-1].join(n):i.push(n)}return i}(i,r);return a}(o,s,l)),l=function(e,t,i){let n,r=i;if(0===r.length)return r;let o=0;do{n=!1;let i=[r[0]];for(let o=1;o5||r.length>500)return!1;let l=e.getText(r).trim();if(l.length>20||l.split(/\r\n|\r|\n/).length>1)return!1;let h=e.countLinesIn(i.seq1Range),u=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),c=i.seq2Range.length,g=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,f=t.countLinesIn(n.seq2Range),m=n.seq2Range.length;function v(e){return Math.min(e,130)}return Math.pow(Math.pow(v(40*h+u),1.5)+Math.pow(v(40*d+c),1.5),1.5)+Math.pow(Math.pow(v(40*g+p),1.5)+Math.pow(v(40*f+m),1.5),1.5)>74184.96480721243}(a,s);l?(n=!0,i[i.length-1]=i[i.length-1].join(s)):i.push(s)}r=i}while(o++<10&&n);return r}(o,s,l);let h=l.map(e=>new ho(o.translateRange(e.seq1Range),s.translateRange(e.seq2Range)));return{mappings:h,hitTimeout:a.hitTimeout}}}function hx(e,t,i,n=!1){let r=[];for(let n of function*(e,t){let i,n;for(let r of e)void 0!==n&&t(n,r)?i.push(r):(i&&(yield i),i=[r]),n=r;i&&(yield i)}(e.map(e=>(function(e,t,i){let n=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(n=1);let o=new hi(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+r),s=new hi(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+r);return new hr(o,s,[e])})(e,t,i)),(e,t)=>e.originalRange.overlapOrTouch(t.originalRange)||e.modifiedRange.overlapOrTouch(t.modifiedRange))){let e=n[0],t=n[n.length-1];r.push(new hr(e.originalRange.join(t.originalRange),e.modifiedRange.join(t.modifiedRange),n.map(e=>e.innerChanges[0])))}return o$(()=>(!!n||!(r.length>0)||r[0].originalRange.startLineNumber===r[0].modifiedRange.startLineNumber)&&oX(r,(e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusive0&&t.endExclusive>=e.length&&(t=new hE(t.start-1,t.endExclusive),n=!0),this.lineRange=t;for(let t=this.lineRange.start;tString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=hB(e>0?this.elements[e-1]:-1),i=hB(ee?i=n:t=n+1}let n=0===t?0:this.firstCharOffsetByLineMinusOne[t-1];return new rE(this.lineRange.start+t+1,e-n+1+this.offsetByLine[t])}translateRange(e){return r_.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!hP(this.elements[e]))return;let t=e;for(;t>0&&hP(this.elements[t-1]);)t--;let i=e;for(;i=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}let hF={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function hB(e){if(10===e)return 7;if(13===e)return 6;if(32===e||9===e)return 5;if(e>=97&&e<=122)return 0;if(e>=65&&e<=90)return 1;if(e>=48&&e<=57)return 2;if(-1===e)return 3;else return 4}let hU=new Map;function hH(e){let t=hU.get(e);return void 0===t&&(t=hU.size,hU.set(e,t)),t}class hV{constructor(e,t){this.range=e,this.lines=t,this.histogram=[];let i=0;for(let n=e.startLineNumber-1;nnew hl,getAdvanced:()=>new hO};function hG(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}class hz{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class hY{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.l=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,r=e.a,o=Math.max(t,i,n),s=Math.min(t,i,n),a=0,l=0,h=(s+o)/2,u=o-s;if(u>0){switch(l=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),o){case t:a=(i-n)/u+(i1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n;let r=e.h/360,{s:o,l:s,a}=e;if(0===o)t=i=n=s;else{let e=s<.5?s*(1+o):s+o-s*o,a=2*s-e;t=hY._hue2rgb(a,e,r+1/3),i=hY._hue2rgb(a,e,r),n=hY._hue2rgb(a,e,r-1/3)}return new hz(Math.round(255*t),Math.round(255*i),Math.round(255*n),a)}}class hK{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=hG(Math.max(Math.min(1,t),0),3),this.v=hG(Math.max(Math.min(1,i),0),3),this.a=hG(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t;let i=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(i,n,r),s=Math.min(i,n,r),a=o-s,l=0===o?0:a/o;return t=0===a?0:o===i?((n-r)/a%6+6)%6:o===n?(r-i)/a+2:(i-n)/a+4,new hK(Math.round(60*t),l,o,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:r}=e,o=n*i,s=o*(1-Math.abs(t/60%2-1)),a=n-o,[l,h,u]=[0,0,0];return t<60?(l=o,h=s):t<120?(l=s,h=o):t<180?(h=o,u=s):t<240?(h=s,u=o):t<300?(l=s,u=o):t<=360&&(l=o,u=s),l=Math.round((l+a)*255),h=Math.round((h+a)*255),u=Math.round((u+a)*255),new hz(l,h,u,r)}}class h${static fromHex(e){return h$.Format.CSS.parseHex(e)||h$.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:hY.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:hK.fromRGBA(this.rgba)}constructor(e){if(e){if(e instanceof hz)this.rgba=e;else if(e instanceof hY)this._hsla=e,this.rgba=hY.toRGBA(e);else if(e instanceof hK)this._hsva=e,this.rgba=hK.toRGBA(e);else throw Error("Invalid color ctor argument")}else throw Error("Color needs a value")}equals(e){return!!e&&hz.equals(this.rgba,e.rgba)&&hY.equals(this.hsla,e.hsla)&&hK.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=h$._relativeLuminanceForComponent(this.rgba.r),t=h$._relativeLuminanceForComponent(this.rgba.g),i=h$._relativeLuminanceForComponent(this.rgba.b);return hG(.2126*e+.7152*t+.0722*i,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){let e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i}isDarkerThan(e){let t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return tthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{let e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class h2{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new h1(rl.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let i=this._models[e];i.onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return h0(this,void 0,void 0,function*(){let n=this._getModel(e);return n?l8.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e),o=this._getModel(t);return r&&o?h2.computeDiff(r,o,i,n):null})}static computeDiff(e,t,i,n){let r="advanced"===n?hW.getAdvanced():hW.getLegacy(),o=e.getLinesContent(),s=t.getLinesContent(),a=r.computeDiff(o,s,i),l=!(a.changes.length>0)&&this._modelsAreIdentical(e,t);function h(e){return e.map(e=>{var t;return[e.originalRange.startLineNumber,e.originalRange.endLineNumberExclusive,e.modifiedRange.startLineNumber,e.modifiedRange.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])]})}return{identical:l,quitEarly:a.hitTimeout,changes:h(a.changes),moves:a.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,h(e.changes)])}}static _modelsAreIdentical(e,t){let i=e.getLineCount(),n=t.getLineCount();if(i!==n)return!1;for(let n=1;n<=i;n++){let i=e.getLineContent(n),r=t.getLineContent(n);if(i!==r)return!1}return!0}computeMoreMinimalEdits(e,t,i){return h0(this,void 0,void 0,function*(){let n;let r=this._getModel(e);if(!r)return t;let o=[];for(let{range:e,text:a,eol:l}of t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return r_.compareRangesUsingStarts(e.range,t.range);let i=e.range?0:1,n=t.range?0:1;return i-n})){var s;if("number"==typeof l&&(n=l),r_.isEmpty(e)&&!a)continue;let t=r.getValueInRange(e);if(t===(a=a.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(a.length,t.length)>h2._diffLimit){o.push({range:e,text:a});continue}let h=(s=a,new lH(new lP(t),new lP(s)).ComputeDiff(i).changes),u=r.offsetAt(r_.lift(e).getStartPosition());for(let e of h){let t=r.positionAt(u+e.originalStart),i=r.positionAt(u+e.originalStart+e.originalLength),n={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};r.getValueInRange(n.range)!==n.text&&o.push(n)}}return"number"==typeof n&&o.push({eol:n,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getLineCount&&"function"==typeof t.getLineContent?lQ.computeLinks(t):[]:null})}computeDefaultDocumentColors(e){return h0(this,void 0,void 0,function*(){let t=this._getModel(e);return t?t&&"function"==typeof t.getValue&&"function"==typeof t.positionAt?function(e){let t=[],i=hQ(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(let n of i){let i;let r=n.filter(e=>void 0!==e),o=r[1],s=r[2];if(s){if("rgb"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;i=hZ(hq(e,n),hQ(s,t),!1)}else if("rgba"===o){let t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hZ(hq(e,n),hQ(s,t),!0)}else if("hsl"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;i=hJ(hq(e,n),hQ(s,t),!1)}else if("hsla"===o){let t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;i=hJ(hq(e,n),hQ(s,t),!0)}else"#"===o&&(i=function(e,t){if(!e)return;let i=h$.Format.CSS.parseHex(t);if(i)return{range:e,color:hj(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}(hq(e,n),o+s));i&&t.push(i)}}return t}(t):[]:null})}textualSuggest(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=new nE,o=new RegExp(i,n),s=new Set;n:for(let i of e){let e=this._getModel(i);if(e){for(let i of e.words(o))if(i!==t&&isNaN(Number(i))&&(s.add(i),s.size>h2._suggestionsLimit))break n}}return{words:Array.from(s),duration:r.elapsed()}})}computeWordRanges(e,t,i,n){return h0(this,void 0,void 0,function*(){let r=this._getModel(e);if(!r)return Object.create(null);let o=new RegExp(i,n),s=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t));return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory({host:n,getMirrorModels:()=>this._getModels()},t),Promise.resolve((0,oj.$E)(this._foreignModule))):Promise.reject(Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}h2._diffLimit=1e5,h2._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=rk());let h4=oG("textResourceConfigurationService"),h5=oG("textResourcePropertiesService"),h6=oG("logService");(ey=t0||(t0={}))[ey.Off=0]="Off",ey[ey.Trace=1]="Trace",ey[ey.Debug=2]="Debug",ey[ey.Info=3]="Info",ey[ey.Warning=4]="Warning",ey[ey.Error=5]="Error";let h3=t0.Info;class h9 extends nc{constructor(){super(...arguments),this.level=h3,this._onDidChangeLogLevel=this._register(new nT),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==t0.Off&&this.level<=e}}class h7 extends h9{constructor(e=h3,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(t0.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(t0.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(t0.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(t0.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(t0.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class h8 extends h9{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(let t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(let i of this.loggers)i.trace(e,...t)}debug(e,...t){for(let i of this.loggers)i.debug(e,...t)}info(e,...t){for(let i of this.loggers)i.info(e,...t)}warn(e,...t){for(let i of this.loggers)i.warn(e,...t)}error(e,...t){for(let i of this.loggers)i.error(e,...t)}dispose(){for(let e of this.loggers)e.dispose()}}new sR("logLevel",function(e){switch(e){case t0.Trace:return"trace";case t0.Debug:return"debug";case t0.Info:return"info";case t0.Warning:return"warn";case t0.Error:return"error";case t0.Off:return"off"}}(t0.Info));let ue=oG("ILanguageFeaturesService");var ut=function(e,t){return function(i,n){t(i,n,e)}},ui=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function un(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())}let ur=class extends nc{constructor(e,t,i,n,r){super(),this._modelService=e,this._workerManager=this._register(new us(this._modelService,n)),this._logService=i,this._register(r.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>un(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(r.completionProvider.register("*",new uo(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return un(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return ui(this,void 0,void 0,function*(){let r=yield this._workerManager.withWorker().then(r=>r.computeDiff(e,t,i,n));if(!r)return null;let o={identical:r.identical,quitEarly:r.quitEarly,changes:s(r.changes),moves:r.moves.map(e=>new ha(new hs(new hi(e[0],e[1]),new hi(e[2],e[3])),s(e[4])))};return o;function s(e){return e.map(e=>{var t;return new hr(new hi(e[0],e[1]),new hi(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map(e=>new ho(new r_(e[0],e[1],e[2],e[3]),new r_(e[4],e[5],e[6],e[7]))))})}})}computeMoreMinimalEdits(e,t,i=!1){if(!(0,sq.Of)(t))return Promise.resolve(void 0);{if(!un(this._modelService,e))return Promise.resolve(t);let n=nE.create(),r=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t,i));return r.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([r,ls(1e3).then(()=>t)])}}canNavigateValueSet(e){return un(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return un(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};ur=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([ut(0,a6),ut(1,h4),ut(2,h6),ut(3,az),ut(4,ue)],ur);class uo{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return ui(this,void 0,void 0,function*(){let i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;let n=[];if("currentDocument"===i.wordBasedSuggestionsMode)un(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())un(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestionsMode||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let r=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),s=o?new r_(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):r_.fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),h=yield l.textualSuggest(n,null==o?void 0:o.word,r);if(h)return{duration:h.duration,suggestions:h.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:s}}))}})}}class us extends nc{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime();let i=this._register(new lh);i.cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;let e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;let e=new Date().getTime()-this._lastWorkerUsedTime;e>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new uu(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class ua extends nc{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){let e=new lh;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)nl(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(let i of e){let e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime){let n=e-this._syncedModelsLastUsedTime[i];n>6e4&&t.push(i)}for(let e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let r=new nd;r.add(i.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),r.add(i.onWillDispose(()=>{this._stopModelSync(n)})),r.add(nu(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=r}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],nl(t)}}class ul{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class uh{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class uu extends nc{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new lN(i),this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new ly(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new uh(this)))}catch(e){lf(e),this._worker=new ul(new h2(new uh(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(lf(e),this._worker=new ul(new h2(new uh(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new ua(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return ui(this,void 0,void 0,function*(){return this._disposed?Promise.reject(function(){let e=Error(i5);return e.name=e.message,e}()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(r=>r.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then(t=>t.computeDefaultDocumentColors(e.toString()))}textualSuggest(e,t,i){return ui(this,void 0,void 0,function*(){let n=yield this._withSyncedResources(e),r=i.source,o=rz(i);return n.textualSuggest(e.map(e=>e.toString()),t,r,o)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{let n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);let r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),o=r.source,s=rz(r);return i.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{let r=this._modelService.getModel(e);if(!r)return null;let o=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),s=o.source,a=rz(o);return n.navigateValueSet(e.toString(),t,i,s,a)})}dispose(){super.dispose(),this._disposed=!0}}class ud extends uu{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?(0,oj.$E)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r={};for(let e of t)r[e]=n(e,i);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}class uc{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t=this.getForeground(e),i="mtk"+t,n=this.getFontStyle(e);return 1&n&&(i+=" mtki"),2&n&&(i+=" mtkb"),4&n&&(i+=" mtku"),8&n&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,t){let i=this.getForeground(e),n=this.getFontStyle(e),r=`color: ${t[i]};`;1&n&&(r+="font-style: italic;"),2&n&&(r+="font-weight: bold;");let o="";return 4&n&&(o+=" underline"),8&n&&(o+=" line-through"),o&&(r+=`text-decoration:${o};`),r}static getPresentationFromMetadata(e){let t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(1&i),bold:!!(2&i),underline:!!(4&i),strikethrough:!!(8&i)}}}class ug{static createEmpty(e,t){let i=ug.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new ug(n,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof ug&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;let n=t<<1,r=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){let t=this._tokens[(e<<1)+1];return t}getLanguageId(e){let t=this._tokens[(e<<1)+1],i=uc.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){let t=this._tokens[(e<<1)+1];return uc.getTokenType(t)}getForeground(e){let t=this._tokens[(e<<1)+1];return uc.getForeground(t)}getClassName(e){let t=this._tokens[(e<<1)+1];return uc.getClassNameFromMetadata(t)}getInlineStyle(e,t){let i=this._tokens[(e<<1)+1];return uc.getInlineStyleFromMetadata(i,t)}getPresentation(e){let t=this._tokens[(e<<1)+1];return uc.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return ug.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new up(this,e,t,i)}static convertToEndOffset(e,t){let i=e.length>>>1,n=i-1;for(let t=0;t>>1)-1;for(;it&&(n=r)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="",r=[],o=0;for(;;){let s=to){n+=this._text.substring(o,a.offset);let e=this._tokens[(t<<1)+1];r.push(n.length,e),o=a.offset}n+=a.text,r.push(n.length,a.tokenMetadata),i++}else break}return new ug(new Uint32Array(r),n,this._languageIdCodec)}}ug.defaultTokenMetadata=33587200;class up{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i)break;this._tokensCount++}}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof up&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){let t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class uf{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){let i=e.length,n=t.length;if(i!==n)return!1;for(let n=0;n=r||(s[a++]=new uf(Math.max(1,t.startColumn-n+1),Math.min(o+1,t.endColumn-n+1),t.className,t.type));return s}static filter(e,t,i,n){if(0===e.length)return[];let r=[],o=0;for(let s=0,a=e.length;st||l.isEmpty()&&(0===a.type||3===a.type))continue;let h=l.startLineNumber===t?l.startColumn:i,u=l.endLineNumber===t?l.endColumn:n;r[o++]=new uf(h,u,a.inlineClassName,a.type)}return r}static _typeCompare(e,t){let i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;let i=uf._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class uE{static normalize(e,t){if(0===t.length)return[];let i=[],n=new uv,r=0;for(let o=0,s=t.length;o1){let t=e.charCodeAt(a-2);r3(t)&&a--}if(l>1){let t=e.charCodeAt(l-2);r3(t)&&l--}let d=a-1,c=l-2;r=n.consumeLowerThan(d,r,i),0===n.count&&(r=d),n.insert(c,h,u)}return n.consumeLowerThan(1073741824,r,i),i}}class u_{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class uC{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class uS{constructor(e,t,i,n,r,o,s,a,l,h,u,d,c,g,p,f,m,v,E){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=l.sort(uf.compare),this.tabSize=h,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=m,this.fontLigatures=v,this.selectionsOnLine=E&&E.sort((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){this._data[e-1]=(t<<16|i<<0)>>>0,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){let t=this.charOffsetToPartData(e-1),i=uT.getPartIndex(t),n=uT.getCharIndex(t);return new uy(i,n)}getColumn(e,t){let i=this.partDataToCharOffset(e.partIndex,t,e.charIndex);return i+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;let n=(e<<16|i<<0)>>>0,r=0,o=this.length-1;for(;r+1>>1,t=this._data[e];if(t===n)return e;t>n?o=e:r=e}if(r===o)return r;let s=this._data[r],a=this._data[o];if(s===n)return r;if(a===n)return o;let l=uT.getPartIndex(s),h=uT.getCharIndex(s),u=uT.getPartIndex(a);return i-h<=(l!==u?t:uT.getCharIndex(a))-i?r:o}}class ub{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function uA(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,r=0;for(let o of e.lineDecorations)(1===o.type||2===o.type)&&(t.appendString(''),1===o.type&&(r|=1,i++),2===o.type&&(r|=2,n++));t.appendString("");let o=new uT(1,i+n);return o.setColumnInfo(1,i,0,0),new ub(o,!1,r)}return t.appendString(""),new ub(new uT(0,0),!1,0)}return function(e,t){let i=e.fontIsMonospace,n=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,l=e.overflowingCharCount,h=e.parts,u=e.fauxIndentLength,d=e.tabSize,c=e.startVisibleColumn,g=e.containsRTL,p=e.spaceWidth,f=e.renderSpaceCharCode,m=e.renderWhitespace,v=e.renderControlCharacters,E=new uT(s+1,h.length),_=!1,C=0,S=c,y=0,T=0,b=0;g?t.appendString(''):t.appendString("");for(let e=0,a=h.length;e=u&&(t+=r)}}for(R&&(t.appendString(' style="width:'),t.appendString(String(p*i)),t.appendString('px"')),t.appendASCIICharCode(62);C1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=r;e++)t.appendCharCode(160)}else i=2,r=1,t.appendCharCode(f),t.appendCharCode(8204);y+=i,T+=r,C>=u&&(S+=r)}}else for(t.appendASCIICharCode(62);C=u&&(S+=r)}L?b++:b=0,C>=s&&!_&&a.isPseudoAfter()&&(_=!0,E.setColumnInfo(C+1,e,y,T)),t.appendString("")}return _||E.setColumnInfo(s+1,h.length-1,y,T),a&&(t.appendString(''),t.appendString(rL.NC("showMore","Show more ({0})",l<1024?rL.NC("overflow.chars","{0} chars",l):l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1024/1024).toFixed(1)} MB`)),t.appendString("")),t.appendString(""),new ub(E,g,r)}(function(e){let t,i,n;let r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(o[s++]=new u_(n,"",0,!1));let a=n;for(let l=0,h=i.getCount();l=r){let i=!!t&&or(e.substring(a,r));o[s++]=new u_(r,u,0,i);break}let d=!!t&&or(e.substring(a,h));o[s++]=new u_(h,u,0,d),a=h}return o}(r,e.containsRTL,e.lineTokens,e.fauxIndentLength,n);e.renderControlCharacters&&!e.isBasicASCII&&(o=function(e,t){let i=[],n=new u_(0,"",0,!1),r=0;for(let o of t){let t=o.endIndex;for(;rn.endIndex&&(n=new u_(r,o.type,o.metadata,o.containsRTL),i.push(n)),n=new u_(r+1,"mtkcontrol",o.metadata,!1),i.push(n))}r>n.endIndex&&(n=new u_(t,o.type,o.metadata,o.containsRTL),i.push(n))}return i}(r,o)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(o=function(e,t,i,n){let r;let o=e.continuesWithWrappedLine,s=e.fauxIndentLength,a=e.tabSize,l=e.startVisibleColumn,h=e.useMonospaceOptimizations,u=e.selectionsOnLine,d=1===e.renderWhitespace,c=3===e.renderWhitespace,g=e.renderSpaceWidth!==e.spaceWidth,p=[],f=0,m=0,v=n[0].type,E=n[m].containsRTL,_=n[m].endIndex,C=n.length,S=!1,y=rK(t);-1===y?(S=!0,y=i,r=i):r=rX(t);let T=!1,b=0,A=u&&u[b],R=l%a;for(let e=s;e=A.endOffset&&(b++,A=u&&u[b]),er)o=!0;else if(9===l)o=!0;else if(32===l){if(d){if(T)o=!0;else{let n=e+1e),o&&c&&(o=S||e>r),o&&E&&e>=y&&e<=r&&(o=!1),T){if(!o||!h&&R>=a){if(g){let t=f>0?p[f-1].endIndex:s;for(let i=t+1;i<=e;i++)p[f++]=new u_(i,"mtkw",1,!1)}else p[f++]=new u_(e,"mtkw",1,!1);R%=a}}else(e===_||o&&e>s)&&(p[f++]=new u_(e,v,0,E),R%=a);for(9===l?R=a:ol(l)?R+=2:R++,T=o;e===_;)if(++m0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(L=!0)}else L=!0}if(L){if(g){let e=f>0?p[f-1].endIndex:s;for(let t=e+1;t<=i;t++)p[f++]=new u_(t,"mtkw",1,!1)}else p[f++]=new u_(i,"mtkw",1,!1)}else p[f++]=new u_(i,v,0,E);return p}(e,r,n,o));let s=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;th&&(h=e.startOffset,a[l++]=new u_(h,u,d,c)),e.endOffset+1<=n)h=e.endOffset+1,a[l++]=new u_(h,u+" "+e.className,d|e.metadata,c),s++;else{h=n,a[l++]=new u_(h,u+" "+e.className,d|e.metadata,c);break}}n>h&&(h=n,a[l++]=new u_(h,u,d,c))}let u=i[i.length-1].endIndex;if(s=50&&(r[o++]=new u_(h+1,t,i,l),u=h+1,h=-1);u!==a&&(r[o++]=new u_(a,t,i,l))}else r[o++]=s;n=a}else for(let e=0,i=t.length;e50){let e=i.type,t=i.metadata,l=i.containsRTL,h=Math.ceil(a/50);for(let i=1;i=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}class uw{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class uO{constructor(e,t){this.tabSize=e,this.data=t}}class ux{constructor(e,t,i,n,r,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=r,this.tokens=o,this.inlineDecorations=s}}class uD{constructor(e,t,i,n,r,o,s,a,l,h){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=uD.isBasicASCII(i,o),this.containsRTL=uD.containsRTL(i,this.isBasicASCII,r),this.tokens=s,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=h}static isBasicASCII(e,t){return!t||os(e)}static containsRTL(e,t,i){return!t&&!!i&&or(e)}}class uM{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class uk{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new uM(new r_(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class uP{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class uF{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function uB(e){return"string"==typeof e}function uU(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function uH(e){return e.replace(/[&<>'"_]/g,"-")}function uV(e,t){return Error(`${e.languageId}: ${t}`)}function uW(e,t,i,n,r){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,l,h,u,d,c,g){return a?"$":l?uU(e,i):h&&h0;){let t=e.tokenizer[i];if(t)return t;let n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}class uz{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new uY(e,t);let i=uY.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new uY(e,t),this._entries[i]=n),n}}uz._INSTANCE=new uz(5);class uY{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return uY._equals(this,e)}push(e){return uz.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return uz.create(this.parent,e)}}class uK{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){let e=this.state.clone();return e===this.state?this:new uK(this.languageId,this.state)}}class u${static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t||null!==e&&e.depth>=this._maxCacheDepth)return new uX(e,t);let i=uY.getStackElementId(e),n=this._entries[i];return n||(n=new uX(e,null),this._entries[i]=n),n}}u$._INSTANCE=new u$(5);class uX{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){let e=this.embeddedLanguageData?this.embeddedLanguageData.clone():null;return e===this.embeddedLanguageData?this:u$.create(this.stack,this.embeddedLanguageData)}equals(e){return!!(e instanceof uX&&this.stack.equals(e.stack))&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class uj{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){(this._lastTokenType!==t||this._lastTokenLanguage!==this._languageId)&&(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new rN(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){let r=i.languageId,o=i.state,s=rD.get(r);if(!s)return this.enterLanguage(r),this.emit(n,""),o;let a=s.tokenize(e,t,o);if(0!==n)for(let e of a.tokens)this._tokens.push(new rN(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new rI(this._tokens,e)}}class uq{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){let i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){let n=null!==e?e.length:0,r=t.length,o=null!==i?i.length:0;if(0===n&&0===r&&0===o)return new Uint32Array(0);if(0===n&&0===r)return i;if(0===r&&0===o)return e;let s=new Uint32Array(n+r+o);null!==e&&s.set(e);for(let e=0;e{if(o)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let t=[];for(let i in this._embeddedLanguages){let n=rD.get(i);if(n){if(n instanceof e){let e=n.getLoadStatus();!1===e.loaded&&t.push(e.promise)}continue}rD.isResolved(i)||t.push(rD.getOrCreate(i))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>void 0)}}getInitialState(){let e=uz.create(null,this._lexer.start);return u$.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a4(this._languageId,i);let n=new uj,r=this._tokenize(e,t,i,n);return n.finalize(r)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return a5(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);let n=new uq(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,i,n);return n.finalize(r)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=uG(this._lexer,t.stack.state)))throw uV(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,r=!1;for(let t of i){if(uB(t.action)||"@pop"!==t.action.nextEmbedded)continue;r=!0;let i=t.regex,o=t.regex.source;if("^(?:"===o.substr(0,4)&&")"===o.substr(o.length-1,1)){let e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(o.substr(4,o.length-5),e)}let s=e.search(i);-1!==s&&(0===s||!t.matchOnlyAtLineStart)&&(-1===n||s0&&r.nestedLanguageTokenize(s,!1,i.embeddedLanguageData,n);let a=e.substring(o);return this._myTokenize(a,t,i,n+o,r)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,r){r.enterLanguage(this._languageId);let o=e.length,s=t&&this._lexer.includeLF?e+"\n":e,a=s.length,l=i.embeddedLanguageData,h=i.stack,u=0,d=null,c=!0;for(;c||u=a)break;c=!1;let e=this._lexer.tokenizer[f];if(!e&&!(e=uG(this._lexer,f)))throw uV(this._lexer,"tokenizer state is not defined: "+f);let t=s.substr(u);for(let i of e)if((0===u||!i.matchOnlyAtLineStart)&&(m=t.match(i.regex))){v=m[0],E=i.action;break}}if(m||(m=[""],v=""),E||(u=this._lexer.maxStack)throw uV(this._lexer,"maximum tokenizer stack size reached: ["+h.state+","+h.parent.state+",...]");h=h.push(f)}else if("@pop"===E.next){if(h.depth<=1)throw uV(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(_));h=h.pop()}else if("@popall"===E.next)h=h.popall();else{let e=uW(this._lexer,E.next,v,m,f);if("@"===e[0]&&(e=e.substr(1)),uG(this._lexer,e))h=h.push(e);else throw uV(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(_))}}E.log&&"string"==typeof E.log&&console.log(`${this._lexer.languageId}: ${this._lexer.languageId+": "+uW(this._lexer,E.log,v,m,f)}`)}if(null===S)throw uV(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(_));let y=i=>{let o=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,s=this._getNestedEmbeddedLanguageData(o);if(!(u0)throw uV(this._lexer,"groups cannot be nested: "+this._safeRuleName(_));if(m.length!==S.length+1)throw uV(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(_));let e=0;for(let t=1;t=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([function(e,t){al(e,t,4)}],uZ);let uJ=lA("standaloneColorizer",{createHTML:e=>e});class uQ{static colorizeElement(e,t,i,n){n=n||{};let r=n.theme||"vs",o=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();let s=t.getLanguageIdByMimeType(o)||o;e.setTheme(r);let a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+r,this.colorize(t,a||"",s,n).then(e=>{var t;let n=null!==(t=null==uJ?void 0:uJ.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n},e=>console.error(e))}static colorize(e,t,i,n){var r,o,s,a;return r=this,o=void 0,s=void 0,a=function*(){var r;let o=e.languageIdCodec,s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),od(t)&&(t=t.substr(1));let a=rY(t);if(!e.isRegisteredLanguageId(i))return u0(a,s,o);let l=yield rD.getOrCreate(i);return l?(r=s,new Promise((e,t)=>{let i=()=>{let n=function(e,t,i,n){let r=[],o=i.getInitialState();for(let s=0,a=e.length;s"),o=l.endState}return r.join("")}(a,r,l,o);if(l instanceof uZ){let e=l.getLoadStatus();if(!1===e.loaded){e.promise.then(i,t);return}}e(n)};i()})):u0(a,s,o)},new(s||(s=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function n(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(i,n)}l((a=a.apply(r,o||[])).next())})}static colorizeLine(e,t,i,n,r=4){let o=uD.isBasicASCII(e,t),s=uD.containsRTL(e,o,i),a=uL(new uS(!1,!0,e,!1,o,s,0,n,[],r,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,i=4){let n=e.getLineContent(t);e.tokenization.forceTokenization(t);let r=e.tokenization.getLineTokens(t),o=r.inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function u0(e,t,i){let n=[],r=new Uint32Array(2);r[0]=0,r[1]=33587200;for(let o=0,s=e.length;o")}return n.join("")}let u1={clipboard:{writeText:nY.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:nY.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:nY.tY||oI?0:navigator.keyboard||oR?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function u2(e,t){if("number"==typeof e){if(0===e)return null;let i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new u6(0!==n?[u4(i,t),u4(n,t)]:[u4(i,t)])}{let i=[];for(let n=0;n1?i-1:0),r=1;r/gm),dz=dc(/^data-[\-\w.\u00B7-\uFFFF]/),dY=dc(/^aria-[\-\w]+$/),dK=dc(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d$=dc(/^(?:\w+script|data):/i),dX=dc(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function dq(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,i=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=function(t){return e(t)};if(i.version="2.3.1",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;var n=t.document,r=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,h=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,c=t.Text,g=t.Comment,p=t.DOMParser,f=t.trustedTypes,m=l.prototype,v=dw(m,"cloneNode"),E=dw(m,"nextSibling"),_=dw(m,"childNodes"),C=dw(m,"parentNode");if("function"==typeof s){var S=r.createElement("template");S.content&&S.content.ownerDocument&&(r=S.content.ownerDocument)}var y=dZ(f,n),T=y&&j?y.createHTML(""):"",b=r,A=b.implementation,R=b.createNodeIterator,L=b.createDocumentFragment,N=b.getElementsByTagName,I=n.importNode,w={};try{w=dI(r).documentMode?r.documentMode:{}}catch(e){}var O={};i.isSupported="function"==typeof C&&A&&void 0!==A.createHTMLDocument&&9!==w;var x=dK,D=null,M=dN({},[].concat(dq(dO),dq(dx),dq(dD),dq(dk),dq(dF))),k=null,P=dN({},[].concat(dq(dB),dq(dU),dq(dH),dq(dV))),F=null,B=null,U=!0,H=!0,V=!1,W=!1,G=!1,z=!1,Y=!1,K=!1,$=!1,X=!0,j=!1,q=!0,Z=!0,J=!1,Q={},ee=null,et=dN({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ei=null,en=dN({},["audio","video","img","source","image","track"]),er=null,eo=dN({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),es="http://www.w3.org/1998/Math/MathML",ea="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml",eh=el,eu=!1,ed=null,ec=r.createElement("form"),eg=function(e){ed&&ed===e||(e&&(void 0===e?"undefined":dj(e))==="object"||(e={}),D="ALLOWED_TAGS"in(e=dI(e))?dN({},e.ALLOWED_TAGS):M,k="ALLOWED_ATTR"in e?dN({},e.ALLOWED_ATTR):P,er="ADD_URI_SAFE_ATTR"in e?dN(dI(eo),e.ADD_URI_SAFE_ATTR):eo,ei="ADD_DATA_URI_TAGS"in e?dN(dI(en),e.ADD_DATA_URI_TAGS):en,ee="FORBID_CONTENTS"in e?dN({},e.FORBID_CONTENTS):et,F="FORBID_TAGS"in e?dN({},e.FORBID_TAGS):{},B="FORBID_ATTR"in e?dN({},e.FORBID_ATTR):{},Q="USE_PROFILES"in e&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,H=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,W=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,K=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,X=!1!==e.RETURN_DOM_IMPORT,j=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,q=!1!==e.SANITIZE_DOM,Z=!1!==e.KEEP_CONTENT,J=e.IN_PLACE||!1,x=e.ALLOWED_URI_REGEXP||x,eh=e.NAMESPACE||el,W&&(H=!1),$&&(K=!0),Q&&(D=dN({},[].concat(dq(dF))),k=[],!0===Q.html&&(dN(D,dO),dN(k,dB)),!0===Q.svg&&(dN(D,dx),dN(k,dU),dN(k,dV)),!0===Q.svgFilters&&(dN(D,dD),dN(k,dU),dN(k,dV)),!0===Q.mathMl&&(dN(D,dk),dN(k,dH),dN(k,dV))),e.ADD_TAGS&&(D===M&&(D=dI(D)),dN(D,e.ADD_TAGS)),e.ADD_ATTR&&(k===P&&(k=dI(k)),dN(k,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&dN(er,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ee===et&&(ee=dI(ee)),dN(ee,e.FORBID_CONTENTS)),Z&&(D["#text"]=!0),G&&dN(D,["html","head","body"]),D.table&&(dN(D,["tbody"]),delete F.tbody),dd&&dd(e),ed=e)},ep=dN({},["mi","mo","mn","ms","mtext"]),ef=dN({},["foreignobject","desc","title","annotation-xml"]),em=dN({},dx);dN(em,dD),dN(em,dM);var ev=dN({},dk);dN(ev,dP);var eE=function(e){var t=C(e);t&&t.tagName||(t={namespaceURI:el,tagName:"template"});var i=dC(e.tagName),n=dC(t.tagName);if(e.namespaceURI===ea)return t.namespaceURI===el?"svg"===i:t.namespaceURI===es?"svg"===i&&("annotation-xml"===n||ep[n]):!!em[i];if(e.namespaceURI===es)return t.namespaceURI===el?"math"===i:t.namespaceURI===ea?"math"===i&&ef[n]:!!ev[i];if(e.namespaceURI===el){if(t.namespaceURI===ea&&!ef[n]||t.namespaceURI===es&&!ep[n])return!1;var r=dN({},["title","style","font","a","script"]);return!ev[i]&&(r[i]||!em[i])}return!1},e_=function(e){d_(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=T}catch(t){e.remove()}}},eC=function(e,t){try{d_(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d_(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!k[e]){if(K||$)try{e_(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},eS=function(e){var t=void 0,i=void 0;if(Y)e=""+e;else{var n=dS(e,/^[\r\n\t ]+/);i=n&&n[0]}var o=y?y.createHTML(e):e;if(eh===el)try{t=new p().parseFromString(o,"text/html")}catch(e){}if(!t||!t.documentElement){t=A.createDocument(eh,"template",null);try{t.documentElement.innerHTML=eu?"":o}catch(e){}}var s=t.body||t.documentElement;return(e&&i&&s.insertBefore(r.createTextNode(i),s.childNodes[0]||null),eh===el)?N.call(t,G?"html":"body")[0]:G?t.documentElement:s},ey=function(e){return R.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},eT=function(e){return(void 0===a?"undefined":dj(a))==="object"?e instanceof a:e&&(void 0===e?"undefined":dj(e))==="object"&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},eb=function(e,t,n){O[e]&&dv(O[e],function(e){e.call(i,t,n,ed)})},eA=function(e){var t=void 0;if(eb("beforeSanitizeElements",e,null),!(e instanceof c)&&!(e instanceof g)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)||dS(e.nodeName,/[\u0080-\uFFFF]/))return e_(e),!0;var n=dC(e.nodeName);if(eb("uponSanitizeElement",e,{tagName:n,allowedTags:D}),!eT(e.firstElementChild)&&(!eT(e.content)||!eT(e.content.firstElementChild))&&dA(/<[/\w]/g,e.innerHTML)&&dA(/<[/\w]/g,e.textContent)||"select"===n&&dA(/